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,KAAA,CACAk6B,EAAArJ,OAAA,EAEA,CAEA7kD,QAAAC,KAAA,CACA,wFAKA,CACA,oBACKskB,IAAA,KACL,IAAA6pC,EACA,IAAAgB,EAAAf,EAAA,CAAAgB,EAMA,GADApuD,EAJA0rD,EAAA31C,EAAAqH,KAAA,CACAgwC,EACA,MAAAD,CAAAA,EAAAhuD,GAAA,EAAAguD,EAAAT,GAEA,IACAyB,EACA,OAAA7B,GAEA,GAAKhpC,IAAA,MACLupC,MAAAA,GAAAA,EAAAnB,EAAA,QACAA,EAAAvsD,IACA8sD,EAAA,GACAE,EAAAt5C,OAAA,IAAA8d,EAAA+6B,GACA,GAAKnoC,KAAA,KACLspC,MAAAA,GAAAA,EAAA,OAAA/tD,EACA,EACA,EAiCA,OAhCA0sD,EAAA6B,OAAA,EACA56B,WAAA,IACA1c,EAAA,CACA,GAAAA,CAAA,CACA,GAAAu3C,CAAA,EAEAA,EAAA7B,OAAA,EACAA,CAAAA,EAAA6B,EAAA7B,OAAA,CAEA,EACA8B,aAAA,KACA9B,MAAAA,GAAAA,EAAA+B,UAAA,CAAAz3C,EAAAhP,IAAA,CACA,EACA0mD,WAAA,IAAA13C,EACA23C,UAAA,IAAAf,IACAV,YAAA,IAAAA,EACA0B,UAAA,IACAzB,EAAArhC,GAAA,CAAA8F,GACA,KACAu7B,EAAAlpB,MAAA,CAAArS,EACA,GAEAi9B,kBAAA,IACAzB,EAAAthC,GAAA,CAAA8F,GACA,KACAw7B,EAAAnpB,MAAA,CAAArS,EACA,EAEA,EACA5a,EAAAs4C,aAAA,EACA1B,IAEAjB,GAAAgB,CACA,EAYAW,EAXA,CAAA11B,EAAA4zB,IACA,eAAAA,GAAA,cAAAA,GAAA,gBAAAA,GAEAxsD,QAAAilD,IAAA,CACA,kHAGAsH,EAAA3zB,EAAA4zB,IAEAsC,EAAAl2B,EAAA4zB","sources":["webpack://_N_E/./node_modules/base64-js/index.js","webpack://_N_E/./node_modules/buffer/index.js","webpack://_N_E/./node_modules/call-bind/callBound.js","webpack://_N_E/./node_modules/call-bind/index.js","webpack://_N_E/./node_modules/define-data-property/index.js","webpack://_N_E/./node_modules/es-define-property/index.js","webpack://_N_E/./node_modules/es-errors/eval.js","webpack://_N_E/./node_modules/es-errors/index.js","webpack://_N_E/./node_modules/es-errors/range.js","webpack://_N_E/./node_modules/es-errors/ref.js","webpack://_N_E/./node_modules/es-errors/syntax.js","webpack://_N_E/./node_modules/es-errors/type.js","webpack://_N_E/./node_modules/es-errors/uri.js","webpack://_N_E/./node_modules/function-bind/implementation.js","webpack://_N_E/./node_modules/function-bind/index.js","webpack://_N_E/./node_modules/get-intrinsic/index.js","webpack://_N_E/./node_modules/gopd/index.js","webpack://_N_E/./node_modules/has-property-descriptors/index.js","webpack://_N_E/./node_modules/has-proto/index.js","webpack://_N_E/./node_modules/has-symbols/index.js","webpack://_N_E/./node_modules/has-symbols/shams.js","webpack://_N_E/./node_modules/hasown/index.js","webpack://_N_E/./node_modules/ieee754/index.js","webpack://_N_E/./node_modules/object-inspect/index.js","webpack://_N_E/./node_modules/qs/lib/formats.js","webpack://_N_E/./node_modules/qs/lib/index.js","webpack://_N_E/./node_modules/qs/lib/parse.js","webpack://_N_E/./node_modules/qs/lib/stringify.js","webpack://_N_E/./node_modules/qs/lib/utils.js","webpack://_N_E/./node_modules/set-function-length/index.js","webpack://_N_E/./node_modules/side-channel/index.js","webpack://_N_E/../../../src/_internal/utils.ts","webpack://_N_E/../../../src/_internal/error.ts","webpack://_N_E/../countBy.ts","webpack://_N_E/../each.ts","webpack://_N_E/../../../src/Lazy/map.ts","webpack://_N_E/../../../src/Lazy/concurrent.ts","webpack://_N_E/../../../src/Lazy/takeUntil.ts","webpack://_N_E/../not.ts","webpack://_N_E/../pipe1.ts","webpack://_N_E/../reduce.ts","webpack://_N_E/../pipe.ts","webpack://_N_E/../every.ts","webpack://_N_E/../../../src/Lazy/take.ts","webpack://_N_E/../toArray.ts","webpack://_N_E/../head.ts","webpack://_N_E/../../../src/Lazy/filter.ts","webpack://_N_E/../find.ts","webpack://_N_E/../../../src/Lazy/zipWithIndex.ts","webpack://_N_E/../findIndex.ts","webpack://_N_E/../groupBy.ts","webpack://_N_E/../identity.ts","webpack://_N_E/../some.ts","webpack://_N_E/../includes.ts","webpack://_N_E/../indexBy.ts","webpack://_N_E/../isArray.ts","webpack://_N_E/../isNull.ts","webpack://_N_E/../isUndefined.ts","webpack://_N_E/../isNil.ts","webpack://_N_E/../isEmpty.ts","webpack://_N_E/../isNumber.ts","webpack://_N_E/../isString.ts","webpack://_N_E/../join.ts","webpack://_N_E/../last.ts","webpack://_N_E/../../../src/Lazy/reject.ts","webpack://_N_E/../../../src/Lazy/takeWhile.ts","webpack://_N_E/../../../src/Lazy/zip.ts","webpack://_N_E/../omitBy.ts","webpack://_N_E/../partition.ts","webpack://_N_E/../pickBy.ts","webpack://_N_E/../unicodeToArray.ts","webpack://_N_E/../../../src/Lazy/compact.ts","webpack://_N_E/../../../src/Lazy/compress.ts","webpack://_N_E/../../../src/Lazy/uniqBy.ts","webpack://_N_E/../../../src/Lazy/uniq.ts","webpack://_N_E/../../../src/Lazy/differenceBy.ts","webpack://_N_E/../../../src/Lazy/difference.ts","webpack://_N_E/../../../src/Lazy/dropUntil.ts","webpack://_N_E/../../../src/Lazy/dropWhile.ts","webpack://_N_E/../../../src/Lazy/entries.ts","webpack://_N_E/../../../src/Lazy/append.ts","webpack://_N_E/../../../src/Lazy/concat.ts","webpack://_N_E/../../../src/Lazy/flat.ts","webpack://_N_E/../../../src/Lazy/flatMap.ts","webpack://_N_E/../../../src/Lazy/range.ts","webpack://_N_E/../consume.ts","webpack://_N_E/../../../src/Lazy/chunk.ts","webpack://_N_E/../../../src/Lazy/drop.ts","webpack://_N_E/../tap.ts","webpack://_N_E/../../../src/Lazy/peek.ts","webpack://_N_E/../../../src/Lazy/slice.ts","webpack://_N_E/../../../src/Lazy/toAsync.ts","webpack://_N_E/../../../src/Lazy/fx.ts","webpack://_N_E/../../../src/Lazy/intersectionBy.ts","webpack://_N_E/../../../src/Lazy/intersection.ts","webpack://_N_E/../../../src/Lazy/keys.ts","webpack://_N_E/../../../src/Lazy/split.ts","webpack://_N_E/../../../src/Lazy/values.ts","webpack://_N_E/../../../src/Lazy/zipWith.ts","webpack://_N_E/../../../src/Lazy/index.ts","webpack://_N_E/../index.ts","webpack://_N_E/../focusManager.ts","webpack://_N_E/../notifyManager.ts","webpack://_N_E/../onlineManager.ts","webpack://_N_E/../query.ts","webpack://_N_E/../queryObserver.ts","webpack://_N_E/../removable.ts","webpack://_N_E/../retryer.ts","webpack://_N_E/../subscribable.ts","webpack://_N_E/../thenable.ts","webpack://_N_E/../utils.ts","webpack://_N_E/../QueryClientProvider.tsx","webpack://_N_E/../QueryErrorResetBoundary.tsx","webpack://_N_E/../errorBoundaryUtils.ts","webpack://_N_E/../isRestoring.ts","webpack://_N_E/../queryOptions.ts","webpack://_N_E/../suspense.ts","webpack://_N_E/../useBaseQuery.ts","webpack://_N_E/../useQuery.ts","webpack://_N_E/./node_modules/axios/lib/helpers/bind.js","webpack://_N_E/./node_modules/axios/lib/utils.js","webpack://_N_E/./node_modules/axios/lib/core/AxiosError.js","webpack://_N_E/./node_modules/axios/lib/helpers/null.js","webpack://_N_E/./node_modules/axios/lib/helpers/toFormData.js","webpack://_N_E/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://_N_E/./node_modules/axios/lib/helpers/buildURL.js","webpack://_N_E/./node_modules/axios/lib/core/InterceptorManager.js","webpack://_N_E/./node_modules/axios/lib/defaults/transitional.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/index.js","webpack://_N_E/./node_modules/axios/lib/platform/common/utils.js","webpack://_N_E/./node_modules/axios/lib/platform/index.js","webpack://_N_E/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://_N_E/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://_N_E/./node_modules/axios/lib/defaults/index.js","webpack://_N_E/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://_N_E/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://_N_E/./node_modules/axios/lib/core/transformData.js","webpack://_N_E/./node_modules/axios/lib/cancel/isCancel.js","webpack://_N_E/./node_modules/axios/lib/cancel/CanceledError.js","webpack://_N_E/./node_modules/axios/lib/core/settle.js","webpack://_N_E/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://_N_E/./node_modules/axios/lib/helpers/speedometer.js","webpack://_N_E/./node_modules/axios/lib/helpers/throttle.js","webpack://_N_E/./node_modules/axios/lib/helpers/progressEventReducer.js","webpack://_N_E/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://_N_E/./node_modules/axios/lib/helpers/cookies.js","webpack://_N_E/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://_N_E/./node_modules/axios/lib/helpers/combineURLs.js","webpack://_N_E/./node_modules/axios/lib/core/buildFullPath.js","webpack://_N_E/./node_modules/axios/lib/core/mergeConfig.js","webpack://_N_E/./node_modules/axios/lib/helpers/resolveConfig.js","webpack://_N_E/./node_modules/axios/lib/adapters/xhr.js","webpack://_N_E/./node_modules/axios/lib/helpers/composeSignals.js","webpack://_N_E/./node_modules/axios/lib/helpers/trackStream.js","webpack://_N_E/./node_modules/axios/lib/adapters/fetch.js","webpack://_N_E/./node_modules/axios/lib/adapters/adapters.js","webpack://_N_E/./node_modules/axios/lib/core/dispatchRequest.js","webpack://_N_E/./node_modules/axios/lib/env/data.js","webpack://_N_E/./node_modules/axios/lib/helpers/validator.js","webpack://_N_E/./node_modules/axios/lib/core/Axios.js","webpack://_N_E/./node_modules/axios/lib/cancel/CancelToken.js","webpack://_N_E/./node_modules/axios/lib/helpers/spread.js","webpack://_N_E/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://_N_E/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://_N_E/./node_modules/axios/lib/axios.js","webpack://_N_E/./node_modules/next/node_modules/@swc/helpers/esm/_class_private_method_get.js","webpack://_N_E/./node_modules/next/node_modules/@swc/helpers/esm/_class_private_method_init.js","webpack://_N_E/./node_modules/zustand/esm/middleware.mjs"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\nvar setFunctionLength = require('set-function-length');\n\nvar $TypeError = require('es-errors/type');\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $defineProperty = require('es-define-property');\nvar $max = GetIntrinsic('%Math.max%');\n\nmodule.exports = function callBind(originalFunction) {\n\tif (typeof originalFunction !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\tvar func = $reflectApply(bind, $call, arguments);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\t1 + $max(0, originalFunction.length - (arguments.length - 1)),\n\t\ttrue\n\t);\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\n\nvar gopd = require('gopd');\n\n/** @type {import('.')} */\nmodule.exports = function defineDataProperty(\n\tobj,\n\tproperty,\n\tvalue\n) {\n\tif (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {\n\t\tthrow new $TypeError('`obj` must be an object or a function`');\n\t}\n\tif (typeof property !== 'string' && typeof property !== 'symbol') {\n\t\tthrow new $TypeError('`property` must be a string or a symbol`');\n\t}\n\tif (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {\n\t\tthrow new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {\n\t\tthrow new $TypeError('`nonWritable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {\n\t\tthrow new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 6 && typeof arguments[6] !== 'boolean') {\n\t\tthrow new $TypeError('`loose`, if provided, must be a boolean');\n\t}\n\n\tvar nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n\tvar nonWritable = arguments.length > 4 ? arguments[4] : null;\n\tvar nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n\tvar loose = arguments.length > 6 ? arguments[6] : false;\n\n\t/* @type {false | TypedPropertyDescriptor} */\n\tvar desc = !!gopd && gopd(obj, property);\n\n\tif ($defineProperty) {\n\t\t$defineProperty(obj, property, {\n\t\t\tconfigurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n\t\t\tenumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n\t\t\tvalue: value,\n\t\t\twritable: nonWritable === null && desc ? desc.writable : !nonWritable\n\t\t});\n\t} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {\n\t\t// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable\n\t\tobj[property] = value; // eslint-disable-line no-param-reassign\n\t} else {\n\t\tthrow new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');\n\t}\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\n/** @type {import('.')} */\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n","'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n","'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n","'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n","'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar hasPropertyDescriptors = function hasPropertyDescriptors() {\n\treturn !!$defineProperty;\n};\n\nhasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n\t// node v0.6 has a bug where array lengths can be Set but not Defined\n\tif (!$defineProperty) {\n\t\treturn null;\n\t}\n\ttry {\n\t\treturn $defineProperty([], 'length', { value: 1 }).length !== 1;\n\t} catch (e) {\n\t\t// In Firefox 4-22, defining length on an array throws an exception.\n\t\treturn true;\n\t}\n};\n\nmodule.exports = hasPropertyDescriptors;\n","'use strict';\n\nvar test = {\n\t__proto__: null,\n\tfoo: {}\n};\n\nvar $Object = Object;\n\n/** @type {import('.')} */\nmodule.exports = function hasProto() {\n\t// @ts-expect-error: TS errors on an inherited property for some reason\n\treturn { __proto__: test }.foo === test.foo\n\t\t&& !(test instanceof $Object);\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (\n (typeof globalThis !== 'undefined' && obj === globalThis)\n || (typeof global !== 'undefined' && obj === global)\n ) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowEmptyArrays: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decodeDotInKeys: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n duplicates: 'combine',\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictDepth: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n var existing = has.call(obj, key);\n if (existing && options.duplicates === 'combine') {\n obj[key] = utils.combine(obj[key], val);\n } else if (!existing || options.duplicates === 'last') {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))\n ? []\n : [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;\n var index = parseInt(decodedRoot, 10);\n if (!options.parseArrays && decodedRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== decodedRoot\n && String(index) === decodedRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (decodedRoot !== '__proto__') {\n obj[decodedRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, check strictDepth option for throw, else just add whatever is left\n\n if (segment) {\n if (options.strictDepth === true) {\n throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');\n }\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {\n throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;\n\n if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {\n throw new TypeError('The duplicates option must be either combine, first, or last');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n duplicates: duplicates,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n allowEmptyArrays: false,\n arrayFormat: 'indices',\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encodeDotInKeys: false,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var encodedPrefix = encodeDotInKeys ? prefix.replace(/\\./g, '%2E') : prefix;\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;\n\n if (allowEmptyArrays && isArray(obj) && obj.length === 0) {\n return adjustedPrefix + '[]';\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\\./g, '%2E') : key;\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {\n throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n var arrayFormat;\n if (opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if ('indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = defaults.arrayFormat;\n }\n\n if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n arrayFormat: arrayFormat,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n commaRoundTrip: opts.commaRoundTrip,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];\n var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.allowEmptyArrays,\n options.strictNullHandling,\n options.skipNulls,\n options.encodeDotInKeys,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar limit = 1024;\n\n/* eslint operator-linebreak: [2, \"before\"] */\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var j = 0; j < string.length; j += limit) {\n var segment = string.length >= limit ? string.slice(j, j + limit) : string;\n var arr = [];\n\n for (var i = 0; i < segment.length; ++i) {\n var c = segment.charCodeAt(i);\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n arr[arr.length] = segment.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n arr[arr.length] = hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n arr[arr.length] = hexTable[0xC0 | (c >> 6)]\n + hexTable[0x80 | (c & 0x3F)];\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n arr[arr.length] = hexTable[0xE0 | (c >> 12)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));\n\n arr[arr.length] = hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n out += arr.join('');\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar define = require('define-data-property');\nvar hasDescriptors = require('has-property-descriptors')();\nvar gOPD = require('gopd');\n\nvar $TypeError = require('es-errors/type');\nvar $floor = GetIntrinsic('%Math.floor%');\n\n/** @type {import('.')} */\nmodule.exports = function setFunctionLength(fn, length) {\n\tif (typeof fn !== 'function') {\n\t\tthrow new $TypeError('`fn` is not a function');\n\t}\n\tif (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {\n\t\tthrow new $TypeError('`length` must be a positive 32-bit integer');\n\t}\n\n\tvar loose = arguments.length > 2 && !!arguments[2];\n\n\tvar functionLengthIsConfigurable = true;\n\tvar functionLengthIsWritable = true;\n\tif ('length' in fn && gOPD) {\n\t\tvar desc = gOPD(fn, 'length');\n\t\tif (desc && !desc.configurable) {\n\t\t\tfunctionLengthIsConfigurable = false;\n\t\t}\n\t\tif (desc && !desc.writable) {\n\t\t\tfunctionLengthIsWritable = false;\n\t\t}\n\t}\n\n\tif (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n\t\tif (hasDescriptors) {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);\n\t\t} else {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length);\n\t\t}\n\t}\n\treturn fn;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n* This function traverses the list returning the node corresponding to the given key.\n*\n* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.\n*/\n/** @type {import('.').listGetNode} */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\t/** @type {typeof list | NonNullable<(typeof list)['next']>} */\n\tvar prev = list;\n\t/** @type {(typeof list)['next']} */\n\tvar curr;\n\tfor (; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\tcurr.next = /** @type {NonNullable} */ (list.next);\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\n/** @type {import('.').listGet} */\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\n/** @type {import('.').listSet} */\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = /** @type {import('.').ListNode} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t});\n\t}\n};\n/** @type {import('.').listHas} */\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannel() {\n\t/** @type {WeakMap} */ var $wm;\n\t/** @type {Map} */ var $m;\n\t/** @type {import('.').RootNode} */ var $o;\n\n\t/** @type {import('.').Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n","import type { Iter } from \"../types/Utils\";\n\nexport function isIterable(\n a: Iter | unknown,\n): a is Iterable {\n return typeof (a as any)?.[Symbol.iterator] === \"function\";\n}\n\nexport function isAsyncIterable(\n a: Iter | unknown,\n): a is AsyncIterable {\n return typeof (a as any)?.[Symbol.asyncIterator] === \"function\";\n}\n\nexport function isIterator(\n a: Iter | unknown,\n): a is Iterator | Iterator> | AsyncIterator {\n return typeof (a as any)?.next === \"function\";\n}\n\nexport function toIterator(iterable: Iterable): Iterator;\nexport function toIterator(iterable: AsyncIterable): AsyncIterator;\nexport function toIterator(iterable: Iterable | AsyncIterable) {\n if (isIterable(iterable)) {\n return iterable[Symbol.iterator]();\n }\n if (isAsyncIterable(iterable)) {\n return iterable[Symbol.asyncIterator]();\n }\n throw new TypeError(\n \"toIterator: iterable must be type of Iterable or AsyncIterable\",\n );\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nexport const empty = function* () {};\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nexport const asyncEmpty = async function* () {};\n\nexport const isNotNullable = (a: T): a is NonNullable =>\n a !== null && a !== undefined;\n\nexport const isPromise = (a: Promise | T): a is Promise => {\n if (a instanceof Promise) {\n return true;\n }\n\n if (\n a !== null &&\n typeof a === \"object\" &&\n typeof (a as any).then === \"function\" &&\n typeof (a as any).catch === \"function\"\n ) {\n return true;\n }\n\n return false;\n};\n","import { isPromise } from \"./utils\";\n\nexport class AsyncFunctionException extends Error {\n static MESSAGE = `'Iterable' can not used with async function.\nIf you want to deal with async function, see: [toAsync](https://fxts.dev/docs/toAsync)`;\n\n constructor(message = AsyncFunctionException.MESSAGE) {\n super(message);\n }\n}\n\nexport const throwIfPromiseError = (a: Promise | T): T => {\n if (isPromise(a)) {\n throw new AsyncFunctionException();\n }\n\n return a;\n};\n","import { AsyncFunctionException } from \"./_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"./_internal/utils\";\nimport reduce from \"./reduce\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type Key from \"./types/Key\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\nfunction incSel(parent: { [K in B]: number }, k: B) {\n parent[k] ? parent[k]++ : (parent[k] = 1);\n return parent;\n}\n\n/**\n * Returns a count for the number of objects in each group.\n * Similar to groupBy, but instead of returning a list of values,\n * it returns a count for the number of values in that group.\n *\n * @example\n * ```ts\n * const given = [\n * { category: \"clothes\", desc: \"good\" },\n * { category: \"pants\", desc: \"bad\" },\n * { category: \"shoes\", desc: \"not bad\" },\n * { category: \"shoes\", desc: \"great\" },\n * { category: \"pants\", desc: \"good\" },\n * ];\n *\n * countBy((a) => a.category, given);\n * //{\n * // clothes: 1,\n * // pants: 2,\n * // shoes: 2,\n * // };\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-countby-09t7z | Try It}\n */\n\nfunction countBy(\n f: (a: A) => B,\n iterable: Iterable,\n): { [K in B]: number };\n\nfunction countBy(\n f: (a: A) => B | Promise,\n iterable: AsyncIterable,\n): Promise<{ [K in B]: number }>;\n\nfunction countBy<\n A extends Iterable | AsyncIterable,\n B extends Key,\n>(\n f: (a: IterableInfer) => B | Promise,\n): (iterable: A) => ReturnValueType;\n\nfunction countBy<\n A extends Iterable | AsyncIterable,\n B extends Key,\n>(\n f: (a: IterableInfer) => B | Promise,\n iterable?: A,\n):\n | { [K in B]: number }\n | Promise<{ [K in B]: number }>\n | ((iterable: A) => ReturnValueType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnValueType => {\n return countBy(f, iterable as any) as ReturnValueType<\n A,\n { [K in B]: number }\n >;\n };\n }\n\n const obj = {} as { [K in B]: number };\n\n if (isIterable>(iterable)) {\n return reduce(\n (group, a) => {\n const key = f(a);\n if (isPromise(key)) {\n throw new AsyncFunctionException();\n }\n return incSel(group, key);\n },\n obj,\n iterable,\n );\n }\n\n if (isAsyncIterable>(iterable)) {\n return reduce(\n async (group, a) => {\n const key = await f(a);\n return incSel(group, key);\n },\n obj,\n iterable,\n );\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default countBy;\n","import { isAsyncIterable, isIterable, isPromise } from \"./_internal/utils\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\nfunction sync(f: (a: A) => B, iterable: Iterable): void {\n for (const a of iterable) {\n f(a);\n }\n}\n\nasync function async(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): Promise {\n for await (const item of iterable) {\n const value = f(item);\n if (isPromise(value)) {\n await value;\n }\n }\n}\n\n/**\n * Iterates over Iterable/AsyncIterable, applying each in turn to `f`. (forEach)\n *\n * @example\n * ```ts\n * each(console.log, [1, 2, 3]); // log 1, 2, 3\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-each-kvz6w | Try It}\n */\n// prettier-ignore\nfunction each(\n f: (a: A) => B,\n iterable: Iterable\n): void;\n\nfunction each(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): Promise;\n\nfunction each<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(f: (a: IterableInfer) => B): (iterable: A) => ReturnValueType;\n\nfunction each | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): void | Promise | ((iterable: A) => ReturnValueType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnValueType => {\n return each(f, iterable as any) as ReturnValueType;\n };\n }\n\n if (isIterable>(iterable)) {\n return sync(f, iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return async(f, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default each;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport type Awaited from \"../types/Awaited\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\n\nfunction sync(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator {\n const iterator = iterable[Symbol.iterator]();\n\n return {\n next() {\n const { done, value } = iterator.next();\n if (done) {\n return {\n done: true,\n value: undefined,\n };\n }\n\n return {\n done: false,\n value: f(value),\n };\n },\n [Symbol.iterator]() {\n return this;\n },\n };\n}\n\nfunction async(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n\n return {\n async next(_concurrent) {\n const { done, value } = await iterator.next(_concurrent);\n if (done) return { done, value } as IteratorReturnResult;\n return {\n done: false,\n value: await f(value),\n };\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable of values by running each applying `f`.\n *\n * If the `map` causes side effects, it is recommended to use `mapEffect` instead.\n *\n * @example\n * ```ts\n * const iter = map(a => a + 10, [1, 2, 3, 4]);\n * iter.next() // {done:false, value: 11}\n * iter.next() // {done:false, value: 12}\n * iter.next() // {done:false, value: 13}\n * iter.next() // {done:false, value: 14},\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4],\n * map(a => a + 10),\n * toArray,\n * ); // [11, 12, 13, 14]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * map(a => a + 10),\n * toArray,\n * ); // [11, 12, 13, 14]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * toAsync,\n * map(async (a) => a + 10),\n * toArray,\n * ); // [11, 12, 13, 14]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * map(a => a + 10),\n * toArray,\n * ); // [11, 12, 13, 14]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-map-j68jv | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction map(\n f: (a: A) => B,\n iterable: Iterable\n): IterableIterator;\n\nfunction map(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator>;\n\nfunction map | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction map | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnIterableIteratorType => {\n return map(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable>(iterable)) {\n return sync(f, iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return async(f, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default map;\n","import { isAsyncIterable } from \"../_internal/utils\";\nimport type { Reject, Resolve } from \"../types/Utils\";\n\nexport class Concurrent {\n length: number;\n\n constructor(length: number) {\n this.length = length;\n }\n\n static of(length: number) {\n return new Concurrent(length);\n }\n}\n\nexport const isConcurrent = (concurrent: unknown): concurrent is Concurrent => {\n return concurrent instanceof Concurrent;\n};\n\n/**\n * Concurrent is used to balance the load of multiple asynchronous requests.\n * The first argument receives a number that controls the number of loads, and the second argument is an AsyncIterable.\n * See {@link https://fxts.dev/docs/toAsync | toAsync} to create an AsyncIterable .\n *\n * @example\n * ```ts\n * await pipe(\n * [1, 2, 3, 4, 5, 6],\n * toAsync,\n * map((a) => delay(1000, a)),\n * concurrent(3),\n * each(console.log), // log 1, 2, 3, 4, 5, 6\n * ); // 2 seconds\n *\n * // evaluation\n * // ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐\n * // │ 1 │──│ 2 │──│ 3 │──│ 4 │──│ 5 │──│ 6 │\n * // └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘\n * // map │ │ │ │ │ │\n * // concurrent(3) (1) (1) (1) (2) (2) (2)\n * // │ │ │ │ │ │\n * // ▼ ▼ ▼ ▼ ▼ ▼\n *\n * await pipe(\n * [1, 2, 3, 4, 5, 6],\n * toAsync,\n * map((a) => delay(1000, a)),\n * each(console.log), // log 1, 2, 3, 4, 5, 6\n * ); // 6 seconds\n *\n * // evaluation\n * // ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐\n * // │ 1 │──│ 2 │──│ 3 │──│ 4 │──│ 5 │──│ 6 │\n * // └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘\n * // map │ │ │ │ │ │\n * // (1) (2) (3) (4) (5) (6)\n * // │ │ │ │ │ │\n * // ▼ ▼ ▼ ▼ ▼ ▼\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-concurrent-4x58c | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync}, {@link https://fxts.dev/docs/toArray | toArray}\n * {@link https://fxts.dev/docs/each | each}, {@link https://fxts.dev/docs/map | map}\n */\nfunction concurrent(\n length: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction concurrent(\n length: number,\n iterable?: AsyncIterable,\n): (iterable: AsyncIterable) => AsyncIterableIterator;\n\nfunction concurrent(\n length: number,\n iterable?: AsyncIterable,\n):\n | AsyncIterableIterator\n | ((iterable: AsyncIterable) => AsyncIterableIterator) {\n if (iterable === undefined) {\n return (iterable) => {\n return concurrent(length, iterable);\n };\n }\n\n if (!Number.isFinite(length) || length <= 0) {\n throw new RangeError(\"'length' must be positive integer\");\n }\n\n if (!isAsyncIterable(iterable)) {\n throw new TypeError(\"'iterable' must be type of AsyncIterable\");\n }\n\n const iterator = iterable[Symbol.asyncIterator]();\n const buffer: PromiseSettledResult>[] = [];\n let prev = Promise.resolve();\n let nextCallCount = 0;\n let resolvedItemCount = 0;\n let finished = false;\n let pending = false;\n const settlementQueue: [Resolve, Reject][] = [];\n\n const consumeBuffer = () => {\n while (buffer.length > 0 && nextCallCount > resolvedItemCount) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const p = buffer.shift()!;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [resolve, reject] = settlementQueue.shift()!;\n if (p.status === \"fulfilled\") {\n resolvedItemCount++;\n resolve(p.value);\n if (p.value.done) {\n finished = true;\n }\n } else {\n reject(p.reason);\n finished = true;\n break;\n }\n }\n };\n\n const fillBuffer = () => {\n if (pending) {\n prev = prev.then(\n () =>\n void (!finished && nextCallCount > resolvedItemCount && fillBuffer()),\n );\n } else {\n const nextItems = Promise.allSettled(\n Array.from({ length }, () =>\n iterator.next(Concurrent.of(length) as any),\n ),\n );\n pending = true;\n prev = prev\n .then(() => nextItems)\n .then((nextItems) => {\n buffer.push(...nextItems);\n pending = false;\n recur();\n });\n }\n };\n\n function recur() {\n if (finished || nextCallCount === resolvedItemCount) {\n return;\n } else if (buffer.length > 0) {\n consumeBuffer();\n } else {\n fillBuffer();\n }\n }\n\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n next() {\n nextCallCount++;\n if (finished) {\n return { done: true, value: undefined };\n }\n return new Promise((resolve, reject) => {\n settlementQueue.push([resolve, reject]);\n recur();\n });\n },\n } as AsyncIterableIterator;\n}\n\nexport default concurrent;\n","import { AsyncFunctionException } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(f: (a: A) => B, iterable: Iterable) {\n for (const item of iterable) {\n yield item;\n\n const res = f(item);\n if (isPromise(res)) {\n throw new AsyncFunctionException();\n }\n\n if (res) {\n break;\n }\n }\n}\n\nfunction asyncSequential(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n let end = false;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(_concurrent) {\n if (end) {\n return { done: true, value: undefined };\n }\n\n const { done, value } = await iterator.next(_concurrent);\n if (done || end) {\n return { done: true, value: undefined };\n }\n\n const cond = await f(value);\n if (end) {\n return { done: true, value: undefined };\n }\n\n if (cond) {\n end = true;\n }\n\n return { done: false, value };\n },\n };\n}\n\nfunction async(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncSequential(f, concurrent(_concurrent.length, iterable))\n : asyncSequential(f, iterable);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable that taken values until truthy when given `f` is applied.\n *\n * @example\n * ```ts\n * const iter = takeUntil(a => a % 2 === 0, [1, 2, 3, 4, 5, 6]);\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5, 6],\n * takeUntil(a => a % 2 === 0),\n * toArray,\n * ); // [1, 2]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5, 6]),\n * takeUntil(a => a % 2 === 0),\n * toArray,\n * ); // [1, 2]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5, 6]),\n * toAsync,\n * takeUntil(async (a) => a % 2 === 0),\n * toArray,\n * ); // [1, 2]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3),\n * Promise.resolve(4), Promise.resolve(5), Promise.resolve(6)],\n * toAsync,\n * takeUntil(a => a % 2 === 0),\n * toArray,\n * ); // [1, 2]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-takeuntil-gv1jk | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction takeUntil(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction takeUntil(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction takeUntil | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction takeUntil | AsyncIterable, B>(\n f: (a: A) => B,\n iterable?: Iterable | AsyncIterable,\n):\n | IterableIterator>\n | AsyncIterableIterator>\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return takeUntil(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable(iterable)) {\n return sync(f, iterable) as IterableIterator>;\n }\n\n if (isAsyncIterable(iterable)) {\n return async(f, iterable) as AsyncIterableIterator>;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default takeUntil;\n","/**\n * Returns the `!` of its argument.\n * It will return `true` when passed falsy value, and `false` when passed a truth value.\n *\n * @example\n * ```ts\n * not(true); // false\n * not(1); // false\n * not(NaN); // true\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-not-37xmk | Try It}\n */\nfunction not(a: unknown): boolean {\n return !a;\n}\n\nexport default not;\n","import { isPromise } from \"./_internal/utils\";\nimport type Awaited from \"./types/Awaited\";\n\ntype Pipe1 = ? Awaited

