tty-table 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["stub:stub","../../node_modules/ansi-regex/index.js","../../node_modules/strip-ansi/index.js","../../node_modules/clone/clone.js","../../node_modules/defaults/index.js","../../node_modules/wcwidth/combining.js","../../node_modules/wcwidth/index.js","../../node_modules/breakword/src/main.js","../../node_modules/object-keys/isArguments.js","../../node_modules/object-keys/implementation.js","../../node_modules/object-keys/index.js","../../node_modules/es-define-property/index.js","../../node_modules/es-errors/syntax.js","../../node_modules/es-errors/type.js","../../node_modules/gopd/gOPD.js","../../node_modules/gopd/index.js","../../node_modules/define-data-property/index.js","../../node_modules/has-property-descriptors/index.js","../../node_modules/define-properties/index.js","../../node_modules/es-object-atoms/index.js","../../node_modules/es-errors/index.js","../../node_modules/es-errors/eval.js","../../node_modules/es-errors/range.js","../../node_modules/es-errors/ref.js","../../node_modules/es-errors/uri.js","../../node_modules/math-intrinsics/abs.js","../../node_modules/math-intrinsics/floor.js","../../node_modules/math-intrinsics/max.js","../../node_modules/math-intrinsics/min.js","../../node_modules/math-intrinsics/pow.js","../../node_modules/math-intrinsics/round.js","../../node_modules/math-intrinsics/isNaN.js","../../node_modules/math-intrinsics/sign.js","../../node_modules/has-symbols/shams.js","../../node_modules/has-symbols/index.js","../../node_modules/get-proto/Reflect.getPrototypeOf.js","../../node_modules/get-proto/Object.getPrototypeOf.js","../../node_modules/function-bind/implementation.js","../../node_modules/function-bind/index.js","../../node_modules/call-bind-apply-helpers/functionCall.js","../../node_modules/call-bind-apply-helpers/functionApply.js","../../node_modules/call-bind-apply-helpers/reflectApply.js","../../node_modules/call-bind-apply-helpers/actualApply.js","../../node_modules/call-bind-apply-helpers/index.js","../../node_modules/dunder-proto/get.js","../../node_modules/get-proto/index.js","../../node_modules/hasown/index.js","../../node_modules/get-intrinsic/index.js","../../node_modules/set-function-length/index.js","../../node_modules/call-bind-apply-helpers/applyBind.js","../../node_modules/call-bind/index.js","../../node_modules/math-intrinsics/isFinite.js","../../node_modules/math-intrinsics/isInteger.js","../../node_modules/es-object-atoms/isObject.js","../../node_modules/math-intrinsics/constants/maxArrayLength.js","../../node_modules/set-proto/Reflect.setPrototypeOf.js","../../node_modules/set-proto/Object.setPrototypeOf.js","../../node_modules/dunder-proto/set.js","../../node_modules/set-proto/index.js","../../node_modules/es-abstract/2024/ArrayCreate.js","../../node_modules/es-abstract/helpers/isPropertyKey.js","../../node_modules/es-abstract/2024/Get.js","../../node_modules/call-bound/index.js","../../node_modules/es-abstract/helpers/IsArray.js","../../node_modules/es-abstract/2024/IsArray.js","../../node_modules/es-abstract/GetIntrinsic.js","../../node_modules/es-abstract/helpers/records/property-descriptor.js","../../node_modules/es-abstract/helpers/DefineOwnProperty.js","../../node_modules/es-abstract/helpers/fromPropertyDescriptor.js","../../node_modules/es-abstract/2024/FromPropertyDescriptor.js","../../node_modules/es-abstract/2024/IsDataDescriptor.js","../../node_modules/es-abstract/2024/SameValue.js","../../node_modules/is-callable/index.js","../../node_modules/es-abstract/2024/IsCallable.js","../../node_modules/es-abstract/2024/ToBoolean.js","../../node_modules/es-abstract/2024/ToPropertyDescriptor.js","../../node_modules/es-abstract/2024/DefinePropertyOrThrow.js","../../node_modules/es-abstract/2024/IsConstructor.js","../../node_modules/es-abstract/2024/ArraySpeciesCreate.js","../../node_modules/math-intrinsics/constants/maxSafeInteger.js","../../node_modules/es-abstract/2024/Call.js","../../node_modules/es-abstract/2024/IsAccessorDescriptor.js","../../node_modules/es-abstract/helpers/isPrimitive.js","../../node_modules/es-abstract/2024/IsExtensible.js","../../node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js","../../node_modules/es-abstract/2024/IsGenericDescriptor.js","../../node_modules/es-abstract/2024/ValidateAndApplyPropertyDescriptor.js","../../node_modules/es-abstract/2024/OrdinaryDefineOwnProperty.js","../../node_modules/es-abstract/2024/CreateDataProperty.js","../../node_modules/es-abstract/2024/CreateDataPropertyOrThrow.js","../../node_modules/es-abstract/2024/HasProperty.js","../../node_modules/has-tostringtag/shams.js","../../node_modules/is-date-object/index.js","../../node_modules/is-regex/index.js","../../node_modules/safe-regex-test/index.js","../../node_modules/is-symbol/index.js","../../node_modules/es-to-primitive/helpers/isPrimitive.js","../../node_modules/es-abstract-get/isPropertyKey.js","../../node_modules/es-abstract-get/GetV.js","../../node_modules/es-abstract-get/GetMethod.js","../../node_modules/es-to-primitive/es2015.js","../../node_modules/es-abstract/2024/ToPrimitive.js","../../node_modules/es-object-atoms/RequireObjectCoercible.js","../../node_modules/es-abstract/2025/ToString.js","../../node_modules/string.prototype.trim/implementation.js","../../node_modules/string.prototype.trim/polyfill.js","../../node_modules/string.prototype.trim/shim.js","../../node_modules/string.prototype.trim/index.js","../../node_modules/es-abstract/2024/StringToNumber.js","../../node_modules/es-abstract/2024/ToNumber.js","../../node_modules/es-abstract/2024/floor.js","../../node_modules/es-abstract/2024/truncate.js","../../node_modules/es-abstract/2024/ToIntegerOrInfinity.js","../../node_modules/es-abstract/2024/ToLength.js","../../node_modules/es-abstract/2024/LengthOfArrayLike.js","../../node_modules/es-abstract/2024/ToString.js","../../node_modules/es-abstract/2024/FlattenIntoArray.js","../../node_modules/es-object-atoms/ToObject.js","../../node_modules/es-abstract/2024/ToObject.js","../../node_modules/array.prototype.flat/implementation.js","../../node_modules/array.prototype.flat/polyfill.js","../../node_modules/es-shim-unscopables/index.js","../../node_modules/array.prototype.flat/shim.js","../../node_modules/array.prototype.flat/index.js","../../node_modules/smartwrap/src/main.js","../../src/browser.ts","../../src/defaults.ts","../../src/style.ts","../../node_modules/kleur/index.mjs","../../src/format.ts","../../src/render.ts","../../src/factory.ts","../../src/index.ts"],"sourcesContent":["module.exports = {}","'use strict';\n\nmodule.exports = ({onlyFirst = false} = {}) => {\n\tconst pattern = [\n\t\t'[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)',\n\t\t'(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))'\n\t].join('|');\n\n\treturn new RegExp(pattern, onlyFirst ? undefined : 'g');\n};\n","'use strict';\nconst ansiRegex = require('ansi-regex');\n\nmodule.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;\n","var clone = (function() {\n'use strict';\n\n/**\n * Clones (copies) an Object using deep copying.\n *\n * This function supports circular references by default, but if you are certain\n * there are no circular references in your object, you can save some CPU time\n * by calling clone(obj, false).\n *\n * Caution: if `circular` is false and `parent` contains circular references,\n * your program may enter an infinite loop and crash.\n *\n * @param `parent` - the object to be cloned\n * @param `circular` - set to true if the object to be cloned may contain\n * circular references. (optional - true by default)\n * @param `depth` - set to a number if the object is only to be cloned to\n * a particular depth. (optional - defaults to Infinity)\n * @param `prototype` - sets the prototype to be used when cloning an object.\n * (optional - defaults to parent prototype).\n*/\nfunction clone(parent, circular, depth, prototype) {\n var filter;\n if (typeof circular === 'object') {\n depth = circular.depth;\n prototype = circular.prototype;\n filter = circular.filter;\n circular = circular.circular\n }\n // maintain two arrays for circular references, where corresponding parents\n // and children have the same index\n var allParents = [];\n var allChildren = [];\n\n var useBuffer = typeof Buffer != 'undefined';\n\n if (typeof circular == 'undefined')\n circular = true;\n\n if (typeof depth == 'undefined')\n depth = Infinity;\n\n // recurse this function so we don't reset allParents and allChildren\n function _clone(parent, depth) {\n // cloning null always returns null\n if (parent === null)\n return null;\n\n if (depth == 0)\n return parent;\n\n var child;\n var proto;\n if (typeof parent != 'object') {\n return parent;\n }\n\n if (clone.__isArray(parent)) {\n child = [];\n } else if (clone.__isRegExp(parent)) {\n child = new RegExp(parent.source, __getRegExpFlags(parent));\n if (parent.lastIndex) child.lastIndex = parent.lastIndex;\n } else if (clone.__isDate(parent)) {\n child = new Date(parent.getTime());\n } else if (useBuffer && Buffer.isBuffer(parent)) {\n if (Buffer.allocUnsafe) {\n // Node.js >= 4.5.0\n child = Buffer.allocUnsafe(parent.length);\n } else {\n // Older Node.js versions\n child = new Buffer(parent.length);\n }\n parent.copy(child);\n return child;\n } else {\n if (typeof prototype == 'undefined') {\n proto = Object.getPrototypeOf(parent);\n child = Object.create(proto);\n }\n else {\n child = Object.create(prototype);\n proto = prototype;\n }\n }\n\n if (circular) {\n var index = allParents.indexOf(parent);\n\n if (index != -1) {\n return allChildren[index];\n }\n allParents.push(parent);\n allChildren.push(child);\n }\n\n for (var i in parent) {\n var attrs;\n if (proto) {\n attrs = Object.getOwnPropertyDescriptor(proto, i);\n }\n\n if (attrs && attrs.set == null) {\n continue;\n }\n child[i] = _clone(parent[i], depth - 1);\n }\n\n return child;\n }\n\n return _clone(parent, depth);\n}\n\n/**\n * Simple flat clone using prototype, accepts only objects, usefull for property\n * override on FLAT configuration object (no nested props).\n *\n * USE WITH CAUTION! This may not behave as you wish if you do not know how this\n * works.\n */\nclone.clonePrototype = function clonePrototype(parent) {\n if (parent === null)\n return null;\n\n var c = function () {};\n c.prototype = parent;\n return new c();\n};\n\n// private utility functions\n\nfunction __objToStr(o) {\n return Object.prototype.toString.call(o);\n};\nclone.__objToStr = __objToStr;\n\nfunction __isDate(o) {\n return typeof o === 'object' && __objToStr(o) === '[object Date]';\n};\nclone.__isDate = __isDate;\n\nfunction __isArray(o) {\n return typeof o === 'object' && __objToStr(o) === '[object Array]';\n};\nclone.__isArray = __isArray;\n\nfunction __isRegExp(o) {\n return typeof o === 'object' && __objToStr(o) === '[object RegExp]';\n};\nclone.__isRegExp = __isRegExp;\n\nfunction __getRegExpFlags(re) {\n var flags = '';\n if (re.global) flags += 'g';\n if (re.ignoreCase) flags += 'i';\n if (re.multiline) flags += 'm';\n return flags;\n};\nclone.__getRegExpFlags = __getRegExpFlags;\n\nreturn clone;\n})();\n\nif (typeof module === 'object' && module.exports) {\n module.exports = clone;\n}\n","var clone = require('clone');\n\nmodule.exports = function(options, defaults) {\n options = options || {};\n\n Object.keys(defaults).forEach(function(key) {\n if (typeof options[key] === 'undefined') {\n options[key] = clone(defaults[key]);\n }\n });\n\n return options;\n};","module.exports = [\n [ 0x0300, 0x036F ], [ 0x0483, 0x0486 ], [ 0x0488, 0x0489 ],\n [ 0x0591, 0x05BD ], [ 0x05BF, 0x05BF ], [ 0x05C1, 0x05C2 ],\n [ 0x05C4, 0x05C5 ], [ 0x05C7, 0x05C7 ], [ 0x0600, 0x0603 ],\n [ 0x0610, 0x0615 ], [ 0x064B, 0x065E ], [ 0x0670, 0x0670 ],\n [ 0x06D6, 0x06E4 ], [ 0x06E7, 0x06E8 ], [ 0x06EA, 0x06ED ],\n [ 0x070F, 0x070F ], [ 0x0711, 0x0711 ], [ 0x0730, 0x074A ],\n [ 0x07A6, 0x07B0 ], [ 0x07EB, 0x07F3 ], [ 0x0901, 0x0902 ],\n [ 0x093C, 0x093C ], [ 0x0941, 0x0948 ], [ 0x094D, 0x094D ],\n [ 0x0951, 0x0954 ], [ 0x0962, 0x0963 ], [ 0x0981, 0x0981 ],\n [ 0x09BC, 0x09BC ], [ 0x09C1, 0x09C4 ], [ 0x09CD, 0x09CD ],\n [ 0x09E2, 0x09E3 ], [ 0x0A01, 0x0A02 ], [ 0x0A3C, 0x0A3C ],\n [ 0x0A41, 0x0A42 ], [ 0x0A47, 0x0A48 ], [ 0x0A4B, 0x0A4D ],\n [ 0x0A70, 0x0A71 ], [ 0x0A81, 0x0A82 ], [ 0x0ABC, 0x0ABC ],\n [ 0x0AC1, 0x0AC5 ], [ 0x0AC7, 0x0AC8 ], [ 0x0ACD, 0x0ACD ],\n [ 0x0AE2, 0x0AE3 ], [ 0x0B01, 0x0B01 ], [ 0x0B3C, 0x0B3C ],\n [ 0x0B3F, 0x0B3F ], [ 0x0B41, 0x0B43 ], [ 0x0B4D, 0x0B4D ],\n [ 0x0B56, 0x0B56 ], [ 0x0B82, 0x0B82 ], [ 0x0BC0, 0x0BC0 ],\n [ 0x0BCD, 0x0BCD ], [ 0x0C3E, 0x0C40 ], [ 0x0C46, 0x0C48 ],\n [ 0x0C4A, 0x0C4D ], [ 0x0C55, 0x0C56 ], [ 0x0CBC, 0x0CBC ],\n [ 0x0CBF, 0x0CBF ], [ 0x0CC6, 0x0CC6 ], [ 0x0CCC, 0x0CCD ],\n [ 0x0CE2, 0x0CE3 ], [ 0x0D41, 0x0D43 ], [ 0x0D4D, 0x0D4D ],\n [ 0x0DCA, 0x0DCA ], [ 0x0DD2, 0x0DD4 ], [ 0x0DD6, 0x0DD6 ],\n [ 0x0E31, 0x0E31 ], [ 0x0E34, 0x0E3A ], [ 0x0E47, 0x0E4E ],\n [ 0x0EB1, 0x0EB1 ], [ 0x0EB4, 0x0EB9 ], [ 0x0EBB, 0x0EBC ],\n [ 0x0EC8, 0x0ECD ], [ 0x0F18, 0x0F19 ], [ 0x0F35, 0x0F35 ],\n [ 0x0F37, 0x0F37 ], [ 0x0F39, 0x0F39 ], [ 0x0F71, 0x0F7E ],\n [ 0x0F80, 0x0F84 ], [ 0x0F86, 0x0F87 ], [ 0x0F90, 0x0F97 ],\n [ 0x0F99, 0x0FBC ], [ 0x0FC6, 0x0FC6 ], [ 0x102D, 0x1030 ],\n [ 0x1032, 0x1032 ], [ 0x1036, 0x1037 ], [ 0x1039, 0x1039 ],\n [ 0x1058, 0x1059 ], [ 0x1160, 0x11FF ], [ 0x135F, 0x135F ],\n [ 0x1712, 0x1714 ], [ 0x1732, 0x1734 ], [ 0x1752, 0x1753 ],\n [ 0x1772, 0x1773 ], [ 0x17B4, 0x17B5 ], [ 0x17B7, 0x17BD ],\n [ 0x17C6, 0x17C6 ], [ 0x17C9, 0x17D3 ], [ 0x17DD, 0x17DD ],\n [ 0x180B, 0x180D ], [ 0x18A9, 0x18A9 ], [ 0x1920, 0x1922 ],\n [ 0x1927, 0x1928 ], [ 0x1932, 0x1932 ], [ 0x1939, 0x193B ],\n [ 0x1A17, 0x1A18 ], [ 0x1B00, 0x1B03 ], [ 0x1B34, 0x1B34 ],\n [ 0x1B36, 0x1B3A ], [ 0x1B3C, 0x1B3C ], [ 0x1B42, 0x1B42 ],\n [ 0x1B6B, 0x1B73 ], [ 0x1DC0, 0x1DCA ], [ 0x1DFE, 0x1DFF ],\n [ 0x200B, 0x200F ], [ 0x202A, 0x202E ], [ 0x2060, 0x2063 ],\n [ 0x206A, 0x206F ], [ 0x20D0, 0x20EF ], [ 0x302A, 0x302F ],\n [ 0x3099, 0x309A ], [ 0xA806, 0xA806 ], [ 0xA80B, 0xA80B ],\n [ 0xA825, 0xA826 ], [ 0xFB1E, 0xFB1E ], [ 0xFE00, 0xFE0F ],\n [ 0xFE20, 0xFE23 ], [ 0xFEFF, 0xFEFF ], [ 0xFFF9, 0xFFFB ],\n [ 0x10A01, 0x10A03 ], [ 0x10A05, 0x10A06 ], [ 0x10A0C, 0x10A0F ],\n [ 0x10A38, 0x10A3A ], [ 0x10A3F, 0x10A3F ], [ 0x1D167, 0x1D169 ],\n [ 0x1D173, 0x1D182 ], [ 0x1D185, 0x1D18B ], [ 0x1D1AA, 0x1D1AD ],\n [ 0x1D242, 0x1D244 ], [ 0xE0001, 0xE0001 ], [ 0xE0020, 0xE007F ],\n [ 0xE0100, 0xE01EF ]\n]\n","\"use strict\"\n\nvar defaults = require('defaults')\nvar combining = require('./combining')\n\nvar DEFAULTS = {\n nul: 0,\n control: 0\n}\n\nmodule.exports = function wcwidth(str) {\n return wcswidth(str, DEFAULTS)\n}\n\nmodule.exports.config = function(opts) {\n opts = defaults(opts || {}, DEFAULTS)\n return function wcwidth(str) {\n return wcswidth(str, opts)\n }\n}\n\n/*\n * The following functions define the column width of an ISO 10646\n * character as follows:\n * - The null character (U+0000) has a column width of 0.\n * - Other C0/C1 control characters and DEL will lead to a return value\n * of -1.\n * - Non-spacing and enclosing combining characters (general category\n * code Mn or Me in the\n * Unicode database) have a column width of 0.\n * - SOFT HYPHEN (U+00AD) has a column width of 1.\n * - Other format characters (general category code Cf in the Unicode\n * database) and ZERO WIDTH\n * SPACE (U+200B) have a column width of 0.\n * - Hangul Jamo medial vowels and final consonants (U+1160-U+11FF)\n * have a column width of 0.\n * - Spacing characters in the East Asian Wide (W) or East Asian\n * Full-width (F) category as\n * defined in Unicode Technical Report #11 have a column width of 2.\n * - All remaining characters (including all printable ISO 8859-1 and\n * WGL4 characters, Unicode control characters, etc.) have a column\n * width of 1.\n * This implementation assumes that characters are encoded in ISO 10646.\n*/\n\nfunction wcswidth(str, opts) {\n if (typeof str !== 'string') return wcwidth(str, opts)\n\n var s = 0\n for (var i = 0; i < str.length; i++) {\n var n = wcwidth(str.charCodeAt(i), opts)\n if (n < 0) return -1\n s += n\n }\n\n return s\n}\n\nfunction wcwidth(ucs, opts) {\n // test for 8-bit control characters\n if (ucs === 0) return opts.nul\n if (ucs < 32 || (ucs >= 0x7f && ucs < 0xa0)) return opts.control\n\n // binary search in table of non-spacing characters\n if (bisearch(ucs)) return 0\n\n // if we arrive here, ucs is not a combining or C0/C1 control character\n return 1 +\n (ucs >= 0x1100 &&\n (ucs <= 0x115f || // Hangul Jamo init. consonants\n ucs == 0x2329 || ucs == 0x232a ||\n (ucs >= 0x2e80 && ucs <= 0xa4cf &&\n ucs != 0x303f) || // CJK ... Yi\n (ucs >= 0xac00 && ucs <= 0xd7a3) || // Hangul Syllables\n (ucs >= 0xf900 && ucs <= 0xfaff) || // CJK Compatibility Ideographs\n (ucs >= 0xfe10 && ucs <= 0xfe19) || // Vertical forms\n (ucs >= 0xfe30 && ucs <= 0xfe6f) || // CJK Compatibility Forms\n (ucs >= 0xff00 && ucs <= 0xff60) || // Fullwidth Forms\n (ucs >= 0xffe0 && ucs <= 0xffe6) ||\n (ucs >= 0x20000 && ucs <= 0x2fffd) ||\n (ucs >= 0x30000 && ucs <= 0x3fffd)));\n}\n\nfunction bisearch(ucs) {\n var min = 0\n var max = combining.length - 1\n var mid\n\n if (ucs < combining[0][0] || ucs > combining[max][1]) return false\n\n while (max >= min) {\n mid = Math.floor((min + max) / 2)\n if (ucs > combining[mid][1]) min = mid + 1\n else if (ucs < combining[mid][0]) max = mid - 1\n else return true\n }\n\n return false\n}\n","const wcwidth = require(\"wcwidth\")\n\nmodule.exports = function(input, breakAtLength) {\n\n let str = input.toString()\n const charArr = [...str]\n let index = 0\n let indexOfLastFitChar = 0\n let fittableLength = 0\n\n while(charArr.length > 0) {\n\n const char = charArr.shift()\n const currentLength = fittableLength + wcwidth(char)\n\n if(currentLength <= breakAtLength) {\n indexOfLastFitChar = index\n fittableLength = currentLength\n index++\n } else {\n break\n }\n\n }\n\n //break after this character\n return indexOfLastFitChar\n}\n","'use strict';\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n","'use strict';\n\nvar keysShim;\nif (!Object.keys) {\n\t// modified from https://github.com/es-shims/es5-shim\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar toStr = Object.prototype.toString;\n\tvar isArgs = require('./isArguments'); // eslint-disable-line global-require\n\tvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\tvar hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');\n\tvar hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');\n\tvar dontEnums = [\n\t\t'toString',\n\t\t'toLocaleString',\n\t\t'valueOf',\n\t\t'hasOwnProperty',\n\t\t'isPrototypeOf',\n\t\t'propertyIsEnumerable',\n\t\t'constructor'\n\t];\n\tvar equalsConstructorPrototype = function (o) {\n\t\tvar ctor = o.constructor;\n\t\treturn ctor && ctor.prototype === o;\n\t};\n\tvar excludedKeys = {\n\t\t$applicationCache: true,\n\t\t$console: true,\n\t\t$external: true,\n\t\t$frame: true,\n\t\t$frameElement: true,\n\t\t$frames: true,\n\t\t$innerHeight: true,\n\t\t$innerWidth: true,\n\t\t$onmozfullscreenchange: true,\n\t\t$onmozfullscreenerror: true,\n\t\t$outerHeight: true,\n\t\t$outerWidth: true,\n\t\t$pageXOffset: true,\n\t\t$pageYOffset: true,\n\t\t$parent: true,\n\t\t$scrollLeft: true,\n\t\t$scrollTop: true,\n\t\t$scrollX: true,\n\t\t$scrollY: true,\n\t\t$self: true,\n\t\t$webkitIndexedDB: true,\n\t\t$webkitStorageInfo: true,\n\t\t$window: true\n\t};\n\tvar hasAutomationEqualityBug = (function () {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined') { return false; }\n\t\tfor (var k in window) {\n\t\t\ttry {\n\t\t\t\tif (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tequalsConstructorPrototype(window[k]);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}());\n\tvar equalsConstructorPrototypeIfNotBuggy = function (o) {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined' || !hasAutomationEqualityBug) {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t}\n\t\ttry {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\tkeysShim = function keys(object) {\n\t\tvar isObject = object !== null && typeof object === 'object';\n\t\tvar isFunction = toStr.call(object) === '[object Function]';\n\t\tvar isArguments = isArgs(object);\n\t\tvar isString = isObject && toStr.call(object) === '[object String]';\n\t\tvar theKeys = [];\n\n\t\tif (!isObject && !isFunction && !isArguments) {\n\t\t\tthrow new TypeError('Object.keys called on a non-object');\n\t\t}\n\n\t\tvar skipProto = hasProtoEnumBug && isFunction;\n\t\tif (isString && object.length > 0 && !has.call(object, 0)) {\n\t\t\tfor (var i = 0; i < object.length; ++i) {\n\t\t\t\ttheKeys.push(String(i));\n\t\t\t}\n\t\t}\n\n\t\tif (isArguments && object.length > 0) {\n\t\t\tfor (var j = 0; j < object.length; ++j) {\n\t\t\t\ttheKeys.push(String(j));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var name in object) {\n\t\t\t\tif (!(skipProto && name === 'prototype') && has.call(object, name)) {\n\t\t\t\t\ttheKeys.push(String(name));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hasDontEnumBug) {\n\t\t\tvar skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);\n\n\t\t\tfor (var k = 0; k < dontEnums.length; ++k) {\n\t\t\t\tif (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {\n\t\t\t\t\ttheKeys.push(dontEnums[k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theKeys;\n\t};\n}\nmodule.exports = keysShim;\n","'use strict';\n\nvar slice = Array.prototype.slice;\nvar isArgs = require('./isArguments');\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation');\n\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\tvar args = Object.keys(arguments);\n\t\t\treturn args && args.length === arguments.length;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t}\n\t\t\t\treturn originalKeys(object);\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n","'use strict';\n\n/** @type {import('.')} */\nvar $defineProperty = Object.defineProperty || 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('./syntax')} */\nmodule.exports = SyntaxError;\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\n\n/** @type {import('./gOPD')} */\nmodule.exports = Object.getOwnPropertyDescriptor;\n","'use strict';\n\n/** @type {import('.')} */\nvar $gOPD = require('./gOPD');\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 $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<unknown>} */\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 $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 keys = require('object-keys');\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';\n\nvar toStr = Object.prototype.toString;\nvar concat = Array.prototype.concat;\nvar defineDataProperty = require('define-data-property');\n\nvar isFunction = function (fn) {\n\treturn typeof fn === 'function' && toStr.call(fn) === '[object Function]';\n};\n\nvar supportsDescriptors = require('has-property-descriptors')();\n\nvar defineProperty = function (object, name, value, predicate) {\n\tif (name in object) {\n\t\tif (predicate === true) {\n\t\t\tif (object[name] === value) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (!isFunction(predicate) || !predicate()) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (supportsDescriptors) {\n\t\tdefineDataProperty(object, name, value, true);\n\t} else {\n\t\tdefineDataProperty(object, name, value);\n\t}\n};\n\nvar defineProperties = function (object, map) {\n\tvar predicates = arguments.length > 2 ? arguments[2] : {};\n\tvar props = keys(map);\n\tif (hasSymbols) {\n\t\tprops = concat.call(props, Object.getOwnPropertySymbols(map));\n\t}\n\tfor (var i = 0; i < props.length; i += 1) {\n\t\tdefineProperty(object, props[i], map[props[i]], predicates[props[i]]);\n\t}\n};\n\ndefineProperties.supportsDescriptors = !!supportsDescriptors;\n\nmodule.exports = defineProperties;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Object;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n","'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\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('./uri')} */\nmodule.exports = URIError;\n","'use strict';\n\n/** @type {import('./abs')} */\nmodule.exports = Math.abs;\n","'use strict';\n\n/** @type {import('./floor')} */\nmodule.exports = Math.floor;\n","'use strict';\n\n/** @type {import('./max')} */\nmodule.exports = Math.max;\n","'use strict';\n\n/** @type {import('./min')} */\nmodule.exports = Math.min;\n","'use strict';\n\n/** @type {import('./pow')} */\nmodule.exports = Math.pow;\n","'use strict';\n\n/** @type {import('./round')} */\nmodule.exports = Math.round;\n","'use strict';\n\n/** @type {import('./isNaN')} */\nmodule.exports = Number.isNaN || function isNaN(a) {\n\treturn a !== a;\n};\n","'use strict';\n\nvar $isNaN = require('./isNaN');\n\n/** @type {import('./sign')} */\nmodule.exports = function sign(number) {\n\tif ($isNaN(number) || number === 0) {\n\t\treturn number;\n\t}\n\treturn number < 0 ? -1 : +1;\n};\n","'use strict';\n\n/** @type {import('./shams')} */\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\t/** @type {{ [k in symbol]?: unknown }} */\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 (var _ 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\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {PropertyDescriptor} */ (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 origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\n/** @type {import('.')} */\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/** @type {import('./Reflect.getPrototypeOf')} */\nmodule.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;\n","'use strict';\n\nvar $Object = require('es-object-atoms');\n\n/** @type {import('./Object.getPrototypeOf')} */\nmodule.exports = $Object.getPrototypeOf || null;\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\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n","'use strict';\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n","'use strict';\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;\n","'use strict';\n\nvar bind = require('function-bind');\n\nvar $apply = require('./functionApply');\nvar $call = require('./functionCall');\nvar $reflectApply = require('./reflectApply');\n\n/** @type {import('./actualApply')} */\nmodule.exports = $reflectApply || bind.call($call, $apply);\n","'use strict';\n\nvar bind = require('function-bind');\nvar $TypeError = require('es-errors/type');\n\nvar $call = require('./functionCall');\nvar $actualApply = require('./actualApply');\n\n/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */\nmodule.exports = function callBindBasic(args) {\n\tif (args.length < 1 || typeof args[0] !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\treturn $actualApply(bind, $call, args);\n};\n","'use strict';\n\nvar callBind = require('call-bind-apply-helpers');\nvar gOPD = require('gopd');\n\nvar hasProtoAccessor;\ntry {\n\t// eslint-disable-next-line no-extra-parens, no-proto\n\thasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\n// eslint-disable-next-line no-extra-parens\nvar desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\nvar $Object = Object;\nvar $getPrototypeOf = $Object.getPrototypeOf;\n\n/** @type {import('./get')} */\nmodule.exports = desc && typeof desc.get === 'function'\n\t? callBind([desc.get])\n\t: typeof $getPrototypeOf === 'function'\n\t\t? /** @type {import('./get')} */ function getDunder(value) {\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\treturn $getPrototypeOf(value == null ? value : $Object(value));\n\t\t}\n\t\t: false;\n","'use strict';\n\nvar reflectGetProto = require('./Reflect.getPrototypeOf');\nvar originalGetProto = require('./Object.getPrototypeOf');\n\nvar getDunderProto = require('dunder-proto/get');\n\n/** @type {import('.')} */\nmodule.exports = reflectGetProto\n\t? function getProto(O) {\n\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\treturn reflectGetProto(O);\n\t}\n\t: originalGetProto\n\t\t? function getProto(O) {\n\t\t\tif (!O || (typeof O !== 'object' && typeof O !== 'function')) {\n\t\t\t\tthrow new TypeError('getProto: not an object');\n\t\t\t}\n\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\treturn originalGetProto(O);\n\t\t}\n\t\t: getDunderProto\n\t\t\t? function getProto(O) {\n\t\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\t\treturn getDunderProto(O);\n\t\t\t}\n\t\t\t: null;\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","'use strict';\n\nvar undefined;\n\nvar $Object = require('es-object-atoms');\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 abs = require('math-intrinsics/abs');\nvar floor = require('math-intrinsics/floor');\nvar max = require('math-intrinsics/max');\nvar min = require('math-intrinsics/min');\nvar pow = require('math-intrinsics/pow');\nvar round = require('math-intrinsics/round');\nvar sign = require('math-intrinsics/sign');\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 = require('gopd');\nvar $defineProperty = require('es-define-property');\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')();\n\nvar getProto = require('get-proto');\nvar $ObjectGPO = require('get-proto/Object.getPrototypeOf');\nvar $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');\n\nvar $apply = require('call-bind-apply-helpers/functionApply');\nvar $call = require('call-bind-apply-helpers/functionCall');\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'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,\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'%Object.getOwnPropertyDescriptor%': $gOPD,\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\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\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($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($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');\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<define>[0]} */ (fn), 'length', length, true, true);\n\t\t} else {\n\t\t\tdefine(/** @type {Parameters<define>[0]} */ (fn), 'length', length);\n\t\t}\n\t}\n\treturn fn;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar $apply = require('./functionApply');\nvar actualApply = require('./actualApply');\n\n/** @type {import('./applyBind')} */\nmodule.exports = function applyBind() {\n\treturn actualApply(bind, $apply, arguments);\n};\n","'use strict';\n\nvar setFunctionLength = require('set-function-length');\n\nvar $defineProperty = require('es-define-property');\n\nvar callBindBasic = require('call-bind-apply-helpers');\nvar applyBind = require('call-bind-apply-helpers/applyBind');\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = callBindBasic(arguments);\n\tvar adjustedLength = 1 + originalFunction.length - (arguments.length - 1);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\tadjustedLength > 0 ? adjustedLength : 0,\n\t\ttrue\n\t);\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 $isNaN = require('./isNaN');\n\n/** @type {import('./isFinite')} */\nmodule.exports = function isFinite(x) {\n\treturn (typeof x === 'number' || typeof x === 'bigint')\n && !$isNaN(x)\n && x !== Infinity\n && x !== -Infinity;\n};\n\n","'use strict';\n\nvar $abs = require('./abs');\nvar $floor = require('./floor');\n\nvar $isNaN = require('./isNaN');\nvar $isFinite = require('./isFinite');\n\n/** @type {import('./isInteger')} */\nmodule.exports = function isInteger(argument) {\n\tif (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {\n\t\treturn false;\n\t}\n\tvar absValue = $abs(argument);\n\treturn $floor(absValue) === absValue;\n};\n","'use strict';\n\n/** @type {import('./isObject')} */\nmodule.exports = function isObject(x) {\n\treturn !!x && (typeof x === 'function' || typeof x === 'object');\n};\n","'use strict';\n\n/** @type {import('./maxArrayLength')} */\nmodule.exports = 4294967295; // Math.pow(2, 32) - 1;\n","'use strict';\n\n/** @type {import('./Reflect.setPrototypeOf')} */\nmodule.exports = (typeof Reflect !== 'undefined' && Reflect.setPrototypeOf) || null;\n","'use strict';\n\nvar $Object = require('es-object-atoms');\n\n/** @type {import('./Object.setPrototypeOf')} */\nmodule.exports = $Object.setPrototypeOf || null;\n","'use strict';\n\nvar callBind = require('call-bind-apply-helpers');\nvar gOPD = require('gopd');\nvar $TypeError = require('es-errors/type');\n\n/** @type {{ __proto__?: object | null }} */\nvar obj = {};\ntry {\n\tobj.__proto__ = null; // eslint-disable-line no-proto\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\nvar hasProtoMutator = !('toString' in obj);\n\n// eslint-disable-next-line no-extra-parens\nvar desc = gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\n/** @type {import('./set')} */\nmodule.exports = hasProtoMutator && (\n// eslint-disable-next-line no-extra-parens\n\t(!!desc && typeof desc.set === 'function' && /** @type {import('./set')} */ (callBind([desc.set])))\n\t|| /** @type {import('./set')} */ function setDunder(object, proto) {\n\t\t// this is node v0.10 or older, which doesn't have Object.setPrototypeOf and has undeniable __proto__\n\t\tif (object == null) { // eslint-disable-line eqeqeq\n\t\t\tthrow new $TypeError('set Object.prototype.__proto__ called on null or undefined');\n\t\t}\n\t\t// eslint-disable-next-line no-proto, no-param-reassign, no-extra-parens\n\t\t/** @type {{ __proto__?: object | null }} */ (object).__proto__ = proto;\n\t\treturn proto;\n\t}\n);\n","'use strict';\n\nvar reflectSetProto = require('./Reflect.setPrototypeOf');\nvar originalSetProto = require('./Object.setPrototypeOf');\n\nvar setDunderProto = require('dunder-proto/set');\n\nvar $TypeError = require('es-errors/type');\n\n/** @type {import('.')} */\nmodule.exports = reflectSetProto\n\t? function setProto(O, proto) {\n\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\tif (reflectSetProto(O, proto)) {\n\t\t\treturn O;\n\t\t}\n\t\tthrow new $TypeError('Reflect.setPrototypeOf: failed to set [[Prototype]]');\n\t}\n\t: originalSetProto || (\n\t\tsetDunderProto ? function setProto(O, proto) {\n\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\tsetDunderProto(O, proto);\n\t\t\treturn O;\n\t\t} : null\n\t);\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $ArrayPrototype = GetIntrinsic('%Array.prototype%');\nvar $RangeError = require('es-errors/range');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar isInteger = require('math-intrinsics/isInteger');\nvar MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');\nvar $setProto = require('set-proto');\n\n// https://262.ecma-international.org/12.0/#sec-arraycreate\n\nmodule.exports = function ArrayCreate(length) {\n\tif (!isInteger(length) || length < 0) {\n\t\tthrow new $TypeError('Assertion failed: `length` must be an integer Number >= 0');\n\t}\n\tif (length > MAX_ARRAY_LENGTH) {\n\t\tthrow new $RangeError('length is greater than (2**32 - 1)');\n\t}\n\tvar proto = arguments.length > 1 ? arguments[1] : $ArrayPrototype;\n\tvar A = []; // steps 3, 5\n\tif (proto !== $ArrayPrototype) { // step 4\n\t\tif (!$setProto) {\n\t\t\tthrow new $SyntaxError('ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]');\n\t\t}\n\t\t$setProto(A, proto);\n\t}\n\tif (length !== 0) { // bypasses the need for step 6\n\t\tA.length = length;\n\t}\n\t/* step 6, the above as a shortcut for the below\n\tOrdinaryDefineOwnProperty(A, 'length', {\n\t\t'[[Configurable]]': false,\n\t\t'[[Enumerable]]': false,\n\t\t'[[Value]]': length,\n\t\t'[[Writable]]': true\n\t});\n\t*/\n\treturn A;\n};\n","'use strict';\n\nmodule.exports = function isPropertyKey(argument) {\n\treturn typeof argument === 'string' || typeof argument === 'symbol';\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar inspect = require('object-inspect');\n\nvar isPropertyKey = require('../helpers/isPropertyKey');\n\nvar isObject = require('es-object-atoms/isObject');\n\n// https://262.ecma-international.org/6.0/#sec-get-o-p\n\nmodule.exports = function Get(O, P) {\n\t// 7.3.1.1\n\tif (!isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: Type(O) is not Object');\n\t}\n\t// 7.3.1.2\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));\n\t}\n\t// 7.3.1.3\n\treturn O[P];\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBindBasic = require('call-bind-apply-helpers');\n\n/** @type {(thisArg: string, searchString: string, position?: number) => number} */\nvar $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);\n\n/** @type {import('.')} */\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\t/* eslint no-extra-parens: 0 */\n\n\tvar intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBindBasic(/** @type {const} */ ([intrinsic]));\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $Array = GetIntrinsic('%Array%');\n\n// eslint-disable-next-line global-require\nvar toStr = !$Array.isArray && require('call-bound')('Object.prototype.toString');\n\nmodule.exports = $Array.isArray || function IsArray(argument) {\n\treturn toStr(argument) === '[object Array]';\n};\n","'use strict';\n\n// https://262.ecma-international.org/6.0/#sec-isarray\nmodule.exports = require('../helpers/IsArray');\n","'use strict';\n\n// TODO: remove, semver-major\n\nmodule.exports = require('get-intrinsic');\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar hasOwn = require('hasown');\n\nvar allowed = {\n\t__proto__: null,\n\t'[[Configurable]]': true,\n\t'[[Enumerable]]': true,\n\t'[[Get]]': true,\n\t'[[Set]]': true,\n\t'[[Value]]': true,\n\t'[[Writable]]': true\n};\n\n// https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type\n\nmodule.exports = function isPropertyDescriptor(Desc) {\n\tif (!Desc || typeof Desc !== 'object') {\n\t\treturn false;\n\t}\n\n\tfor (var key in Desc) { // eslint-disable-line\n\t\tif (hasOwn(Desc, key) && !allowed[key]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tvar isData = hasOwn(Desc, '[[Value]]') || hasOwn(Desc, '[[Writable]]');\n\tvar IsAccessor = hasOwn(Desc, '[[Get]]') || hasOwn(Desc, '[[Set]]');\n\tif (isData && IsAccessor) {\n\t\tthrow new $TypeError('Property Descriptors may not be both accessor and data descriptors');\n\t}\n\treturn true;\n};\n","'use strict';\n\nvar hasPropertyDescriptors = require('has-property-descriptors');\n\nvar $defineProperty = require('es-define-property');\n\nvar hasArrayLengthDefineBug = hasPropertyDescriptors.hasArrayLengthDefineBug();\n\n// eslint-disable-next-line global-require\nvar isArray = hasArrayLengthDefineBug && require('../helpers/IsArray');\n\nvar callBound = require('call-bound');\n\nvar $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');\n\n// eslint-disable-next-line max-params\nmodule.exports = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {\n\tif (!$defineProperty) {\n\t\tif (!IsDataDescriptor(desc)) {\n\t\t\t// ES3 does not support getters/setters\n\t\t\treturn false;\n\t\t}\n\t\tif (!desc['[[Configurable]]'] || !desc['[[Writable]]']) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// fallback for ES3\n\t\tif (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {\n\t\t\t// a non-enumerable existing property\n\t\t\treturn false;\n\t\t}\n\n\t\t// property does not exist at all, or exists but is enumerable\n\t\tvar V = desc['[[Value]]'];\n\t\t// eslint-disable-next-line no-param-reassign\n\t\tO[P] = V; // will use [[Define]]\n\t\treturn SameValue(O[P], V);\n\t}\n\tif (\n\t\thasArrayLengthDefineBug\n\t\t&& P === 'length'\n\t\t&& '[[Value]]' in desc\n\t\t&& isArray(O)\n\t\t&& O.length !== desc['[[Value]]']\n\t) {\n\t\t// eslint-disable-next-line no-param-reassign\n\t\tO.length = desc['[[Value]]'];\n\t\treturn O.length === desc['[[Value]]'];\n\t}\n\n\t$defineProperty(O, P, FromPropertyDescriptor(desc));\n\treturn true;\n};\n","'use strict';\n\nmodule.exports = function fromPropertyDescriptor(Desc) {\n\tif (typeof Desc === 'undefined') {\n\t\treturn Desc;\n\t}\n\tvar obj = {};\n\tif ('[[Value]]' in Desc) {\n\t\tobj.value = Desc['[[Value]]'];\n\t}\n\tif ('[[Writable]]' in Desc) {\n\t\tobj.writable = !!Desc['[[Writable]]'];\n\t}\n\tif ('[[Get]]' in Desc) {\n\t\tobj.get = Desc['[[Get]]'];\n\t}\n\tif ('[[Set]]' in Desc) {\n\t\tobj.set = Desc['[[Set]]'];\n\t}\n\tif ('[[Enumerable]]' in Desc) {\n\t\tobj.enumerable = !!Desc['[[Enumerable]]'];\n\t}\n\tif ('[[Configurable]]' in Desc) {\n\t\tobj.configurable = !!Desc['[[Configurable]]'];\n\t}\n\treturn obj;\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\nvar fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor');\n\n// https://262.ecma-international.org/6.0/#sec-frompropertydescriptor\n\nmodule.exports = function FromPropertyDescriptor(Desc) {\n\tif (typeof Desc !== 'undefined' && !isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: `Desc` must be a Property Descriptor');\n\t}\n\n\treturn fromPropertyDescriptor(Desc);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar hasOwn = require('hasown');\n\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\n\n// https://262.ecma-international.org/5.1/#sec-8.10.2\n\nmodule.exports = function IsDataDescriptor(Desc) {\n\tif (typeof Desc === 'undefined') {\n\t\treturn false;\n\t}\n\n\tif (!isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: `Desc` must be a Property Descriptor');\n\t}\n\n\tif (!hasOwn(Desc, '[[Value]]') && !hasOwn(Desc, '[[Writable]]')) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar $isNaN = require('math-intrinsics/isNaN');\n\n// http://262.ecma-international.org/5.1/#sec-9.12\n\nmodule.exports = function SameValue(x, y) {\n\tif (x === y) { // 0 === -0, but they are not identical.\n\t\tif (x === 0) { return 1 / x === 1 / y; }\n\t\treturn true;\n\t}\n\treturn $isNaN(x) && $isNaN(y);\n};\n","'use strict';\n\nvar fnToStr = Function.prototype.toString;\nvar reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;\nvar badArrayLike;\nvar isCallableMarker;\nif (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {\n\ttry {\n\t\tbadArrayLike = Object.defineProperty({}, 'length', {\n\t\t\tget: function () {\n\t\t\t\tthrow isCallableMarker;\n\t\t\t}\n\t\t});\n\t\tisCallableMarker = {};\n\t\t// eslint-disable-next-line no-throw-literal\n\t\treflectApply(function () { throw 42; }, null, badArrayLike);\n\t} catch (_) {\n\t\tif (_ !== isCallableMarker) {\n\t\t\treflectApply = null;\n\t\t}\n\t}\n} else {\n\treflectApply = null;\n}\n\nvar constructorRegex = /^\\s*class\\b/;\nvar isES6ClassFn = function isES6ClassFunction(value) {\n\ttry {\n\t\tvar fnStr = fnToStr.call(value);\n\t\treturn constructorRegex.test(fnStr);\n\t} catch (e) {\n\t\treturn false; // not a function\n\t}\n};\n\nvar tryFunctionObject = function tryFunctionToStr(value) {\n\ttry {\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tfnToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar objectClass = '[object Object]';\nvar fnClass = '[object Function]';\nvar genClass = '[object GeneratorFunction]';\nvar ddaClass = '[object HTMLAllCollection]'; // IE 11\nvar ddaClass2 = '[object HTML document.all class]';\nvar ddaClass3 = '[object HTMLCollection]'; // IE 9-10\nvar hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar isDDA = function isDocumentDotAll() { return false; };\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr.call(all) === toStr.call(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr.call(value);\n\t\t\t\t\treturn (\n\t\t\t\t\t\tstr === ddaClass\n\t\t\t\t\t\t|| str === ddaClass2\n\t\t\t\t\t\t|| str === ddaClass3 // opera 12.16\n\t\t\t\t\t\t|| str === objectClass // IE 6-8\n\t\t\t\t\t) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = reflectApply\n\t? function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\ttry {\n\t\t\treflectApply(value, null, badArrayLike);\n\t\t} catch (e) {\n\t\t\tif (e !== isCallableMarker) { return false; }\n\t\t}\n\t\treturn !isES6ClassFn(value) && tryFunctionObject(value);\n\t}\n\t: function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\tif (hasToStringTag) { return tryFunctionObject(value); }\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tvar strClass = toStr.call(value);\n\t\tif (strClass !== fnClass && strClass !== genClass && !(/^\\[object HTML/).test(strClass)) { return false; }\n\t\treturn tryFunctionObject(value);\n\t};\n","'use strict';\n\n// http://262.ecma-international.org/5.1/#sec-9.11\n\nmodule.exports = require('is-callable');\n","'use strict';\n\n// http://262.ecma-international.org/5.1/#sec-9.2\n\nmodule.exports = function ToBoolean(value) { return !!value; };\n","'use strict';\n\nvar hasOwn = require('hasown');\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar IsCallable = require('./IsCallable');\nvar ToBoolean = require('./ToBoolean');\n\n// https://262.ecma-international.org/5.1/#sec-8.10.5\n\nmodule.exports = function ToPropertyDescriptor(Obj) {\n\tif (!isObject(Obj)) {\n\t\tthrow new $TypeError('ToPropertyDescriptor requires an object');\n\t}\n\n\tvar desc = {};\n\tif (hasOwn(Obj, 'enumerable')) {\n\t\tdesc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);\n\t}\n\tif (hasOwn(Obj, 'configurable')) {\n\t\tdesc['[[Configurable]]'] = ToBoolean(Obj.configurable);\n\t}\n\tif (hasOwn(Obj, 'value')) {\n\t\tdesc['[[Value]]'] = Obj.value;\n\t}\n\tif (hasOwn(Obj, 'writable')) {\n\t\tdesc['[[Writable]]'] = ToBoolean(Obj.writable);\n\t}\n\tif (hasOwn(Obj, 'get')) {\n\t\tvar getter = Obj.get;\n\t\tif (typeof getter !== 'undefined' && !IsCallable(getter)) {\n\t\t\tthrow new $TypeError('getter must be a function');\n\t\t}\n\t\tdesc['[[Get]]'] = getter;\n\t}\n\tif (hasOwn(Obj, 'set')) {\n\t\tvar setter = Obj.set;\n\t\tif (typeof setter !== 'undefined' && !IsCallable(setter)) {\n\t\t\tthrow new $TypeError('setter must be a function');\n\t\t}\n\t\tdesc['[[Set]]'] = setter;\n\t}\n\n\tif ((hasOwn(desc, '[[Get]]') || hasOwn(desc, '[[Set]]')) && (hasOwn(desc, '[[Value]]') || hasOwn(desc, '[[Writable]]'))) {\n\t\tthrow new $TypeError('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');\n\t}\n\treturn desc;\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\nvar DefineOwnProperty = require('../helpers/DefineOwnProperty');\n\nvar FromPropertyDescriptor = require('./FromPropertyDescriptor');\nvar IsDataDescriptor = require('./IsDataDescriptor');\nvar isPropertyKey = require('../helpers/isPropertyKey');\nvar SameValue = require('./SameValue');\nvar ToPropertyDescriptor = require('./ToPropertyDescriptor');\n\n// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow\n\nmodule.exports = function DefinePropertyOrThrow(O, P, desc) {\n\tif (!isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: Type(O) is not Object');\n\t}\n\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P is not a Property Key');\n\t}\n\n\tvar Desc = isPropertyDescriptor(desc) ? desc : ToPropertyDescriptor(desc);\n\tif (!isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: Desc is not a valid Property Descriptor');\n\t}\n\n\treturn DefineOwnProperty(\n\t\tIsDataDescriptor,\n\t\tSameValue,\n\t\tFromPropertyDescriptor,\n\t\tO,\n\t\tP,\n\t\tDesc\n\t);\n};\n","'use strict';\n\nvar GetIntrinsic = require('../GetIntrinsic.js');\n\nvar $construct = GetIntrinsic('%Reflect.construct%', true);\n\nvar DefinePropertyOrThrow = require('./DefinePropertyOrThrow');\ntry {\n\tDefinePropertyOrThrow({}, '', { '[[Get]]': function () {} });\n} catch (e) {\n\t// Accessor properties aren't supported\n\tDefinePropertyOrThrow = null;\n}\n\n// https://262.ecma-international.org/6.0/#sec-isconstructor\n\nif (DefinePropertyOrThrow && $construct) {\n\tvar isConstructorMarker = {};\n\tvar badArrayLike = {};\n\tDefinePropertyOrThrow(badArrayLike, 'length', {\n\t\t'[[Get]]': function () {\n\t\t\tthrow isConstructorMarker;\n\t\t},\n\t\t'[[Enumerable]]': true\n\t});\n\n\tmodule.exports = function IsConstructor(argument) {\n\t\ttry {\n\t\t\t// `Reflect.construct` invokes `IsConstructor(target)` before `Get(args, 'length')`:\n\t\t\t$construct(argument, badArrayLike);\n\t\t} catch (err) {\n\t\t\treturn err === isConstructorMarker;\n\t\t}\n\t};\n} else {\n\tmodule.exports = function IsConstructor(argument) {\n\t\t// unfortunately there's no way to truly check this without try/catch `new argument` in old environments\n\t\treturn typeof argument === 'function' && !!argument.prototype;\n\t};\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $species = GetIntrinsic('%Symbol.species%', true);\nvar $TypeError = require('es-errors/type');\nvar isInteger = require('math-intrinsics/isInteger');\nvar isObject = require('es-object-atoms/isObject');\n\nvar ArrayCreate = require('./ArrayCreate');\nvar Get = require('./Get');\nvar IsArray = require('./IsArray');\nvar IsConstructor = require('./IsConstructor');\n\n// https://262.ecma-international.org/12.0/#sec-arrayspeciescreate\n\nmodule.exports = function ArraySpeciesCreate(originalArray, length) {\n\tif (!isInteger(length) || length < 0) {\n\t\tthrow new $TypeError('Assertion failed: length must be an integer >= 0');\n\t}\n\n\tvar isArray = IsArray(originalArray);\n\tif (!isArray) {\n\t\treturn ArrayCreate(length);\n\t}\n\n\tvar C = Get(originalArray, 'constructor');\n\t// TODO: figure out how to make a cross-realm normal Array, a same-realm Array\n\t// if (IsConstructor(C)) {\n\t// \tif C is another realm's Array, C = undefined\n\t// \tObject.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ?\n\t// }\n\tif ($species && isObject(C)) {\n\t\tC = Get(C, $species);\n\t\tif (C === null) {\n\t\t\tC = void 0;\n\t\t}\n\t}\n\n\tif (typeof C === 'undefined') {\n\t\treturn ArrayCreate(length);\n\t}\n\tif (!IsConstructor(C)) {\n\t\tthrow new $TypeError('C must be a constructor');\n\t}\n\treturn new C(length); // Construct(C, length);\n};\n\n","'use strict';\n\n/** @type {import('./maxSafeInteger')} */\n// eslint-disable-next-line no-extra-parens\nmodule.exports = /** @type {import('./maxSafeInteger')} */ (Number.MAX_SAFE_INTEGER) || 9007199254740991; // Math.pow(2, 53) - 1;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bound');\n\nvar $TypeError = require('es-errors/type');\n\nvar IsArray = require('./IsArray');\n\nvar $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply');\n\n// https://262.ecma-international.org/6.0/#sec-call\n\nmodule.exports = function Call(F, V) {\n\tvar argumentsList = arguments.length > 2 ? arguments[2] : [];\n\tif (!IsArray(argumentsList)) {\n\t\tthrow new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List');\n\t}\n\treturn $apply(F, V, argumentsList);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar hasOwn = require('hasown');\n\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\n\n// https://262.ecma-international.org/5.1/#sec-8.10.1\n\nmodule.exports = function IsAccessorDescriptor(Desc) {\n\tif (typeof Desc === 'undefined') {\n\t\treturn false;\n\t}\n\n\tif (!isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: `Desc` must be a Property Descriptor');\n\t}\n\n\tif (!hasOwn(Desc, '[[Get]]') && !hasOwn(Desc, '[[Set]]')) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nmodule.exports = function isPrimitive(value) {\n\treturn value === null || (typeof value !== 'function' && typeof value !== 'object');\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $preventExtensions = GetIntrinsic('%Object.preventExtensions%', true);\nvar $isExtensible = GetIntrinsic('%Object.isExtensible%', true);\n\nvar isPrimitive = require('../helpers/isPrimitive');\n\n// https://262.ecma-international.org/6.0/#sec-isextensible-o\n\nmodule.exports = $preventExtensions\n\t? function IsExtensible(obj) {\n\t\treturn !isPrimitive(obj) && $isExtensible(obj);\n\t}\n\t: function IsExtensible(obj) {\n\t\treturn !isPrimitive(obj);\n\t};\n","'use strict';\n\nvar isPropertyDescriptor = require('./records/property-descriptor');\n\nmodule.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) {\n\treturn isPropertyDescriptor(Desc)\n\t\t&& '[[Enumerable]]' in Desc\n\t\t&& '[[Configurable]]' in Desc\n\t\t&& (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc));\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar IsAccessorDescriptor = require('./IsAccessorDescriptor');\nvar IsDataDescriptor = require('./IsDataDescriptor');\n\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\n\n// https://262.ecma-international.org/6.0/#sec-isgenericdescriptor\n\nmodule.exports = function IsGenericDescriptor(Desc) {\n\tif (typeof Desc === 'undefined') {\n\t\treturn false;\n\t}\n\n\tif (!isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: `Desc` must be a Property Descriptor');\n\t}\n\n\tif (!IsAccessorDescriptor(Desc) && !IsDataDescriptor(Desc)) {\n\t\treturn true;\n\t}\n\n\treturn false;\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar DefineOwnProperty = require('../helpers/DefineOwnProperty');\nvar isFullyPopulatedPropertyDescriptor = require('../helpers/isFullyPopulatedPropertyDescriptor');\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\n\nvar FromPropertyDescriptor = require('./FromPropertyDescriptor');\nvar IsAccessorDescriptor = require('./IsAccessorDescriptor');\nvar IsDataDescriptor = require('./IsDataDescriptor');\nvar IsGenericDescriptor = require('./IsGenericDescriptor');\nvar isPropertyKey = require('../helpers/isPropertyKey');\nvar SameValue = require('./SameValue');\n\n// https://262.ecma-international.org/13.0/#sec-validateandapplypropertydescriptor\n\n// see https://github.com/tc39/ecma262/pull/2468 for ES2022 changes\n\n// eslint-disable-next-line max-lines-per-function, max-statements\nmodule.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) {\n\tif (typeof O !== 'undefined' && !isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: O must be undefined or an Object');\n\t}\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P must be a Property Key');\n\t}\n\tif (typeof extensible !== 'boolean') {\n\t\tthrow new $TypeError('Assertion failed: extensible must be a Boolean');\n\t}\n\tif (!isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: Desc must be a Property Descriptor');\n\t}\n\tif (typeof current !== 'undefined' && !isPropertyDescriptor(current)) {\n\t\tthrow new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined');\n\t}\n\n\tif (typeof current === 'undefined') { // step 2\n\t\tif (!extensible) {\n\t\t\treturn false; // step 2.a\n\t\t}\n\t\tif (typeof O === 'undefined') {\n\t\t\treturn true; // step 2.b\n\t\t}\n\t\tif (IsAccessorDescriptor(Desc)) { // step 2.c\n\t\t\treturn DefineOwnProperty(\n\t\t\t\tIsDataDescriptor,\n\t\t\t\tSameValue,\n\t\t\t\tFromPropertyDescriptor,\n\t\t\t\tO,\n\t\t\t\tP,\n\t\t\t\tDesc\n\t\t\t);\n\t\t}\n\t\t// step 2.d\n\t\treturn DefineOwnProperty(\n\t\t\tIsDataDescriptor,\n\t\t\tSameValue,\n\t\t\tFromPropertyDescriptor,\n\t\t\tO,\n\t\t\tP,\n\t\t\t{\n\t\t\t\t'[[Configurable]]': !!Desc['[[Configurable]]'],\n\t\t\t\t'[[Enumerable]]': !!Desc['[[Enumerable]]'],\n\t\t\t\t'[[Value]]': Desc['[[Value]]'],\n\t\t\t\t'[[Writable]]': !!Desc['[[Writable]]']\n\t\t\t}\n\t\t);\n\t}\n\n\t// 3. Assert: current is a fully populated Property Descriptor.\n\tif (\n\t\t!isFullyPopulatedPropertyDescriptor(\n\t\t\t{\n\t\t\t\tIsAccessorDescriptor: IsAccessorDescriptor,\n\t\t\t\tIsDataDescriptor: IsDataDescriptor\n\t\t\t},\n\t\t\tcurrent\n\t\t)\n\t) {\n\t\tthrow new $TypeError('`current`, when present, must be a fully populated and valid Property Descriptor');\n\t}\n\n\t// 4. If every field in Desc is absent, return true.\n\t// this can't really match the assertion that it's a Property Descriptor in our JS implementation\n\n\t// 5. If current.[[Configurable]] is false, then\n\tif (!current['[[Configurable]]']) {\n\t\tif ('[[Configurable]]' in Desc && Desc['[[Configurable]]']) {\n\t\t\t// step 5.a\n\t\t\treturn false;\n\t\t}\n\t\tif ('[[Enumerable]]' in Desc && !SameValue(Desc['[[Enumerable]]'], current['[[Enumerable]]'])) {\n\t\t\t// step 5.b\n\t\t\treturn false;\n\t\t}\n\t\tif (!IsGenericDescriptor(Desc) && !SameValue(IsAccessorDescriptor(Desc), IsAccessorDescriptor(current))) {\n\t\t\t// step 5.c\n\t\t\treturn false;\n\t\t}\n\t\tif (IsAccessorDescriptor(current)) { // step 5.d\n\t\t\tif ('[[Get]]' in Desc && !SameValue(Desc['[[Get]]'], current['[[Get]]'])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ('[[Set]]' in Desc && !SameValue(Desc['[[Set]]'], current['[[Set]]'])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (!current['[[Writable]]']) { // step 5.e\n\t\t\tif ('[[Writable]]' in Desc && Desc['[[Writable]]']) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ('[[Value]]' in Desc && !SameValue(Desc['[[Value]]'], current['[[Value]]'])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n\n\t// 6. If O is not undefined, then\n\tif (typeof O !== 'undefined') {\n\t\tvar configurable;\n\t\tvar enumerable;\n\t\tif (IsDataDescriptor(current) && IsAccessorDescriptor(Desc)) { // step 6.a\n\t\t\tconfigurable = ('[[Configurable]]' in Desc ? Desc : current)['[[Configurable]]'];\n\t\t\tenumerable = ('[[Enumerable]]' in Desc ? Desc : current)['[[Enumerable]]'];\n\t\t\t// Replace the property named P of object O with an accessor property having [[Configurable]] and [[Enumerable]] attributes as described by current and each other attribute set to its default value.\n\t\t\treturn DefineOwnProperty(\n\t\t\t\tIsDataDescriptor,\n\t\t\t\tSameValue,\n\t\t\t\tFromPropertyDescriptor,\n\t\t\t\tO,\n\t\t\t\tP,\n\t\t\t\t{\n\t\t\t\t\t'[[Configurable]]': !!configurable,\n\t\t\t\t\t'[[Enumerable]]': !!enumerable,\n\t\t\t\t\t'[[Get]]': ('[[Get]]' in Desc ? Desc : current)['[[Get]]'],\n\t\t\t\t\t'[[Set]]': ('[[Set]]' in Desc ? Desc : current)['[[Set]]']\n\t\t\t\t}\n\t\t\t);\n\t\t} else if (IsAccessorDescriptor(current) && IsDataDescriptor(Desc)) {\n\t\t\tconfigurable = ('[[Configurable]]' in Desc ? Desc : current)['[[Configurable]]'];\n\t\t\tenumerable = ('[[Enumerable]]' in Desc ? Desc : current)['[[Enumerable]]'];\n\t\t\t// i. Replace the property named P of object O with a data property having [[Configurable]] and [[Enumerable]] attributes as described by current and each other attribute set to its default value.\n\t\t\treturn DefineOwnProperty(\n\t\t\t\tIsDataDescriptor,\n\t\t\t\tSameValue,\n\t\t\t\tFromPropertyDescriptor,\n\t\t\t\tO,\n\t\t\t\tP,\n\t\t\t\t{\n\t\t\t\t\t'[[Configurable]]': !!configurable,\n\t\t\t\t\t'[[Enumerable]]': !!enumerable,\n\t\t\t\t\t'[[Value]]': ('[[Value]]' in Desc ? Desc : current)['[[Value]]'],\n\t\t\t\t\t'[[Writable]]': !!('[[Writable]]' in Desc ? Desc : current)['[[Writable]]']\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\t// For each field of Desc that is present, set the corresponding attribute of the property named P of object O to the value of the field.\n\t\treturn DefineOwnProperty(\n\t\t\tIsDataDescriptor,\n\t\t\tSameValue,\n\t\t\tFromPropertyDescriptor,\n\t\t\tO,\n\t\t\tP,\n\t\t\tDesc\n\t\t);\n\t}\n\n\treturn true; // step 7\n};\n","'use strict';\n\nvar $gOPD = require('gopd');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar isPropertyDescriptor = require('../helpers/records/property-descriptor');\n\nvar IsAccessorDescriptor = require('./IsAccessorDescriptor');\nvar IsExtensible = require('./IsExtensible');\nvar isPropertyKey = require('../helpers/isPropertyKey');\nvar ToPropertyDescriptor = require('./ToPropertyDescriptor');\nvar SameValue = require('./SameValue');\nvar ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor');\n\n// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty\n\nmodule.exports = function OrdinaryDefineOwnProperty(O, P, Desc) {\n\tif (!isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: O must be an Object');\n\t}\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P must be a Property Key');\n\t}\n\tif (!isPropertyDescriptor(Desc)) {\n\t\tthrow new $TypeError('Assertion failed: Desc must be a Property Descriptor');\n\t}\n\tif (!$gOPD) {\n\t\t// ES3/IE 8 fallback\n\t\tif (IsAccessorDescriptor(Desc)) {\n\t\t\tthrow new $SyntaxError('This environment does not support accessor property descriptors.');\n\t\t}\n\t\tvar creatingNormalDataProperty = !(P in O)\n\t\t\t&& Desc['[[Writable]]']\n\t\t\t&& Desc['[[Enumerable]]']\n\t\t\t&& Desc['[[Configurable]]']\n\t\t\t&& '[[Value]]' in Desc;\n\t\tvar settingExistingDataProperty = (P in O)\n\t\t\t&& (!('[[Configurable]]' in Desc) || Desc['[[Configurable]]'])\n\t\t\t&& (!('[[Enumerable]]' in Desc) || Desc['[[Enumerable]]'])\n\t\t\t&& (!('[[Writable]]' in Desc) || Desc['[[Writable]]'])\n\t\t\t&& '[[Value]]' in Desc;\n\t\tif (creatingNormalDataProperty || settingExistingDataProperty) {\n\t\t\tO[P] = Desc['[[Value]]']; // eslint-disable-line no-param-reassign\n\t\t\treturn SameValue(O[P], Desc['[[Value]]']);\n\t\t}\n\t\tthrow new $SyntaxError('This environment does not support defining non-writable, non-enumerable, or non-configurable properties');\n\t}\n\tvar desc = $gOPD(O, P);\n\tvar current = desc && ToPropertyDescriptor(desc);\n\tvar extensible = IsExtensible(O);\n\treturn ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar isPropertyKey = require('../helpers/isPropertyKey');\nvar OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty');\n\n// https://262.ecma-international.org/6.0/#sec-createdataproperty\n\nmodule.exports = function CreateDataProperty(O, P, V) {\n\tif (!isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: Type(O) is not Object');\n\t}\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P is not a Property Key');\n\t}\n\tvar newDesc = {\n\t\t'[[Configurable]]': true,\n\t\t'[[Enumerable]]': true,\n\t\t'[[Value]]': V,\n\t\t'[[Writable]]': true\n\t};\n\treturn OrdinaryDefineOwnProperty(O, P, newDesc);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar CreateDataProperty = require('./CreateDataProperty');\n\nvar isPropertyKey = require('../helpers/isPropertyKey');\n\n// // https://262.ecma-international.org/14.0/#sec-createdatapropertyorthrow\n\nmodule.exports = function CreateDataPropertyOrThrow(O, P, V) {\n\tif (!isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: Type(O) is not Object');\n\t}\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P is not a Property Key');\n\t}\n\tvar success = CreateDataProperty(O, P, V);\n\tif (!success) {\n\t\tthrow new $TypeError('unable to create data property');\n\t}\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar isPropertyKey = require('../helpers/isPropertyKey');\n\n// https://262.ecma-international.org/6.0/#sec-hasproperty\n\nmodule.exports = function HasProperty(O, P) {\n\tif (!isObject(O)) {\n\t\tthrow new $TypeError('Assertion failed: `O` must be an Object');\n\t}\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: `P` must be a Property Key');\n\t}\n\treturn P in O;\n};\n","'use strict';\n\nvar hasSymbols = require('has-symbols/shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasToStringTagShams() {\n\treturn hasSymbols() && !!Symbol.toStringTag;\n};\n","'use strict';\n\nvar callBound = require('call-bound');\n\nvar getDay = callBound('Date.prototype.getDay');\n/** @type {import('.')} */\nvar tryDateObject = function tryDateGetDayCall(value) {\n\ttry {\n\t\tgetDay(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\n/** @type {(value: unknown) => string} */\nvar toStr = callBound('Object.prototype.toString');\nvar dateClass = '[object Date]';\nvar hasToStringTag = require('has-tostringtag/shams')();\n\n/** @type {import('.')} */\nmodule.exports = function isDateObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\treturn hasToStringTag ? tryDateObject(value) : toStr(value) === dateClass;\n};\n","'use strict';\n\nvar callBound = require('call-bound');\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar hasOwn = require('hasown');\nvar gOPD = require('gopd');\n\n/** @type {import('.')} */\nvar fn;\n\nif (hasToStringTag) {\n\t/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */\n\tvar $exec = callBound('RegExp.prototype.exec');\n\t/** @type {object} */\n\tvar isRegexMarker = {};\n\n\tvar throwRegexMarker = function () {\n\t\tthrow isRegexMarker;\n\t};\n\t/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */\n\tvar badStringifier = {\n\t\ttoString: throwRegexMarker,\n\t\tvalueOf: throwRegexMarker\n\t};\n\n\tif (typeof Symbol.toPrimitive === 'symbol') {\n\t\tbadStringifier[Symbol.toPrimitive] = throwRegexMarker;\n\t}\n\n\t/** @type {import('.')} */\n\t// @ts-expect-error TS can't figure out that the $exec call always throws\n\t// eslint-disable-next-line consistent-return\n\tfn = function isRegex(value) {\n\t\tif (!value || typeof value !== 'object') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');\n\t\tvar hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');\n\t\tif (!hasLastIndexDataProperty) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\t$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));\n\t\t} catch (e) {\n\t\t\treturn e === isRegexMarker;\n\t\t}\n\t};\n} else {\n\t/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */\n\tvar $toString = callBound('Object.prototype.toString');\n\t/** @const @type {'[object RegExp]'} */\n\tvar regexClass = '[object RegExp]';\n\n\t/** @type {import('.')} */\n\tfn = function isRegex(value) {\n\t\t// In older browsers, typeof regex incorrectly returns 'function'\n\t\tif (!value || (typeof value !== 'object' && typeof value !== 'function')) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $toString(value) === regexClass;\n\t};\n}\n\nmodule.exports = fn;\n","'use strict';\n\nvar callBound = require('call-bound');\nvar isRegex = require('is-regex');\n\nvar $exec = callBound('RegExp.prototype.exec');\nvar $TypeError = require('es-errors/type');\n\n/** @type {import('.')} */\nmodule.exports = function regexTester(regex) {\n\tif (!isRegex(regex)) {\n\t\tthrow new $TypeError('`regex` must be a RegExp');\n\t}\n\treturn function test(s) {\n\t\treturn $exec(regex, s) !== null;\n\t};\n};\n","'use strict';\n\nvar callBound = require('call-bound');\nvar $toString = callBound('Object.prototype.toString');\nvar hasSymbols = require('has-symbols')();\nvar safeRegexTest = require('safe-regex-test');\n\nif (hasSymbols) {\n\tvar $symToStr = callBound('Symbol.prototype.toString');\n\tvar isSymString = safeRegexTest(/^Symbol\\(.*\\)$/);\n\n\t/** @type {(value: object) => value is Symbol} */\n\tvar isSymbolObject = function isRealSymbolObject(value) {\n\t\tif (typeof value.valueOf() !== 'symbol') {\n\t\t\treturn false;\n\t\t}\n\t\treturn isSymString($symToStr(value));\n\t};\n\n\t/** @type {import('.')} */\n\tmodule.exports = function isSymbol(value) {\n\t\tif (typeof value === 'symbol') {\n\t\t\treturn true;\n\t\t}\n\t\tif (!value || typeof value !== 'object' || $toString(value) !== '[object Symbol]') {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\treturn isSymbolObject(value);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n} else {\n\t/** @type {import('.')} */\n\tmodule.exports = function isSymbol(value) {\n\t\t// this environment does not support Symbols.\n\t\treturn false && value;\n\t};\n}\n","'use strict';\n\n/** @import { primitive } from '../' */\n/** @import { primitiveES5 } from '../es5' */\n\n/** @type {<T extends primitive | primitiveES5>(value: unknown) => value is T} */\nmodule.exports = function isPrimitive(value) {\n\treturn value === null || (typeof value !== 'function' && typeof value !== 'object');\n};\n","'use strict';\n\n/** @type {import('./isPropertyKey')} */\nmodule.exports = function isPropertyKey(argument) {\n\treturn typeof argument === 'string' || typeof argument === 'symbol';\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar inspect = require('object-inspect');\n\nvar isPropertyKey = require('./isPropertyKey');\n\n// https://262.ecma-international.org/6.0/#sec-getv\n\n/** @type {import('./GetV')} */\nmodule.exports = function GetV(V, P) {\n\t// 7.3.2.1\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));\n\t}\n\n\t// 7.3.2.2-3\n\t// var O = ToObject(V);\n\n\t// 7.3.2.4\n\treturn /** @type {Record<typeof P, unknown>} */ (V)[P]; // O.[[Get]](P, V)\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar isCallable = require('is-callable');\n\nvar inspect = require('object-inspect');\n\nvar GetV = require('./GetV');\nvar isPropertyKey = require('./isPropertyKey');\n\n// https://262.ecma-international.org/6.0/#sec-getmethod\n\n/** @type {import('./GetMethod')} */\nmodule.exports = function GetMethod(O, P) {\n\t// 7.3.9.1\n\tif (!isPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: P is not a Property Key');\n\t}\n\n\t// 7.3.9.2\n\tvar func = GetV(O, P);\n\n\t// 7.3.9.4\n\tif (func == null) {\n\t\treturn void 0;\n\t}\n\n\t// 7.3.9.5\n\tif (!isCallable(func)) {\n\t\tthrow new $TypeError(inspect(P) + ' is not a function: ' + inspect(func));\n\t}\n\n\t// 7.3.9.6\n\treturn func;\n};\n","'use strict';\n\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';\n\nvar isCallable = require('is-callable');\nvar isDate = require('is-date-object');\nvar isSymbol = require('is-symbol');\nvar $TypeError = require('es-errors/type');\n\nvar isPrimitive = require('./helpers/isPrimitive');\n\n/** @import { primitiveES6 } from './es2015' */\n\n/** @type {(O: { valueOf?: () => unknown, toString?: () => unknown }, hint: 'number' | 'string') => primitiveES6} */\nfunction OrdinaryToPrimitive(O, hint) {\n\tif (typeof O === 'undefined' || O === null) {\n\t\tthrow new $TypeError('Cannot call method on ' + O);\n\t}\n\tif (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) {\n\t\tthrow new $TypeError('hint must be \"string\" or \"number\"');\n\t}\n\t/** @type {('toString' | 'valueOf')[]} */\n\tvar methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString'];\n\tvar method, result, i;\n\tfor (i = 0; i < methodNames.length; ++i) {\n\t\tmethod = O[methodNames[i]];\n\t\tif (isCallable(method)) {\n\t\t\tresult = method.call(O);\n\t\t\tif (isPrimitive(result)) {\n\t\t\t\treturn /** @type {primitiveES6} */ (result);\n\t\t\t}\n\t\t}\n\t}\n\tthrow new $TypeError('No default value');\n}\n\nvar GetMethod = require('es-abstract-get/GetMethod');\n\n/** @type {import('./es2015')} */\n// http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive\nmodule.exports = function ToPrimitive(input) {\n\tif (isPrimitive(input)) {\n\t\treturn /** @type {primitiveES6} */ (input);\n\t}\n\t/** @type {'default' | 'string' | 'number'} */\n\tvar hint = 'default';\n\tif (arguments.length > 1) {\n\t\tif (arguments[1] === String) {\n\t\t\thint = 'string';\n\t\t} else if (arguments[1] === Number) {\n\t\t\thint = 'number';\n\t\t}\n\t}\n\n\tvar exoticToPrim;\n\tif (hasSymbols) {\n\t\tif (Symbol.toPrimitive) {\n\n\t\t\texoticToPrim = GetMethod(\n\t\t\t\t/** @type {{ [k in SymbolConstructor['toPrimitive']]?: Function }} */\n\t\t\t\t(input),\n\t\t\t\tSymbol.toPrimitive\n\t\t\t);\n\t\t} else if (isSymbol(input)) {\n\t\t\texoticToPrim = Symbol.prototype.valueOf;\n\t\t}\n\t}\n\tif (typeof exoticToPrim !== 'undefined') {\n\t\tvar result = exoticToPrim.call(input, hint);\n\t\tif (isPrimitive(result)) {\n\t\t\treturn /** @type {primitiveES6} */ (result);\n\t\t}\n\t\tthrow new $TypeError('unable to convert exotic object to primitive');\n\t}\n\tif (hint === 'default' && (isDate(input) || isSymbol(input))) {\n\t\thint = /** @type {const} */ ('string');\n\t}\n\n\treturn OrdinaryToPrimitive(input, hint === 'default' ? 'number' : hint);\n};\n","'use strict';\n\nvar toPrimitive = require('es-to-primitive/es2015');\n\n// https://262.ecma-international.org/6.0/#sec-toprimitive\n\nmodule.exports = function ToPrimitive(input) {\n\tif (arguments.length > 1) {\n\t\treturn toPrimitive(input, arguments[1]);\n\t}\n\treturn toPrimitive(input);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\n/** @type {import('./RequireObjectCoercible')} */\nmodule.exports = function RequireObjectCoercible(value) {\n\tif (value == null) {\n\t\tthrow new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $String = GetIntrinsic('%String%');\nvar $TypeError = require('es-errors/type');\n\n// https://262.ecma-international.org/6.0/#sec-tostring\n\nmodule.exports = function ToString(argument) {\n\tif (typeof argument === 'symbol') {\n\t\tthrow new $TypeError('Cannot convert a Symbol value to a string');\n\t}\n\treturn $String(argument);\n};\n","'use strict';\n\nvar RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');\nvar ToString = require('es-abstract/2025/ToString');\nvar callBound = require('call-bound');\nvar safeRegexTester = require('safe-regex-test');\n\nvar $replace = callBound('String.prototype.replace');\nvar $charAt = callBound('String.prototype.charAt');\nvar $slice = callBound('String.prototype.slice');\n\nvar mvsIsWS = (/^\\s$/).test('\\u180E');\n/* eslint-disable no-control-regex */\nvar leftWhitespace = mvsIsWS\n\t? /^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+/\n\t: /^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+/;\nvar isWhitespace = safeRegexTester(mvsIsWS\n\t? /[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]$/\n\t: /[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]$/);\n/* eslint-enable no-control-regex */\n\nmodule.exports = function trim() {\n\tvar S = $replace(ToString(RequireObjectCoercible(this)), leftWhitespace, '');\n\t// scan back for the trailing whitespace boundary; a `$`-anchored regexp is quadratic on large internal whitespace runs\n\tvar end = S.length;\n\twhile (end > 0 && isWhitespace($charAt(S, end - 1))) {\n\t\tend -= 1;\n\t}\n\treturn $slice(S, 0, end);\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nvar zeroWidthSpace = '\\u200b';\nvar mongolianVowelSeparator = '\\u180E';\n\nmodule.exports = function getPolyfill() {\n\tif (\n\t\tString.prototype.trim\n\t\t&& zeroWidthSpace.trim() === zeroWidthSpace\n\t\t&& mongolianVowelSeparator.trim() === mongolianVowelSeparator\n\t\t&& ('_' + mongolianVowelSeparator).trim() === ('_' + mongolianVowelSeparator)\n\t\t&& (mongolianVowelSeparator + '_').trim() === (mongolianVowelSeparator + '_')\n\t) {\n\t\treturn String.prototype.trim;\n\t}\n\treturn implementation;\n};\n","'use strict';\n\nvar supportsDescriptors = require('has-property-descriptors')();\nvar defineDataProperty = require('define-data-property');\n\nvar getPolyfill = require('./polyfill');\n\nmodule.exports = function shimStringTrim() {\n\tvar polyfill = getPolyfill();\n\n\tif (String.prototype.trim !== polyfill) {\n\t\tif (supportsDescriptors) {\n\t\t\tdefineDataProperty(String.prototype, 'trim', polyfill, true);\n\t\t} else {\n\t\t\tdefineDataProperty(String.prototype, 'trim', polyfill);\n\t\t}\n\t}\n\n\treturn polyfill;\n};\n","'use strict';\n\nvar callBind = require('call-bind');\nvar define = require('define-properties');\nvar RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar bound = callBind(getPolyfill());\nvar boundMethod = function trim(receiver) {\n\tRequireObjectCoercible(receiver);\n\treturn bound(receiver);\n};\n\ndefine(boundMethod, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = boundMethod;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $RegExp = GetIntrinsic('%RegExp%');\nvar $TypeError = require('es-errors/type');\nvar $parseInteger = GetIntrinsic('%parseInt%');\n\nvar callBound = require('call-bound');\nvar regexTester = require('safe-regex-test');\n\nvar $strSlice = callBound('String.prototype.slice');\nvar isBinary = regexTester(/^0b[01]+$/i);\nvar isOctal = regexTester(/^0o[0-7]+$/i);\nvar isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i);\nvar nonWS = ['\\u0085', '\\u200b', '\\ufffe'].join('');\nvar nonWSregex = new $RegExp('[' + nonWS + ']', 'g');\nvar hasNonWS = regexTester(nonWSregex);\n\nvar $trim = require('string.prototype.trim');\n\n// https://262.ecma-international.org/13.0/#sec-stringtonumber\n\nmodule.exports = function StringToNumber(argument) {\n\tif (typeof argument !== 'string') {\n\t\tthrow new $TypeError('Assertion failed: `argument` is not a String');\n\t}\n\tif (isBinary(argument)) {\n\t\treturn +$parseInteger($strSlice(argument, 2), 2);\n\t}\n\tif (isOctal(argument)) {\n\t\treturn +$parseInteger($strSlice(argument, 2), 8);\n\t}\n\tif (hasNonWS(argument) || isInvalidHexLiteral(argument)) {\n\t\treturn NaN;\n\t}\n\tvar trimmed = $trim(argument);\n\tif (trimmed !== argument) {\n\t\treturn StringToNumber(trimmed);\n\t}\n\treturn +argument;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $TypeError = require('es-errors/type');\nvar $Number = GetIntrinsic('%Number%');\nvar isPrimitive = require('../helpers/isPrimitive');\n\nvar ToPrimitive = require('./ToPrimitive');\nvar StringToNumber = require('./StringToNumber');\n\n// https://262.ecma-international.org/13.0/#sec-tonumber\n\nmodule.exports = function ToNumber(argument) {\n\tvar value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number);\n\tif (typeof value === 'symbol') {\n\t\tthrow new $TypeError('Cannot convert a Symbol value to a number');\n\t}\n\tif (typeof value === 'bigint') {\n\t\tthrow new $TypeError('Conversion from \\'BigInt\\' to \\'number\\' is not allowed.');\n\t}\n\tif (typeof value === 'string') {\n\t\treturn StringToNumber(value);\n\t}\n\treturn +value;\n};\n","'use strict';\n\n// var modulo = require('./modulo');\nvar $floor = require('math-intrinsics/floor');\n\n// http://262.ecma-international.org/11.0/#eqn-floor\n\nmodule.exports = function floor(x) {\n\t// return x - modulo(x, 1);\n\tif (typeof x === 'bigint') {\n\t\treturn x;\n\t}\n\treturn $floor(x);\n};\n","'use strict';\n\nvar floor = require('./floor');\n\nvar $TypeError = require('es-errors/type');\n\n// https://262.ecma-international.org/14.0/#eqn-truncate\n\nmodule.exports = function truncate(x) {\n\tif (typeof x !== 'number' && typeof x !== 'bigint') {\n\t\tthrow new $TypeError('argument must be a Number or a BigInt');\n\t}\n\tvar result = x < 0 ? -floor(-x) : floor(x);\n\treturn result === 0 ? 0 : result; // in the spec, these are math values, so we filter out -0 here\n};\n","'use strict';\n\nvar ToNumber = require('./ToNumber');\nvar truncate = require('./truncate');\n\nvar $isNaN = require('math-intrinsics/isNaN');\nvar $isFinite = require('math-intrinsics/isFinite');\n\n// https://262.ecma-international.org/14.0/#sec-tointegerorinfinity\n\nmodule.exports = function ToIntegerOrInfinity(value) {\n\tvar number = ToNumber(value);\n\tif ($isNaN(number) || number === 0) { return 0; }\n\tif (!$isFinite(number)) { return number; }\n\treturn truncate(number);\n};\n","'use strict';\n\nvar MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');\n\nvar ToIntegerOrInfinity = require('./ToIntegerOrInfinity');\n\n// https://262.ecma-international.org/12.0/#sec-tolength\n\nmodule.exports = function ToLength(argument) {\n\tvar len = ToIntegerOrInfinity(argument);\n\tif (len <= 0) { return 0; } // includes converting -0 to +0\n\tif (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; }\n\treturn len;\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar isObject = require('es-object-atoms/isObject');\n\nvar Get = require('./Get');\nvar ToLength = require('./ToLength');\n\n// https://262.ecma-international.org/11.0/#sec-lengthofarraylike\n\nmodule.exports = function LengthOfArrayLike(obj) {\n\tif (!isObject(obj)) {\n\t\tthrow new $TypeError('Assertion failed: `obj` must be an Object');\n\t}\n\treturn ToLength(Get(obj, 'length'));\n};\n\n// TODO: use this all over\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $String = GetIntrinsic('%String%');\nvar $TypeError = require('es-errors/type');\n\n// https://262.ecma-international.org/6.0/#sec-tostring\n\nmodule.exports = function ToString(argument) {\n\tif (typeof argument === 'symbol') {\n\t\tthrow new $TypeError('Cannot convert a Symbol value to a string');\n\t}\n\treturn $String(argument);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');\n\nvar Call = require('./Call');\nvar CreateDataPropertyOrThrow = require('./CreateDataPropertyOrThrow');\nvar Get = require('./Get');\nvar HasProperty = require('./HasProperty');\nvar IsArray = require('./IsArray');\nvar LengthOfArrayLike = require('./LengthOfArrayLike');\nvar ToString = require('./ToString');\n\n// https://262.ecma-international.org/11.0/#sec-flattenintoarray\n\nmodule.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) {\n\tvar mapperFunction;\n\tif (arguments.length > 5) {\n\t\tmapperFunction = arguments[5];\n\t}\n\n\tvar targetIndex = start;\n\tvar sourceIndex = 0;\n\twhile (sourceIndex < sourceLen) {\n\t\tvar P = ToString(sourceIndex);\n\t\tvar exists = HasProperty(source, P);\n\t\tif (exists === true) {\n\t\t\tvar element = Get(source, P);\n\t\t\tif (typeof mapperFunction !== 'undefined') {\n\t\t\t\tif (arguments.length <= 6) {\n\t\t\t\t\tthrow new $TypeError('Assertion failed: thisArg is required when mapperFunction is provided');\n\t\t\t\t}\n\t\t\t\telement = Call(mapperFunction, arguments[6], [element, sourceIndex, source]);\n\t\t\t}\n\t\t\tvar shouldFlatten = false;\n\t\t\tif (depth > 0) {\n\t\t\t\tshouldFlatten = IsArray(element);\n\t\t\t}\n\t\t\tif (shouldFlatten) {\n\t\t\t\tvar elementLen = LengthOfArrayLike(element);\n\t\t\t\ttargetIndex = FlattenIntoArray(target, element, elementLen, targetIndex, depth - 1);\n\t\t\t} else {\n\t\t\t\tif (targetIndex >= MAX_SAFE_INTEGER) {\n\t\t\t\t\tthrow new $TypeError('index too large');\n\t\t\t\t}\n\t\t\t\tCreateDataPropertyOrThrow(target, ToString(targetIndex), element);\n\t\t\t\ttargetIndex += 1;\n\t\t\t}\n\t\t}\n\t\tsourceIndex += 1;\n\t}\n\n\treturn targetIndex;\n};\n","'use strict';\n\nvar $Object = require('./');\nvar RequireObjectCoercible = require('./RequireObjectCoercible');\n\n/** @type {import('./ToObject')} */\nmodule.exports = function ToObject(value) {\n\tRequireObjectCoercible(value);\n\treturn $Object(value);\n};\n","'use strict';\n\n// https://262.ecma-international.org/6.0/#sec-toobject\n\nmodule.exports = require('es-object-atoms/ToObject');\n","'use strict';\n\nvar ArraySpeciesCreate = require('es-abstract/2024/ArraySpeciesCreate');\nvar FlattenIntoArray = require('es-abstract/2024/FlattenIntoArray');\nvar Get = require('es-abstract/2024/Get');\nvar ToIntegerOrInfinity = require('es-abstract/2024/ToIntegerOrInfinity');\nvar ToLength = require('es-abstract/2024/ToLength');\nvar ToObject = require('es-abstract/2024/ToObject');\n\nmodule.exports = function flat() {\n\tvar O = ToObject(this);\n\tvar sourceLen = ToLength(Get(O, 'length'));\n\n\tvar depthNum = 1;\n\tif (arguments.length > 0 && typeof arguments[0] !== 'undefined') {\n\t\tdepthNum = ToIntegerOrInfinity(arguments[0]);\n\t}\n\n\tvar A = ArraySpeciesCreate(O, 0);\n\tFlattenIntoArray(A, O, sourceLen, 0, depthNum);\n\treturn A;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\treturn Array.prototype.flat || implementation;\n};\n","'use strict';\n\nvar hasOwn = require('hasown');\n\nvar hasUnscopables = typeof Symbol === 'function' && typeof Symbol.unscopables === 'symbol';\n\nvar map = hasUnscopables && Array.prototype[Symbol.unscopables];\n\nvar $TypeError = TypeError;\n\n/** @type {import('.')} */\nmodule.exports = function shimUnscopables(method) {\n\tif (typeof method !== 'string' || !method) {\n\t\tthrow new $TypeError('method must be a non-empty string');\n\t}\n\tif (!hasOwn(Array.prototype, method)) {\n\t\tthrow new $TypeError('method must be on Array.prototype');\n\t}\n\tif (hasUnscopables && map) {\n\t\tmap[method] = true;\n\t}\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar shimUnscopables = require('es-shim-unscopables');\n\nvar getPolyfill = require('./polyfill');\n\nmodule.exports = function shimFlat() {\n\tvar polyfill = getPolyfill();\n\n\tdefine(\n\t\tArray.prototype,\n\t\t{ flat: polyfill },\n\t\t{ flat: function () { return Array.prototype.flat !== polyfill; } }\n\t);\n\n\tshimUnscopables('flat');\n\n\treturn polyfill;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar callBind = require('call-bind');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar polyfill = getPolyfill();\nvar shim = require('./shim');\n\nvar boundFlat = callBind(polyfill);\n\ndefine(boundFlat, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = boundFlat;\n","const breakword = require(\"breakword\")\nconst stripansi = require(\"strip-ansi\")\nconst wcwidth = require(\"wcwidth\")\nconst flat = require(\"array.prototype.flat\")\nif (!Array.prototype.flat) flat.shim()\n\nconst ANSIPattern = [\n \"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\n \"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"\n].join(\"|\")\nconst ANSIRegex = new RegExp(ANSIPattern, \"g\")\n\nconst defaults = () => {\n let obj = {}\n\n obj.breakword = false\n obj.input = [] // input string split by whitespace\n obj.minWidth = 2 // fallback to if width set too narrow\n obj.paddingLeft = 0\n obj.paddingRight = 0\n obj.errorChar = \"�\"\n obj.returnFormat = \"string\" // or 'array'\n obj.skipPadding = false // set to true when padding set too wide for line length\n obj.splitAt = [\" \", \"\\t\"]\n obj.trim = true\n obj.width = 10\n\n return obj\n}\n\n\nconst calculateSpaceRemaining = function(lineLength, spacesUsed, config) {\n return Math.max(lineLength - spacesUsed - config.paddingLeft - config.paddingRight, 0)\n} // function to set starting line length\n\n\nconst validateInput = (text, options) => {\n\n // options validation\n let config = Object.assign({}, defaults(), options || {})\n\n if (config.errorChar) {\n // only allow a single errorChar\n config.errorChar = config.errorChar.split(\"\")[0]\n\n // errorChar must not be wide character\n if (wcwidth(config.errorChar) > 1)\n throw new Error(`Error character cannot be a wide character (${config.errorChar})`)\n }\n\n // make sure correct sign on padding\n config.paddingLeft = Math.abs(config.paddingLeft)\n config.paddingRight = Math.abs(config.paddingRight)\n\n let lineLength = config.width\n - config.paddingLeft\n - config.paddingRight\n\n if(lineLength < config.minWidth) {\n // skip padding if lineLength too narrow\n config.skipPadding = true\n lineLength = config.minWidth\n }\n\n // to trim or not to trim...\n if(config.trim) {\n text = text.trim()\n }\n\n return { text, config, lineLength }\n}\n\n\nconst wrap = (input, options) => {\n\n let { text, config, lineLength } = validateInput(input, options)\n\n // array of characters split by whitespace and/or tabs\n let words = []\n\n if(!config.breakword) {\n // break string into words\n if(config.splitAt.indexOf(\"\\t\")!==-1) {\n // split at both spaces and tabs\n words = text.split(/ |\\t/i)\n } else{\n // split at whitespace\n words = text.split(\" \")\n }\n } else {\n // do not break string into words\n words = [text]\n }\n\n // remove empty array elements\n words = words.filter(val => {\n if (val.length > 0) {\n return true\n }\n })\n\n // assume at least one line\n let lines = [\n []\n ]\n\n let spaceRemaining, splitIndex, word\n let currentLine = 0 // index of current line in 'lines[]'\n let spacesUsed = 0 // spaces used so far on current line\n\n while(words.length > 0) {\n spaceRemaining = calculateSpaceRemaining(lineLength, spacesUsed, config)\n word = words.shift()\n let wordLength = wcwidth(word)\n\n switch(true) {\n\n // too long for an empty line and is a single character\n case(lineLength < wordLength && [...word].length === 1):\n words.unshift(config.errorChar)\n break\n\n // too long for an empty line, must be broken between 2 lines\n case(lineLength < wordLength):\n // break it, then re-insert its parts into words\n // so can loop back to re-handle each word\n splitIndex = breakword(word, lineLength)\n let splitWord = [...word]\n words.unshift(splitWord.slice(0, splitIndex + 1).join(\"\"))\n words.splice(1, 0, splitWord.slice(splitIndex + 1).join(\"\")) // +1 for substr fn\n break\n\n // not enough space remaining in line, must be wrapped to next line\n case(spaceRemaining < wordLength):\n // add a new line to our array of lines\n lines.push([])\n // note carriage to new line in counter\n currentLine++\n // reset the spacesUsed to 0\n spacesUsed = 0\n /* falls through */\n\n // fits on current line\n // eslint-disable-next-line\n default:\n // add word to line\n lines[currentLine].push(word)\n // reduce space remaining (add a space between words)\n spacesUsed += wordLength + 1\n }\n }\n\n lines = lines.map( line => {\n\n // restore spaces to line\n line = line.join(\" \")\n\n // add padding to ends of line\n if(!config.skipPadding) {\n line = Array(config.paddingLeft + 1).join(\" \")\n + line\n + Array(config.paddingRight + 1).join(\" \")\n }\n\n return line\n })\n\n return lines.join(\"\\n\")\n}\n\n\nconst splitAnsiInput = (text) => {\n // get start and end positions for matches\n let matches = []\n let textArr = [...text]\n let textLength = textArr.length\n\n /* eslint-disable */\n var result;\n while((result = ANSIRegex.exec(text)) !== null) {\n matches.push({\n start: result.index,\n end: result.index + result[0].length,\n match: result[0],\n length: result[0].length\n })\n }\n /* eslint-enable */\n\n\n if (matches.length < 1) return [] // we have no ANSI escapes, we're done here\n\n // add start and end positions for non matches\n matches = matches.reduce((prev, curr) => {\n // check if space exists between this and last match\n // get end of previous match\n let prevEnd = prev[prev.length -1]\n\n if (prevEnd.end < curr.start) {\n // insert placeholder\n prev.push({\n start: prevEnd.end,\n end: curr.start,\n length: curr.start - prevEnd.end,\n expand: true\n }, curr)\n } else {\n prev.push(curr)\n }\n return prev\n }, [{start: 0, end: 0}])\n .splice(1) // removes starting accumulator object\n\n\n // add trailing match if necessary\n let lastMatchEnd = matches[matches.length - 1].end\n if (lastMatchEnd < textLength) {\n matches.push({\n start: lastMatchEnd,\n end: textLength,\n expand: true\n })\n }\n\n\n let savedArr = matches.map(match => {\n let value = text.substring(match.start, match.end)\n return (match.expand) ? [...value] : [value]\n }).flat(2)\n\n return savedArr\n}\n\n\nconst restoreANSI = (savedArr, processedArr) => {\n return processedArr.map((char) => {\n let result\n\n if (char === \"\\n\") {\n result = [char]\n } else {\n // add everything saved before character match\n let splicePoint = savedArr.findIndex(element => element === char ) + 1\n result = savedArr.splice(0, splicePoint)\n }\n\n // add all following, consecutive closing tags in case linebreak inerted next\n const ANSIClosePattern = \"^\\\\x1b\\\\[([0-9]+)*m\"\n const ANSICloseRegex = new RegExp(ANSIClosePattern) // eslint-disable-line no-control-regex\n const closeCodes = [\"0\", \"21\", \"22\", \"23\", \"24\", \"25\", \"27\", \"28\", \"29\", \"39\", \"49\", \"54\", \"55\"]\n\n let match\n while (savedArr.length && (match = savedArr[0].match(ANSICloseRegex))) {\n if (!closeCodes.includes(match[1])) break\n result.push(savedArr.shift())\n }\n\n return result.join(\"\")\n }).concat(savedArr)\n}\n\n\nmodule.exports = (input, options) => {\n\n // process each existing line separately to respect existing line breaks\n const processedLines = input.toString().split(\"\\n\").map( string => {\n\n // save input ANSI escape codes to be restored later\n const savedANSI = splitAnsiInput(string)\n\n // strip ANSI\n string = stripansi(string)\n\n // add newlines to string\n string = wrap(string, options)\n\n // convert into array of characters\n let charArr = [...string]\n\n // restore input ANSI escape codes\n charArr = (savedANSI.length > 0) ? restoreANSI(savedANSI, charArr) : charArr\n\n // convert array of single characters into array of lines\n let outArr = charArr.join(\"\").split(\"\\n\")\n\n return outArr\n })\n\n return processedLines.flat(2).join(\"\\n\")\n}\n","export { default } from \"./index\"\nexport type * from \"./types\"\n","import type { BorderCharacters } from \"./types\"\n\n// @TODO split defaults into table and cell settings\nconst defaults: Record<string, any> & { borderCharacters: Record<string, BorderCharacters[]> } = {\n borderCharacters: {\n invisible: [\n { v: \" \", l: \" \", j: \" \", h: \" \", r: \" \" },\n { v: \" \", l: \" \", j: \" \", h: \" \", r: \" \" },\n { v: \" \", l: \" \", j: \" \", h: \" \", r: \" \" }\n ],\n solid: [\n { v: \"│\", l: \"┌\", j: \"┬\", h: \"─\", r: \"┐\" },\n { v: \"│\", l: \"├\", j: \"┼\", h: \"─\", r: \"┤\" },\n { v: \"│\", l: \"└\", j: \"┴\", h: \"─\", r: \"┘\" }\n ],\n dashed: [\n { v: \"|\", l: \"+\", j: \"+\", h: \"-\", r: \"+\" },\n { v: \"|\", l: \"+\", j: \"+\", h: \"-\", r: \"+\" },\n { v: \"|\", l: \"+\", j: \"+\", h: \"-\", r: \"+\" }\n ],\n none: [\n { v: \"\", l: \"\", j: \"\", h: \"\", r: \"\" },\n { v: \"\", l: \"\", j: \"\", h: \"\", r: \"\" },\n { v: \"\", l: \"\", j: \"\", h: \"\", r: \"\" }\n ]\n },\n align: \"center\",\n borderColor: null,\n borderStyle: \"solid\",\n color: false,\n COLUMNS: 80, // if !process.stdout.columns assume redirecting to write stream 80 columns is VT200 standard\n compact: false,\n defaultErrorValue: \"�\",\n defaultValue: \"\",\n errorOnNull: false,\n FIXED_WIDTH: false,\n footerAlign: \"center\",\n footerColor: false,\n formatter: null,\n headerAlign: \"center\",\n headerColor: \"yellow\",\n isNull: false, // undocumented cell setting\n marginLeft: 2,\n marginTop: 1,\n paddingBottom: 0,\n paddingLeft: 1,\n paddingRight: 1,\n paddingTop: 0,\n showHeader: null, // undocumented\n truncate: false,\n width: \"100%\",\n GUTTER: 1, // undocumented\n columnSettings: [],\n // save so cell options can be merged into column options\n table: {\n body: \"\",\n columnInnerWidths: [],\n columnWidths: [],\n columns: [],\n footer: \"\",\n header: \"\", // post-rendered strings.\n height: 0,\n typeLocked: false // once a table type is selected can't switch\n }\n}\n\n// support deprecated border style values\ndefaults.borderCharacters[\"0\"] = defaults.borderCharacters.none!\ndefaults.borderCharacters[\"1\"] = defaults.borderCharacters.solid!\ndefaults.borderCharacters[\"2\"] = defaults.borderCharacters.dashed!\n\nexport default defaults\n","import chalk from \"chalk\"\nimport kleur from \"kleur\"\nimport stripAnsi from \"strip-ansi\"\n\n// use kleur if we are in the browser\nconst colorLib: any = (process && process.stdout) ? chalk : kleur\n\nexport const style = (str: any, ...colors: string[]): string => {\n const out = colors.reduce(function (input: any, color: string) {\n return colorLib[color](input)\n }, str)\n return out\n}\n\nexport const styleEachChar = (str: any, ...colors: string[]): string => {\n // strip existing ansi chars so we dont loop them\n // @ TODO create a really clever workaround so that you can accrete styles\n const chars = [...stripAnsi(str)]\n\n // style each character\n const out = chars.reduce((prev: string, current: string) => {\n const coded = colors.reduce((input: string, color: string) => {\n return colorLib[color](input)\n }, current)\n return prev + coded\n }, \"\")\n\n return out\n}\n\nexport const resetStyle = function (this: any, str: any) {\n this.configure({ reset: true })\n return stripAnsi(str)\n}\n\nexport const colorizeCell = (str: any, cellOptions: any, rowType: string) => {\n let color: any = false // false will keep terminal default\n\n switch (true) {\n case (rowType === \"body\"):\n color = cellOptions.color || color\n break\n\n case (rowType === \"header\"):\n color = cellOptions.headerColor || color\n break\n\n default:\n color = cellOptions.footerColor || color\n }\n\n if (color) {\n str = style(str, color)\n }\n\n return str\n}\n\nexport const isColorEnabled = () => {\n return (process && process.stdout) ? colorLib.level > 0 : colorLib.enabled\n}\n","'use strict';\n\nlet FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true;\nif (typeof process !== 'undefined') {\n\t({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});\n\tisTTY = process.stdout && process.stdout.isTTY;\n}\n\nconst $ = {\n\tenabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== 'dumb' && (\n\t\tFORCE_COLOR != null && FORCE_COLOR !== '0' || isTTY\n\t),\n\n\t// modifiers\n\treset: init(0, 0),\n\tbold: init(1, 22),\n\tdim: init(2, 22),\n\titalic: init(3, 23),\n\tunderline: init(4, 24),\n\tinverse: init(7, 27),\n\thidden: init(8, 28),\n\tstrikethrough: init(9, 29),\n\n\t// colors\n\tblack: init(30, 39),\n\tred: init(31, 39),\n\tgreen: init(32, 39),\n\tyellow: init(33, 39),\n\tblue: init(34, 39),\n\tmagenta: init(35, 39),\n\tcyan: init(36, 39),\n\twhite: init(37, 39),\n\tgray: init(90, 39),\n\tgrey: init(90, 39),\n\n\t// background colors\n\tbgBlack: init(40, 49),\n\tbgRed: init(41, 49),\n\tbgGreen: init(42, 49),\n\tbgYellow: init(43, 49),\n\tbgBlue: init(44, 49),\n\tbgMagenta: init(45, 49),\n\tbgCyan: init(46, 49),\n\tbgWhite: init(47, 49)\n};\n\nfunction run(arr, str) {\n\tlet i=0, tmp, beg='', end='';\n\tfor (; i < arr.length; i++) {\n\t\ttmp = arr[i];\n\t\tbeg += tmp.open;\n\t\tend += tmp.close;\n\t\tif (!!~str.indexOf(tmp.close)) {\n\t\t\tstr = str.replace(tmp.rgx, tmp.close + tmp.open);\n\t\t}\n\t}\n\treturn beg + str + end;\n}\n\nfunction chain(has, keys) {\n\tlet ctx = { has, keys };\n\n\tctx.reset = $.reset.bind(ctx);\n\tctx.bold = $.bold.bind(ctx);\n\tctx.dim = $.dim.bind(ctx);\n\tctx.italic = $.italic.bind(ctx);\n\tctx.underline = $.underline.bind(ctx);\n\tctx.inverse = $.inverse.bind(ctx);\n\tctx.hidden = $.hidden.bind(ctx);\n\tctx.strikethrough = $.strikethrough.bind(ctx);\n\n\tctx.black = $.black.bind(ctx);\n\tctx.red = $.red.bind(ctx);\n\tctx.green = $.green.bind(ctx);\n\tctx.yellow = $.yellow.bind(ctx);\n\tctx.blue = $.blue.bind(ctx);\n\tctx.magenta = $.magenta.bind(ctx);\n\tctx.cyan = $.cyan.bind(ctx);\n\tctx.white = $.white.bind(ctx);\n\tctx.gray = $.gray.bind(ctx);\n\tctx.grey = $.grey.bind(ctx);\n\n\tctx.bgBlack = $.bgBlack.bind(ctx);\n\tctx.bgRed = $.bgRed.bind(ctx);\n\tctx.bgGreen = $.bgGreen.bind(ctx);\n\tctx.bgYellow = $.bgYellow.bind(ctx);\n\tctx.bgBlue = $.bgBlue.bind(ctx);\n\tctx.bgMagenta = $.bgMagenta.bind(ctx);\n\tctx.bgCyan = $.bgCyan.bind(ctx);\n\tctx.bgWhite = $.bgWhite.bind(ctx);\n\n\treturn ctx;\n}\n\nfunction init(open, close) {\n\tlet blk = {\n\t\topen: `\\x1b[${open}m`,\n\t\tclose: `\\x1b[${close}m`,\n\t\trgx: new RegExp(`\\\\x1b\\\\[${close}m`, 'g')\n\t};\n\treturn function (txt) {\n\t\tif (this !== void 0 && this.has !== void 0) {\n\t\t\t!!~this.has.indexOf(open) || (this.has.push(open),this.keys.push(blk));\n\t\t\treturn txt === void 0 ? this : $.enabled ? run(this.keys, txt+'') : txt+'';\n\t\t}\n\t\treturn txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt+'') : txt+'';\n\t};\n}\n\nexport default $;\n","import stripAnsi from \"strip-ansi\"\nimport smartwrap from \"smartwrap\"\nimport wcwidth from \"wcwidth\"\n\nconst addPadding = (config: any, width: number) => {\n return width + config.paddingLeft + config.paddingRight\n}\n\n/**\n * Returns the widest cell give a collection of rows\n *\n * @param object columnOptions\n * @param array rows\n * @param integer columnIndex\n * @returns string\n */\nconst getMaxLength = (columnOptions: any, rows: any[], columnIndex: number) => {\n let iterable: any[]\n\n // add header value, alias to calculate width when applicable\n if (columnOptions && (columnOptions.value || columnOptions.alias)) {\n // string we use from header\n let val: any = columnOptions.alias || columnOptions.value\n val = val.toString()\n // create a row with value in the current columnIndex\n const headerRow = Array(rows[0].length)\n headerRow[columnIndex] = val\n // add header row to new array we will check for max value width\n iterable = rows.slice()\n iterable.push(headerRow)\n } else {\n // no header value, just use rows to derive max width\n iterable = rows\n }\n\n const widest = iterable.reduce((prev: number, row: any) => {\n if (row[columnIndex]) {\n // check cell value is object or scalar\n const value = (row[columnIndex].value) ? row[columnIndex].value : row[columnIndex]\n const width = Math.max(\n ...stripAnsi(value.toString()).split(/[\\n\\r]/).map((s) => wcwidth(s))\n )\n return (width > prev) ? width : prev\n }\n return prev\n }, 0)\n\n return widest\n}\n\n/**\n * Get total width available to this table instance\n *\n *\n */\nconst getAvailableWidth = (config: any) => {\n if (process && ((process.stdout && process.stdout.columns) || (process.env && process.env.COLUMNS))) {\n // forked calls that do not inherit process.stdout must use process.env\n let viewport: any = (process.stdout && process.stdout.columns) ? process.stdout.columns : process.env.COLUMNS\n viewport = viewport - config.marginLeft\n\n // table width percentage of (viewport less margin)\n if (config.width !== \"auto\" && /^\\d+%$/.test(config.width)) {\n return Math.min(1, (config.width.slice(0, -1) * 0.01)) * viewport\n }\n\n // table width fixed\n if (config.width !== \"auto\" && /^\\d+$/.test(config.width)) {\n config.FIXED_WIDTH = true\n return config.width\n }\n\n // table width equals viewport less margin\n // @TODO deprecate and remove \"auto\", which was never documented so should not be\n // an issue\n return viewport\n }\n\n // browser\n /* istanbul ignore next */\n if (typeof (globalThis as any).window !== \"undefined\") return (globalThis as any).window.innerWidth\n\n // process.stdout.columns does not exist. assume redirecting to write stream\n // use 80 columns, which is VT200 standard\n return config.COLUMNS - config.marginLeft\n}\n\nexport const getStringLength = (str: string) => {\n // stripAnsi(string.replace(/[^\\x00-\\xff]/g,'XX')).length\n return wcwidth(stripAnsi(str))\n}\n\nexport const wrapCellText = (\n config: any,\n cellValue: any,\n columnIndex: number,\n cellOptions: any,\n rowType: string\n) => {\n // ANSI chararacters that demarcate the start/end of a line\n const startAnsiRegexp = /^(\\x1b\\[[0-9;]*m)+/\n const endAnsiRegexp = /(\\x1b\\[[0-9;]*m)+$/\n\n // coerce cell value to string\n let str = cellValue.toString()\n\n // store matching ANSI characters\n const startMatches = str.match(startAnsiRegexp) || [\"\"]\n\n // remove ANSI start-of-line chars\n str = str.replace(startAnsiRegexp, \"\")\n\n // store matching ANSI characters so can be later re-attached\n const endMatches = str.match(endAnsiRegexp) || [\"\"]\n\n // remove ANSI end-of-line chars\n str = str.replace(endAnsiRegexp, \"\")\n\n let alignTgt: string\n\n switch (rowType) {\n case (\"header\"):\n alignTgt = \"headerAlign\"\n break\n case (\"body\"):\n alignTgt = \"align\"\n break\n default:\n alignTgt = \"footerAlign\"\n }\n\n // equalize padding for centered lines\n if (cellOptions[alignTgt] === \"center\") {\n cellOptions.paddingLeft = cellOptions.paddingRight = Math.max(\n cellOptions.paddingRight,\n cellOptions.paddingLeft,\n 0\n )\n }\n\n const columnWidth = config.table.columnWidths[columnIndex]\n\n // innerWidth is the width available for text within the cell\n const innerWidth = columnWidth\n - cellOptions.paddingLeft\n - cellOptions.paddingRight\n - config.GUTTER\n\n if (typeof config.truncate === \"string\") {\n str = truncate(str, cellOptions, innerWidth)\n } else {\n str = wrap(str, cellOptions, innerWidth)\n }\n\n // format each line\n const cell = str.split(\"\\n\").map((line: string) => {\n line = line.trim()\n\n const lineLength = getStringLength(line)\n\n // alignment\n if (lineLength < columnWidth) {\n let emptySpace = columnWidth - lineLength\n\n switch (true) {\n case (cellOptions[alignTgt] === \"center\"):\n emptySpace--\n const padBoth = Math.floor(emptySpace / 2)\n const padRemainder = emptySpace % 2\n line = Array(padBoth + 1).join(\" \")\n + line\n + Array(padBoth + 1 + padRemainder).join(\" \")\n break\n\n case (cellOptions[alignTgt] === \"right\"):\n line = Array(emptySpace - cellOptions.paddingRight).join(\" \")\n + line\n + Array(cellOptions.paddingRight + 1).join(\" \")\n break\n\n default:\n line = Array(cellOptions.paddingLeft + 1).join(\" \")\n + line\n + Array(emptySpace - cellOptions.paddingLeft).join(\" \")\n }\n }\n\n // put ANSI color codes BACK on the beginning and end of string\n return startMatches[0] + line + endMatches[0]\n })\n\n return { cell, innerWidth }\n}\n\nexport const truncate = (str: string, cellOptions: any, maxWidth: number) => {\n const stringWidth = wcwidth(str)\n\n if (maxWidth < stringWidth) {\n // @TODO give user option to decide if they want to break words on wrapping\n str = (smartwrap as any)(str, {\n width: maxWidth - cellOptions.truncate.length,\n breakword: true\n }).split(\"\\n\")[0]\n str = str + cellOptions.truncate\n }\n\n return str\n}\n\nexport const wrap = (str: string, cellOptions: any, innerWidth: number) => {\n const outstring = (smartwrap as any)(str, {\n errorChar: cellOptions.defaultErrorValue,\n minWidth: 1,\n trim: true,\n width: innerWidth\n })\n\n return outstring\n}\n\nexport const getColumnWidths = (config: any, rows: any[]) => {\n const availableWidth = getAvailableWidth(config)\n\n // iterate over the header if we have it, iterate over the first row\n // if we do not (to step through the correct number of columns)\n const iterable: any[] = (config.table.header[0] && config.table.header[0].length > 0)\n ? config.table.header[0] : rows[0]\n\n let widths: number[] = iterable.map((column: any, columnIndex: number) => {\n let result: number\n\n switch (true) {\n // column width is a percentage of table width specified in column header\n case (typeof column === \"object\" && (/^\\d+%$/.test(column.width))):\n result = (column.width.slice(0, -1) * 0.01) * availableWidth\n result = addPadding(config, result)\n break\n\n // column width is specified in column header\n case (typeof column === \"object\" && (/^\\d+$/.test(column.width))):\n result = column.width\n break\n\n // 'auto' sets column width to its longest value in the initial data set\n default: {\n const columnOptions = (config.table.header[0][columnIndex])\n ? config.table.header[0][columnIndex] : {}\n const measurableRows = (rows.length) ? rows : config.table.header[0]\n\n result = getMaxLength(columnOptions, measurableRows, columnIndex)\n\n // add spaces for padding if not centered\n // @TODO test with if not centered conditional\n result = addPadding(config, result)\n }\n }\n\n // add space for gutter\n result = result + config.GUTTER\n return result\n })\n\n // calculate sum of all column widths (including marginLeft)\n const totalWidth = widths.reduce((prev: number, current: number) => prev + current)\n\n // proportionately resize columns when necessary\n if (totalWidth > availableWidth || config.FIXED_WIDTH) {\n // proportion wont be exact fit, but this method keeps us safe\n const proportion = (availableWidth / totalWidth).toFixed(2) as unknown as number - 0.01\n const relativeWidths = widths.map((value: number) => Math.max(2, Math.floor(proportion * value)))\n if (config.FIXED_WIDTH) return relativeWidths\n\n // when proportion < 0 column cant be resized and totalWidth must overflow viewport\n if (proportion > 0) {\n const totalRelativeWidths = relativeWidths.reduce((prev: number, current: number) => prev + current)\n widths = (totalRelativeWidths < totalWidth) ? relativeWidths : widths\n }\n } else {\n widths = widths.map(Math.floor)\n }\n\n return widths\n}\n","import { colorizeCell, isColorEnabled, style, resetStyle } from \"./style\"\nimport { wrapCellText, getColumnWidths } from \"./format\"\nimport stripAnsi from \"strip-ansi\"\n\n/**\n * Converts arrays of data into arrays of cell strings\n * @param {TtyTable.Config} config\n * @param {Array<Array<string>|object|TtyTable.Formatter>} inputData\n * @returns {Array<string>}\n */\nexport const stringifyData = (config: any, inputData: any[]) => {\n const sections: any = {\n header: [],\n body: [],\n footer: []\n }\n const marginLeft = Array(config.marginLeft + 1).join(\" \")\n const borderStyle = config.borderCharacters[config.borderStyle]\n const borders: any[] = []\n\n // support backwards compatibility cli-table's multiple constructor geometries\n // @TODO deprecate and support only a single format\n const constructorType = getConstructorGeometry(inputData[0] || [], config)\n const rows = coerceConstructorGeometry(config, inputData, constructorType)\n\n // when streaming values to tty-table, we don't want column widths to change\n // from one rows set to the next, so we save the first set of widths and reuse\n if (!(global as any).columnWidths) {\n (global as any).columnWidths = {}\n }\n\n if ((global as any).columnWidths[config.tableId]) {\n config.table.columnWidths = (global as any).columnWidths[config.tableId]\n } else {\n const formattedRows = rows.map((row: any[], rowIndex: number) => {\n return row.map((cell: any, cellIndex: number) => {\n return buildCell(config, cell, cellIndex, \"body\", rowIndex, rows, inputData, true)\n })\n })\n ;(global as any).columnWidths[config.tableId] = config.table.columnWidths = getColumnWidths(config, formattedRows)\n }\n\n // stringify header cells\n // hide header if no column names or if specified in config\n switch (true) {\n case (config.showHeader !== null && !config.showHeader): // explicitly false, hide\n sections.header = []\n break\n\n case (config.showHeader === true): // explicitly true, show\n case (!!config.table.header[0].find((obj: any) => obj.value || obj.alias)): // atleast one named column, show header\n sections.header = config.table.header.map((row: any[]) => {\n return buildRow(config, row, \"header\", null, rows, inputData)\n })\n break\n\n default: // no named columns, hide\n sections.header = []\n }\n\n // stringify body cells\n sections.body = rows.map((row: any[], rowIndex: number) => {\n return buildRow(config, row, \"body\", rowIndex, rows, inputData)\n })\n\n // stringify footer cells\n sections.footer = (config.table.footer instanceof Array && config.table.footer.length > 0) ? [config.table.footer] : []\n\n sections.footer = sections.footer.map((row: any[]) => {\n return buildRow(config, row, \"footer\", null, rows, inputData)\n })\n\n // apply borders\n // 0=top, 1=middle, 2=bottom\n for (let a = 0; a < 3; a++) {\n // add left border\n borders[a] = borderStyle[a].l\n\n // add joined borders for each column\n config.table.columnWidths.forEach((columnWidth: number, index: number, arr: number[]) => {\n // Math.max because otherwise columns 1 wide wont have horizontal border\n borders[a] += Array(Math.max(columnWidth, 2)).join(borderStyle[a].h)\n borders[a] += ((index + 1 < arr.length) ? borderStyle[a].j : \"\")\n })\n\n // add right border\n borders[a] += borderStyle[a].r\n\n // no trailing space on footer\n borders[a] = (a < 2) ? `${marginLeft + borders[a]}\\n` : marginLeft + borders[a]\n }\n\n // top horizontal border\n let output = borders[0]\n\n // for each section (header,body,footer)\n Object.keys(sections).forEach((p: string, i: number) => {\n // for each row in the section\n while (sections[p].length) {\n const row = sections[p].shift()\n\n // if(row.length === 0) {break}\n\n row.forEach((line: string[]) => {\n // vertical row borders\n output = `${output\n + marginLeft\n // left vertical border\n + borderStyle[1].v\n // join cells on vertical border\n + line.join(borderStyle[1].v)\n // right vertical border\n + borderStyle[1].v\n // end of line\n }\\n`\n })\n\n // bottom horizontal row border\n switch (true) {\n // skip if end of body and no footer\n case (sections[p].length === 0\n && i === 1\n && sections.footer.length === 0):\n break\n\n // skip if end of footer\n case (sections[p].length === 0\n && i === 2):\n break\n\n // skip if compact\n case (config.compact && p === \"body\" && !row.empty):\n break\n\n // skip if border style is \"none\"\n case (config.borderStyle === \"none\" && config.compact):\n break\n\n default:\n output += borders[1]\n }\n }\n })\n\n // bottom horizontal border\n output += borders[2]\n\n const finalOutput = Array(config.marginTop + 1).join(\"\\n\") + output\n\n // record the height of the output\n config.height = finalOutput.split(/\\r\\n|\\r|\\n/).length\n\n return finalOutput\n}\n\nexport const buildRow = (config: any, row: any[], rowType: string, rowIndex: number | null, rowData: any[], inputData: any[]) => {\n let minRowHeight = 0\n\n // tag row as empty if empty, used for `compact` option\n if (row.length === 0 && config.compact) {\n (row as any).empty = true\n return row\n }\n\n // force row to have correct number of columns\n const lengthDifference = config.table.columnWidths.length - row.length\n if (lengthDifference > 0) {\n // array (row) lacks elements, add until equal\n row = row.concat(Array.apply(null, new Array(lengthDifference)).map(() => null))\n } else if (lengthDifference < 0) {\n // array (row) has too many elements, remove until equal\n row.length = config.table.columnWidths.length\n }\n\n // convert each element in row to cell format\n row = row.map((elem: any, elemIndex: number) => {\n const cell = buildCell(config, elem, elemIndex, rowType, rowIndex, rowData, inputData)\n minRowHeight = (minRowHeight < cell.length) ? cell.length : minRowHeight\n return cell\n })\n\n // apply top and bottom padding to row\n minRowHeight = (rowType === \"header\") ? minRowHeight\n : minRowHeight + (config.paddingBottom + config.paddingTop)\n\n const linedRow: any[] = Array.apply(null, { length: minRowHeight } as any)\n .map(Function.call, () => [])\n\n row.forEach(function (cell: string[], a: number) {\n const whitespace = Array(config.table.columnWidths[a]).join(\" \")\n\n if (rowType === \"body\") {\n // add whitespace for top padding\n for (let i = 0; i < config.paddingTop; i++) {\n cell.unshift(whitespace)\n }\n\n // add whitespace for bottom padding\n for (let i = 0; i < config.paddingBottom; i++) {\n cell.push(whitespace)\n }\n }\n\n // a `row` is divided by columns (horizontally)\n // a `linedRow` becomes the row divided instead into an array of vertical lines\n // each nested line divided by columns\n for (let i = 0; i < minRowHeight; i++) {\n linedRow[i].push((typeof cell[i] !== \"undefined\")\n ? cell[i] : whitespace)\n }\n })\n\n return linedRow\n}\n\nexport const buildCell = (config: any, elem: any, columnIndex: number, rowType: string, rowIndex: number | null, rowData: any[], inputData: any[], dryRun = false) => {\n let cellValue: any = null\n\n const cellOptions: any = Object.assign(\n { reset: false },\n config,\n (rowType !== \"header\") ? config.columnSettings[columnIndex] : {},\n (typeof elem === \"object\") ? elem : {}\n )\n\n if (rowType === \"header\") {\n config.table.columns.push(cellOptions)\n cellValue = cellOptions.alias || cellOptions.value || \"\"\n } else {\n // set cellValue\n switch (true) {\n case (typeof elem === \"undefined\" || elem === null):\n // replace undefined/null elem values with placeholder\n cellValue = (config.errorOnNull) ? config.defaultErrorValue : config.defaultValue\n if (!isColorEnabled()) {\n cellValue = stripAnsi(cellValue)\n }\n // @TODO add to elem defaults\n cellOptions.isNull = true\n break\n\n case (typeof elem === \"object\" && elem !== null && typeof elem.value !== \"undefined\"):\n cellValue = elem.value\n break\n\n case (typeof elem === \"function\"):\n cellValue = (elem as Function).bind({\n configure: function (object: any) {\n return Object.assign(cellOptions, object)\n },\n style: style,\n resetStyle: resetStyle\n })(\n cellValue,\n columnIndex,\n rowIndex,\n rowData,\n inputData\n )\n break\n\n default:\n // elem is assumed to be a scalar\n cellValue = elem\n }\n\n // run formatter\n if (rowType === \"body\" && typeof cellOptions.formatter === \"function\") {\n cellValue = cellOptions.formatter\n .bind({\n configure: function (object: any) {\n return Object.assign(cellOptions, object)\n },\n style: style,\n resetStyle: resetStyle\n })(\n cellValue,\n columnIndex,\n rowIndex,\n rowData,\n inputData\n )\n }\n\n if (dryRun) {\n return cellValue\n }\n }\n\n // colorize cellValue\n // we don't want the formatter to pass a styled cell value with ANSI codes\n // (in case user wants to do math or string operations to cell value), so\n // we apply default styles to the cell after it runs through the formatter\n // and omit those default styles if the user applied `this.resetStyle`\n if (!cellOptions.reset) {\n cellValue = colorizeCell(cellValue, cellOptions, rowType)\n }\n\n // textwrap cellValue\n const { cell, innerWidth } = wrapCellText(cellOptions, cellValue, columnIndex, cellOptions, rowType)\n\n if (rowType === \"header\") {\n config.table.columnInnerWidths.push(innerWidth)\n }\n\n return cell\n}\n\n/**\n * Check for a backwards compatible (cli-table) constructor\n */\nexport const getConstructorGeometry = (row: any, config: any) => {\n let type: string\n\n // rows passed as an object\n if (typeof row === \"object\" && !(row instanceof Array)) {\n const keys = Object.keys(row)\n\n if (config.adapter === \"automattic\") {\n // detected cross table\n const key = keys[0]!\n\n if (row[key] instanceof Array) {\n type = \"automattic-cross\"\n } else {\n // detected vertical table\n type = \"automattic-vertical\"\n }\n } else {\n // detected horizontal table\n type = \"o-horizontal\"\n }\n } else {\n // rows passed as an array\n type = \"a-horizontal\"\n }\n\n return type\n}\n\n/**\n * Coerce backwards compatible constructor styles\n */\nexport const coerceConstructorGeometry = (config: any, rows: any[], constructorType: string) => {\n let output: any[] = []\n switch (constructorType) {\n case (\"automattic-cross\"):\n // assign header styles to first column\n config.columnSettings[0] = config.columnSettings[0] || {}\n config.columnSettings[0].color = config.headerColor\n\n output = rows.map((obj: any) => {\n const arr: any[] = []\n const key = Object.keys(obj)[0]!\n arr.push(key)\n return arr.concat(obj[key])\n })\n break\n\n case (\"automattic-vertical\"):\n // assign header styles to first column\n config.columnSettings[0] = config.columnSettings[0] || {}\n config.columnSettings[0].color = config.headerColor\n\n output = rows.map(function (value: any) {\n const key = Object.keys(value)[0]!\n return [key, value[key]]\n })\n break\n\n case (\"o-horizontal\"):\n // cell property names are specified in header columns\n if (config.table.header[0].length\n && config.table.header[0].every((obj: any) => obj.value)) {\n output = rows.map((row: any) => config.table.header[0]\n .map((obj: any) => row[obj.value]))\n } // eslint-disable-line brace-style\n // no property names given, default to object property order\n else {\n output = rows.map((obj: any) => Object.values(obj))\n }\n break\n\n case (\"a-horizontal\"):\n output = rows\n break\n\n default:\n }\n\n return output\n}\n\n// @TODO For rotating horizontal data into a vertical table\n// assumes all rows are same length\n// export const verticalizeMatrix = (config, inputArray) => {\n//\n// // grow to # arrays equal to number of columns in input array\n// let outputArray = []\n// let headers = config.table.columns\n//\n// // create a row for each heading, and prepend the row\n// // with the heading name\n// headers.forEach(name => outputArray.push([name]))\n//\n// inputArray.forEach(row => {\n// row.forEach((element, index) => outputArray[index].push(element))\n// })\n//\n// return outputArray\n// }\n","import defaults from \"./defaults\"\nimport { stringifyData } from \"./render\"\nimport { resetStyle, style, styleEachChar } from \"./style\"\n\nlet counter = 0\n\nexport interface Formatter {\n (cellValue: any, columnIndex: number, rowIndex: number, rowData: any, inputData: any): string\n}\n\nexport interface Header {\n alias?: string\n align?: string\n color?: string\n footerAlign?: string\n footerColor?: string\n formatter?: Formatter\n headerAlign?: string\n headerColor?: string\n marginLeft?: number\n marginTop?: number\n paddingBottom?: number\n paddingLeft?: number\n paddingRight?: number\n paddingTop?: number\n value: string\n width?: string | number\n}\n\nexport interface Options {\n borderStyle?: string\n borderColor?: string\n color?: string\n compact?: boolean\n defaultErrorValue?: string\n defaultValue?: string\n errorOnNull?: boolean\n truncate?: string | boolean\n width?: string | number\n footerColor?: string\n [key: string]: unknown\n}\n\nexport interface Table extends Array<any> {\n render(): string\n height?: number\n [key: string]: any\n}\n\nconst Factory = function (paramsArr: any[]): any {\n const _configKey = (Symbol as any).config // legacy quirk: evaluates to undefined; kept for behavior parity\n let header: any = []\n const body: any[] = []\n let footer: any = []\n let options: any = {}\n\n // handle different parameter scenarios\n switch (true) {\n // header, rows, footer, and options\n case (paramsArr.length === 4):\n header = paramsArr[0]\n body.push(...paramsArr[1]) // creates new array to store our rows (body)\n footer = paramsArr[2]\n options = paramsArr[3]\n break\n\n // header, rows, footer\n case (paramsArr.length === 3 && paramsArr[2] instanceof Array):\n header = paramsArr[0]\n body.push(...paramsArr[1]) // creates new array to store our rows\n footer = paramsArr[2]\n break\n\n // header, rows, options\n case (paramsArr.length === 3 && typeof paramsArr[2] === \"object\"):\n header = paramsArr[0]\n body.push(...paramsArr[1]) // creates new array to store our rows\n options = paramsArr[2]\n break\n\n // header, rows (rows, footer is not an option)\n case (paramsArr.length === 2 && paramsArr[1] instanceof Array):\n header = paramsArr[0]\n body.push(...paramsArr[1]) // creates new array to store our rows\n break\n\n // rows, options\n case (paramsArr.length === 2 && typeof paramsArr[1] === \"object\"):\n body.push(...paramsArr[0]) // creates new array to store our rows\n options = paramsArr[1]\n break\n\n // rows\n case (paramsArr.length === 1 && paramsArr[0] instanceof Array):\n body.push(...paramsArr[0])\n break\n\n // adapter called: i.e. `require('tty-table')('automattic-cli-table')`\n case (paramsArr.length === 1 && typeof paramsArr[0] === \"string\"): {\n // known adapters are mapped statically so bundlers leave them external;\n // a dynamic require(`../adapters/${name}`) fallback would make esbuild\n // eagerly bundle every adapters/* file (candidate scanning), which then\n // fails on their ../dist/index.js requires at build time\n const adapters: Record<string, () => any> = {\n \"automattic-cli-table\": () => require(\"../adapters/automattic-cli-table.js\"),\n \"default-adapter\": () => require(\"../adapters/default-adapter.js\"),\n \"terminal-adapter\": () => require(\"../adapters/terminal-adapter.js\")\n }\n const load = adapters[paramsArr[0]]\n if (!load) throw new Error(`Unknown adapter: \"${paramsArr[0]}\". Available adapters: ${Object.keys(adapters).join(\", \")}`)\n return load()\n }\n\n /* istanbul ignore next */\n default:\n console.log(\"Error: Bad params. \\nSee docs at github.com/tecfu/tty-table\")\n process.exit()\n }\n\n // for \"deep\" copy, use JSON.parse\n const cloneddefaults = JSON.parse(JSON.stringify(defaults))\n const config: any = Object.assign({}, cloneddefaults, options)\n\n // backfixes for shortened option names\n config.align = config.alignment || config.align\n config.headerAlign = config.headerAlignment || config.headerAlign\n\n // for truncate true is equivalent to empty string\n if (config.truncate === true) config.truncate = \"\"\n\n // if borderColor customized, color the border character set\n if (config.borderColor) {\n config.borderCharacters[config.borderStyle]\n = config.borderCharacters[config.borderStyle].map(function (obj: any) {\n Object.keys(obj).forEach(function (key) {\n obj[key] = style(obj[key], config.borderColor)\n })\n return obj\n })\n }\n\n // save a copy for merging columnSettings into cell options\n config.columnSettings = header.slice(0)\n\n // header\n config.table.header = header\n\n // match header geometry with body array\n config.table.header = [config.table.header]\n\n // footer\n config.table.footer = footer\n\n // counting table enables fixed column widths for streams,\n // variable widths for multiple tables simulateously\n if (config.terminalAdapter !== true) {\n counter++ // fix columnwidths for streams\n }\n config.tableId = counter\n\n // create a new object with an Array prototype\n const tableObject: any = Object.create(body)\n\n // save configuration to new object\n tableObject[_configKey] = config\n\n /**\n * Add method to render table to a string\n * @returns {String}\n * @memberof Table\n * @example\n * ```js\n * let str = t1.render();\n * console.log(str); //outputs table\n * ```\n */\n tableObject.render = function (this: any) {\n const output = stringifyData(this[_configKey], this.slice(0)) // get string output\n tableObject.height = this[_configKey].height\n return output\n }\n\n return tableObject\n}\n\ninterface TtyTableFactory {\n (headers: (string | Header | Formatter)[], body: unknown[], footers: (string | Header | Formatter)[], config?: Options): Table\n (header: (string | Header | Formatter)[], body: unknown[], config?: Options): Table\n (body: unknown[], config?: Options): Table\n resetStyle(str: string): string\n style(str: string, ...colors: string[]): string\n}\n\nconst Table = function (...params: any[]) {\n return Factory(params)\n} as unknown as TtyTableFactory\n\nTable.resetStyle = resetStyle\nTable.style = styleEachChar\n\nexport default Table\n","import Factory from \"./factory\"\n\nexport type * from \"./types\"\nexport type { Header, Options, Table, Formatter } from \"./factory\"\n\nexport default Factory\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,aAAO,UAAU,CAAC;AAAA;AAAA;;;ACAlB;AAAA;AAAA;AAEA,aAAO,UAAU,CAAC,EAAC,YAAY,MAAK,IAAI,CAAC,MAAM;AAC9C,cAAM,UAAU;AAAA,UACf;AAAA,UACA;AAAA,QACD,EAAE,KAAK,GAAG;AAEV,eAAO,IAAI,OAAO,SAAS,YAAY,SAAY,GAAG;AAAA,MACvD;AAAA;AAAA;;;ACTA;AAAA;AAAA;AACA,UAAM,YAAY;AAElB,aAAO,UAAU,YAAU,OAAO,WAAW,WAAW,OAAO,QAAQ,UAAU,GAAG,EAAE,IAAI;AAAA;AAAA;;;ACH1F;AAAA;AAAA;AAAA,UAAI,SAAS,WAAW;AACxB;AAoBA,iBAASA,OAAM,QAAQ,UAAU,OAAO,WAAW;AACjD,cAAI;AACJ,cAAI,OAAO,aAAa,UAAU;AAChC,oBAAQ,SAAS;AACjB,wBAAY,SAAS;AACrB,qBAAS,SAAS;AAClB,uBAAW,SAAS;AAAA,UACtB;AAGA,cAAI,aAAa,CAAC;AAClB,cAAI,cA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,KAAK,UAAU,gBAAQ,CAAC;AAC1D,UAAM,SAAc,OAAO,OAAO,CAAC,GAAG,gBAAgB,OAAO;AAG7D,WAAO,QAAQ,OAAO,aAAa,OAAO;AAC1C,WAAO,cAAc,OAAO,mBAAmB,OAAO;AAGtD,QAAI,OAAO,aAAa,KAAM,QAAO,WAAW;AAGhD,QAAI,OAAO,aAAa;AACtB,aAAO,iBAAiB,OAAO,WAAW,IACtC,OAAO,iBAAiB,OAAO,WAAW,EAAE,IAAI,SAAU,KAAU;AACpE,eAAO,KAAK,GAAG,EAAE,QAAQ,SAAU,KAAK;AACtC,cAAI,GAAG,IAAI,MAAM,IAAI,GAAG,GAAG,OAAO,WAAW;AAAA,QAC/C,CAAC;AACD,eAAO;AAAA,MACT,CAAC;AAAA,IACL;AAGA,WAAO,iBAAiB,OAAO,MAAM,CAAC;AAGtC,WAAO,MAAM,SAAS;AAGtB,WAAO,MAAM,SAAS,CAAC,OAAO,MAAM,MAAM;AAG1C,WAAO,MAAM,SAAS;AAItB,QAAI,OAAO,oBAAoB,MAAM;AACnC;AAAA,IACF;AACA,WAAO,UAAU;AAGjB,UAAM,cAAmB,OAAO,OAAO,IAAI;AAG3C,gBAAY,UAAU,IAAI;AAY1B,gBAAY,SAAS,WAAqB;AACxC,YAAM,SAAS,cAAc,KAAK,UAAU,GAAG,KAAK,MAAM,CAAC,CAAC;AAC5D,kBAAY,SAAS,KAAK,UAAU,EAAE;AACtC,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AAUA,MAAM,QAAQ,YAAa,QAAe;AACxC,WAAO,QAAQ,MAAM;AAAA,EACvB;AAEA,QAAM,aAAa;AACnB,QAAM,QAAQ;AAEd,MAAO,kBAAQ;;;ACnMf,MAAO,cAAQ;","names":["clone","parent","depth","defaults","defaults","wcwidth","wcwidth","require","module","exports","input","breakAtLength","str","toString","charArr","index","indexOfLastFitChar","fittableLength","length","char","shift","currentLength","hasPropertyDescriptors","isNaN","require_implementation","concatty","slicy","Empty","undefined","doEval","stringToPath","getBaseIntrinsic","isFinite","require_IsArray","require_shams","require_isPrimitive","require_isPropertyKey","require_implementation","require_floor","truncate","truncate","require_ToString","require_ToObject","require_implementation","require_polyfill","require_shim","require_main","wcwidth","defaults","wrap","chalk","stripAnsi","import_strip_ansi","stripAnsi","wcwidth","smartwrap","import_strip_ansi","stripAnsi"]}