UNPKG

194 kBSource Map (JSON)View Raw
1{"version":3,"sources":["webpack://deepEqualX/webpack/universalModuleDefinition","webpack://deepEqualX/webpack/bootstrap","webpack://deepEqualX/./node_modules/is-primitive/index.js","webpack://deepEqualX/./node_modules/is-symbol/index.js","webpack://deepEqualX/./node_modules/is-string/index.js","webpack://deepEqualX/./node_modules/is-arguments/index.js","webpack://deepEqualX/./node_modules/is-date-object/index.js","webpack://deepEqualX/./node_modules/is-object/index.js","webpack://deepEqualX/./node_modules/is-buffer/index.js","webpack://deepEqualX/./node_modules/stable/stable.js","webpack://deepEqualX/./node_modules/object-keys/isArguments.js","webpack://deepEqualX/./node_modules/object-keys/index.js","webpack://deepEqualX/./node_modules/has-symbols/index.js","webpack://deepEqualX/(webpack)/buildin/global.js","webpack://deepEqualX/./node_modules/has-symbols/shams.js","webpack://deepEqualX/./node_modules/object-keys/implementation.js","webpack://deepEqualX/../src/to-string-tag-x.js","webpack://deepEqualX/../src/attempt-x.js","webpack://deepEqualX/../src/to-boolean-x.js","webpack://deepEqualX/../src/has-symbol-support-x.js","webpack://deepEqualX/../src/has-to-string-tag-x.js","webpack://deepEqualX/../src/is-nil-x.js","webpack://deepEqualX/../src/require-object-coercible-x.js","webpack://deepEqualX/../src/to-string-x.js","webpack://deepEqualX/../src/require-coercible-to-string-x.js","webpack://deepEqualX/../src/white-space-x.js","webpack://deepEqualX/../src/trim-left-x.js","webpack://deepEqualX/../src/trim-right-x.js","webpack://deepEqualX/../src/trim-x.js","webpack://deepEqualX/../src/normalize-space-x.js","webpack://deepEqualX/../src/replace-comments-x.js","webpack://deepEqualX/../src/is-function-x.js","webpack://deepEqualX/../src/is-object-like-x.js","webpack://deepEqualX/../src/to-object-x.js","webpack://deepEqualX/../src/get-prototype-of-x.js","webpack://deepEqualX/../src/is-error-x.js","webpack://deepEqualX/../src/to-primitive-x.js","webpack://deepEqualX/../src/to-property-key-x.js","webpack://deepEqualX/../src/has-own-property-x.js","webpack://deepEqualX/../src/to-string-symbols-supported-x.js","webpack://deepEqualX/../src/nan-x.js","webpack://deepEqualX/../src/parse-int-x.js","webpack://deepEqualX/../src/to-number-x.js","webpack://deepEqualX/../src/is-nan-x.js","webpack://deepEqualX/../src/infinity-x.js","webpack://deepEqualX/../src/is-finite-x.js","webpack://deepEqualX/../src/math-sign-x.js","webpack://deepEqualX/../src/to-integer-x.js","webpack://deepEqualX/../src/math-clamp-x.js","webpack://deepEqualX/../src/is-index-x.js","webpack://deepEqualX/../src/property-is-enumerable-x.js","webpack://deepEqualX/../src/object-get-own-property-descriptor-x.js","webpack://deepEqualX/../src/is-integer-x.js","webpack://deepEqualX/../src/is-safe-integer-x.js","webpack://deepEqualX/../src/is-length-x.js","webpack://deepEqualX/../src/is-map-x.js","webpack://deepEqualX/../src/is-set-x.js","webpack://deepEqualX/../src/assert-is-object-x.js","webpack://deepEqualX/../src/object-define-property-x.js","webpack://deepEqualX/../src/is-regexp-x.js","webpack://deepEqualX/../src/to-length-x.js","webpack://deepEqualX/../src/same-value-x.js","webpack://deepEqualX/../src/same-value-zero-x.js","webpack://deepEqualX/../src/assert-is-function-x.js","webpack://deepEqualX/../src/has-boxed-string-x.js","webpack://deepEqualX/../src/split-if-boxed-bug-x.js","webpack://deepEqualX/../src/find-index-x.js","webpack://deepEqualX/../src/is-array-like-x.js","webpack://deepEqualX/../src/calculate-from-index-x.js","webpack://deepEqualX/../src/index-of-x.js","webpack://deepEqualX/../src/is-array-x.js","webpack://deepEqualX/../src/array-like-slice-x.js","webpack://deepEqualX/../src/array-slice-x.js","webpack://deepEqualX/../src/array-some-x.js","webpack://deepEqualX/../src/array-filter-x.js","webpack://deepEqualX/../src/object-keys-x.js","webpack://deepEqualX/../src/deep-equal-x.js"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;AACD,O;AC1BA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACda;;AAEb;AACA,iBAAiB,mBAAO,CAAC,EAAa;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,SAAS,MAAK,IAAI,KAAK;AACvB;AACA;;;;;;;;AClCa;;AAEb;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAiC,aAAa;AAC9C,iCAAiC,cAAc;AAC/C;AACA;;;;;;;;ACnBa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,0DAA0D;;AAE1D;;;;;;;;AC9Ba;;AAEb;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mDAAmD,cAAc;AACjE;AACA;;;;;;;;ACnBa;;AAEb;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;ACVA;AACA;;AAEA;AACA,EAAE,KAA4D;AAC9D,EAAE,SAC2B;AAC7B,CAAC,qBAAqB;;AAEtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,WAAW;AAChC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;;;;;;;;AC5GY;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBa;;AAEb;AACA,aAAa,mBAAO,CAAC,CAAe;;AAEpC;AACA,4CAA4C,oBAAoB,EAAE,GAAG,mBAAO,CAAC,EAAkB;;AAE/F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,8CAAa;;AAEb;AACA,oBAAoB,mBAAO,CAAC,EAAS;;AAErC;AACA,wCAAwC,cAAc;AACtD,oCAAoC,cAAc;AAClD,6CAA6C,cAAc;AAC3D,yCAAyC,cAAc;;AAEvD;AACA;;;;;;;;ACZA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACnBa;;AAEb;AACA;AACA,0FAA0F,cAAc;AACxG,2CAA2C,aAAa;;AAExD;AACA;AACA;AACA,+BAA+B,cAAc;;AAE7C,iEAAiE,cAAc;AAC/E,oEAAoE,cAAc;;AAElF;AACA,gCAAgC,cAAc;AAC9C;AACA,sCAAsC,cAAc;;AAEpD,0DAA0D,cAAc;AACxE,8DAA8D,cAAc;;AAE5E;AACA;AACA,mBAAmB,cAAc,EAAE;AACnC,0EAA0E,cAAc;;AAExF,wGAAwG,cAAc;;AAEtH;AACA,4CAA4C,cAAc;;AAE1D,6DAA6D,cAAc;;AAE3E;AACA;AACA,sEAAsE,cAAc;AACpF;;AAEA;AACA;;;;;;;;ACzCa;;AAEb;AACA;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,CAAe,EAAE;AACvC;AACA,0CAA0C,iBAAiB;AAC3D,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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Q,IAAR,CAAP,KAAyB,aAA7B,EAA4C;AAC1C,cAAM,IAAI,UAAJ,CAAe,iBAAf,CAAN;AACD;;AAED,WAAK,CAAC,IAAN,CAAW,IAAX;AACD;;AAED,QAAM,MAAM,GAAG,aAAa,CAAC,IAAD,EAAO,OAAO,CAAC,QAAD,EAAW,GAAX,EAAgB,SAAhB,EAA2B,KAA3B,CAAd,EAAiD,MAAjD,EAAyD,KAAzD,CAAb,KAAiF,KAAhG;;AAEA,QAAI,MAAM,KAAK,KAAf,EAAsB;AACpB,WAAK,CAAC,GAAN;AACD;;AAED,WAAO,MAAP;AACD,GAzBG,CAAJ,KAyBO,KA1BT;AA4BD,CArJD;AAuJA;;;;;;;;;;;;;;;;;AAeA,IAAM,SAAS,GAAG,SAAS,SAAT,CAAmB,MAAnB,EAA2B,QAA3B,EAAqC,MAArC,EAA6C;AAC7D,SAAO,aAAa,CAAC,MAAD,EAAS,QAAT,EAAmB,MAAnB,CAApB;AACD,CAFD;;AAIe,+FAAf","file":"deep-equal-x.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"deepEqualX\"] = factory();\n\telse\n\t\troot[\"deepEqualX\"] = factory();\n})((function () {\n 'use strict';\n\n if (typeof self !== 'undefined') {\n return self;\n }\n\n if (typeof window !== 'undefined') {\n return window;\n }\n\n if (typeof global !== 'undefined') {\n return global;\n }\n\n return Function('return this')();\n}()), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 14);\n","/*!\n * is-primitive <https://github.com/jonschlinkert/is-primitive>\n *\n * Copyright (c) 2014-present, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isPrimitive(val) {\n if (typeof val === 'object') {\n return val === null;\n }\n return typeof val !== 'function';\n};\n","'use strict';\n\nvar toStr = Object.prototype.toString;\nvar hasSymbols = require('has-symbols')();\n\nif (hasSymbols) {\n\tvar symToStr = Symbol.prototype.toString;\n\tvar symStringRegex = /^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 symStringRegex.test(symToStr.call(value));\n\t};\n\n\tmodule.exports = function isSymbol(value) {\n\t\tif (typeof value === 'symbol') {\n\t\t\treturn true;\n\t\t}\n\t\tif (toStr.call(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\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\nvar strValue = String.prototype.valueOf;\nvar tryStringObject = function tryStringObject(value) {\n\ttry {\n\t\tstrValue.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar strClass = '[object String]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isString(value) {\n\tif (typeof value === 'string') { return true; }\n\tif (typeof value !== 'object') { return false; }\n\treturn hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;\n};\n","'use strict';\n\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\nvar toStr = Object.prototype.toString;\n\nvar isStandardArguments = function isArguments(value) {\n\tif (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {\n\t\treturn false;\n\t}\n\treturn toStr.call(value) === '[object Arguments]';\n};\n\nvar isLegacyArguments = function isArguments(value) {\n\tif (isStandardArguments(value)) {\n\t\treturn true;\n\t}\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.length === 'number' &&\n\t\tvalue.length >= 0 &&\n\t\ttoStr.call(value) !== '[object Array]' &&\n\t\ttoStr.call(value.callee) === '[object Function]';\n};\n\nvar supportsStandardArguments = (function () {\n\treturn isStandardArguments(arguments);\n}());\n\nisStandardArguments.isLegacyArguments = isLegacyArguments; // for tests\n\nmodule.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n","'use strict';\n\nvar getDay = Date.prototype.getDay;\nvar tryDateObject = function tryDateObject(value) {\n\ttry {\n\t\tgetDay.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\nvar toStr = Object.prototype.toString;\nvar dateClass = '[object Date]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isDateObject(value) {\n\tif (typeof value !== 'object' || value === null) { return false; }\n\treturn hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;\n};\n","\"use strict\";\n\nmodule.exports = function isObject(x) {\n\treturn typeof x === \"object\" && x !== null;\n};\n","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */\n\nmodule.exports = function isBuffer (obj) {\n return obj != null && obj.constructor != null &&\n typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n","//! stable.js 0.1.8, https://github.com/Two-Screen/stable\n//! © 2018 Angry Bytes and contributors. MIT licensed.\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global.stable = factory());\n}(this, (function () { 'use strict';\n\n // A stable array sort, because `Array#sort()` is not guaranteed stable.\n // This is an implementation of merge sort, without recursion.\n\n var stable = function (arr, comp) {\n return exec(arr.slice(), comp)\n };\n\n stable.inplace = function (arr, comp) {\n var result = exec(arr, comp);\n\n // This simply copies back if the result isn't in the original array,\n // which happens on an odd number of passes.\n if (result !== arr) {\n pass(result, null, arr.length, arr);\n }\n\n return arr\n };\n\n // Execute the sort using the input array and a second buffer as work space.\n // Returns one of those two, containing the final result.\n function exec(arr, comp) {\n if (typeof(comp) !== 'function') {\n comp = function (a, b) {\n return String(a).localeCompare(b)\n };\n }\n\n // Short-circuit when there's nothing to sort.\n var len = arr.length;\n if (len <= 1) {\n return arr\n }\n\n // Rather than dividing input, simply iterate chunks of 1, 2, 4, 8, etc.\n // Chunks are the size of the left or right hand in merge sort.\n // Stop when the left-hand covers all of the array.\n var buffer = new Array(len);\n for (var chk = 1; chk < len; chk *= 2) {\n pass(arr, comp, chk, buffer);\n\n var tmp = arr;\n arr = buffer;\n buffer = tmp;\n }\n\n return arr\n }\n\n // Run a single pass with the given chunk size.\n var pass = function (arr, comp, chk, result) {\n var len = arr.length;\n var i = 0;\n // Step size / double chunk size.\n var dbl = chk * 2;\n // Bounds of the left and right chunks.\n var l, r, e;\n // Iterators over the left and right chunk.\n var li, ri;\n\n // Iterate over pairs of chunks.\n for (l = 0; l < len; l += dbl) {\n r = l + chk;\n e = r + chk;\n if (r > len) r = len;\n if (e > len) e = len;\n\n // Iterate both chunks in parallel.\n li = l;\n ri = r;\n while (true) {\n // Compare the chunks.\n if (li < r && ri < e) {\n // This works for a regular `sort()` compatible comparator,\n // but also for a simple comparator like: `a > b`\n if (comp(arr[li], arr[ri]) <= 0) {\n result[i++] = arr[li++];\n }\n else {\n result[i++] = arr[ri++];\n }\n }\n // Nothing to compare, just flush what's left.\n else if (li < r) {\n result[i++] = arr[li++];\n }\n else if (ri < e) {\n result[i++] = arr[ri++];\n }\n // Both iterators are at the chunk ends.\n else {\n break\n }\n }\n }\n };\n\n return stable;\n\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 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\nvar origSymbol = global.Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","'use strict';\n\n/* eslint complexity: [2, 17], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar 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","const nativeObjectToString = {}.toString;\n\n/**\n * The `toStringTag` method returns \"[object type]\", where type is the\n * object type.\n *\n * @param {*} [value] - The object of which to get the object type string.\n * @returns {string} The object type string.\n */\nconst toStringTag = function toStringTag(value) {\n if (value === null) {\n return '[object Null]';\n }\n\n if (typeof value === 'undefined') {\n return '[object Undefined]';\n }\n\n return nativeObjectToString.call(value);\n};\n\nexport default toStringTag;\n","/**\n * This method attempts to invoke the function, returning either the result or\n * the caught error object. Any additional arguments are provided to the\n * function when it's invoked.\n *\n * @param {Function} [fn] - The function to attempt.\n * @param {...*} [args] - The arguments to invoke the function with.\n * @returns {object} Returns an object of the result.\n */\nconst attempt = function attempt(fn, ...args) {\n try {\n return {\n threw: false,\n /* eslint-disable-next-line babel/no-invalid-this */\n value: fn.apply(this, args),\n };\n } catch (e) {\n return {\n threw: true,\n value: e,\n };\n }\n};\n\nexport default attempt;\n","/**\n * The abstract operation ToBoolean converts argument to a value of type Boolean.\n *\n * @param {*} [value] - The value to be converted.\n * @returns {boolean} 'true' if value is truthy; otherwise 'false'.\n */\nconst toBoolean = function toBoolean(value) {\n return !!value;\n};\n\nexport default toBoolean;\n","import attempt from 'attempt-x';\nimport isSymbol from 'is-symbol';\n\nconst hasSymbolSupport = attempt(() => {\n /* eslint-disable-next-line compat/compat */\n return typeof Symbol === 'function' && isSymbol(Symbol(''));\n});\n\n/**\n * Indicates if `Symbol`exists and creates the correct type.\n * `true`, if it exists and creates the correct type, otherwise `false`.\n *\n * @type boolean\n */\nexport default hasSymbolSupport.threw === false && hasSymbolSupport.value === true;\n","import hasSymbols from 'has-symbol-support-x';\nimport isSymbol from 'is-symbol';\n\n/**\n * Indicates if `Symbol.toStringTag`exists and is the correct type.\n * `true`, if it exists and is the correct type, otherwise `false`.\n *\n * @type boolean\n */\nexport default hasSymbols &&\n /* eslint-disable-next-line compat/compat */\n isSymbol(Symbol.toStringTag);\n","/**\n * Checks if `value` is `null` or `undefined`.\n *\n * @param {*} [value] - The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n */\nconst isNil = function isNil(value) {\n /* eslint-disable-next-line lodash/prefer-is-nil */\n return value === null || typeof value === 'undefined';\n};\n\nexport default isNil;\n","import isNil from 'is-nil-x';\n\n/**\n * The abstract operation RequireObjectCoercible throws an error if argument\n * is a value that cannot be converted to an Object using ToObject.\n *\n * @param {*} [value] - The `value` to check.\n * @throws {TypeError} If `value` is a `null` or `undefined`.\n * @returns {string} The `value`.\n */\nconst requireObjectCoercible = function requireObjectCoercible(value) {\n if (isNil(value)) {\n throw new TypeError(`Cannot call method on ${value}`);\n }\n\n return value;\n};\n\nexport default requireObjectCoercible;\n","import isSymbol from 'is-symbol';\n\nconst ERROR_MESSAGE = 'Cannot convert a Symbol value to a string';\nconst castString = ERROR_MESSAGE.constructor;\n/**\n * The abstract operation ToString converts argument to a value of type String.\n *\n * @param {*} [value] - The value to convert to a string.\n * @throws {TypeError} If `value` is a Symbol.\n * @returns {string} The converted value.\n */\nconst ToString = function ToString(value) {\n if (isSymbol(value)) {\n throw new TypeError(ERROR_MESSAGE);\n }\n\n return castString(value);\n};\n\nexport default ToString;\n","import requireObjectCoercible from 'require-object-coercible-x';\nimport toStr from 'to-string-x';\n\n/**\n * This method requires an argument is corecible then converts using ToString.\n *\n * @param {*} [value] - The value to converted to a string.\n * @throws {TypeError} If value is null or undefined.\n * @returns {string} The value as a string.\n */\nconst requireCoercibleToString = function requireCoercibleToString(value) {\n return toStr(requireObjectCoercible(value));\n};\n\nexport default requireCoercibleToString;\n","/**\n * A record of a white space character.\n *\n * @typedef {object} CharRecord\n * @property {number} code - The character code.\n * @property {string} description - A description of the character.\n * @property {boolean} es5 - Whether the spec lists this as a white space.\n * @property {boolean} es2015 - Whether the spec lists this as a white space.\n * @property {boolean} es2016 - Whether the spec lists this as a white space.\n * @property {boolean} es2017 - Whether the spec lists this as a white space.\n * @property {boolean} es2018 - Whether the spec lists this as a white space.\n * @property {string} string - The character string.\n */\n\n/**\n * An array of the whitespace char codes, string, descriptions and language\n * presence in the specifications.\n *\n * @type Array.<CharRecord>\n */\nexport const list = [\n {\n code: 0x0009,\n description: 'Tab',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u0009',\n },\n {\n code: 0x000a,\n description: 'Line Feed',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u000a',\n },\n {\n code: 0x000b,\n description: 'Vertical Tab',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u000b',\n },\n {\n code: 0x000c,\n description: 'Form Feed',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u000c',\n },\n {\n code: 0x000d,\n description: 'Carriage Return',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u000d',\n },\n {\n code: 0x0020,\n description: 'Space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u0020',\n },\n /*\n {\n code: 0x0085,\n description: 'Next line',\n es5: false,\n es2015: false,\n es2016: false,\n es2017: false,\n es2018: false,\n string: '\\u0085'\n }\n */\n {\n code: 0x00a0,\n description: 'No-break space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u00a0',\n },\n {\n code: 0x1680,\n description: 'Ogham space mark',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u1680',\n },\n {\n code: 0x180e,\n description: 'Mongolian vowel separator',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: false,\n es2018: false,\n string: '\\u180e',\n },\n {\n code: 0x2000,\n description: 'En quad',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2000',\n },\n {\n code: 0x2001,\n description: 'Em quad',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2001',\n },\n {\n code: 0x2002,\n description: 'En space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2002',\n },\n {\n code: 0x2003,\n description: 'Em space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2003',\n },\n {\n code: 0x2004,\n description: 'Three-per-em space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2004',\n },\n {\n code: 0x2005,\n description: 'Four-per-em space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2005',\n },\n {\n code: 0x2006,\n description: 'Six-per-em space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2006',\n },\n {\n code: 0x2007,\n description: 'Figure space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2007',\n },\n {\n code: 0x2008,\n description: 'Punctuation space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2008',\n },\n {\n code: 0x2009,\n description: 'Thin space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2009',\n },\n {\n code: 0x200a,\n description: 'Hair space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u200a',\n },\n /*\n {\n code: 0x200b,\n description: 'Zero width space',\n es5: false,\n es2015: false,\n es2016: false,\n es2017: false,\n es2018: false,\n string: '\\u200b'\n },\n */\n {\n code: 0x2028,\n description: 'Line separator',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2028',\n },\n {\n code: 0x2029,\n description: 'Paragraph separator',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u2029',\n },\n {\n code: 0x202f,\n description: 'Narrow no-break space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u202f',\n },\n {\n code: 0x205f,\n description: 'Medium mathematical space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u205f',\n },\n {\n code: 0x3000,\n description: 'Ideographic space',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\u3000',\n },\n {\n code: 0xfeff,\n description: 'Byte Order Mark',\n es5: true,\n es2015: true,\n es2016: true,\n es2017: true,\n es2018: true,\n string: '\\ufeff',\n },\n];\n\n/**\n * A string of the ES5 to ES2016 whitespace characters.\n *\n * @type string\n */\nlet stringES2016 = '';\n\n/**\n * A string of the ES2017 to ES2018 whitespace characters.\n *\n * @type string\n */\nlet stringES2018 = '';\nconst {length} = list;\nfor (let i = 0; i < length; i += 1) {\n if (list[i].es2016) {\n stringES2016 += list[i].string;\n }\n\n if (list[i].es2018) {\n stringES2018 += list[i].string;\n }\n}\n\nconst string2018 = stringES2018;\n\nexport default string2018;\nexport const string2016 = stringES2016;\n","import requireCoercibleToString from 'require-coercible-to-string-x';\nimport whiteSpace, {string2016} from 'white-space-x';\n\nconst EMPTY_STRING = '';\nconst RegExpCtr = /none/.constructor;\nconst reLeft2016 = new RegExpCtr(`^[${string2016}]+`);\nconst reLeft = new RegExpCtr(`^[${whiteSpace}]+`);\nconst {replace} = EMPTY_STRING;\n\n/**\n * This method removes whitespace from the left end of a string. (ES2016).\n *\n * @param {string} [string] - The string to trim the left end whitespace from.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The left trimmed string.\n */\nexport function trimLeft2016(string) {\n return replace.call(requireCoercibleToString(string), reLeft2016, EMPTY_STRING);\n}\n\n/**\n * This method removes whitespace from the left end of a string. (ES2018).\n *\n * @param {string} [string] - The string to trim the left end whitespace from.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The left trimmed string.\n */\nconst trimLeft2018 = function trimLeft2018(string) {\n return replace.call(requireCoercibleToString(string), reLeft, EMPTY_STRING);\n};\n\nexport default trimLeft2018;\n","import requireCoercibleToString from 'require-coercible-to-string-x';\nimport whiteSpace, {string2016} from 'white-space-x';\n\nconst EMPTY_STRING = '';\nconst RegExpCtr = /none/.constructor;\nconst reRight2016 = new RegExpCtr(`[${string2016}]+$`);\nconst reRight2018 = new RegExpCtr(`[${whiteSpace}]+$`);\nconst {replace} = EMPTY_STRING;\n\n/**\n * This method removes whitespace from the right end of a string. (ES2016).\n *\n * @param {string} [string] - The string to trim the right end whitespace from.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The right trimmed string.\n */\nexport function trimRight2016(string) {\n return replace.call(requireCoercibleToString(string), reRight2016, EMPTY_STRING);\n}\n\n/**\n * This method removes whitespace from the right end of a string. (ES2018).\n *\n * @param {string} [string] - The string to trim the right end whitespace from.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The right trimmed string.\n */\nconst trimRight2018 = function trimRight2018(string) {\n return replace.call(requireCoercibleToString(string), reRight2018, EMPTY_STRING);\n};\n\nexport default trimRight2018;\n","import trimLeft, {trimLeft2016} from 'trim-left-x';\nimport trimRight, {trimRight2016} from 'trim-right-x';\n\n/**\n * This method removes whitespace from the left and right end of a string.\n * (ES2016).\n *\n * @param {string} [string] - The string to trim the whitespace from.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The trimmed string.\n */\nexport function trim2016(string) {\n return trimLeft2016(trimRight2016(string));\n}\n\n/**\n * This method removes whitespace from the left and right end of a string.\n * (ES2018).\n *\n * @param {string} [string] - The string to trim the whitespace from.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The trimmed string.\n */\nconst trim2018 = function trim2018(string) {\n return trimLeft(trimRight(string));\n};\n\nexport default trim2018;\n","import trim, {trim2016} from 'trim-x';\nimport whiteSpace, {string2016} from 'white-space-x';\n\nconst SPACE = ' ';\nconst RegExpCtr = /none/.constructor;\nconst reNormalize2016 = new RegExpCtr(`[${string2016}]+`, 'g');\nconst reNormalize2018 = new RegExpCtr(`[${whiteSpace}]+`, 'g');\nconst {replace} = SPACE;\n\n/**\n * This method strips leading and trailing white-space from a string,\n * replaces sequences of whitespace characters by a single space,\n * and returns the resulting string. (ES2016).\n *\n * @param {string} [string] - The string to be normalized.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @returns {string} The normalized string.\n */\nexport function normalizeSpace2016(string) {\n return replace.call(trim2016(string), reNormalize2016, SPACE);\n}\n\n/**\n * This method strips leading and trailing white-space from a string,\n * replaces sequences of whitespace characters by a single space,\n * and returns the resulting string. (ES2018).\n *\n * @param {string} [string] - The string to be normalized.\n * @throws {TypeError} If string is null or undefined or not coercible.\n */\nconst normalizeSpace2018 = function normalizeSpace2018(string) {\n return replace.call(trim(string), reNormalize2018, SPACE);\n};\n\nexport default normalizeSpace2018;\n","import toStr from 'to-string-x';\nimport requireCoercibleToString from 'require-coercible-to-string-x';\n\nconst EMPTY_STRING = '';\nconst STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/gm;\nconst {replace} = EMPTY_STRING;\n\n/**\n * This method replaces comments in a string.\n *\n * @param {string} [string] - The string to be stripped.\n * @param {string} [replacement=''] - The string to be used as a replacement.\n * @throws {TypeError} If string is null or undefined or not coercible.\n * @throws {TypeError} If replacement is not coercible.\n * @returns {string} The new string with the comments replaced.\n */\nconst replaceComments = function replaceComments(string, replacement) {\n return replace.call(requireCoercibleToString(string), STRIP_COMMENTS, arguments.length > 1 ? toStr(replacement) : EMPTY_STRING);\n};\n\nexport default replaceComments;\n","import attempt from 'attempt-x';\nimport toBoolean from 'to-boolean-x';\nimport toStringTag from 'to-string-tag-x';\nimport hasToStringTag from 'has-to-string-tag-x';\nimport isPrimitive from 'is-primitive';\nimport normalise from 'normalize-space-x';\nimport deComment from 'replace-comments-x';\n\nconst FunctionCtr = attempt.constructor;\nconst castBoolean = true.constructor;\nconst SPACE = ' ';\nconst fToString = attempt.toString;\nconst funcTag = '[object Function]';\nconst genTag = '[object GeneratorFunction]';\nconst asyncTag = '[object AsyncFunction]';\nconst ctrRx = /^class /;\nconst {test} = ctrRx;\n\nconst hasNativeClass =\n attempt(() => {\n /* eslint-disable-next-line babel/new-cap */\n return FunctionCtr('\"use strict\"; return class My {};')();\n }).threw === false;\n\nconst testClassstring = function _testClassstring(value) {\n return test.call(ctrRx, normalise(deComment(fToString.call(value), SPACE)));\n};\n\nconst isES6ClassFn = function isES6ClassFunc(value) {\n const result = attempt(testClassstring, value);\n\n return result.threw === false && result.value;\n};\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @private\n * @param {*} value - The value to check.\n * @param {boolean} allowClass - Whether to filter ES6 classes.\n * @returns {boolean} Returns `true` if `value` is correctly classified,\n * else `false`.\n */\nconst tryFuncToString = function funcToString(value, allowClass) {\n if (hasNativeClass && allowClass === false && isES6ClassFn(value)) {\n return false;\n }\n\n return attempt.call(value, fToString).threw === false;\n};\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @param {*} value - The value to check.\n * @param {boolean} [allowClass=false] - Whether to filter ES6 classes.\n * @returns {boolean} Returns `true` if `value` is correctly classified,\n * else `false`.\n */\nconst isFunction = function isFunction(value, allowClass) {\n if (isPrimitive(value)) {\n return false;\n }\n\n if (hasToStringTag) {\n return tryFuncToString(value, toBoolean(allowClass));\n }\n\n if (hasNativeClass && castBoolean(allowClass) === false && isES6ClassFn(value)) {\n return false;\n }\n\n const strTag = toStringTag(value);\n\n return strTag === funcTag || strTag === genTag || strTag === asyncTag;\n};\n\nexport default isFunction;\n","import isFunction from 'is-function-x';\nimport isPrimitive from 'is-primitive';\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not a\n * primitive and not a function.\n *\n * @param {*} [value] - The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nconst isObjectLike = function isObjectLike(value) {\n return isPrimitive(value) === false && isFunction(value, true) === false;\n};\n\nexport default isObjectLike;\n","import requireObjectCoercible from 'require-object-coercible-x';\n\nconst castObject = {}.constructor;\n\n/**\n * The abstract operation ToObject converts argument to a value of\n * type Object.\n *\n * @param {*} value - The `value` to convert.\n * @throws {TypeError} If `value` is a `null` or `undefined`.\n * @returns {!object} The `value` converted to an object.\n */\nconst toObject = function toObject(value) {\n return castObject(requireObjectCoercible(value));\n};\n\nexport default toObject;\n","import isFunction from 'is-function-x';\nimport toObject from 'to-object-x';\n\n/**\n * This method returns the prototype (i.e. The value of the internal [[Prototype]] property)\n * of the specified object.\n *\n * @function getPrototypeOf\n * @param {*} obj - The object whose prototype is to be returned.\n * @returns {object} The prototype of the given object. If there are no inherited properties, null is returned.\n */\nlet gpo;\n\ngpo = {}.getPrototypeOf;\n\nif (gpo) {\n try {\n gpo = gpo(Object) === {}.prototype && gpo;\n } catch (ignore) {\n gpo = null;\n }\n}\n\nif (gpo) {\n try {\n gpo(1);\n } catch (ignore) {\n /** @type {Function} */\n const $getPrototypeOf = gpo;\n gpo = function getPrototypeOf(obj) {\n return $getPrototypeOf(toObject(obj));\n };\n }\n} else {\n gpo = function getPrototypeOf(obj) {\n const object = toObject(obj);\n /* eslint-disable-next-line no-proto */\n const proto = object.__proto__;\n\n if (proto || proto === null) {\n return proto;\n }\n\n if (isFunction(object.constructor)) {\n return object.constructor.prototype;\n }\n\n if (object instanceof Object) {\n return Object.prototype;\n }\n\n return null;\n };\n}\n\nconst getPO = gpo;\n\nexport default getPO;\n","import toStringTag from 'to-string-tag-x';\nimport isObjectLike from 'is-object-like-x';\nimport $getPrototypeOf from 'get-prototype-of-x';\n\nlet errorCheck = function checkIfError(value) {\n return toStringTag(value) === '[object Error]';\n};\n\nif (errorCheck(Error.prototype) === false) {\n const errorProto = Error.prototype;\n const testStringTag = errorCheck;\n errorCheck = function checkIfError(value) {\n return value === errorProto || testStringTag(value);\n };\n}\n\n/**\n * Determine whether or not a given `value` is an `Error` type.\n *\n * @param {*} value - The object to be tested.\n * @returns {boolean} Returns `true` if `value` is an `Error` type,\n * else `false`.\n */\nconst isError = function isError(value) {\n if (isObjectLike(value) === false) {\n return false;\n }\n\n let object = value;\n let maxLoop = 100;\n while (object && maxLoop > -1) {\n if (errorCheck(object)) {\n return true;\n }\n\n object = $getPrototypeOf(object);\n maxLoop -= 1;\n }\n\n return false;\n};\n\nexport default isError;\n","import hasSymbols from 'has-symbol-support-x';\nimport isPrimitive from 'is-primitive';\nimport isDate from 'is-date-object';\nimport isSymbol from 'is-symbol';\nimport isFunction from 'is-function-x';\nimport requireObjectCoercible from 'require-object-coercible-x';\nimport isNil from 'is-nil-x';\n\nconst ZERO = 0;\nconst ONE = 1;\n/* eslint-disable-next-line no-void */\nconst UNDEFINED = void ZERO;\nconst NUMBER = 'number';\nconst STRING = 'string';\nconst DEFAULT = 'default';\n/** @type {StringConstructor} */\nconst StringCtr = STRING.constructor;\n/** @type {NumberConstructor} */\nconst NumberCtr = ZERO.constructor;\n/* eslint-disable-next-line compat/compat */\nconst symToPrimitive = hasSymbols && Symbol.toPrimitive;\n/* eslint-disable-next-line compat/compat */\nconst symValueOf = hasSymbols && Symbol.prototype.valueOf;\n\nconst toStringOrder = ['toString', 'valueOf'];\nconst toNumberOrder = ['valueOf', 'toString'];\nconst orderLength = 2;\n\n/**\n * @param {*} ordinary - The ordinary to convert.\n * @param {*} hint - The hint.\n * @returns {*} - The primitive.\n */\nconst ordinaryToPrimitive = function _ordinaryToPrimitive(ordinary, hint) {\n requireObjectCoercible(ordinary);\n\n if (typeof hint !== 'string' || (hint !== NUMBER && hint !== STRING)) {\n throw new TypeError('hint must be \"string\" or \"number\"');\n }\n\n const methodNames = hint === STRING ? toStringOrder : toNumberOrder;\n let method;\n let result;\n for (let i = ZERO; i < orderLength; i += ONE) {\n method = ordinary[methodNames[i]];\n\n if (isFunction(method)) {\n result = method.call(ordinary);\n\n if (isPrimitive(result)) {\n return result;\n }\n }\n }\n\n throw new TypeError('No default value');\n};\n\n/**\n * @param {*} object - The object.\n * @param {*} property - The property.\n * @returns {undefined|Function} - The method.\n */\nconst getMethod = function _getMethod(object, property) {\n const func = object[property];\n\n if (isNil(func) === false) {\n if (isFunction(func) === false) {\n throw new TypeError(`${func} returned for property ${property} of object ${object} is not a function`);\n }\n\n return func;\n }\n\n return UNDEFINED;\n};\n\n/**\n * Get the hint.\n *\n * @param {*} value - The value to compare.\n * @param {boolean} supplied - Was a value supplied.\n * @returns {string} - The hint string.\n */\nconst getHint = function getHint(value, supplied) {\n if (supplied) {\n if (value === StringCtr) {\n return STRING;\n }\n\n if (value === NumberCtr) {\n return NUMBER;\n }\n }\n\n return DEFAULT;\n};\n\n/**\n * Get the primitive from the exotic.\n *\n * @param {*} value - The exotic.\n * @returns {*} - The primitive.\n */\nconst getExoticToPrim = function getExoticToPrim(value) {\n if (hasSymbols) {\n if (symToPrimitive) {\n return getMethod(value, symToPrimitive);\n }\n\n if (isSymbol(value)) {\n return symValueOf;\n }\n }\n\n return UNDEFINED;\n};\n\n/**\n * This method converts a JavaScript object to a primitive value.\n * Note: When toPrimitive is called with no hint, then it generally behaves as\n * if the hint were Number. However, objects may over-ride this behaviour by\n * defining a @@toPrimitive method. Of the objects defined in this specification\n * only Date objects (see 20.3.4.45) and Symbol objects (see 19.4.3.4) over-ride\n * the default ToPrimitive behaviour. Date objects treat no hint as if the hint\n * were String.\n *\n * @param {*} input - The input to convert.\n * @param {NumberConstructor|StringConstructor} [preferredType] - The preferred type (String or Number).\n * @throws {TypeError} If unable to convert input to a primitive.\n * @returns {string|number} The converted input as a primitive.\n * @see {http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive}\n */\nconst toPrimitive = function toPrimitive(input, preferredType) {\n if (isPrimitive(input)) {\n return input;\n }\n\n const hint = getHint(preferredType, arguments.length > ONE);\n const exoticToPrim = getExoticToPrim(input);\n\n if (typeof exoticToPrim !== 'undefined') {\n const result = exoticToPrim.call(input, hint);\n\n if (isPrimitive(result)) {\n return result;\n }\n\n throw new TypeError('unable to convert exotic object to primitive');\n }\n\n const newHint = hint === DEFAULT && (isDate(input) || isSymbol(input)) ? STRING : hint;\n\n return ordinaryToPrimitive(input, newHint === DEFAULT ? NUMBER : newHint);\n};\n\nexport default toPrimitive;\n","import hasSymbols from 'has-symbol-support-x';\nimport toPrimitive from 'to-primitive-x';\nimport toStr from 'to-string-x';\n\n/**\n * This method Converts argument to a value that can be used as a property key.\n *\n * @param {*} argument - The argument to convert to a property key.\n * @throws {TypeError} If argument is not a symbol and is not coercible to a string.\n * @returns {string|Symbol} The converted argument.\n */\nconst toPropertyKey = function toPropertyKey(argument) {\n const key = toPrimitive(argument, String);\n\n return hasSymbols && typeof key === 'symbol' ? key : toStr(key);\n};\n\nexport default toPropertyKey;\n","import toObject from 'to-object-x';\nimport toPropertyKey from 'to-property-key-x';\n\nconst hop = {}.hasOwnProperty;\n\n/**\n * The `hasOwnProperty` method returns a boolean indicating whether\n * the `object` has the specified `property`. Does not attempt to fix known\n * issues in older browsers, but does ES6ify the method.\n *\n * @param {!object} object - The object to test.\n * @throws {TypeError} If object is null or undefined.\n * @param {string|number|Symbol} property - The name or Symbol of the property to test.\n * @returns {boolean} `true` if the property is set on `object`, else `false`.\n */\nconst hasOwnProperty = function hasOwnProperty(object, property) {\n return hop.call(toObject(object), toPropertyKey(property));\n};\n\nexport default hasOwnProperty;\n","import hasSymbols from 'has-symbol-support-x';\nimport isSymbol from 'is-symbol';\n\n/* eslint-disable-next-line compat/compat */\nconst pToString = hasSymbols && Symbol.prototype.toString;\nconst isSymbolFn = typeof pToString === 'function' && isSymbol;\n/** @type {Function} */\nconst castString = ''.constructor;\n\n/**\n * The abstract operation ToString converts argument to a value of type String,\n * however the specification states that if the argument is a Symbol then a\n * 'TypeError' is thrown. This version also allows Symbols be converted to\n * a string. Other uncoercible exotics will still throw though.\n *\n * @param {*} [value] - The value to convert to a string.\n * @returns {string} The converted value.\n */\nconst toStringSymbolsSupported = function toStringSymbolsSupported(value) {\n return isSymbolFn && isSymbolFn(value) ? pToString.call(value) : castString(value);\n};\n\nexport default toStringSymbolsSupported;\n","/**\n * The constant NaN derived mathematically by 0 / 0.\n *\n * @type number\n */\nexport default 0 / 0;\n","import NAN from 'nan-x';\nimport toStr from 'to-string-x';\nimport trimLeft, {trimLeft2016} from 'trim-left-x';\n\nconst nativeParseInt = parseInt;\n/** @type {Function} */\nconst castNumber = (0).constructor;\n// noinspection JSPotentiallyInvalidConstructorUsage\nconst {charAt} = '';\nconst hexRegex = /^[-+]?0[xX]/;\nconst {test} = hexRegex;\n\n/**\n * This method parses a string argument and returns an integer of the specified\n * radix (the base in mathematical numeral systems). (ES2016).\n *\n * @param {string} [string] - The value to parse. If the string argument is not a\n * string, then it is converted to a string (using the ToString abstract\n * operation). Leading whitespace in the string argument is ignored.\n * @param {number} [radix] - An integer between 2 and 36 that represents the radix\n * (the base in mathematical numeral systems) of the above mentioned string.\n * Specify 10 for the decimal numeral system commonly used by humans. Always\n * specify this parameter to eliminate reader confusion and to guarantee\n * predictable behavior. Different implementations produce different results\n * when a radix is not specified, usually defaulting the value to 10.\n * @throws {TypeError} If target is a Symbol or is not coercible.\n * @returns {number} An integer number parsed from the given string. If the first\n * character cannot be converted to a number, NaN is returned.\n */\nexport function parseInt2016(string, radix) {\n const str = trimLeft2016(toStr(string));\n\n return nativeParseInt(str, castNumber(radix) || (test.call(hexRegex, str) ? 16 : 10));\n}\n\n/**\n * This method parses a string argument and returns an integer of the specified\n * radix (the base in mathematical numeral systems). (ES2018).\n *\n * @param {string} [string] - The value to parse. If the string argument is not a\n * string, then it is converted to a string (using the ToString abstract\n * operation). Leading whitespace in the string argument is ignored.\n * @param {number} [radix] - An integer between 2 and 36 that represents the radix\n * (the base in mathematical numeral systems) of the above mentioned string.\n * Specify 10 for the decimal numeral system commonly used by humans. Always\n * specify this parameter to eliminate reader confusion and to guarantee\n * predictable behavior. Different implementations produce different results\n * when a radix is not specified, usually defaulting the value to 10.\n * @throws {TypeError} If target is a Symbol or is not coercible.\n * @returns {number} An integer number parsed from the given string. If the first\n * character cannot be converted to a number, NaN is returned.\n */\nconst parseInt2018 = function parseInt2018(string, radix) {\n const str = trimLeft(toStr(string));\n\n if (charAt.call(str, 0) === '\\u180E') {\n return NAN;\n }\n\n return nativeParseInt(str, castNumber(radix) || (test.call(hexRegex, str) ? 16 : 10));\n};\n\nexport default parseInt2018;\n","import isSymbol from 'is-symbol';\nimport toPrimitive from 'to-primitive-x';\nimport trim, {trim2016} from 'trim-x';\nimport $parseInt, {parseInt2016} from 'parse-int-x';\nimport NAN from 'nan-x';\n\nconst binaryRadix = 2;\nconst octalRadix = 8;\nconst testCharsCount = 2;\nconst ERROR_MESSAGE = 'Cannot convert a Symbol value to a number';\n\n/** @type {NumberConstructor} */\nconst castNumber = testCharsCount.constructor;\nconst pStrSlice = ERROR_MESSAGE.slice;\n\nconst binaryRegex = /^0b[01]+$/i;\nconst RegExpConstructor = binaryRegex.constructor;\n// Note that in IE 8, RegExp.prototype.test doesn't seem to exist: ie, \"test\" is\n// an own property of regexes. wtf.\nconst {test} = binaryRegex;\nconst isBinary = function _isBinary(value) {\n return test.call(binaryRegex, value);\n};\n\nconst octalRegex = /^0o[0-7]+$/i;\nconst isOctal = function _isOctal(value) {\n return test.call(octalRegex, value);\n};\n\nconst nonWSregex2016 = new RegExpConstructor('[\\u0085\\u200b\\ufffe]', 'g');\nconst hasNonWS2016 = function _hasNonWS(value) {\n return test.call(nonWSregex2016, value);\n};\n\nconst nonWSregex2018 = new RegExpConstructor('[\\u0085\\u180e\\u200b\\ufffe]', 'g');\nconst hasNonWS2018 = function _hasNonWS(value) {\n return test.call(nonWSregex2018, value);\n};\n\nconst invalidHexLiteral = /^[-+]0x[0-9a-f]+$/i;\nconst isInvalidHexLiteral = function _isInvalidHexLiteral(value) {\n return test.call(invalidHexLiteral, value);\n};\n\n/**\n * This method converts argument to a value of type Number. (ES2016).\n *\n * @param {*} [argument] - The argument to convert to a number.\n * @throws {TypeError} - If argument is a Symbol or not coercible.\n * @returns {*} The argument converted to a number.\n */\nexport function toNumber2016(argument) {\n const value = toPrimitive(argument, Number);\n\n if (isSymbol(value)) {\n throw new TypeError(ERROR_MESSAGE);\n }\n\n if (typeof value === 'string') {\n if (isBinary(value)) {\n return toNumber2016(parseInt2016(pStrSlice.call(value, testCharsCount), binaryRadix));\n }\n\n if (isOctal(value)) {\n return toNumber2016(parseInt2016(pStrSlice.call(value, testCharsCount), octalRadix));\n }\n\n if (hasNonWS2016(value) || isInvalidHexLiteral(value)) {\n return NAN;\n }\n\n const trimmed = trim2016(value);\n\n if (trimmed !== value) {\n return toNumber2016(trimmed);\n }\n }\n\n return castNumber(value);\n}\n\n/**\n * This method converts argument to a value of type Number. (ES2018).\n *\n * @param {*} [argument] - The argument to convert to a number.\n * @throws {TypeError} - If argument is a Symbol or not coercible.\n * @returns {*} The argument converted to a number.\n */\nconst toNumber2018 = function toNumber2018(argument) {\n const value = toPrimitive(argument, castNumber);\n\n if (isSymbol(value)) {\n throw new TypeError(ERROR_MESSAGE);\n }\n\n if (typeof value === 'string') {\n if (isBinary(value)) {\n return toNumber2018($parseInt(pStrSlice.call(value, testCharsCount), binaryRadix));\n }\n\n if (isOctal(value)) {\n return toNumber2018($parseInt(pStrSlice.call(value, testCharsCount), octalRadix));\n }\n\n if (hasNonWS2018(value) || isInvalidHexLiteral(value)) {\n return NAN;\n }\n\n const trimmed = trim(value);\n\n if (trimmed !== value) {\n return toNumber2018(trimmed);\n }\n }\n\n return castNumber(value);\n};\n\nexport default toNumber2018;\n","/**\n * This method determines whether the passed value is NaN and its type is\n * `Number`. It is a more robust version of the original, global isNaN().\n *\n * @param {*} [value] - The value to be tested for NaN.\n * @returns {boolean} `true` if the given value is NaN and its type is Number;\n * otherwise, `false`.\n */\nconst isNaN = function isNaN(value) {\n /* eslint-disable-next-line no-self-compare */\n return value !== value;\n};\n\nexport default isNaN;\n","/**\n * The constant value Infinity derived mathematically by 1 / 0.\n *\n * @type number\n */\nexport default 1 / 0;\n","import numberIsNaN from 'is-nan-x';\nimport INFINITY from 'infinity-x';\n\n/**\n * This method determines whether the passed value is a finite number.\n *\n * @param {*} [number] - The value to be tested for finiteness.\n * @returns {boolean} A Boolean indicating whether or not the given value is a finite number.\n */\nconst isFinite = function isFinite(number) {\n return typeof number === 'number' && numberIsNaN(number) === false && number !== INFINITY && number !== -INFINITY;\n};\n\nexport default isFinite;\n","import toNumber, {toNumber2016} from 'to-number-x';\nimport numberIsNaN from 'is-nan-x';\n\n/**\n * This method returns the sign of a number, indicating whether the number is positive,\n * negative or zero. (ES2016).\n *\n * @param {*} x - A number.\n * @returns {number} A number representing the sign of the given argument. If the argument\n * is a positive number, negative number, positive zero or negative zero, the function will\n * return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.\n */\nexport function sign2016(x) {\n const n = toNumber2016(x);\n\n if (n === 0 || numberIsNaN(n)) {\n return n;\n }\n\n return n > 0 ? 1 : -1;\n}\n\n/**\n * This method returns the sign of a number, indicating whether the number is positive,\n * negative or zero. (ES2018).\n *\n * @param {*} x - A number.\n * @returns {number} A number representing the sign of the given argument. If the argument\n * is a positive number, negative number, positive zero or negative zero, the function will\n * return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.\n */\nconst sign2018 = function sign2018(x) {\n const n = toNumber(x);\n\n if (n === 0 || numberIsNaN(n)) {\n return n;\n }\n\n return n > 0 ? 1 : -1;\n};\n\nexport default sign2018;\n","import toNumber, {toNumber2016} from 'to-number-x';\nimport numberIsNaN from 'is-nan-x';\nimport numberIsFinite from 'is-finite-x';\nimport mathSign, {sign2016} from 'math-sign-x';\n\nconst {abs, floor} = Math;\n\n/**\n * Converts `value` to an integer. (ES2016).\n *\n * @param {*} value - The value to convert.\n * @returns {number} Returns the converted integer.\n */\nexport function toInteger2016(value) {\n const number = toNumber2016(value);\n\n if (numberIsNaN(number)) {\n return 0;\n }\n\n if (number === 0 || numberIsFinite(number) === false) {\n return number;\n }\n\n return sign2016(number) * floor(abs(number));\n}\n\n/**\n * Converts `value` to an integer. (ES2018).\n *\n * @param {*} value - The value to convert.\n * @returns {number} Returns the converted integer.\n */\nconst toInteger2018 = function toInteger2018(value) {\n const number = toNumber(value);\n\n if (numberIsNaN(number)) {\n return 0;\n }\n\n if (number === 0 || numberIsFinite(number) === false) {\n return number;\n }\n\n return mathSign(number) * floor(abs(number));\n};\n\nexport default toInteger2018;\n","import toNumber from 'to-number-x';\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * This method clamp a number to min and max limits inclusive.\n *\n * @param {number} value - The number to be clamped.\n * @param {number} [min=0] - The minimum number.\n * @param {number} max - The maximum number.\n * @throws {RangeError} If min > max.\n * @returns {number} The clamped number.\n */\n// eslint-enable jsdoc/check-param-names\nconst clamp = function clamp(value) {\n const number = toNumber(value);\n const argsLength = arguments.length;\n\n if (argsLength < 2) {\n return number;\n }\n\n /* eslint-disable-next-line prefer-rest-params */\n let min = toNumber(arguments[1]);\n let max;\n\n if (argsLength < 3) {\n max = min;\n min = 0;\n } else {\n /* eslint-disable-next-line prefer-rest-params */\n max = toNumber(arguments[2]);\n }\n\n if (min > max) {\n throw new RangeError('\"min\" must be less than \"max\"');\n }\n\n if (number < min) {\n return min;\n }\n\n if (number > max) {\n return max;\n }\n\n return number;\n};\n\nexport default clamp;\n","import safeToString from 'to-string-symbols-supported-x';\nimport toInteger from 'to-integer-x';\nimport toNumber from 'to-number-x';\nimport mathClamp from 'math-clamp-x';\n\nconst MAX_SAFE_INTEGER = 9007199254740991;\nconst reIsUint = /^(?:0|[1-9]\\d*)$/;\nconst rxTest = reIsUint.test;\n\n/**\n * This method determines whether the passed value is a zero based index.\n * JavaScript arrays are zero-indexed: the first element of an array is at\n * index 0, and the last element is at the index equal to the value of the\n * array's length property minus 1.\n *\n * @param {number|string} value - The value to be tested for being a zero based index.\n * @param {number} [length=MAX_SAFE_INTEGER] - The length that sets the upper bound.\n * @returns {boolean} A Boolean indicating whether or not the given value is a\n * zero based index within bounds.\n */\nconst isIndex = function isIndex(value, length) {\n const string = safeToString(value);\n\n if (rxTest.call(reIsUint, string) === false) {\n return false;\n }\n\n const number = toNumber(string);\n\n if (arguments.length > 1) {\n return number < mathClamp(toInteger(length), MAX_SAFE_INTEGER);\n }\n\n return number < MAX_SAFE_INTEGER;\n};\n\nexport default isIndex;\n","import toPropertyKey from 'to-property-key-x';\nimport toObject from 'to-object-x';\n\nconst propIsEnumerable = {}.propertyIsEnumerable;\n\n/**\n * This method returns a Boolean indicating whether the specified property is\n * enumerable. Does not attempt to fix bugs in IE<9 or old Opera, otherwise it\n * does ES6ify the method.\n *\n * @param {!object} object - The object on which to test the property.\n * @param {string|Symbol} property - The name of the property to test.\n * @throws {TypeError} If target is null or undefined.\n * @returns {boolean} A Boolean indicating whether the specified property is\n * enumerable.\n */\nconst propertyIsEnumerable = function propertyIsEnumerable(object, property) {\n return propIsEnumerable.call(toObject(object), toPropertyKey(property));\n};\n\nexport default propertyIsEnumerable;\n","import toObject from 'to-object-x';\nimport toPropertyKey from 'to-property-key-x';\nimport attempt from 'attempt-x';\nimport hasSymbolSupport from 'has-symbol-support-x';\nimport owns from 'has-own-property-x';\nimport isPrimitive from 'is-primitive';\nimport isString from 'is-string';\nimport isIndex from 'is-index-x';\nimport propertyIsEnumerable from 'property-is-enumerable-x';\n\n/** @type {ObjectConstructor} */\nconst castObject = {}.constructor;\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\nconst nativeGOPD = typeof castObject.getOwnPropertyDescriptor === 'function' && castObject.getOwnPropertyDescriptor;\nlet getOPDFallback1;\nlet getOPDFallback2;\n\n// ES5 15.2.3.3\n// http://es5.github.com/#x15.2.3.3\n\nconst doesGOPDWork = function doesGOPDWork(object, prop) {\n object[toPropertyKey(prop)] = 0;\n const testResult = attempt(nativeGOPD, object, prop);\n\n return testResult.threw === false && testResult.value.value === 0;\n};\n\n// check whether getOwnPropertyDescriptor works if it's given. Otherwise, shim partially.\n/**\n * This method returns a property descriptor for an own property (that is,\n * one directly present on an object and not in the object's prototype chain)\n * of a given object.\n *\n * @param {*} object - The object in which to look for the property.\n * @param {*} property - The name of the property whose description is to be retrieved.\n * @returns {object} A property descriptor of the given property if it exists on the object, undefined otherwise.\n */\nlet $getOwnPropertyDescriptor;\n\nif (nativeGOPD) {\n const doc = typeof document !== 'undefined' && document;\n const getOPDWorksOnDom = doc ? doesGOPDWork(doc.createElement('div'), 'sentinel') : true;\n\n if (getOPDWorksOnDom) {\n const res = attempt(nativeGOPD, castObject('abc'), 1);\n const worksWithStr = res.threw === false && res.value && res.value.value === 'b';\n\n if (worksWithStr) {\n const getOPDWorksOnObject = doesGOPDWork({}, 'sentinel');\n\n if (getOPDWorksOnObject) {\n const worksWithPrim = attempt(nativeGOPD, 42, 'name').threw === false;\n /* eslint-disable-next-line compat/compat */\n const worksWithObjSym = hasSymbolSupport && doesGOPDWork({}, castObject(Symbol('')));\n\n if (worksWithObjSym) {\n if (worksWithPrim) {\n $getOwnPropertyDescriptor = nativeGOPD;\n } else {\n $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {\n return nativeGOPD(toObject(object), property);\n };\n }\n } else if (worksWithPrim) {\n $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {\n return nativeGOPD(object, toPropertyKey(property));\n };\n } else {\n $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {\n return nativeGOPD(toObject(object), toPropertyKey(property));\n };\n }\n } else {\n getOPDFallback1 = nativeGOPD;\n }\n } else {\n getOPDFallback2 = nativeGOPD;\n }\n }\n}\n\nif (castBoolean($getOwnPropertyDescriptor) === false || getOPDFallback1 || getOPDFallback2) {\n const prototypeOfObject = castObject.prototype;\n\n // If JS engine supports accessors creating shortcuts.\n let lookupGetter;\n let lookupSetter;\n const supportsAccessors = owns(prototypeOfObject, '__defineGetter__');\n\n if (supportsAccessors) {\n /* eslint-disable-next-line no-underscore-dangle */\n const lg = prototypeOfObject.__lookupGetter__;\n /* eslint-disable-next-line no-underscore-dangle */\n const ls = prototypeOfObject.__lookupSetter__;\n lookupGetter = function $lookupGetter(object, property) {\n return lg.call(object, property);\n };\n\n lookupSetter = function $lookupSetter(object, property) {\n return ls.call(object, property);\n };\n }\n\n $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {\n const obj = toObject(object);\n const propKey = toPropertyKey(property);\n\n let result;\n\n // make a valiant attempt to use the real getOwnPropertyDescriptor for I8's DOM elements.\n if (getOPDFallback1) {\n result = attempt.call(castObject, getOPDFallback1, obj, propKey);\n\n if (result.threw === false) {\n return result.value;\n }\n // try the shim if the real one doesn't work\n }\n\n const isStringIndex = isString(obj) && isIndex(propKey, obj.length);\n\n if (getOPDFallback2 && isStringIndex === false) {\n result = attempt.call(castObject, getOPDFallback2, obj, propKey);\n\n if (result.threw === false) {\n return result.value;\n }\n // try the shim if the real one doesn't work\n }\n\n /* eslint-disable-next-line no-void */\n let descriptor = void 0;\n\n // If object does not owns property return undefined immediately.\n if (isStringIndex === false && owns(obj, propKey) === false) {\n return descriptor;\n }\n\n // If object has a property then it's for sure `configurable`, and\n // probably `enumerable`. Detect enumerability though.\n descriptor = {\n configurable: isPrimitive(object) === false && isStringIndex === false,\n enumerable: propertyIsEnumerable(obj, propKey),\n };\n\n // If JS engine supports accessor properties then property may be a\n // getter or setter.\n if (supportsAccessors) {\n // Unfortunately `__lookupGetter__` will return a getter even\n // if object has own non getter property along with a same named\n // inherited getter. To avoid misbehavior we temporary remove\n // `__proto__` so that `__lookupGetter__` will return getter only\n // if it's owned by an object.\n /* eslint-disable-next-line no-proto */\n const prototype = obj.__proto__;\n const notPrototypeOfObject = obj !== prototypeOfObject;\n\n // avoid recursion problem, breaking in Opera Mini when\n // Object.getOwnPropertyDescriptor(Object.prototype, 'toString')\n // or any other Object.prototype accessor\n if (notPrototypeOfObject) {\n /* eslint-disable-next-line no-proto */\n obj.__proto__ = prototypeOfObject;\n }\n\n const getter = lookupGetter(obj, propKey);\n const setter = lookupSetter(obj, propKey);\n\n if (notPrototypeOfObject) {\n // Once we have getter and setter we can put values back.\n /* eslint-disable-next-line no-proto */\n obj.__proto__ = prototype;\n }\n\n if (getter || setter) {\n if (getter) {\n descriptor.get = getter;\n }\n\n if (setter) {\n descriptor.set = setter;\n }\n\n // If it was accessor property we're done and return here\n // in order to avoid adding `value` to the descriptor.\n return descriptor;\n }\n }\n\n // If we got this far we know that object has an own property that is\n // not an accessor so we set it as a value and return descriptor.\n if (isStringIndex) {\n descriptor.value = obj.charAt(propKey);\n descriptor.writable = false;\n } else {\n descriptor.value = obj[propKey];\n descriptor.writable = true;\n }\n\n return descriptor;\n };\n}\n\nconst gOPS = $getOwnPropertyDescriptor;\n\nexport default gOPS;\n","import numberIsFinite from 'is-finite-x';\nimport toInteger from 'to-integer-x';\n\n/**\n * This method determines whether the passed value is an integer.\n *\n * @param {*} value - The value to be tested for being an integer.\n * @returns {boolean} A Boolean indicating whether or not the given value is an integer.\n */\nconst isInteger = function isInteger(value) {\n return numberIsFinite(value) && toInteger(value) === value;\n};\n\nexport default isInteger;\n","import isInteger from 'is-integer-x';\n\nconst MAX_SAFE_INTEGER = 9007199254740991;\nconst MIN_SAFE_INTEGER = -MAX_SAFE_INTEGER;\n\n/**\n * This method determines whether the passed value is a safe integer.\n *\n * Can be exactly represented as an IEEE-754 double precision number, and\n * whose IEEE-754 representation cannot be the result of rounding any other\n * integer to fit the IEEE-754 representation.\n *\n * @param {*} value - The value to be tested for being a safe integer.\n * @returns {boolean} A Boolean indicating whether or not the given value is a\n * safe integer.\n */\nconst isSafeInteger = function isSafeInteger(value) {\n return isInteger(value) && value >= MIN_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n};\n\nexport default isSafeInteger;\n","import isSafeInteger from 'is-safe-integer-x';\n\n/**\n * This method checks if `value` is a valid array-like length.\n *\n * @param {*} value - The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nconst isLength = function isLength(value) {\n return isSafeInteger(value) && value >= 0;\n};\n\nexport default isLength;\n","import gOPD from 'object-get-own-property-descriptor-x';\nimport attempt from 'attempt-x';\nimport isObjectLike from 'is-object-like-x';\nimport isLength from 'is-length-x';\n\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\n\nlet getSize;\n\nif (typeof Map === 'function') {\n /* eslint-disable-next-line compat/compat */\n const descriptor = gOPD(Map.prototype, 'size');\n\n if (descriptor && typeof descriptor.get === 'function') {\n let res = attempt(() => {\n /* eslint-disable-next-line compat/compat */\n return new Map();\n });\n\n if (res.threw === false && isObjectLike(res.value)) {\n res = attempt.call(res.value, descriptor.get);\n\n if (res.threw === false && isLength(res.value)) {\n getSize = descriptor.get;\n }\n }\n }\n}\n\n/**\n * Determine if an `object` is a `Map`.\n *\n * @param {*} object - The object to test.\n * @returns {boolean} `true` if the `object` is a `Map`,\n * else `false`.\n */\nconst isMap = function isMap(object) {\n if (castBoolean(getSize) === false || isObjectLike(object) === false) {\n return false;\n }\n\n const result = attempt.call(object, getSize);\n\n return result.threw === false && isLength(result.value);\n};\n\nexport default isMap;\n","import gOPD from 'object-get-own-property-descriptor-x';\nimport attempt from 'attempt-x';\nimport isObjectLike from 'is-object-like-x';\nimport isLength from 'is-length-x';\n\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\n\nlet getSize;\n\nif (typeof Set === 'function') {\n /* eslint-disable-next-line compat/compat */\n const descriptor = gOPD(Set.prototype, 'size');\n\n if (descriptor && typeof descriptor.get === 'function') {\n let res = attempt(() => {\n /* eslint-disable-next-line compat/compat */\n return new Set();\n });\n\n if (res.threw === false && isObjectLike(res.value)) {\n res = attempt.call(res.value, descriptor.get);\n\n if (res.threw === false && isLength(res.value)) {\n getSize = descriptor.get;\n }\n }\n }\n}\n\n/**\n * Determine if an `object` is a `Set`.\n *\n * @param {*} object - The object to test.\n * @returns {boolean} `true` if the `object` is a `Set`,\n * else `false`.\n */\nconst isSet = function isSet(object) {\n if (castBoolean(getSize) === false || isObjectLike(object) === false) {\n return false;\n }\n\n const result = attempt.call(object, getSize);\n\n return result.threw === false && isLength(result.value);\n};\n\nexport default isSet;\n","import safeToString from 'to-string-symbols-supported-x';\nimport isPrimitive from 'is-primitive';\n\n/**\n * Tests `value` to see if it is an object, throws a `TypeError` if it is\n * not. Otherwise returns the `value`.\n *\n * @param {*} value - The argument to be tested.\n * @throws {TypeError} Throws if `value` is not an object.\n * @returns {*} Returns `value` if it is an object.\n */\nconst assertIsObject = function assertIsObject(value) {\n if (isPrimitive(value)) {\n throw new TypeError(`${safeToString(value)} is not an object`);\n }\n\n return value;\n};\n\nexport default assertIsObject;\n","import attempt from 'attempt-x';\nimport toObject from 'to-object-x';\nimport toPropertyKey from 'to-property-key-x';\nimport has from 'has-own-property-x';\nimport isFunction from 'is-function-x';\nimport assertIsObject from 'assert-is-object-x';\n\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\nconst nativeDefProp = typeof Object.defineProperty === 'function' && Object.defineProperty;\nlet definePropertyFallback;\n\nconst toPropertyDescriptor = function _toPropertyDescriptor(desc) {\n const object = toObject(desc);\n const descriptor = {};\n\n if (has(object, 'enumerable')) {\n descriptor.enumerable = castBoolean(object.enumerable);\n }\n\n if (has(object, 'configurable')) {\n descriptor.configurable = castBoolean(object.configurable);\n }\n\n if (has(object, 'value')) {\n descriptor.value = object.value;\n }\n\n if (has(object, 'writable')) {\n descriptor.writable = castBoolean(object.writable);\n }\n\n if (has(object, 'get')) {\n const getter = object.get;\n\n if (typeof getter !== 'undefined' && isFunction(getter) === false) {\n throw new TypeError('getter must be a function');\n }\n\n descriptor.get = getter;\n }\n\n if (has(object, 'set')) {\n const setter = object.set;\n\n if (typeof setter !== 'undefined' && isFunction(setter) === false) {\n throw new TypeError('setter must be a function');\n }\n\n descriptor.set = setter;\n }\n\n if ((has(descriptor, 'get') || has(descriptor, 'set')) && (has(descriptor, 'value') || has(descriptor, 'writable'))) {\n throw new TypeError('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');\n }\n\n return descriptor;\n};\n\n// ES5 15.2.3.6\n// http://es5.github.com/#x15.2.3.6\n\n// Patch for WebKit and IE8 standard mode\n// Designed by hax <hax.github.com>\n// related issue: https://github.com/es-shims/es5-shim/issues#issue/5\n// IE8 Reference:\n// http://msdn.microsoft.com/en-us/library/dd282900.aspx\n// http://msdn.microsoft.com/en-us/library/dd229916.aspx\n// WebKit Bugs:\n// https://bugs.webkit.org/show_bug.cgi?id=36423\n\n/**\n * This method defines a new property directly on an object, or modifies an\n * existing property on an object, and returns the object.\n *\n * @param {object} object - The object on which to define the property.\n * @param {string} property - The name of the property to be defined or modified.\n * @param {object} descriptor - The descriptor for the property being defined or modified.\n * @returns {object} The object that was passed to the function.\n * });.\n */\nlet $defineProperty;\n\n// check whether defineProperty works if it's given. Otherwise, shim partially.\nif (nativeDefProp) {\n const testWorksWith = function _testWorksWith(object) {\n const testResult = attempt(nativeDefProp, object, 'sentinel', {});\n\n return testResult.threw === false && testResult.value === object && 'sentinel' in object;\n };\n\n const doc = typeof document !== 'undefined' && document;\n\n if (testWorksWith({}) && (castBoolean(doc) === false || testWorksWith(doc.createElement('div')))) {\n $defineProperty = function defineProperty(object, property, descriptor) {\n return nativeDefProp(assertIsObject(object), toPropertyKey(property), toPropertyDescriptor(descriptor));\n };\n } else {\n definePropertyFallback = nativeDefProp;\n }\n}\n\nif (castBoolean(nativeDefProp) === false || definePropertyFallback) {\n const prototypeOfObject = Object.prototype;\n\n // If JS engine supports accessors creating shortcuts.\n let defineGetter;\n let defineSetter;\n let lookupGetter;\n let lookupSetter;\n const supportsAccessors = has(prototypeOfObject, '__defineGetter__');\n\n if (supportsAccessors) {\n /* eslint-disable-next-line no-underscore-dangle,no-restricted-properties */\n defineGetter = prototypeOfObject.__defineGetter__;\n /* eslint-disable-next-line no-underscore-dangle,no-restricted-properties */\n defineSetter = prototypeOfObject.__defineSetter__;\n /* eslint-disable-next-line no-underscore-dangle */\n lookupGetter = prototypeOfObject.__lookupGetter__;\n /* eslint-disable-next-line no-underscore-dangle */\n lookupSetter = prototypeOfObject.__lookupSetter__;\n }\n\n $defineProperty = function defineProperty(object, property, descriptor) {\n assertIsObject(object);\n const propKey = toPropertyKey(property);\n const propDesc = toPropertyDescriptor(descriptor);\n\n // make a valiant attempt to use the real defineProperty for IE8's DOM elements.\n if (definePropertyFallback) {\n const result = attempt.call(Object, definePropertyFallback, object, propKey, propDesc);\n\n if (result.threw === false) {\n return result.value;\n }\n // try the shim if the real one doesn't work\n }\n\n // If it's a data property.\n if (has(propDesc, 'value')) {\n // fail silently if 'writable', 'enumerable', or 'configurable' are requested but not supported\n if (supportsAccessors && (lookupGetter.call(object, propKey) || lookupSetter.call(object, propKey))) {\n // As accessors are supported only on engines implementing\n // `__proto__` we can safely override `__proto__` while defining\n // a property to make sure that we don't hit an inherited accessor.\n /* eslint-disable-next-line no-proto */\n const prototype = object.__proto__;\n /* eslint-disable-next-line no-proto */\n object.__proto__ = prototypeOfObject;\n // Deleting a property anyway since getter / setter may be defined on object itself.\n delete object[propKey];\n object[propKey] = propDesc.value;\n // Setting original `__proto__` back now.\n /* eslint-disable-next-line no-proto */\n object.__proto__ = prototype;\n } else {\n object[propKey] = propDesc.value;\n }\n } else {\n if (supportsAccessors === false && (propDesc.get || propDesc.set)) {\n throw new TypeError('getters & setters can not be defined on this javascript engine');\n }\n\n // If we got that far then getters and setters can be defined !!\n if (propDesc.get) {\n defineGetter.call(object, propKey, propDesc.get);\n }\n\n if (propDesc.set) {\n defineSetter.call(object, propKey, propDesc.set);\n }\n }\n\n return object;\n };\n}\n\nconst defProp = $defineProperty;\n\nexport default defProp;\n","import isObjectLike from 'is-object-like-x';\nimport hasToStringTag from 'has-to-string-tag-x';\nimport has from 'has-own-property-x';\nimport gOPD from 'object-get-own-property-descriptor-x';\nimport defineProperty from 'object-define-property-x';\nimport toStringTag from 'to-string-tag-x';\n\nconst regexExec = /none/.exec;\nconst regexClass = '[object RegExp]';\n\nconst tryRegexExecCall = function tryRegexExec(value, descriptor) {\n try {\n value.lastIndex = 0;\n regexExec.call(value);\n\n return true;\n } catch (e) {\n return false;\n } finally {\n defineProperty(value, 'lastIndex', descriptor);\n }\n};\n\n/**\n * This method tests if a value is a regex.\n *\n * @param {*} value - The value to test.\n * @returns {boolean} `true` if value is a regex; otherwise `false`.\n */\nconst isRegex = function isRegex(value) {\n if (isObjectLike(value) === false) {\n return false;\n }\n\n if (hasToStringTag === false) {\n return toStringTag(value) === regexClass;\n }\n\n const descriptor = gOPD(value, 'lastIndex');\n const hasLastIndexDataProperty = descriptor && has(descriptor, 'value');\n\n if (hasLastIndexDataProperty !== true) {\n return false;\n }\n\n return tryRegexExecCall(value, descriptor);\n};\n\nexport default isRegex;\n","import toInteger, {toInteger2016} from 'to-integer-x';\n\nconst MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object. (ES2016).\n *\n * @param {*} value - The value to convert.\n * @returns {number} Returns the converted integer.\n */\nexport function toLength2016(value) {\n const len = toInteger2016(value);\n\n // includes converting -0 to +0\n if (len <= 0) {\n return 0;\n }\n\n if (len > MAX_SAFE_INTEGER) {\n return MAX_SAFE_INTEGER;\n }\n\n return len;\n}\n\n/**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object. (ES2018).\n *\n * @param {*} value - The value to convert.\n * @returns {number} Returns the converted integer.\n */\nconst toLength2018 = function toLength2018(value) {\n const len = toInteger(value);\n\n // includes converting -0 to +0\n if (len <= 0) {\n return 0;\n }\n\n if (len > MAX_SAFE_INTEGER) {\n return MAX_SAFE_INTEGER;\n }\n\n return len;\n};\n\nexport default toLength2018;\n","import numberIsNaN from 'is-nan-x';\n\n/**\n * This method is the comparison abstract operation SameValue(x, y), where x\n * and y are ECMAScript language values, produces true or false.\n *\n * @param {*} [value1] - The first value to compare.\n * @param {*} [value2] - The second value to compare.\n * @returns {boolean} A Boolean indicating whether or not the two arguments are\n * the same value.\n */\nconst sameValue = function sameValue(value1, value2) {\n if (value1 === 0 && value2 === 0) {\n return 1 / value1 === 1 / value2;\n }\n\n if (value1 === value2) {\n return true;\n }\n\n return numberIsNaN(value1) && numberIsNaN(value2);\n};\n\nexport default sameValue;\n","import sameValue from 'same-value-x';\n\n/**\n * This method determines whether two values are the same value.\n * SameValueZero differs from SameValue (`Object.is`) only in its treatment\n * of +0 and -0.\n *\n * @param {*} [x] - The first value to compare.\n * @param {*} [y] - The second value to compare.\n * @returns {boolean} A Boolean indicating whether or not the two arguments\n * are the same value.\n */\nconst sameValueZero = function sameValueZero(x, y) {\n return x === y || sameValue(x, y);\n};\n\nexport default sameValueZero;\n","import isFunction from 'is-function-x';\nimport safeToString from 'to-string-symbols-supported-x';\nimport isPrimitive from 'is-primitive';\n\n/**\n * Tests `callback` to see if it is a function, throws a `TypeError` if it is\n * not. Otherwise returns the `callback`.\n *\n * @param {*} callback - The argument to be tested.\n * @throws {TypeError} Throws if `callback` is not a function.\n * @returns {*} Returns `callback` if it is function.\n */\nconst assertIsFunction = function assertIsFunction(callback) {\n if (isFunction(callback) === false) {\n const msg = isPrimitive(callback) ? safeToString(callback) : '#<Object>';\n throw new TypeError(`${msg} is not a function`);\n }\n\n return callback;\n};\n\nexport default assertIsFunction;\n","const string = 'a';\nconst boxedString = {}.constructor(string);\n\n/**\n * Check failure of by-index access of string characters (IE < 9)\n * and failure of `0 in boxedString` (Rhino).\n *\n * `true` if no failure; otherwise `false`.\n *\n * @type boolean\n */\nconst hasBoxed = boxedString[0] === string && 0 in boxedString;\n\nexport default hasBoxed;\n","import hasBoxed from 'has-boxed-string-x';\nimport isString from 'is-string';\n\nconst EMPTY_STRING = '';\nconst strSplit = EMPTY_STRING.split;\nconst isStringFn = hasBoxed === false && typeof strSplit === 'function' && isString;\n\n/**\n * This method tests if a value is a string with the boxed bug; splits to an\n * array for iteration; otherwise returns the original value.\n *\n * @param {*} [value] - The value to be tested.\n * @returns {*} An array or characters if value was a string with the boxed bug;\n * otherwise the value.\n */\nconst splitIfBoxedBug = function splitIfBoxedBug(value) {\n return isStringFn && isStringFn(value) ? strSplit.call(value, EMPTY_STRING) : value;\n};\n\nexport default splitIfBoxedBug;\n","import attempt from 'attempt-x';\nimport toLength from 'to-length-x';\nimport toObject from 'to-object-x';\nimport assertIsFunction from 'assert-is-function-x';\nimport splitIfBoxedBug from 'split-if-boxed-bug-x';\n\nconst pFindIndex = typeof Array.prototype.findIndex === 'function' && Array.prototype.findIndex;\n\nlet isWorking;\n\nif (pFindIndex) {\n const testArr = [];\n testArr.length = 2;\n testArr[1] = 1;\n let res = attempt.call(testArr, pFindIndex, (item, idx) => {\n return idx === 0;\n });\n\n isWorking = res.threw === false && res.value === 0;\n\n if (isWorking) {\n res = attempt.call(1, pFindIndex, (item, idx) => {\n return idx === 0;\n });\n\n isWorking = res.threw === false && res.value === -1;\n }\n\n if (isWorking) {\n isWorking = attempt.call([], pFindIndex).threw;\n }\n\n if (isWorking) {\n res = attempt.call('abc', pFindIndex, (item) => {\n return item === 'c';\n });\n\n isWorking = res.threw === false && res.value === 2;\n }\n\n if (isWorking) {\n res = attempt.call(\n (function getArgs() {\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n })('a', 'b', 'c'),\n pFindIndex,\n (item) => {\n return item === 'c';\n },\n );\n\n isWorking = res.threw === false && res.value === 2;\n }\n}\n\n/**\n * Like `findIndex`, this method returns an index in the array, if an element\n * in the array satisfies the provided testing function. Otherwise -1 is returned.\n *\n * @param {Array} array - The array to search.\n * @throws {TypeError} If array is `null` or `undefined`-.\n * @param {Function} callback - Function to execute on each value in the array,\n * taking three arguments: `element`, `index` and `array`.\n * @throws {TypeError} If `callback` is not a function.\n * @param {*} [thisArg] - Object to use as `this` when executing `callback`.\n * @returns {number} Returns index of positively tested element, otherwise -1.\n */\nlet findIdx;\n\nif (isWorking) {\n findIdx = function findIndex(array, callback) {\n const args = [callback];\n\n if (arguments.length > 2) {\n /* eslint-disable-next-line prefer-rest-params,prefer-destructuring */\n args[1] = arguments[2];\n }\n\n return pFindIndex.apply(array, args);\n };\n} else {\n findIdx = function findIndex(array, callback) {\n const object = toObject(array);\n assertIsFunction(callback);\n const iterable = splitIfBoxedBug(object);\n const length = toLength(iterable.length);\n\n if (length < 1) {\n return -1;\n }\n\n let thisArg;\n\n if (arguments.length > 2) {\n /* eslint-disable-next-line prefer-rest-params,prefer-destructuring */\n thisArg = arguments[2];\n }\n\n let index = 0;\n while (index < length) {\n if (callback.call(thisArg, iterable[index], index, object)) {\n return index;\n }\n\n index += 1;\n }\n\n return -1;\n };\n}\n\nconst fi = findIdx;\n\nexport default fi;\n","import isNil from 'is-nil-x';\nimport isFunction from 'is-function-x';\nimport isLength from 'is-length-x';\n\n/**\n * Checks if value is array-like. A value is considered array-like if it's\n * not a function and has a `length` that's an integer greater than or\n * equal to 0 and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @param {*} value - The object to be tested.\n */\nconst isArrayLike = function isArrayLike(value) {\n return isNil(value) === false && isFunction(value, true) === false && isLength(value.length);\n};\n\nexport default isArrayLike;\n","import toObject from 'to-object-x';\nimport toLength from 'to-length-x';\nimport toInteger from 'to-integer-x';\nimport isArrayLike from 'is-array-like-x';\n\nconst getMax = function getMax(a, b) {\n return a >= b ? a : b;\n};\n\n/**\n * This method calculates a fromIndex of a given value for an array.\n *\n * @param {Array} array - * The array on which to calculate the starting index.\n * @throws {TypeError} If array is null or undefined.\n * @param {number} fromIndex - * The position in this array at which to begin. A\n * negative value gives the index of array.length + fromIndex by asc.\n * @returns {number} The calculated fromIndex. Default is 0.\n */\nconst calcFromIndex = function calcFromIndex(array, fromIndex) {\n const object = toObject(array);\n\n if (isArrayLike(object) === false) {\n return 0;\n }\n\n const index = toInteger(fromIndex);\n\n return index >= 0 ? index : getMax(0, toLength(object.length) + index);\n};\n\nexport default calcFromIndex;\n","import numberIsNaN from 'is-nan-x';\nimport isString from 'is-string';\nimport toObject from 'to-object-x';\nimport toLength from 'to-length-x';\nimport sameValueZero from 'same-value-zero-x';\nimport sameValue from 'same-value-x';\nimport findIndex from 'find-index-x';\nimport calcFromIndex from 'calculate-from-index-x';\nimport splitIfBoxedBug from 'split-if-boxed-bug-x';\nimport attempt from 'attempt-x';\n\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\nlet pIndexOf = typeof Array.prototype.indexOf === 'function' && Array.prototype.indexOf;\n\nlet isWorking;\n\nif (pIndexOf) {\n let res = attempt.call([0, 1], pIndexOf, 1, 2);\n isWorking = res.threw === false && res.value === -1;\n\n if (isWorking) {\n res = attempt.call([0, 1], pIndexOf, 1);\n isWorking = res.threw === false && res.value === 1;\n }\n\n if (isWorking) {\n res = attempt.call([0, -0], pIndexOf, -0);\n isWorking = res.threw === false && res.value === 0;\n }\n\n if (isWorking) {\n const testArr = [];\n testArr.length = 2;\n /* eslint-disable-next-line no-void */\n testArr[1] = void 0;\n /* eslint-disable-next-line no-void */\n res = attempt.call(testArr, pIndexOf, void 0);\n isWorking = res.threw === false && res.value === 1;\n }\n\n if (isWorking) {\n res = attempt.call('abc', pIndexOf, 'c');\n isWorking = res.threw === false && res.value === 2;\n }\n\n if (isWorking) {\n res = attempt.call(\n (function getArgs() {\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n })('a', 'b', 'c'),\n pIndexOf,\n 'c',\n );\n isWorking = res.threw === false && res.value === 2;\n }\n}\n\nif (isWorking !== true) {\n pIndexOf = function $pIndexOf(searchElement) {\n /* eslint-disable-next-line babel/no-invalid-this */\n const length = toLength(this.length);\n\n if (length < 1) {\n return -1;\n }\n\n /* eslint-disable-next-line prefer-rest-params */\n let i = arguments[1];\n while (i < length) {\n /* eslint-disable-next-line babel/no-invalid-this */\n if (i in this && this[i] === searchElement) {\n return i;\n }\n\n i += 1;\n }\n\n return -1;\n };\n}\n\n/**\n * This method returns an index in the array, if an element in the array\n * satisfies the provided testing function. Otherwise -1 is returned.\n *\n * @private\n * @param {Array} array - The array to search.\n * @param {*} searchElement - Element to locate in the array.\n * @param {number} fromIndex - The index to start the search at.\n * @param {Function} extendFn - The comparison function to use.\n * @returns {number} Returns index of found element, otherwise -1.\n */\nconst findIdxFrom = function findIndexFrom(array, searchElement, fromIndex, extendFn) {\n let fIdx = fromIndex;\n const length = toLength(array.length);\n while (fIdx < length) {\n if (fIdx in array && extendFn(array[fIdx], searchElement)) {\n return fIdx;\n }\n\n fIdx += 1;\n }\n\n return -1;\n};\n\n// eslint-disable jsdoc/check-param-names\n// noinspection JSCommentMatchesSignature\n/**\n * This method returns the first index at which a given element can be found\n * in the array, or -1 if it is not present.\n *\n * @param {Array} array - The array to search.\n * @throws {TypeError} If `array` is `null` or `undefined`.\n * @param {*} searchElement - Element to locate in the `array`.\n * @param {number} [fromIndex] - The index to start the search at. If the\n * index is greater than or equal to the array's length, -1 is returned,\n * which means the array will not be searched. If the provided index value is\n * a negative number, it is taken as the offset from the end of the array.\n * Note: if the provided index is negative, the array is still searched from\n * front to back. If the calculated index is less than 0, then the whole\n * array will be searched. Default: 0 (entire array is searched).\n * @param {string} [extend] - Extension type: `SameValue` or `SameValueZero`.\n * @returns {number} Returns index of found element, otherwise -1.\n */\n// eslint-enable jsdoc/check-param-names\nconst indexOf = function indexOf(array, searchElement) {\n const object = toObject(array);\n const iterable = splitIfBoxedBug(object);\n const length = toLength(iterable.length);\n\n if (length < 1) {\n return -1;\n }\n\n const argLength = arguments.length;\n /* eslint-disable-next-line prefer-rest-params */\n let extend = argLength > 2 && argLength > 3 ? arguments[3] : arguments[2];\n let extendFn;\n\n if (isString(extend)) {\n extend = extend.toLowerCase();\n\n if (extend === 'samevalue') {\n extendFn = sameValue;\n } else if (extend === 'samevaluezero') {\n extendFn = sameValueZero;\n }\n }\n\n let fromIndex = 0;\n\n if (extendFn && (searchElement === 0 || numberIsNaN(searchElement))) {\n if (argLength > 3) {\n /* eslint-disable-next-line prefer-rest-params */\n fromIndex = calcFromIndex(iterable, arguments[2]);\n\n if (fromIndex >= length) {\n return -1;\n }\n\n if (fromIndex < 0) {\n fromIndex = 0;\n }\n }\n\n if (fromIndex > 0) {\n return findIdxFrom(iterable, searchElement, fromIndex, extendFn);\n }\n\n return findIndex(iterable, (element, index) => {\n return index in iterable && extendFn(searchElement, element);\n });\n }\n\n if (argLength > 3 || (argLength > 2 && castBoolean(extendFn) === false)) {\n /* eslint-disable-next-line prefer-rest-params */\n fromIndex = calcFromIndex(iterable, arguments[2]);\n\n if (fromIndex >= length) {\n return -1;\n }\n\n if (fromIndex < 0) {\n fromIndex = 0;\n }\n }\n\n return pIndexOf.call(iterable, searchElement, fromIndex);\n};\n\nexport default indexOf;\n","import attempt from 'attempt-x';\nimport toStringTag from 'to-string-tag-x';\n\nconst nativeIsArray = [].isArray;\nconst isArrayNative = typeof nativeIsArray === 'function' && nativeIsArray;\n\nconst testRes =\n isArrayNative &&\n attempt(() => {\n return isArrayNative([]) === true && isArrayNative({length: 0}) === false;\n });\n\nconst isArrayFn = (function iife() {\n if (testRes && testRes.threw === false && testRes.value === true) {\n return isArrayNative;\n }\n\n /**\n * The isArray() function determines whether the passed value is an Array.\n *\n * @function isArray\n * @param {*} [value] - The object to be checked..\n * @returns {boolean} `true` if the object is an Array; otherwise, `false`.\n */\n return function isArray(value) {\n return toStringTag(value) === '[object Array]';\n };\n})();\n\nexport default isArrayFn;\n","import toObject from 'to-object-x';\nimport toInteger from 'to-integer-x';\nimport toLength from 'to-length-x';\nimport splitIfBoxedBug from 'split-if-boxed-bug-x';\n\nconst getMax = function _getMax(a, b) {\n return a >= b ? a : b;\n};\n\nconst getMin = function _getMin(a, b) {\n return a <= b ? a : b;\n};\n\nconst setRelative = function _setRelative(value, length) {\n return value < 0 ? getMax(length + value, 0) : getMin(value, length);\n};\n\n/**\n * The slice() method returns a shallow copy of a portion of an array into a new\n * array object selected from begin to end (end not included). The original\n * array will not be modified.\n *\n * @param {!object} arrayLike - The array like object to slice.\n * @param {number} [start] - Zero-based index at which to begin extraction.\n * A negative index can be used, indicating an offset from the end of the\n * sequence. Running slice(-2) extracts the last two elements in the sequence.\n * If begin is undefined, slice begins from index 0.\n * @param {number} [end] - Zero-based index before which to end extraction.\n * Slice extracts up to but not including end. For example, slice([0,1,2,3,4],1,4)\n * extracts the second element through the fourth element (elements indexed\n * 1, 2, and 3).\n * A negative index can be used, indicating an offset from the end of the\n * sequence. Running slice(2,-1) extracts the third element through the second-to-last\n * element in the sequence.\n * If end is omitted, slice extracts through the end of the sequence (arr.length).\n * If end is greater than the length of the sequence, slice extracts through\n * the end of the sequence (arr.length).\n * @returns {Array} A new array containing the extracted elements.\n */\nconst slice = function slice(arrayLike, start, end) {\n const iterable = splitIfBoxedBug(toObject(arrayLike));\n const length = toLength(iterable.length);\n let k = setRelative(toInteger(start), length);\n const relativeEnd = typeof end === 'undefined' ? length : toInteger(end);\n const finalEnd = setRelative(relativeEnd, length);\n const val = [];\n val.length = getMax(finalEnd - k, 0);\n let next = 0;\n while (k < finalEnd) {\n if (k in iterable) {\n val[next] = iterable[k];\n }\n\n next += 1;\n k += 1;\n }\n\n return val;\n};\n\nexport default slice;\n","import toObject from 'to-object-x';\nimport isArguments from 'is-arguments';\nimport isArray from 'is-array-x';\nimport arrayLikeSlice from 'array-like-slice-x';\nimport attempt from 'attempt-x';\nimport isString from 'is-string';\n\nconst nativeSlice = [].slice;\n\nconst resultArray = nativeSlice ? attempt.call([1, 2, 3], nativeSlice, 1, 2) : null;\nconst failArray = resultArray\n ? resultArray.threw || isArray(resultArray.value) === false || resultArray.value.length !== 1 || resultArray.value[0] !== 2\n : false;\n\nconst resultString = nativeSlice ? attempt.call('abc', nativeSlice, 1, 2) : null;\nconst failString = resultString\n ? resultString.threw ||\n isArray(resultString.value) === false ||\n resultString.value.length !== 1 ||\n resultString.value[0] !== 'b'\n : false;\n\nconst doc = typeof document !== 'undefined' && document;\nconst resultDocElement = nativeSlice && doc ? attempt.call(doc.documentElement, nativeSlice).threw : null;\nconst failDOM = resultDocElement ? resultDocElement.threw : false;\n\n/**\n * The slice() method returns a shallow copy of a portion of an array into a new\n * array object selected from begin to end (end not included). The original\n * array will not be modified.\n *\n * @param {Array|object} array - The array to slice.\n * @param {number} [start] - Zero-based index at which to begin extraction.\n * A negative index can be used, indicating an offset from the end of the\n * sequence. Running slice(-2) extracts the last two elements in the sequence.\n * If begin is undefined, slice begins from index 0.\n * @param {number} [end] - Zero-based index before which to end extraction.\n * Slice extracts up to but not including end. For example, slice(1,4)\n * extracts the second element through the fourth element (elements indexed\n * 1, 2, and 3).\n * A negative index can be used, indicating an offset from the end of the\n * sequence. Running slice(2,-1) extracts the third element through the second-to-last\n * element in the sequence.\n * If end is omitted, slice extracts through the end of the\n * sequence (arr.length).\n * If end is greater than the length of the sequence, slice extracts through\n * the end of the sequence (arr.length).\n * @returns {Array} A new array containing the extracted elements.\n */\nconst slice = function slice(array, start, end) {\n const object = toObject(array);\n\n if (failArray || (failDOM && isArray(object) === false) || (failString && isString(object)) || isArguments(object)) {\n return arrayLikeSlice(object, start, end);\n }\n\n /* eslint-disable-next-line prefer-rest-params */\n return nativeSlice.apply(object, arrayLikeSlice(arguments, 1));\n};\n\nexport default slice;\n","import attempt from 'attempt-x';\nimport splitIfBoxedBug from 'split-if-boxed-bug-x';\nimport toLength from 'to-length-x';\nimport toObject from 'to-object-x';\nimport assertIsFunction from 'assert-is-function-x';\n\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\n/** @type {ObjectConstructor} */\nconst castObject = {}.constructor;\nconst ns = [].some;\nconst nativeSome = typeof ns === 'function' && ns;\n\nlet isWorking;\n\nif (nativeSome) {\n let spy = 0;\n let res = attempt.call([1, 2], nativeSome, (item) => {\n spy += item;\n\n return false;\n });\n\n isWorking = res.threw === false && res.value === false && spy === 3;\n\n if (isWorking) {\n spy = '';\n res = attempt.call(castObject('abc'), nativeSome, (item, index) => {\n spy += item;\n\n return index === 1;\n });\n\n isWorking = res.threw === false && res.value === true && spy === 'ab';\n }\n\n if (isWorking) {\n spy = 0;\n res = attempt.call(\n (function getArgs() {\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n })(1, 2, 3),\n nativeSome,\n (item, index) => {\n spy += item;\n\n return index === 2;\n },\n );\n\n isWorking = res.threw === false && res.value === true && spy === 6;\n }\n\n if (isWorking) {\n spy = 0;\n res = attempt.call(\n {\n 0: 1,\n 1: 2,\n 3: 3,\n 4: 4,\n length: 4,\n },\n nativeSome,\n (item) => {\n spy += item;\n\n return false;\n },\n );\n\n isWorking = res.threw === false && res.value === false && spy === 6;\n }\n\n if (isWorking) {\n const doc = typeof document !== 'undefined' && document;\n\n if (doc) {\n spy = null;\n const fragment = doc.createDocumentFragment();\n const div = doc.createElement('div');\n fragment.appendChild(div);\n res = attempt.call(fragment.childNodes, nativeSome, (item) => {\n spy = item;\n\n return item;\n });\n\n isWorking = res.threw === false && res.value === true && spy === div;\n }\n }\n\n if (isWorking) {\n const isStrict = (function getIsStrict() {\n /* eslint-disable-next-line babel/no-invalid-this */\n return castBoolean(this) === false;\n })();\n\n if (isStrict) {\n spy = null;\n res = attempt.call(\n [1],\n nativeSome,\n () => {\n /* eslint-disable-next-line babel/no-invalid-this */\n spy = typeof this === 'string';\n },\n 'x',\n );\n\n isWorking = res.threw === false && res.value === false && spy === true;\n }\n }\n\n if (isWorking) {\n spy = {};\n const fn = [\n 'return nativeSome.call(\"foo\", function (_, __, context) {',\n 'if (Boolean(context) === false || typeof context !== \"object\") {',\n 'spy.value = true;}});',\n ].join('');\n\n /* eslint-disable-next-line no-new-func */\n res = attempt(Function('nativeSome', 'spy', fn), nativeSome, spy);\n\n isWorking = res.threw === false && res.value === false && spy.value !== true;\n }\n}\n\n/**\n * This method tests whether some element in the array passes the test\n * implemented by the provided function.\n *\n * @param {Array} array - The array to iterate over.\n * @param {Function} callBack - Function to test for each element.\n * @param {*} [thisArg] - Value to use as this when executing callback.\n * @throws {TypeError} If array is null or undefined.\n * @throws {TypeError} If callBack is not a function.\n * @returns {boolean} `true` if the callback function returns a truthy value for\n * any array element; otherwise, `false`.\n */\nlet $some;\n\nif (nativeSome) {\n $some = function some(array, callBack /* , thisArg */) {\n const args = [callBack];\n\n if (arguments.length > 2) {\n /* eslint-disable-next-line prefer-rest-params,prefer-destructuring */\n args[1] = arguments[2];\n }\n\n return nativeSome.apply(array, args);\n };\n} else {\n // ES5 15.4.4.17\n // http://es5.github.com/#x15.4.4.17\n // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some\n\n $some = function some(array, callBack /* , thisArg */) {\n const object = toObject(array);\n // If no callback function or if callback is not a callable function\n assertIsFunction(callBack);\n const iterable = splitIfBoxedBug(object);\n const length = toLength(iterable.length);\n let thisArg;\n\n if (arguments.length > 2) {\n /* eslint-disable-next-line prefer-rest-params,prefer-destructuring */\n thisArg = arguments[2];\n }\n\n const noThis = typeof thisArg === 'undefined';\n for (let i = 0; i < length; i += 1) {\n if (i in iterable) {\n const item = iterable[i];\n\n if (noThis ? callBack(item, i, object) : callBack.call(thisArg, item, i, object)) {\n return true;\n }\n }\n }\n\n return false;\n };\n}\n\nconst s = $some;\n\nexport default s;\n","import attempt from 'attempt-x';\nimport splitIfBoxedBug from 'split-if-boxed-bug-x';\nimport toLength from 'to-length-x';\nimport toObject from 'to-object-x';\nimport assertIsFunction from 'assert-is-function-x';\n\n/** @type {ArrayConstructor} */\nconst ArrayCtr = [].constructor;\n/** @type {ObjectConstructor} */\nconst castObject = {}.constructor;\n/** @type {BooleanConstructor} */\nconst castBoolean = true.constructor;\nconst nativFilter = typeof ArrayCtr.prototype.filter === 'function' && ArrayCtr.prototype.filter;\n\nlet isWorking;\n\nif (nativFilter) {\n let spy = 0;\n let res = attempt.call([1, 2], nativFilter, (item) => {\n spy += item;\n\n return false;\n });\n\n isWorking = res.threw === false && res.value && res.value.length === 0 && spy === 3;\n\n if (isWorking) {\n spy = '';\n res = attempt.call(castObject('abc'), nativFilter, (item, index) => {\n spy += item;\n\n return index === 1;\n });\n\n isWorking = res.threw === false && res.value && res.value.length === 1 && res.value[0] === 'b' && spy === 'abc';\n }\n\n if (isWorking) {\n spy = 0;\n res = attempt.call(\n (function getArgs() {\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n })(1, 2, 3),\n nativFilter,\n (item, index) => {\n spy += item;\n\n return index === 2;\n },\n );\n\n isWorking = res.threw === false && res.value && res.value.length === 1 && res.value[0] === 3 && spy === 6;\n }\n\n if (isWorking) {\n spy = 0;\n res = attempt.call(\n {\n 0: 1,\n 1: 2,\n 3: 3,\n 4: 4,\n length: 4,\n },\n nativFilter,\n (item) => {\n spy += item;\n\n return false;\n },\n );\n\n isWorking = res.threw === false && res.value && res.value.length === 0 && spy === 6;\n }\n\n if (isWorking) {\n const doc = typeof document !== 'undefined' && document;\n\n if (doc) {\n spy = null;\n const fragment = doc.createDocumentFragment();\n const div = doc.createElement('div');\n fragment.appendChild(div);\n res = attempt.call(fragment.childNodes, nativFilter, (item) => {\n spy = item;\n\n return item;\n });\n\n isWorking = res.threw === false && res.value && res.value.length === 1 && res.value[0] === div && spy === div;\n }\n }\n\n if (isWorking) {\n const isStrict = (function returnIsStrict() {\n /* eslint-disable-next-line babel/no-invalid-this */\n return castBoolean(this) === false;\n })();\n\n if (isStrict) {\n spy = null;\n res = attempt.call(\n [1],\n nativFilter,\n () => {\n /* eslint-disable-next-line babel/no-invalid-this */\n spy = typeof this === 'string';\n },\n 'x',\n );\n\n isWorking = res.threw === false && res.value && res.value.length === 0 && spy === true;\n }\n }\n\n if (isWorking) {\n spy = {};\n const fn = [\n 'return nativFilter.call(\"foo\", function (_, __, context) {',\n 'if (castBoolean(context) === false || typeof context !== \"object\") {',\n 'spy.value = true;}});',\n ].join('');\n\n /* eslint-disable-next-line no-new-func */\n res = attempt(Function('nativFilter', 'spy', 'castBoolean', fn), nativFilter, spy);\n\n isWorking = res.threw === false && res.value && res.value.length === 0 && spy.value !== true;\n }\n}\n\n/**\n * This method creates a new array with all elements that pass the test\n * implemented by the provided function.\n *\n * @param {Array} array - The array to iterate over.\n * @param {Function} callBack - Function is a predicate, to test each element.\n * @param {*} [thisArg] - Value to use as this when executing callback.\n * @throws {TypeError} If array is null or undefined.\n * @throws {TypeError} If callBack is not a function.\n * @returns {Array} A new array with the elements that pass the test.\n */\nlet $filter;\n\nif (nativFilter) {\n $filter = function filter(array, callBack /* , thisArg */) {\n const args = [callBack];\n\n if (arguments.length > 2) {\n /* eslint-disable-next-line prefer-rest-params,prefer-destructuring */\n args[1] = arguments[2];\n }\n\n return nativFilter.apply(array, args);\n };\n} else {\n $filter = function filter(array, callBack /* , thisArg */) {\n const object = toObject(array);\n // If no callback function or if callback is not a callable function\n assertIsFunction(callBack);\n const iterable = splitIfBoxedBug(object);\n const length = toLength(iterable.length);\n let thisArg;\n\n if (arguments.length > 2) {\n /* eslint-disable-next-line prefer-rest-params,prefer-destructuring */\n thisArg = arguments[2];\n }\n\n const noThis = typeof thisArg === 'undefined';\n const result = [];\n for (let i = 0; i < length; i += 1) {\n if (i in iterable) {\n const item = iterable[i];\n\n if (noThis ? callBack(item, i, object) : callBack.call(thisArg, item, i, object)) {\n result[result.length] = item;\n }\n }\n }\n\n return result;\n };\n}\n\nconst arrayFilter = $filter;\n\nexport default arrayFilter;\n","import toObject from 'to-object-x';\nimport attempt from 'attempt-x';\nimport isArray from 'is-array-x';\nimport isArguments from 'is-arguments';\nimport arraySlice from 'array-like-slice-x';\nimport splitIfBoxed from 'split-if-boxed-bug-x';\nimport isString from 'is-string';\nimport isRegexp from 'is-regexp-x';\nimport has from 'has-own-property-x';\nimport objKeys from 'object-keys';\n\nconst ObjectCtr = {}.constructor;\nconst nativeKeys = typeof ObjectCtr.keys === 'function' && ObjectCtr.keys;\n\nlet isWorking;\nlet throwsWithNull;\nlet worksWithPrim;\nlet worksWithRegex;\nlet worksWithArgs;\nlet worksWithStr;\n\nif (nativeKeys) {\n const isCorrectRes = function _isCorrectRes(r, length) {\n return r.threw === false && isArray(r.value) && r.value.length === length;\n };\n\n const either = function _either(r, a, b) {\n const x = r.value[0];\n const y = r.value[1];\n\n return (x === a && y === b) || (x === b && y === a);\n };\n\n let testObj = {a: 1, b: 2};\n let res = attempt(nativeKeys, testObj);\n isWorking = isCorrectRes(res, 2) && either(res, 'a', 'b');\n\n if (isWorking) {\n testObj = Object('a');\n testObj.y = 1;\n res = attempt(nativeKeys, testObj);\n isWorking = isCorrectRes(res, 2) && either(res, '0', 'y');\n }\n\n if (isWorking) {\n throwsWithNull = attempt(nativeKeys, null).threw;\n worksWithPrim = isCorrectRes(attempt(nativeKeys, 42), 0);\n worksWithRegex = attempt(nativeKeys, /a/g).threw === false;\n\n res = attempt(\n nativeKeys,\n (function getArgs() {\n /* eslint-disable-next-line prefer-rest-params */\n return arguments;\n })(1, 2),\n );\n\n worksWithArgs = isCorrectRes(res, 2) && either(res, '0', '1');\n\n res = attempt(nativeKeys, Object('ab'));\n worksWithStr = isCorrectRes(res, 2) && either(res, '0', '1');\n }\n}\n\n/**\n * This method returns an array of a given object's own enumerable properties,\n * in the same order as that provided by a for...in loop (the difference being\n * that a for-in loop enumerates properties in the prototype chain as well).\n *\n * @param {*} obj - The object of which the enumerable own properties are to be returned.\n * @returns {Array} An array of strings that represent all the enumerable properties of the given object.\n */\nlet objectKeys;\n\nif (isWorking) {\n if (throwsWithNull && worksWithPrim && worksWithRegex && worksWithArgs && worksWithStr) {\n objectKeys = nativeKeys;\n } else {\n objectKeys = function keys(object) {\n let obj = toObject ? toObject(object) : object;\n\n if (worksWithArgs !== true && isArguments(obj)) {\n obj = arraySlice(obj);\n } else if (worksWithStr !== true && isString(obj)) {\n obj = splitIfBoxed(obj);\n } else if (worksWithRegex !== true && isRegexp(obj)) {\n const regexKeys = [];\n /* eslint-disable-next-line no-restricted-syntax */\n for (const key in obj) {\n // noinspection JSUnfilteredForInLoop\n if (has(obj, key)) {\n regexKeys[regexKeys.length] = key;\n }\n }\n\n return regexKeys;\n }\n\n return nativeKeys(obj);\n };\n }\n} else {\n objectKeys = function keys(object) {\n return objKeys(toObject(object));\n };\n}\n\nconst ok = objectKeys;\n\nexport default ok;\n","import isDate from 'is-date-object';\nimport isArguments from 'is-arguments';\nimport isPrimitive from 'is-primitive';\nimport isObject from 'is-object';\nimport isBuffer from 'is-buffer';\nimport isString from 'is-string';\nimport isError from 'is-error-x';\nimport isMap from 'is-map-x';\nimport isSet from 'is-set-x';\nimport isNil from 'is-nil-x';\nimport isRegExp from 'is-regexp-x';\nimport indexOf from 'index-of-x';\nimport slice from 'array-slice-x';\nimport some from 'array-some-x';\nimport filter from 'array-filter-x';\nimport sort from 'stable';\nimport $keys from 'object-keys-x';\nimport $getPrototypeOf from 'get-prototype-of-x';\nimport hasBoxedString from 'has-boxed-string-x';\n\n// Check failure of by-index access of string characters (IE < 9)\n// and failure of `0 in boxedString` (Rhino)\nconst hasBoxedStringBug = hasBoxedString === false;\n// Used to detect unsigned integer values.\nconst reIsUint = /^(?:0|[1-9]\\d*)$/;\n/* eslint-disable-next-line compat/compat */\nconst hasMapEnumerables = typeof Map === 'function' ? $keys(new Map()) : [];\n/* eslint-disable-next-line compat/compat */\nconst hasSetEnumerables = typeof Set === 'function' ? $keys(new Set()) : [];\nlet hasErrorEnumerables;\n\ntry {\n // noinspection ExceptionCaughtLocallyJS\n throw new Error('a');\n} catch (e) {\n hasErrorEnumerables = $keys(e);\n}\n\nconst indexNotFound = -1;\nconst maxSafeIndex = 4294967295; // (2^32)-1\n\n/**\n * Checks if `value` is a valid string index. Specifically for boxed string\n * bug fix and not general purpose.\n *\n * @private\n * @param {*} value - The value to check.\n * @returns {boolean} Returns `true` if `value` is valid index, else `false`.\n */\nconst isIndex = function _isIndex(value) {\n let num = indexNotFound;\n\n if (reIsUint.test(value)) {\n num = Number(value);\n }\n\n return num > indexNotFound && num % 1 === 0 && num < maxSafeIndex;\n};\n\n/**\n * Get an object's key avoiding boxed string bug. Specifically for boxed\n * string bug fix and not general purpose.\n *\n * @private\n * @param {Array|string|object} object - The object to get the `value` from.\n * @param {string|number} key - The `key` reference to the `value`.\n * @param {boolean} isStr - Is the object a string.\n * @param {boolean} isIdx - Is the `key` a character index.\n * @returns {*} Returns the `value` referenced by the `key`.\n */\nconst getItem = function _getItem(object, key, isStr, isIdx) {\n return isStr && isIdx ? object.charAt(key) : object[key];\n};\n\n/**\n * Filter `keys` of unwanted Error enumerables. Specifically for Error has\n * unwanted enumerables fix and not general purpose.\n *\n * @private\n * @param {Array} keys - The Error object's keys.\n * @param {Array} unwanted - The unwanted keys.\n * @returns {Array} Returns the filtered keys.\n */\nconst filterUnwanted = function _filterUnwanted(keys, unwanted) {\n return unwanted.length\n ? filter(keys, function _filter(key) {\n return indexOf(unwanted, key) === indexNotFound;\n })\n : keys;\n};\n\n/**\n * Tests for deep equality. Primitive values are compared with the equal\n * comparison operator ( == ). This only considers enumerable properties.\n * It does not test object prototypes, attached symbols, or non-enumerable\n * properties. This can lead to some potentially surprising results. If\n * `strict` is `true` then Primitive values are compared with the strict\n * equal comparison operator ( === ).\n *\n * @private\n * @param {*} actual - First comparison object.\n * @param {*} expected - Second comparison object.\n * @param {boolean} [strict] - Comparison mode. If set to `true` use `===`.\n * @param {object} previousStack - The circular stack.\n * @returns {boolean} `true` if `actual` and `expected` are deemed equal,\n * otherwise `false`.\n */\nconst baseDeepEqual = function _baseDeepEqual(actual, expected, strict, previousStack) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n }\n\n if (isBuffer(actual) && isBuffer(expected)) {\n return (\n actual.length === expected.length &&\n some(actual, function _some1(item, index) {\n return item !== expected[index];\n }) === false\n );\n }\n\n // 7.2. If the expected value is a Date object, the actual value is\n // equivalent if it is also a Date object that refers to the same time.\n if (isDate(actual) && isDate(expected)) {\n return actual.getTime() === expected.getTime();\n }\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same `source` and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase` & `sticky`).\n if (isRegExp(actual) && isRegExp(expected)) {\n return actual.toString() === expected.toString() && actual.lastIndex === expected.lastIndex;\n }\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by == or strict ===.\n if (isObject(actual) === false && isObject(expected) === false) {\n if (strict) {\n return actual === expected;\n }\n\n // noinspection EqualityComparisonWithCoercionJS\n return actual == expected; /* eslint-disable-line eqeqeq */\n }\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n if (isNil(actual) || isNil(expected)) {\n return false;\n }\n\n /* jshint eqnull:false */\n // This only considers enumerable properties. It does not test object\n // prototypes, attached symbols, or non-enumerable properties. This can\n // lead to some potentially surprising results.\n if (strict && $getPrototypeOf(actual) !== $getPrototypeOf(expected)) {\n return false;\n }\n\n // if one is actual primitive, the other must be same\n if (isPrimitive(actual) || isPrimitive(expected)) {\n return actual === expected;\n }\n\n let ka = isArguments(actual);\n let kb = isArguments(expected);\n const aNotB = ka && kb === false;\n const bNotA = ka === false && kb;\n\n if (aNotB || bNotA) {\n return false;\n }\n\n if (ka) {\n if (ka.length !== kb.length) {\n return false;\n }\n\n return baseDeepEqual(slice(actual), slice(expected), strict, null);\n }\n\n ka = $keys(actual);\n kb = $keys(expected);\n\n // having the same number of owned properties (keys incorporates hasOwnProperty)\n if (ka.length !== kb.length) {\n return false;\n }\n\n if (isObject(actual)) {\n if (isError(actual)) {\n ka = filterUnwanted(ka, hasErrorEnumerables);\n } else if (isMap(actual)) {\n ka = filterUnwanted(ka, hasMapEnumerables);\n } else if (isSet(actual)) {\n ka = filterUnwanted(ka, hasSetEnumerables);\n }\n }\n\n if (isObject(expected)) {\n if (isError(expected)) {\n kb = filterUnwanted(kb, hasErrorEnumerables);\n } else if (isMap(expected)) {\n kb = filterUnwanted(kb, hasMapEnumerables);\n } else if (isSet(expected)) {\n kb = filterUnwanted(kb, hasSetEnumerables);\n }\n }\n\n // the same set of keys (although not necessarily the same order),\n sort.inplace(ka);\n sort.inplace(kb);\n let aIsString;\n let bIsString;\n\n if (hasBoxedStringBug) {\n aIsString = isString(actual);\n bIsString = isString(expected);\n }\n\n // ~~~cheap key test\n // equivalent values for every corresponding key, and\n // ~~~possibly expensive deep test\n return (\n some(ka, function _some2(key, index) {\n if (key !== kb[index]) {\n return true;\n }\n\n const isIdx = (aIsString || bIsString) && isIndex(key);\n const stack = previousStack || [actual];\n const item = getItem(actual, key, aIsString, isIdx);\n const isPrim = isPrimitive(item);\n\n if (isPrim === false) {\n if (indexOf(stack, item) !== indexNotFound) {\n throw new RangeError('Circular object');\n }\n\n stack.push(item);\n }\n\n const result = baseDeepEqual(item, getItem(expected, key, bIsString, isIdx), strict, stack) === false;\n\n if (isPrim === false) {\n stack.pop();\n }\n\n return result;\n }) === false\n );\n};\n\n/**\n * Tests for deep equality. Primitive values are compared with the equal\n * comparison operator ( == ). This only considers enumerable properties.\n * It does not test object prototypes, attached symbols, or non-enumerable\n * properties. This can lead to some potentially surprising results. If\n * `strict` is `true` then Primitive values are compared with the strict\n * equal comparison operator ( === ).\n *\n * @param {*} actual - First comparison object.\n * @param {*} expected - Second comparison object.\n * @param {boolean} [strict] - Comparison mode. If set to `true` use `===`.\n * @returns {boolean} `true` if `actual` and `expected` are deemed equal,\n * otherwise `false`.\n * @see https://nodejs.org/api/assert.html\n */\nconst deepEqual = function deepEqual(actual, expected, strict) {\n return baseDeepEqual(actual, expected, strict);\n};\n\nexport default deepEqual;\n"],"sourceRoot":""}
\No newline at end of file