: P) => any>(\n a: P,\n f: F,\n) => ReturnType extends Promise\n ? ReturnType\n : P extends Promise\n ? Promise>\n : ReturnType;\n\n/**\n * @internal\n */\nconst pipe1: Pipe1 = (a, f) => {\n return isPromise(a) ? a.then(f as any) : f(a as any);\n};\n\nexport default pipe1;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport pipe1 from \"./pipe1\";\nimport type Arrow from \"./types/Arrow\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type { AsyncReducer, SyncReducer } from \"./types/Reducer\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\nfunction sync(\n f: SyncReducer,\n acc: Acc,\n iterable: Iterable,\n): Acc {\n for (const a of iterable) {\n acc = f(acc, a);\n }\n return acc;\n}\n\nasync function async(\n f: SyncReducer,\n acc: Promise,\n iterable: AsyncIterable,\n) {\n for await (const a of iterable) {\n // becauseof using es5, use `await`\n acc = await pipe1(acc, (acc) => f(acc as Acc, a));\n }\n return acc;\n}\n\n/**\n * Also known as foldl, this method boils down a list of values into a single value.\n *\n * @example\n * You can reduce values into homogeneous type.\n *\n * ```ts\n * const sum = (a:number, b:number) => a + b;\n *\n * // with implicit seed with first element\n * reduce(sum, [1, 2, 3, 4]); // 10\n *\n * // with explicit seed\n * reduce(sum, 0, [1, 2, 3, 4]); // 10\n * ```\n *\n * You can reduce values into heterogeneous type.\n *\n * ```ts\n * // reduce { id: number; score: number; } to number\n * reduce((acc, value) => acc + value.score, 0, [\n * { id: 0, score: 1 },\n * { id: 5, score: 2 },\n * { id: 9, score: 3 },\n * { id: 3, score: 4 }\n * ])\n * ```\n *\n * Omitting iterable will returns function, useful when using with pipe.\n *\n * ```ts\n * pipe(\n * [1, 2, 3, 4],\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * reduce(sum),\n * ); // 26\n * ```\n *\n * For backward compatibility, `reduce` can support partial lazy form.\n * You may want to use `reduceLazy` to use `seed`.\n *\n * ```ts\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * map((a) => a + 10),\n * filter(a => a % 2 === 0),\n * reduce(sum),\n * ); // 26\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * toAsync,\n * map(async (a) => a + 10),\n * filter(a => a % 2 === 0),\n * reduce(sum),\n * ); // 26\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * reduce(sum),\n * ); // 26\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-reduce-tf56j | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/map | map}, {@link https://fxts.dev/docs/filter | filter}\n *\n * @typeParam T - Type of values in `iterable` which would be consummed.\n * @typeParam Acc - Type of `acc` which is the type of accumulative value\n */\n\nfunction reduce(\n f: Arrow,\n seed: Acc,\n iterable: T,\n): Acc;\n\nfunction reduce(f: SyncReducer, iterable: Iterable): T;\n\nfunction reduce(f: SyncReducer, iterable: Iterable): Acc;\n\nfunction reduce(\n f: SyncReducer,\n seed: Acc,\n iterable: Iterable,\n): Acc;\n\nfunction reduce(\n f: SyncReducer,\n iterable: AsyncIterable,\n): Promise;\n\nfunction reduce(\n f: AsyncReducer,\n seed: Acc | Promise,\n iterable: AsyncIterable,\n): Promise;\n\nfunction reduce(\n f: AsyncReducer,\n iterable: AsyncIterable,\n): Promise;\n\nfunction reduce | AsyncIterable>(\n f: AsyncReducer, IterableInfer>,\n): (iterable: T) => ReturnValueType;\n\nfunction reduce | AsyncIterable, Acc>(\n f: AsyncReducer>,\n): (iterable: T) => ReturnValueType;\n\nfunction reduce | AsyncIterable, Acc>(\n f: SyncReducer>,\n seed?: Acc | Iterable> | AsyncIterable>,\n iterable?: Iterable> | AsyncIterable>,\n): Acc | Promise | ((iterable: T) => ReturnValueType) {\n if (iterable === undefined) {\n if (seed === undefined) {\n return (iterable: T) =>\n reduce(f, iterable as any) as ReturnValueType;\n }\n\n if (isIterable(seed)) {\n const iterator = seed[Symbol.iterator]();\n const { done, value } = iterator.next();\n if (done) {\n throw new TypeError(\"'reduce' of empty iterable with no initial value\");\n }\n return sync(f, value as Acc, {\n [Symbol.iterator]() {\n return iterator;\n },\n });\n }\n\n if (isAsyncIterable(seed)) {\n const iterator = seed[Symbol.asyncIterator]();\n return iterator.next().then(({ done, value }) => {\n if (done) {\n throw new TypeError(\n \"'reduce' of empty iterable with no initial value\",\n );\n }\n\n return async(f, value as Promise, {\n [Symbol.asyncIterator]() {\n return iterator;\n },\n });\n });\n }\n\n throw new TypeError(\n \"'iterable' must be type of Iterable or AsyncIterable. Are you looking for 'reduceLazy'?\",\n );\n }\n\n if (isIterable(iterable)) {\n return sync(f, seed as Acc, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(f, Promise.resolve(seed as Acc), iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default reduce;\n","import pipe1 from \"./pipe1\";\nimport reduce from \"./reduce\";\nimport type Awaited from \"./types/Awaited\";\nimport type ReturnPipeType from \"./types/ReturnPipeType\";\n\n/**\n * Performs left to right function composition.\n * The first argument can have any value; the remaining arguments must be unary.\n *\n * @example\n * ```ts\n * pipe(\n * [1, 2, 3, 4, 5],\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * toAsync,\n * map(async (a) => a + 10),\n * filter((a) => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4), Promise.resolve(5)],\n * toAsync,\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-toarray-fy84i | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/map | map}, {@link https://fxts.dev/docs/filter | filter}\n */\n// eslint-disable-next-line\n// @ts-ignore\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => R\n): ReturnPipeType<[T1,R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => R\n): ReturnPipeType<[T1, T2, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R]>;\n\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => T15,\n f15: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => T15,\n f15: (a: Awaited) => T16,\n f16: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => T15,\n f15: (a: Awaited) => T16,\n f16: (a: Awaited) => T17,\n f17: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => T15,\n f15: (a: Awaited) => T16,\n f16: (a: Awaited) => T17,\n f17: (a: Awaited) => T18,\n f18: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => T15,\n f15: (a: Awaited) => T16,\n f16: (a: Awaited) => T17,\n f17: (a: Awaited) => T18,\n f18: (a: Awaited) => T19,\n f19: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R]>;\n\n// prettier-ignore\nfunction pipe(\n a: T1,\n f1: (a: Awaited) => T2,\n f2: (a: Awaited) => T3,\n f3: (a: Awaited) => T4,\n f4: (a: Awaited) => T5,\n f5: (a: Awaited) => T6,\n f6: (a: Awaited) => T7,\n f7: (a: Awaited) => T8,\n f8: (a: Awaited) => T9,\n f9: (a: Awaited) => T10,\n f10: (a: Awaited) => T11,\n f11: (a: Awaited) => T12,\n f12: (a: Awaited) => T13,\n f13: (a: Awaited) => T14,\n f14: (a: Awaited) => T15,\n f15: (a: Awaited) => T16,\n f16: (a: Awaited) => T17,\n f17: (a: Awaited) => T18,\n f18: (a: Awaited) => T19,\n f19: (a: Awaited) => T20,\n f20: (a: Awaited) => R,\n): ReturnPipeType<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R]>;\n\nfunction pipe(a: any, ...fns: any[]) {\n return reduce(pipe1, a, fns);\n}\n\nexport default pipe;\n","import { throwIfPromiseError } from \"./_internal/error\";\nimport { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport map from \"./Lazy/map\";\nimport takeUntil from \"./Lazy/takeUntil\";\nimport not from \"./not\";\nimport pipe from \"./pipe\";\nimport reduce from \"./reduce\";\nimport type Arrow from \"./types/Arrow\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Returns true if all of the values in Iterable/AsyncIterable pass the `f` truth test.\n *\n * @example\n * ```ts\n * every((a) => a % 2 === 0, [2, 4, 6, 8, 10]);\n * // true\n *\n * every((a) => a % 2 === 0, [2, 4, 6, 7, 10]);\n * // false\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-every-g91dh | Try It}\n */\n\nfunction every(f: Arrow, iterable: A): true;\n\n// prettier-ignore\nfunction every(\n f: (a: A) => B,\n iterable: Iterable,\n): boolean;\n\nfunction every(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): Promise;\n\nfunction every<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(f: (a: IterableInfer) => B): (a: A) => ReturnValueType;\n\nfunction every<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): boolean | Promise | ((iterable: A) => ReturnValueType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return every(f, iterable as any) as ReturnValueType;\n };\n }\n\n if (isIterable>(iterable)) {\n return pipe(\n map((a) => throwIfPromiseError(f(a)), iterable),\n takeUntil(not),\n (acc) =>\n reduce(\n (a: boolean, b: boolean) => a && b,\n true,\n acc as Iterable,\n ),\n (a) => a ?? true,\n Boolean,\n );\n }\n\n if (isAsyncIterable>(iterable)) {\n return pipe(\n map(f, iterable),\n takeUntil(not),\n (acc) =>\n reduce(\n (a: boolean, b: boolean) => a && b,\n true,\n acc as AsyncIterable,\n ),\n (a) => a ?? true,\n Boolean,\n );\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default every;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\n\nfunction* sync(length: number, iterable: Iterable): IterableIterator {\n const iterator = iterable[Symbol.iterator]();\n let cur = null;\n while (length-- > 0 && (cur = iterator.next()).done === false) {\n yield cur.value;\n }\n}\n\nfunction async(\n length: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(_concurrent) {\n if (length-- < 1) return { done: true, value: undefined };\n return iterator.next(_concurrent);\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable that taken the first argument `l` values from iterable\n *\n * @example\n * ```ts\n * const iter = take(2, [0, 1, 2, 3, 4, 5, 6]);\n * iter.next() // {done:false, value: 0}\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [0, 1, 2, 3, 4, 5, 6],\n * take(2),\n * toArray,\n * ); // [0, 1]\n *\n * await pipe(\n * Promise.resolve([0, 1, 2, 3, 4, 5, 6]),\n * take(2),\n * toArray,\n * ); // [0, 1]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(0), Promise.resolve(1), Promise.resolve(2),\n * Promise.resolve(3), Promise.resolve(4), Promise.resolve(5), Promise.resolve(6)],\n * toAsync,\n * take(2),\n * toArray,\n * ); // [0, 1]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-take-372bs | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction take(\n l: number,\n iterable: Iterable\n): IterableIterator;\n\nfunction take(\n l: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction take | AsyncIterable>(\n l: number,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction take | AsyncIterable>(\n l: number,\n iterable?: A,\n):\n | IterableIterator>\n | AsyncIterableIterator>\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return take(l, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable>(iterable)) {\n return sync(l, iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return async(l, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default take;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport type ReturnArrayType from \"./types/ReturnArrayType\";\n\nasync function async(iterable: AsyncIterable): Promise {\n const res: A[] = [];\n for await (const item of iterable) {\n res.push(item);\n }\n return res;\n}\n\n/**\n * Takes item from Iterable/AsyncIterable and returns an array.\n * It is recommended to use {@link https://fxts.dev/docs/pipe | pipe} together.\n *\n * @example\n * ```ts\n * pipe(\n * [1, 2, 3, 4, 5],\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * map(a => a + 10),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * toAsync,\n * map(async (a) => a + 10),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [12, 14]\n *\n * // with toAsync\n * await pipe(\n * [\n * Promise.resolve(1),\n * Promise.resolve(2),\n * Promise.resolve(3),\n * Promise.resolve(4),\n * Promise.resolve(5)\n * ],\n * toAsync,\n * map((a) => a + 10),\n * filter((a) => a % 2 === 0),\n * toArray\n *);\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-toarray-fy84i | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/map | map}, {@link https://fxts.dev/docs/filter | filter}\n */\nfunction toArray | AsyncIterable>(\n iter: A,\n): ReturnArrayType;\n\nfunction toArray(iter: AsyncIterable | Iterable) {\n if (isAsyncIterable(iter)) {\n return async(iter);\n } else if (isIterable(iter)) {\n return Array.from(iter);\n } else {\n return [] as A[];\n }\n}\n\nexport default toArray;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport take from \"./Lazy/take\";\nimport pipe from \"./pipe\";\nimport toArray from \"./toArray\";\n\ntype HeadReturnType = T extends readonly [a: infer H, ...rest: any[]]\n ? H\n : T extends readonly never[]\n ? undefined\n : T extends AsyncIterable\n ? Promise\n : T extends Iterable\n ? U | undefined\n : never;\n\n/**\n * Returns the first element of Iterable/AsyncIterable.\n *\n * There is another alias function called `first`.\n *\n * @example\n * ```ts\n * head([1, 2, 3, 4, 5]); // 1\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5],\n * head,\n * ); // 1\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * head,\n * ); // 1\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3)],\n * toAsync,\n * head,\n * ); // 1\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-head-4sh8u | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync}\n */\nfunction head | AsyncIterable>(\n iterable: T,\n): HeadReturnType;\n\nfunction head(iterable: Iterable | AsyncIterable) {\n if (isIterable(iterable)) {\n return pipe(take(1, iterable), toArray, ([a]) => a);\n }\n if (isAsyncIterable(iterable)) {\n return pipe(take(1, iterable), toArray, ([a]) => a);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default head;\n","import { AsyncFunctionException } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"../_internal/utils\";\nimport pipe1 from \"../pipe1\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport type TruthyTypesOf from \"../types/TrutyTypesOf\";\nimport type { Reject, Resolve } from \"../types/Utils\";\nimport concurrent, { isConcurrent, type Concurrent } from \"./concurrent\";\n\nasync function* asyncSequential(\n f: (a: A) => unknown,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n for await (const item of iterable) {\n if (await f(item)) yield item;\n }\n}\n\nfunction asyncConcurrent(\n iterable: AsyncIterable<[boolean, A]>,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n const settlementQueue: [Resolve, Reject][] = [] as unknown as [\n Resolve,\n Reject,\n ][];\n const buffer: A[] = [];\n let finished = false;\n let nextCallCount = 0;\n let resolvedCount = 0;\n let prevItem = Promise.resolve();\n\n function fillBuffer(concurrent: Concurrent) {\n const nextItem = iterator.next(concurrent as any);\n prevItem = prevItem\n .then(() => nextItem)\n .then(({ done, value }) => {\n if (done) {\n while (settlementQueue.length > 0) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [resolve] = settlementQueue.shift()!;\n resolve({ done: true, value: undefined });\n }\n return void (finished = true);\n }\n\n const [cond, item] = value;\n if (cond) {\n buffer.push(item);\n }\n recur(concurrent);\n })\n\n .catch((reason: any) => {\n finished = true;\n while (settlementQueue.length > 0) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [, reject] = settlementQueue.shift()!;\n reject(reason);\n }\n });\n }\n\n function consumeBuffer() {\n while (buffer.length > 0 && nextCallCount > resolvedCount) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const value = buffer.shift()!;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [resolve] = settlementQueue.shift()!;\n resolve({ done: false, value });\n resolvedCount++;\n }\n }\n\n function recur(concurrent: Concurrent) {\n if (finished || nextCallCount === resolvedCount) {\n return;\n } else if (buffer.length > 0) {\n consumeBuffer();\n } else {\n fillBuffer(concurrent);\n }\n }\n\n return {\n async next(concurrent: any) {\n nextCallCount++;\n if (finished) {\n return { done: true, value: undefined };\n }\n return new Promise((resolve, reject) => {\n settlementQueue.push([resolve, reject]);\n recur(concurrent as Concurrent);\n });\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\nfunction toFilterIterator(\n f: (a: A) => unknown,\n iterable: AsyncIterable,\n): AsyncIterableIterator<[boolean, A]> {\n const iterator = iterable[Symbol.asyncIterator]();\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(_concurrent) {\n const { done, value } = await iterator.next(_concurrent);\n if (done) {\n return {\n done: true,\n value: undefined,\n } as IteratorReturnResult;\n }\n\n return pipe1(\n f(value),\n (cond) =>\n ({\n done,\n value: [Boolean(cond), value],\n } as IteratorYieldResult<[boolean, A]>),\n );\n },\n };\n}\n\nfunction async(\n f: (a: A) => unknown,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncConcurrent(\n concurrent(_concurrent.length, toFilterIterator(f, iterable)),\n )\n : asyncSequential(f, iterable);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\nfunction* sync(f: (a: A) => unknown, iterable: Iterable) {\n for (const a of iterable) {\n const res = f(a);\n\n if (isPromise(res)) {\n throw new AsyncFunctionException();\n }\n\n if (res) {\n yield a;\n }\n }\n}\n\n/**\n * Return Iterable/AsyncIterable of all elements `f` returns truthy for\n *\n * @example\n * ```ts\n * const iter = filter((a)=> a % 2 === 0, [0, 1, 2, 3, 4, 5, 6]);\n * iter.next() // {done:false, value: 0}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:false, value: 4}\n * iter.next() // {done:false, value: 6}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [0, 1, 2, 3, 4, 5, 6],\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [0, 2, 4, 6]\n *\n * await pipe(\n * Promise.resolve([0, 1, 2, 3, 4, 5, 6]),\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [0, 2, 4, 6]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([0, 1, 2, 3, 4, 5, 6]),\n * toAsync,\n * filter(async a => a % 2 === 0),\n * toArray,\n * ); // [0, 2, 4, 6]\n *\n * // toAsync\n * await pipe(\n * [Promise.resolve(0), Promise.resolve(1), Promise.resolve(2), Promise.resolve(3),\n * Promise.resolve(4), Promise.resolve(5), Promise.resolve(6)],\n * toAsync,\n * filter(a => a % 2 === 0),\n * toArray,\n * ); // [0, 2, 4, 6]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-filter-2ibz2 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction filter(\n f: BooleanConstructor,\n iterable: Iterable,\n): IterableIterator>;\n\nfunction filter(\n f: (a: A) => a is B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction filter(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction filter(\n f: BooleanConstructor,\n iterable: AsyncIterable,\n): AsyncIterableIterator>;\n\nfunction filter(\n f: (a: A) => a is B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction filter(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction filter | AsyncIterable>(\n f: BooleanConstructor,\n): (\n iterable: A,\n) => ReturnIterableIteratorType>>;\n\nfunction filter<\n A extends Iterable | AsyncIterable,\n B extends IterableInfer,\n>(\n f: (a: IterableInfer) => a is B,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction filter<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnIterableIteratorType>;\n\nfunction filter<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | IterableIterator>\n | IterableIterator>>\n | AsyncIterableIterator>\n | AsyncIterableIterator>>\n | ((iterable: A) => ReturnIterableIteratorType>)\n | ((\n iterable: A,\n ) => ReturnIterableIteratorType>>) {\n if (iterable === undefined) {\n return (iterable: A): ReturnIterableIteratorType> =>\n filter(f, iterable as any) as ReturnIterableIteratorType<\n A,\n IterableInfer\n >;\n }\n\n if (isIterable>(iterable)) {\n return sync(f, iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return async(f, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default filter;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport head from \"./head\";\nimport filter from \"./Lazy/filter\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Looks through each value in Iterable/AsyncIterable, returning the first one that passes a truth test `f`,\n * or `undefined` if no value passes the test.\n *\n * @example\n * ```ts\n * find((a) => a === 2, [1, 2, 3, 4]); // 2\n *\n * find((a) => a === \"r\", \"marpple\"); // 'r'\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-find-uhl0o | Try It}\n */\nfunction find(f: (a: T) => unknown, iterable: Iterable): T | undefined;\n\nfunction find(\n f: (a: T) => unknown,\n iterable: AsyncIterable,\n): Promise;\n\nfunction find | AsyncIterable>(\n f: (a: IterableInfer) => unknown,\n iterable?: T,\n): (iterable: T) => ReturnValueType | undefined>;\n\nfunction find | AsyncIterable>(\n f: (a: IterableInfer) => unknown,\n iterable?: T,\n):\n | (IterableInfer | undefined)\n | Promise | undefined>\n | ((iterable: T) => ReturnValueType | undefined>) {\n if (iterable === undefined) {\n return (iterable: T) =>\n find(f, iterable) as ReturnValueType | undefined>;\n }\n if (isIterable>(iterable)) {\n return head(filter(f, iterable));\n }\n if (isAsyncIterable>(iterable)) {\n return head(filter(f, iterable));\n }\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default find;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport type ReturnZipWithIndexType from \"../types/ReturnZipWithIndexType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\nimport map from \"./map\";\n\nfunction _zipWithIndex | AsyncIterable>(\n iterable: T,\n): ReturnZipWithIndexType {\n let i = -1;\n\n return map((a) => [++i, a], iterable as any) as any;\n}\n\nfunction async(iterable: AsyncIterable) {\n let _iterator: AsyncIterator<[number, T]>;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? _zipWithIndex(concurrent(_concurrent.length, iterable))\n : _zipWithIndex(iterable);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable including an index to the existing Iterable/AsyncIterable value.\n *\n * @example\n * ```ts\n * const iter = zipWithIndex([\"a\", \"b\", \"c\", \"d\"]);\n * iter.next() // {done:false, value: [0, \"a\"]}\n * iter.next() // {done:false, value: [1, \"b\"]}\n * iter.next() // {done:false, value: [2, \"c\"]}\n * iter.next() // {done:false, value: [3, \"d\"]}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [\"a\", \"b\", \"c\", \"d\"],\n * zipWithIndex,\n * toArray,\n * ); // [[0, \"a\"], [1, \"b\"], [2, \"c\"], [3, \"d\"]]\n *\n * await pipe(\n * Promise.resolve([\"a\", \"b\", \"c\", \"d\"]),\n * zipWithIndex,\n * toArray,\n * ); // [[0, \"a\"], [1, \"b\"], [2, \"c\"], [3, \"d\"]]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(\"a\"), Promise.resolve(\"b\"), Promise.resolve(\"c\"), Promise.resolve(\"d\")],\n * toAsync,\n * zipWithIndex,\n * toArray,\n * ); // [[0, \"a\"], [1, \"b\"], [2, \"c\"], [3, \"d\"]]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-zipwithindex-p1k31 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction zipWithIndex | AsyncIterable>(\n iterable: T,\n): ReturnZipWithIndexType;\n\nfunction zipWithIndex(\n iterable: Iterable | AsyncIterable,\n): IterableIterator<[number, T]> | AsyncIterableIterator<[number, T]> {\n if (isAsyncIterable(iterable)) {\n return async(iterable);\n }\n if (isIterable(iterable)) {\n return _zipWithIndex(iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default zipWithIndex;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport find from \"./find\";\nimport zipWithIndex from \"./Lazy/zipWithIndex\";\nimport pipe from \"./pipe\";\nimport pipe1 from \"./pipe1\";\nimport type Arrow from \"./types/Arrow\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Returns the index of the first element of Iterable/AsyncIterable which matches f, or -1 if no element matches.\n *\n * @example\n * ```ts\n * const arr = [{a:1}, {a:2}, {a:3}]\n * findIndex((obj) => obj.a === 1, arr); // 0\n * findIndex((obj) => obj.a === 2, arr); // 1\n * findIndex((obj) => obj.a === 4, arr); // -1\n * ```\n */\nfunction findIndex(f: Arrow, iterable: T): -1;\n\nfunction findIndex(f: (a: T) => unknown, iterable: Iterable): number;\n\nfunction findIndex(\n f: (a: T) => unknown,\n iterable: AsyncIterable,\n): Promise;\n\nfunction findIndex | AsyncIterable>(\n f: (a: IterableInfer) => unknown,\n iterable?: T,\n): (iterable: T) => ReturnValueType;\n\nfunction findIndex | AsyncIterable>(\n f: (a: IterableInfer) => unknown,\n iterable?: T,\n): number | Promise | ((iterable: T) => ReturnValueType) {\n if (iterable === undefined) {\n return (iterable: T) =>\n findIndex(f, iterable as any) as ReturnValueType;\n }\n\n if (isIterable(iterable)) {\n return pipe(\n zipWithIndex(iterable) as Iterable<[number, IterableInfer]>,\n find(([, a]) => f(a)),\n (res) => (res ? res[0] : -1),\n );\n }\n\n if (isAsyncIterable(iterable)) {\n return pipe(\n zipWithIndex(iterable) as AsyncIterable<[number, IterableInfer]>,\n find(([, a]) => pipe1(a, f)),\n (res) => (res ? res[0] : -1),\n );\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default findIndex;\n","import { AsyncFunctionException } from \"./_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"./_internal/utils\";\nimport reduce from \"./reduce\";\nimport type Cast from \"./types/Cast\";\nimport type Equals from \"./types/Equals\";\nimport type { GetKeyOf } from \"./types/GetKeyOf\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type iterableInfer from \"./types/IterableInfer\";\nimport type Key from \"./types/Key\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Splits Iterable/AsyncIterable into sets, grouped by the result of running each value through `f`.\n *\n * @example\n * ```ts\n * const given = [\n * { category: \"clothes\", desc: \"good\" },\n * { category: \"pants\", desc: \"bad\" },\n * { category: \"shoes\", desc: \"not bad\" },\n * { category: \"shoes\", desc: \"great\" },\n * { category: \"pants\", desc: \"good\" },\n * ];\n *\n * groupBy((a) => a.category, given);\n * // {\n * // clothes: [{ category: \"clothes\", desc: \"good\" }],\n * // pants: [\n * // { category: \"pants\", desc: \"bad\" },\n * // { category: \"pants\", desc: \"good\" },\n * // ],\n * // shoes: [\n * // { category: \"shoes\", desc: \"not bad\" },\n * // { category: \"shoes\", desc: \"great\" },\n * // ],\n * // };\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-groupby-v8q3b | Try It}\n */\n\nfunction groupBy(\n f: (a: A) => A,\n iterable: Iterable,\n): { [K in A]: K[] };\n\nfunction groupBy(\n f: (a: A) => A | Promise,\n iterable: AsyncIterable,\n): Promise<{ [K in A]: K[] }>;\n\nfunction groupBy(\n f: (a: A) => B,\n iterable: Iterable,\n): {\n [K in B]: (A & { [K2 in GetKeyOf]: K })[];\n};\n\nfunction groupBy(\n f: (a: A) => B | Promise,\n iterable: AsyncIterable,\n): Promise<{\n [K in B]: (A & { [K2 in GetKeyOf]: K })[];\n}>;\n\nfunction groupBy<\n I extends Iterable | AsyncIterable,\n F extends (a: IterableInfer) => any,\n>(\n f: F,\n): (iterable: I) => ReturnValueType<\n I,\n Equals>, IterableInfer> extends 1\n ? {\n [key1 in Awaited>]: key1[];\n }\n : {\n [key1 in Awaited>]: (IterableInfer & {\n [key2 in GetKeyOf, object>, key1>]: key1;\n })[];\n }\n>;\n\nfunction groupBy | AsyncIterable>(\n f: (a: A) => A | Promise,\n): (iterable: B) => ReturnValueType;\nfunction groupBy(\n f: (a: A) => B,\n iterable: Iterable,\n): { [K in B]: A[] };\n\nfunction groupBy(\n f: (a: A) => B | Promise,\n iterable: AsyncIterable,\n): Promise<{ [K in B]: A[] }>;\n\nfunction groupBy<\n A extends Iterable | AsyncIterable,\n B extends Key,\n>(\n f: (a: IterableInfer) => B | Promise,\n): (iterable: A) => ReturnValueType[] }>;\n\nfunction groupBy<\n A extends Iterable | AsyncIterable,\n B extends Key,\n>(\n f: (a: IterableInfer) => B | Promise,\n iterable?: A,\n):\n | { [K in B]: IterableInfer[] }\n | Promise<{ [K in B]: IterableInfer[] }>\n | ((iterable: A) => ReturnValueType[] }>) {\n if (iterable === undefined) {\n return (\n iterable: A,\n ): ReturnValueType[] }> => {\n return groupBy(f, iterable as any) as ReturnValueType<\n A,\n { [K in B]: IterableInfer[] }\n >;\n };\n }\n\n const obj = {} as { [K in B]: IterableInfer[] };\n if (isIterable>(iterable)) {\n return reduce(\n (group, a) => {\n const key = f(a);\n if (isPromise(key)) {\n throw new AsyncFunctionException();\n }\n return (group[key] || (group[key] = [])).push(a), group;\n },\n obj,\n iterable,\n );\n }\n\n if (isAsyncIterable>(iterable)) {\n return reduce(\n async (group, a) => {\n const key = await f(a);\n return (group[key] || (group[key] = [])).push(a), group;\n },\n obj,\n iterable,\n );\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default groupBy;\n","/**\n * Returns the same value as the given argument.\n *\n * @example\n * ```ts\n * identity(5); // 5\n * ```\n */\nfunction identity(a: T) {\n return a;\n}\n\nexport default identity;\n","import { throwIfPromiseError } from \"./_internal/error\";\nimport { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport identity from \"./identity\";\nimport map from \"./Lazy/map\";\nimport takeUntil from \"./Lazy/takeUntil\";\nimport pipe from \"./pipe\";\nimport reduce from \"./reduce\";\nimport type Arrow from \"./types/Arrow\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Returns true if any of the values in Iterable/AsyncIterable pass `f` truth test\n *\n * @example\n * ```ts\n * some(a=> a, [null, 0, 1, false]); // true\n *\n * // with pipe\n * pipe(\n * [{id:1, age: 27}, {id:2, age: 36}, {id:3, age: 42}],\n * map(user => user.age),\n * some(age => age > 40),\n * ); // true\n *\n * await pipe(\n * Promise.resolve([{id:1, age: 27}, {id:2, age: 36}, {id:3, age: 42}]),\n * map(user => user.age),\n * some(age => age > 40),\n * ); // true\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve({id:1, age: 27}), Promise.resolve({id:2, age: 36}), Promise.resolve({id:3, age: 42})],\n * toAsync,\n * map(user => user.age),\n * some(age => age > 40),\n * ); // true\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-some-inp3l | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/map | map}\n */\n// prettier-ignore\n\nfunction some(\n f: Arrow,\n iterable: A\n): false;\n\nfunction some(f: (a: A) => B, iterable: Iterable): boolean;\n\nfunction some(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): Promise;\n\nfunction some<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(f: (a: IterableInfer) => B): (a: A) => ReturnValueType;\n\nfunction some<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): boolean | Promise | ((iterable: A) => ReturnValueType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return some(f, iterable as any) as ReturnValueType;\n };\n }\n\n if (isIterable>(iterable)) {\n return pipe(\n map((a) => throwIfPromiseError(f(a)), iterable),\n takeUntil(identity),\n (acc) =>\n reduce(\n (a: boolean, b: boolean) => a || b,\n false,\n acc as Iterable,\n ),\n Boolean,\n );\n }\n\n if (isAsyncIterable>(iterable)) {\n return pipe(\n map(f, iterable),\n takeUntil(identity),\n (acc) =>\n reduce(\n (a: boolean, b: boolean) => a || b,\n false,\n acc as AsyncIterable,\n ),\n Boolean,\n );\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default some;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport some from \"./some\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Checks if the specified value is equal.\n *\n * There is another alias function called `contains`.\n *\n * @example\n * ```ts\n * includes('c', 'abcd'); // true\n * includes('e', 'abcd'); // false\n * includes(3, [1,2,3,4]); // true\n * includes(5, [1,2,3,4]); // false\n * ```\n */\nfunction includes(value: unknown, iterable: T): false;\n\nfunction includes(value: T, iterable: Iterable): value is U;\n\n// prettier-ignore\nfunction includes(\n value: unknown,\n iterable: Iterable\n): boolean;\n\nfunction includes(\n value: unknown,\n iterable: AsyncIterable,\n): Promise;\n\nfunction includes | AsyncIterable>(\n value: unknown,\n): (iterable: T) => ReturnValueType;\n\nfunction includes | AsyncIterable>(\n value: unknown,\n iterable?: T,\n): boolean | Promise | ((iterable: T) => ReturnValueType) {\n if (iterable === undefined) {\n return (iterable) => {\n return includes(value, iterable as any) as ReturnValueType;\n };\n }\n\n if (isIterable(iterable)) {\n return some((a) => a === value, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return some((a) => a === value, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default includes;\n","import { AsyncFunctionException } from \"./_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"./_internal/utils\";\nimport reduce from \"./reduce\";\nimport type Cast from \"./types/Cast\";\nimport type Equals from \"./types/Equals\";\nimport type { GetKeyOf } from \"./types/GetKeyOf\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type Key from \"./types/Key\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\n/**\n * Given `f` that generates a key,\n * turns a list of objects into an object indexing the objects by the given key.\n * Note that if multiple objects generate the same value for the indexing key only the last value will be included in the generated object.\n *\n * @example\n * ```ts\n * const given = [\n * { category: \"clothes\", desc: \"good\" },\n * { category: \"pants\", desc: \"bad\" },\n * { category: \"shoes\", desc: \"not bad\" },\n * ];\n *\n * indexBy(a => a.category, given);\n * // {\n * // clothes: { category: \"clothes\", desc: \"good\" },\n * // pants: { category: \"pants\", desc: \"bad\" },\n * // shoes: { category: \"shoes\", desc: \"not bad\" },\n * // };\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-indexby-zpeok | Try It}\n */\n\nfunction indexBy(\n f: (a: A) => A,\n iterable: Iterable,\n): { [K in A]: K };\n\nfunction indexBy(\n f: (a: A) => A | Promise,\n iterable: AsyncIterable,\n): Promise<{ [K in A]: K }>;\n\nfunction indexBy(\n f: (a: A) => B,\n iterable: Iterable,\n): {\n [K in B]: A & { [K2 in GetKeyOf]: K };\n};\n\nfunction indexBy(\n f: (a: A) => B | Promise,\n iterable: AsyncIterable,\n): Promise<{\n [K in B]: A & { [K2 in GetKeyOf]: K };\n}>;\n\nfunction indexBy<\n I extends Iterable | AsyncIterable,\n F extends (a: IterableInfer) => any,\n>(\n f: F,\n): (iterable: I) => ReturnValueType<\n I,\n Equals>, IterableInfer> extends 1\n ? {\n [key1 in Awaited>]: key1;\n }\n : {\n [key1 in Awaited>]: IterableInfer & {\n [key2 in GetKeyOf, object>, key1>]: key1;\n };\n }\n>;\n\nfunction indexBy(\n f: (a: A) => B,\n iterable: Iterable,\n): { [K in B]: A };\n\nfunction indexBy(\n f: (a: A) => B | Promise,\n iterable: AsyncIterable,\n): Promise<{ [K in B]: A }>;\n\nfunction indexBy<\n A extends Iterable | AsyncIterable,\n B extends Key,\n>(\n f: (a: IterableInfer) => B | Promise,\n): (iterable: A) => ReturnValueType }>;\n\nfunction indexBy<\n A extends Iterable | AsyncIterable,\n B extends Key,\n>(\n f: (a: IterableInfer) => B | Promise,\n iterable?: A,\n):\n | { [K in B]: IterableInfer }\n | Promise<{ [K in B]: IterableInfer }>\n | ((iterable: A) => ReturnValueType }>) {\n if (iterable === undefined) {\n return (\n iterable: A,\n ): ReturnValueType }> => {\n return indexBy(f, iterable as any) as ReturnValueType<\n A,\n { [K in B]: IterableInfer }\n >;\n };\n }\n\n const obj = {} as { [K in B]: IterableInfer };\n if (isIterable>(iterable)) {\n return reduce(\n (group, a) => {\n const key = f(a);\n if (isPromise(key)) {\n throw new AsyncFunctionException();\n }\n return (group[key] = a), group;\n },\n obj,\n iterable,\n );\n }\n\n if (isAsyncIterable>(iterable)) {\n return reduce(\n async (group, a) => {\n const key = await f(a);\n return (group[key] = a), group;\n },\n obj,\n iterable,\n );\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default indexBy;\n","/**\n * Returns true if `a` is an Array.\n *\n * @example\n * ```ts\n * isArray([1, 2, 3]); // true\n * isArray(2); // false\n * ```\n */\nconst isArray = (input: T): input is T & (unknown[] | Readonly) =>\n Array.isArray(input);\n\nexport default isArray;\n","/**\n * Checks if the given value is `null`.\n *\n * @example\n * ```ts\n * isNull(1); // false\n * isNull('1'); // false\n * isNull(undefined); // false\n * isNull(null); // true\n * ```\n */\nconst isNull = (input: T): input is T & null => input === null;\n\nexport default isNull;\n","/**\n * Checks if the given value is `undefined`.\n *\n * @example\n * ```ts\n * isUndefined(undefined); // true\n * isUndefined(2); // false\n * ```\n */\nconst isUndefined = (input: T): input is T & undefined =>\n input === undefined;\n\nexport default isUndefined;\n","import isNull from \"./isNull\";\nimport isUndefined from \"./isUndefined\";\n\n/**\n * Checks if the given value is `null` or `undefined`.\n *\n * @example\n * ```ts\n * isNil(1); // false\n * isNil('1'); // false\n * isNil(undefined); // true\n * isNil(null); // true\n * ```\n */\nconst isNil = (input: T): input is T & (null | undefined) =>\n isUndefined(input) || isNull(input);\n\nexport default isNil;\n","import isArray from \"./isArray\";\nimport isNil from \"./isNil\";\n\n/**\n * Returns true if the given value is empty value, false otherwise.\n *\n * @example\n * ```ts\n * isEmpty({}) // true\n * isEmpty([]) // true\n * isEmpty(null) // true\n * isEmpty(undefined) // true\n * isEmpty(\"\") // true\n * isEmpty(new Map()) // true\n * isEmpty(new Set()) // true\n *\n * isEmpty(0) // false\n * isEmpty(false) // false\n * isEmpty(function(){}) // false\n * isEmpty(Symbol(\"\")) // false\n * isEmpty(new Date()) // false\n * ```\n */\nconst isEmpty = (value: T): boolean => {\n if (isNil(value)) return true; // if value is null or undefined.\n\n if (\n typeof value === \"object\" &&\n (value as object)[\"constructor\"] === Object &&\n Object.getOwnPropertyNames(value).length === 0\n )\n return true; // if value is a literal object and have no property or method.\n\n if (isArray(value) && value.length === 0) return true; // if value have no item.\n\n if (value === \"\") return true;\n\n if (value instanceof Map || value instanceof Set) return value.size === 0; // if value is a Map or Set and have no item.\n\n return false;\n};\n\nexport default isEmpty;\n","/**\n * Returns true if `n` is a Number.\n *\n * @example\n * ```ts\n * isNumber(2); // true\n * isNumber(\"a\"); // false\n * ```\n */\nconst isNumber = (input: T): input is T & number =>\n typeof input === \"number\";\n\nexport default isNumber;\n","/**\n * Returns true if `s` is a String.\n *\n * @example\n * ```ts\n * isString(\"a\"); // true\n * isString(2); // false\n * ```\n */\nconst isString = (input: T): input is T & string =>\n typeof input === \"string\";\n\nexport default isString;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport isString from \"./isString\";\nimport reduce from \"./reduce\";\n\ntype ReturnJoinType | AsyncIterable> =\n T extends Iterable\n ? string\n : T extends AsyncIterable\n ? Promise\n : never;\n\nfunction sync(sep: string, iterable: Iterable) {\n const res = reduce(\n (a: string, b) => (a == \"\" ? `${b}` : `${a}${sep}${b}`),\n \"\",\n iterable,\n );\n if (res == null) {\n return \"\";\n }\n\n return isString(res) ? res : String(res);\n}\n\nfunction async(sep: string, iterable: AsyncIterable) {\n return reduce(\n (a: string, b) => (a == \"\" ? `${b}` : `${a}${sep}${b}`),\n \"\",\n iterable,\n ).then((res) => {\n if (res == null) {\n return \"\";\n }\n\n return isString(res) ? res : String(res);\n });\n}\n\n/**\n * Returns all elements in the given iterable into a string separated by separator.\n *\n * @example\n * ```ts\n * const joined = join('~', ['a', 'b', 'c']); // 'a~b~c'\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4],\n * map(a => a + 10),\n * filter(a => a % 2 === 0)\n * join('-'),\n * ); // '12-14'\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * join('-'),\n * ); // '1-2-3-4'\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * join('-'),\n * ); // '1-2-3-4'\n * ```\n */\nfunction join(sep: string, iterable: A): \"\";\n\nfunction join(sep: string, iterable: Iterable): string;\n\nfunction join(sep: string, iterable: AsyncIterable): Promise;\n\nfunction join | AsyncIterable>(\n sep: string,\n): (iterable: A) => ReturnJoinType;\n\nfunction join | AsyncIterable>(\n sep: string,\n iterable?: A,\n): string | Promise | ((iterable: A) => ReturnJoinType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnJoinType => {\n return join(sep, iterable as any) as ReturnJoinType;\n };\n }\n\n if (Array.isArray(iterable) && iterable.length === 0) return \"\";\n\n if (isIterable(iterable)) {\n return sync(sep, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(sep, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default join;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport isArray from \"./isArray\";\nimport isString from \"./isString\";\nimport reduce from \"./reduce\";\n\ntype LastReturnType = T extends readonly [...rest: any[], a: infer L]\n ? L\n : T extends readonly never[]\n ? undefined\n : T extends AsyncIterable\n ? Promise\n : T extends Iterable\n ? U | undefined\n : never;\n\n/**\n * Returns the last element of Iterable/AsyncIterable\n *\n * @example\n * ```ts\n * last([1, 2, 3, 4, 5]); // 5\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5],\n * last,\n * ); // 5\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * last,\n * ); // 5\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3)],\n * toAsync,\n * last,\n * ); // 3\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-last-zbvq8 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync}\n */\nfunction last | AsyncIterable>(\n iterable: T,\n): LastReturnType;\n\nfunction last(iterable: Iterable | AsyncIterable | A[]) {\n if (isArray(iterable) || isString(iterable)) {\n return iterable[iterable.length - 1];\n }\n if (isIterable(iterable)) {\n return reduce((_, a) => a, iterable);\n } else if (isAsyncIterable(iterable)) {\n return reduce((_, a) => a, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default last;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport not from \"../not\";\nimport pipe1 from \"../pipe1\";\nimport { type ExcludeObject } from \"../types/ExcludeObject\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport filter from \"./filter\";\n\n/**\n * The opposite of {@link https://fxts.dev/docs/filter | filter}\n * Iterable/AsyncIterable of all elements `f` returns falsy for\n *\n * @example\n * ```ts\n * const iter = reject((a)=> a % 2 === 0, [0, 1, 2, 3, 4, 5, 6]);\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:false, value: 5}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [0, 1, 2, 3, 4, 5, 6],\n * reject(a => a % 2 === 0),\n * toArray,\n * ); // [1, 3, 5]\n *\n * await pipe(\n * Promise.resolve([0, 1, 2, 3, 4, 5, 6]),\n * reject(a => a % 2 === 0),\n * toArray,\n * ); // [1, 3, 5]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([0, 1, 2, 3, 4, 5, 6]),\n * toAsync,\n * reject(async a => a % 2 === 0),\n * toArray,\n * ); // [1, 3, 5]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(0), Promise.resolve(1), Promise.resolve(2),\n * Promise.resolve(3), Promise.resolve(4), Promise.resolve(5), Promise.resolve(6)],\n * toAsync,\n * reject(a => a % 2 === 0),\n * toArray,\n * ); // [1, 3, 5]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-reject-vrc7d | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n\nfunction reject(\n f: (a: A) => a is B,\n iterable: Iterable,\n): IterableIterator : Exclude>;\n\nfunction reject(\n f: (a: A) => a is B,\n iterable: AsyncIterable,\n): AsyncIterableIterator<\n A extends object ? ExcludeObject : Exclude\n>;\n\nfunction reject<\n A extends Iterable | AsyncIterable,\n B extends IterableInfer,\n C extends B,\n R = B extends object ? ExcludeObject : Exclude,\n>(\n f: (a: IterableInfer) => a is C,\n): (\n iterable: A,\n) => A extends AsyncIterable\n ? AsyncIterableIterator\n : IterableIterator;\n\nfunction reject(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction reject(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction reject<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): (iterable: A) => ReturnIterableIteratorType>;\n\nfunction reject<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | IterableIterator>\n | AsyncIterableIterator>\n | ((iterable: A) => ReturnIterableIteratorType>) {\n if (iterable === undefined) {\n return (iterable: A): ReturnIterableIteratorType> => {\n return reject(f, iterable as any) as ReturnIterableIteratorType<\n A,\n IterableInfer\n >;\n };\n }\n\n if (isIterable>(iterable)) {\n return filter((a) => pipe1(f(a), not), iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return filter((a) => pipe1(f(a), not), iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default reject;\n","import { AsyncFunctionException } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(f: (a: A) => B, iterable: Iterable) {\n for (const item of iterable) {\n const res = f(item);\n if (isPromise(res)) {\n throw new AsyncFunctionException();\n }\n\n if (!res) {\n break;\n }\n yield item;\n }\n}\n\nfunction asyncSequential(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n let end = false;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(_concurrent) {\n const { done, value } = await iterator.next(_concurrent);\n if (done || end) {\n return { done: true, value: undefined };\n }\n\n if (!(await f(value))) {\n end = true;\n return { done: true, value: undefined };\n }\n\n return { done: false, value };\n },\n };\n}\n\nfunction async(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncSequential(f, concurrent(_concurrent.length, iterable))\n : asyncSequential(f, iterable);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable that taken values as long as each value satisfies the give `f`.\n *\n * @example\n * ```ts\n * const iter = takeWhile(a => a < 3, [1, 2, 3, 4, 5, 6]);\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5, 6],\n * takeWhile(a => a < 3),\n * toArray,\n * ); // [1, 2]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5, 6]),\n * takeWhile(a => a < 3),\n * toArray,\n * ); // [1, 2]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5, 6]),\n * toAsync,\n * takeWhile(async (a) => a < 3),\n * toArray,\n * ); // [1, 2]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3),\n * Promise.resolve(4), Promise.resolve(5), Promise.resolve(6)],\n * toAsync,\n * takeWhile(a => a < 3),\n * toArray,\n * ); // [1, 2]\n *\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-takewhile-e6gqt | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction takeWhile(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction takeWhile(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction takeWhile | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction takeWhile | AsyncIterable, B>(\n f: (a: A) => B,\n iterable?: Iterable | AsyncIterable,\n):\n | IterableIterator>\n | AsyncIterableIterator>\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return takeWhile(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable(iterable)) {\n return sync(f, iterable) as IterableIterator>;\n }\n\n if (isAsyncIterable(iterable)) {\n return async(f, iterable) as AsyncIterableIterator>;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default takeWhile;\n","import { isAsyncIterable, isIterable, toIterator } from \"../_internal/utils\";\nimport every from \"../every\";\nimport pipe from \"../pipe\";\nimport toArray from \"../toArray\";\nimport type ReturnZipType from \"../types/ReturnZipType\";\nimport type { UniversalIterable } from \"../types/Utils\";\nimport map from \"./map\";\nimport range from \"./range\";\nimport takeWhile from \"./takeWhile\";\nimport toAsync from \"./toAsync\";\n\nfunction sync(\n iterable: Iterable>,\n): IterableIterator> {\n const iterators = toArray(\n map((a) => toIterator(a), iterable as Iterable>),\n );\n\n return pipe(\n range(Infinity),\n map(() => toArray(map((it) => it.next(), iterators))),\n takeWhile(every((cur2) => !cur2.done)),\n map((cur1) => toArray(map((cur2) => cur2.value, cur1))),\n );\n}\n\nfunction async(\n iterable: Iterable,\n): AsyncIterableIterator {\n const iterators = toArray(map(toIterator, iterable as any));\n\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(_concurrent) {\n const headIterators = await pipe(\n toAsync(iterators),\n map((it) => it.next(_concurrent)),\n toArray,\n );\n\n const hasDone = headIterators.some((it) => it.done);\n if (hasDone) {\n return { done: true, value: undefined };\n }\n\n return {\n done: false,\n value: headIterators.map((it) => it.value),\n };\n },\n };\n}\n\n/**\n * Merges the values of each of the arrays with the values at the corresponding position together.\n * Useful when you have separate data sources that are coordinated through matching array indices.\n *\n * @example\n * ```ts\n * const iter = zip([1, 2, 3, 4], [5, 6, 7, 8]);\n * iter.next() // {done:false, value: [1, 5]}\n * iter.next() // {done:false, value: [2, 6]}\n * iter.next() // {done:false, value: [3, 7]}\n * iter.next() // {done:false, value: [4, 8]}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [5, 6, 7, 8],\n * zip([1, 2, 3, 4]),\n * toArray,\n * ); // [[1, 5], [2, 6], [3, 7], [4, 8]]\n *\n * await pipe(\n * Promise.resolve([5, 6, 7, 8]),\n * zip([1, 2, 3, 4]),\n * toArray,\n * ); // [[1, 5], [2, 6], [3, 7], [4, 8]]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(5), Promise.resolve(6), Promise.resolve(7), Promise.resolve(8)],\n * toAsync,\n * zip([1, 2, 3, 4]),\n * toArray,\n * ); // [[1, 5], [2, 6], [3, 7], [4, 8]]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-zip-81jnh | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction zip(\n a: T,\n): (...args: TS) => ReturnZipType<[T, ...TS]>;\n\n// prettier-ignore\nfunction zip(\n ...args: T\n): ReturnZipType<[...T]>;\n\nfunction zip(\n ...iterables: TS[]\n): ReturnZipType | ((...iterables: TS[]) => ReturnZipType) {\n if (iterables.length < 2) {\n return (...iterables2: UniversalIterable[]) => {\n return zip(...iterables, ...iterables2) as ReturnZipType;\n };\n }\n\n if (iterables.some((a) => !isIterable(a) && !isAsyncIterable(a))) {\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n }\n\n const hasAsyncIterable = iterables.some((iterable) =>\n isAsyncIterable(iterable),\n );\n\n if (hasAsyncIterable) {\n return async(iterables) as ReturnZipType;\n }\n\n return sync(iterables as Iterable>[]) as ReturnZipType;\n}\n\nexport default zip;\n","import { isPromise } from \"./_internal/utils\";\nimport map from \"./Lazy/map\";\nimport reject from \"./Lazy/reject\";\nimport toAsync from \"./Lazy/toAsync\";\nimport zip from \"./Lazy/zip\";\nimport pipe from \"./pipe\";\nimport toArray from \"./toArray\";\nimport type {\n AsyncEntryPredicate,\n ConditionalAsyncEntryPredicate,\n EntryPredicate,\n} from \"./types/EntryPredicate\";\n\n/**\n *\n * Returns a partial copy of an object containing only the keys that satisfy the supplied predicate.\n *\n * @example\n * ```ts\n * const obj = { a: 1, b: \"2\", c: true };\n * omitBy(([key, value]) => key === \"a\" || value === true, obj); // { b: \"2\" }\n *\n * // asynchronous predicate\n * await omitBy(async ([key, value]) => key === \"a\" || value === true, obj); // { b: \"2\" }\n *\n * // Using with the `pipe` function\n * pipe(\n * obj,\n * omitBy(([key, value]) => key === \"a\" || value === true)\n * );\n *\n * await pipe(\n * obj,\n * omitBy(async ([key, value]) => key === \"a\" || value === true)\n * );\n * ```\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/omit | omit},\n */\n\nfunction omitBy>(\n f: F,\n obj: T,\n): Promise>;\n\nfunction omitBy>(\n f: F,\n): (obj: T) => Promise>;\n\nfunction omitBy>(\n f: F,\n obj: T,\n): Partial;\n\nfunction omitBy>(\n f: F,\n): (obj: T) => Partial;\n\nfunction omitBy>(\n f: F,\n obj: T,\n): Partial | Promise>;\n\nfunction omitBy>(\n f: F,\n): (obj: T) => Partial | Promise>;\n\nfunction omitBy>(\n f: F,\n obj?: T,\n):\n | Partial\n | Promise>\n | ((obj: T) => Partial)\n | ((obj: T) => Promise>)\n | ((obj: T) => Partial | Promise>) {\n if (obj === undefined) {\n return (obj: T) => omitBy(f, obj);\n }\n\n const entries = Object.entries(obj);\n const conditions = entries.map((entry) => f(entry as any));\n const isAsync = conditions.some((c) => isPromise(c));\n\n if (isAsync) {\n return pipe(\n entries,\n zip(toAsync(conditions)),\n reject(([cond]) => cond),\n map(([, entry]) => entry),\n toArray,\n Object.fromEntries,\n ) as Promise>;\n } else {\n return pipe(\n entries,\n zip(conditions),\n reject(([cond]) => cond),\n map(([, entry]) => entry),\n Object.fromEntries,\n ) as Partial;\n }\n}\n\nexport default omitBy;\n","import { AsyncFunctionException } from \"./_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"./_internal/utils\";\nimport groupBy from \"./groupBy\";\nimport { type ExcludeObject } from \"./types/ExcludeObject\";\nimport type IterableInfer from \"./types/IterableInfer\";\nimport type ReturnPartitionType from \"./types/ReturnPartitionType\";\n\n/**\n * Split Iterable/AsyncIterable into two arrays:\n * one with all elements which satisfies `f` and the other with all elements that does not.\n *\n * @example\n * ```ts\n * partition((a) => a % 2 === 0, [1, 2, 3, 4, 5]); // [[2, 4], [1, 3, 5]]\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5],\n * partition((a) => a % 2 === 0), // [[2, 4], [1, 3, 5]]\n * );\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * partition((a) => a % 2 === 0), // [[2, 4], [1, 3, 5]]\n * );\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * toAsync,\n * partition(async (a) => a % 2 === 0), // [[2, 4], [1, 3, 5]]\n * );\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4), Promise.resolve(5)],\n * toAsync,\n * partition((a) => a % 2 === 0), // [[2, 4], [1, 3, 5]]\n * );\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-partition-7vns0 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync}\n */\n\nfunction partition<\n A,\n L extends A,\n R extends A = A extends object ? ExcludeObject : Exclude,\n>(f: (a: A) => a is L, iterable: Iterable): [L[], R[]];\n\nfunction partition<\n A,\n L extends A,\n R extends A = A extends object ? ExcludeObject : Exclude,\n>(f: (a: A) => a is L, iterable: AsyncIterable): Promise<[L[], R[]]>;\n\nfunction partition<\n A extends Iterable | AsyncIterable,\n B extends IterableInfer,\n L extends B,\n R extends B = B extends object ? ExcludeObject : Exclude,\n>(\n f: (a: IterableInfer) => a is L,\n): (\n iterable: A,\n) => A extends AsyncIterable ? Promise<[L[], R[]]> : [L[], R[]];\n\nfunction partition(f: (a: A) => B, iterable: Iterable): [A[], A[]];\n\nfunction partition(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): Promise<[A[], A[]]>;\n\nfunction partition | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnPartitionType;\n\nfunction partition<\n A extends Iterable | AsyncIterable,\n B extends boolean,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | [IterableInfer[], IterableInfer[]]\n | Promise<[IterableInfer[], IterableInfer[]]>\n | ((iterable: A) => ReturnPartitionType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnPartitionType => {\n return partition(f, iterable as any) as unknown as ReturnPartitionType;\n };\n }\n if (isIterable>(iterable)) {\n const group = groupBy((a) => {\n const key = f(a);\n if (isPromise(key)) {\n throw new AsyncFunctionException();\n }\n return `${Boolean(key)}`;\n }, iterable);\n return [group[\"true\"] || [], group[\"false\"] || []] as unknown as [\n IterableInfer[],\n IterableInfer[],\n ];\n }\n\n if (isAsyncIterable>(iterable)) {\n const group = groupBy(async (a) => `${Boolean(await f(a))}`, iterable);\n return group.then((group) => [\n group[\"true\"] || [],\n group[\"false\"] || [],\n ]) as Promise<[IterableInfer[], IterableInfer[]]>;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default partition;\n","import { isPromise } from \"./_internal/utils\";\nimport filter from \"./Lazy/filter\";\nimport map from \"./Lazy/map\";\nimport toAsync from \"./Lazy/toAsync\";\nimport zip from \"./Lazy/zip\";\nimport pipe from \"./pipe\";\nimport toArray from \"./toArray\";\nimport type {\n AsyncEntryPredicate,\n ConditionalAsyncEntryPredicate,\n EntryPredicate,\n} from \"./types/EntryPredicate\";\n\n/**\n *\n * Returns a partial copy of an object which contains only the keys that satisfy the supplied predicate.\n *\n * @example\n * ```ts\n * const obj = { a: 1, b: \"2\", c: true };\n * pickBy(([key, value]) => key === \"a\" || value === true, obj); // { a: 1, c: true }\n *\n * // asynchronous predicate\n * await pickBy(async ([key, value]) => key === \"a\" || value === true, obj); // { a: 1, c: true }\n *\n * // Using with the `pipe` function\n * pipe(\n * obj,\n * pickBy(([key, value]) => key === \"a\" || value === true)\n * );\n *\n * await pipe(\n * obj,\n * pickBy(async ([key, value]) => key === \"a\" || value === true)\n * );\n * ```\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/pick | pick},\n */\n\nfunction pickBy>(\n f: F,\n obj: T,\n): Promise>;\n\nfunction pickBy>(\n f: F,\n): (obj: T) => Promise>;\n\nfunction pickBy>(\n f: F,\n obj: T,\n): Partial;\n\nfunction pickBy>(\n f: F,\n): (obj: T) => Partial;\n\nfunction pickBy>(\n f: F,\n obj: T,\n): Partial | Promise>;\n\nfunction pickBy>(\n f: F,\n): (obj: T) => Partial | Promise>;\n\nfunction pickBy>(\n f: F,\n obj?: T,\n):\n | Partial\n | Promise>\n | ((obj: T) => Partial)\n | ((obj: T) => Promise>)\n | ((obj: T) => Partial | Promise>) {\n if (obj === undefined) {\n return (obj: T) => pickBy(f, obj);\n }\n\n const entries = Object.entries(obj);\n const conditions = entries.map((entry) => f(entry as any));\n const isAsync = conditions.some((c) => isPromise(c));\n\n if (isAsync) {\n return pipe(\n entries,\n zip(toAsync(conditions)),\n filter(([cond]) => cond),\n map(([, entry]) => entry),\n toArray,\n Object.fromEntries,\n ) as Promise>;\n } else {\n return pipe(\n entries,\n zip(conditions),\n filter(([cond]) => cond),\n map(([, entry]) => entry),\n Object.fromEntries,\n ) as Partial;\n }\n}\n\nexport default pickBy;\n","// source: https://github.com/lodash/lodash/blob/master/.internal/unicodeToArray.js\n\n/** Used to compose unicode character classes. */\nconst rsAstralRange = \"\\\\ud800-\\\\udfff\";\nconst rsComboMarksRange = \"\\\\u0300-\\\\u036f\";\nconst reComboHalfMarksRange = \"\\\\ufe20-\\\\ufe2f\";\nconst rsComboSymbolsRange = \"\\\\u20d0-\\\\u20ff\";\nconst rsComboMarksExtendedRange = \"\\\\u1ab0-\\\\u1aff\";\nconst rsComboMarksSupplementRange = \"\\\\u1dc0-\\\\u1dff\";\nconst rsComboRange =\n rsComboMarksRange +\n reComboHalfMarksRange +\n rsComboSymbolsRange +\n rsComboMarksExtendedRange +\n rsComboMarksSupplementRange;\nconst rsVarRange = \"\\\\ufe0e\\\\ufe0f\";\n\n/** Used to compose unicode capture groups. */\nconst rsAstral = `[${rsAstralRange}]`;\nconst rsCombo = `[${rsComboRange}]`;\nconst rsFitz = \"\\\\ud83c[\\\\udffb-\\\\udfff]\";\nconst rsModifier = `(?:${rsCombo}|${rsFitz})`;\nconst rsNonAstral = `[^${rsAstralRange}]`;\nconst rsRegional = \"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\";\nconst rsSurrPair = \"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\";\nconst rsZWJ = \"\\\\u200d\";\n\n/** Used to compose unicode regexes. */\nconst reOptMod = `${rsModifier}?`;\nconst rsOptVar = `[${rsVarRange}]?`;\nconst rsOptJoin = `(?:${rsZWJ}(?:${[rsNonAstral, rsRegional, rsSurrPair].join(\n \"|\",\n)})${rsOptVar + reOptMod})*`;\nconst rsSeq = rsOptVar + reOptMod + rsOptJoin;\nconst rsNonAstralCombo = `${rsNonAstral}${rsCombo}?`;\nconst rsSymbol = `(?:${[\n rsNonAstralCombo,\n rsCombo,\n rsRegional,\n rsSurrPair,\n rsAstral,\n].join(\"|\")})`;\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n// eslint-disable-next-line no-misleading-character-class\nconst reUnicode = RegExp(`${rsFitz}(?=${rsFitz})|${rsSymbol + rsSeq}`, \"g\");\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @example\n * ```ts\n * unicodeToArray('🙇‍♂️🤩😭'); // ['🙇‍♂️','🤩','😭'];\n * ```\n */\nfunction unicodeToArray(string: string) {\n return string.match(reUnicode) || [];\n}\n\nexport default unicodeToArray;\n","import { isAsyncIterable, isIterable, isNotNullable } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport filter from \"./filter\";\n\n/**\n * Returns Iterable/AsyncIterable with all `null` and `undefined` values removed.\n *\n * @example\n * ```ts\n * const iter = compact([0, 1, undefined, 3, null]);\n * iter.next() // {done:false, value: 0}\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [0, 1, undefined, 3, null],\n * compact,\n * toArray,\n * ); // [0, 1, 3]\n *\n * await pipe(\n * Promise.resolve([0, 1, undefined, 3, null]),\n * compact,\n * toArray,\n * ); // [0, 1, 3]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(0), Promise.resolve(1), Promise.resolve(undefined),\n * Promise.resolve(3), Promise.resolve(null)],\n * toAsync,\n * compact,\n * toArray,\n * ); // [0, 1, 3]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-compact-lnvmd | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction compact | AsyncIterable>(\n iterable: T,\n): ReturnIterableIteratorType>>;\n\nfunction compact | AsyncIterable>(\n iterable: T,\n) {\n if (isIterable(iterable)) {\n return filter(isNotNullable, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return filter(isNotNullable, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default compact;\n","import pipe from \"../pipe\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport filter from \"./filter\";\nimport map from \"./map\";\nimport zip from \"./zip\";\n\n/**\n * Returns Iterable/AsyncIterable that filters elements from 'iterable' returning only those that have a corresponding element in 'selectors' that evaluates to 'true'.\n * Stops when either 'iterable' or 'selectors' has been exhausted.\n *\n * @example\n * ```ts\n * const iter1 = compress([false,true,false,false,true], [1, 2, 3, 4, 5]);\n * iter1.next(); // {value: 2, done:false}\n * iter1.next(); // {value: 5, done:false}\n * iter1.next(); // {value: undefined, done:true }\n *\n * const iter2 = compress([1,0,0,1,0], \"abcde\");\n * iter2.next(); // {value: \"a\", done:false}\n * iter2.next(); // {value: \"d\", done:false}\n * iter2.next(); // {value: undefined, done:true }\n *\n * // with pipe\n * pipe(\n * [1, 2, 3],\n * compress([false, true, true]),\n * toArray,\n * ); // [2, 3]\n * ```\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction compress(\n selector: Array,\n iterable: Iterable,\n): IterableIterator;\n\nfunction compress(\n selector: Array,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction compress | AsyncIterable>(\n selector: Array,\n): (iterable: B) => ReturnIterableIteratorType;\n\nfunction compress | AsyncIterable>(\n selectors: Array,\n iterable?: B,\n):\n | ReturnIterableIteratorType\n | ((iterable: B) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: B) => {\n return compress(\n selectors,\n iterable as any,\n ) as ReturnIterableIteratorType;\n };\n }\n\n return pipe(\n zip(selectors, iterable),\n filter(([selector]) => selector),\n map(([, value]) => value),\n ) as ReturnIterableIteratorType;\n}\n\nexport default compress;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport pipe from \"../pipe\";\nimport pipe1 from \"../pipe1\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport filter from \"./filter\";\n\n/**\n * Unlike {@link https://fxts.dev/docs/uniq | uniq} returns Iterable/AsyncIterable\n * with duplicate values removed by applying with `f` inside the given Iterable/AsyncIterable.\n * The order of result values is determined by the order they occur in the array.\n *\n * @example\n * ```ts\n * const iter = uniqBy(a => a.age, [{age: 21}, {age: 23}, {age: 21}, {age: 34}]);\n * iter.next() // {done:false, value: {age: 21}}\n * iter.next() // {done:false, value: {age: 23}}\n * iter.next() // {done:false, value: {age: 34}}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [{age: 21}, {age: 23}, {age: 21}, {age: 34}],\n * uniqBy(a => a.age),\n * toArray,\n * ); // [{age: 21}, {age: 23}, {age: 34}]\n *\n * await pipe(\n * Promise.resolve([{age: 21}, {age: 23}, {age: 21}, {age: 34}]),\n * uniqBy(a => a.age),\n * toArray,\n * ); // [{age: 21}, {age: 23}, {age: 34}]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([{age: 21}, {age: 23}, {age: 21}, {age: 34}]),\n * toAsync,\n * uniqBy(async (a) => a.age),\n * toArray,\n * ); // [{age: 21}, {age: 23}, {age: 34}]\n *\n * // toAsync\n * await pipe(\n * [Promise.resolve({age: 21}), Promise.resolve({age: 23}), Promise.resolve({age: 21}), Promise.resolve({age: 34})],\n * toAsync,\n * uniqBy(a => a.age),\n * toArray,\n * ); // [{age: 21}, {age: 23}, {age: 34}]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-uniqby-zb5d9 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction uniqBy(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction uniqBy(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction uniqBy | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction uniqBy | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable) => {\n return uniqBy(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n const s = new Set();\n const checkAndAdd = (b: B) => {\n if (s.has(b)) {\n return false;\n }\n\n s.add(b);\n return true;\n };\n\n if (isIterable(iterable)) {\n return pipe(\n iterable,\n filter((a) => pipe1(f(a), checkAndAdd)),\n ) as IterableIterator;\n }\n\n if (isAsyncIterable(iterable)) {\n return pipe(\n iterable,\n filter((a) => pipe1(f(a), checkAndAdd)),\n ) as AsyncIterableIterator;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default uniqBy;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport identity from \"../identity\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport uniqueBy from \"./uniqBy\";\n\n/**\n * Returns Iterable/AsyncIterable with duplicate values removed inside the given Iterable/AsyncIterable.\n * Only primitive values can be compared. The order of result values is determined by the order they occur in the array.\n *\n * @example\n * ```ts\n * const iter = uniq([1, 2, 1, 3, 2]);\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1, 2, 1, 3],\n * uniq,\n * toArray,\n * ); // [1, 2, 3]\n *\n * await pipe(\n * Promise.resolve([1, 2, 1, 3]),\n * uniq,\n * toArray,\n * ); // [1, 2, 3]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(1), Promise.resolve(3)],\n * toAsync,\n * uniq,\n * toArray,\n * ); // [1, 2, 3]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-uniq-uljmk | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction uniq | AsyncIterable>(\n iterable: A,\n): ReturnIterableIteratorType {\n if (isIterable(iterable)) {\n return uniqueBy(identity, iterable) as ReturnIterableIteratorType;\n }\n\n if (isAsyncIterable(iterable)) {\n return uniqueBy(identity, iterable) as ReturnIterableIteratorType;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default uniq;\n","import { throwIfPromiseError } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport pipe from \"../pipe\";\nimport pipe1 from \"../pipe1\";\nimport toArray from \"../toArray\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\nimport map from \"./map\";\nimport reject from \"./reject\";\nimport toAsync from \"./toAsync\";\nimport uniq from \"./uniq\";\n\nfunction* sync(\n f: (a: T) => unknown,\n iterable1: Iterable,\n iterable2: Iterable,\n) {\n const set = new Set(map((a) => throwIfPromiseError(f(a)), iterable1));\n\n yield* pipe(\n iterable2,\n reject((a) => pipe1(f(a), (b) => set.has(b))),\n uniq,\n );\n}\n\nasync function* asyncSequential(\n f: (a: T) => unknown,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n) {\n const set = new Set(await toArray(map(f, iterable1)));\n\n yield* pipe(\n iterable2,\n reject((a) => pipe1(f(a), (b) => set.has(b))),\n uniq,\n );\n}\n\nfunction async(\n f: (a: T) => unknown,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncSequential(\n f,\n iterable1,\n concurrent(_concurrent.length, iterable2),\n )\n : asyncSequential(f, iterable1, iterable2);\n }\n\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable(i.e no duplicate) of all elements in the `iterable2` not contained in the `iterable1`.\n * Duplication is determined according to the value returned by applying the supplied `f` to `iterable2`.\n *\n * @example\n * ```ts\n * const iter = differenceBy(a => a.x, [{ x: 1 }, { x: 4 }], [{ x: 1 }, { x: 2 }, { x: 3 }])\n * iter.next(); // {value: {x: 2}, done: false}\n * iter.next(); // {value: {x: 3}, done: false}\n * iter.next(); // {value: undefined, done: true}\n * ```\n */\nfunction differenceBy(\n f: (a: A) => B,\n iterable1: Iterable,\n iterable2: Iterable,\n): IterableIterator;\n\nfunction differenceBy(\n f: (a: A) => B,\n iterable1: AsyncIterable,\n iterable2: Iterable,\n): AsyncIterableIterator;\n\nfunction differenceBy(\n f: (a: A) => B,\n iterable1: Iterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction differenceBy(\n f: (a: A) => B,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction differenceBy(\n f: (a: A) => B,\n iterable1: Iterable | AsyncIterable,\n iterable2: Iterable | AsyncIterable,\n): IterableIterator | AsyncIterableIterator {\n if (isIterable(iterable1) && isIterable(iterable2)) {\n return sync(f, iterable1, iterable2);\n }\n if (isIterable(iterable1) && isAsyncIterable(iterable2)) {\n return async(f, toAsync(iterable1), iterable2);\n }\n if (isAsyncIterable(iterable1) && isIterable(iterable2)) {\n return async(f, iterable1, toAsync(iterable2));\n }\n if (isAsyncIterable(iterable1) && isAsyncIterable(iterable2)) {\n return async(f, iterable1, iterable2);\n }\n\n throw new TypeError(\n \"'iterable1' and 'iterable2' must be type of Iterable or AsyncIterable\",\n );\n}\n\nexport default differenceBy;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport identity from \"../identity\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport differenceBy from \"./differenceBy\";\n\n/**\n * Returns Iterable/AsyncIterable of all elements in the `iterable2` not contained in the `iterable1`.\n *\n * @example\n * ```ts\n * const iter = difference([2, 1], [2, 3, 4]);\n * iter.next(); // {value: 3, done:false}\n * iter.next(); // {value: 4, done:false}\n * iter.next(); // {value: undefined, done: true}\n * ```\n */\nfunction difference(\n iterable1: Iterable,\n iterable2: Iterable,\n): IterableIterator;\n\nfunction difference(\n iterable1: AsyncIterable,\n iterable2: Iterable,\n): AsyncIterableIterator;\n\nfunction difference(\n iterable1: Iterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction difference(\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction difference<\n A extends Iterable | AsyncIterable,\n B extends Iterable | AsyncIterable,\n>(\n iterable1: A,\n): (\n iterable2: B,\n) => A extends AsyncIterable\n ? AsyncIterableIterator>\n : B extends AsyncIterable\n ? AsyncIterableIterator>\n : IterableIterator>;\n\nfunction difference(\n iterable1: Iterable | AsyncIterable,\n iterable2?: Iterable | AsyncIterable,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((\n iterable2: Iterable | AsyncIterable,\n ) => IterableIterator | AsyncIterableIterator) {\n if (iterable2 === undefined) {\n return (iterable2: any) => {\n return difference(iterable1 as any, iterable2);\n };\n }\n\n if (isIterable(iterable1) && isIterable(iterable2)) {\n return differenceBy(identity, iterable1, iterable2);\n }\n if (isIterable(iterable1) && isAsyncIterable(iterable2)) {\n return differenceBy(identity, iterable1, iterable2);\n }\n if (isAsyncIterable(iterable1) && isIterable(iterable2)) {\n return differenceBy(identity, iterable1, iterable2);\n }\n if (isAsyncIterable(iterable1) && isAsyncIterable(iterable2)) {\n return differenceBy(identity, iterable1, iterable2);\n }\n\n throw new TypeError(\n \"'iterable1' and 'iterable2' must be type of Iterable or AsyncIterable\",\n );\n}\n\nexport default difference;\n","import { AsyncFunctionException } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(f: (a: A) => B, iterable: Iterable) {\n const iterator = iterable[Symbol.iterator]();\n const iterableIterator = {\n [Symbol.iterator]() {\n return iterator;\n },\n };\n\n for (const a of iterableIterator) {\n const res = f(a);\n if (isPromise(res)) {\n throw new AsyncFunctionException();\n }\n\n if (res) {\n yield* iterableIterator;\n }\n }\n}\n\nasync function* asyncSequential(\n f: (a: A) => B,\n iterable: AsyncIterable,\n) {\n const iterator = iterable[Symbol.asyncIterator]();\n const iterableIterator = {\n [Symbol.asyncIterator]() {\n return iterator;\n },\n };\n\n for await (const a of iterableIterator) {\n if (await f(a)) {\n yield* iterableIterator;\n }\n }\n}\n\nfunction async(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let iterator: AsyncIterator;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n\n async next(_concurrent: any) {\n if (iterator === undefined) {\n iterator = isConcurrent(_concurrent)\n ? asyncSequential(f, concurrent(_concurrent.length, iterable))\n : asyncSequential(f, iterable);\n }\n\n return iterator.next(_concurrent);\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable excluding elements dropped from the beginning.\n * Elements are deleted until the value applied to f returns truly. (It is deleted including the first value applied as true)\n *\n * @example\n * ```ts\n * const iter = dropUntil((a) => a > 3, [1, 2, 3, 4, 5, 1, 2]);\n * iter.next(); // {done:false, value: 5}\n * iter.next(); // {done:false, value: 1}\n * iter.next(); // {done:false, value: 2}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5, 1, 2],\n * dropUntil((a) => a > 3),\n * toArray,\n * ); // [5, 1, 2]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5, 1, 2]),\n * dropUntil((a) => a > 3),\n * toArray,\n * ); // [5, 1, 2]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5, 1, 2]),\n * toAsync,\n * dropUntil(async (a) => a > 3),\n * toArray,\n * ); // [5, 1, 2]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4),\n * Promise.resolve(5), Promise.resolve(1), Promise.resolve(2)],\n * toAsync,\n * dropUntil((a) => a > 3),\n * toArray,\n * ); // [5, 1, 2]\n * ```\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction dropUntil(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction dropUntil(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction dropUntil | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction dropUntil | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | IterableIterator>\n | AsyncIterableIterator>\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return dropUntil(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable>(iterable)) {\n return sync(f, iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return async(f, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default dropUntil;\n","import { AsyncFunctionException } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable, isPromise } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(f: (a: A) => B, iterable: Iterable) {\n const iterator = iterable[Symbol.iterator]();\n const iterableIterator = {\n [Symbol.iterator]() {\n return iterator;\n },\n };\n\n for (const a of iterableIterator) {\n const res = f(a);\n if (isPromise(res)) {\n throw new AsyncFunctionException();\n }\n\n if (res) {\n continue;\n }\n yield a;\n yield* iterableIterator;\n }\n}\n\nasync function* asyncSequential(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n const iterableIterator = {\n [Symbol.asyncIterator]() {\n return iterator;\n },\n };\n\n for await (const a of iterableIterator) {\n if (await f(a)) {\n continue;\n }\n\n yield a;\n yield* iterableIterator;\n }\n}\n\nfunction async(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let iterator: AsyncIterator;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n\n async next(_concurrent: any) {\n if (iterator === undefined) {\n iterator = isConcurrent(_concurrent)\n ? asyncSequential(f, concurrent(_concurrent.length, iterable))\n : asyncSequential(f, iterable);\n }\n\n return iterator.next(_concurrent);\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable excluding elements dropped from the beginning. Elements are dropped until the value applied to `f` returns falsey.\n *\n * @example\n * ```ts\n * const iter = dropWhile((a) => a < 3, [1, 2, 3, 4, 5]);\n * iter.next(); // {done:false, value: 3}\n * iter.next(); // {done:false, value: 4}\n * iter.next(); // {done:false, value: 5}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5],\n * dropWhile((a) => a < 3),\n * toArray,\n * ); // [3, 4, 5]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * dropWhile((a) => a < 3),\n * toArray,\n * ); // [3, 4, 5]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4, 5]),\n * toAsync,\n * dropWhile(async (a) => a < 3),\n * toArray,\n * ); // [3, 4, 5]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4), Promise.resolve(5)],\n * toAsync,\n * dropWhile((a) => a < 3),\n * toArray,\n * ); // [3, 4, 5]\n *\n * ```\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction dropWhile(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator;\n\nfunction dropWhile(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction dropWhile | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction dropWhile | AsyncIterable, B>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n):\n | IterableIterator>\n | AsyncIterableIterator>\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return dropWhile(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable>(iterable)) {\n return sync(f, iterable);\n }\n\n if (isAsyncIterable>(iterable)) {\n return async(f, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default dropWhile;\n","type Entries<\n T extends Record,\n K extends keyof T,\n> = K extends string ? [K, T[K]] : never;\n\n/**\n *\n * Returns an iterator of the own enumerable string keyed-value pairs.\n *\n * @example\n * ```ts\n *\n * [...entries({ a: 1, b: \"2\", c: true })]\n * // [[\"a\", 1], [\"b\", \"2\"], [\"c\", true]]\n * ```\n *\n *\n * see {@link https://fxts.dev/docs/fromEntries | fromEntries}\n */\n\nfunction* entries>(\n obj: T,\n): Generator, void> {\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)) {\n yield [k, obj[k]] as any;\n }\n }\n}\n\nexport default entries;\n","import { isAsyncIterable, isIterable, isPromise } from \"../_internal/utils\";\nimport type Awaited from \"../types/Awaited\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(a: A, iterable: Iterable) {\n yield* iterable;\n yield a;\n}\n\nfunction asyncSequential(\n a: Promise,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n let finished = false;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next() {\n if (finished) {\n return { done: true, value: undefined };\n }\n const { value, done } = await iterator.next();\n if (finished) {\n return { done: true, value: undefined };\n }\n if (done) {\n finished = true;\n return { done: false, value: await a };\n } else {\n return { done, value };\n }\n },\n };\n}\n\nfunction async(\n a: Promise,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let iterator: AsyncIterator | null = null;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n\n async next(_concurrent: any) {\n if (iterator === null) {\n iterator = isConcurrent(_concurrent)\n ? asyncSequential(a, concurrent(_concurrent.length, iterable))\n : asyncSequential(a, iterable);\n }\n return iterator.next(_concurrent);\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable containing the contents of the given iterable,\n * followed by the given element.\n *\n * @example\n * ```ts\n * const iter = append(4, [1,2,3]);\n * iter.next() // {done: false, value: 1}\n * iter.next() // {done: false, value: 2}\n * iter.next() // {done: false, value: 3}\n * iter.next() // {done: false, value: 4}\n * iter.next() // {done: true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1,2,3],\n * append(4),\n * toArray,\n * ); // [1,2,3,4]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3]),\n * append(4),\n * toArray,\n * ); // [1, 2, 3, 4]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3)],\n * toAsync,\n * append(4),\n * toArray,\n * ); // [1, 2, 3, 4]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-append-civf7 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction append | AsyncIterable>>(\n a: A,\n): (iterable: B) => ReturnIterableIteratorType>;\n\nfunction append(a: A, iterable: Iterable): IterableIterator;\n\nfunction append(\n a: A | Promise,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction append | AsyncIterable>(\n a: A,\n iterable?: Iterable | AsyncIterable,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((iterable: B) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: B) =>\n append(a, iterable as any) as ReturnIterableIteratorType;\n }\n\n if (isAsyncIterable(iterable)) {\n return async(isPromise(a) ? a : Promise.resolve(a), iterable);\n }\n\n if (isIterable(iterable)) {\n return sync(a, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default append;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnConcatType from \"../types/ReturnConcatType\";\n\nfunction* sync(a: Iterable, b: Iterable): IterableIterator {\n yield* a;\n yield* b;\n}\n\nfunction async(\n a: AsyncIterable,\n b: AsyncIterable,\n): AsyncIterableIterator {\n let leftDone = false;\n const leftIterator = a[Symbol.asyncIterator]();\n const rightIterator = b[Symbol.asyncIterator]();\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n\n async next(_concurrent: any) {\n const iterator = leftDone ? rightIterator : leftIterator;\n const { done, value } = await iterator.next(_concurrent);\n if (done) {\n if (iterator === leftIterator) {\n leftDone = true;\n }\n return rightIterator.next(_concurrent);\n } else {\n return { done, value };\n }\n },\n };\n}\n\nfunction toAsyncIterable(\n iterable: Iterable | AsyncIterable,\n): AsyncIterable {\n if (isAsyncIterable(iterable)) {\n return iterable;\n }\n\n const iterator = iterable[Symbol.iterator]() as unknown as AsyncIterator;\n return {\n [Symbol.asyncIterator]() {\n return iterator;\n },\n };\n}\n\n/**\n * Returns the result of concatenating the given iterable.\n *\n * @example\n * ```ts\n * const iter = concat([1, 2], [3, 4]);\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:false, value: 4}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [3, 4],\n * concat([1, 2]),\n * toArray,\n * ); // [1, 2, 3, 4]\n *\n * await pipe(\n * Promise.resolve([3, 4]),\n * concat([1, 2]),\n * toArray,\n * ); // [1, 2, 3, 4]\n *\n * await pipe(\n * [Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * concat([1, 2]),\n * toArray,\n * ); // [1, 2, 3, 4]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-concat-mhd7d | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction concat<\n A extends Iterable | AsyncIterable,\n B extends Iterable | AsyncIterable\n>(iterable1: A, iterable2: B): ReturnConcatType;\n\nfunction concat<\n A extends Iterable | AsyncIterable,\n B extends Iterable | AsyncIterable,\n>(iterable1: A): (iterable2: B) => ReturnConcatType;\n\nfunction concat<\n A extends Iterable | AsyncIterable,\n B extends Iterable | AsyncIterable,\n>(\n iterable1: A,\n iterable2?: B,\n):\n | IterableIterator | IterableInfer>\n | AsyncIterableIterator | IterableInfer>\n | ((iterable2: B) => ReturnConcatType) {\n if (iterable2 === undefined) {\n return (iterable2: B): ReturnConcatType => {\n return concat(iterable1, iterable2) as ReturnConcatType;\n };\n }\n\n if (isAsyncIterable(iterable1) || isAsyncIterable(iterable2)) {\n // prettier-ignore\n return async(toAsyncIterable(iterable1), toAsyncIterable(iterable2)) as ReturnConcatType;\n }\n\n if (isIterable(iterable1) && isIterable(iterable2)) {\n return sync(iterable1, iterable2) as ReturnConcatType;\n }\n\n throw new TypeError(\n \"'iterable1','iterable2' must be type of Iterable or AsyncIterable\",\n );\n}\n\nexport default concat;\n","import { empty, isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport last from \"../last\";\nimport type Awaited from \"../types/Awaited\";\nimport type { DeepFlat, DeepFlatSync } from \"../types/DeepFlat\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type { Reject, Resolve } from \"../types/Utils\";\nimport append from \"./append\";\nimport concat from \"./concat\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\ntype ReturnFlatType<\n A extends Iterable | AsyncIterable,\n B extends number = 1,\n> = A extends Iterable\n ? IterableIterator, B>>\n : A extends AsyncIterable\n ? AsyncIterableIterator>, B>>\n : never;\n\nconst isFlatAble = function (a: unknown): a is Iterable {\n return typeof a !== \"string\" && isIterable(a);\n};\n\nfunction sync(iterable: Iterable, depth: number): IterableIterator {\n const iterator = iterable[Symbol.iterator]();\n const iteratorStack: [first: Iterator, ...rest: Iterator[]] = [\n iterator,\n ];\n\n return {\n [Symbol.iterator]() {\n return this;\n },\n next() {\n while (iteratorStack.length > 0) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const currentIterator = last(iteratorStack)!;\n const { value, done } = currentIterator.next();\n if (done) {\n iteratorStack.pop();\n continue;\n }\n\n if (isFlatAble(value) && iteratorStack.length < depth + 1) {\n iteratorStack.push(value[Symbol.iterator]());\n continue;\n }\n\n return {\n done: false,\n value,\n };\n }\n\n return {\n done: true,\n value: undefined,\n };\n },\n };\n}\n\nfunction asyncConcurrent(\n iterable: AsyncIterable,\n depth: number,\n): AsyncIterableIterator {\n const originIterator = iterable[Symbol.asyncIterator]();\n let prevItem = Promise.resolve();\n let flattenIterator = empty() as IterableIterator;\n let finished = false;\n const settlementQueue: [Resolve, Reject][] = [];\n\n const fillItem = async () => {\n const { done, value } = await originIterator.next();\n if (done) {\n return false;\n }\n\n if (isFlatAble(value)) {\n flattenIterator = concat(\n sync(value as Iterable, depth - 1),\n flattenIterator,\n );\n } else {\n flattenIterator = append(value, flattenIterator);\n }\n return true;\n };\n\n const pullItem = async (): Promise> => {\n if (finished) {\n return { done: true, value: undefined };\n }\n\n const { value, done } = flattenIterator.next();\n if (done) {\n const hasItem = await fillItem();\n if (hasItem) {\n return pullItem();\n }\n\n return { done: true, value: undefined };\n }\n\n return { done: false, value };\n };\n\n const resolveItem = ({ done, value }: any) => {\n if (done || finished) {\n while (settlementQueue.length > 0) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [resolve] = settlementQueue.shift()!;\n resolve({ done: true, value: undefined });\n }\n return;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [resolve] = settlementQueue.shift()!;\n resolve({ done, value });\n };\n\n const catchItem = (err: any) => {\n finished = true;\n // eslint-disable-next-line\n const [_, reject] = settlementQueue.shift()!;\n reject(err);\n };\n\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next() {\n return new Promise((resolve, reject) => {\n settlementQueue.push([resolve, reject]);\n\n prevItem = prevItem\n .then(() => pullItem())\n .then(resolveItem)\n .catch(catchItem);\n });\n },\n };\n}\n\nfunction asyncSequential(\n iterable: AsyncIterable,\n depth: number,\n): AsyncIterableIterator {\n const iterator = iterable[Symbol.asyncIterator]();\n const iteratorStack: [first: AsyncIterator, ...rest: Iterator[]] = [\n iterator,\n ];\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next() {\n const iterator = last(iteratorStack);\n if (!iterator) {\n return { done: true, value: undefined };\n }\n\n const { value, done } = await iterator.next();\n if (done) {\n iteratorStack.pop();\n return this.next();\n }\n\n if (isFlatAble(value) && iteratorStack.length < depth + 1) {\n iteratorStack.push(value[Symbol.iterator]());\n return this.next();\n }\n\n return {\n done: false,\n value,\n };\n },\n };\n}\n\nfunction async(\n iterable: AsyncIterable,\n depth: number,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator | null = null;\n return {\n async next(_concurrent: any) {\n if (_iterator === null) {\n _iterator = isConcurrent(_concurrent)\n ? asyncConcurrent(concurrent(_concurrent.length, iterable), depth)\n : asyncSequential(iterable, depth);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns flattened Iterable/AsyncIterable.\n * If first argument is number, more perform flatten `flat([[[1,2]]], 2) // [1,2]`\n *\n * @example\n * ```ts\n * const iter = flat([1,[2,3],[[4,5]]]);\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:false, value: [4, 5]}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1,[2, 3],[[4, 5]]],\n * flat,\n * toArray,\n * ); // [1, 2, 3, [4, 5]]\n *\n * await pipe(\n * Promise.resolve([1,[2, 3],[[4, 5]]]),\n * flat,\n * toArray,\n * ); // [1, 2, 3, [4, 5]]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-flat-6t2in | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction flat<\n A extends Iterable | AsyncIterable,\n B extends number = 1\n>(\n iterator: A,\n depth?: B\n): ReturnFlatType;\n\nfunction flat | AsyncIterable>(\n iterable: Iterable | AsyncIterable,\n depth = 1,\n) {\n if (isIterable(iterable)) {\n return sync(iterable, depth);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(iterable, depth);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default flat;\n","import { throwIfPromiseError } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport type Awaited from \"../types/Awaited\";\nimport type { DeepFlat, DeepFlatSync } from \"../types/DeepFlat\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport flat from \"./flat\";\nimport map from \"./map\";\n\ntype ReturnFlatMapType<\n A extends Iterable | AsyncIterable,\n B = unknown,\n> = A extends Iterable\n ? IterableIterator>\n : A extends AsyncIterable\n ? AsyncIterableIterator, 1>>\n : never;\n\n/**\n * Returns flattened Iterable/AsyncIterable of values by running each element\n * flattening the mapped results.\n *\n * @example\n * ```ts\n * const iter = flatMap(s => s.split(\" \"), [\"It is\", \"a good\", \"day\"]);\n * iter.next() // {done:false, value: \"It\"}\n * iter.next() // {done:false, value: \"is\"}\n * iter.next() // {done:false, value: \"a\"}\n * iter.next() // {done:false, value: \"good\"},\n * iter.next() // {done:false, value: \"day\"},\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [\"It is\", \"a good\", \"day\"],\n * flatMap(s => s.split(\" \")),\n * toArray,\n * ); // [\"It\", \"is\", \"a\", \"good\", \"day\"]\n *\n * await pipe(\n * Promise.resolve([\"It is\", \"a good\", \"day\"]),\n * flatMap(s => s.split(\" \")),\n * toArray,\n * ); // [\"It\", \"is\", \"a\", \"good\", \"day\"]\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([\"It is\", \"a good\", \"day\"]),\n * toAsync,\n * flatMap(async (s) => s.split(\" \")),\n * toArray,\n * ); // [\"It\", \"is\", \"a\", \"good\", \"day\"]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-flatmap-3g9k8 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction flatMap(\n f: (a: A) => B,\n iterable: Iterable,\n): IterableIterator>;\n\nfunction flatMap(\n f: (a: A) => B,\n iterable: AsyncIterable,\n): AsyncIterableIterator, 1>>;\n\nfunction flatMap<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(f: (a: IterableInfer) => B): (iterable: A) => ReturnFlatMapType;\n\nfunction flatMap<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): (iterable: A) => ReturnFlatMapType;\n\nfunction flatMap<\n A extends Iterable | AsyncIterable,\n B = unknown,\n>(\n f: (a: IterableInfer) => B,\n iterable?: A,\n): ReturnFlatMapType | ((iterable: A) => ReturnFlatMapType) {\n if (iterable === undefined) {\n return (iterable: A) => {\n return flatMap(f, iterable) as any;\n };\n }\n\n if (isIterable>(iterable)) {\n return flat(map((a) => throwIfPromiseError(f(a)), iterable)) as any;\n }\n\n if (isAsyncIterable>>(iterable)) {\n return flat(map(f, iterable as any)) as any;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default flatMap;\n","/**\n * Returns Iterable/AsyncIterable of numbers (positive and/or negative) progressing from start-up to,\n * but not including, end. it's set to start with a start then set to 0.\n *\n * @example\n * ```ts\n * const iter = range(4);\n * iter.next() // {done:false, value: 0}\n * iter.next() // {done:false, value: 1}\n * iter.next() // {done:false, value: 2}\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * range(4),\n * toArray,\n * ); // [0, 1, 2, 3]\n *\n * pipe(\n * range(1, 4),\n * toArray,\n * ); // [1, 2, 3]\n *\n * // with toAsync\n * await pipe(\n * range(4),\n * toAsync,\n * toArray,\n * ); // [0, 1, 2, 3]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-range-3phyd | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction range(length: number): IterableIterator;\nfunction range(start: number, end: number): IterableIterator;\nfunction range(\n start: number,\n end: number,\n step: number,\n): IterableIterator;\nfunction* range(\n start: number,\n end?: number,\n step = 1,\n): IterableIterator {\n if (end === undefined) return yield* range(0, start);\n if (step < 0) {\n while (start > end) {\n yield start;\n start += step;\n }\n } else {\n while (start < end) {\n yield start;\n start += step;\n }\n }\n}\n\nexport default range;\n","import { isAsyncIterable, isIterable } from \"./_internal/utils\";\nimport range from \"./Lazy/range\";\nimport type ReturnValueType from \"./types/ReturnValueType\";\n\nfunction sync(iterable: Iterable, n: number) {\n const iterator = iterable[Symbol.iterator]();\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for (const _ of range(0, n)) {\n if (iterator.next().done) {\n return;\n }\n }\n}\n\nasync function async(iterable: AsyncIterable, n: number) {\n const iterator = iterable[Symbol.asyncIterator]();\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for await (const _ of range(0, n)) {\n if ((await iterator.next()).done) {\n return;\n }\n }\n}\n\n/**\n * Consumes the given number of Iterable/AsyncIterable. If the number is empty, all is consumed.\n *\n * @example\n * ```ts\n * const iterator = (function *(){\n * yield 1;\n * yield 2;\n * yield 3;\n * })();\n * consume(iterator, 2);\n * iterator.next(); // {value:3, done:false}\n * iterator.next(); // {value:undefined, done:true}\n *\n * // with pipe\n * pipe(\n * range(10),\n * peek(updateApi),\n * concurrent(5),\n * consume,\n * );\n * ```\n */\nfunction consume<\n A extends Iterable | AsyncIterable,\n B extends number,\n>(iterator: A, n?: B): ReturnValueType;\n\nfunction consume | AsyncIterable>(\n iterable: A,\n n = Infinity,\n) {\n if (isIterable(iterable)) {\n return sync(iterable, n);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(iterable, n);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default consume;\n","import {\n asyncEmpty,\n empty,\n isAsyncIterable,\n isIterable,\n} from \"../_internal/utils\";\nimport toArray from \"../toArray\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\nimport take from \"./take\";\n\nfunction* sync(size: number, iterable: Iterable): IterableIterator {\n const iterator = iterable[Symbol.iterator]();\n while (true) {\n const c = toArray(\n take(size, {\n [Symbol.iterator]() {\n return iterator;\n },\n }),\n );\n if (c.length > 0) yield c;\n if (c.length < size) return;\n }\n}\n\nasync function* asyncSequential(\n size: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let i = 0;\n let items: T[] = [];\n for await (const item of iterable) {\n if (i++ < size) {\n items.push(item);\n }\n if (i === size) {\n yield items;\n i = 0;\n items = [];\n }\n }\n if (items.length) {\n yield items;\n }\n}\n\nfunction async(\n size: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncSequential(size, concurrent(_concurrent.length, iterable))\n : asyncSequential(size, iterable);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable of elements split into groups the length of size.\n * If iterableIterator can't be split evenly, the final chunk will be the remaining elements.\n *\n * @example\n * ```ts\n * const iter = chunk(2, [1, 2, 3, 4]);\n * iter.next() // {done:false, value:[1, 2]}\n * iter.next() // {done:false, value:[3, 4]}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4],\n * chunk(2),\n * toArray,\n * ); // [[1, 2],[3, 4]]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3 ,4]),\n * chunk(2),\n * toArray,\n * ); // [[1, 2],[3, 4]]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * chunk(2),\n * toArray,\n * ); // [[1, 2],[3, 4]]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-chunk-gksly | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction chunk(size: number, iterable: Iterable): IterableIterator;\nfunction chunk(\n size: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction chunk | AsyncIterable>(\n size: number,\n): (iterable: T) => ReturnIterableIteratorType[]>;\n\nfunction chunk | AsyncIterable>(\n size: number,\n iterable?: T,\n):\n | IterableIterator[]>\n | AsyncIterableIterator[]>\n | ((iterable: T) => ReturnIterableIteratorType[]>) {\n if (iterable === undefined) {\n return (iterable: T) =>\n chunk(size, iterable as any) as ReturnIterableIteratorType<\n T,\n IterableInfer[]\n >;\n }\n\n if (isIterable(iterable)) {\n if (size < 1) {\n return empty();\n } else {\n return sync(size, iterable) as IterableIterator[]>;\n }\n }\n\n if (isAsyncIterable(iterable)) {\n if (size < 1) {\n return asyncEmpty();\n } else {\n return async(size, iterable) as AsyncIterableIterator[]>;\n }\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default chunk;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport consume from \"../consume\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(length: number, iterable: Iterable): IterableIterator {\n const iterator = iterable[Symbol.iterator]();\n const iterableIterator = {\n [Symbol.iterator]() {\n return iterator;\n },\n };\n consume(iterableIterator, length);\n return yield* iterableIterator;\n}\n\nasync function* asyncSequential(length: number, iterable: AsyncIterable) {\n const iterator = iterable[Symbol.asyncIterator]();\n const iterableIterator = {\n [Symbol.asyncIterator]() {\n return iterator;\n },\n };\n await consume(iterableIterator, length);\n return yield* iterableIterator;\n}\n\nfunction async(\n length: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let iterator: AsyncIterator;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n\n next(_concurrent: any) {\n if (iterator === undefined) {\n iterator = isConcurrent(_concurrent)\n ? asyncSequential(length, concurrent(_concurrent.length, iterable))\n : asyncSequential(length, iterable);\n }\n\n return iterator.next(_concurrent);\n },\n };\n}\n\n/**\n * Returns all but the first `length` elements of the given iterable.\n *\n * @example\n * ```ts\n * const iter = drop(2, [1, 2, 3, 4]);\n * iter.next() // {done:false, value: 3}\n * iter.next() // {done:false, value: 4}\n * iter.next() // {done:true, value: undefined}\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4],\n * drop(2),\n * toArray,\n * ); // [3, 4]\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * drop(2),\n * toArray,\n * ); // [3, 4]\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * drop(2),\n * toArray,\n * ); // [3, 4]\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-drop-2t0h0 | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction drop(\n length: number,\n iterable: Iterable\n): IterableIterator;\n\nfunction drop(\n length: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction drop | AsyncIterable>(\n length: number,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction drop | AsyncIterable>(\n length: number,\n iterable?: A,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnIterableIteratorType => {\n return drop(length, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (length < 0) {\n throw new RangeError(\"'length' must be greater than 0\");\n }\n\n if (isIterable(iterable)) {\n return sync(length, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(length, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default drop;\n","import { isPromise } from \"./_internal/utils\";\nimport type Awaited from \"./types/Awaited\";\n\n/**\n * This method invokes interceptor and returns a value.\n * The interceptor is invoked with one argument.\n *\n * @example\n * ```ts\n * tap(console.log, [1,2,3,4,5])\n * // log [1, 2, 3, 4, 5]\n * // return [1, 2, 3, 4, 5]\n *\n * tap(async (a) => console.log(a), [1,2,3,4,5]);\n * // log [1, 2, 3, 4, 5]\n * // return Promise<[1, 2, 3, 4, 5]>\n * ```\n */\nfunction tap(\n f: (arg: Awaited) => U,\n v: T,\n): U extends Promise ? Promise> : T;\n\nfunction tap(\n f: (arg: Awaited) => U,\n): (v: T) => U extends Promise ? Promise> : T;\n\nfunction tap(\n f: (arg: Awaited) => U,\n v?: T,\n):\n | T\n | Promise\n | ((v: T) => U extends Promise ? Promise> : T) {\n if (v === undefined) {\n return (v: T) => tap(f, v);\n }\n\n const res = isPromise(v) ? v.then(f as any) : (f(v as Awaited) as any);\n if (isPromise(res)) {\n return res.then(() => v);\n }\n\n return v;\n}\n\nexport default tap;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport tap from \"../tap\";\nimport type Awaited from \"../types/Awaited\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport map from \"./map\";\n\n/**\n * Iterate over an input list,\n * calling a provided `f` for each element in the Iterable/AsyncIterable.\n * Use it when you want to create an effect inside `pipe`.\n *\n * @example\n * ```ts\n * const iter = peek(a => console.log(a), [1, 2, 3, 4]);\n * iter.next() // {done:false, value: 1} // log 1\n * iter.next() // {done:false, value: 2} // log 2\n * iter.next() // {done:false, value: 3} // log 3\n * iter.next() // {done:false, value: 4} // log 4\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4],\n * peek(a => console.log(a)),\n * toArray,\n * ); // [1, 2, 3, 4] // log 1,2,3,4\n *\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * peek(a => console.log(a)),\n * toArray,\n * ); // [1, 2, 3, 4] // log 1,2,3,4\n *\n * // if you want to use asynchronous callback\n * await pipe(\n * Promise.resolve([1, 2, 3, 4]),\n * toAsync,\n * peek(async (a) => console.log(a)),\n * toArray,\n * ); // [1, 2, 3, 4] // log 1,2,3,4\n *\n * // with toAsync\n * await pipe(\n * [Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)],\n * toAsync,\n * peek(a => console.log(a)),\n * toArray,\n * ); // [1, 2, 3, 4] // log 1,2,3,4\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-peek-xm1jh | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction peek(\n f: (a: T) => unknown, iterable: Iterable\n): IterableIterator;\n\nfunction peek(\n f: (a: T) => unknown,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction peek | AsyncIterable>(\n f: (a: Awaited>) => unknown,\n): (iterable: T) => ReturnIterableIteratorType;\n\nfunction peek | AsyncIterable>(\n f: (a: Awaited>) => unknown,\n iterable?: T,\n):\n | IterableIterator>>\n | AsyncIterableIterator>>\n | ((iterable: T) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: T) => {\n return peek(f, iterable as any) as ReturnIterableIteratorType;\n };\n }\n\n if (isIterable>>(iterable)) {\n return map(tap(f), iterable) as ReturnIterableIteratorType<\n T,\n Awaited>\n >;\n }\n\n if (isAsyncIterable>>(iterable)) {\n return map(tap(f), iterable) as ReturnIterableIteratorType<\n T,\n Awaited>\n >;\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default peek;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport isNumber from \"../isNumber\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(\n start: number,\n end: number,\n iterable: Iterable,\n): IterableIterator {\n let i = 0;\n for (const item of iterable) {\n if (i >= start && i < end) {\n yield item;\n }\n i += 1;\n }\n}\n\nasync function* asyncSequential(\n start: number,\n end: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let i = 0;\n for await (const item of iterable) {\n if (i >= start && i < end) {\n yield item;\n }\n i += 1;\n }\n}\n\nfunction async(\n start: number,\n end: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let iterator: AsyncIterator;\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n\n async next(_concurrent: any) {\n if (iterator === undefined) {\n // prettier-ignore\n iterator = isConcurrent(_concurrent)\n ? asyncSequential(start, end, concurrent(_concurrent.length, iterable))\n : asyncSequential(start, end, iterable);\n }\n\n return iterator.next(_concurrent);\n },\n };\n}\n\nfunction _slice | AsyncIterable>(\n start: number,\n end: number,\n iterable: T,\n) {\n if (!isNumber(start) || !isNumber(end)) {\n throw new TypeError(\"'start' and 'end' must be type of number\");\n }\n\n if (isIterable(iterable)) {\n return sync(start, end, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(start, end, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\n/**\n * Returns Iterable/AsyncIterable of the given elements from startIndex(inclusive) to endIndex(exclusive).\n *\n * @example\n * ```ts\n * const iter1 = slice(1, 3, ['a', 'b', 'c', 'd', 'e']);\n * iter1.next(); // {value: 'b', done: false};\n * iter1.next(); // {value: 'c', done: false};\n * iter1.next(); // {value: undefined, done: true};\n *\n * const iter2 = slice(3, ['a', 'b', 'c', 'd', 'e']);\n * iter2.next(); // {value: 'd', done: false};\n * iter2.next(); // {value: 'e', done: false};\n * iter2.next(); // {value: undefined, done: true};\n *\n * const iter3 = slice(3, \"abcde\");\n * iter3.next(); // {value: 'd', done: false};\n * iter3.next(); // {value: 'e', done: false};\n * iter3.next(); // {value: undefined, done: true};\n *\n * // with pipe\n * pipe(\n * [1, 2, 3, 4, 5],\n * slice(3),\n * toArray,\n * ); // [4, 5]\n *\n * pipe(\n * [1, 2, 3, 4, 5],\n * slice(1, 3),\n * toArray,\n * ); // [2, 3]\n * ```\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toArray | toArray}\n */\n// prettier-ignore\nfunction slice(\n start: number, \n iterable: Iterable\n): IterableIterator;\n\nfunction slice(\n start: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction slice(\n start: number,\n end: number,\n iterable: Iterable,\n): IterableIterator;\n\nfunction slice(\n start: number,\n end: number,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction slice | AsyncIterable>(\n start: number,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction slice | AsyncIterable>(\n start: number,\n end: number,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction slice | AsyncIterable>(\n start: number | T,\n end?: number | T,\n iterable?: T,\n) {\n if (iterable === undefined) {\n if (end === undefined) {\n return (iterable: T) => {\n return _slice(start as number, Infinity, iterable);\n };\n }\n\n if (isIterable(end) || isAsyncIterable(end)) {\n return _slice(start as number, Infinity, end);\n }\n\n if (isNumber(end)) {\n return (iterable: T) => {\n return _slice(start as number, end, iterable);\n };\n }\n\n return (iterable: T) => {\n return _slice(0, Infinity, iterable);\n };\n }\n\n return _slice(start as number, end as number, iterable as T);\n}\n\nexport default slice;\n","import { isPromise } from \"../_internal/utils\";\n\n/**\n * Returns AsyncIterable, `toAsync` used when you want to handle Promise values inside Iterable.\n *\n * @example\n * ```ts\n * let acc = 0;\n * for await (const item of toAsync([1, 2, 3, 4, 5])) {\n * acc += item;\n * }\n * // acc: 15\n *\n * // with pipe\n * await pipe(\n * [Promise.resolve(1),Promise.resolve(2),Promise.resolve(3)],\n * toAsync,\n * map(a => a + 10),\n * toArray, // [11, 12, 13]\n * );\n * ```\n *\n * {@link https://codesandbox.io/s/fxts-toasync-00nxr | Try It}\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toAsync | toAsync},\n * {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction toAsync(iter: Iterable>): AsyncIterableIterator {\n const iterator = iter[Symbol.iterator]();\n return {\n async next() {\n const { value, done } = iterator.next();\n if (isPromise(value)) {\n return value.then((value) => ({ done, value }));\n } else {\n return { done, value };\n }\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\nexport default toAsync;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport consume from \"../consume\";\nimport each from \"../each\";\nimport every from \"../every\";\nimport find from \"../find\";\nimport findIndex from \"../findIndex\";\nimport groupBy from \"../groupBy\";\nimport indexBy from \"../indexBy\";\nimport isUndefined from \"../isUndefined\";\nimport join from \"../join\";\nimport reduce from \"../reduce\";\nimport some from \"../some\";\nimport type Cast from \"../types/Cast\";\nimport type { DeepFlat } from \"../types/DeepFlat\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport type Key from \"../types/Key\";\nimport type { SyncReducer } from \"../types/Reducer\";\nimport chunk from \"./chunk\";\nimport concurrent from \"./concurrent\";\nimport drop from \"./drop\";\nimport filter from \"./filter\";\nimport flat from \"./flat\";\nimport flatMap from \"./flatMap\";\nimport map from \"./map\";\nimport peek from \"./peek\";\nimport reject from \"./reject\";\nimport slice from \"./slice\";\nimport take from \"./take\";\nimport takeUntil from \"./takeUntil\";\nimport takeWhile from \"./takeWhile\";\nimport toAsync from \"./toAsync\";\n\nclass FxAsyncIterable {\n private asyncIterable: AsyncIterable;\n\n constructor(asyncIterable: AsyncIterable) {\n this.asyncIterable = asyncIterable;\n }\n\n [Symbol.asyncIterator]() {\n return this.asyncIterable[Symbol.asyncIterator]();\n }\n\n /**\n * It takes a user-defined function that transforms the current object and returns the result of that transformation.\n *\n * @example\n * ```ts\n * const arrSize = await fx([5, 2, 3, 1, 4, 5, 3])\n * .toAsync()\n * .filter((n) => n % 2 === 1)\n * .map((n) => n * 10)\n * .to((iterable) => size(uniq(iterable)));\n * ```\n */\n to(converter: (asyncIterable: this) => R): R {\n return converter(this);\n }\n\n /**\n * Returns AsyncIterable of values by running each applying `f`.\n *\n * see {@link https://fxts.dev/docs/map | map}\n */\n map(f: (a: A) => B) {\n return new FxAsyncIterable(map(f, this.asyncIterable));\n }\n\n /**\n * A function that is identical to `map`, but is intended to create side effects as part of its convention.\n *\n * see {@link https://fxts.dev/docs/map | map}\n */\n mapEffect(f: (a: A) => B) {\n return new FxAsyncIterable(map(f, this.asyncIterable));\n }\n\n /**\n * Returns flattened AsyncIterable of values by running each element\n * flattening the mapped results.\n *\n * see {@link https://fxts.dev/docs/flatMap | flatMap}\n */\n flatMap(f: (a: A) => B) {\n return new FxAsyncIterable(flatMap(f, this.asyncIterable));\n }\n\n /**\n * Returns flattened AsyncIterable.\n * If first argument is number, more perform flatten\n *\n * @example\n * ```\n * await fx([[1],[[2]]])\n * .toAsync()\n * .flat(2).toArray(); // [1,2]\n * ```\n *\n * see {@link https://fxts.dev/docs/flat | flat}\n */\n flat(depth?: T) {\n return new FxAsyncIterable(\n flat(this.asyncIterable, depth),\n ) as FxAsyncIterable>;\n }\n\n /**\n * Return AsyncIterable of all elements `f` returns truthy for\n *\n * see {@link https://fxts.dev/docs/filter | filter}\n */\n filter(f: (a: A) => unknown): FxAsyncIterable {\n return new FxAsyncIterable(filter(f, this.asyncIterable));\n }\n\n /**\n * The opposite of filter method\n * AsyncIterable of all elements `f` returns falsy for\n *\n * see {@link https://fxts.dev/docs/reject | reject}\n */\n reject(f: (a: A) => unknown): FxAsyncIterable {\n return new FxAsyncIterable(reject(f, this.asyncIterable));\n }\n\n /**\n * Returns AsyncIterable that taken the first argument `l` values from asyncIterable\n *\n * see {@link https://fxts.dev/docs/take | take}\n */\n take(n: number): FxAsyncIterable {\n return new FxAsyncIterable(take(n, this.asyncIterable));\n }\n\n /**\n * Returns AsyncIterable that taken values until truthy when given `f` is applied.\n *\n * see {@link https://fxts.dev/docs/takeUntil | takeUntil}\n */\n takeUntil(f: (a: A) => unknown): FxAsyncIterable {\n return new FxAsyncIterable(takeUntil(f, this.asyncIterable));\n }\n\n /**\n * Returns AsyncIterable that taken values as long as each value satisfies the give `f`.\n *\n * see {@link https://fxts.dev/docs/takeWhile | takeWhile}\n */\n takeWhile(f: (a: A) => unknown): FxAsyncIterable {\n return new FxAsyncIterable(takeWhile(f, this.asyncIterable));\n }\n\n /**\n * Iterate over an input list,\n * calling a provided `f` for each element in the AsyncIterable.\n *\n * see {@link https://fxts.dev/docs/peek | peek}\n */\n peek(f: (a: A) => unknown): FxAsyncIterable {\n return new FxAsyncIterable(peek(f, this.asyncIterable));\n }\n\n /**\n * Returns all but the first `length` elements of the given asyncIterable.\n *\n * see {@link https://fxts.dev/docs/drop | drop}\n */\n drop(length: number): FxAsyncIterable {\n return new FxAsyncIterable(drop(length, this.asyncIterable));\n }\n\n /**\n * Returns AsyncIterable of the given elements from startIndex(inclusive) to endIndex(exclusive).\n *\n * see {@link https://fxts.dev/docs/slice | slice}\n */\n slice(start: number, end?: number): FxAsyncIterable {\n return isUndefined(end)\n ? new FxAsyncIterable(slice(start, this.asyncIterable))\n : new FxAsyncIterable(slice(start, end, this.asyncIterable));\n }\n\n /**\n *\n * `chain` allows you to use functions that are not provided in method chaining.\n * The functions available for the `chain` argument return an iterable.\n *\n * @example\n * ```\n * await fx(toAsync(range(1, 4)))\n * .chain(append(4))\n * .chain(append(5))\n * .toArray(); // [1, 2, 3, 4, 5]\n * ```\n */\n chain(\n f: (asyncIterable: AsyncIterable) => AsyncIterable>,\n ): FxAsyncIterable {\n return new FxAsyncIterable(f(this.asyncIterable));\n }\n\n /**\n * Returns AsyncIterable of elements split into groups the length of size.\n * If AsyncIterableIterator can't be split evenly, the final chunk will be the remaining elements.\n *\n * see {@link https://fxts.dev/docs/chunk | chunk}\n */\n chunk(size: number) {\n return new FxAsyncIterable(chunk(size, this.asyncIterable));\n }\n\n /**\n * Concurrent is used to balance the load of multiple asynchronous requests.\n * The first argument receives a number that controls the number of loads, and the second argument is an AsyncIterable.\n *\n * see {@link https://fxts.dev/docs/concurrent | concurrent}\n */\n concurrent(length: number) {\n return new FxAsyncIterable(concurrent(length, this.asyncIterable));\n }\n\n async consume() {\n return consume(this.asyncIterable);\n }\n\n /**\n * Splits AsyncIterable into sets, grouped by the result of running each value through `f`.\n *\n * see {@link https://fxts.dev/docs/groupBy | groupBy}\n */\n async groupBy(f: (a: A) => Key) {\n return groupBy(f, this.asyncIterable);\n }\n\n /**\n * Given `f` that generates a key,\n * turns a list of objects into an object indexing the objects by the given key.\n * Note that if multiple objects generate the same value for the indexing key only the last value will be included in the generated object.\n *\n * see {@link https://fxts.dev/docs/indexBy | indexBy}\n */\n async indexBy(f: (a: A) => Key) {\n return indexBy(f, this.asyncIterable);\n }\n\n /**\n * Returns true if any of the values in AsyncIterable pass `f` truth test\n *\n * see {@link https://fxts.dev/docs/some | some}\n */\n async some(f: (a: A) => unknown): Promise {\n return some(f, this.asyncIterable);\n }\n\n /**\n * Returns true if all of the values in AsyncIterable pass the `f` truth test.\n *\n * see {@link https://fxts.dev/docs/every | every}\n */\n async every(f: (a: A) => unknown): Promise {\n return every(f, this.asyncIterable);\n }\n\n /**\n * Returns all elements in the given iterable into a string separated by separator.\n *\n * see {@link https://fxts.dev/docs/join | join}\n */\n async join(sep: string): Promise {\n return join(sep, this.asyncIterable);\n }\n\n /**\n * Looks through each value in AsyncIterable, returning the first one that passes a truth test `f`,\n * or `undefined` if no value passes the test.\n *\n * see {@link https://fxts.dev/docs/find | find}\n */\n async find(f: (a: A) => unknown): Promise {\n return find(f, this.asyncIterable);\n }\n\n /**\n * Returns the index of the first element of AsyncIterable which matches f, or -1 if no element matches.\n *\n * see {@link https://fxts.dev/docs/findIndex | findIndex}\n */\n async findIndex(f: (a: A) => unknown): Promise {\n return findIndex(f, this.asyncIterable);\n }\n\n /**\n * Also known as foldl, this method boils down a list of values into a single value.\n *\n * see {@link https://fxts.dev/docs/reduce | reduce}\n */\n async reduce(\n f: SyncReducer, A>,\n seed?: B,\n ): Promise> {\n return isUndefined(seed)\n ? reduce(f, this.asyncIterable)\n : reduce(f, seed as any, this.asyncIterable);\n }\n\n /**\n * Iterates over AsyncIterable, applying each in turn to `f`.\n * It works the same way as `forEach`.\n *\n * see {@link https://fxts.dev/docs/each | each}\n */\n async each(f: (a: A) => unknown): Promise {\n return each(f, this.asyncIterable);\n }\n\n /**\n * Iterates over AsyncIterable, applying each in turn to `f`.\n * It works the same way as `each`.\n *\n * see {@link https://fxts.dev/docs/each | each}\n */\n async forEach(f: (a: A) => unknown): Promise {\n return each(f, this.asyncIterable);\n }\n\n /**\n * Takes item from AsyncIterable and returns an array.\n *\n * see {@link https://fxts.dev/docs/toArray | toArray}\n */\n async toArray(): Promise>> {\n const array: Awaited[] = [];\n for await (const a of this.asyncIterable) {\n array.push(a);\n }\n return array;\n }\n}\n\nexport class FxIterable {\n private iterable: Iterable;\n\n constructor(iterable: Iterable) {\n this.iterable = iterable;\n }\n\n [Symbol.iterator]() {\n return this.iterable[Symbol.iterator]();\n }\n\n /**\n * It takes a user-defined function that transforms the current object and returns the result of that transformation.\n *\n *\n * @example\n * ```ts\n * const size = fx([5, 2, 3, 1, 4, 5, 3])\n * .filter(n => n % 2 === 1)\n * .map(n => n * 10)\n * .to(iterable => new Set(iterable)) // convert set\n * .add(10)\n * .size;\n * ```\n */\n to(converter: (iterable: this) => R): R {\n return converter(this);\n }\n\n /**\n * Returns Iterable of values by running each applying `f`.\n *\n * see {@link https://fxts.dev/docs/map | map}\n */\n map(f: (a: A) => B): FxIterable {\n return new FxIterable(map(f, this.iterable));\n }\n\n /**\n * A function that is identical to `map`, but is intended to create side effects as part of its convention.\n *\n * see {@link https://fxts.dev/docs/map | map}\n */\n mapEffect(f: (a: A) => B): FxIterable {\n return new FxIterable(map(f, this.iterable));\n }\n\n /**\n * Returns flattened Iterable of values by running each element\n * flattening the mapped results.\n *\n * see {@link https://fxts.dev/docs/flatMap | flatMap}\n */\n flatMap(f: (a: A) => B) {\n return new FxIterable(flatMap(f, this.iterable));\n }\n\n /**\n * Returns flattened Iterable.\n * If first argument is number, more perform flatten\n *\n * @example\n * `fx([[1],[[2]]]).flat(2).toArray(); // [1,2]`\n *\n * see {@link https://fxts.dev/docs/flat | flat}\n */\n flat(depth?: T) {\n const res = flat(this.iterable, depth);\n\n return new FxIterable(res) as FxIterable>;\n }\n\n /**\n * Return Iterable of all elements `f` returns truthy for\n *\n * see {@link https://fxts.dev/docs/filter | filter}\n */\n filter(f: (a: A) => unknown): FxIterable {\n return new FxIterable(filter(f, this.iterable));\n }\n\n /**\n * The opposite of filter method\n * Iterable of all elements `f` returns falsy for\n *\n * see {@link https://fxts.dev/docs/reject | reject}\n */\n reject(f: (a: A) => unknown): FxIterable {\n return new FxIterable(reject(f, this.iterable));\n }\n\n /**\n * Returns Iterable that taken the first argument `l` values from iterable\n *\n * see {@link https://fxts.dev/docs/take | take}\n */\n take(n: number): FxIterable {\n return new FxIterable(take(n, this.iterable));\n }\n\n /**\n * Returns Iterable that taken values until truthy when given `f` is applied.\n *\n * see {@link https://fxts.dev/docs/takeUntil | takeUntil}\n */\n takeUntil(f: (a: A) => unknown): FxIterable {\n return new FxIterable(takeUntil(f, this.iterable));\n }\n\n /**\n * Returns Iterable that taken values as long as each value satisfies the give `f`.\n *\n * see {@link https://fxts.dev/docs/takeWhile | takeWhile}\n */\n takeWhile(f: (a: A) => unknown): FxIterable {\n return new FxIterable(takeWhile(f, this.iterable));\n }\n\n /**\n * Iterate over an input list,\n * calling a provided `f` for each element in the Iterable.\n *\n * see {@link https://fxts.dev/docs/peek | peek}\n */\n peek(f: (a: A) => unknown): FxIterable {\n return new FxIterable(peek(f, this.iterable));\n }\n\n /**\n * Returns all but the first `length` elements of the given iterable.\n *\n * see {@link https://fxts.dev/docs/drop | drop}\n */\n drop(length: number): FxIterable {\n return new FxIterable(drop(length, this.iterable));\n }\n\n /**\n * Returns Iterable of the given elements from startIndex(inclusive) to endIndex(exclusive).\n *\n * see {@link https://fxts.dev/docs/slice | slice}\n */\n slice(start: number, end?: number): FxIterable {\n return isUndefined(end)\n ? new FxIterable(slice(start, this.iterable))\n : new FxIterable(slice(start, end, this.iterable));\n }\n\n /**\n *\n * `chain` allows you to use functions that are not provided in method chaining.\n * The functions available for the `chain` argument return an asyncIterable.\n *\n * @example\n * ```\n * fx(range(1, 4))\n * .chain(append(4))\n * .chain(append(5))\n * .toArray(); // [1, 2, 3, 4, 5]\n * ```\n */\n chain(f: (iterable: Iterable) => Iterable): FxIterable {\n return new FxIterable(f(this.iterable));\n }\n\n /**\n * Returns Iterable of elements split into groups the length of size.\n * If iterableIterator can't be split evenly, the final chunk will be the remaining elements.\n *\n * see {@link https://fxts.dev/docs/chunk | chunk}\n */\n chunk(size: number) {\n return new FxIterable(chunk(size, this.iterable));\n }\n\n /**\n * Returns AsyncIterable, `toAsync` used when you want to handle Promise values inside Iterable.\n *\n * see {@link https://fxts.dev/docs/toAsync | toAsync}\n */\n toAsync(): FxAsyncIterable {\n return new FxAsyncIterable(toAsync(this.iterable));\n }\n\n /**\n * Splits Iterable into sets, grouped by the result of running each value through `f`.\n *\n * see {@link https://fxts.dev/docs/groupBy | groupBy}\n */\n groupBy(f: (a: A) => Key) {\n return groupBy(f, this.iterable);\n }\n\n /**\n * Given `f` that generates a key,\n * turns a list of objects into an object indexing the objects by the given key.\n * Note that if multiple objects generate the same value for the indexing key only the last value will be included in the generated object.\n *\n * see {@link https://fxts.dev/docs/indexBy | indexBy}\n */\n indexBy(f: (a: A) => Key) {\n return indexBy(f, this.iterable);\n }\n\n /**\n * Returns true if any of the values in AsyncIterable pass `f` truth test\n *\n * see {@link https://fxts.dev/docs/some | some}\n */\n some(f: (a: A) => unknown): boolean {\n return some(f, this.iterable);\n }\n\n /**\n * Returns true if all of the values in AsyncIterable pass the `f` truth test.\n *\n * see {@link https://fxts.dev/docs/every | every}\n */\n every(f: (a: A) => unknown): boolean {\n return every(f, this.iterable);\n }\n\n /**\n * Returns all elements in the given iterable into a string separated by separator.\n *\n * see {@link https://fxts.dev/docs/join | join}\n */\n join(sep: string): string {\n return join(sep, this.iterable);\n }\n\n /**\n * Looks through each value in AsyncIterable, returning the first one that passes a truth test `f`,\n * or `undefined` if no value passes the test.\n *\n * see {@link https://fxts.dev/docs/find | find}\n */\n find(f: (a: A) => unknown): A | undefined {\n return find(f, this.iterable);\n }\n\n /**\n * Returns the index of the first element of AsyncIterable which matches f, or -1 if no element matches.\n *\n * see {@link https://fxts.dev/docs/findIndex | findIndex}\n */\n findIndex(f: (a: A) => unknown): number {\n return findIndex(f, this.iterable);\n }\n\n /**\n * Also known as foldl, this method boils down a list of values into a single value.\n *\n * see {@link https://fxts.dev/docs/reduce | reduce}\n */\n reduce(f: SyncReducer, A>, seed?: B): Cast {\n return isUndefined(seed)\n ? reduce(f, this.iterable)\n : reduce(f, seed as any, this.iterable);\n }\n\n /**\n * Iterates over Iterable, applying each in turn to `f`.\n * It works the same way as `forEach`.\n *\n * see {@link https://fxts.dev/docs/each | each}\n */\n each(f: (a: A) => unknown): void {\n return each(f, this.iterable);\n }\n\n /**\n * Iterates over Iterable, applying each in turn to `f`.\n * It works the same way as `each`.\n *\n * see {@link https://fxts.dev/docs/each | each}\n */\n forEach(f: (a: A) => unknown): void {\n return each(f, this.iterable);\n }\n\n /**\n * Takes item from Iterable and returns an array.\n *\n * see {@link https://fxts.dev/docs/toArray | toArray}\n */\n toArray(): Array {\n return Array.from(this.iterable);\n }\n\n toIterator(): Array {\n return Array.from(this.iterable);\n }\n}\n\n/**\n * `fx` allows functions provided by existing `fxts` to be used in a method chaining.\n * Not all functions are provided as methods and can be connected through `chain` if necessary.\n *\n * see {@link https://fxts.dev/docs/method-chaining | guide}\n *\n * @example\n * ```ts\n * const syncArr1 = fx([1, 2, 3, 4])\n * .map((a) => a + 10)\n * .toArray(); // [11, 12, 13, 14]\n *\n * // If you want to use another function that is not provided for the method, use `chain`.\n * const syncArr2 = fx([1, 2, 3, 4])\n * .chain(append(5))\n * .map((a) => a + 10)\n * .toArray(); // [11, 12, 13, 14, 15]\n *\n * const asyncArr1 = await fx([1, 2, 3, 4])\n * .toAsync()\n * .map((a) => a + 10)\n * .toArray(); // [11, 12, 13, 14]\n *\n * const asyncArr2 = await fx(toAsync([1, 2, 3, 4]))\n * .map((a) => a + 10)\n * .toArray(); // [11, 12, 13, 14]\n * ```\n */\nfunction fx | AsyncIterable>(\n a: T,\n): T extends Iterable\n ? FxIterable>\n : FxAsyncIterable> {\n if (isAsyncIterable(a)) {\n return new FxAsyncIterable(a) as any;\n } else if (isIterable(a)) {\n return new FxIterable(a) as any;\n }\n\n throw new TypeError(`'fx' must be type of Iterable or AsyncIterable`);\n}\n\nexport default fx;\n","import { throwIfPromiseError } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport pipe from \"../pipe\";\nimport pipe1 from \"../pipe1\";\nimport toArray from \"../toArray\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\nimport filter from \"./filter\";\nimport map from \"./map\";\nimport toAsync from \"./toAsync\";\nimport uniq from \"./uniq\";\n\nfunction* sync(\n f: (a: T) => unknown,\n iterable1: Iterable,\n iterable2: Iterable,\n) {\n const set = new Set(map((a) => throwIfPromiseError(f(a)), iterable1));\n\n yield* pipe(\n iterable2,\n filter((a) => pipe1(f(a), (b) => set.has(b))),\n uniq,\n );\n}\n\nasync function* asyncSequential(\n f: (a: T) => unknown,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n) {\n const set = new Set(await toArray(map(f, iterable1)));\n\n yield* pipe(\n iterable2,\n filter((a) => pipe1(f(a), (b) => set.has(b))),\n uniq,\n );\n}\n\nfunction async(\n f: (a: T) => unknown,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncSequential(\n f,\n iterable1,\n concurrent(_concurrent.length, iterable2),\n )\n : asyncSequential(f, iterable1, iterable2);\n }\n\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Returns Iterable/AsyncIterable(i.e no duplicate) of all elements in the `iterable2` contained in the `iterable1`.\n * Duplication is determined according to the value returned by applying the supplied `f` to `iterable2`.\n *\n * @example\n * ```ts\n * const iter = intersectionBy(a => a.x, [{ x: 1 }, { x: 4 }], [{ x: 1 }, { x: 2 }, { x: 3 }])\n * iter.next(); // {value: {x: 1, done: false}\n * iter.next(); // {value: undefined, done: true}\n * ```\n */\nfunction intersectionBy(\n f: (a: A) => B,\n iterable1: Iterable,\n iterable2: Iterable,\n): IterableIterator;\n\nfunction intersectionBy(\n f: (a: A) => B,\n iterable1: AsyncIterable,\n iterable2: Iterable,\n): AsyncIterableIterator;\n\nfunction intersectionBy(\n f: (a: A) => B,\n iterable1: Iterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction intersectionBy(\n f: (a: A) => B,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction intersectionBy(\n f: (a: A) => B,\n iterable1: Iterable | AsyncIterable,\n iterable2: Iterable | AsyncIterable,\n): IterableIterator | AsyncIterableIterator {\n if (isIterable(iterable1) && isIterable(iterable2)) {\n return sync(f, iterable1, iterable2);\n }\n if (isIterable(iterable1) && isAsyncIterable(iterable2)) {\n return async(f, toAsync(iterable1), iterable2);\n }\n if (isAsyncIterable(iterable1) && isIterable(iterable2)) {\n return async(f, iterable1, toAsync(iterable2));\n }\n if (isAsyncIterable(iterable1) && isAsyncIterable(iterable2)) {\n return async(f, iterable1, iterable2);\n }\n\n throw new TypeError(\n \"'iterable1' and 'iterable2' must be type of Iterable or AsyncIterable\",\n );\n}\n\nexport default intersectionBy;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport identity from \"../identity\";\nimport type IterableInfer from \"../types/IterableInfer\";\nimport intersectionBy from \"./intersectionBy\";\n\n/**\n * Returns Iterable/AsyncIterable of all elements in the `iterable2` contained in the `iterable1`.\n *\n * @example\n * ```ts\n * const iter = intersection([2, 1], [2, 3, 4]);\n * iter.next(); // {value: 2, done:false}\n * iter.next(); // {value: undefined, done: true}\n * ```\n */\nfunction intersection(\n iterable1: Iterable,\n iterable2: Iterable,\n): IterableIterator;\n\nfunction intersection(\n iterable1: AsyncIterable,\n iterable2: Iterable,\n): AsyncIterableIterator;\n\nfunction intersection(\n iterable1: Iterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction intersection(\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction intersection<\n A extends Iterable | AsyncIterable,\n B extends Iterable | AsyncIterable,\n>(\n iterable1: A,\n): (\n iterable2: B,\n) => A extends AsyncIterable\n ? AsyncIterableIterator>\n : B extends AsyncIterable\n ? AsyncIterableIterator>\n : IterableIterator>;\n\nfunction intersection(\n iterable1: Iterable | AsyncIterable,\n iterable2?: Iterable | AsyncIterable,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((\n iterable2: Iterable | AsyncIterable,\n ) => IterableIterator | AsyncIterableIterator) {\n if (iterable2 === undefined) {\n return (iterable2: any) => {\n return intersection(iterable1 as any, iterable2);\n };\n }\n\n if (isIterable(iterable1) && isIterable(iterable2)) {\n return intersectionBy(identity, iterable1, iterable2);\n }\n if (isIterable(iterable1) && isAsyncIterable(iterable2)) {\n return intersectionBy(identity, iterable1, iterable2);\n }\n if (isAsyncIterable(iterable1) && isIterable(iterable2)) {\n return intersectionBy(identity, iterable1, iterable2);\n }\n if (isAsyncIterable(iterable1) && isAsyncIterable(iterable2)) {\n return intersectionBy(identity, iterable1, iterable2);\n }\n\n throw new TypeError(\n \"'iterable1' and 'iterable2' must be type of Iterable or AsyncIterable\",\n );\n}\n\nexport default intersection;\n","/**\n *\n * Returns an iterator of the own enumerable property names of object.\n *\n * @example\n * ```ts\n * [...keys({ a: 1, b: \"2\", c: true })]\n * // [\"a\", \"b\", \"c\"]\n * ```\n */\n\nfunction* keys>(obj: T) {\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)) {\n yield k;\n }\n }\n}\n\nexport default keys;\n","import { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport type ReturnIterableIteratorType from \"../types/ReturnIterableIteratorType\";\nimport concurrent, { isConcurrent } from \"./concurrent\";\n\nfunction* sync(sep: string, iterable: Iterable) {\n if (sep === \"\") {\n return yield* iterable;\n }\n\n let acc = \"\";\n let chr = \"\";\n for (chr of iterable) {\n if (chr === sep) {\n yield acc;\n acc = \"\";\n } else {\n acc += chr;\n }\n }\n\n if (chr === sep) {\n yield \"\";\n } else if (acc.length > 0) {\n yield acc;\n }\n}\n\nasync function* asyncSequential(sep: string, iterable: AsyncIterable) {\n if (sep === \"\") {\n return yield* iterable;\n }\n\n let acc = \"\";\n let chr = \"\";\n\n for await (chr of iterable) {\n if (chr === sep) {\n yield acc;\n acc = \"\";\n } else {\n acc += chr;\n }\n }\n\n if (chr === sep) {\n yield \"\";\n } else if (acc.length > 0) {\n yield acc;\n }\n}\n\nfunction async(\n sep: string,\n iterable: AsyncIterable,\n): AsyncIterableIterator {\n let _iterator: AsyncIterator;\n return {\n async next(_concurrent: any) {\n if (_iterator === undefined) {\n _iterator = isConcurrent(_concurrent)\n ? asyncSequential(sep, concurrent(_concurrent.length, iterable))\n : asyncSequential(sep, iterable);\n }\n return _iterator.next(_concurrent);\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n}\n\n/**\n * Splits string by separator.\n *\n * @example\n * ```ts\n * const iter = split(',', '1,2,3,4');\n * iter.next(); // 1\n * iter.next(); // 2\n * iter.next(); // 3\n * iter.next(); // 4\n * iter.next(); // undefined\n *\n * // with pipe\n * pipe(\n * \"1,2,3,4,5\",\n * split(','),\n * toArray,\n * ); // [\"1\", \"2\", \"3\", \"4\", \"5\"]\n * ```\n *\n * see {@link https://fxts.dev/docs/pipe | pipe}, {@link https://fxts.dev/docs/toArray | toArray}\n */\nfunction split(\n sep: string,\n iterable: Iterable,\n): IterableIterator;\n\nfunction split(\n sep: string,\n iterable: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction split | AsyncIterable>(\n sep: string,\n): (iterable: A) => ReturnIterableIteratorType;\n\nfunction split | AsyncIterable>(\n sep: string,\n iterable?: A,\n):\n | IterableIterator\n | AsyncIterableIterator\n | ((iterable: A) => ReturnIterableIteratorType) {\n if (iterable === undefined) {\n return (iterable: A): ReturnIterableIteratorType => {\n return split(sep, iterable as any) as ReturnIterableIteratorType<\n A,\n string\n >;\n };\n }\n\n if (isIterable(iterable)) {\n return sync(sep, iterable);\n }\n\n if (isAsyncIterable(iterable)) {\n return async(sep, iterable);\n }\n\n throw new TypeError(\"'iterable' must be type of Iterable or AsyncIterable\");\n}\n\nexport default split;\n","/**\n *\n * Returns an iterator of the own enumerable string keyed property values of object.\n *\n * @example\n * ```ts\n * [...values({ a: 1, b: \"2\", c: true })]\n * // [1, \"2\", true]\n * ```\n */\n\nfunction* values>(obj: T) {\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)) {\n yield obj[k];\n }\n }\n}\n\nexport default values;\n","import { throwIfPromiseError } from \"../_internal/error\";\nimport { isAsyncIterable, isIterable } from \"../_internal/utils\";\nimport map from \"./map\";\nimport zip from \"./zip\";\n\n/**\n * Returns Iterable/AsyncIterable out of the two supplied by applying `f` to each same positioned pair in Iterable/AsyncIterable.\n *\n * @example\n * ```ts\n * const iter = zipWith((a,b) => [a,b], [1,2,3], ['a','b','c']);\n * iter.next(); // {value: [1, 'a'] , done: false}\n * iter.next(); // {value: [2, 'b'] , done: false}\n * iter.next(); // {value: [3, 'c'] , done: false}\n * iter.next(); // {value: undefined , done: true}\n * ```\n */\nfunction zipWith(\n f: (a: A, b: B) => C,\n iterable1: Iterable,\n iterable2: Iterable,\n): IterableIterator;\n\nfunction zipWith(\n f: (a: A, b: B) => C,\n iterable1: Iterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction zipWith(\n f: (a: A, b: B) => C,\n iterable1: AsyncIterable,\n iterable2: Iterable,\n): AsyncIterableIterator;\n\nfunction zipWith(\n f: (a: A, b: B) => C,\n iterable1: AsyncIterable,\n iterable2: AsyncIterable,\n): AsyncIterableIterator;\n\nfunction zipWith(\n f: (a: A, b: B) => C,\n iterable1: Iterable | AsyncIterable,\n iterable2: Iterable | AsyncIterable,\n): IterableIterator | AsyncIterableIterator {\n if (isIterable(iterable1) && isIterable(iterable2)) {\n return map(\n ([a, b]) => throwIfPromiseError(f(a, b)),\n zip(iterable1, iterable2),\n );\n }\n if (isIterable(iterable1) && isAsyncIterable(iterable2)) {\n return map(([a, b]) => f(a, b), zip(iterable1, iterable2));\n }\n if (isAsyncIterable(iterable1) && isIterable(iterable2)) {\n return map(([a, b]) => f(a, b), zip(iterable1, iterable2));\n }\n if (isAsyncIterable(iterable1) && isAsyncIterable(iterable2)) {\n return map(([a, b]) => f(a, b), zip(iterable1, iterable2));\n }\n\n throw new TypeError(\n \"'iterable1' and 'iterable2' must be type of Iterable or AsyncIterable\",\n );\n}\n\nexport default zipWith;\n","import append from \"./append\";\nimport chunk from \"./chunk\";\nimport compact from \"./compact\";\nimport compress from \"./compress\";\nimport concat from \"./concat\";\nimport concurrent from \"./concurrent\";\nimport cycle from \"./cycle\";\nimport difference from \"./difference\";\nimport differenceBy from \"./differenceBy\";\nimport drop from \"./drop\";\nimport dropRight from \"./dropRight\";\nimport dropUntil from \"./dropUntil\";\nimport dropWhile from \"./dropWhile\";\nimport entries from \"./entries\";\nimport filter from \"./filter\";\nimport flat from \"./flat\";\nimport flatMap from \"./flatMap\";\nimport fx from \"./fx\";\nimport intersection from \"./intersection\";\nimport intersectionBy from \"./intersectionBy\";\nimport keys from \"./keys\";\nimport map from \"./map\";\nimport peek from \"./peek\";\nimport pipeLazy from \"./pipeLazy\";\nimport pluck from \"./pluck\";\nimport prepend from \"./prepend\";\nimport range from \"./range\";\nimport reject from \"./reject\";\nimport repeat from \"./repeat\";\nimport reverse from \"./reverse\";\nimport scan from \"./scan\";\nimport slice from \"./slice\";\nimport split from \"./split\";\nimport take from \"./take\";\nimport takeRight from \"./takeRight\";\nimport takeUntil from \"./takeUntil\";\nimport takeWhile from \"./takeWhile\";\nimport toAsync from \"./toAsync\";\nimport uniq from \"./uniq\";\nimport uniqBy from \"./uniqBy\";\nimport values from \"./values\";\nimport zip from \"./zip\";\nimport zipWith from \"./zipWith\";\nimport zipWithIndex from \"./zipWithIndex\";\n\nexport {\n append,\n chunk,\n compact,\n compress,\n concat,\n concurrent,\n cycle,\n difference,\n differenceBy,\n drop,\n dropRight,\n dropUntil,\n dropWhile,\n entries,\n filter,\n flat,\n flatMap,\n fx,\n intersection,\n intersectionBy,\n keys,\n map,\n map as mapEffect,\n peek,\n pipeLazy,\n pluck,\n prepend,\n range,\n reject,\n repeat,\n reverse,\n scan,\n slice,\n split,\n take,\n takeUntil,\n takeRight,\n takeWhile,\n toAsync,\n uniq,\n uniqBy,\n values,\n zip,\n zipWith,\n zipWithIndex,\n};\n","import add from \"./add\";\nimport always from \"./always\";\nimport apply from \"./apply\";\nimport average from \"./average\";\nimport compactObject from \"./compactObject\";\nimport consume from \"./consume\";\nimport countBy from \"./countBy\";\nimport curry from \"./curry\";\nimport delay from \"./delay\";\nimport each from \"./each\";\nimport every from \"./every\";\nimport evolve from \"./evolve\";\nimport find from \"./find\";\nimport findIndex from \"./findIndex\";\nimport fromEntries from \"./fromEntries\";\nimport groupBy from \"./groupBy\";\nimport gt from \"./gt\";\nimport gte from \"./gte\";\nimport head from \"./head\";\nimport identity from \"./identity\";\nimport includes from \"./includes\";\nimport indexBy from \"./indexBy\";\nimport isArray from \"./isArray\";\nimport isBoolean from \"./isBoolean\";\nimport isEmpty from \"./isEmpty\";\nimport isNil from \"./isNil\";\nimport isNull from \"./isNull\";\nimport isNumber from \"./isNumber\";\nimport isObject from \"./isObject\";\nimport isString from \"./isString\";\nimport isUndefined from \"./isUndefined\";\nimport join from \"./join\";\nimport juxt from \"./juxt\";\nimport last from \"./last\";\nimport lt from \"./lt\";\nimport lte from \"./lte\";\nimport max from \"./max\";\nimport memoize from \"./memoize\";\nimport min from \"./min\";\nimport negate from \"./negate\";\nimport noop from \"./noop\";\nimport not from \"./not\";\nimport nth from \"./nth\";\nimport omit from \"./omit\";\nimport omitBy from \"./omitBy\";\nimport partition from \"./partition\";\nimport pick from \"./pick\";\nimport pickBy from \"./pickBy\";\nimport pipe from \"./pipe\";\nimport pipe1 from \"./pipe1\";\nimport prop from \"./prop\";\nimport props from \"./props\";\nimport reduce from \"./reduce\";\nimport reduceLazy from \"./reduceLazy\";\nimport size from \"./size\";\nimport some from \"./some\";\nimport sort from \"./sort\";\nimport sortBy from \"./sortBy\";\nimport sum from \"./sum\";\nimport tap from \"./tap\";\nimport throwError from \"./throwError\";\nimport throwIf from \"./throwIf\";\nimport toArray from \"./toArray\";\nimport unicodeToArray from \"./unicodeToArray\";\nimport unless from \"./unless\";\n\nexport {\n add,\n always,\n apply,\n average,\n average as mean,\n compactObject,\n consume,\n countBy,\n curry,\n delay,\n each,\n each as forEach,\n every,\n evolve,\n find,\n findIndex,\n fromEntries,\n groupBy,\n gt,\n gte,\n head,\n head as first,\n identity,\n includes,\n includes as contains,\n indexBy,\n isArray,\n isBoolean,\n isEmpty,\n isNil,\n isNumber,\n isObject,\n isString,\n isUndefined,\n isNull,\n join,\n juxt,\n last,\n lt,\n lte,\n max,\n memoize,\n min,\n negate,\n noop,\n not,\n nth,\n omit,\n omitBy,\n partition,\n pick,\n pickBy,\n pipe,\n pipe1,\n prop,\n props,\n reduce,\n reduceLazy,\n size,\n unless,\n some,\n sort,\n sortBy,\n sum,\n tap,\n throwError,\n throwIf,\n toArray,\n unicodeToArray,\n};\n\nexport * from \"./Lazy/index\";\n","import { Subscribable } from './subscribable'\nimport { isServer } from './utils'\n\ntype Listener = (focused: boolean) => void\n\ntype SetupFn = (\n setFocused: (focused?: boolean) => void,\n) => (() => void) | undefined\n\nexport class FocusManager extends Subscribable {\n #focused?: boolean\n #cleanup?: () => void\n\n #setup: SetupFn\n\n constructor() {\n super()\n this.#setup = (onFocus) => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!isServer && window.addEventListener) {\n const listener = () => onFocus()\n // Listen to visibilitychange\n window.addEventListener('visibilitychange', listener, false)\n\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('visibilitychange', listener)\n }\n }\n return\n }\n }\n\n protected onSubscribe(): void {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup)\n }\n }\n\n protected onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.()\n this.#cleanup = undefined\n }\n }\n\n setEventListener(setup: SetupFn): void {\n this.#setup = setup\n this.#cleanup?.()\n this.#cleanup = setup((focused) => {\n if (typeof focused === 'boolean') {\n this.setFocused(focused)\n } else {\n this.onFocus()\n }\n })\n }\n\n setFocused(focused?: boolean): void {\n const changed = this.#focused !== focused\n if (changed) {\n this.#focused = focused\n this.onFocus()\n }\n }\n\n onFocus(): void {\n const isFocused = this.isFocused()\n this.listeners.forEach((listener) => {\n listener(isFocused)\n })\n }\n\n isFocused(): boolean {\n if (typeof this.#focused === 'boolean') {\n return this.#focused\n }\n\n // document global can be unavailable in react native\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n return globalThis.document?.visibilityState !== 'hidden'\n }\n}\n\nexport const focusManager = new FocusManager()\n","// TYPES\n\ntype NotifyCallback = () => void\n\ntype NotifyFunction = (callback: () => void) => void\n\ntype BatchNotifyFunction = (callback: () => void) => void\n\ntype BatchCallsCallback> = (...args: T) => void\n\ntype ScheduleFunction = (callback: () => void) => void\n\nexport function createNotifyManager() {\n let queue: Array = []\n let transactions = 0\n let notifyFn: NotifyFunction = (callback) => {\n callback()\n }\n let batchNotifyFn: BatchNotifyFunction = (callback: () => void) => {\n callback()\n }\n let scheduleFn: ScheduleFunction = (cb) => setTimeout(cb, 0)\n\n const schedule = (callback: NotifyCallback): void => {\n if (transactions) {\n queue.push(callback)\n } else {\n scheduleFn(() => {\n notifyFn(callback)\n })\n }\n }\n const flush = (): void => {\n const originalQueue = queue\n queue = []\n if (originalQueue.length) {\n scheduleFn(() => {\n batchNotifyFn(() => {\n originalQueue.forEach((callback) => {\n notifyFn(callback)\n })\n })\n })\n }\n }\n\n return {\n batch: (callback: () => T): T => {\n let result\n transactions++\n try {\n result = callback()\n } finally {\n transactions--\n if (!transactions) {\n flush()\n }\n }\n return result\n },\n /**\n * All calls to the wrapped function will be batched.\n */\n batchCalls: >(\n callback: BatchCallsCallback,\n ): BatchCallsCallback => {\n return (...args) => {\n schedule(() => {\n callback(...args)\n })\n }\n },\n schedule,\n /**\n * Use this method to set a custom notify function.\n * This can be used to for example wrap notifications with `React.act` while running tests.\n */\n setNotifyFunction: (fn: NotifyFunction) => {\n notifyFn = fn\n },\n /**\n * Use this method to set a custom function to batch notifications together into a single tick.\n * By default React Query will use the batch function provided by ReactDOM or React Native.\n */\n setBatchNotifyFunction: (fn: BatchNotifyFunction) => {\n batchNotifyFn = fn\n },\n setScheduler: (fn: ScheduleFunction) => {\n scheduleFn = fn\n },\n } as const\n}\n\n// SINGLETON\nexport const notifyManager = createNotifyManager()\n","import { Subscribable } from './subscribable'\nimport { isServer } from './utils'\n\ntype Listener = (online: boolean) => void\ntype SetupFn = (setOnline: Listener) => (() => void) | undefined\n\nexport class OnlineManager extends Subscribable {\n #online = true\n #cleanup?: () => void\n\n #setup: SetupFn\n\n constructor() {\n super()\n this.#setup = (onOnline) => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!isServer && window.addEventListener) {\n const onlineListener = () => onOnline(true)\n const offlineListener = () => onOnline(false)\n // Listen to online\n window.addEventListener('online', onlineListener, false)\n window.addEventListener('offline', offlineListener, false)\n\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('online', onlineListener)\n window.removeEventListener('offline', offlineListener)\n }\n }\n\n return\n }\n }\n\n protected onSubscribe(): void {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup)\n }\n }\n\n protected onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.()\n this.#cleanup = undefined\n }\n }\n\n setEventListener(setup: SetupFn): void {\n this.#setup = setup\n this.#cleanup?.()\n this.#cleanup = setup(this.setOnline.bind(this))\n }\n\n setOnline(online: boolean): void {\n const changed = this.#online !== online\n\n if (changed) {\n this.#online = online\n this.listeners.forEach((listener) => {\n listener(online)\n })\n }\n }\n\n isOnline(): boolean {\n return this.#online\n }\n}\n\nexport const onlineManager = new OnlineManager()\n","import {\n ensureQueryFn,\n noop,\n replaceData,\n resolveEnabled,\n skipToken,\n timeUntilStale,\n} from './utils'\nimport { notifyManager } from './notifyManager'\nimport { canFetch, createRetryer, isCancelledError } from './retryer'\nimport { Removable } from './removable'\nimport type {\n CancelOptions,\n DefaultError,\n FetchStatus,\n InitialDataFunction,\n OmitKeyof,\n QueryFunction,\n QueryFunctionContext,\n QueryKey,\n QueryMeta,\n QueryOptions,\n QueryStatus,\n SetDataOptions,\n} from './types'\nimport type { QueryCache } from './queryCache'\nimport type { QueryObserver } from './queryObserver'\nimport type { Retryer } from './retryer'\n\n// TYPES\n\ninterface QueryConfig<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey = QueryKey,\n> {\n cache: QueryCache\n queryKey: TQueryKey\n queryHash: string\n options?: QueryOptions\n defaultOptions?: QueryOptions\n state?: QueryState\n}\n\nexport interface QueryState {\n data: TData | undefined\n dataUpdateCount: number\n dataUpdatedAt: number\n error: TError | null\n errorUpdateCount: number\n errorUpdatedAt: number\n fetchFailureCount: number\n fetchFailureReason: TError | null\n fetchMeta: FetchMeta | null\n isInvalidated: boolean\n status: QueryStatus\n fetchStatus: FetchStatus\n}\n\nexport interface FetchContext<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey = QueryKey,\n> {\n fetchFn: () => unknown | Promise\n fetchOptions?: FetchOptions\n signal: AbortSignal\n options: QueryOptions\n queryKey: TQueryKey\n state: QueryState\n}\n\nexport interface QueryBehavior<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> {\n onFetch: (\n context: FetchContext,\n query: Query,\n ) => void\n}\n\nexport type FetchDirection = 'forward' | 'backward'\n\nexport interface FetchMeta {\n fetchMore?: { direction: FetchDirection }\n}\n\nexport interface FetchOptions {\n cancelRefetch?: boolean\n meta?: FetchMeta\n initialPromise?: Promise\n}\n\ninterface FailedAction {\n type: 'failed'\n failureCount: number\n error: TError\n}\n\ninterface FetchAction {\n type: 'fetch'\n meta?: FetchMeta\n}\n\ninterface SuccessAction {\n data: TData | undefined\n type: 'success'\n dataUpdatedAt?: number\n manual?: boolean\n}\n\ninterface ErrorAction {\n type: 'error'\n error: TError\n}\n\ninterface InvalidateAction {\n type: 'invalidate'\n}\n\ninterface PauseAction {\n type: 'pause'\n}\n\ninterface ContinueAction {\n type: 'continue'\n}\n\ninterface SetStateAction {\n type: 'setState'\n state: Partial>\n setStateOptions?: SetStateOptions\n}\n\nexport type Action =\n | ContinueAction\n | ErrorAction\n | FailedAction\n | FetchAction\n | InvalidateAction\n | PauseAction\n | SetStateAction\n | SuccessAction\n\nexport interface SetStateOptions {\n meta?: any\n}\n\n// CLASS\n\nexport class Query<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> extends Removable {\n queryKey: TQueryKey\n queryHash: string\n options!: QueryOptions\n state: QueryState\n\n #initialState: QueryState\n #revertState?: QueryState\n #cache: QueryCache\n #retryer?: Retryer\n observers: Array>\n #defaultOptions?: QueryOptions\n #abortSignalConsumed: boolean\n\n constructor(config: QueryConfig) {\n super()\n\n this.#abortSignalConsumed = false\n this.#defaultOptions = config.defaultOptions\n this.setOptions(config.options)\n this.observers = []\n this.#cache = config.cache\n this.queryKey = config.queryKey\n this.queryHash = config.queryHash\n this.#initialState = getDefaultState(this.options)\n this.state = config.state ?? this.#initialState\n this.scheduleGc()\n }\n get meta(): QueryMeta | undefined {\n return this.options.meta\n }\n\n get promise(): Promise | undefined {\n return this.#retryer?.promise\n }\n\n setOptions(\n options?: QueryOptions,\n ): void {\n this.options = { ...this.#defaultOptions, ...options }\n\n this.updateGcTime(this.options.gcTime)\n }\n\n protected optionalRemove() {\n if (!this.observers.length && this.state.fetchStatus === 'idle') {\n this.#cache.remove(this)\n }\n }\n\n setData(\n newData: TData,\n options?: SetDataOptions & { manual: boolean },\n ): TData {\n const data = replaceData(this.state.data, newData, this.options)\n\n // Set data and mark it as cached\n this.#dispatch({\n data,\n type: 'success',\n dataUpdatedAt: options?.updatedAt,\n manual: options?.manual,\n })\n\n return data\n }\n\n setState(\n state: Partial>,\n setStateOptions?: SetStateOptions,\n ): void {\n this.#dispatch({ type: 'setState', state, setStateOptions })\n }\n\n cancel(options?: CancelOptions): Promise {\n const promise = this.#retryer?.promise\n this.#retryer?.cancel(options)\n return promise ? promise.then(noop).catch(noop) : Promise.resolve()\n }\n\n destroy(): void {\n super.destroy()\n\n this.cancel({ silent: true })\n }\n\n reset(): void {\n this.destroy()\n this.setState(this.#initialState)\n }\n\n isActive(): boolean {\n return this.observers.some(\n (observer) => resolveEnabled(observer.options.enabled, this) !== false,\n )\n }\n\n isDisabled(): boolean {\n if (this.getObserversCount() > 0) {\n return !this.isActive()\n }\n // if a query has no observers, it should still be considered disabled if it never attempted a fetch\n return (\n this.options.queryFn === skipToken ||\n this.state.dataUpdateCount + this.state.errorUpdateCount === 0\n )\n }\n\n isStale(): boolean {\n if (this.state.isInvalidated) {\n return true\n }\n\n if (this.getObserversCount() > 0) {\n return this.observers.some(\n (observer) => observer.getCurrentResult().isStale,\n )\n }\n\n return this.state.data === undefined\n }\n\n isStaleByTime(staleTime = 0): boolean {\n return (\n this.state.isInvalidated ||\n this.state.data === undefined ||\n !timeUntilStale(this.state.dataUpdatedAt, staleTime)\n )\n }\n\n onFocus(): void {\n const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus())\n\n observer?.refetch({ cancelRefetch: false })\n\n // Continue fetch if currently paused\n this.#retryer?.continue()\n }\n\n onOnline(): void {\n const observer = this.observers.find((x) => x.shouldFetchOnReconnect())\n\n observer?.refetch({ cancelRefetch: false })\n\n // Continue fetch if currently paused\n this.#retryer?.continue()\n }\n\n addObserver(observer: QueryObserver): void {\n if (!this.observers.includes(observer)) {\n this.observers.push(observer)\n\n // Stop the query from being garbage collected\n this.clearGcTimeout()\n\n this.#cache.notify({ type: 'observerAdded', query: this, observer })\n }\n }\n\n removeObserver(observer: QueryObserver): void {\n if (this.observers.includes(observer)) {\n this.observers = this.observers.filter((x) => x !== observer)\n\n if (!this.observers.length) {\n // If the transport layer does not support cancellation\n // we'll let the query continue so the result can be cached\n if (this.#retryer) {\n if (this.#abortSignalConsumed) {\n this.#retryer.cancel({ revert: true })\n } else {\n this.#retryer.cancelRetry()\n }\n }\n\n this.scheduleGc()\n }\n\n this.#cache.notify({ type: 'observerRemoved', query: this, observer })\n }\n }\n\n getObserversCount(): number {\n return this.observers.length\n }\n\n invalidate(): void {\n if (!this.state.isInvalidated) {\n this.#dispatch({ type: 'invalidate' })\n }\n }\n\n fetch(\n options?: QueryOptions,\n fetchOptions?: FetchOptions,\n ): Promise {\n if (this.state.fetchStatus !== 'idle') {\n if (this.state.data !== undefined && fetchOptions?.cancelRefetch) {\n // Silently cancel current fetch if the user wants to cancel refetch\n this.cancel({ silent: true })\n } else if (this.#retryer) {\n // make sure that retries that were potentially cancelled due to unmounts can continue\n this.#retryer.continueRetry()\n // Return current promise if we are already fetching\n return this.#retryer.promise\n }\n }\n\n // Update config if passed, otherwise the config from the last execution is used\n if (options) {\n this.setOptions(options)\n }\n\n // Use the options from the first observer with a query function if no function is found.\n // This can happen when the query is hydrated or created with setQueryData.\n if (!this.options.queryFn) {\n const observer = this.observers.find((x) => x.options.queryFn)\n if (observer) {\n this.setOptions(observer.options)\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!Array.isArray(this.options.queryKey)) {\n console.error(\n `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`,\n )\n }\n }\n\n const abortController = new AbortController()\n\n // Adds an enumerable signal property to the object that\n // which sets abortSignalConsumed to true when the signal\n // is read.\n const addSignalProperty = (object: unknown) => {\n Object.defineProperty(object, 'signal', {\n enumerable: true,\n get: () => {\n this.#abortSignalConsumed = true\n return abortController.signal\n },\n })\n }\n\n // Create fetch function\n const fetchFn = () => {\n const queryFn = ensureQueryFn(this.options, fetchOptions)\n\n // Create query function context\n const queryFnContext: OmitKeyof<\n QueryFunctionContext,\n 'signal'\n > = {\n queryKey: this.queryKey,\n meta: this.meta,\n }\n\n addSignalProperty(queryFnContext)\n\n this.#abortSignalConsumed = false\n if (this.options.persister) {\n return this.options.persister(\n queryFn as QueryFunction,\n queryFnContext as QueryFunctionContext,\n this as unknown as Query,\n )\n }\n\n return queryFn(queryFnContext as QueryFunctionContext)\n }\n\n // Trigger behavior hook\n const context: OmitKeyof<\n FetchContext,\n 'signal'\n > = {\n fetchOptions,\n options: this.options,\n queryKey: this.queryKey,\n state: this.state,\n fetchFn,\n }\n\n addSignalProperty(context)\n\n this.options.behavior?.onFetch(\n context as FetchContext,\n this as unknown as Query,\n )\n\n // Store state in case the current fetch needs to be reverted\n this.#revertState = this.state\n\n // Set to fetching state if not already in it\n if (\n this.state.fetchStatus === 'idle' ||\n this.state.fetchMeta !== context.fetchOptions?.meta\n ) {\n this.#dispatch({ type: 'fetch', meta: context.fetchOptions?.meta })\n }\n\n const onError = (error: TError | { silent?: boolean }) => {\n // Optimistically update state if needed\n if (!(isCancelledError(error) && error.silent)) {\n this.#dispatch({\n type: 'error',\n error: error as TError,\n })\n }\n\n if (!isCancelledError(error)) {\n // Notify cache callback\n this.#cache.config.onError?.(\n error as any,\n this as Query,\n )\n this.#cache.config.onSettled?.(\n this.state.data,\n error as any,\n this as Query,\n )\n }\n\n // Schedule query gc after fetching\n this.scheduleGc()\n }\n\n // Try to fetch the data\n this.#retryer = createRetryer({\n initialPromise: fetchOptions?.initialPromise as\n | Promise\n | undefined,\n fn: context.fetchFn as () => Promise,\n abort: abortController.abort.bind(abortController),\n onSuccess: (data) => {\n if (data === undefined) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\n `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`,\n )\n }\n onError(new Error(`${this.queryHash} data is undefined`) as any)\n return\n }\n\n try {\n this.setData(data)\n } catch (error) {\n onError(error as TError)\n return\n }\n\n // Notify cache callback\n this.#cache.config.onSuccess?.(data, this as Query)\n this.#cache.config.onSettled?.(\n data,\n this.state.error as any,\n this as Query,\n )\n\n // Schedule query gc after fetching\n this.scheduleGc()\n },\n onError,\n onFail: (failureCount, error) => {\n this.#dispatch({ type: 'failed', failureCount, error })\n },\n onPause: () => {\n this.#dispatch({ type: 'pause' })\n },\n onContinue: () => {\n this.#dispatch({ type: 'continue' })\n },\n retry: context.options.retry,\n retryDelay: context.options.retryDelay,\n networkMode: context.options.networkMode,\n canRun: () => true,\n })\n\n return this.#retryer.start()\n }\n\n #dispatch(action: Action): void {\n const reducer = (\n state: QueryState,\n ): QueryState => {\n switch (action.type) {\n case 'failed':\n return {\n ...state,\n fetchFailureCount: action.failureCount,\n fetchFailureReason: action.error,\n }\n case 'pause':\n return {\n ...state,\n fetchStatus: 'paused',\n }\n case 'continue':\n return {\n ...state,\n fetchStatus: 'fetching',\n }\n case 'fetch':\n return {\n ...state,\n ...fetchState(state.data, this.options),\n fetchMeta: action.meta ?? null,\n }\n case 'success':\n return {\n ...state,\n data: action.data,\n dataUpdateCount: state.dataUpdateCount + 1,\n dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),\n error: null,\n isInvalidated: false,\n status: 'success',\n ...(!action.manual && {\n fetchStatus: 'idle',\n fetchFailureCount: 0,\n fetchFailureReason: null,\n }),\n }\n case 'error':\n const error = action.error\n\n if (isCancelledError(error) && error.revert && this.#revertState) {\n return { ...this.#revertState, fetchStatus: 'idle' }\n }\n\n return {\n ...state,\n error,\n errorUpdateCount: state.errorUpdateCount + 1,\n errorUpdatedAt: Date.now(),\n fetchFailureCount: state.fetchFailureCount + 1,\n fetchFailureReason: error,\n fetchStatus: 'idle',\n status: 'error',\n }\n case 'invalidate':\n return {\n ...state,\n isInvalidated: true,\n }\n case 'setState':\n return {\n ...state,\n ...action.state,\n }\n }\n }\n\n this.state = reducer(this.state)\n\n notifyManager.batch(() => {\n this.observers.forEach((observer) => {\n observer.onQueryUpdate()\n })\n\n this.#cache.notify({ query: this, type: 'updated', action })\n })\n }\n}\n\nexport function fetchState<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey,\n>(\n data: TData | undefined,\n options: QueryOptions,\n) {\n return {\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchStatus: canFetch(options.networkMode) ? 'fetching' : 'paused',\n ...(data === undefined &&\n ({\n error: null,\n status: 'pending',\n } as const)),\n } as const\n}\n\nfunction getDefaultState<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey,\n>(\n options: QueryOptions,\n): QueryState {\n const data =\n typeof options.initialData === 'function'\n ? (options.initialData as InitialDataFunction)()\n : options.initialData\n\n const hasData = data !== undefined\n\n const initialDataUpdatedAt = hasData\n ? typeof options.initialDataUpdatedAt === 'function'\n ? (options.initialDataUpdatedAt as () => number | undefined)()\n : options.initialDataUpdatedAt\n : 0\n\n return {\n data,\n dataUpdateCount: 0,\n dataUpdatedAt: hasData ? (initialDataUpdatedAt ?? Date.now()) : 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchMeta: null,\n isInvalidated: false,\n status: hasData ? 'success' : 'pending',\n fetchStatus: 'idle',\n }\n}\n","import { focusManager } from './focusManager'\nimport { notifyManager } from './notifyManager'\nimport { fetchState } from './query'\nimport { Subscribable } from './subscribable'\nimport { pendingThenable } from './thenable'\nimport {\n isServer,\n isValidTimeout,\n noop,\n replaceData,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n timeUntilStale,\n} from './utils'\nimport type { FetchOptions, Query, QueryState } from './query'\nimport type { QueryClient } from './queryClient'\nimport type { PendingThenable, Thenable } from './thenable'\nimport type {\n DefaultError,\n DefaultedQueryObserverOptions,\n PlaceholderDataFunction,\n QueryKey,\n QueryObserverBaseResult,\n QueryObserverOptions,\n QueryObserverResult,\n QueryOptions,\n RefetchOptions,\n} from './types'\n\ntype QueryObserverListener = (\n result: QueryObserverResult,\n) => void\n\nexport interface NotifyOptions {\n listeners?: boolean\n}\n\ninterface ObserverFetchOptions extends FetchOptions {\n throwOnError?: boolean\n}\n\nexport class QueryObserver<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> extends Subscribable> {\n #client: QueryClient\n #currentQuery: Query = undefined!\n #currentQueryInitialState: QueryState = undefined!\n #currentResult: QueryObserverResult = undefined!\n #currentResultState?: QueryState\n #currentResultOptions?: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >\n #currentThenable: Thenable\n #selectError: TError | null\n #selectFn?: (data: TQueryData) => TData\n #selectResult?: TData\n // This property keeps track of the last query with defined data.\n // It will be used to pass the previous data and query to the placeholder function between renders.\n #lastQueryWithDefinedData?: Query\n #staleTimeoutId?: ReturnType\n #refetchIntervalId?: ReturnType\n #currentRefetchInterval?: number | false\n #trackedProps = new Set()\n\n constructor(\n client: QueryClient,\n public options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ) {\n super()\n\n this.#client = client\n this.#selectError = null\n this.#currentThenable = pendingThenable()\n if (!this.options.experimental_prefetchInRender) {\n this.#currentThenable.reject(\n new Error('experimental_prefetchInRender feature flag is not enabled'),\n )\n }\n\n this.bindMethods()\n this.setOptions(options)\n }\n\n protected bindMethods(): void {\n this.refetch = this.refetch.bind(this)\n }\n\n protected onSubscribe(): void {\n if (this.listeners.size === 1) {\n this.#currentQuery.addObserver(this)\n\n if (shouldFetchOnMount(this.#currentQuery, this.options)) {\n this.#executeFetch()\n } else {\n this.updateResult()\n }\n\n this.#updateTimers()\n }\n }\n\n protected onUnsubscribe(): void {\n if (!this.hasListeners()) {\n this.destroy()\n }\n }\n\n shouldFetchOnReconnect(): boolean {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnReconnect,\n )\n }\n\n shouldFetchOnWindowFocus(): boolean {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnWindowFocus,\n )\n }\n\n destroy(): void {\n this.listeners = new Set()\n this.#clearStaleTimeout()\n this.#clearRefetchInterval()\n this.#currentQuery.removeObserver(this)\n }\n\n setOptions(\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n notifyOptions?: NotifyOptions,\n ): void {\n const prevOptions = this.options\n const prevQuery = this.#currentQuery\n\n this.options = this.#client.defaultQueryOptions(options)\n\n if (\n this.options.enabled !== undefined &&\n typeof this.options.enabled !== 'boolean' &&\n typeof this.options.enabled !== 'function' &&\n typeof resolveEnabled(this.options.enabled, this.#currentQuery) !==\n 'boolean'\n ) {\n throw new Error(\n 'Expected enabled to be a boolean or a callback that returns a boolean',\n )\n }\n\n this.#updateQuery()\n this.#currentQuery.setOptions(this.options)\n\n if (\n prevOptions._defaulted &&\n !shallowEqualObjects(this.options, prevOptions)\n ) {\n this.#client.getQueryCache().notify({\n type: 'observerOptionsUpdated',\n query: this.#currentQuery,\n observer: this,\n })\n }\n\n const mounted = this.hasListeners()\n\n // Fetch if there are subscribers\n if (\n mounted &&\n shouldFetchOptionally(\n this.#currentQuery,\n prevQuery,\n this.options,\n prevOptions,\n )\n ) {\n this.#executeFetch()\n }\n\n // Update result\n this.updateResult(notifyOptions)\n\n // Update stale interval if needed\n if (\n mounted &&\n (this.#currentQuery !== prevQuery ||\n resolveEnabled(this.options.enabled, this.#currentQuery) !==\n resolveEnabled(prevOptions.enabled, this.#currentQuery) ||\n resolveStaleTime(this.options.staleTime, this.#currentQuery) !==\n resolveStaleTime(prevOptions.staleTime, this.#currentQuery))\n ) {\n this.#updateStaleTimeout()\n }\n\n const nextRefetchInterval = this.#computeRefetchInterval()\n\n // Update refetch interval if needed\n if (\n mounted &&\n (this.#currentQuery !== prevQuery ||\n resolveEnabled(this.options.enabled, this.#currentQuery) !==\n resolveEnabled(prevOptions.enabled, this.#currentQuery) ||\n nextRefetchInterval !== this.#currentRefetchInterval)\n ) {\n this.#updateRefetchInterval(nextRefetchInterval)\n }\n }\n\n getOptimisticResult(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): QueryObserverResult {\n const query = this.#client.getQueryCache().build(this.#client, options)\n\n const result = this.createResult(query, options)\n\n if (shouldAssignObserverCurrentProperties(this, result)) {\n // this assigns the optimistic result to the current Observer\n // because if the query function changes, useQuery will be performing\n // an effect where it would fetch again.\n // When the fetch finishes, we perform a deep data cloning in order\n // to reuse objects references. This deep data clone is performed against\n // the `observer.currentResult.data` property\n // When QueryKey changes, we refresh the query and get new `optimistic`\n // result, while we leave the `observer.currentResult`, so when new data\n // arrives, it finds the old `observer.currentResult` which is related\n // to the old QueryKey. Which means that currentResult and selectData are\n // out of sync already.\n // To solve this, we move the cursor of the currentResult every time\n // an observer reads an optimistic value.\n\n // When keeping the previous data, the result doesn't change until new\n // data arrives.\n this.#currentResult = result\n this.#currentResultOptions = this.options\n this.#currentResultState = this.#currentQuery.state\n }\n return result\n }\n\n getCurrentResult(): QueryObserverResult {\n return this.#currentResult\n }\n\n trackResult(\n result: QueryObserverResult,\n onPropTracked?: (key: keyof QueryObserverResult) => void,\n ): QueryObserverResult {\n const trackedResult = {} as QueryObserverResult\n\n Object.keys(result).forEach((key) => {\n Object.defineProperty(trackedResult, key, {\n configurable: false,\n enumerable: true,\n get: () => {\n this.trackProp(key as keyof QueryObserverResult)\n onPropTracked?.(key as keyof QueryObserverResult)\n return result[key as keyof QueryObserverResult]\n },\n })\n })\n\n return trackedResult\n }\n\n trackProp(key: keyof QueryObserverResult) {\n this.#trackedProps.add(key)\n }\n\n getCurrentQuery(): Query {\n return this.#currentQuery\n }\n\n refetch({ ...options }: RefetchOptions = {}): Promise<\n QueryObserverResult\n > {\n return this.fetch({\n ...options,\n })\n }\n\n fetchOptimistic(\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): Promise> {\n const defaultedOptions = this.#client.defaultQueryOptions(options)\n\n const query = this.#client\n .getQueryCache()\n .build(this.#client, defaultedOptions)\n\n return query.fetch().then(() => this.createResult(query, defaultedOptions))\n }\n\n protected fetch(\n fetchOptions: ObserverFetchOptions,\n ): Promise> {\n return this.#executeFetch({\n ...fetchOptions,\n cancelRefetch: fetchOptions.cancelRefetch ?? true,\n }).then(() => {\n this.updateResult()\n return this.#currentResult\n })\n }\n\n #executeFetch(\n fetchOptions?: Omit,\n ): Promise {\n // Make sure we reference the latest query as the current one might have been removed\n this.#updateQuery()\n\n // Fetch\n let promise: Promise = this.#currentQuery.fetch(\n this.options as QueryOptions,\n fetchOptions,\n )\n\n if (!fetchOptions?.throwOnError) {\n promise = promise.catch(noop)\n }\n\n return promise\n }\n\n #updateStaleTimeout(): void {\n this.#clearStaleTimeout()\n const staleTime = resolveStaleTime(\n this.options.staleTime,\n this.#currentQuery,\n )\n\n if (isServer || this.#currentResult.isStale || !isValidTimeout(staleTime)) {\n return\n }\n\n const time = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime)\n\n // The timeout is sometimes triggered 1 ms before the stale time expiration.\n // To mitigate this issue we always add 1 ms to the timeout.\n const timeout = time + 1\n\n this.#staleTimeoutId = setTimeout(() => {\n if (!this.#currentResult.isStale) {\n this.updateResult()\n }\n }, timeout)\n }\n\n #computeRefetchInterval() {\n return (\n (typeof this.options.refetchInterval === 'function'\n ? this.options.refetchInterval(this.#currentQuery)\n : this.options.refetchInterval) ?? false\n )\n }\n\n #updateRefetchInterval(nextInterval: number | false): void {\n this.#clearRefetchInterval()\n\n this.#currentRefetchInterval = nextInterval\n\n if (\n isServer ||\n resolveEnabled(this.options.enabled, this.#currentQuery) === false ||\n !isValidTimeout(this.#currentRefetchInterval) ||\n this.#currentRefetchInterval === 0\n ) {\n return\n }\n\n this.#refetchIntervalId = setInterval(() => {\n if (\n this.options.refetchIntervalInBackground ||\n focusManager.isFocused()\n ) {\n this.#executeFetch()\n }\n }, this.#currentRefetchInterval)\n }\n\n #updateTimers(): void {\n this.#updateStaleTimeout()\n this.#updateRefetchInterval(this.#computeRefetchInterval())\n }\n\n #clearStaleTimeout(): void {\n if (this.#staleTimeoutId) {\n clearTimeout(this.#staleTimeoutId)\n this.#staleTimeoutId = undefined\n }\n }\n\n #clearRefetchInterval(): void {\n if (this.#refetchIntervalId) {\n clearInterval(this.#refetchIntervalId)\n this.#refetchIntervalId = undefined\n }\n }\n\n protected createResult(\n query: Query,\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): QueryObserverResult {\n const prevQuery = this.#currentQuery\n const prevOptions = this.options\n const prevResult = this.#currentResult as\n | QueryObserverResult\n | undefined\n const prevResultState = this.#currentResultState\n const prevResultOptions = this.#currentResultOptions\n const queryChange = query !== prevQuery\n const queryInitialState = queryChange\n ? query.state\n : this.#currentQueryInitialState\n\n const { state } = query\n let newState = { ...state }\n let isPlaceholderData = false\n let data: TData | undefined\n\n // Optimistically set result in fetching state if needed\n if (options._optimisticResults) {\n const mounted = this.hasListeners()\n\n const fetchOnMount = !mounted && shouldFetchOnMount(query, options)\n\n const fetchOptionally =\n mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions)\n\n if (fetchOnMount || fetchOptionally) {\n newState = {\n ...newState,\n ...fetchState(state.data, query.options),\n }\n }\n if (options._optimisticResults === 'isRestoring') {\n newState.fetchStatus = 'idle'\n }\n }\n\n let { error, errorUpdatedAt, status } = newState\n\n // Select data if needed\n if (options.select && newState.data !== undefined) {\n // Memoize select result\n if (\n prevResult &&\n newState.data === prevResultState?.data &&\n options.select === this.#selectFn\n ) {\n data = this.#selectResult\n } else {\n try {\n this.#selectFn = options.select\n data = options.select(newState.data)\n data = replaceData(prevResult?.data, data, options)\n this.#selectResult = data\n this.#selectError = null\n } catch (selectError) {\n this.#selectError = selectError as TError\n }\n }\n }\n // Use query data\n else {\n data = newState.data as unknown as TData\n }\n\n // Show placeholder data if needed\n if (\n options.placeholderData !== undefined &&\n data === undefined &&\n status === 'pending'\n ) {\n let placeholderData\n\n // Memoize placeholder data\n if (\n prevResult?.isPlaceholderData &&\n options.placeholderData === prevResultOptions?.placeholderData\n ) {\n placeholderData = prevResult.data\n } else {\n placeholderData =\n typeof options.placeholderData === 'function'\n ? (\n options.placeholderData as unknown as PlaceholderDataFunction\n )(\n this.#lastQueryWithDefinedData?.state.data,\n this.#lastQueryWithDefinedData as any,\n )\n : options.placeholderData\n if (options.select && placeholderData !== undefined) {\n try {\n placeholderData = options.select(placeholderData)\n this.#selectError = null\n } catch (selectError) {\n this.#selectError = selectError as TError\n }\n }\n }\n\n if (placeholderData !== undefined) {\n status = 'success'\n data = replaceData(\n prevResult?.data,\n placeholderData as unknown,\n options,\n ) as TData\n isPlaceholderData = true\n }\n }\n\n if (this.#selectError) {\n error = this.#selectError as any\n data = this.#selectResult\n errorUpdatedAt = Date.now()\n status = 'error'\n }\n\n const isFetching = newState.fetchStatus === 'fetching'\n const isPending = status === 'pending'\n const isError = status === 'error'\n\n const isLoading = isPending && isFetching\n const hasData = data !== undefined\n\n const result: QueryObserverBaseResult = {\n status,\n fetchStatus: newState.fetchStatus,\n isPending,\n isSuccess: status === 'success',\n isError,\n isInitialLoading: isLoading,\n isLoading,\n data,\n dataUpdatedAt: newState.dataUpdatedAt,\n error,\n errorUpdatedAt,\n failureCount: newState.fetchFailureCount,\n failureReason: newState.fetchFailureReason,\n errorUpdateCount: newState.errorUpdateCount,\n isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,\n isFetchedAfterMount:\n newState.dataUpdateCount > queryInitialState.dataUpdateCount ||\n newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n isFetching,\n isRefetching: isFetching && !isPending,\n isLoadingError: isError && !hasData,\n isPaused: newState.fetchStatus === 'paused',\n isPlaceholderData,\n isRefetchError: isError && hasData,\n isStale: isStale(query, options),\n refetch: this.refetch,\n promise: this.#currentThenable,\n }\n\n const nextResult = result as QueryObserverResult\n\n if (this.options.experimental_prefetchInRender) {\n const finalizeThenableIfPossible = (thenable: PendingThenable) => {\n if (nextResult.status === 'error') {\n thenable.reject(nextResult.error)\n } else if (nextResult.data !== undefined) {\n thenable.resolve(nextResult.data)\n }\n }\n\n /**\n * Create a new thenable and result promise when the results have changed\n */\n const recreateThenable = () => {\n const pending =\n (this.#currentThenable =\n nextResult.promise =\n pendingThenable())\n\n finalizeThenableIfPossible(pending)\n }\n\n const prevThenable = this.#currentThenable\n switch (prevThenable.status) {\n case 'pending':\n // Finalize the previous thenable if it was pending\n // and we are still observing the same query\n if (query.queryHash === prevQuery.queryHash) {\n finalizeThenableIfPossible(prevThenable)\n }\n break\n case 'fulfilled':\n if (\n nextResult.status === 'error' ||\n nextResult.data !== prevThenable.value\n ) {\n recreateThenable()\n }\n break\n case 'rejected':\n if (\n nextResult.status !== 'error' ||\n nextResult.error !== prevThenable.reason\n ) {\n recreateThenable()\n }\n break\n }\n }\n\n return nextResult\n }\n\n updateResult(notifyOptions?: NotifyOptions): void {\n const prevResult = this.#currentResult as\n | QueryObserverResult\n | undefined\n\n const nextResult = this.createResult(this.#currentQuery, this.options)\n\n this.#currentResultState = this.#currentQuery.state\n this.#currentResultOptions = this.options\n\n if (this.#currentResultState.data !== undefined) {\n this.#lastQueryWithDefinedData = this.#currentQuery\n }\n\n // Only notify and update result if something has changed\n if (shallowEqualObjects(nextResult, prevResult)) {\n return\n }\n\n this.#currentResult = nextResult\n\n // Determine which callbacks to trigger\n const defaultNotifyOptions: NotifyOptions = {}\n\n const shouldNotifyListeners = (): boolean => {\n if (!prevResult) {\n return true\n }\n\n const { notifyOnChangeProps } = this.options\n const notifyOnChangePropsValue =\n typeof notifyOnChangeProps === 'function'\n ? notifyOnChangeProps()\n : notifyOnChangeProps\n\n if (\n notifyOnChangePropsValue === 'all' ||\n (!notifyOnChangePropsValue && !this.#trackedProps.size)\n ) {\n return true\n }\n\n const includedProps = new Set(\n notifyOnChangePropsValue ?? this.#trackedProps,\n )\n\n if (this.options.throwOnError) {\n includedProps.add('error')\n }\n\n return Object.keys(this.#currentResult).some((key) => {\n const typedKey = key as keyof QueryObserverResult\n const changed = this.#currentResult[typedKey] !== prevResult[typedKey]\n\n return changed && includedProps.has(typedKey)\n })\n }\n\n if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {\n defaultNotifyOptions.listeners = true\n }\n\n this.#notify({ ...defaultNotifyOptions, ...notifyOptions })\n }\n\n #updateQuery(): void {\n const query = this.#client.getQueryCache().build(this.#client, this.options)\n\n if (query === this.#currentQuery) {\n return\n }\n\n const prevQuery = this.#currentQuery as\n | Query\n | undefined\n this.#currentQuery = query\n this.#currentQueryInitialState = query.state\n\n if (this.hasListeners()) {\n prevQuery?.removeObserver(this)\n query.addObserver(this)\n }\n }\n\n onQueryUpdate(): void {\n this.updateResult()\n\n if (this.hasListeners()) {\n this.#updateTimers()\n }\n }\n\n #notify(notifyOptions: NotifyOptions): void {\n notifyManager.batch(() => {\n // First, trigger the listeners\n if (notifyOptions.listeners) {\n this.listeners.forEach((listener) => {\n listener(this.#currentResult)\n })\n }\n\n // Then the cache listeners\n this.#client.getQueryCache().notify({\n query: this.#currentQuery,\n type: 'observerResultsUpdated',\n })\n })\n }\n}\n\nfunction shouldLoadOnMount(\n query: Query,\n options: QueryObserverOptions,\n): boolean {\n return (\n resolveEnabled(options.enabled, query) !== false &&\n query.state.data === undefined &&\n !(query.state.status === 'error' && options.retryOnMount === false)\n )\n}\n\nfunction shouldFetchOnMount(\n query: Query,\n options: QueryObserverOptions,\n): boolean {\n return (\n shouldLoadOnMount(query, options) ||\n (query.state.data !== undefined &&\n shouldFetchOn(query, options, options.refetchOnMount))\n )\n}\n\nfunction shouldFetchOn(\n query: Query,\n options: QueryObserverOptions,\n field: (typeof options)['refetchOnMount'] &\n (typeof options)['refetchOnWindowFocus'] &\n (typeof options)['refetchOnReconnect'],\n) {\n if (resolveEnabled(options.enabled, query) !== false) {\n const value = typeof field === 'function' ? field(query) : field\n\n return value === 'always' || (value !== false && isStale(query, options))\n }\n return false\n}\n\nfunction shouldFetchOptionally(\n query: Query,\n prevQuery: Query,\n options: QueryObserverOptions,\n prevOptions: QueryObserverOptions,\n): boolean {\n return (\n (query !== prevQuery ||\n resolveEnabled(prevOptions.enabled, query) === false) &&\n (!options.suspense || query.state.status !== 'error') &&\n isStale(query, options)\n )\n}\n\nfunction isStale(\n query: Query,\n options: QueryObserverOptions,\n): boolean {\n return (\n resolveEnabled(options.enabled, query) !== false &&\n query.isStaleByTime(resolveStaleTime(options.staleTime, query))\n )\n}\n\n// this function would decide if we will update the observer's 'current'\n// properties after an optimistic reading via getOptimisticResult\nfunction shouldAssignObserverCurrentProperties<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n observer: QueryObserver,\n optimisticResult: QueryObserverResult,\n) {\n // if the newly created result isn't what the observer is holding as current,\n // then we'll need to update the properties as well\n if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {\n return true\n }\n\n // basically, just keep previous properties if nothing changed\n return false\n}\n","import { isServer, isValidTimeout } from './utils'\n\nexport abstract class Removable {\n gcTime!: number\n #gcTimeout?: ReturnType\n\n destroy(): void {\n this.clearGcTimeout()\n }\n\n protected scheduleGc(): void {\n this.clearGcTimeout()\n\n if (isValidTimeout(this.gcTime)) {\n this.#gcTimeout = setTimeout(() => {\n this.optionalRemove()\n }, this.gcTime)\n }\n }\n\n protected updateGcTime(newGcTime: number | undefined): void {\n // Default to 5 minutes (Infinity for server-side) if no gcTime is set\n this.gcTime = Math.max(\n this.gcTime || 0,\n newGcTime ?? (isServer ? Infinity : 5 * 60 * 1000),\n )\n }\n\n protected clearGcTimeout() {\n if (this.#gcTimeout) {\n clearTimeout(this.#gcTimeout)\n this.#gcTimeout = undefined\n }\n }\n\n protected abstract optionalRemove(): void\n}\n","import { focusManager } from './focusManager'\nimport { onlineManager } from './onlineManager'\nimport { pendingThenable } from './thenable'\nimport { isServer, sleep } from './utils'\nimport type { CancelOptions, DefaultError, NetworkMode } from './types'\n\n// TYPES\n\ninterface RetryerConfig {\n fn: () => TData | Promise\n initialPromise?: Promise\n abort?: () => void\n onError?: (error: TError) => void\n onSuccess?: (data: TData) => void\n onFail?: (failureCount: number, error: TError) => void\n onPause?: () => void\n onContinue?: () => void\n retry?: RetryValue\n retryDelay?: RetryDelayValue\n networkMode: NetworkMode | undefined\n canRun: () => boolean\n}\n\nexport interface Retryer {\n promise: Promise\n cancel: (cancelOptions?: CancelOptions) => void\n continue: () => Promise\n cancelRetry: () => void\n continueRetry: () => void\n canStart: () => boolean\n start: () => Promise\n}\n\nexport type RetryValue = boolean | number | ShouldRetryFunction\n\ntype ShouldRetryFunction = (\n failureCount: number,\n error: TError,\n) => boolean\n\nexport type RetryDelayValue = number | RetryDelayFunction\n\ntype RetryDelayFunction = (\n failureCount: number,\n error: TError,\n) => number\n\nfunction defaultRetryDelay(failureCount: number) {\n return Math.min(1000 * 2 ** failureCount, 30000)\n}\n\nexport function canFetch(networkMode: NetworkMode | undefined): boolean {\n return (networkMode ?? 'online') === 'online'\n ? onlineManager.isOnline()\n : true\n}\n\nexport class CancelledError extends Error {\n revert?: boolean\n silent?: boolean\n constructor(options?: CancelOptions) {\n super('CancelledError')\n this.revert = options?.revert\n this.silent = options?.silent\n }\n}\n\nexport function isCancelledError(value: any): value is CancelledError {\n return value instanceof CancelledError\n}\n\nexport function createRetryer(\n config: RetryerConfig,\n): Retryer {\n let isRetryCancelled = false\n let failureCount = 0\n let isResolved = false\n let continueFn: ((value?: unknown) => void) | undefined\n\n const thenable = pendingThenable()\n\n const cancel = (cancelOptions?: CancelOptions): void => {\n if (!isResolved) {\n reject(new CancelledError(cancelOptions))\n\n config.abort?.()\n }\n }\n const cancelRetry = () => {\n isRetryCancelled = true\n }\n\n const continueRetry = () => {\n isRetryCancelled = false\n }\n\n const canContinue = () =>\n focusManager.isFocused() &&\n (config.networkMode === 'always' || onlineManager.isOnline()) &&\n config.canRun()\n\n const canStart = () => canFetch(config.networkMode) && config.canRun()\n\n const resolve = (value: any) => {\n if (!isResolved) {\n isResolved = true\n config.onSuccess?.(value)\n continueFn?.()\n thenable.resolve(value)\n }\n }\n\n const reject = (value: any) => {\n if (!isResolved) {\n isResolved = true\n config.onError?.(value)\n continueFn?.()\n thenable.reject(value)\n }\n }\n\n const pause = () => {\n return new Promise((continueResolve) => {\n continueFn = (value) => {\n if (isResolved || canContinue()) {\n continueResolve(value)\n }\n }\n config.onPause?.()\n }).then(() => {\n continueFn = undefined\n if (!isResolved) {\n config.onContinue?.()\n }\n })\n }\n\n // Create loop function\n const run = () => {\n // Do nothing if already resolved\n if (isResolved) {\n return\n }\n\n let promiseOrValue: any\n\n // we can re-use config.initialPromise on the first call of run()\n const initialPromise =\n failureCount === 0 ? config.initialPromise : undefined\n\n // Execute query\n try {\n promiseOrValue = initialPromise ?? config.fn()\n } catch (error) {\n promiseOrValue = Promise.reject(error)\n }\n\n Promise.resolve(promiseOrValue)\n .then(resolve)\n .catch((error) => {\n // Stop if the fetch is already resolved\n if (isResolved) {\n return\n }\n\n // Do we need to retry the request?\n const retry = config.retry ?? (isServer ? 0 : 3)\n const retryDelay = config.retryDelay ?? defaultRetryDelay\n const delay =\n typeof retryDelay === 'function'\n ? retryDelay(failureCount, error)\n : retryDelay\n const shouldRetry =\n retry === true ||\n (typeof retry === 'number' && failureCount < retry) ||\n (typeof retry === 'function' && retry(failureCount, error))\n\n if (isRetryCancelled || !shouldRetry) {\n // We are done if the query does not need to be retried\n reject(error)\n return\n }\n\n failureCount++\n\n // Notify on fail\n config.onFail?.(failureCount, error)\n\n // Delay\n sleep(delay)\n // Pause if the document is not visible or when the device is offline\n .then(() => {\n return canContinue() ? undefined : pause()\n })\n .then(() => {\n if (isRetryCancelled) {\n reject(error)\n } else {\n run()\n }\n })\n })\n }\n\n return {\n promise: thenable,\n cancel,\n continue: () => {\n continueFn?.()\n return thenable\n },\n cancelRetry,\n continueRetry,\n canStart,\n start: () => {\n // Start loop\n if (canStart()) {\n run()\n } else {\n pause().then(run)\n }\n return thenable\n },\n }\n}\n","export class Subscribable {\n protected listeners = new Set()\n\n constructor() {\n this.subscribe = this.subscribe.bind(this)\n }\n\n subscribe(listener: TListener): () => void {\n this.listeners.add(listener)\n\n this.onSubscribe()\n\n return () => {\n this.listeners.delete(listener)\n this.onUnsubscribe()\n }\n }\n\n hasListeners(): boolean {\n return this.listeners.size > 0\n }\n\n protected onSubscribe(): void {\n // Do nothing\n }\n\n protected onUnsubscribe(): void {\n // Do nothing\n }\n}\n","/**\n * Thenable types which matches React's types for promises\n *\n * React seemingly uses `.status`, `.value` and `.reason` properties on a promises to optimistically unwrap data from promises\n *\n * @see https://github.com/facebook/react/blob/main/packages/shared/ReactTypes.js#L112-L138\n * @see https://github.com/facebook/react/blob/4f604941569d2e8947ce1460a0b2997e835f37b9/packages/react-debug-tools/src/ReactDebugHooks.js#L224-L227\n */\n\ninterface Fulfilled {\n status: 'fulfilled'\n value: T\n}\ninterface Rejected {\n status: 'rejected'\n reason: unknown\n}\ninterface Pending {\n status: 'pending'\n\n /**\n * Resolve the promise with a value.\n * Will remove the `resolve` and `reject` properties from the promise.\n */\n resolve: (value: T) => void\n /**\n * Reject the promise with a reason.\n * Will remove the `resolve` and `reject` properties from the promise.\n */\n reject: (reason: unknown) => void\n}\n\nexport type FulfilledThenable = Promise & Fulfilled\nexport type RejectedThenable = Promise & Rejected\nexport type PendingThenable = Promise & Pending\n\nexport type Thenable =\n | FulfilledThenable\n | RejectedThenable\n | PendingThenable\n\nexport function pendingThenable(): PendingThenable {\n let resolve: Pending['resolve']\n let reject: Pending['reject']\n // this could use `Promise.withResolvers()` in the future\n const thenable = new Promise((_resolve, _reject) => {\n resolve = _resolve\n reject = _reject\n }) as PendingThenable\n\n thenable.status = 'pending'\n thenable.catch(() => {\n // prevent unhandled rejection errors\n })\n\n function finalize(data: Fulfilled | Rejected) {\n Object.assign(thenable, data)\n\n // clear pending props props to avoid calling them twice\n delete (thenable as Partial>).resolve\n delete (thenable as Partial>).reject\n }\n\n thenable.resolve = (value) => {\n finalize({\n status: 'fulfilled',\n value,\n })\n\n resolve(value)\n }\n thenable.reject = (reason) => {\n finalize({\n status: 'rejected',\n reason,\n })\n\n reject(reason)\n }\n\n return thenable\n}\n","import type {\n DefaultError,\n Enabled,\n FetchStatus,\n MutationKey,\n MutationStatus,\n QueryFunction,\n QueryKey,\n QueryOptions,\n StaleTime,\n} from './types'\nimport type { Mutation } from './mutation'\nimport type { FetchOptions, Query } from './query'\n\n// TYPES\n\nexport interface QueryFilters {\n /**\n * Filter to active queries, inactive queries or all queries\n */\n type?: QueryTypeFilter\n /**\n * Match query key exactly\n */\n exact?: boolean\n /**\n * Include queries matching this predicate function\n */\n predicate?: (query: Query) => boolean\n /**\n * Include queries matching this query key\n */\n queryKey?: QueryKey\n /**\n * Include or exclude stale queries\n */\n stale?: boolean\n /**\n * Include queries matching their fetchStatus\n */\n fetchStatus?: FetchStatus\n}\n\nexport interface MutationFilters {\n /**\n * Match mutation key exactly\n */\n exact?: boolean\n /**\n * Include mutations matching this predicate function\n */\n predicate?: (mutation: Mutation) => boolean\n /**\n * Include mutations matching this mutation key\n */\n mutationKey?: MutationKey\n /**\n * Filter by mutation status\n */\n status?: MutationStatus\n}\n\nexport type Updater = TOutput | ((input: TInput) => TOutput)\n\nexport type QueryTypeFilter = 'all' | 'active' | 'inactive'\n\n// UTILS\n\nexport const isServer = typeof window === 'undefined' || 'Deno' in globalThis\n\nexport function noop(): undefined {\n return undefined\n}\n\nexport function functionalUpdate(\n updater: Updater,\n input: TInput,\n): TOutput {\n return typeof updater === 'function'\n ? (updater as (_: TInput) => TOutput)(input)\n : updater\n}\n\nexport function isValidTimeout(value: unknown): value is number {\n return typeof value === 'number' && value >= 0 && value !== Infinity\n}\n\nexport function timeUntilStale(updatedAt: number, staleTime?: number): number {\n return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0)\n}\n\nexport function resolveStaleTime<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n staleTime: undefined | StaleTime,\n query: Query,\n): number | undefined {\n return typeof staleTime === 'function' ? staleTime(query) : staleTime\n}\n\nexport function resolveEnabled<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n enabled: undefined | Enabled,\n query: Query,\n): boolean | undefined {\n return typeof enabled === 'function' ? enabled(query) : enabled\n}\n\nexport function matchQuery(\n filters: QueryFilters,\n query: Query,\n): boolean {\n const {\n type = 'all',\n exact,\n fetchStatus,\n predicate,\n queryKey,\n stale,\n } = filters\n\n if (queryKey) {\n if (exact) {\n if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {\n return false\n }\n } else if (!partialMatchKey(query.queryKey, queryKey)) {\n return false\n }\n }\n\n if (type !== 'all') {\n const isActive = query.isActive()\n if (type === 'active' && !isActive) {\n return false\n }\n if (type === 'inactive' && isActive) {\n return false\n }\n }\n\n if (typeof stale === 'boolean' && query.isStale() !== stale) {\n return false\n }\n\n if (fetchStatus && fetchStatus !== query.state.fetchStatus) {\n return false\n }\n\n if (predicate && !predicate(query)) {\n return false\n }\n\n return true\n}\n\nexport function matchMutation(\n filters: MutationFilters,\n mutation: Mutation,\n): boolean {\n const { exact, status, predicate, mutationKey } = filters\n if (mutationKey) {\n if (!mutation.options.mutationKey) {\n return false\n }\n if (exact) {\n if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {\n return false\n }\n } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {\n return false\n }\n }\n\n if (status && mutation.state.status !== status) {\n return false\n }\n\n if (predicate && !predicate(mutation)) {\n return false\n }\n\n return true\n}\n\nexport function hashQueryKeyByOptions(\n queryKey: TQueryKey,\n options?: Pick, 'queryKeyHashFn'>,\n): string {\n const hashFn = options?.queryKeyHashFn || hashKey\n return hashFn(queryKey)\n}\n\n/**\n * Default query & mutation keys hash function.\n * Hashes the value into a stable hash.\n */\nexport function hashKey(queryKey: QueryKey | MutationKey): string {\n return JSON.stringify(queryKey, (_, val) =>\n isPlainObject(val)\n ? Object.keys(val)\n .sort()\n .reduce((result, key) => {\n result[key] = val[key]\n return result\n }, {} as any)\n : val,\n )\n}\n\n/**\n * Checks if key `b` partially matches with key `a`.\n */\nexport function partialMatchKey(a: QueryKey, b: QueryKey): boolean\nexport function partialMatchKey(a: any, b: any): boolean {\n if (a === b) {\n return true\n }\n\n if (typeof a !== typeof b) {\n return false\n }\n\n if (a && b && typeof a === 'object' && typeof b === 'object') {\n return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]))\n }\n\n return false\n}\n\n/**\n * This function returns `a` if `b` is deeply equal.\n * If not, it will replace any deeply equal children of `b` with those of `a`.\n * This can be used for structural sharing between JSON values for example.\n */\nexport function replaceEqualDeep(a: unknown, b: T): T\nexport function replaceEqualDeep(a: any, b: any): any {\n if (a === b) {\n return a\n }\n\n const array = isPlainArray(a) && isPlainArray(b)\n\n if (array || (isPlainObject(a) && isPlainObject(b))) {\n const aItems = array ? a : Object.keys(a)\n const aSize = aItems.length\n const bItems = array ? b : Object.keys(b)\n const bSize = bItems.length\n const copy: any = array ? [] : {}\n\n let equalItems = 0\n\n for (let i = 0; i < bSize; i++) {\n const key = array ? i : bItems[i]\n if (\n ((!array && aItems.includes(key)) || array) &&\n a[key] === undefined &&\n b[key] === undefined\n ) {\n copy[key] = undefined\n equalItems++\n } else {\n copy[key] = replaceEqualDeep(a[key], b[key])\n if (copy[key] === a[key] && a[key] !== undefined) {\n equalItems++\n }\n }\n }\n\n return aSize === bSize && equalItems === aSize ? a : copy\n }\n\n return b\n}\n\n/**\n * Shallow compare objects.\n */\nexport function shallowEqualObjects>(\n a: T,\n b: T | undefined,\n): boolean {\n if (!b || Object.keys(a).length !== Object.keys(b).length) {\n return false\n }\n\n for (const key in a) {\n if (a[key] !== b[key]) {\n return false\n }\n }\n\n return true\n}\n\nexport function isPlainArray(value: unknown) {\n return Array.isArray(value) && value.length === Object.keys(value).length\n}\n\n// Copied from: https://github.com/jonschlinkert/is-plain-object\n// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\nexport function isPlainObject(o: any): o is Object {\n if (!hasObjectPrototype(o)) {\n return false\n }\n\n // If has no constructor\n const ctor = o.constructor\n if (ctor === undefined) {\n return true\n }\n\n // If has modified prototype\n const prot = ctor.prototype\n if (!hasObjectPrototype(prot)) {\n return false\n }\n\n // If constructor does not have an Object-specific method\n if (!prot.hasOwnProperty('isPrototypeOf')) {\n return false\n }\n\n // Handles Objects created by Object.create()\n if (Object.getPrototypeOf(o) !== Object.prototype) {\n return false\n }\n\n // Most likely a plain Object\n return true\n}\n\nfunction hasObjectPrototype(o: any): boolean {\n return Object.prototype.toString.call(o) === '[object Object]'\n}\n\nexport function sleep(timeout: number): Promise {\n return new Promise((resolve) => {\n setTimeout(resolve, timeout)\n })\n}\n\nexport function replaceData<\n TData,\n TOptions extends QueryOptions,\n>(prevData: TData | undefined, data: TData, options: TOptions): TData {\n if (typeof options.structuralSharing === 'function') {\n return options.structuralSharing(prevData, data) as TData\n } else if (options.structuralSharing !== false) {\n if (process.env.NODE_ENV !== 'production') {\n try {\n return replaceEqualDeep(prevData, data)\n } catch (error) {\n console.error(\n `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`,\n )\n }\n }\n // Structurally share data between prev and new data if needed\n return replaceEqualDeep(prevData, data)\n }\n return data\n}\n\nexport function keepPreviousData(\n previousData: T | undefined,\n): T | undefined {\n return previousData\n}\n\nexport function addToEnd(items: Array, item: T, max = 0): Array {\n const newItems = [...items, item]\n return max && newItems.length > max ? newItems.slice(1) : newItems\n}\n\nexport function addToStart(items: Array, item: T, max = 0): Array {\n const newItems = [item, ...items]\n return max && newItems.length > max ? newItems.slice(0, -1) : newItems\n}\n\nexport const skipToken = Symbol()\nexport type SkipToken = typeof skipToken\n\nexport function ensureQueryFn<\n TQueryFnData = unknown,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: {\n queryFn?: QueryFunction | SkipToken\n queryHash?: string\n },\n fetchOptions?: FetchOptions,\n): QueryFunction {\n if (process.env.NODE_ENV !== 'production') {\n if (options.queryFn === skipToken) {\n console.error(\n `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`,\n )\n }\n }\n\n // if we attempt to retry a fetch that was triggered from an initialPromise\n // when we don't have a queryFn yet, we can't retry, so we just return the already rejected initialPromise\n // if an observer has already mounted, we will be able to retry with that queryFn\n if (!options.queryFn && fetchOptions?.initialPromise) {\n return () => fetchOptions.initialPromise!\n }\n\n if (!options.queryFn || options.queryFn === skipToken) {\n return () =>\n Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`))\n }\n\n return options.queryFn\n}\n","'use client'\nimport * as React from 'react'\n\nimport type { QueryClient } from '@tanstack/query-core'\n\nexport const QueryClientContext = React.createContext(\n undefined,\n)\n\nexport const useQueryClient = (queryClient?: QueryClient) => {\n const client = React.useContext(QueryClientContext)\n\n if (queryClient) {\n return queryClient\n }\n\n if (!client) {\n throw new Error('No QueryClient set, use QueryClientProvider to set one')\n }\n\n return client\n}\n\nexport type QueryClientProviderProps = {\n client: QueryClient\n children?: React.ReactNode\n}\n\nexport const QueryClientProvider = ({\n client,\n children,\n}: QueryClientProviderProps): React.JSX.Element => {\n React.useEffect(() => {\n client.mount()\n return () => {\n client.unmount()\n }\n }, [client])\n\n return (\n \n {children}\n \n )\n}\n","'use client'\nimport * as React from 'react'\n\n// CONTEXT\nexport type QueryErrorResetFunction = () => void\nexport type QueryErrorIsResetFunction = () => boolean\nexport type QueryErrorClearResetFunction = () => void\n\nexport interface QueryErrorResetBoundaryValue {\n clearReset: QueryErrorClearResetFunction\n isReset: QueryErrorIsResetFunction\n reset: QueryErrorResetFunction\n}\n\nfunction createValue(): QueryErrorResetBoundaryValue {\n let isReset = false\n return {\n clearReset: () => {\n isReset = false\n },\n reset: () => {\n isReset = true\n },\n isReset: () => {\n return isReset\n },\n }\n}\n\nconst QueryErrorResetBoundaryContext = React.createContext(createValue())\n\n// HOOK\n\nexport const useQueryErrorResetBoundary = () =>\n React.useContext(QueryErrorResetBoundaryContext)\n\n// COMPONENT\n\nexport type QueryErrorResetBoundaryFunction = (\n value: QueryErrorResetBoundaryValue,\n) => React.ReactNode\n\nexport interface QueryErrorResetBoundaryProps {\n children: QueryErrorResetBoundaryFunction | React.ReactNode\n}\n\nexport const QueryErrorResetBoundary = ({\n children,\n}: QueryErrorResetBoundaryProps) => {\n const [value] = React.useState(() => createValue())\n return (\n \n {typeof children === 'function' ? children(value) : children}\n \n )\n}\n","'use client'\nimport * as React from 'react'\nimport { shouldThrowError } from './utils'\nimport type {\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserverResult,\n ThrowOnError,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const ensurePreventErrorBoundaryRetry = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n if (\n options.suspense ||\n options.throwOnError ||\n options.experimental_prefetchInRender\n ) {\n // Prevent retrying failed query if the error boundary has not been reset yet\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false\n }\n }\n}\n\nexport const useClearResetErrorBoundary = (\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset()\n }, [errorResetBoundary])\n}\n\nexport const getHasError = <\n TData,\n TError,\n TQueryFnData,\n TQueryData,\n TQueryKey extends QueryKey,\n>({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n}: {\n result: QueryObserverResult\n errorResetBoundary: QueryErrorResetBoundaryValue\n throwOnError: ThrowOnError\n query: Query | undefined\n}) => {\n return (\n result.isError &&\n !errorResetBoundary.isReset() &&\n !result.isFetching &&\n query &&\n shouldThrowError(throwOnError, [result.error, query])\n )\n}\n","'use client'\nimport * as React from 'react'\n\nconst IsRestoringContext = React.createContext(false)\n\nexport const useIsRestoring = () => React.useContext(IsRestoringContext)\nexport const IsRestoringProvider = IsRestoringContext.Provider\n","import type {\n DataTag,\n DefaultError,\n InitialDataFunction,\n OmitKeyof,\n QueryKey,\n SkipToken,\n} from '@tanstack/query-core'\nimport type { UseQueryOptions } from './types'\n\nexport type UndefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions & {\n initialData?:\n | undefined\n | InitialDataFunction>\n | NonUndefinedGuard\n}\n\nexport type UnusedSkipTokenOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = OmitKeyof<\n UseQueryOptions,\n 'queryFn'\n> & {\n queryFn?: Exclude<\n UseQueryOptions['queryFn'],\n SkipToken | undefined\n >\n}\n\ntype NonUndefinedGuard = T extends undefined ? never : T\n\nexport type DefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions & {\n initialData:\n | NonUndefinedGuard\n | (() => NonUndefinedGuard)\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialDataOptions,\n): DefinedInitialDataOptions & {\n queryKey: DataTag\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UnusedSkipTokenOptions,\n): UnusedSkipTokenOptions & {\n queryKey: DataTag\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialDataOptions,\n): UndefinedInitialDataOptions & {\n queryKey: DataTag\n}\n\nexport function queryOptions(options: unknown) {\n return options\n}\n","import type {\n DefaultError,\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserver,\n QueryObserverResult,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const defaultThrowOnError = <\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n _error: TError,\n query: Query,\n) => query.state.data === undefined\n\nexport const ensureSuspenseTimers = (\n defaultedOptions: DefaultedQueryObserverOptions,\n) => {\n if (defaultedOptions.suspense) {\n // Always set stale time when using suspense to prevent\n // fetching again when directly mounting after suspending\n if (defaultedOptions.staleTime === undefined) {\n defaultedOptions.staleTime = 1000\n }\n if (typeof defaultedOptions.gcTime === 'number') {\n defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1000)\n }\n }\n}\n\nexport const willFetch = (\n result: QueryObserverResult,\n isRestoring: boolean,\n) => result.isLoading && result.isFetching && !isRestoring\n\nexport const shouldSuspend = (\n defaultedOptions:\n | DefaultedQueryObserverOptions\n | undefined,\n result: QueryObserverResult,\n) => defaultedOptions?.suspense && result.isPending\n\nexport const fetchOptimistic = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n defaultedOptions: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n observer: QueryObserver,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) =>\n observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset()\n })\n","'use client'\nimport * as React from 'react'\n\nimport { isServer, notifyManager } from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary,\n} from './errorBoundaryUtils'\nimport { useIsRestoring } from './isRestoring'\nimport {\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch,\n} from './suspense'\nimport { noop } from './utils'\nimport type {\n QueryClient,\n QueryKey,\n QueryObserver,\n QueryObserverResult,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryOptions } from './types'\n\nexport function useBaseQuery<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: UseBaseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n Observer: typeof QueryObserver,\n queryClient?: QueryClient,\n): QueryObserverResult {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof options !== 'object' || Array.isArray(options)) {\n throw new Error(\n 'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object',\n )\n }\n }\n\n const client = useQueryClient(queryClient)\n const isRestoring = useIsRestoring()\n const errorResetBoundary = useQueryErrorResetBoundary()\n const defaultedOptions = client.defaultQueryOptions(options)\n\n ;(client.getDefaultOptions().queries as any)?._experimental_beforeQuery?.(\n defaultedOptions,\n )\n\n // Make sure results are optimistically set in fetching state before subscribing or updating options\n defaultedOptions._optimisticResults = isRestoring\n ? 'isRestoring'\n : 'optimistic'\n\n ensureSuspenseTimers(defaultedOptions)\n ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary)\n\n useClearResetErrorBoundary(errorResetBoundary)\n\n // this needs to be invoked before creating the Observer because that can create a cache entry\n const isNewCacheEntry = !client\n .getQueryCache()\n .get(defaultedOptions.queryHash)\n\n const [observer] = React.useState(\n () =>\n new Observer(\n client,\n defaultedOptions,\n ),\n )\n\n const result = observer.getOptimisticResult(defaultedOptions)\n\n React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => {\n const unsubscribe = isRestoring\n ? () => undefined\n : observer.subscribe(notifyManager.batchCalls(onStoreChange))\n\n // Update result to make sure we did not miss any query updates\n // between creating the observer and subscribing to it.\n observer.updateResult()\n\n return unsubscribe\n },\n [observer, isRestoring],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n React.useEffect(() => {\n // Do not notify on updates because of changes in the options because\n // these changes should already be reflected in the optimistic result.\n observer.setOptions(defaultedOptions, { listeners: false })\n }, [defaultedOptions, observer])\n\n // Handle suspense\n if (shouldSuspend(defaultedOptions, result)) {\n throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n }\n\n // Handle error boundary\n if (\n getHasError({\n result,\n errorResetBoundary,\n throwOnError: defaultedOptions.throwOnError,\n query: client\n .getQueryCache()\n .get<\n TQueryFnData,\n TError,\n TQueryData,\n TQueryKey\n >(defaultedOptions.queryHash),\n })\n ) {\n throw result.error\n }\n\n ;(client.getDefaultOptions().queries as any)?._experimental_afterQuery?.(\n defaultedOptions,\n result,\n )\n\n if (\n defaultedOptions.experimental_prefetchInRender &&\n !isServer &&\n willFetch(result, isRestoring)\n ) {\n const promise = isNewCacheEntry\n ? // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted\n fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n : // subscribe to the \"cache promise\" so that we can finalize the currentThenable once data comes in\n client.getQueryCache().get(defaultedOptions.queryHash)?.promise\n\n promise?.catch(noop).finally(() => {\n // `.updateResult()` will trigger `.#currentThenable` to finalize\n observer.updateResult()\n })\n }\n\n // Handle result property usage tracking\n return !defaultedOptions.notifyOnChangeProps\n ? observer.trackResult(result)\n : result\n}\n","'use client'\nimport { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type { DefaultError, QueryClient, QueryKey } from '@tanstack/query-core'\nimport type {\n DefinedUseQueryResult,\n UseQueryOptions,\n UseQueryResult,\n} from './types'\nimport type {\n DefinedInitialDataOptions,\n UndefinedInitialDataOptions,\n} from './queryOptions'\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialDataOptions,\n queryClient?: QueryClient,\n): DefinedUseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialDataOptions,\n queryClient?: QueryClient,\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions,\n queryClient?: QueryClient,\n): UseQueryResult\n\nexport function useQuery(options: UseQueryOptions, queryClient?: QueryClient) {\n return useBaseQuery(options, QueryObserver, queryClient)\n}\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n","import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n","import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n","\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","export const VERSION = \"1.7.7\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","export function _class_private_method_get(receiver, privateSet, fn) {\n if (!privateSet.has(receiver)) throw new TypeError(\"attempted to get private field on non-instance\");\n\n return fn;\n}\nexport { _class_private_method_get as _ };\n","import { _check_private_redeclaration } from \"./_check_private_redeclaration.js\";\n\nexport function _class_private_method_init(obj, privateSet) {\n _check_private_redeclaration(obj, privateSet);\n privateSet.add(obj);\n}\nexport { _class_private_method_init as _ };\n","const reduxImpl = (reducer, initial) => (set, _get, api) => {\n api.dispatch = (action) => {\n set((state) => reducer(state, action), false, action);\n return action;\n };\n api.dispatchFromDevtools = true;\n return { dispatch: (...a) => api.dispatch(...a), ...initial };\n};\nconst redux = reduxImpl;\n\nconst trackedConnections = /* @__PURE__ */ new Map();\nconst getTrackedConnectionState = (name) => {\n const api = trackedConnections.get(name);\n if (!api) return {};\n return Object.fromEntries(\n Object.entries(api.stores).map(([key, api2]) => [key, api2.getState()])\n );\n};\nconst extractConnectionInformation = (store, extensionConnector, options) => {\n if (store === void 0) {\n return {\n type: \"untracked\",\n connection: extensionConnector.connect(options)\n };\n }\n const existingConnection = trackedConnections.get(options.name);\n if (existingConnection) {\n return { type: \"tracked\", store, ...existingConnection };\n }\n const newConnection = {\n connection: extensionConnector.connect(options),\n stores: {}\n };\n trackedConnections.set(options.name, newConnection);\n return { type: \"tracked\", store, ...newConnection };\n};\nconst devtoolsImpl = (fn, devtoolsOptions = {}) => (set, get, api) => {\n const { enabled, anonymousActionType, store, ...options } = devtoolsOptions;\n let extensionConnector;\n try {\n extensionConnector = (enabled != null ? enabled : (import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") && window.__REDUX_DEVTOOLS_EXTENSION__;\n } catch (_e) {\n }\n if (!extensionConnector) {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && enabled) {\n console.warn(\n \"[zustand devtools middleware] Please install/enable Redux devtools extension\"\n );\n }\n return fn(set, get, api);\n }\n const { connection, ...connectionInformation } = extractConnectionInformation(store, extensionConnector, options);\n let isRecording = true;\n api.setState = (state, replace, nameOrAction) => {\n const r = set(state, replace);\n if (!isRecording) return r;\n const action = nameOrAction === void 0 ? { type: anonymousActionType || \"anonymous\" } : typeof nameOrAction === \"string\" ? { type: nameOrAction } : nameOrAction;\n if (store === void 0) {\n connection == null ? void 0 : connection.send(action, get());\n return r;\n }\n connection == null ? void 0 : connection.send(\n {\n ...action,\n type: `${store}/${action.type}`\n },\n {\n ...getTrackedConnectionState(options.name),\n [store]: api.getState()\n }\n );\n return r;\n };\n const setStateFromDevtools = (...a) => {\n const originalIsRecording = isRecording;\n isRecording = false;\n set(...a);\n isRecording = originalIsRecording;\n };\n const initialState = fn(api.setState, get, api);\n if (connectionInformation.type === \"untracked\") {\n connection == null ? void 0 : connection.init(initialState);\n } else {\n connectionInformation.stores[connectionInformation.store] = api;\n connection == null ? void 0 : connection.init(\n Object.fromEntries(\n Object.entries(connectionInformation.stores).map(([key, store2]) => [\n key,\n key === connectionInformation.store ? initialState : store2.getState()\n ])\n )\n );\n }\n if (api.dispatchFromDevtools && typeof api.dispatch === \"function\") {\n let didWarnAboutReservedActionType = false;\n const originalDispatch = api.dispatch;\n api.dispatch = (...a) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && a[0].type === \"__setState\" && !didWarnAboutReservedActionType) {\n console.warn(\n '[zustand devtools middleware] \"__setState\" action type is reserved to set state from the devtools. Avoid using it.'\n );\n didWarnAboutReservedActionType = true;\n }\n originalDispatch(...a);\n };\n }\n connection.subscribe((message) => {\n var _a;\n switch (message.type) {\n case \"ACTION\":\n if (typeof message.payload !== \"string\") {\n console.error(\n \"[zustand devtools middleware] Unsupported action format\"\n );\n return;\n }\n return parseJsonThen(\n message.payload,\n (action) => {\n if (action.type === \"__setState\") {\n if (store === void 0) {\n setStateFromDevtools(action.state);\n return;\n }\n if (Object.keys(action.state).length !== 1) {\n console.error(\n `\n [zustand devtools middleware] Unsupported __setState action format. \n When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),\n and value of this only key should be a state object. Example: { \"type\": \"__setState\", \"state\": { \"abc123Store\": { \"foo\": \"bar\" } } }\n `\n );\n }\n const stateFromDevtools = action.state[store];\n if (stateFromDevtools === void 0 || stateFromDevtools === null) {\n return;\n }\n if (JSON.stringify(api.getState()) !== JSON.stringify(stateFromDevtools)) {\n setStateFromDevtools(stateFromDevtools);\n }\n return;\n }\n if (!api.dispatchFromDevtools) return;\n if (typeof api.dispatch !== \"function\") return;\n api.dispatch(action);\n }\n );\n case \"DISPATCH\":\n switch (message.payload.type) {\n case \"RESET\":\n setStateFromDevtools(initialState);\n if (store === void 0) {\n return connection == null ? void 0 : connection.init(api.getState());\n }\n return connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));\n case \"COMMIT\":\n if (store === void 0) {\n connection == null ? void 0 : connection.init(api.getState());\n return;\n }\n return connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));\n case \"ROLLBACK\":\n return parseJsonThen(message.state, (state) => {\n if (store === void 0) {\n setStateFromDevtools(state);\n connection == null ? void 0 : connection.init(api.getState());\n return;\n }\n setStateFromDevtools(state[store]);\n connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));\n });\n case \"JUMP_TO_STATE\":\n case \"JUMP_TO_ACTION\":\n return parseJsonThen(message.state, (state) => {\n if (store === void 0) {\n setStateFromDevtools(state);\n return;\n }\n if (JSON.stringify(api.getState()) !== JSON.stringify(state[store])) {\n setStateFromDevtools(state[store]);\n }\n });\n case \"IMPORT_STATE\": {\n const { nextLiftedState } = message.payload;\n const lastComputedState = (_a = nextLiftedState.computedStates.slice(-1)[0]) == null ? void 0 : _a.state;\n if (!lastComputedState) return;\n if (store === void 0) {\n setStateFromDevtools(lastComputedState);\n } else {\n setStateFromDevtools(lastComputedState[store]);\n }\n connection == null ? void 0 : connection.send(\n null,\n // FIXME no-any\n nextLiftedState\n );\n return;\n }\n case \"PAUSE_RECORDING\":\n return isRecording = !isRecording;\n }\n return;\n }\n });\n return initialState;\n};\nconst devtools = devtoolsImpl;\nconst parseJsonThen = (stringified, f) => {\n let parsed;\n try {\n parsed = JSON.parse(stringified);\n } catch (e) {\n console.error(\n \"[zustand devtools middleware] Could not parse the received json\",\n e\n );\n }\n if (parsed !== void 0) f(parsed);\n};\n\nconst subscribeWithSelectorImpl = (fn) => (set, get, api) => {\n const origSubscribe = api.subscribe;\n api.subscribe = (selector, optListener, options) => {\n let listener = selector;\n if (optListener) {\n const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;\n let currentSlice = selector(api.getState());\n listener = (state) => {\n const nextSlice = selector(state);\n if (!equalityFn(currentSlice, nextSlice)) {\n const previousSlice = currentSlice;\n optListener(currentSlice = nextSlice, previousSlice);\n }\n };\n if (options == null ? void 0 : options.fireImmediately) {\n optListener(currentSlice, currentSlice);\n }\n }\n return origSubscribe(listener);\n };\n const initialState = fn(set, get, api);\n return initialState;\n};\nconst subscribeWithSelector = subscribeWithSelectorImpl;\n\nconst combine = (initialState, create) => (...a) => Object.assign({}, initialState, create(...a));\n\nfunction createJSONStorage(getStorage, options) {\n let storage;\n try {\n storage = getStorage();\n } catch (_e) {\n return;\n }\n const persistStorage = {\n getItem: (name) => {\n var _a;\n const parse = (str2) => {\n if (str2 === null) {\n return null;\n }\n return JSON.parse(str2, options == null ? void 0 : options.reviver);\n };\n const str = (_a = storage.getItem(name)) != null ? _a : null;\n if (str instanceof Promise) {\n return str.then(parse);\n }\n return parse(str);\n },\n setItem: (name, newValue) => storage.setItem(\n name,\n JSON.stringify(newValue, options == null ? void 0 : options.replacer)\n ),\n removeItem: (name) => storage.removeItem(name)\n };\n return persistStorage;\n}\nconst toThenable = (fn) => (input) => {\n try {\n const result = fn(input);\n if (result instanceof Promise) {\n return result;\n }\n return {\n then(onFulfilled) {\n return toThenable(onFulfilled)(result);\n },\n catch(_onRejected) {\n return this;\n }\n };\n } catch (e) {\n return {\n then(_onFulfilled) {\n return this;\n },\n catch(onRejected) {\n return toThenable(onRejected)(e);\n }\n };\n }\n};\nconst oldImpl = (config, baseOptions) => (set, get, api) => {\n let options = {\n getStorage: () => localStorage,\n serialize: JSON.stringify,\n deserialize: JSON.parse,\n partialize: (state) => state,\n version: 0,\n merge: (persistedState, currentState) => ({\n ...currentState,\n ...persistedState\n }),\n ...baseOptions\n };\n let hasHydrated = false;\n const hydrationListeners = /* @__PURE__ */ new Set();\n const finishHydrationListeners = /* @__PURE__ */ new Set();\n let storage;\n try {\n storage = options.getStorage();\n } catch (_e) {\n }\n if (!storage) {\n return config(\n (...args) => {\n console.warn(\n `[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`\n );\n set(...args);\n },\n get,\n api\n );\n }\n const thenableSerialize = toThenable(options.serialize);\n const setItem = () => {\n const state = options.partialize({ ...get() });\n let errorInSync;\n const thenable = thenableSerialize({ state, version: options.version }).then(\n (serializedValue) => storage.setItem(options.name, serializedValue)\n ).catch((e) => {\n errorInSync = e;\n });\n if (errorInSync) {\n throw errorInSync;\n }\n return thenable;\n };\n const savedSetState = api.setState;\n api.setState = (state, replace) => {\n savedSetState(state, replace);\n void setItem();\n };\n const configResult = config(\n (...args) => {\n set(...args);\n void setItem();\n },\n get,\n api\n );\n let stateFromStorage;\n const hydrate = () => {\n var _a;\n if (!storage) return;\n hasHydrated = false;\n hydrationListeners.forEach((cb) => cb(get()));\n const postRehydrationCallback = ((_a = options.onRehydrateStorage) == null ? void 0 : _a.call(options, get())) || void 0;\n return toThenable(storage.getItem.bind(storage))(options.name).then((storageValue) => {\n if (storageValue) {\n return options.deserialize(storageValue);\n }\n }).then((deserializedStorageValue) => {\n if (deserializedStorageValue) {\n if (typeof deserializedStorageValue.version === \"number\" && deserializedStorageValue.version !== options.version) {\n if (options.migrate) {\n return options.migrate(\n deserializedStorageValue.state,\n deserializedStorageValue.version\n );\n }\n console.error(\n `State loaded from storage couldn't be migrated since no migrate function was provided`\n );\n } else {\n return deserializedStorageValue.state;\n }\n }\n }).then((migratedState) => {\n var _a2;\n stateFromStorage = options.merge(\n migratedState,\n (_a2 = get()) != null ? _a2 : configResult\n );\n set(stateFromStorage, true);\n return setItem();\n }).then(() => {\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(stateFromStorage, void 0);\n hasHydrated = true;\n finishHydrationListeners.forEach((cb) => cb(stateFromStorage));\n }).catch((e) => {\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(void 0, e);\n });\n };\n api.persist = {\n setOptions: (newOptions) => {\n options = {\n ...options,\n ...newOptions\n };\n if (newOptions.getStorage) {\n storage = newOptions.getStorage();\n }\n },\n clearStorage: () => {\n storage == null ? void 0 : storage.removeItem(options.name);\n },\n getOptions: () => options,\n rehydrate: () => hydrate(),\n hasHydrated: () => hasHydrated,\n onHydrate: (cb) => {\n hydrationListeners.add(cb);\n return () => {\n hydrationListeners.delete(cb);\n };\n },\n onFinishHydration: (cb) => {\n finishHydrationListeners.add(cb);\n return () => {\n finishHydrationListeners.delete(cb);\n };\n }\n };\n hydrate();\n return stateFromStorage || configResult;\n};\nconst newImpl = (config, baseOptions) => (set, get, api) => {\n let options = {\n storage: createJSONStorage(() => localStorage),\n partialize: (state) => state,\n version: 0,\n merge: (persistedState, currentState) => ({\n ...currentState,\n ...persistedState\n }),\n ...baseOptions\n };\n let hasHydrated = false;\n const hydrationListeners = /* @__PURE__ */ new Set();\n const finishHydrationListeners = /* @__PURE__ */ new Set();\n let storage = options.storage;\n if (!storage) {\n return config(\n (...args) => {\n console.warn(\n `[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`\n );\n set(...args);\n },\n get,\n api\n );\n }\n const setItem = () => {\n const state = options.partialize({ ...get() });\n return storage.setItem(options.name, {\n state,\n version: options.version\n });\n };\n const savedSetState = api.setState;\n api.setState = (state, replace) => {\n savedSetState(state, replace);\n void setItem();\n };\n const configResult = config(\n (...args) => {\n set(...args);\n void setItem();\n },\n get,\n api\n );\n api.getInitialState = () => configResult;\n let stateFromStorage;\n const hydrate = () => {\n var _a, _b;\n if (!storage) return;\n hasHydrated = false;\n hydrationListeners.forEach((cb) => {\n var _a2;\n return cb((_a2 = get()) != null ? _a2 : configResult);\n });\n const postRehydrationCallback = ((_b = options.onRehydrateStorage) == null ? void 0 : _b.call(options, (_a = get()) != null ? _a : configResult)) || void 0;\n return toThenable(storage.getItem.bind(storage))(options.name).then((deserializedStorageValue) => {\n if (deserializedStorageValue) {\n if (typeof deserializedStorageValue.version === \"number\" && deserializedStorageValue.version !== options.version) {\n if (options.migrate) {\n return [\n true,\n options.migrate(\n deserializedStorageValue.state,\n deserializedStorageValue.version\n )\n ];\n }\n console.error(\n `State loaded from storage couldn't be migrated since no migrate function was provided`\n );\n } else {\n return [false, deserializedStorageValue.state];\n }\n }\n return [false, void 0];\n }).then((migrationResult) => {\n var _a2;\n const [migrated, migratedState] = migrationResult;\n stateFromStorage = options.merge(\n migratedState,\n (_a2 = get()) != null ? _a2 : configResult\n );\n set(stateFromStorage, true);\n if (migrated) {\n return setItem();\n }\n }).then(() => {\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(stateFromStorage, void 0);\n stateFromStorage = get();\n hasHydrated = true;\n finishHydrationListeners.forEach((cb) => cb(stateFromStorage));\n }).catch((e) => {\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(void 0, e);\n });\n };\n api.persist = {\n setOptions: (newOptions) => {\n options = {\n ...options,\n ...newOptions\n };\n if (newOptions.storage) {\n storage = newOptions.storage;\n }\n },\n clearStorage: () => {\n storage == null ? void 0 : storage.removeItem(options.name);\n },\n getOptions: () => options,\n rehydrate: () => hydrate(),\n hasHydrated: () => hasHydrated,\n onHydrate: (cb) => {\n hydrationListeners.add(cb);\n return () => {\n hydrationListeners.delete(cb);\n };\n },\n onFinishHydration: (cb) => {\n finishHydrationListeners.add(cb);\n return () => {\n finishHydrationListeners.delete(cb);\n };\n }\n };\n if (!options.skipHydration) {\n hydrate();\n }\n return stateFromStorage || configResult;\n};\nconst persistImpl = (config, baseOptions) => {\n if (\"getStorage\" in baseOptions || \"serialize\" in baseOptions || \"deserialize\" in baseOptions) {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n console.warn(\n \"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead.\"\n );\n }\n return oldImpl(config, baseOptions);\n }\n return newImpl(config, baseOptions);\n};\nconst persist = persistImpl;\n\nexport { combine, createJSONStorage, devtools, persist, redux, subscribeWithSelector };\n"],"names":["exports","byteLength","b64","lens","getLens","validLen","placeHoldersLen","toByteArray","tmp","i","arr","Arr","curByte","len","charCodeAt","revLookup","fromByteArray","uint8","length","extraBytes","parts","len2","push","encodeChunk","start","end","output","lookup","num","join","Uint8Array","Array","code","indexOf","base64","__webpack_require__","ieee754","customInspectSymbol","Symbol","createBuffer","buf","Object","setPrototypeOf","Buffer","prototype","arg","encodingOrOffset","allocUnsafe","from","value","fromString","string","encoding","isEncoding","actual","write","slice","ArrayBuffer","isView","fromArrayView","arrayView","isInstance","copy","fromArrayBuffer","buffer","byteOffset","fromArrayLike","SharedArrayBuffer","valueOf","b","fromObject","obj","isBuffer","checked","undefined","type","isArray","data","toPrimitive","assertSize","size","array","mustMatch","arguments","loweredCase","utf8ToBytes","base64ToBytes","toLowerCase","slowToString","hexSlice","out","hexSliceLookupTable","utf8Slice","asciiSlice","ret","Math","min","String","fromCharCode","latin1Slice","utf16leSlice","bytes","res","swap","n","m","bidirectionalIndexOf","val","dir","arrayIndexOf","call","lastIndexOf","indexSize","arrLength","valLength","read","readUInt16BE","foundIndex","found","j","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","codePoints","apply","checkOffset","offset","ext","checkInt","max","wrtBigUInt64LE","checkIntBI","lo","Number","BigInt","hi","wrtBigUInt64BE","checkIEEE754","writeFloat","littleEndian","noAssert","writeDouble","lW","h2","TYPED_ARRAY_SUPPORT","typedArraySupport","proto","foo","e","console","error","defineProperty","enumerable","get","poolSize","alloc","fill","allocUnsafeSlow","_isBuffer","compare","a","x","y","concat","list","pos","set","swap16","swap32","swap64","toString","toLocaleString","equals","inspect","str","replace","trim","target","thisStart","thisEnd","thisCopy","targetCopy","includes","isFinite","remaining","hexWrite","strLen","parsed","parseInt","substr","blitBuffer","asciiToBytes","byteArray","utf16leToBytes","units","c","toJSON","_arr","newBuf","subarray","readUintLE","readUIntLE","mul","readUintBE","readUIntBE","readUint8","readUInt8","readUint16LE","readUInt16LE","readUint16BE","readUint32LE","readUInt32LE","readUint32BE","readUInt32BE","readBigUInt64LE","defineBigIntMethod","validateNumber","first","last","boundsError","readBigUInt64BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readBigInt64LE","readBigInt64BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUintLE","writeUIntLE","maxBytes","writeUintBE","writeUIntBE","writeUint8","writeUInt8","writeUint16LE","writeUInt16LE","writeUint16BE","writeUInt16BE","writeUint32LE","writeUInt32LE","writeUint32BE","writeUInt32BE","writeBigUInt64LE","writeBigUInt64BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeBigInt64LE","writeBigInt64BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","copyWithin","errors","E","sym","getMessage","Base","constructor","writable","configurable","name","stack","message","addNumericalSeparator","range","ERR_OUT_OF_RANGE","ERR_INVALID_ARG_TYPE","floor","ERR_BUFFER_OUT_OF_BOUNDS","RangeError","TypeError","input","msg","received","isInteger","abs","INVALID_BASE64_RE","Infinity","leadSurrogate","base64clean","split","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","GetIntrinsic","callBind","$indexOf","module","allowMissing","intrinsic","bind","setFunctionLength","$TypeError","$apply","$call","$reflectApply","$defineProperty","$max","originalFunction","func","applyBind","$SyntaxError","gopd","property","nonEnumerable","nonWritable","nonConfigurable","loose","desc","EvalError","Error","ReferenceError","SyntaxError","URIError","toStr","concatty","slicy","arrLike","joiny","joiner","that","bound","ERROR_MESSAGE","args","boundLength","boundArgs","Function","result","Empty","implementation","$Error","$EvalError","$RangeError","$ReferenceError","$URIError","$Function","getEvalledConstructor","expressionSyntax","$gOPD","getOwnPropertyDescriptor","throwTypeError","ThrowTypeError","callee","calleeThrows","gOPDthrows","hasSymbols","hasProto","getProto","getPrototypeOf","__proto__","needsEval","TypedArray","INTRINSICS","AggregateError","iterator","Atomics","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","eval","Float32Array","Float64Array","FinalizationRegistry","Int8Array","Int16Array","Int32Array","isNaN","JSON","Map","parseFloat","Promise","Proxy","Reflect","RegExp","Set","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","WeakRef","WeakSet","errorProto","doEval","gen","LEGACY_ALIASES","hasOwn","$concat","$spliceApply","splice","$replace","$strSlice","$exec","exec","rePropName","reEscapeChar","stringToPath","match","number","quote","subString","getBaseIntrinsic","alias","intrinsicName","intrinsicBaseName","intrinsicRealName","skipFurtherCaching","isOwn","part","hasPropertyDescriptors","hasArrayLengthDefineBug","test","$Object","origSymbol","hasSymbolSham","getOwnPropertySymbols","symObj","keys","getOwnPropertyNames","syms","propertyIsEnumerable","descriptor","$hasOwn","hasOwnProperty","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","d","s","NaN","rt","log","LN2","hasMap","mapSizeDescriptor","mapSize","mapForEach","forEach","hasSet","setSizeDescriptor","setSize","setForEach","weakMapHas","hasWeakMap","has","weakSetHas","hasWeakSet","weakRefDeref","hasWeakRef","deref","booleanValueOf","objectToString","functionToString","$match","$slice","$toUpperCase","toUpperCase","$toLowerCase","$test","$join","$arrSlice","$floor","bigIntValueOf","gOPS","symToString","hasShammedSymbols","toStringTag","isEnumerable","gPO","O","addNumericSeparator","sepRegex","int","intStr","dec","utilInspect","inspectCustom","custom","inspectSymbol","isSymbol","wrapQuotes","defaultStyle","opts","quoteChar","quoteStyle","isRegExp","inspect_","options","depth","seen","maxStringLength","customInspect","indent","numericSeparator","inspectString","lowbyte","bigIntStr","maxDepth","getIndent","baseIndent","base","prev","noIndent","newOpts","nameOf","f","arrObjKeys","symString","markBoxed","HTMLElement","nodeName","getAttribute","attrs","attributes","childNodes","xs","singleLineValues","indentedJoin","cause","isMap","mapParts","key","collectionOf","isSet","setParts","isWeakMap","weakCollectionOf","isWeakSet","isWeakRef","isBigInt","window","globalThis","g","ys","isPlainObject","protoTag","stringTag","tag","constructorTag","l","entries","lineJoiner","symMap","isArr","k","percentTwenties","formatters","RFC1738","RFC3986","stringify","parse","formats","utils","defaults","allowDots","allowEmptyArrays","allowPrototypes","allowSparse","arrayLimit","charset","charsetSentinel","comma","decodeDotInKeys","decoder","decode","delimiter","duplicates","ignoreQueryPrefix","interpretNumericEntities","parameterLimit","parseArrays","plainObjects","strictDepth","strictNullHandling","parseArrayValue","parseValues","cleanStr","skipIndex","bracketEqualsPos","maybeMap","encodedVal","$0","numberStr","existing","combine","parseObject","chain","valuesParsed","leaf","root","create","cleanRoot","charAt","decodedRoot","index","parseKeys","givenKey","child","segment","brackets","parent","normalizeParseOptions","tempObj","newObj","merge","compact","getSideChannel","arrayPrefixGenerators","prefix","indices","repeat","pushToArray","valueOrArray","toISO","toISOString","defaultFormat","addQueryPrefix","arrayFormat","encode","encodeDotInKeys","encoder","encodeValuesOnly","format","formatter","serializeDate","date","skipNulls","sentinel","object","generateArrayPrefix","commaRoundTrip","filter","sort","sideChannel","v","objKeys","tmpSc","step","findFlag","isNonNullishPrimitive","values","encodedPrefix","adjustedPrefix","encodedKey","keyPrefix","valueSideChannel","normalizeStringifyOptions","joined","hexTable","compactQueue","queue","item","pop","prop","compacted","arrayToObject","source","assign","reduce","acc","o","refs","strWithoutPlus","unescape","defaultEncoder","kind","escape","mapped","mergeTarget","targetItem","define","hasDescriptors","gOPD","functionLengthIsConfigurable","functionLengthIsWritable","callBound","$WeakMap","$Map","$weakMapGet","$weakMapSet","$weakMapHas","$mapGet","$mapSet","$mapHas","listGetNode","curr","next","listGet","objects","node","listSet","$wm","$m","$o","channel","assert","isIterable","isAsyncIterable","asyncIterator","empty","asyncEmpty","isPromise","then","catch","AsyncFunctionException","MESSAGE","throwIfPromiseError","async","iterable","esm_each","each","sync","Lazy_map","map","done","_concurrent","Concurrent","of","isConcurrent","concurrent","Lazy_concurrent","resolve","nextCallCount","resolvedItemCount","finished","pending","settlementQueue","consumeBuffer","p","shift","reject","status","reason","fillBuffer","nextItems","allSettled","recur","asyncSequential","cond","Lazy_takeUntil","takeUntil","_iterator","esm_not","esm_pipe1","pipe1","esm_reduce","seed","param","esm_pipe","_len","fns","_key","esm_every","every","pipe","not","Lazy_take","take","cur","esm_toArray","iter","esm_head","toArray","Lazy_filter","asyncConcurrent","resolvedCount","prevItem","nextItem","toFilterIterator","esm_find","find","head","_zipWithIndex","Lazy_zipWithIndex","esm_findIndex","findIndex","zipWithIndex","esm_groupBy","groupBy","group","esm_identity","esm_some","some","identity","esm_includes","esm_indexBy","indexBy","esm_isArray","esm_isNull","esm_isUndefined","esm_isNil","isUndefined","isNull","esm_isEmpty","isNil","esm_isNumber","esm_isString","esm_join","sep","isString","esm_last","_","Lazy_reject","Lazy_takeWhile","takeWhile","rsAstralRange","rsCombo","rsComboMarksRange","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","reOptMod","rsOptVar","rsOptJoin","rsNonAstralCombo","rsSymbol","Lazy_uniqBy","uniqBy","checkAndAdd","add","Lazy_uniq","uniqueBy","Lazy_entries","Lazy_append","append","toAsyncIterable","Lazy_concat","iterable1","iterable2","leftDone","leftIterator","rightIterator","isFlatAble","iteratorStack","currentIterator","Lazy_flat","originIterator","flattenIterator","fillItem","pullItem","resolveItem","catchItem","err","Lazy_flatMap","flatMap","flat","Lazy_range","esm_consume","items","Lazy_chunk","chunk","iterableIterator","consume","Lazy_drop","drop","esm_tap","tap","Lazy_peek","peek","_slice","isNumber","Lazy_slice","Lazy_toAsync","FxAsyncIterable","asyncIterable","to","converter","mapEffect","FxIterable","toAsync","toIterator","uniq","Lazy_intersectionBy","Lazy_intersection","intersection","intersectionBy","Lazy_keys","chr","Lazy_split","Lazy_values","_focused","_cleanup","_setup","focusManager","Subscribable","onSubscribe","_swc_helpers_class_private_field_get__WEBPACK_IMPORTED_MODULE_1__","cleanup","setEventListener","setup","onUnsubscribe","_this","hasListeners","focused","setFocused","onFocus","isFocused","listeners","listener","document","visibilityState","_swc_helpers_class_private_field_init__WEBPACK_IMPORTED_MODULE_3__","isServer","addEventListener","removeEventListener","notifyManager","createNotifyManager","transactions","notifyFn","callback","batchNotifyFn","scheduleFn","setTimeout","cb","schedule","flush","originalQueue","batch","batchCalls","setNotifyFunction","setBatchNotifyFunction","setScheduler","_online","onlineManager","setOnline","online","isOnline","onlineListener","onOnline","offlineListener","_initialState","_revertState","_cache","_retryer","_defaultOptions","_abortSignalConsumed","_dispatch","Query","Removable","meta","promise","_class_private_field_get1","retryer","setOptions","defaultOptions","updateGcTime","gcTime","optionalRemove","observers","state","fetchStatus","cache","remove","setData","newData","replaceData","_swc_helpers_class_private_method_get__WEBPACK_IMPORTED_MODULE_3__","dispatch","dataUpdatedAt","updatedAt","manual","setState","setStateOptions","cancel","_class_private_field_get2","noop","destroy","silent","reset","initialState","isActive","resolveEnabled","observer","enabled","isDisabled","getObserversCount","queryFn","skipToken","dataUpdateCount","errorUpdateCount","isStale","isInvalidated","getCurrentResult","isStaleByTime","staleTime","timeUntilStale","shouldFetchOnWindowFocus","refetch","cancelRefetch","continue","shouldFetchOnReconnect","addObserver","clearGcTimeout","notify","query","removeObserver","abortSignalConsumed","revert","cancelRetry","scheduleGc","invalidate","fetch","fetchOptions","_this_options_behavior","context","continueRetry","abortController","AbortController","addSignalProperty","signal","queryKey","fetchFn","ensureQueryFn","queryFnContext","persister","behavior","onFetch","revertState","fetchMeta","onError","isCancelledError","_class_private_field_get_config_onError","_class_private_field_get_config","_class_private_field_get_config_onSettled","_class_private_field_get_config1","config","onSettled","createRetryer","initialPromise","abort","onSuccess","_class_private_field_get_config_onSuccess","queryHash","onFail","failureCount","onPause","onContinue","retry","retryDelay","networkMode","canRun","_swc_helpers_class_private_method_init__WEBPACK_IMPORTED_MODULE_6__","_swc_helpers_class_private_field_init__WEBPACK_IMPORTED_MODULE_7__","getDefaultState","initialData","hasData","initialDataUpdatedAt","now","errorUpdatedAt","fetchFailureCount","fetchFailureReason","fetchState","canFetch","action","reducer","onQueryUpdate","_client","_currentQuery","_currentQueryInitialState","_currentResult","_currentResultState","_currentResultOptions","_currentThenable","_selectError","_selectFn","_selectResult","_lastQueryWithDefinedData","_staleTimeoutId","_refetchIntervalId","_currentRefetchInterval","_trackedProps","_executeFetch","_updateStaleTimeout","_computeRefetchInterval","_updateRefetchInterval","_updateTimers","_clearStaleTimeout","_clearRefetchInterval","_updateQuery","_notify","QueryObserver","bindMethods","currentQuery","shouldFetchOnMount","_swc_helpers_class_private_method_get__WEBPACK_IMPORTED_MODULE_2__","executeFetch","updateResult","updateTimers","shouldFetchOn","refetchOnReconnect","refetchOnWindowFocus","clearStaleTimeout","clearRefetchInterval","notifyOptions","prevOptions","prevQuery","client","defaultQueryOptions","updateQuery","_defaulted","shallowEqualObjects","getQueryCache","mounted","shouldFetchOptionally","resolveStaleTime","updateStaleTimeout","nextRefetchInterval","computeRefetchInterval","currentRefetchInterval","updateRefetchInterval","getOptimisticResult","build","createResult","currentResult","currentResultOptions","currentResultState","trackResult","onPropTracked","trackedResult","trackProp","trackedProps","getCurrentQuery","fetchOptimistic","defaultedOptions","prevResult","prevResultState","prevResultOptions","queryInitialState","queryChange","currentQueryInitialState","newState","isPlaceholderData","_optimisticResults","fetchOnMount","fetchOptionally","select","selectFn","selectResult","selectError","placeholderData","lastQueryWithDefinedData","isFetching","isPending","isError","isLoading","isSuccess","isInitialLoading","failureReason","isFetched","isFetchedAfterMount","isRefetching","isLoadingError","isPaused","isRefetchError","currentThenable","experimental_prefetchInRender","finalizeThenableIfPossible","nextResult","thenable","recreateThenable","pendingThenable","prevThenable","defaultNotifyOptions","shouldNotifyListeners","notifyOnChangeProps","notifyOnChangePropsValue","includedProps","throwOnError","changed","_swc_helpers_class_private_method_init__WEBPACK_IMPORTED_MODULE_7__","_swc_helpers_class_private_field_init__WEBPACK_IMPORTED_MODULE_8__","retryOnMount","refetchOnMount","field","suspense","isValidTimeout","time","staleTimeoutId","_ref","refetchInterval","nextInterval","refetchIntervalId","setInterval","refetchIntervalInBackground","clearTimeout","clearInterval","_gcTimeout","gcTimeout","newGcTime","_swc_helpers_class_private_field_get__WEBPACK_IMPORTED_MODULE_2__","defaultRetryDelay","CancelledError","continueFn","isRetryCancelled","isResolved","canContinue","canStart","pause","continueResolve","run","promiseOrValue","delay","shouldRetry","sleep","cancelOptions","subscribe","delete","_resolve","_reject","finalize","functionalUpdate","updater","matchQuery","filters","exact","predicate","stale","hashQueryKeyByOptions","partialMatchKey","matchMutation","mutation","mutationKey","hashKey","hashFn","queryKeyHashFn","replaceEqualDeep","isPlainArray","aItems","aSize","bItems","bSize","equalItems","hasObjectPrototype","ctor","prot","timeout","prevData","structuralSharing","keepPreviousData","previousData","addToEnd","newItems","addToStart","QueryClientContext","React","useQueryClient","queryClient","QueryClientProvider","children","mount","unmount","jsx","Provider","createValue","isReset","clearReset","QueryErrorResetBoundaryContext","useQueryErrorResetBoundary","QueryErrorResetBoundary","ensurePreventErrorBoundaryRetry","errorResetBoundary","useClearResetErrorBoundary","getHasError","shouldThrowError","IsRestoringContext","useIsRestoring","queryOptions","defaultThrowOnError","_error","ensureSuspenseTimers","willFetch","isRestoring","shouldSuspend","useBaseQuery","Observer","getDefaultOptions","queries","_experimental_beforeQuery","isNewCacheEntry","unsubscribe","onStoreChange","_experimental_afterQuery","finally","useQuery","throwError","params","setImmediateSupported","postMessageSupported","token","callbacks","thisArg","utils_toString","kindOf","thing","kindOfTest","typeOfTest","isArrayBuffer","isFunction","isObject","isDate","isFile","isBlob","isFileList","isURLSearchParams","isReadableStream","isRequest","isResponse","isHeaders","allOwnKeys","findKey","_global","self","global","isContextDefined","isTypedArray","isHTMLForm","utils_hasOwnProperty","reduceDescriptors","descriptors","getOwnPropertyDescriptors","reducedDescriptors","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","isAsyncFn","_setImmediate","setImmediate","postMessage","random","asap","queueMicrotask","process","nextTick","isFormData","FormData","isArrayBufferView","isBoolean","isStream","caseless","assignValue","targetKey","extend","stripBOM","content","inherits","superConstructor","props","toFlatObject","sourceObj","destObj","propFilter","merged","endsWith","searchString","position","lastIndex","forEachEntry","generator","pair","matchAll","regExp","matches","hasOwnProp","freezeMethods","toObjectSet","arrayOrString","toCamelCase","p1","p2","toFiniteNumber","defaultValue","generateString","isSpecCompliantForm","toJSONObject","visit","reducedValue","isThenable","AxiosError","request","response","captureStackTrace","description","fileName","lineNumber","columnNumber","AxiosError_prototype","customProps","axiosError","isVisitable","removeBrackets","renderKey","path","dots","predicates","helpers_toFormData","formData","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","_Blob","Blob","convertValue","el","exposedHelpers","charMap","AxiosURLSearchParams","_pairs","AxiosURLSearchParams_prototype","buildURL_encode","buildURL","url","serializedParams","_encode","serializeFn","serialize","hashmarkIndex","InterceptorManager","handlers","use","fulfilled","rejected","synchronous","runWhen","eject","id","clear","h","defaults_transitional","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","classes_URLSearchParams","URLSearchParams","classes_FormData","classes_Blob","hasBrowserEnv","_navigator","navigator","hasStandardBrowserEnv","product","hasStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","origin","location","href","platform","common_utils_namespaceObject","isBrowser","classes","protocols","helpers_formDataToJSON","buildPath","isNumericKey","isLast","transitional","adapter","transformRequest","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","toURLEncodedForm","formSerializer","helpers","isNode","_FormData","env","stringifySafely","rawValue","parser","transformResponse","JSONRequested","responseType","core_AxiosError","ERR_BAD_RESPONSE","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","method","ignoreDuplicateOf","parseHeaders","rawHeaders","line","substring","$internals","normalizeHeader","header","normalizeValue","isValidHeaderName","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","parseTokens","tokens","tokensRE","matcher","deleted","deleteHeader","normalize","normalized","w","char","targets","asStrings","computed","accessor","accessors","internals","defineAccessor","buildAccessors","accessorName","methodName","arg1","arg2","arg3","transformData","core_AxiosHeaders","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","settle","ERR_BAD_REQUEST","headerValue","helpers_speedometer","samplesCount","firstSampleTS","timestamps","tail","chunkLength","startedAt","bytesCount","passed","round","helpers_throttle","freq","lastArgs","timer","timestamp","threshold","invoke","progressEventReducer","isDownloadStream","bytesNotified","_speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","progressEventDecorator","throttled","asyncDecorator","isURLSameOrigin","originURL","msie","userAgent","urlParsingNode","createElement","resolveURL","setAttribute","protocol","host","search","hash","hostname","port","pathname","requestURL","cookies","expires","domain","secure","cookie","toGMTString","buildFullPath","baseURL","requestedURL","relativeURL","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","paramsSerializer","timeoutMessage","withCredentials","withXSRFToken","onUploadProgress","onDownloadProgress","decompress","beforeRedirect","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding","configValue","resolveConfig","newConfig","auth","btoa","username","password","xsrfValue","xhr","isXHRAdapterSupported","XMLHttpRequest","onCanceled","uploadThrottled","downloadThrottled","flushUpload","flushDownload","_config","requestData","requestHeaders","onloadend","responseHeaders","getAllResponseHeaders","responseText","statusText","open","onreadystatechange","readyState","responseURL","onabort","ECONNABORTED","onerror","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","setRequestHeader","upload","aborted","parseProtocol","send","helpers_composeSignals","signals","controller","streamChunk","chunkSize","readBytes","readStream","stream","reader","getReader","trackStream","onProgress","onFinish","_onFinish","ReadableStream","pull","close","loadedBytes","enqueue","return","highWaterMark","isFetchSupported","Request","Response","isReadableStreamSupported","encodeText","TextEncoder","arrayBuffer","supportsRequestStream","duplexAccessed","hasContentType","body","duplex","supportsResponseStream","resolvers","ERR_NOT_SUPPORT","getBodyLength","_request","resolveBodyLength","getContentLength","knownAdapters","http","requestContentLength","composedSignal","toAbortSignal","contentTypeHeader","isCredentialsSupported","credentials","isStreamResponse","responseContentLength","responseData","renderReason","isResolvedHandle","nameOrAdapter","adapters","rejectedReasons","reasons","throwIfCancellationRequested","throwIfRequested","dispatchRequest","lib_defaults","VERSION","validators","deprecatedWarnings","validator","version","formatMessage","opt","ERR_DEPRECATED","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios_validators","Axios","instanceConfig","interceptors","configOrUrl","dummy","boolean","function","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","CancelToken","executor","resolvePromise","_listeners","onfulfilled","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","axios","createInstance","defaultConfig","instance","core_Axios","toFormData","Cancel","all","promises","spread","isAxiosError","payload","formToJSON","getAdapter","default","lib_axios","_class_private_method_get","receiver","privateSet","_class_private_method_init","_check_private_redeclaration_js__WEBPACK_IMPORTED_MODULE_0__","toThenable","_onRejected","_onFulfilled","oldImpl","baseOptions","api","storage","stateFromStorage","getStorage","localStorage","deserialize","partialize","persistedState","currentState","hasHydrated","hydrationListeners","finishHydrationListeners","_e","thenableSerialize","setItem","errorInSync","serializedValue","savedSetState","configResult","hydrate","_a","postRehydrationCallback","onRehydrateStorage","getItem","storageValue","deserializedStorageValue","migrate","_a2","migratedState","persist","newOptions","clearStorage","removeItem","getOptions","rehydrate","onHydrate","onFinishHydration","newImpl","createJSONStorage","str2","newValue","getInitialState","_b","migrated","migrationResult","skipHydration"],"sourceRoot":""}