diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 0000000..8689748 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,18 @@ +{ + "files": { + "main.css": "/nescore/static/css/main.89c035eb.css", + "main.js": "/nescore/static/js/main.99dea96c.js", + "static/js/517.c1fcf108.chunk.js": "/nescore/static/js/517.c1fcf108.chunk.js", + "static/js/64.40a37172.chunk.js": "/nescore/static/js/64.40a37172.chunk.js", + "worklet.js": "/nescore/cd2563207911a3f9717a.worklet.js", + "index.html": "/nescore/index.html", + "main.89c035eb.css.map": "/nescore/static/css/main.89c035eb.css.map", + "main.99dea96c.js.map": "/nescore/static/js/main.99dea96c.js.map", + "517.c1fcf108.chunk.js.map": "/nescore/static/js/517.c1fcf108.chunk.js.map", + "64.40a37172.chunk.js.map": "/nescore/static/js/64.40a37172.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.89c035eb.css", + "static/js/main.99dea96c.js" + ] +} \ No newline at end of file diff --git a/cd2563207911a3f9717a.worklet.js b/cd2563207911a3f9717a.worklet.js new file mode 100644 index 0000000..14efbcf --- /dev/null +++ b/cd2563207911a3f9717a.worklet.js @@ -0,0 +1,2 @@ +!function(){var t={162:function(t){function e(t,e){this._elements=new Array(t||50),this._first=0,this._last=0,this._size=0,this._evictedCb=e}t.exports=e,e.prototype.capacity=function(){return this._elements.length},e.prototype.isEmpty=function(){return 0===this.size()},e.prototype.isFull=function(){return this.size()===this.capacity()},e.prototype.peek=function(){if(this.isEmpty())throw new Error("RingBuffer is empty");return this._elements[this._first]},e.prototype.peekN=function(t){if(t>this._size)throw new Error("Not enough elements in RingBuffer");var e=Math.min(this._first+t,this.capacity()),r=this._elements.slice(this._first,e);if(et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,f=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var t=n.next();return f=t.done,t},e:function(t){c=!0,u=t},f:function(){try{f||null==n.return||n.return()}finally{if(c)throw u}}}}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}function i(t,e){for(var r=0;r=h&&t.buffer.deqN(h);var n,o=e(r.data);try{for(o.s();!(n=o.n()).done;){var i=n.value;t.buffer.enq(i)}}catch(u){o.e(u)}finally{o.f()}},t}return r=l,(n=[{key:"process",value:function(t,e){var r=e[0][0],n=r.length;try{for(var o=this.buffer.deqN(n),i=0;i this._size) throw new Error('Not enough elements in RingBuffer');\n\n var end = Math.min(this._first + count, this.capacity());\n var firstHalf = this._elements.slice(this._first, end);\n if (end < this.capacity()) {\n return firstHalf;\n }\n var secondHalf = this._elements.slice(0, count - firstHalf.length);\n return firstHalf.concat(secondHalf);\n};\n\n/**\n * Dequeues the top element of the queue.\n *\n * @return {Object}\n * @throws {Error} when the ring buffer is empty.\n * @api public\n */\nRingBuffer.prototype.deq = function() {\n var element = this.peek();\n\n this._size--;\n this._first = (this._first + 1) % this.capacity();\n\n return element;\n};\n\n/**\n * Dequeues multiple elements of the queue.\n *\n * @return {Array}\n * @throws {Error} when there are not enough elements in the buffer.\n * @api public\n */\nRingBuffer.prototype.deqN = function(count) {\n var elements = this.peekN(count);\n\n this._size -= count;\n this._first = (this._first + count) % this.capacity();\n\n return elements;\n};\n\n/**\n * Enqueues the `element` at the end of the ring buffer and returns its new size.\n *\n * @param {Object} element\n * @return {Number}\n * @api public\n */\nRingBuffer.prototype.enq = function(element) {\n this._end = (this._first + this.size()) % this.capacity();\n var full = this.isFull()\n if (full && this._evictedCb) {\n this._evictedCb(this._elements[this._end]);\n }\n this._elements[this._end] = element;\n\n if (full) {\n this._first = (this._first + 1) % this.capacity();\n } else {\n this._size++;\n }\n\n return this.size();\n};\n\n/**\n * Returns the size of the queue.\n *\n * @return {Number}\n * @api public\n */\nRingBuffer.prototype.size = function() {\n return this._size;\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nexport default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = Reflect.construct.bind();\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}","export default function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}","/** Compile-time options that change the emulator's behavior. */\nexport default {\n\t// [frontend]\n\tSYNC_TO_AUDIO: true,\n\tAUDIO_BUFFER_LIMIT: 4096,\n\tAUDIO_BUFFER_SIZE: 8192,\n\tFPS: 60.098,\n\n\t// [emulator]\n\tBASE_VOLUME: 1,\n\tMIN_FREQUENCY_CHANGE: 5,\n\tPULSE_CHANNEL_VOLUME: 1,\n\tTRIANGLE_CHANNEL_VOLUME: 1,\n\tNOISE_CHANNEL_VOLUME: 1,\n\tDMC_CHANNEL_VOLUME: 1,\n\n\t// [test]\n\tNESTEST_PATH: \"./public/testroms/nestest.nes\"\n};\n","import RingBuffer from \"ringbufferjs\";\nimport config from \"../../nes/config\";\n\nclass PlayerWorklet extends AudioWorkletProcessor {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.buffer = new RingBuffer(config.AUDIO_BUFFER_SIZE);\n\n\t\tthis.port.onmessage = (event) => {\n\t\t\tif (this.buffer.size() >= config.AUDIO_BUFFER_SIZE) {\n\t\t\t\t// buffer overrun\n\t\t\t\tthis.buffer.deqN(config.AUDIO_BUFFER_SIZE);\n\t\t\t}\n\n\t\t\tfor (let sample of event.data) this.buffer.enq(sample);\n\t\t};\n\t}\n\n\tprocess(inputs, outputs) {\n\t\tconst output = outputs[0][0];\n\t\tconst size = output.length;\n\n\t\ttry {\n\t\t\tconst samples = this.buffer.deqN(size);\n\t\t\tfor (let i = 0; i < size; i++) output[i] = samples[i];\n\t\t} catch (e) {\n\t\t\t// buffer underrun (needed {size}, got {this.buffer.size()})\n\t\t\t// ignore empty buffers... assume audio has just stopped\n\t\t\tfor (let i = 0; i < size; i++) output[i] = 0;\n\t\t}\n\n\t\tthis.port.postMessage(this.buffer.size());\n\n\t\treturn true;\n\t}\n}\n\nregisterProcessor(\"player-worklet\", PlayerWorklet);\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}"],"names":["RingBuffer","capacity","evictedCb","this","_elements","Array","_first","_last","_size","_evictedCb","module","exports","prototype","length","isEmpty","size","isFull","peek","Error","peekN","count","end","Math","min","firstHalf","slice","secondHalf","concat","deq","element","deqN","elements","enq","_end","full","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","hasOwnProperty","call","_arrayLikeToArray","arr","len","i","arr2","_createForOfIteratorHelper","allowArrayLike","it","Symbol","iterator","isArray","minLen","toString","constructor","name","from","test","F","s","done","value","e","_e","f","TypeError","err","normalCompletion","didErr","step","next","_e2","_typeof","_toPropertyKey","arg","input","hint","prim","toPrimitive","res","String","Number","_defineProperties","target","props","descriptor","configurable","writable","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_getPrototypeOf","getPrototypeOf","_isNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","_possibleConstructorReturn","self","ReferenceError","_construct","Parent","args","Class","push","apply","instance","Function","arguments","_wrapNativeSuper","_cache","Map","fn","indexOf","has","set","Wrapper","create","PlayerWorklet","_AudioWorkletProcesso","subClass","superClass","_inherits","Constructor","protoProps","staticProps","_super","Derived","hasNativeReflectConstruct","result","Super","NewTarget","_createSuper","_this","_classCallCheck","buffer","config","port","onmessage","event","_step","_iterator","data","sample","inputs","outputs","output","samples","postMessage","AudioWorkletProcessor","registerProcessor"],"sourceRoot":""} \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..698b0f0 Binary files /dev/null and b/favicon.ico differ diff --git a/fonts/css.css b/fonts/css.css new file mode 100644 index 0000000..42a839a --- /dev/null +++ b/fonts/css.css @@ -0,0 +1,49 @@ +/* cyrillic-ext */ +@font-face { + font-family: "Press Start 2P"; + font-style: normal; + font-weight: 400; + src: local("Press Start 2P Regular"), local("PressStart2P-Regular"), + url(e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2) format("woff2"); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, + U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: "Press Start 2P"; + font-style: normal; + font-weight: 400; + src: local("Press Start 2P Regular"), local("PressStart2P-Regular"), + url(e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2) format("woff2"); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek */ +@font-face { + font-family: "Press Start 2P"; + font-style: normal; + font-weight: 400; + src: local("Press Start 2P Regular"), local("PressStart2P-Regular"), + url(e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2) format("woff2"); + unicode-range: U+0370-03FF; +} +/* latin-ext */ +@font-face { + font-family: "Press Start 2P"; + font-style: normal; + font-weight: 400; + src: local("Press Start 2P Regular"), local("PressStart2P-Regular"), + url(e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2) format("woff2"); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, + U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: "Press Start 2P"; + font-style: normal; + font-weight: 400; + src: local("Press Start 2P Regular"), local("PressStart2P-Regular"), + url(e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2) format("woff2"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, + U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, + U+FEFF, U+FFFD; +} diff --git a/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 new file mode 100644 index 0000000..b85289e Binary files /dev/null and b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 differ diff --git a/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 new file mode 100644 index 0000000..8ffc9f2 Binary files /dev/null and b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 differ diff --git a/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 new file mode 100644 index 0000000..3acc3bc Binary files /dev/null and b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 differ diff --git a/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 new file mode 100644 index 0000000..bfe4b66 Binary files /dev/null and b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 differ diff --git a/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 new file mode 100644 index 0000000..a07c65e Binary files /dev/null and b/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..3b97e7a --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +NesCore
\ No newline at end of file diff --git a/static/css/main.89c035eb.css b/static/css/main.89c035eb.css new file mode 100644 index 0000000..c53d90c --- /dev/null +++ b/static/css/main.89c035eb.css @@ -0,0 +1,15 @@ +.Screen_screen__s8yBa{height:100%;image-rendering:pixelated;image-rendering:optimizespeed;width:100%}.App_app__mMjAF{padding:10px;text-align:center}.App_sourceCode__ehS7J{position:absolute;right:8px;top:8px}.App_subtitle__pal5K{color:#c7c7c7}.App_subsubtitle__FtsYu{color:#c7c7c7;font-size:6px;margin-bottom:24px}.App_warning__OXq27{color:red;font-size:6px;margin-bottom:0}.App_gameContainer__37eQ7{aspect-ratio:256/240;height:75vh;margin-left:auto!important;margin-right:auto!important;padding:0!important} + +/*!***************************************************************************\ + NES.css Framework + Version: 2.3.0 + +\*****************************************************************************/ +/*! + * Bootstrap Reboot v4.1.3 (https://getbootstrap.com/) + * Copyright 2011-2018 The Bootstrap Authors + * Copyright 2011-2018 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) + */*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;font-weight:400;line-height:1.5;text-align:left}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{-ms-overflow-style:scrollbar;margin-bottom:1rem;margin-top:0;overflow:auto}figure{margin:0 0 1rem}img{border-style:none}img,svg{vertical-align:middle}svg{overflow:hidden}table{border-collapse:collapse}caption{caption-side:bottom;color:#6c757d;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{cursor:pointer;display:list-item}template{display:none}[hidden]{display:none!important}html{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABFklEQVRYR9WXURLDIAhE6/0PbSdOtUpcd1Gnpv1KGpTHBpCE1/cXq+vrMph7dGvXZTtpfW10DCA5jrH1H0Jhs5E0hnZdCR+vb5S8Nn8mQCeS9BdSalYJqMBjAGzq59xAESN7VFVUgV8AZB/dZBR7QTFDCqGquvUBVVoEtgIwpQRzmANSFHgWQKExHdIrPeuMvQNDarXe6nC/AutgV3JW+6bgqQLeV8FekRtgV+ToDKEKnACYKsfZjjkam7a0ZpYTytwmgainpC3HvwBocgKOxqRjehoR9DFKNFYtOwCGYCszobeCbl26N6yyQ6g8X/Wex/rBPsNEV6qAMaJPMynIHQCoSqS9JSMmwef51LflTgCRszU7DvAGiV6mHWfsaVUAAAAASUVORK5CYII=),auto}body{-webkit-font-smoothing:antialiased;background-color:#fff;color:#212529;font-size:16px}label{cursor:inherit}a,button{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0,pointer}[type=button],[type=reset],[type=submit],button{-webkit-appearance:none}input[type=checkbox],input[type=radio]{outline:0}@keyframes blink{0%{opacity:1}50%{opacity:0}}.nes-balloon,.nes-balloon.is-dark,.nes-btn,.nes-container.is-rounded,.nes-container.is-rounded.is-dark,.nes-dialog.is-rounded,.nes-dialog.is-rounded.is-dark,.nes-input,.nes-progress,.nes-progress.is-rounded,.nes-select select,.nes-table.is-bordered,.nes-table.is-dark.is-bordered,.nes-textarea{border-style:solid;border-width:4px}.nes-pointer{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0,pointer}.nes-avatar{height:32px;width:32px}.nes-avatar.is-rounded{border-radius:50px}.nes-avatar.is-small{height:16px;width:16px}.nes-avatar.is-small.is-rounded{border-radius:50px}.nes-avatar.is-medium{height:48px;width:48px}.nes-avatar.is-medium.is-rounded{border-radius:50px}.nes-avatar.is-large{height:64px;width:64px}.nes-avatar.is-large.is-rounded{border-radius:50px}.nes-badge{display:inline-block;font-size:.9em;height:1.875em;margin:.5em;position:relative;-webkit-user-select:none;user-select:none;vertical-align:top;white-space:nowrap;width:10.5em}.nes-badge.is-splited span.is-dark:first-child{background-color:#212529;box-shadow:0 .5em #212529,0 -.5em #212529,0 0 #212529,-.5em 0 #212529;color:#fff;left:0;position:absolute;text-align:center;top:0;width:50%}.nes-badge.is-splited span.is-dark:last-child{background-color:#212529;box-shadow:0 .5em #212529,0 -.5em #212529,.5em 0 #212529,0 0 #212529;color:#fff;position:absolute;right:0;text-align:center;top:0;width:50%}.nes-badge.is-icon span.is-dark:first-child{align-items:center;background-color:#212529;color:#fff;display:flex;font-size:.5em;height:2.7em;justify-content:center;left:-2.7em;position:absolute;text-align:center;top:-2.8em;width:2.7em}.nes-badge.is-icon span.is-dark:last-child{align-items:center;background-color:#212529;box-shadow:0 .5em #212529,0 -.5em #212529,.5em 0 #212529,-.5em 0 #212529;color:#fff;display:inline-block;font-size:.88em;justify-content:center;text-align:center;width:6em}.nes-badge span.is-dark:first-child{background-color:#212529;box-shadow:0 .5em #212529,0 -.5em #212529,.5em 0 #212529,-.5em 0 #212529;color:#fff;position:absolute;text-align:center;top:0;width:100%}.nes-badge.is-splited span.is-primary:first-child{background-color:#209cee;box-shadow:0 .5em #209cee,0 -.5em #209cee,0 0 #209cee,-.5em 0 #209cee;color:#fff;left:0;position:absolute;text-align:center;top:0;width:50%}.nes-badge.is-splited span.is-primary:last-child{background-color:#209cee;box-shadow:0 .5em #209cee,0 -.5em #209cee,.5em 0 #209cee,0 0 #209cee;color:#fff;position:absolute;right:0;text-align:center;top:0;width:50%}.nes-badge.is-icon span.is-primary:first-child{align-items:center;background-color:#209cee;color:#fff;display:flex;font-size:.5em;height:2.7em;justify-content:center;left:-2.7em;position:absolute;text-align:center;top:-2.8em;width:2.7em}.nes-badge.is-icon span.is-primary:last-child{align-items:center;background-color:#209cee;box-shadow:0 .5em #209cee,0 -.5em #209cee,.5em 0 #209cee,-.5em 0 #209cee;color:#fff;display:inline-block;font-size:.88em;justify-content:center;text-align:center;width:6em}.nes-badge span.is-primary:first-child{background-color:#209cee;box-shadow:0 .5em #209cee,0 -.5em #209cee,.5em 0 #209cee,-.5em 0 #209cee;color:#fff;position:absolute;text-align:center;top:0;width:100%}.nes-badge.is-splited span.is-success:first-child{background-color:#92cc41;box-shadow:0 .5em #92cc41,0 -.5em #92cc41,0 0 #92cc41,-.5em 0 #92cc41;color:#fff;left:0;position:absolute;text-align:center;top:0;width:50%}.nes-badge.is-splited span.is-success:last-child{background-color:#92cc41;box-shadow:0 .5em #92cc41,0 -.5em #92cc41,.5em 0 #92cc41,0 0 #92cc41;color:#fff;position:absolute;right:0;text-align:center;top:0;width:50%}.nes-badge.is-icon span.is-success:first-child{align-items:center;background-color:#92cc41;color:#fff;display:flex;font-size:.5em;height:2.7em;justify-content:center;left:-2.7em;position:absolute;text-align:center;top:-2.8em;width:2.7em}.nes-badge.is-icon span.is-success:last-child{align-items:center;background-color:#92cc41;box-shadow:0 .5em #92cc41,0 -.5em #92cc41,.5em 0 #92cc41,-.5em 0 #92cc41;color:#fff;display:inline-block;font-size:.88em;justify-content:center;text-align:center;width:6em}.nes-badge span.is-success:first-child{background-color:#92cc41;box-shadow:0 .5em #92cc41,0 -.5em #92cc41,.5em 0 #92cc41,-.5em 0 #92cc41;color:#fff;position:absolute;text-align:center;top:0;width:100%}.nes-badge.is-splited span.is-warning:first-child{background-color:#f7d51d;box-shadow:0 .5em #f7d51d,0 -.5em #f7d51d,0 0 #f7d51d,-.5em 0 #f7d51d;color:#212529;left:0;position:absolute;text-align:center;top:0;width:50%}.nes-badge.is-splited span.is-warning:last-child{background-color:#f7d51d;box-shadow:0 .5em #f7d51d,0 -.5em #f7d51d,.5em 0 #f7d51d,0 0 #f7d51d;color:#212529;position:absolute;right:0;text-align:center;top:0;width:50%}.nes-badge.is-icon span.is-warning:first-child{align-items:center;background-color:#f7d51d;color:#212529;display:flex;font-size:.5em;height:2.7em;justify-content:center;left:-2.7em;position:absolute;text-align:center;top:-2.8em;width:2.7em}.nes-badge.is-icon span.is-warning:last-child{align-items:center;background-color:#f7d51d;box-shadow:0 .5em #f7d51d,0 -.5em #f7d51d,.5em 0 #f7d51d,-.5em 0 #f7d51d;color:#212529;display:inline-block;font-size:.88em;justify-content:center;text-align:center;width:6em}.nes-badge span.is-warning:first-child{background-color:#f7d51d;box-shadow:0 .5em #f7d51d,0 -.5em #f7d51d,.5em 0 #f7d51d,-.5em 0 #f7d51d;color:#212529;position:absolute;text-align:center;top:0;width:100%}.nes-badge.is-splited span.is-error:first-child{background-color:#e76e55;box-shadow:0 .5em #e76e55,0 -.5em #e76e55,0 0 #e76e55,-.5em 0 #e76e55;color:#fff;left:0;position:absolute;text-align:center;top:0;width:50%}.nes-badge.is-splited span.is-error:last-child{background-color:#e76e55;box-shadow:0 .5em #e76e55,0 -.5em #e76e55,.5em 0 #e76e55,0 0 #e76e55;color:#fff;position:absolute;right:0;text-align:center;top:0;width:50%}.nes-badge.is-icon{width:5.25em}.nes-badge.is-icon span.is-error:first-child{align-items:center;background-color:#e76e55;color:#fff;display:flex;font-size:.5em;height:2.7em;justify-content:center;left:-2.7em;position:absolute;text-align:center;top:-2.8em;width:2.7em}.nes-badge.is-icon span.is-error:last-child{align-items:center;background-color:#e76e55;box-shadow:0 .5em #e76e55,0 -.5em #e76e55,.5em 0 #e76e55,-.5em 0 #e76e55;color:#fff;display:inline-block;font-size:.88em;justify-content:center;text-align:center;width:6em}.nes-badge span.is-error:first-child{background-color:#e76e55;box-shadow:0 .5em #e76e55,0 -.5em #e76e55,.5em 0 #e76e55,-.5em 0 #e76e55;color:#fff;position:absolute;text-align:center;top:0;width:100%}.nes-balloon{background-color:#fff;border-image-outset:2;border-image-repeat:stretch;border-image-slice:3;border-image-source:url("data:image/svg+xml;utf8,:last-child{margin-bottom:0}.nes-balloon:after,.nes-balloon:before{content:"";position:absolute}.nes-balloon.is-dark{background:#212529;border-image-outset:0;border-image-outset:2;border-image-repeat:stretch;border-image-slice:3;border-image-source:url("data:image/svg+xml;utf8,:last-child{margin-bottom:0}.nes-container.is-centered{text-align:center}.nes-container.is-right{text-align:right}.nes-container.with-title>.title{background-color:#fff;display:table;font-size:1rem;margin:-1.8rem 0 1rem;padding:0 .5rem}.nes-container.with-title.is-centered>.title{margin:-2rem auto 1rem}.nes-container.with-title.is-right>.title{margin:-2rem 0 1rem auto}.nes-container.is-dark{background-color:#212529;border-color:#fff;color:#fff;margin:4px;position:relative}.nes-container.is-dark:after{background-color:#212529;bottom:-7.2px;content:"";left:-7.2px;position:absolute;right:-7.2px;top:-7.2px;z-index:-1}.nes-container.is-dark.with-title>.title{background-color:#212529;color:#fff}.nes-container.is-rounded{border-image-outset:2;border-image-repeat:stretch;border-image-slice:3;border-image-source:url("data:image/svg+xml;utf8,.title{margin-top:-1.5rem}.nes-container.is-rounded.with-title.is-centered>.title{margin:-1.5rem auto 1rem}.nes-container.is-rounded.with-title.is-right>.title{margin:-1.5rem 0 1rem auto}.nes-container.is-rounded.is-dark{border-image-outset:0;border-image-repeat:stretch;border-image-slice:3;border-image-source:url("data:image/svg+xml;utf8,.title{margin-top:-1.3rem}.nes-container.is-rounded.is-dark.with-title.is-centered>.title{margin:-1.3rem auto 1rem}.nes-container.is-rounded.is-dark.with-title.is-right>.title{margin:-1.3rem 0 1rem auto}.nes-dialog{border-width:4px;padding:1.5rem 2rem}.nes-dialog::backdrop,.nes-dialog>.backdrop{background-color:rgba(0,0,0,.3)}.nes-dialog>:last-child{margin-bottom:0}.nes-dialog.is-rounded{border-image-outset:2;border-image-repeat:stretch;border-image-slice:3;border-image-source:url("data:image/svg+xml;utf8,label{display:block}.nes-field .nes-input,.nes-field .nes-textarea{display:block}.nes-field.is-inline{align-items:center;display:flex}.nes-field.is-inline>label{flex-basis:0;flex-grow:1;margin:0 1.5rem 0 0;text-align:right}.nes-field.is-inline .nes-input,.nes-field.is-inline .nes-textarea{flex-basis:0;flex-grow:5}@media screen and (max-width:768px){.nes-field.is-inline{display:block}.nes-field.is-inline>label{margin-bottom:.5rem;text-align:left}.nes-field.is-inline .nes-input{max-width:100%}}.nes-radio{clip:rect(0 0 0 0);-webkit-appearance:none;appearance:none;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin-right:20px;overflow:hidden;padding:0;white-space:nowrap;width:1px}.nes-radio+span{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0,pointer;position:relative}.nes-radio:checked+span:before{box-shadow:2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;color:#212529;content:"";height:2px;left:-20px;position:absolute;top:-2px;width:2px}@supports (-moz-appearance:meterbar){.nes-radio:checked+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,2px 4px 0 .02em,4px 4px 0 .02em,6px 4px 0 .02em,8px 4px 0 .02em,2px 6px 0 .02em,4px 6px 0 .02em,6px 6px 0 .02em,8px 6px 0 .02em,10px 6px 0 .02em,2px 8px 0 .02em,4px 8px 0 .02em,6px 8px 0 .02em,8px 8px 0 .02em,10px 8px 0 .02em,12px 8px 0 .02em,2px 10px 0 .02em,4px 10px 0 .02em,6px 10px 0 .02em,8px 10px 0 .02em,10px 10px 0 .02em,2px 12px 0 .02em,4px 12px 0 .02em,6px 12px 0 .02em,8px 12px 0 .02em,2px 14px 0 .02em,4px 14px 0 .02em}}.nes-radio:checked:focus+span:before,.nes-radio:checked:hover+span:before{animation:blink 1s steps(1) infinite}.nes-radio:checked:focus+span:before{box-shadow:2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;color:#adafbc;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-radio:checked:focus+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,2px 4px 0 .02em,4px 4px 0 .02em,6px 4px 0 .02em,8px 4px 0 .02em,2px 6px 0 .02em,4px 6px 0 .02em,6px 6px 0 .02em,8px 6px 0 .02em,10px 6px 0 .02em,2px 8px 0 .02em,4px 8px 0 .02em,6px 8px 0 .02em,8px 8px 0 .02em,10px 8px 0 .02em,12px 8px 0 .02em,2px 10px 0 .02em,4px 10px 0 .02em,6px 10px 0 .02em,8px 10px 0 .02em,10px 10px 0 .02em,2px 12px 0 .02em,4px 12px 0 .02em,6px 12px 0 .02em,8px 12px 0 .02em,2px 14px 0 .02em,4px 14px 0 .02em}}.nes-radio.is-dark+span{color:#fff}.nes-radio.is-dark+span:before{color:#fff}.nes-radio.is-dark:checked+span:before{box-shadow:2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;color:#adafbc;color:#fff;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-radio.is-dark:checked+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,2px 4px 0 .02em,4px 4px 0 .02em,6px 4px 0 .02em,8px 4px 0 .02em,2px 6px 0 .02em,4px 6px 0 .02em,6px 6px 0 .02em,8px 6px 0 .02em,10px 6px 0 .02em,2px 8px 0 .02em,4px 8px 0 .02em,6px 8px 0 .02em,8px 8px 0 .02em,10px 8px 0 .02em,12px 8px 0 .02em,2px 10px 0 .02em,4px 10px 0 .02em,6px 10px 0 .02em,8px 10px 0 .02em,10px 10px 0 .02em,2px 12px 0 .02em,4px 12px 0 .02em,6px 12px 0 .02em,8px 12px 0 .02em,2px 14px 0 .02em,4px 14px 0 .02em}}.nes-radio.is-dark:checked:focus+span:before{box-shadow:2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;color:#adafbc;color:#fff;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-radio.is-dark:checked:focus+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,2px 4px 0 .02em,4px 4px 0 .02em,6px 4px 0 .02em,8px 4px 0 .02em,2px 6px 0 .02em,4px 6px 0 .02em,6px 6px 0 .02em,8px 6px 0 .02em,10px 6px 0 .02em,2px 8px 0 .02em,4px 8px 0 .02em,6px 8px 0 .02em,8px 8px 0 .02em,10px 8px 0 .02em,12px 8px 0 .02em,2px 10px 0 .02em,4px 10px 0 .02em,6px 10px 0 .02em,8px 10px 0 .02em,10px 10px 0 .02em,2px 12px 0 .02em,4px 12px 0 .02em,6px 12px 0 .02em,8px 12px 0 .02em,2px 14px 0 .02em,4px 14px 0 .02em}}.nes-checkbox{clip:rect(0 0 0 0);-webkit-appearance:none;appearance:none;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin-left:28px;overflow:hidden;padding:0;white-space:nowrap;width:1px}.nes-checkbox+span{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0,pointer;position:relative}.nes-checkbox+span:before,.nes-checkbox:checked+span:before{content:"";left:-28px;position:absolute;top:-3px}.nes-checkbox+span:before{box-shadow:2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,16px 2px,2px 4px,16px 4px,2px 6px,16px 6px,2px 8px,16px 8px,2px 10px,16px 10px,2px 12px,16px 12px,2px 14px,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;color:#212529;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-checkbox+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,6px 2px 0 .02em,8px 2px 0 .02em,10px 2px 0 .02em,12px 2px 0 .02em,14px 2px 0 .02em,16px 2px 0 .02em,2px 4px 0 .02em,16px 4px 0 .02em,2px 6px 0 .02em,16px 6px 0 .02em,2px 8px 0 .02em,16px 8px 0 .02em,2px 10px 0 .02em,16px 10px 0 .02em,2px 12px 0 .02em,16px 12px 0 .02em,2px 14px 0 .02em,16px 14px 0 .02em,2px 16px 0 .02em,4px 16px 0 .02em,6px 16px 0 .02em,8px 16px 0 .02em,10px 16px 0 .02em,12px 16px 0 .02em,14px 16px 0 .02em,16px 16px 0 .02em}}.nes-checkbox:focus+span:before{box-shadow:2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,16px 2px,2px 4px,16px 4px,2px 6px,16px 6px,2px 8px,16px 8px,2px 10px,16px 10px,2px 12px,16px 12px,2px 14px,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;color:#adafbc;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-checkbox:focus+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,6px 2px 0 .02em,8px 2px 0 .02em,10px 2px 0 .02em,12px 2px 0 .02em,14px 2px 0 .02em,16px 2px 0 .02em,2px 4px 0 .02em,16px 4px 0 .02em,2px 6px 0 .02em,16px 6px 0 .02em,2px 8px 0 .02em,16px 8px 0 .02em,2px 10px 0 .02em,16px 10px 0 .02em,2px 12px 0 .02em,16px 12px 0 .02em,2px 14px 0 .02em,16px 14px 0 .02em,2px 16px 0 .02em,4px 16px 0 .02em,6px 16px 0 .02em,8px 16px 0 .02em,10px 16px 0 .02em,12px 16px 0 .02em,14px 16px 0 .02em,16px 16px 0 .02em}}.nes-checkbox:checked+span:before{box-shadow:2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px,20px 2px,2px 4px,16px 4px,18px 4px,20px 4px,2px 6px,14px 6px,16px 6px,2px 8px,4px 8px,12px 8px,14px 8px,2px 10px,4px 10px,6px 10px,10px 10px,12px 10px,16px 10px,2px 12px,6px 12px,8px 12px,10px 12px,16px 12px,2px 14px,8px 14px,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;color:#212529;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-checkbox:checked+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,6px 2px 0 .02em,8px 2px 0 .02em,10px 2px 0 .02em,12px 2px 0 .02em,14px 2px 0 .02em,18px 2px 0 .02em,20px 2px 0 .02em,2px 4px 0 .02em,16px 4px 0 .02em,18px 4px 0 .02em,20px 4px 0 .02em,2px 6px 0 .02em,14px 6px 0 .02em,16px 6px 0 .02em,2px 8px 0 .02em,4px 8px 0 .02em,12px 8px 0 .02em,14px 8px 0 .02em,2px 10px 0 .02em,4px 10px 0 .02em,6px 10px 0 .02em,10px 10px 0 .02em,12px 10px 0 .02em,16px 10px 0 .02em,2px 12px 0 .02em,6px 12px 0 .02em,8px 12px 0 .02em,10px 12px 0 .02em,16px 12px 0 .02em,2px 14px 0 .02em,8px 14px 0 .02em,16px 14px 0 .02em,2px 16px 0 .02em,4px 16px 0 .02em,6px 16px 0 .02em,8px 16px 0 .02em,10px 16px 0 .02em,12px 16px 0 .02em,14px 16px 0 .02em,16px 16px 0 .02em}}.nes-checkbox:checked:focus+span:before{box-shadow:2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px #212529,20px 2px #212529,2px 4px,16px 4px #212529,18px 4px #212529,20px 4px #212529,2px 6px #212529,14px 6px #212529,16px 6px #212529,2px 8px #212529,4px 8px #212529,12px 8px #212529,14px 8px #212529,2px 10px,4px 10px #212529,6px 10px #212529,10px 10px #212529,12px 10px #212529,16px 10px,2px 12px,6px 12px #212529,8px 12px #212529,10px 12px #212529,16px 12px,2px 14px,8px 14px #212529,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;color:#adafbc;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-checkbox:checked:focus+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,6px 2px 0 .02em,8px 2px 0 .02em,10px 2px 0 .02em,12px 2px 0 .02em,14px 2px 0 .02em,18px 2px 0 .02em #212529,20px 2px 0 .02em #212529,2px 4px 0 .02em,16px 4px 0 .02em #212529,18px 4px 0 .02em #212529,20px 4px 0 .02em #212529,2px 6px 0 .02em #212529,14px 6px 0 .02em #212529,16px 6px 0 .02em #212529,2px 8px 0 .02em #212529,4px 8px 0 .02em #212529,12px 8px 0 .02em #212529,14px 8px 0 .02em #212529,2px 10px 0 .02em,4px 10px 0 .02em #212529,6px 10px 0 .02em #212529,10px 10px 0 .02em #212529,12px 10px 0 .02em #212529,16px 10px 0 .02em,2px 12px 0 .02em,6px 12px 0 .02em #212529,8px 12px 0 .02em #212529,10px 12px 0 .02em #212529,16px 12px 0 .02em,2px 14px 0 .02em,8px 14px 0 .02em #212529,16px 14px 0 .02em,2px 16px 0 .02em,4px 16px 0 .02em,6px 16px 0 .02em,8px 16px 0 .02em,10px 16px 0 .02em,12px 16px 0 .02em,14px 16px 0 .02em,16px 16px 0 .02em}}.nes-checkbox.is-dark+span{color:#fff}.nes-checkbox.is-dark+span:before{color:#fff}.nes-checkbox.is-dark:checked+span:before{box-shadow:2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px #fff,20px 2px #fff,2px 4px,16px 4px #fff,18px 4px #fff,20px 4px #fff,2px 6px #fff,14px 6px #fff,16px 6px #fff,2px 8px #fff,4px 8px #fff,12px 8px #fff,14px 8px #fff,2px 10px,4px 10px #fff,6px 10px #fff,10px 10px #fff,12px 10px #fff,16px 10px,2px 12px,6px 12px #fff,8px 12px #fff,10px 12px #fff,16px 12px,2px 14px,8px 14px #fff,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;color:#adafbc;color:#fff;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-checkbox.is-dark:checked+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,6px 2px 0 .02em,8px 2px 0 .02em,10px 2px 0 .02em,12px 2px 0 .02em,14px 2px 0 .02em,18px 2px 0 .02em #fff,20px 2px 0 .02em #fff,2px 4px 0 .02em,16px 4px 0 .02em #fff,18px 4px 0 .02em #fff,20px 4px 0 .02em #fff,2px 6px 0 .02em #fff,14px 6px 0 .02em #fff,16px 6px 0 .02em #fff,2px 8px 0 .02em #fff,4px 8px 0 .02em #fff,12px 8px 0 .02em #fff,14px 8px 0 .02em #fff,2px 10px 0 .02em,4px 10px 0 .02em #fff,6px 10px 0 .02em #fff,10px 10px 0 .02em #fff,12px 10px 0 .02em #fff,16px 10px 0 .02em,2px 12px 0 .02em,6px 12px 0 .02em #fff,8px 12px 0 .02em #fff,10px 12px 0 .02em #fff,16px 12px 0 .02em,2px 14px 0 .02em,8px 14px 0 .02em #fff,16px 14px 0 .02em,2px 16px 0 .02em,4px 16px 0 .02em,6px 16px 0 .02em,8px 16px 0 .02em,10px 16px 0 .02em,12px 16px 0 .02em,14px 16px 0 .02em,16px 16px 0 .02em}}.nes-checkbox.is-dark:checked:focus+span:before{box-shadow:2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px #fff,20px 2px #fff,2px 4px,16px 4px #fff,18px 4px #fff,20px 4px #fff,2px 6px #fff,14px 6px #fff,16px 6px #fff,2px 8px #fff,4px 8px #fff,12px 8px #fff,14px 8px #fff,2px 10px,4px 10px #fff,6px 10px #fff,10px 10px #fff,12px 10px #fff,16px 10px,2px 12px,6px 12px #fff,8px 12px #fff,10px 12px #fff,16px 12px,2px 14px,8px 14px #fff,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;color:#adafbc;color:#fff;height:2px;width:2px}@supports (-moz-appearance:meterbar){.nes-checkbox.is-dark:checked:focus+span:before{box-shadow:2px 2px 0 .02em,4px 2px 0 .02em,6px 2px 0 .02em,8px 2px 0 .02em,10px 2px 0 .02em,12px 2px 0 .02em,14px 2px 0 .02em,18px 2px 0 .02em #fff,20px 2px 0 .02em #fff,2px 4px 0 .02em,16px 4px 0 .02em #fff,18px 4px 0 .02em #fff,20px 4px 0 .02em #fff,2px 6px 0 .02em #fff,14px 6px 0 .02em #fff,16px 6px 0 .02em #fff,2px 8px 0 .02em #fff,4px 8px 0 .02em #fff,12px 8px 0 .02em #fff,14px 8px 0 .02em #fff,2px 10px 0 .02em,4px 10px 0 .02em #fff,6px 10px 0 .02em #fff,10px 10px 0 .02em #fff,12px 10px 0 .02em #fff,16px 10px 0 .02em,2px 12px 0 .02em,6px 12px 0 .02em #fff,8px 12px 0 .02em #fff,10px 12px 0 .02em #fff,16px 12px 0 .02em,2px 14px 0 .02em,8px 14px 0 .02em #fff,16px 14px 0 .02em,2px 16px 0 .02em,4px 16px 0 .02em,6px 16px 0 .02em,8px 16px 0 .02em,10px 16px 0 .02em,12px 16px 0 .02em,14px 16px 0 .02em,16px 16px 0 .02em}}.nes-select{margin:4px;position:relative;width:calc(100% - 8px)}.nes-select select{-webkit-appearance:none;appearance:none;border-image-outset:2;border-image-repeat:stretch;border-image-slice:2;border-image-source:url("data:image/svg+xml;utf8,');\n border-image-outset: 2;\n position: relative;\n display: inline-block;\n padding: 1rem 1.5rem;\n margin: 8px;\n margin-bottom: 30px;\n background-color: #fff;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-balloon {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-balloon {\n border-image-repeat: stretch;\n }\n}\n\n.nes-balloon > :last-child {\n margin-bottom: 0;\n}\n\n.nes-balloon::before, .nes-balloon::after {\n position: absolute;\n content: \"\";\n}\n\n.nes-balloon.is-dark {\n border-image-slice: 3;\n border-image-width: 3;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 0;\n color: #fff;\n background: #212529;\n border-image-outset: 2;\n box-shadow: 0 0 0 8px #212529;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-balloon.is-dark {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-balloon.is-dark {\n border-image-repeat: stretch;\n }\n}\n\n.nes-balloon.is-dark.from-left::before, .nes-balloon.is-dark.from-right::before {\n background-color: #212529;\n border-color: #fff;\n}\n\n.nes-balloon.is-dark.from-left::after, .nes-balloon.is-dark.from-right::after {\n color: #fff;\n background-color: #212529;\n}\n\n.nes-balloon.is-dark.from-left::before {\n box-shadow: -5px 10px 0 6px #212529;\n}\n\n.nes-balloon.is-dark.from-left::after {\n box-shadow: -4px 0, 4px 0, -4px 4px #212529, 0 4px, -8px 4px, -4px 8px, -8px 8px;\n}\n\n.nes-balloon.is-dark.from-right::before {\n box-shadow: 5px 10px 0 6px #212529;\n}\n\n.nes-balloon.is-dark.from-right::after {\n box-shadow: -4px 0, 4px 0, 4px 4px #212529, 0 4px, 8px 4px, 4px 8px, 8px 8px;\n}\n\n.nes-balloon.from-left::before, .nes-balloon.from-left::after {\n left: 2rem;\n}\n\n.nes-balloon.from-left::before {\n bottom: -14px;\n width: 26px;\n height: 10px;\n background-color: #fff;\n border-right: 4px solid #212529;\n border-left: 4px solid #212529;\n}\n\n.nes-balloon.from-left::after {\n bottom: -18px;\n width: 18px;\n height: 4px;\n margin-right: 8px;\n color: #212529;\n background-color: #fff;\n box-shadow: -4px 0, 4px 0, -4px 4px #fff, 0 4px, -8px 4px, -4px 8px, -8px 8px;\n}\n\n.nes-balloon.from-right::before, .nes-balloon.from-right::after {\n right: 2rem;\n}\n\n.nes-balloon.from-right::before {\n bottom: -14px;\n width: 26px;\n height: 10px;\n background-color: #fff;\n border-right: 4px solid #212529;\n border-left: 4px solid #212529;\n}\n\n.nes-balloon.from-right::after {\n bottom: -18px;\n width: 18px;\n height: 4px;\n margin-left: 8px;\n background-color: #fff;\n box-shadow: -4px 0, 4px 0, 4px 4px #fff, 0 4px, 8px 4px, 4px 8px, 8px 8px;\n}\n\n.nes-btn {\n border-image-slice: 2;\n border-image-width: 2;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n position: relative;\n display: inline-block;\n padding: 6px 8px;\n margin: 4px;\n text-align: center;\n vertical-align: middle;\n cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0, pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n color: #212529;\n background-color: #fff;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-btn {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-btn {\n border-image-repeat: stretch;\n }\n}\n\n.nes-btn::after {\n position: absolute;\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n content: \"\";\n box-shadow: inset -4px -4px #adafbc;\n}\n\n.nes-btn:hover {\n color: #212529;\n text-decoration: none;\n background-color: #e7e7e7;\n}\n\n.nes-btn:hover::after {\n box-shadow: inset -6px -6px #adafbc;\n}\n\n.nes-btn:focus {\n box-shadow: 0 0 0 6px rgba(173, 175, 188, 0.3);\n}\n\n.nes-btn:active:not(.is-disabled)::after {\n box-shadow: inset 4px 4px #adafbc;\n}\n\n.nes-btn:focus {\n outline: 0;\n}\n\n.nes-btn.is-disabled, .nes-btn.is-disabled:hover, .nes-btn.is-disabled:focus {\n color: #212529;\n cursor: not-allowed;\n background-color: #d3d3d3;\n box-shadow: inset -4px -4px #adafbc;\n opacity: 0.6;\n}\n\n.nes-btn.is-primary {\n color: #fff;\n background-color: #209cee;\n}\n\n.nes-btn.is-primary::after {\n position: absolute;\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n content: \"\";\n box-shadow: inset -4px -4px #006bb3;\n}\n\n.nes-btn.is-primary:hover {\n color: #fff;\n text-decoration: none;\n background-color: #108de0;\n}\n\n.nes-btn.is-primary:hover::after {\n box-shadow: inset -6px -6px #006bb3;\n}\n\n.nes-btn.is-primary:focus {\n box-shadow: 0 0 0 6px rgba(0, 107, 179, 0.3);\n}\n\n.nes-btn.is-primary:active:not(.is-disabled)::after {\n box-shadow: inset 4px 4px #006bb3;\n}\n\n.nes-btn.is-success {\n color: #fff;\n background-color: #92cc41;\n}\n\n.nes-btn.is-success::after {\n position: absolute;\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n content: \"\";\n box-shadow: inset -4px -4px #4aa52e;\n}\n\n.nes-btn.is-success:hover {\n color: #fff;\n text-decoration: none;\n background-color: #76c442;\n}\n\n.nes-btn.is-success:hover::after {\n box-shadow: inset -6px -6px #4aa52e;\n}\n\n.nes-btn.is-success:focus {\n box-shadow: 0 0 0 6px rgba(74, 165, 46, 0.3);\n}\n\n.nes-btn.is-success:active:not(.is-disabled)::after {\n box-shadow: inset 4px 4px #4aa52e;\n}\n\n.nes-btn.is-warning {\n color: #212529;\n background-color: #f7d51d;\n}\n\n.nes-btn.is-warning::after {\n position: absolute;\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n content: \"\";\n box-shadow: inset -4px -4px #e59400;\n}\n\n.nes-btn.is-warning:hover {\n color: #212529;\n text-decoration: none;\n background-color: #f2c409;\n}\n\n.nes-btn.is-warning:hover::after {\n box-shadow: inset -6px -6px #e59400;\n}\n\n.nes-btn.is-warning:focus {\n box-shadow: 0 0 0 6px rgba(229, 148, 0, 0.3);\n}\n\n.nes-btn.is-warning:active:not(.is-disabled)::after {\n box-shadow: inset 4px 4px #e59400;\n}\n\n.nes-btn.is-error {\n color: #fff;\n background-color: #e76e55;\n}\n\n.nes-btn.is-error::after {\n position: absolute;\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n content: \"\";\n box-shadow: inset -4px -4px #8c2022;\n}\n\n.nes-btn.is-error:hover {\n color: #fff;\n text-decoration: none;\n background-color: #ce372b;\n}\n\n.nes-btn.is-error:hover::after {\n box-shadow: inset -6px -6px #8c2022;\n}\n\n.nes-btn.is-error:focus {\n box-shadow: 0 0 0 6px rgba(140, 32, 34, 0.3);\n}\n\n.nes-btn.is-error:active:not(.is-disabled)::after {\n box-shadow: inset 4px 4px #8c2022;\n}\n\n.nes-btn input[type=\"file\"] {\n position: absolute;\n pointer-events: none;\n opacity: 0;\n}\n\n.nes-container {\n position: relative;\n padding: 1.5rem 2rem;\n border-color: black;\n border-style: solid;\n border-width: 4px;\n}\n\n.nes-container > :last-child {\n margin-bottom: 0;\n}\n\n.nes-container.is-centered {\n text-align: center;\n}\n\n.nes-container.is-right {\n text-align: right;\n}\n\n.nes-container.with-title > .title {\n display: table;\n padding: 0 0.5rem;\n margin: -1.8rem 0 1rem;\n font-size: 1rem;\n background-color: #fff;\n}\n\n.nes-container.with-title.is-centered > .title {\n margin: -2rem auto 1rem;\n}\n\n.nes-container.with-title.is-right > .title {\n margin: -2rem 0 1rem auto;\n}\n\n.nes-container.is-dark {\n position: relative;\n margin: 4px;\n color: #fff;\n background-color: #212529;\n border-color: white;\n}\n\n.nes-container.is-dark::after {\n position: absolute;\n top: -7.2px;\n right: -7.2px;\n bottom: -7.2px;\n left: -7.2px;\n z-index: -1;\n content: \"\";\n background-color: #212529;\n}\n\n.nes-container.is-dark.with-title > .title {\n color: #fff;\n background-color: #212529;\n}\n\n.nes-container.is-rounded {\n border-image-slice: 3;\n border-image-width: 3;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n padding: 1rem 1.5rem;\n margin: 4px;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-container.is-rounded {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-container.is-rounded {\n border-image-repeat: stretch;\n }\n}\n\n.nes-container.is-rounded.with-title > .title {\n margin-top: -1.5rem;\n}\n\n.nes-container.is-rounded.with-title.is-centered > .title {\n margin: -1.5rem auto 1rem;\n}\n\n.nes-container.is-rounded.with-title.is-right > .title {\n margin: -1.5rem 0 1rem auto;\n}\n\n.nes-container.is-rounded.is-dark {\n border-image-slice: 3;\n border-image-width: 3;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 0;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-container.is-rounded.is-dark {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-container.is-rounded.is-dark {\n border-image-repeat: stretch;\n }\n}\n\n.nes-container.is-rounded.is-dark::after {\n content: none;\n}\n\n.nes-container.is-rounded.is-dark.with-title > .title {\n margin-top: -1.3rem;\n}\n\n.nes-container.is-rounded.is-dark.with-title.is-centered > .title {\n margin: -1.3rem auto 1rem;\n}\n\n.nes-container.is-rounded.is-dark.with-title.is-right > .title {\n margin: -1.3rem 0 1rem auto;\n}\n\n.nes-dialog {\n padding: 1.5rem 2rem;\n border-width: 4px;\n}\n\n.nes-dialog > .backdrop, .nes-dialog::-webkit-backdrop {\n background-color: rgba(0, 0, 0, 0.3);\n}\n\n.nes-dialog > .backdrop, .nes-dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.3);\n}\n\n.nes-dialog > :last-child {\n margin-bottom: 0;\n}\n\n.nes-dialog.is-rounded {\n border-image-slice: 3;\n border-image-width: 3;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-dialog.is-rounded {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-dialog.is-rounded {\n border-image-repeat: stretch;\n }\n}\n\n.nes-dialog.is-rounded.is-dark {\n border-image-slice: 3;\n border-image-width: 3;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 0;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-dialog.is-rounded.is-dark {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-dialog.is-rounded.is-dark {\n border-image-repeat: stretch;\n }\n}\n\n.nes-dialog.is-dark {\n color: #fff;\n background-color: #212529;\n border-color: #fff;\n}\n\n.nes-dialog.is-dark:not(.is-rounded)::before {\n position: absolute;\n top: -8px;\n right: -8px;\n bottom: -8px;\n left: -8px;\n z-index: -1;\n content: \"\";\n border: 4px solid #212529;\n}\n\n.nes-list {\n list-style-type: none;\n}\n\n.nes-list li {\n position: relative;\n}\n\n.nes-list.is-disc li::before {\n position: absolute;\n top: calc(50% - 8px);\n left: -22px;\n content: \"\";\n width: 2px;\n height: 2px;\n color: #212529;\n box-shadow: 8px 2px,10px 2px,6px 4px,8px 4px,10px 4px,12px 4px,4px 6px,6px 6px,8px 6px,10px 6px,12px 6px,14px 6px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,14px 8px,6px 10px,8px 10px,10px 10px,12px 10px,8px 12px,10px 12px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-list.is-disc li::before {\n box-shadow: 8px 2px 0 0.020em,10px 2px 0 0.020em,6px 4px 0 0.020em,8px 4px 0 0.020em,10px 4px 0 0.020em,12px 4px 0 0.020em,4px 6px 0 0.020em,6px 6px 0 0.020em,8px 6px 0 0.020em,10px 6px 0 0.020em,12px 6px 0 0.020em,14px 6px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,8px 8px 0 0.020em,10px 8px 0 0.020em,12px 8px 0 0.020em,14px 8px 0 0.020em,6px 10px 0 0.020em,8px 10px 0 0.020em,10px 10px 0 0.020em,12px 10px 0 0.020em,8px 12px 0 0.020em,10px 12px 0 0.020em;\n }\n}\n\n.nes-list.is-circle li::before {\n position: absolute;\n top: calc(50% - 8px);\n left: -22px;\n content: \"\";\n width: 2px;\n height: 2px;\n color: #212529;\n box-shadow: 8px 2px,10px 2px,6px 4px,8px 4px,10px 4px,12px 4px,4px 6px,6px 6px,12px 6px,14px 6px,4px 8px,6px 8px,12px 8px,14px 8px,6px 10px,8px 10px,10px 10px,12px 10px,8px 12px,10px 12px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-list.is-circle li::before {\n box-shadow: 8px 2px 0 0.020em,10px 2px 0 0.020em,6px 4px 0 0.020em,8px 4px 0 0.020em,10px 4px 0 0.020em,12px 4px 0 0.020em,4px 6px 0 0.020em,6px 6px 0 0.020em,12px 6px 0 0.020em,14px 6px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,12px 8px 0 0.020em,14px 8px 0 0.020em,6px 10px 0 0.020em,8px 10px 0 0.020em,10px 10px 0 0.020em,12px 10px 0 0.020em,8px 12px 0 0.020em,10px 12px 0 0.020em;\n }\n}\n\n.nes-progress {\n border-image-slice: 2;\n border-image-width: 2;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n width: 100%;\n height: 48px;\n margin: 4px;\n color: #212529;\n background-color: #fff;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-progress {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-progress {\n border-image-repeat: stretch;\n }\n}\n\n.nes-progress::-webkit-progress-bar {\n background-color: #fff;\n}\n\n.nes-progress::-webkit-progress-value {\n background-color: #212529;\n}\n\n.nes-progress::-moz-progress-bar {\n background-color: #212529;\n}\n\n.nes-progress::-ms-fill {\n background-color: #212529;\n border: none;\n}\n\n.nes-progress.is-rounded {\n border-image-slice: 3;\n border-image-width: 3;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-progress.is-rounded {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-progress.is-rounded {\n border-image-repeat: stretch;\n }\n}\n\n.nes-progress.is-primary::-webkit-progress-bar {\n background-color: #fff;\n}\n\n.nes-progress.is-primary::-webkit-progress-value {\n background-color: #209cee;\n}\n\n.nes-progress.is-primary::-moz-progress-bar {\n background-color: #209cee;\n}\n\n.nes-progress.is-primary::-ms-fill {\n background-color: #209cee;\n border: none;\n}\n\n.nes-progress.is-success::-webkit-progress-bar {\n background-color: #fff;\n}\n\n.nes-progress.is-success::-webkit-progress-value {\n background-color: #92cc41;\n}\n\n.nes-progress.is-success::-moz-progress-bar {\n background-color: #92cc41;\n}\n\n.nes-progress.is-success::-ms-fill {\n background-color: #92cc41;\n border: none;\n}\n\n.nes-progress.is-warning::-webkit-progress-bar {\n background-color: #fff;\n}\n\n.nes-progress.is-warning::-webkit-progress-value {\n background-color: #f7d51d;\n}\n\n.nes-progress.is-warning::-moz-progress-bar {\n background-color: #f7d51d;\n}\n\n.nes-progress.is-warning::-ms-fill {\n background-color: #f7d51d;\n border: none;\n}\n\n.nes-progress.is-error::-webkit-progress-bar {\n background-color: #fff;\n}\n\n.nes-progress.is-error::-webkit-progress-value {\n background-color: #e76e55;\n}\n\n.nes-progress.is-error::-moz-progress-bar {\n background-color: #e76e55;\n}\n\n.nes-progress.is-error::-ms-fill {\n background-color: #e76e55;\n border: none;\n}\n\n.nes-progress.is-pattern::-webkit-progress-value {\n background-color: #212529;\n background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);\n background-position: 0 0, 10px 10px;\n background-size: 20px 20px;\n}\n\n.nes-progress.is-pattern::-moz-progress-bar {\n background-color: #212529;\n background-image: -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);\n background-position: 0 0, 10px 10px;\n background-size: 20px 20px;\n}\n\n.nes-progress.is-pattern::-ms-fill {\n background-color: #212529;\n background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);\n background-position: 0 0, 10px 10px;\n background-size: 20px 20px;\n border: none;\n}\n\n.nes-table-responsive {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n}\n\n.nes-table {\n table-layout: fixed;\n background-color: #fff;\n /*************************************************************************** \\\n This eliminates the gap between the last row in a table and the border, as\n well as hiding the derelict pixels in the bottom right and bottom left of\n the last row of a table\n \\ ***************************************************************************/\n}\n\n.nes-table tr {\n margin-left: -0.25em;\n}\n\n.nes-table th,\n.nes-table td {\n position: relative;\n padding: 0.5rem;\n word-wrap: break-word;\n border-color: #212529;\n border-style: solid;\n border-width: 0 0.25em 0.25em 0;\n}\n\n.nes-table th:last-child,\n.nes-table td:last-child {\n border-right-width: 0;\n}\n\n.nes-table th::after, .nes-table th::before,\n.nes-table td::after,\n.nes-table td::before {\n position: absolute;\n display: block;\n width: 0.25em;\n height: 0.25em;\n content: \"\";\n background-color: #212529;\n}\n\n.nes-table th::after,\n.nes-table td::after {\n bottom: -0.25em;\n left: -0.25em;\n}\n\n.nes-table th::before,\n.nes-table td::before {\n top: -0.25em;\n right: -0.25em;\n}\n\n.nes-table th:last-child::before,\n.nes-table td:last-child::before {\n top: initial;\n bottom: -0.25em;\n}\n\n.nes-table.is-centered th {\n text-align: center;\n}\n\n.nes-table.is-bordered {\n margin: 4px;\n border-spacing: 0;\n border-collapse: separate;\n border-image-slice: 2;\n border-image-width: 2;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-table.is-bordered {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-table.is-bordered {\n border-image-repeat: stretch;\n }\n}\n\n.nes-table.is-dark {\n color: #fff;\n background-color: #212529;\n}\n\n.nes-table.is-dark::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \"\";\n}\n\n.nes-table.is-dark.is-bordered {\n border-image-slice: 2;\n border-image-width: 2;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 0;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-table.is-dark.is-bordered {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-table.is-dark.is-bordered {\n border-image-repeat: stretch;\n }\n}\n\n.nes-table.is-dark th,\n.nes-table.is-dark td {\n border-color: #fff;\n}\n\n.nes-table.is-dark th::after, .nes-table.is-dark th::before,\n.nes-table.is-dark td::after,\n.nes-table.is-dark td::before {\n display: none;\n}\n\n.nes-table tbody tr:last-child th,\n.nes-table tbody tr:last-child td,\n.nes-table thead:last-child tr:last-child th,\n.nes-table thead:last-child tr:last-child td {\n border-bottom-width: 0;\n}\n\n.nes-table tbody tr:last-child th:first-child::after, .nes-table tbody tr:last-child th:last-child::before,\n.nes-table tbody tr:last-child td:first-child::after,\n.nes-table tbody tr:last-child td:last-child::before,\n.nes-table thead:last-child tr:last-child th:first-child::after,\n.nes-table thead:last-child tr:last-child th:last-child::before,\n.nes-table thead:last-child tr:last-child td:first-child::after,\n.nes-table thead:last-child tr:last-child td:last-child::before {\n display: none;\n}\n\n.nes-text.is-primary {\n color: #209cee;\n}\n\n.nes-text.is-success {\n color: #92cc41;\n}\n\n.nes-text.is-warning {\n color: #f7d51d;\n}\n\n.nes-text.is-error {\n color: #e76e55;\n}\n\n.nes-text.is-disabled {\n color: #d3d3d3;\n}\n\n.nes-input,\n.nes-textarea {\n border-image-slice: 2;\n border-image-width: 2;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n width: calc(100% - 8px);\n padding: 0.5rem 1rem;\n margin: 4px;\n background-clip: padding-box;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-input,\n .nes-textarea {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-input,\n .nes-textarea {\n border-image-repeat: stretch;\n }\n}\n\n.nes-input.is-dark,\n.nes-textarea.is-dark {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #e7e7e7;\n color: #fff;\n background-color: #212529;\n}\n\n.nes-input.is-success,\n.nes-textarea.is-success {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #76c442;\n}\n\n.nes-input.is-warning,\n.nes-textarea.is-warning {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #f2c409;\n}\n\n.nes-input.is-error,\n.nes-textarea.is-error {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #ce372b;\n}\n\n.nes-field > label {\n display: block;\n}\n\n.nes-field .nes-input,\n.nes-field .nes-textarea {\n display: block;\n}\n\n.nes-field.is-inline {\n display: flex;\n align-items: center;\n}\n\n.nes-field.is-inline > label {\n flex-basis: 0;\n flex-grow: 1;\n margin: 0;\n margin-right: 1.5rem;\n text-align: right;\n}\n\n.nes-field.is-inline .nes-input,\n.nes-field.is-inline .nes-textarea {\n flex-basis: 0;\n flex-grow: 5;\n}\n\n@media screen and (max-width: 768px) {\n .nes-field.is-inline {\n display: block;\n }\n .nes-field.is-inline > label {\n margin-bottom: 0.5rem;\n text-align: left;\n }\n .nes-field.is-inline .nes-input {\n max-width: 100%;\n }\n}\n\n.nes-radio {\n margin-right: 20px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n}\n\n.nes-radio + span {\n position: relative;\n cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0, pointer;\n}\n\n.nes-radio:checked + span::before {\n position: absolute;\n top: -2px;\n left: -20px;\n content: \"\";\n width: 2px;\n height: 2px;\n color: #212529;\n box-shadow: 2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-radio:checked + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,2px 4px 0 0.020em,4px 4px 0 0.020em,6px 4px 0 0.020em,8px 4px 0 0.020em,2px 6px 0 0.020em,4px 6px 0 0.020em,6px 6px 0 0.020em,8px 6px 0 0.020em,10px 6px 0 0.020em,2px 8px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,8px 8px 0 0.020em,10px 8px 0 0.020em,12px 8px 0 0.020em,2px 10px 0 0.020em,4px 10px 0 0.020em,6px 10px 0 0.020em,8px 10px 0 0.020em,10px 10px 0 0.020em,2px 12px 0 0.020em,4px 12px 0 0.020em,6px 12px 0 0.020em,8px 12px 0 0.020em,2px 14px 0 0.020em,4px 14px 0 0.020em;\n }\n}\n\n.nes-radio:checked:hover + span::before, .nes-radio:checked:focus + span::before {\n animation: blink 1s infinite steps(1);\n}\n\n.nes-radio:checked:focus + span::before {\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-radio:checked:focus + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,2px 4px 0 0.020em,4px 4px 0 0.020em,6px 4px 0 0.020em,8px 4px 0 0.020em,2px 6px 0 0.020em,4px 6px 0 0.020em,6px 6px 0 0.020em,8px 6px 0 0.020em,10px 6px 0 0.020em,2px 8px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,8px 8px 0 0.020em,10px 8px 0 0.020em,12px 8px 0 0.020em,2px 10px 0 0.020em,4px 10px 0 0.020em,6px 10px 0 0.020em,8px 10px 0 0.020em,10px 10px 0 0.020em,2px 12px 0 0.020em,4px 12px 0 0.020em,6px 12px 0 0.020em,8px 12px 0 0.020em,2px 14px 0 0.020em,4px 14px 0 0.020em;\n }\n}\n\n.nes-radio.is-dark + span {\n color: #fff;\n}\n\n.nes-radio.is-dark + span::before {\n /* stylelint-disable-line no-descending-specificity */\n color: #fff;\n}\n\n.nes-radio.is-dark:checked + span::before {\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;\n color: #fff;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-radio.is-dark:checked + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,2px 4px 0 0.020em,4px 4px 0 0.020em,6px 4px 0 0.020em,8px 4px 0 0.020em,2px 6px 0 0.020em,4px 6px 0 0.020em,6px 6px 0 0.020em,8px 6px 0 0.020em,10px 6px 0 0.020em,2px 8px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,8px 8px 0 0.020em,10px 8px 0 0.020em,12px 8px 0 0.020em,2px 10px 0 0.020em,4px 10px 0 0.020em,6px 10px 0 0.020em,8px 10px 0 0.020em,10px 10px 0 0.020em,2px 12px 0 0.020em,4px 12px 0 0.020em,6px 12px 0 0.020em,8px 12px 0 0.020em,2px 14px 0 0.020em,4px 14px 0 0.020em;\n }\n}\n\n.nes-radio.is-dark:checked:focus + span::before {\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,2px 4px,4px 4px,6px 4px,8px 4px,2px 6px,4px 6px,6px 6px,8px 6px,10px 6px,2px 8px,4px 8px,6px 8px,8px 8px,10px 8px,12px 8px,2px 10px,4px 10px,6px 10px,8px 10px,10px 10px,2px 12px,4px 12px,6px 12px,8px 12px,2px 14px,4px 14px;\n color: #fff;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-radio.is-dark:checked:focus + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,2px 4px 0 0.020em,4px 4px 0 0.020em,6px 4px 0 0.020em,8px 4px 0 0.020em,2px 6px 0 0.020em,4px 6px 0 0.020em,6px 6px 0 0.020em,8px 6px 0 0.020em,10px 6px 0 0.020em,2px 8px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,8px 8px 0 0.020em,10px 8px 0 0.020em,12px 8px 0 0.020em,2px 10px 0 0.020em,4px 10px 0 0.020em,6px 10px 0 0.020em,8px 10px 0 0.020em,10px 10px 0 0.020em,2px 12px 0 0.020em,4px 12px 0 0.020em,6px 12px 0 0.020em,8px 12px 0 0.020em,2px 14px 0 0.020em,4px 14px 0 0.020em;\n }\n}\n\n.nes-checkbox {\n margin-left: 28px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n}\n\n.nes-checkbox + span {\n position: relative;\n cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0, pointer;\n}\n\n.nes-checkbox + span::before,\n.nes-checkbox:checked + span::before {\n position: absolute;\n top: -3px;\n left: -28px;\n content: \"\";\n}\n\n.nes-checkbox + span::before {\n /* stylelint-disable-line no-descending-specificity */\n width: 2px;\n height: 2px;\n color: #212529;\n box-shadow: 2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,16px 2px,2px 4px,16px 4px,2px 6px,16px 6px,2px 8px,16px 8px,2px 10px,16px 10px,2px 12px,16px 12px,2px 14px,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-checkbox + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,6px 2px 0 0.020em,8px 2px 0 0.020em,10px 2px 0 0.020em,12px 2px 0 0.020em,14px 2px 0 0.020em,16px 2px 0 0.020em,2px 4px 0 0.020em,16px 4px 0 0.020em,2px 6px 0 0.020em,16px 6px 0 0.020em,2px 8px 0 0.020em,16px 8px 0 0.020em,2px 10px 0 0.020em,16px 10px 0 0.020em,2px 12px 0 0.020em,16px 12px 0 0.020em,2px 14px 0 0.020em,16px 14px 0 0.020em,2px 16px 0 0.020em,4px 16px 0 0.020em,6px 16px 0 0.020em,8px 16px 0 0.020em,10px 16px 0 0.020em,12px 16px 0 0.020em,14px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-checkbox:focus + span::before {\n /* stylelint-disable-line no-descending-specificity */\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,16px 2px,2px 4px,16px 4px,2px 6px,16px 6px,2px 8px,16px 8px,2px 10px,16px 10px,2px 12px,16px 12px,2px 14px,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-checkbox:focus + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,6px 2px 0 0.020em,8px 2px 0 0.020em,10px 2px 0 0.020em,12px 2px 0 0.020em,14px 2px 0 0.020em,16px 2px 0 0.020em,2px 4px 0 0.020em,16px 4px 0 0.020em,2px 6px 0 0.020em,16px 6px 0 0.020em,2px 8px 0 0.020em,16px 8px 0 0.020em,2px 10px 0 0.020em,16px 10px 0 0.020em,2px 12px 0 0.020em,16px 12px 0 0.020em,2px 14px 0 0.020em,16px 14px 0 0.020em,2px 16px 0 0.020em,4px 16px 0 0.020em,6px 16px 0 0.020em,8px 16px 0 0.020em,10px 16px 0 0.020em,12px 16px 0 0.020em,14px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-checkbox:checked + span::before {\n width: 2px;\n height: 2px;\n color: #212529;\n box-shadow: 2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px,20px 2px,2px 4px,16px 4px,18px 4px,20px 4px,2px 6px,14px 6px,16px 6px,2px 8px,4px 8px,12px 8px,14px 8px,2px 10px,4px 10px,6px 10px,10px 10px,12px 10px,16px 10px,2px 12px,6px 12px,8px 12px,10px 12px,16px 12px,2px 14px,8px 14px,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-checkbox:checked + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,6px 2px 0 0.020em,8px 2px 0 0.020em,10px 2px 0 0.020em,12px 2px 0 0.020em,14px 2px 0 0.020em,18px 2px 0 0.020em,20px 2px 0 0.020em,2px 4px 0 0.020em,16px 4px 0 0.020em,18px 4px 0 0.020em,20px 4px 0 0.020em,2px 6px 0 0.020em,14px 6px 0 0.020em,16px 6px 0 0.020em,2px 8px 0 0.020em,4px 8px 0 0.020em,12px 8px 0 0.020em,14px 8px 0 0.020em,2px 10px 0 0.020em,4px 10px 0 0.020em,6px 10px 0 0.020em,10px 10px 0 0.020em,12px 10px 0 0.020em,16px 10px 0 0.020em,2px 12px 0 0.020em,6px 12px 0 0.020em,8px 12px 0 0.020em,10px 12px 0 0.020em,16px 12px 0 0.020em,2px 14px 0 0.020em,8px 14px 0 0.020em,16px 14px 0 0.020em,2px 16px 0 0.020em,4px 16px 0 0.020em,6px 16px 0 0.020em,8px 16px 0 0.020em,10px 16px 0 0.020em,12px 16px 0 0.020em,14px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-checkbox:checked:focus + span::before {\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px #212529,20px 2px #212529,2px 4px,16px 4px #212529,18px 4px #212529,20px 4px #212529,2px 6px #212529,14px 6px #212529,16px 6px #212529,2px 8px #212529,4px 8px #212529,12px 8px #212529,14px 8px #212529,2px 10px,4px 10px #212529,6px 10px #212529,10px 10px #212529,12px 10px #212529,16px 10px,2px 12px,6px 12px #212529,8px 12px #212529,10px 12px #212529,16px 12px,2px 14px,8px 14px #212529,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-checkbox:checked:focus + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,6px 2px 0 0.020em,8px 2px 0 0.020em,10px 2px 0 0.020em,12px 2px 0 0.020em,14px 2px 0 0.020em,18px 2px 0 0.020em #212529,20px 2px 0 0.020em #212529,2px 4px 0 0.020em,16px 4px 0 0.020em #212529,18px 4px 0 0.020em #212529,20px 4px 0 0.020em #212529,2px 6px 0 0.020em #212529,14px 6px 0 0.020em #212529,16px 6px 0 0.020em #212529,2px 8px 0 0.020em #212529,4px 8px 0 0.020em #212529,12px 8px 0 0.020em #212529,14px 8px 0 0.020em #212529,2px 10px 0 0.020em,4px 10px 0 0.020em #212529,6px 10px 0 0.020em #212529,10px 10px 0 0.020em #212529,12px 10px 0 0.020em #212529,16px 10px 0 0.020em,2px 12px 0 0.020em,6px 12px 0 0.020em #212529,8px 12px 0 0.020em #212529,10px 12px 0 0.020em #212529,16px 12px 0 0.020em,2px 14px 0 0.020em,8px 14px 0 0.020em #212529,16px 14px 0 0.020em,2px 16px 0 0.020em,4px 16px 0 0.020em,6px 16px 0 0.020em,8px 16px 0 0.020em,10px 16px 0 0.020em,12px 16px 0 0.020em,14px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-checkbox.is-dark + span {\n color: #fff;\n}\n\n.nes-checkbox.is-dark + span::before {\n /* stylelint-disable-line no-descending-specificity */\n color: #fff;\n}\n\n.nes-checkbox.is-dark:checked + span::before {\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px #fff,20px 2px #fff,2px 4px,16px 4px #fff,18px 4px #fff,20px 4px #fff,2px 6px #fff,14px 6px #fff,16px 6px #fff,2px 8px #fff,4px 8px #fff,12px 8px #fff,14px 8px #fff,2px 10px,4px 10px #fff,6px 10px #fff,10px 10px #fff,12px 10px #fff,16px 10px,2px 12px,6px 12px #fff,8px 12px #fff,10px 12px #fff,16px 12px,2px 14px,8px 14px #fff,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;\n color: #fff;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-checkbox.is-dark:checked + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,6px 2px 0 0.020em,8px 2px 0 0.020em,10px 2px 0 0.020em,12px 2px 0 0.020em,14px 2px 0 0.020em,18px 2px 0 0.020em #fff,20px 2px 0 0.020em #fff,2px 4px 0 0.020em,16px 4px 0 0.020em #fff,18px 4px 0 0.020em #fff,20px 4px 0 0.020em #fff,2px 6px 0 0.020em #fff,14px 6px 0 0.020em #fff,16px 6px 0 0.020em #fff,2px 8px 0 0.020em #fff,4px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,2px 10px 0 0.020em,4px 10px 0 0.020em #fff,6px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,16px 10px 0 0.020em,2px 12px 0 0.020em,6px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,16px 12px 0 0.020em,2px 14px 0 0.020em,8px 14px 0 0.020em #fff,16px 14px 0 0.020em,2px 16px 0 0.020em,4px 16px 0 0.020em,6px 16px 0 0.020em,8px 16px 0 0.020em,10px 16px 0 0.020em,12px 16px 0 0.020em,14px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-checkbox.is-dark:checked:focus + span::before {\n width: 2px;\n height: 2px;\n color: #adafbc;\n box-shadow: 2px 2px,4px 2px,6px 2px,8px 2px,10px 2px,12px 2px,14px 2px,18px 2px #fff,20px 2px #fff,2px 4px,16px 4px #fff,18px 4px #fff,20px 4px #fff,2px 6px #fff,14px 6px #fff,16px 6px #fff,2px 8px #fff,4px 8px #fff,12px 8px #fff,14px 8px #fff,2px 10px,4px 10px #fff,6px 10px #fff,10px 10px #fff,12px 10px #fff,16px 10px,2px 12px,6px 12px #fff,8px 12px #fff,10px 12px #fff,16px 12px,2px 14px,8px 14px #fff,16px 14px,2px 16px,4px 16px,6px 16px,8px 16px,10px 16px,12px 16px,14px 16px,16px 16px;\n color: #fff;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-checkbox.is-dark:checked:focus + span::before {\n box-shadow: 2px 2px 0 0.020em,4px 2px 0 0.020em,6px 2px 0 0.020em,8px 2px 0 0.020em,10px 2px 0 0.020em,12px 2px 0 0.020em,14px 2px 0 0.020em,18px 2px 0 0.020em #fff,20px 2px 0 0.020em #fff,2px 4px 0 0.020em,16px 4px 0 0.020em #fff,18px 4px 0 0.020em #fff,20px 4px 0 0.020em #fff,2px 6px 0 0.020em #fff,14px 6px 0 0.020em #fff,16px 6px 0 0.020em #fff,2px 8px 0 0.020em #fff,4px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,2px 10px 0 0.020em,4px 10px 0 0.020em #fff,6px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,16px 10px 0 0.020em,2px 12px 0 0.020em,6px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,16px 12px 0 0.020em,2px 14px 0 0.020em,8px 14px 0 0.020em #fff,16px 14px 0 0.020em,2px 16px 0 0.020em,4px 16px 0 0.020em,6px 16px 0 0.020em,8px 16px 0 0.020em,10px 16px 0 0.020em,12px 16px 0 0.020em,14px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-select {\n position: relative;\n width: calc(100% - 8px);\n margin: 4px;\n}\n\n.nes-select select {\n border-image-slice: 2;\n border-image-width: 2;\n border-image-repeat: stretch;\n border-image-source: url('data:image/svg+xml;utf8,');\n border-image-outset: 2;\n width: 100%;\n padding: 0.5rem 2.5rem 0.5rem 1rem;\n cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0, pointer;\n border-radius: 0;\n outline-color: #e7e7e7;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n .nes-select select {\n border-image-repeat: space;\n }\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-select select {\n border-image-repeat: stretch;\n }\n}\n\n.nes-select select:invalid {\n color: #adafbc;\n}\n\n.nes-select.is-dark select {\n color: #fff;\n background-color: #212529;\n}\n\n.nes-select::after {\n width: 3px;\n height: 3px;\n color: #212529;\n box-shadow: 3px 3px,6px 3px,9px 3px,12px 3px,15px 3px,18px 3px,21px 3px,3px 6px,6px 6px,9px 6px,12px 6px,15px 6px,18px 6px,21px 6px,6px 9px,9px 9px,12px 9px,15px 9px,18px 9px,6px 12px,9px 12px,12px 12px,15px 12px,18px 12px,9px 15px,12px 15px,15px 15px,12px 18px;\n position: absolute;\n top: calc(50% - 11px);\n right: 36px;\n pointer-events: none;\n content: \"\";\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-select::after {\n box-shadow: 3px 3px 0 0.020em,6px 3px 0 0.020em,9px 3px 0 0.020em,12px 3px 0 0.020em,15px 3px 0 0.020em,18px 3px 0 0.020em,21px 3px 0 0.020em,3px 6px 0 0.020em,6px 6px 0 0.020em,9px 6px 0 0.020em,12px 6px 0 0.020em,15px 6px 0 0.020em,18px 6px 0 0.020em,21px 6px 0 0.020em,6px 9px 0 0.020em,9px 9px 0 0.020em,12px 9px 0 0.020em,15px 9px 0 0.020em,18px 9px 0 0.020em,6px 12px 0 0.020em,9px 12px 0 0.020em,12px 12px 0 0.020em,15px 12px 0 0.020em,18px 12px 0 0.020em,9px 15px 0 0.020em,12px 15px 0 0.020em,15px 15px 0 0.020em,12px 18px 0 0.020em;\n }\n}\n\n.nes-select.is-success::after {\n color: #92cc41;\n}\n\n.nes-select.is-success select {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #76c442;\n}\n\n.nes-select.is-warning::after {\n color: #f7d51d;\n}\n\n.nes-select.is-warning select {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #f2c409;\n}\n\n.nes-select.is-error::after {\n color: #e76e55;\n}\n\n.nes-select.is-error select {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #ce372b;\n}\n\n.nes-select.is-dark::after {\n color: #fff;\n}\n\n.nes-select.is-dark select {\n border-image-source: url('data:image/svg+xml;utf8,');\n outline-color: #e7e7e7;\n}\n\n.nes-icon {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n margin-right: 16px;\n margin-bottom: 16px;\n transform: scale(2);\n transform-origin: top left;\n}\n\n.nes-icon.is-small {\n margin: 0;\n transform: scale(1);\n}\n\n.nes-icon.is-medium {\n margin-right: 32px;\n margin-bottom: 32px;\n transform: scale(3);\n}\n\n.nes-icon.is-large {\n margin-right: 48px;\n margin-bottom: 48px;\n transform: scale(4);\n}\n\n.nes-icon::before {\n position: absolute;\n top: -1px;\n left: -1px;\n display: block;\n content: \"\";\n background: transparent;\n}\n\n.nes-icon.heart::before {\n width: 1px;\n height: 1px;\n color: #f22426;\n box-shadow: 3px 2px #444,4px 2px #444,5px 2px #444,11px 2px #444,12px 2px #444,13px 2px #444,2px 3px #444,3px 3px,4px 3px,5px 3px,6px 3px #444,10px 3px #444,11px 3px,12px 3px,13px 3px #842300,14px 3px #444,1px 4px #444,2px 4px,3px 4px #fff,4px 4px #fff,5px 4px,6px 4px,7px 4px #444,9px 4px #444,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px #842300,15px 4px #444,1px 5px #444,2px 5px,3px 5px #fff,4px 5px,5px 5px,6px 5px,7px 5px,8px 5px #444,9px 5px,10px 5px,11px 5px,12px 5px,13px 5px,14px 5px #842300,15px 5px #444,1px 6px #444,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px,8px 6px,9px 6px,10px 6px,11px 6px,12px 6px,13px 6px,14px 6px #842300,15px 6px #444,1px 7px #444,2px 7px,3px 7px,4px 7px,5px 7px,6px 7px,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px,13px 7px,14px 7px #842300,15px 7px #444,1px 8px #444,2px 8px,3px 8px,4px 8px,5px 8px,6px 8px,7px 8px,8px 8px,9px 8px,10px 8px,11px 8px,12px 8px,13px 8px,14px 8px #842300,15px 8px #444,2px 9px #444,3px 9px,4px 9px,5px 9px,6px 9px,7px 9px,8px 9px,9px 9px,10px 9px,11px 9px,12px 9px,13px 9px #842300,14px 9px #444,3px 10px #444,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px,9px 10px,10px 10px,11px 10px,12px 10px #842300,13px 10px #444,4px 11px #444,5px 11px,6px 11px,7px 11px,8px 11px,9px 11px,10px 11px,11px 11px #842300,12px 11px #444,5px 12px #444,6px 12px,7px 12px,8px 12px,9px 12px,10px 12px #842300,11px 12px #444,6px 13px #444,7px 13px,8px 13px,9px 13px #842300,10px 13px #444,7px 14px #444,8px 14px #842300,9px 14px #444,8px 15px #444;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.heart::before {\n box-shadow: 3px 2px 0 0.020em #444,4px 2px 0 0.020em #444,5px 2px 0 0.020em #444,11px 2px 0 0.020em #444,12px 2px 0 0.020em #444,13px 2px 0 0.020em #444,2px 3px 0 0.020em #444,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em #444,10px 3px 0 0.020em #444,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em #842300,14px 3px 0 0.020em #444,1px 4px 0 0.020em #444,2px 4px 0 0.020em,3px 4px 0 0.020em #fff,4px 4px 0 0.020em #fff,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em #444,9px 4px 0 0.020em #444,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em #842300,15px 4px 0 0.020em #444,1px 5px 0 0.020em #444,2px 5px 0 0.020em,3px 5px 0 0.020em #fff,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em #444,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em #842300,15px 5px 0 0.020em #444,1px 6px 0 0.020em #444,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em #842300,15px 6px 0 0.020em #444,1px 7px 0 0.020em #444,2px 7px 0 0.020em,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em #842300,15px 7px 0 0.020em #444,1px 8px 0 0.020em #444,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em #842300,15px 8px 0 0.020em #444,2px 9px 0 0.020em #444,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em #842300,14px 9px 0 0.020em #444,3px 10px 0 0.020em #444,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em #842300,13px 10px 0 0.020em #444,4px 11px 0 0.020em #444,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em #842300,12px 11px 0 0.020em #444,5px 12px 0 0.020em #444,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em #842300,11px 12px 0 0.020em #444,6px 13px 0 0.020em #444,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em #842300,10px 13px 0 0.020em #444,7px 14px 0 0.020em #444,8px 14px 0 0.020em #842300,9px 14px 0 0.020em #444,8px 15px 0 0.020em #444;\n }\n}\n\n.nes-icon.heart.is-half::before {\n width: 1px;\n height: 1px;\n color: #f22426;\n box-shadow: 3px 2px #444,4px 2px #444,5px 2px #444,11px 2px #444,12px 2px #444,13px 2px #444,2px 3px #444,3px 3px,4px 3px,5px 3px,6px 3px #444,10px 3px #444,14px 3px #444,1px 4px #444,2px 4px,3px 4px #fff,4px 4px #fff,5px 4px,6px 4px,7px 4px #444,9px 4px #444,15px 4px #444,1px 5px #444,2px 5px,3px 5px #fff,4px 5px,5px 5px,6px 5px,7px 5px,8px 5px #444,15px 5px #444,1px 6px #444,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px,8px 6px,15px 6px #444,1px 7px #444,2px 7px,3px 7px,4px 7px,5px 7px,6px 7px,7px 7px,8px 7px,15px 7px #444,1px 8px #444,2px 8px,3px 8px,4px 8px,5px 8px,6px 8px,7px 8px,8px 8px,15px 8px #444,2px 9px #444,3px 9px,4px 9px,5px 9px,6px 9px,7px 9px,8px 9px,14px 9px #444,3px 10px #444,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px,13px 10px #444,4px 11px #444,5px 11px,6px 11px,7px 11px,8px 11px,12px 11px #444,5px 12px #444,6px 12px,7px 12px,8px 12px,11px 12px #444,6px 13px #444,7px 13px,8px 13px,10px 13px #444,7px 14px #444,8px 14px #842300,9px 14px #444,8px 15px #444;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.heart.is-half::before {\n box-shadow: 3px 2px 0 0.020em #444,4px 2px 0 0.020em #444,5px 2px 0 0.020em #444,11px 2px 0 0.020em #444,12px 2px 0 0.020em #444,13px 2px 0 0.020em #444,2px 3px 0 0.020em #444,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em #444,10px 3px 0 0.020em #444,14px 3px 0 0.020em #444,1px 4px 0 0.020em #444,2px 4px 0 0.020em,3px 4px 0 0.020em #fff,4px 4px 0 0.020em #fff,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em #444,9px 4px 0 0.020em #444,15px 4px 0 0.020em #444,1px 5px 0 0.020em #444,2px 5px 0 0.020em,3px 5px 0 0.020em #fff,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em #444,15px 5px 0 0.020em #444,1px 6px 0 0.020em #444,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,15px 6px 0 0.020em #444,1px 7px 0 0.020em #444,2px 7px 0 0.020em,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em,15px 7px 0 0.020em #444,1px 8px 0 0.020em #444,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em,15px 8px 0 0.020em #444,2px 9px 0 0.020em #444,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,14px 9px 0 0.020em #444,3px 10px 0 0.020em #444,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,13px 10px 0 0.020em #444,4px 11px 0 0.020em #444,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,12px 11px 0 0.020em #444,5px 12px 0 0.020em #444,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,11px 12px 0 0.020em #444,6px 13px 0 0.020em #444,7px 13px 0 0.020em,8px 13px 0 0.020em,10px 13px 0 0.020em #444,7px 14px 0 0.020em #444,8px 14px 0 0.020em #842300,9px 14px 0 0.020em #444,8px 15px 0 0.020em #444;\n }\n}\n\n.nes-icon.heart.is-transparent::before {\n width: 1px;\n height: 1px;\n color: #444;\n box-shadow: 3px 2px,4px 2px,5px 2px,11px 2px,12px 2px,13px 2px,2px 3px,6px 3px,10px 3px,14px 3px,1px 4px,7px 4px,9px 4px,15px 4px,1px 5px,8px 5px,15px 5px,1px 6px,15px 6px,1px 7px,15px 7px,1px 8px,15px 8px,2px 9px,14px 9px,3px 10px,13px 10px,4px 11px,12px 11px,5px 12px,11px 12px,6px 13px,10px 13px,7px 14px,9px 14px,8px 15px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.heart.is-transparent::before {\n box-shadow: 3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em,13px 2px 0 0.020em,2px 3px 0 0.020em,6px 3px 0 0.020em,10px 3px 0 0.020em,14px 3px 0 0.020em,1px 4px 0 0.020em,7px 4px 0 0.020em,9px 4px 0 0.020em,15px 4px 0 0.020em,1px 5px 0 0.020em,8px 5px 0 0.020em,15px 5px 0 0.020em,1px 6px 0 0.020em,15px 6px 0 0.020em,1px 7px 0 0.020em,15px 7px 0 0.020em,1px 8px 0 0.020em,15px 8px 0 0.020em,2px 9px 0 0.020em,14px 9px 0 0.020em,3px 10px 0 0.020em,13px 10px 0 0.020em,4px 11px 0 0.020em,12px 11px 0 0.020em,5px 12px 0 0.020em,11px 12px 0 0.020em,6px 13px 0 0.020em,10px 13px 0 0.020em,7px 14px 0 0.020em,9px 14px 0 0.020em,8px 15px 0 0.020em;\n }\n}\n\n.nes-icon.heart.is-empty::before {\n width: 1px;\n height: 1px;\n color: #adafbb;\n box-shadow: 3px 2px,4px 2px,5px 2px,11px 2px,12px 2px,13px 2px,2px 3px,6px 3px,10px 3px,14px 3px,1px 4px,7px 4px,9px 4px,15px 4px,1px 5px,8px 5px,15px 5px,1px 6px,15px 6px,1px 7px,15px 7px,1px 8px,15px 8px,2px 9px,14px 9px,3px 10px,13px 10px,4px 11px,12px 11px,5px 12px,11px 12px,6px 13px,10px 13px,7px 14px,9px 14px,8px 15px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.heart.is-empty::before {\n box-shadow: 3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em,13px 2px 0 0.020em,2px 3px 0 0.020em,6px 3px 0 0.020em,10px 3px 0 0.020em,14px 3px 0 0.020em,1px 4px 0 0.020em,7px 4px 0 0.020em,9px 4px 0 0.020em,15px 4px 0 0.020em,1px 5px 0 0.020em,8px 5px 0 0.020em,15px 5px 0 0.020em,1px 6px 0 0.020em,15px 6px 0 0.020em,1px 7px 0 0.020em,15px 7px 0 0.020em,1px 8px 0 0.020em,15px 8px 0 0.020em,2px 9px 0 0.020em,14px 9px 0 0.020em,3px 10px 0 0.020em,13px 10px 0 0.020em,4px 11px 0 0.020em,12px 11px 0 0.020em,5px 12px 0 0.020em,11px 12px 0 0.020em,6px 13px 0 0.020em,10px 13px 0 0.020em,7px 14px 0 0.020em,9px 14px 0 0.020em,8px 15px 0 0.020em;\n }\n}\n\n.nes-icon.star::before {\n width: 1px;\n height: 1px;\n color: #ebe527;\n box-shadow: 8px 1px #444,7px 2px #444,8px 2px,9px 2px #444,7px 3px #444,8px 3px,9px 3px #444,6px 4px #444,7px 4px,8px 4px,9px 4px,10px 4px #444,6px 5px #444,7px 5px #fff,8px 5px #fff,9px 5px,10px 5px #444,1px 6px #444,2px 6px #444,3px 6px #444,4px 6px #444,5px 6px #444,6px 6px #444,7px 6px #fff,8px 6px,9px 6px,10px 6px,11px 6px #444,12px 6px #444,13px 6px #444,14px 6px #444,15px 6px #444,1px 7px #444,2px 7px,3px 7px,4px 7px,5px 7px #fff,6px 7px #fff,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px,13px 7px,14px 7px,15px 7px #444,2px 8px #444,3px 8px,4px 8px,5px 8px #fff,6px 8px,7px 8px,8px 8px,9px 8px,10px 8px,11px 8px,12px 8px,13px 8px #f59f54,14px 8px #444,3px 9px #444,4px 9px,5px 9px,6px 9px,7px 9px,8px 9px,9px 9px,10px 9px,11px 9px #f59f54,12px 9px #f59f54,13px 9px #444,4px 10px #444,5px 10px,6px 10px,7px 10px,8px 10px,9px 10px,10px 10px,11px 10px,12px 10px #444,3px 11px #444,4px 11px,5px 11px,6px 11px,7px 11px,8px 11px #f59f54,9px 11px,10px 11px,11px 11px,12px 11px,13px 11px #444,3px 12px #444,4px 12px,5px 12px,6px 12px,7px 12px #f59f54,8px 12px #f59f54,9px 12px #f59f54,10px 12px,11px 12px,12px 12px,13px 12px #444,2px 13px #444,3px 13px,4px 13px,5px 13px #f59f54,6px 13px #f59f54,7px 13px #f59f54,8px 13px #444,9px 13px #f59f54,10px 13px #f59f54,11px 13px #f59f54,12px 13px,13px 13px,14px 13px #444,2px 14px #444,3px 14px,4px 14px #f59f54,5px 14px #f59f54,6px 14px #444,7px 14px #444,9px 14px #444,10px 14px #444,11px 14px #f59f54,12px 14px #f59f54,13px 14px,14px 14px #444,1px 15px #444,2px 15px #f59f54,3px 15px #f59f54,4px 15px #444,5px 15px #444,11px 15px #444,12px 15px #444,13px 15px #f59f54,14px 15px #f59f54,15px 15px #444,1px 16px #444,2px 16px #444,3px 16px #444,13px 16px #444,14px 16px #444,15px 16px #444;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.star::before {\n box-shadow: 8px 1px 0 0.020em #444,7px 2px 0 0.020em #444,8px 2px 0 0.020em,9px 2px 0 0.020em #444,7px 3px 0 0.020em #444,8px 3px 0 0.020em,9px 3px 0 0.020em #444,6px 4px 0 0.020em #444,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em #444,6px 5px 0 0.020em #444,7px 5px 0 0.020em #fff,8px 5px 0 0.020em #fff,9px 5px 0 0.020em,10px 5px 0 0.020em #444,1px 6px 0 0.020em #444,2px 6px 0 0.020em #444,3px 6px 0 0.020em #444,4px 6px 0 0.020em #444,5px 6px 0 0.020em #444,6px 6px 0 0.020em #444,7px 6px 0 0.020em #fff,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em #444,12px 6px 0 0.020em #444,13px 6px 0 0.020em #444,14px 6px 0 0.020em #444,15px 6px 0 0.020em #444,1px 7px 0 0.020em #444,2px 7px 0 0.020em,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em #fff,6px 7px 0 0.020em #fff,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em #444,2px 8px 0 0.020em #444,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em #fff,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em,12px 8px 0 0.020em,13px 8px 0 0.020em #f59f54,14px 8px 0 0.020em #444,3px 9px 0 0.020em #444,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,11px 9px 0 0.020em #f59f54,12px 9px 0 0.020em #f59f54,13px 9px 0 0.020em #444,4px 10px 0 0.020em #444,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em #444,3px 11px 0 0.020em #444,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em #f59f54,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em #444,3px 12px 0 0.020em #444,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em #f59f54,8px 12px 0 0.020em #f59f54,9px 12px 0 0.020em #f59f54,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em #444,2px 13px 0 0.020em #444,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em #f59f54,6px 13px 0 0.020em #f59f54,7px 13px 0 0.020em #f59f54,8px 13px 0 0.020em #444,9px 13px 0 0.020em #f59f54,10px 13px 0 0.020em #f59f54,11px 13px 0 0.020em #f59f54,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em #444,2px 14px 0 0.020em #444,3px 14px 0 0.020em,4px 14px 0 0.020em #f59f54,5px 14px 0 0.020em #f59f54,6px 14px 0 0.020em #444,7px 14px 0 0.020em #444,9px 14px 0 0.020em #444,10px 14px 0 0.020em #444,11px 14px 0 0.020em #f59f54,12px 14px 0 0.020em #f59f54,13px 14px 0 0.020em,14px 14px 0 0.020em #444,1px 15px 0 0.020em #444,2px 15px 0 0.020em #f59f54,3px 15px 0 0.020em #f59f54,4px 15px 0 0.020em #444,5px 15px 0 0.020em #444,11px 15px 0 0.020em #444,12px 15px 0 0.020em #444,13px 15px 0 0.020em #f59f54,14px 15px 0 0.020em #f59f54,15px 15px 0 0.020em #444,1px 16px 0 0.020em #444,2px 16px 0 0.020em #444,3px 16px 0 0.020em #444,13px 16px 0 0.020em #444,14px 16px 0 0.020em #444,15px 16px 0 0.020em #444;\n }\n}\n\n.nes-icon.star.is-empty::before {\n width: 1px;\n height: 1px;\n color: #adafbb;\n box-shadow: 8px 1px,7px 2px,9px 2px,7px 3px,9px 3px,6px 4px,10px 4px,6px 5px,10px 5px,1px 6px,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,1px 7px,15px 7px,2px 8px,14px 8px,3px 9px,13px 9px,4px 10px,12px 10px,3px 11px,13px 11px,3px 12px,13px 12px,2px 13px,8px 13px,14px 13px,2px 14px,6px 14px,7px 14px,9px 14px,10px 14px,14px 14px,1px 15px,4px 15px,5px 15px,11px 15px,12px 15px,15px 15px,1px 16px,2px 16px,3px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.star.is-empty::before {\n box-shadow: 8px 1px 0 0.020em,7px 2px 0 0.020em,9px 2px 0 0.020em,7px 3px 0 0.020em,9px 3px 0 0.020em,6px 4px 0 0.020em,10px 4px 0 0.020em,6px 5px 0 0.020em,10px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,1px 7px 0 0.020em,15px 7px 0 0.020em,2px 8px 0 0.020em,14px 8px 0 0.020em,3px 9px 0 0.020em,13px 9px 0 0.020em,4px 10px 0 0.020em,12px 10px 0 0.020em,3px 11px 0 0.020em,13px 11px 0 0.020em,3px 12px 0 0.020em,13px 12px 0 0.020em,2px 13px 0 0.020em,8px 13px 0 0.020em,14px 13px 0 0.020em,2px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,14px 14px 0 0.020em,1px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,15px 15px 0 0.020em,1px 16px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.star.is-half::before {\n width: 1px;\n height: 1px;\n color: #444;\n box-shadow: 8px 1px,7px 2px,8px 2px #ebe527,9px 2px,7px 3px,8px 3px #ebe527,9px 3px,6px 4px,7px 4px #ebe527,8px 4px #ebe527,10px 4px,6px 5px,7px 5px #ebe527,8px 5px #ebe527,10px 5px,1px 6px,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px #ebe527,8px 6px #ebe527,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,1px 7px,2px 7px #ebe527,3px 7px #ebe527,4px 7px #ebe527,5px 7px #ebe527,6px 7px #ebe527,7px 7px #ebe527,8px 7px #ebe527,15px 7px,2px 8px,3px 8px #ebe527,4px 8px #ebe527,5px 8px #ebe527,6px 8px #ebe527,7px 8px #ebe527,8px 8px #ebe527,14px 8px,3px 9px,4px 9px #ebe527,5px 9px #ebe527,6px 9px #ebe527,7px 9px #ebe527,8px 9px #ebe527,13px 9px,4px 10px,5px 10px #ebe527,6px 10px #ebe527,7px 10px #ebe527,8px 10px #ebe527,12px 10px,3px 11px,4px 11px #ebe527,5px 11px #ebe527,6px 11px #ebe527,7px 11px #ebe527,8px 11px #f59f54,13px 11px,3px 12px,4px 12px #ebe527,5px 12px #ebe527,6px 12px #ebe527,7px 12px #f59f54,8px 12px #f59f54,13px 12px,2px 13px,3px 13px #ebe527,4px 13px #ebe527,5px 13px #f59f54,6px 13px #f59f54,7px 13px #f59f54,8px 13px,14px 13px,2px 14px,3px 14px #ebe527,4px 14px #f59f54,5px 14px #f59f54,6px 14px,7px 14px,9px 14px,10px 14px,14px 14px,1px 15px,2px 15px #f59f54,3px 15px #f59f54,4px 15px,5px 15px,11px 15px,12px 15px,15px 15px,1px 16px,2px 16px,3px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.star.is-half::before {\n box-shadow: 8px 1px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em #ebe527,9px 2px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em #ebe527,9px 3px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em #ebe527,8px 4px 0 0.020em #ebe527,10px 4px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em #ebe527,8px 5px 0 0.020em #ebe527,10px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em #ebe527,8px 6px 0 0.020em #ebe527,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em #ebe527,3px 7px 0 0.020em #ebe527,4px 7px 0 0.020em #ebe527,5px 7px 0 0.020em #ebe527,6px 7px 0 0.020em #ebe527,7px 7px 0 0.020em #ebe527,8px 7px 0 0.020em #ebe527,15px 7px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em #ebe527,4px 8px 0 0.020em #ebe527,5px 8px 0 0.020em #ebe527,6px 8px 0 0.020em #ebe527,7px 8px 0 0.020em #ebe527,8px 8px 0 0.020em #ebe527,14px 8px 0 0.020em,3px 9px 0 0.020em,4px 9px 0 0.020em #ebe527,5px 9px 0 0.020em #ebe527,6px 9px 0 0.020em #ebe527,7px 9px 0 0.020em #ebe527,8px 9px 0 0.020em #ebe527,13px 9px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em #ebe527,6px 10px 0 0.020em #ebe527,7px 10px 0 0.020em #ebe527,8px 10px 0 0.020em #ebe527,12px 10px 0 0.020em,3px 11px 0 0.020em,4px 11px 0 0.020em #ebe527,5px 11px 0 0.020em #ebe527,6px 11px 0 0.020em #ebe527,7px 11px 0 0.020em #ebe527,8px 11px 0 0.020em #f59f54,13px 11px 0 0.020em,3px 12px 0 0.020em,4px 12px 0 0.020em #ebe527,5px 12px 0 0.020em #ebe527,6px 12px 0 0.020em #ebe527,7px 12px 0 0.020em #f59f54,8px 12px 0 0.020em #f59f54,13px 12px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em #ebe527,4px 13px 0 0.020em #ebe527,5px 13px 0 0.020em #f59f54,6px 13px 0 0.020em #f59f54,7px 13px 0 0.020em #f59f54,8px 13px 0 0.020em,14px 13px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em #ebe527,4px 14px 0 0.020em #f59f54,5px 14px 0 0.020em #f59f54,6px 14px 0 0.020em,7px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,14px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em #f59f54,3px 15px 0 0.020em #f59f54,4px 15px 0 0.020em,5px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,15px 15px 0 0.020em,1px 16px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.star.is-transparent::before {\n width: 1px;\n height: 1px;\n color: #444;\n box-shadow: 8px 1px,7px 2px,9px 2px,7px 3px,9px 3px,6px 4px,10px 4px,6px 5px,10px 5px,1px 6px,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,1px 7px,15px 7px,2px 8px,14px 8px,3px 9px,13px 9px,4px 10px,12px 10px,3px 11px,13px 11px,3px 12px,13px 12px,2px 13px,8px 13px,14px 13px,2px 14px,6px 14px,7px 14px,9px 14px,10px 14px,14px 14px,1px 15px,4px 15px,5px 15px,11px 15px,12px 15px,15px 15px,1px 16px,2px 16px,3px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.star.is-transparent::before {\n box-shadow: 8px 1px 0 0.020em,7px 2px 0 0.020em,9px 2px 0 0.020em,7px 3px 0 0.020em,9px 3px 0 0.020em,6px 4px 0 0.020em,10px 4px 0 0.020em,6px 5px 0 0.020em,10px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,1px 7px 0 0.020em,15px 7px 0 0.020em,2px 8px 0 0.020em,14px 8px 0 0.020em,3px 9px 0 0.020em,13px 9px 0 0.020em,4px 10px 0 0.020em,12px 10px 0 0.020em,3px 11px 0 0.020em,13px 11px 0 0.020em,3px 12px 0 0.020em,13px 12px 0 0.020em,2px 13px 0 0.020em,8px 13px 0 0.020em,14px 13px 0 0.020em,2px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,14px 14px 0 0.020em,1px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,15px 15px 0 0.020em,1px 16px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.trophy::before {\n width: 1px;\n height: 1px;\n color: #ebe527;\n box-shadow: 3px 1px #444,4px 1px #444,5px 1px #444,6px 1px #444,7px 1px #444,8px 1px #444,9px 1px #444,10px 1px #444,11px 1px #444,12px 1px #444,13px 1px #444,3px 2px #444,4px 2px,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px,12px 2px #f59f54,13px 2px #444,1px 3px #444,2px 3px #444,3px 3px #444,4px 3px,5px 3px #fff,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px #f59f54,13px 3px #444,14px 3px #444,15px 3px #444,1px 4px #444,3px 4px #444,4px 4px,5px 4px #fff,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px #f59f54,13px 4px #444,15px 4px #444,1px 5px #444,3px 5px #444,4px 5px,5px 5px #fff,6px 5px,7px 5px,8px 5px,9px 5px,10px 5px,11px 5px,12px 5px #f59f54,13px 5px #444,15px 5px #444,2px 6px #444,3px 6px #444,4px 6px,5px 6px #fff,6px 6px,7px 6px,8px 6px,9px 6px,10px 6px,11px 6px,12px 6px #f59f54,13px 6px #444,14px 6px #444,3px 7px #444,4px 7px,5px 7px #fff,6px 7px,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px #f59f54,13px 7px #444,3px 8px #444,4px 8px,5px 8px,6px 8px,7px 8px,8px 8px,9px 8px,10px 8px,11px 8px,12px 8px #f59f54,13px 8px #444,4px 9px #444,5px 9px,6px 9px,7px 9px,8px 9px,9px 9px,10px 9px,11px 9px #f59f54,12px 9px #444,5px 10px #444,6px 10px,7px 10px,8px 10px,9px 10px,10px 10px #f59f54,11px 10px #444,6px 11px #444,7px 11px,8px 11px,9px 11px #f59f54,10px 11px #444,7px 12px #444,8px 12px,9px 12px #444,7px 13px #444,8px 13px,9px 13px #444,6px 14px #444,7px 14px #444,8px 14px,9px 14px #444,10px 14px #444,5px 15px #444,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px #f59f54,11px 15px #444,5px 16px #444,6px 16px #444,7px 16px #444,8px 16px #444,9px 16px #444,10px 16px #444,11px 16px #444;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.trophy::before {\n box-shadow: 3px 1px 0 0.020em #444,4px 1px 0 0.020em #444,5px 1px 0 0.020em #444,6px 1px 0 0.020em #444,7px 1px 0 0.020em #444,8px 1px 0 0.020em #444,9px 1px 0 0.020em #444,10px 1px 0 0.020em #444,11px 1px 0 0.020em #444,12px 1px 0 0.020em #444,13px 1px 0 0.020em #444,3px 2px 0 0.020em #444,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em #f59f54,13px 2px 0 0.020em #444,1px 3px 0 0.020em #444,2px 3px 0 0.020em #444,3px 3px 0 0.020em #444,4px 3px 0 0.020em,5px 3px 0 0.020em #fff,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em #f59f54,13px 3px 0 0.020em #444,14px 3px 0 0.020em #444,15px 3px 0 0.020em #444,1px 4px 0 0.020em #444,3px 4px 0 0.020em #444,4px 4px 0 0.020em,5px 4px 0 0.020em #fff,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em #f59f54,13px 4px 0 0.020em #444,15px 4px 0 0.020em #444,1px 5px 0 0.020em #444,3px 5px 0 0.020em #444,4px 5px 0 0.020em,5px 5px 0 0.020em #fff,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em #f59f54,13px 5px 0 0.020em #444,15px 5px 0 0.020em #444,2px 6px 0 0.020em #444,3px 6px 0 0.020em #444,4px 6px 0 0.020em,5px 6px 0 0.020em #fff,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em #f59f54,13px 6px 0 0.020em #444,14px 6px 0 0.020em #444,3px 7px 0 0.020em #444,4px 7px 0 0.020em,5px 7px 0 0.020em #fff,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em #f59f54,13px 7px 0 0.020em #444,3px 8px 0 0.020em #444,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em,12px 8px 0 0.020em #f59f54,13px 8px 0 0.020em #444,4px 9px 0 0.020em #444,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,11px 9px 0 0.020em #f59f54,12px 9px 0 0.020em #444,5px 10px 0 0.020em #444,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em #f59f54,11px 10px 0 0.020em #444,6px 11px 0 0.020em #444,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em #f59f54,10px 11px 0 0.020em #444,7px 12px 0 0.020em #444,8px 12px 0 0.020em,9px 12px 0 0.020em #444,7px 13px 0 0.020em #444,8px 13px 0 0.020em,9px 13px 0 0.020em #444,6px 14px 0 0.020em #444,7px 14px 0 0.020em #444,8px 14px 0 0.020em,9px 14px 0 0.020em #444,10px 14px 0 0.020em #444,5px 15px 0 0.020em #444,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em #f59f54,11px 15px 0 0.020em #444,5px 16px 0 0.020em #444,6px 16px 0 0.020em #444,7px 16px 0 0.020em #444,8px 16px 0 0.020em #444,9px 16px 0 0.020em #444,10px 16px 0 0.020em #444,11px 16px 0 0.020em #444;\n }\n}\n\n.nes-icon.trophy.is-empty::before {\n width: 1px;\n height: 1px;\n color: #adafbb;\n box-shadow: 3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,3px 2px,13px 2px,1px 3px,2px 3px,3px 3px,13px 3px,14px 3px,15px 3px,1px 4px,3px 4px,13px 4px,15px 4px,1px 5px,3px 5px,13px 5px,15px 5px,2px 6px,3px 6px,13px 6px,14px 6px,3px 7px,13px 7px,3px 8px,13px 8px,4px 9px,12px 9px,5px 10px,11px 10px,6px 11px,10px 11px,7px 12px,9px 12px,7px 13px,9px 13px,6px 14px,7px 14px,9px 14px,10px 14px,5px 15px,11px 15px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.trophy.is-empty::before {\n box-shadow: 3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,3px 2px 0 0.020em,13px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em,1px 4px 0 0.020em,3px 4px 0 0.020em,13px 4px 0 0.020em,15px 4px 0 0.020em,1px 5px 0 0.020em,3px 5px 0 0.020em,13px 5px 0 0.020em,15px 5px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,3px 7px 0 0.020em,13px 7px 0 0.020em,3px 8px 0 0.020em,13px 8px 0 0.020em,4px 9px 0 0.020em,12px 9px 0 0.020em,5px 10px 0 0.020em,11px 10px 0 0.020em,6px 11px 0 0.020em,10px 11px 0 0.020em,7px 12px 0 0.020em,9px 12px 0 0.020em,7px 13px 0 0.020em,9px 13px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,5px 15px 0 0.020em,11px 15px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em;\n }\n}\n\n.nes-icon.like::before {\n width: 1px;\n height: 1px;\n color: #fff;\n box-shadow: 8px 2px #333,9px 2px #333,8px 3px #333,9px 3px,10px 3px #333,8px 4px #333,9px 4px,10px 4px #333,7px 5px #333,8px 5px,9px 5px,10px 5px #333,7px 6px #333,8px 6px,9px 6px,10px 6px #333,11px 6px #333,12px 6px #333,13px 6px #333,14px 6px #333,15px 6px #333,6px 7px #333,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px,13px 7px,14px 7px,15px 7px,16px 7px #333,2px 8px #333,3px 8px #333,4px 8px #333,6px 8px #333,7px 8px,8px 8px,9px 8px,10px 8px,11px 8px,12px 8px,13px 8px,14px 8px,15px 8px,16px 8px #333,1px 9px #333,2px 9px #2e77be,3px 9px #2e77be,4px 9px #2e77be,5px 9px #333,6px 9px,7px 9px,8px 9px,9px 9px,10px 9px,11px 9px,12px 9px,13px 9px,14px 9px,15px 9px,16px 9px #333,1px 10px #333,2px 10px #2e77be,3px 10px #2e77be,4px 10px #2e77be,5px 10px #333,6px 10px,7px 10px,8px 10px,9px 10px,10px 10px,11px 10px,12px 10px,13px 10px,14px 10px,15px 10px #333,1px 11px #333,2px 11px #2e77be,3px 11px #2e77be,4px 11px #2e77be,5px 11px #333,6px 11px,7px 11px,8px 11px,9px 11px,10px 11px,11px 11px,12px 11px,13px 11px,14px 11px,15px 11px #333,1px 12px #333,2px 12px #2e77be,3px 12px #2e77be,4px 12px #2e77be,5px 12px #333,6px 12px,7px 12px,8px 12px,9px 12px,10px 12px,11px 12px,12px 12px,13px 12px,14px 12px,15px 12px #333,1px 13px #333,2px 13px #2e77be,3px 13px #2e77be,4px 13px #2e77be,5px 13px #333,6px 13px,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px,12px 13px,13px 13px,14px 13px #333,1px 14px #333,2px 14px #2e77be,3px 14px #2e77be,4px 14px #2e77be,5px 14px #333,6px 14px,7px 14px,8px 14px,9px 14px,10px 14px,11px 14px,12px 14px,13px 14px,14px 14px #333,2px 15px #333,3px 15px #333,4px 15px #333,6px 15px #333,7px 15px #333,8px 15px #333,9px 15px #333,10px 15px #333,11px 15px #333,12px 15px #333,13px 15px #333;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.like::before {\n box-shadow: 8px 2px 0 0.020em #333,9px 2px 0 0.020em #333,8px 3px 0 0.020em #333,9px 3px 0 0.020em,10px 3px 0 0.020em #333,8px 4px 0 0.020em #333,9px 4px 0 0.020em,10px 4px 0 0.020em #333,7px 5px 0 0.020em #333,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em #333,7px 6px 0 0.020em #333,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em #333,11px 6px 0 0.020em #333,12px 6px 0 0.020em #333,13px 6px 0 0.020em #333,14px 6px 0 0.020em #333,15px 6px 0 0.020em #333,6px 7px 0 0.020em #333,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em,16px 7px 0 0.020em #333,2px 8px 0 0.020em #333,3px 8px 0 0.020em #333,4px 8px 0 0.020em #333,6px 8px 0 0.020em #333,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em,15px 8px 0 0.020em,16px 8px 0 0.020em #333,1px 9px 0 0.020em #333,2px 9px 0 0.020em #2e77be,3px 9px 0 0.020em #2e77be,4px 9px 0 0.020em #2e77be,5px 9px 0 0.020em #333,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em,16px 9px 0 0.020em #333,1px 10px 0 0.020em #333,2px 10px 0 0.020em #2e77be,3px 10px 0 0.020em #2e77be,4px 10px 0 0.020em #2e77be,5px 10px 0 0.020em #333,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em,13px 10px 0 0.020em,14px 10px 0 0.020em,15px 10px 0 0.020em #333,1px 11px 0 0.020em #333,2px 11px 0 0.020em #2e77be,3px 11px 0 0.020em #2e77be,4px 11px 0 0.020em #2e77be,5px 11px 0 0.020em #333,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em #333,1px 12px 0 0.020em #333,2px 12px 0 0.020em #2e77be,3px 12px 0 0.020em #2e77be,4px 12px 0 0.020em #2e77be,5px 12px 0 0.020em #333,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em #333,1px 13px 0 0.020em #333,2px 13px 0 0.020em #2e77be,3px 13px 0 0.020em #2e77be,4px 13px 0 0.020em #2e77be,5px 13px 0 0.020em #333,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em #333,1px 14px 0 0.020em #333,2px 14px 0 0.020em #2e77be,3px 14px 0 0.020em #2e77be,4px 14px 0 0.020em #2e77be,5px 14px 0 0.020em #333,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em #333,2px 15px 0 0.020em #333,3px 15px 0 0.020em #333,4px 15px 0 0.020em #333,6px 15px 0 0.020em #333,7px 15px 0 0.020em #333,8px 15px 0 0.020em #333,9px 15px 0 0.020em #333,10px 15px 0 0.020em #333,11px 15px 0 0.020em #333,12px 15px 0 0.020em #333,13px 15px 0 0.020em #333;\n }\n}\n\n.nes-icon.like.is-empty::before {\n width: 1px;\n height: 1px;\n color: #adafbb;\n box-shadow: 8px 2px,9px 2px,8px 3px,10px 3px,8px 4px,10px 4px,7px 5px,10px 5px,7px 6px,10px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,6px 7px,16px 7px,2px 8px,3px 8px,4px 8px,6px 8px,16px 8px,1px 9px,5px 9px,16px 9px,1px 10px,5px 10px,15px 10px,1px 11px,5px 11px,15px 11px,1px 12px,5px 12px,15px 12px,1px 13px,5px 13px,14px 13px,1px 14px,5px 14px,14px 14px,2px 15px,3px 15px,4px 15px,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px,12px 15px,13px 15px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.like.is-empty::before {\n box-shadow: 8px 2px 0 0.020em,9px 2px 0 0.020em,8px 3px 0 0.020em,10px 3px 0 0.020em,8px 4px 0 0.020em,10px 4px 0 0.020em,7px 5px 0 0.020em,10px 5px 0 0.020em,7px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,6px 7px 0 0.020em,16px 7px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em,6px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,5px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,5px 10px 0 0.020em,15px 10px 0 0.020em,1px 11px 0 0.020em,5px 11px 0 0.020em,15px 11px 0 0.020em,1px 12px 0 0.020em,5px 12px 0 0.020em,15px 12px 0 0.020em,1px 13px 0 0.020em,5px 13px 0 0.020em,14px 13px 0 0.020em,1px 14px 0 0.020em,5px 14px 0 0.020em,14px 14px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em;\n }\n}\n\n.nes-icon.twitter::before {\n width: 1px;\n height: 1px;\n color: #2c9ceb;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px,4px 2px,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px,12px 2px,13px 2px,14px 2px,15px 2px,16px 2px,1px 3px,2px 3px #fff,3px 3px,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px #fff,11px 3px #fff,12px 3px #fff,13px 3px,14px 3px,15px 3px,16px 3px,1px 4px,2px 4px #fff,3px 4px #fff,4px 4px #fff,5px 4px,6px 4px,7px 4px,8px 4px,9px 4px #fff,10px 4px #fff,11px 4px #fff,12px 4px #fff,13px 4px #fff,14px 4px,15px 4px,16px 4px,1px 5px,2px 5px #fff,3px 5px #fff,4px 5px #fff,5px 5px #fff,6px 5px #fff,7px 5px,8px 5px #fff,9px 5px #fff,10px 5px #fff,11px 5px #fff,12px 5px #fff,13px 5px #fff,14px 5px #fff,15px 5px #fff,16px 5px,1px 6px,2px 6px,3px 6px #fff,4px 6px #fff,5px 6px #fff,6px 6px #fff,7px 6px #fff,8px 6px #fff,9px 6px #fff,10px 6px #fff,11px 6px #fff,12px 6px #fff,13px 6px #fff,14px 6px #fff,15px 6px,16px 6px,1px 7px,2px 7px,3px 7px #fff,4px 7px #fff,5px 7px #fff,6px 7px #fff,7px 7px #fff,8px 7px #fff,9px 7px #fff,10px 7px #fff,11px 7px #fff,12px 7px #fff,13px 7px #fff,14px 7px #fff,15px 7px,16px 7px,1px 8px,2px 8px,3px 8px,4px 8px #fff,5px 8px #fff,6px 8px #fff,7px 8px #fff,8px 8px #fff,9px 8px #fff,10px 8px #fff,11px 8px #fff,12px 8px #fff,13px 8px #fff,14px 8px,15px 8px,16px 8px,1px 9px,2px 9px,3px 9px,4px 9px #fff,5px 9px #fff,6px 9px #fff,7px 9px #fff,8px 9px #fff,9px 9px #fff,10px 9px #fff,11px 9px #fff,12px 9px #fff,13px 9px,14px 9px,15px 9px,16px 9px,1px 10px,2px 10px,3px 10px,4px 10px,5px 10px #fff,6px 10px #fff,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px #fff,11px 10px #fff,12px 10px #fff,13px 10px,14px 10px,15px 10px,16px 10px,1px 11px,2px 11px,3px 11px,4px 11px,5px 11px,6px 11px #fff,7px 11px #fff,8px 11px #fff,9px 11px #fff,10px 11px #fff,11px 11px #fff,12px 11px #fff,13px 11px,14px 11px,15px 11px,16px 11px,1px 12px,2px 12px,3px 12px,4px 12px,5px 12px #fff,6px 12px #fff,7px 12px #fff,8px 12px #fff,9px 12px #fff,10px 12px #fff,11px 12px #fff,12px 12px,13px 12px,14px 12px,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px #fff,4px 13px #fff,5px 13px #fff,6px 13px #fff,7px 13px #fff,8px 13px #fff,9px 13px #fff,10px 13px,11px 13px,12px 13px,13px 13px,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px #fff,5px 14px #fff,6px 14px #fff,7px 14px,8px 14px,9px 14px,10px 14px,11px 14px,12px 14px,13px 14px,14px 14px,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px,12px 15px,13px 15px,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.twitter::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em,13px 2px 0 0.020em,14px 2px 0 0.020em,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em #fff,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em #fff,11px 3px 0 0.020em #fff,12px 3px 0 0.020em #fff,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em #fff,3px 4px 0 0.020em #fff,4px 4px 0 0.020em #fff,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em #fff,10px 4px 0 0.020em #fff,11px 4px 0 0.020em #fff,12px 4px 0 0.020em #fff,13px 4px 0 0.020em #fff,14px 4px 0 0.020em,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em #fff,3px 5px 0 0.020em #fff,4px 5px 0 0.020em #fff,5px 5px 0 0.020em #fff,6px 5px 0 0.020em #fff,7px 5px 0 0.020em,8px 5px 0 0.020em #fff,9px 5px 0 0.020em #fff,10px 5px 0 0.020em #fff,11px 5px 0 0.020em #fff,12px 5px 0 0.020em #fff,13px 5px 0 0.020em #fff,14px 5px 0 0.020em #fff,15px 5px 0 0.020em #fff,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em #fff,4px 6px 0 0.020em #fff,5px 6px 0 0.020em #fff,6px 6px 0 0.020em #fff,7px 6px 0 0.020em #fff,8px 6px 0 0.020em #fff,9px 6px 0 0.020em #fff,10px 6px 0 0.020em #fff,11px 6px 0 0.020em #fff,12px 6px 0 0.020em #fff,13px 6px 0 0.020em #fff,14px 6px 0 0.020em #fff,15px 6px 0 0.020em,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em #fff,4px 7px 0 0.020em #fff,5px 7px 0 0.020em #fff,6px 7px 0 0.020em #fff,7px 7px 0 0.020em #fff,8px 7px 0 0.020em #fff,9px 7px 0 0.020em #fff,10px 7px 0 0.020em #fff,11px 7px 0 0.020em #fff,12px 7px 0 0.020em #fff,13px 7px 0 0.020em #fff,14px 7px 0 0.020em #fff,15px 7px 0 0.020em,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em #fff,5px 8px 0 0.020em #fff,6px 8px 0 0.020em #fff,7px 8px 0 0.020em #fff,8px 8px 0 0.020em #fff,9px 8px 0 0.020em #fff,10px 8px 0 0.020em #fff,11px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,13px 8px 0 0.020em #fff,14px 8px 0 0.020em,15px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em,4px 9px 0 0.020em #fff,5px 9px 0 0.020em #fff,6px 9px 0 0.020em #fff,7px 9px 0 0.020em #fff,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em #fff,11px 9px 0 0.020em #fff,12px 9px 0 0.020em #fff,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em #fff,6px 10px 0 0.020em #fff,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,11px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,13px 10px 0 0.020em,14px 10px 0 0.020em,15px 10px 0 0.020em,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em,3px 11px 0 0.020em,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em #fff,7px 11px 0 0.020em #fff,8px 11px 0 0.020em #fff,9px 11px 0 0.020em #fff,10px 11px 0 0.020em #fff,11px 11px 0 0.020em #fff,12px 11px 0 0.020em #fff,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em,4px 12px 0 0.020em,5px 12px 0 0.020em #fff,6px 12px 0 0.020em #fff,7px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,9px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,11px 12px 0 0.020em #fff,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em #fff,4px 13px 0 0.020em #fff,5px 13px 0 0.020em #fff,6px 13px 0 0.020em #fff,7px 13px 0 0.020em #fff,8px 13px 0 0.020em #fff,9px 13px 0 0.020em #fff,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em #fff,5px 14px 0 0.020em #fff,6px 14px 0 0.020em #fff,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.facebook::before {\n width: 1px;\n height: 1px;\n color: #4566ae;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px,4px 2px,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px #fff,12px 2px #fff,13px 2px #fff,14px 2px #fff,15px 2px,16px 2px,1px 3px,2px 3px,3px 3px,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px #fff,11px 3px #fff,12px 3px #fff,13px 3px #fff,14px 3px #fff,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px,4px 4px,5px 4px,6px 4px,7px 4px,8px 4px,9px 4px #fff,10px 4px #fff,11px 4px #fff,12px 4px #fff,13px 4px #fff,14px 4px #fff,15px 4px,16px 4px,1px 5px,2px 5px,3px 5px,4px 5px,5px 5px,6px 5px,7px 5px,8px 5px,9px 5px #fff,10px 5px #fff,11px 5px #fff,12px 5px,13px 5px,14px 5px,15px 5px,16px 5px,1px 6px,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px,8px 6px,9px 6px #fff,10px 6px #fff,11px 6px #fff,12px 6px,13px 6px,14px 6px,15px 6px,16px 6px,1px 7px,2px 7px,3px 7px,4px 7px,5px 7px,6px 7px,7px 7px,8px 7px,9px 7px #fff,10px 7px #fff,11px 7px #fff,12px 7px,13px 7px,14px 7px,15px 7px,16px 7px,1px 8px,2px 8px,3px 8px,4px 8px,5px 8px,6px 8px #fff,7px 8px #fff,8px 8px #fff,9px 8px #fff,10px 8px #fff,11px 8px #fff,12px 8px #fff,13px 8px #fff,14px 8px #fff,15px 8px,16px 8px,1px 9px,2px 9px,3px 9px,4px 9px,5px 9px,6px 9px #fff,7px 9px #fff,8px 9px #fff,9px 9px #fff,10px 9px #fff,11px 9px #fff,12px 9px #fff,13px 9px #fff,14px 9px #fff,15px 9px,16px 9px,1px 10px,2px 10px,3px 10px,4px 10px,5px 10px,6px 10px #fff,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px #fff,11px 10px #fff,12px 10px #fff,13px 10px #fff,14px 10px #fff,15px 10px,16px 10px,1px 11px,2px 11px,3px 11px,4px 11px,5px 11px,6px 11px,7px 11px,8px 11px,9px 11px #fff,10px 11px #fff,11px 11px #fff,12px 11px,13px 11px,14px 11px,15px 11px,16px 11px,1px 12px,2px 12px,3px 12px,4px 12px,5px 12px,6px 12px,7px 12px,8px 12px,9px 12px #fff,10px 12px #fff,11px 12px #fff,12px 12px,13px 12px,14px 12px,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px,4px 13px,5px 13px,6px 13px,7px 13px,8px 13px,9px 13px #fff,10px 13px #fff,11px 13px #fff,12px 13px,13px 13px,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px,5px 14px,6px 14px,7px 14px,8px 14px,9px 14px #fff,10px 14px #fff,11px 14px #fff,12px 14px,13px 14px,14px 14px,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px,8px 15px,9px 15px #fff,10px 15px #fff,11px 15px #fff,12px 15px,13px 15px,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px #fff,10px 16px #fff,11px 16px #fff,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.facebook::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em #fff,12px 2px 0 0.020em #fff,13px 2px 0 0.020em #fff,14px 2px 0 0.020em #fff,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em #fff,11px 3px 0 0.020em #fff,12px 3px 0 0.020em #fff,13px 3px 0 0.020em #fff,14px 3px 0 0.020em #fff,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em #fff,10px 4px 0 0.020em #fff,11px 4px 0 0.020em #fff,12px 4px 0 0.020em #fff,13px 4px 0 0.020em #fff,14px 4px 0 0.020em #fff,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em #fff,10px 5px 0 0.020em #fff,11px 5px 0 0.020em #fff,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em,15px 5px 0 0.020em,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em #fff,10px 6px 0 0.020em #fff,11px 6px 0 0.020em #fff,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em #fff,10px 7px 0 0.020em #fff,11px 7px 0 0.020em #fff,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em #fff,7px 8px 0 0.020em #fff,8px 8px 0 0.020em #fff,9px 8px 0 0.020em #fff,10px 8px 0 0.020em #fff,11px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,13px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,15px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em #fff,7px 9px 0 0.020em #fff,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em #fff,11px 9px 0 0.020em #fff,12px 9px 0 0.020em #fff,13px 9px 0 0.020em #fff,14px 9px 0 0.020em #fff,15px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em #fff,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,11px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,13px 10px 0 0.020em #fff,14px 10px 0 0.020em #fff,15px 10px 0 0.020em,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em,3px 11px 0 0.020em,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em #fff,10px 11px 0 0.020em #fff,11px 11px 0 0.020em #fff,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,11px 12px 0 0.020em #fff,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em #fff,10px 13px 0 0.020em #fff,11px 13px 0 0.020em #fff,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em,5px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em #fff,10px 14px 0 0.020em #fff,11px 14px 0 0.020em #fff,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em #fff,10px 15px 0 0.020em #fff,11px 15px 0 0.020em #fff,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em #fff,10px 16px 0 0.020em #fff,11px 16px 0 0.020em #fff,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.github::before {\n width: 1px;\n height: 1px;\n color: #333;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px,4px 2px,5px 2px #fff,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px,12px 2px,13px 2px,14px 2px #fff,15px 2px,16px 2px,1px 3px,2px 3px,3px 3px,4px 3px,5px 3px #fff,6px 3px #fff,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px #fff,14px 3px #fff,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px,4px 4px,5px 4px #fff,6px 4px #fff,7px 4px #fff,8px 4px #fff,9px 4px #fff,10px 4px #fff,11px 4px #fff,12px 4px #fff,13px 4px #fff,14px 4px #fff,15px 4px,16px 4px,1px 5px,2px 5px,3px 5px,4px 5px #fff,5px 5px #fff,6px 5px #fff,7px 5px #fff,8px 5px #fff,9px 5px #fff,10px 5px #fff,11px 5px #fff,12px 5px #fff,13px 5px #fff,14px 5px #fff,15px 5px #fff,16px 5px,1px 6px,2px 6px,3px 6px,4px 6px #fff,5px 6px #fff,6px 6px #fff,7px 6px #fff,8px 6px #fff,9px 6px #fff,10px 6px #fff,11px 6px #fff,12px 6px #fff,13px 6px #fff,14px 6px #fff,15px 6px #fff,16px 6px,1px 7px,2px 7px,3px 7px,4px 7px #fff,5px 7px #fff,6px 7px #fff,7px 7px #fff,8px 7px #fff,9px 7px #fff,10px 7px #fff,11px 7px #fff,12px 7px #fff,13px 7px #fff,14px 7px #fff,15px 7px #fff,16px 7px,1px 8px,2px 8px,3px 8px,4px 8px #fff,5px 8px #fff,6px 8px #fff,7px 8px #fff,8px 8px #fff,9px 8px #fff,10px 8px #fff,11px 8px #fff,12px 8px #fff,13px 8px #fff,14px 8px #fff,15px 8px #fff,16px 8px,1px 9px,2px 9px,3px 9px,4px 9px,5px 9px #fff,6px 9px #fff,7px 9px #fff,8px 9px #fff,9px 9px #fff,10px 9px #fff,11px 9px #fff,12px 9px #fff,13px 9px #fff,14px 9px #fff,15px 9px,16px 9px,1px 10px,2px 10px,3px 10px,4px 10px,5px 10px,6px 10px #fff,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px #fff,11px 10px #fff,12px 10px #fff,13px 10px #fff,14px 10px,15px 10px,16px 10px,1px 11px,2px 11px #fff,3px 11px #fff,4px 11px,5px 11px,6px 11px,7px 11px,8px 11px #fff,9px 11px #fff,10px 11px #fff,11px 11px #fff,12px 11px,13px 11px,14px 11px,15px 11px,16px 11px,1px 12px,2px 12px,3px 12px,4px 12px #fff,5px 12px,6px 12px,7px 12px #fff,8px 12px #fff,9px 12px #fff,10px 12px #fff,11px 12px #fff,12px 12px #fff,13px 12px,14px 12px,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px,4px 13px,5px 13px #fff,6px 13px #fff,7px 13px #fff,8px 13px #fff,9px 13px #fff,10px 13px #fff,11px 13px #fff,12px 13px #fff,13px 13px,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px,5px 14px,6px 14px,7px 14px #fff,8px 14px #fff,9px 14px #fff,10px 14px #fff,11px 14px #fff,12px 14px #fff,13px 14px,14px 14px,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px #fff,8px 15px #fff,9px 15px #fff,10px 15px #fff,11px 15px #fff,12px 15px #fff,13px 15px,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.github::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em #fff,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em,13px 2px 0 0.020em,14px 2px 0 0.020em #fff,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em #fff,6px 3px 0 0.020em #fff,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em #fff,14px 3px 0 0.020em #fff,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em,4px 4px 0 0.020em,5px 4px 0 0.020em #fff,6px 4px 0 0.020em #fff,7px 4px 0 0.020em #fff,8px 4px 0 0.020em #fff,9px 4px 0 0.020em #fff,10px 4px 0 0.020em #fff,11px 4px 0 0.020em #fff,12px 4px 0 0.020em #fff,13px 4px 0 0.020em #fff,14px 4px 0 0.020em #fff,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em,4px 5px 0 0.020em #fff,5px 5px 0 0.020em #fff,6px 5px 0 0.020em #fff,7px 5px 0 0.020em #fff,8px 5px 0 0.020em #fff,9px 5px 0 0.020em #fff,10px 5px 0 0.020em #fff,11px 5px 0 0.020em #fff,12px 5px 0 0.020em #fff,13px 5px 0 0.020em #fff,14px 5px 0 0.020em #fff,15px 5px 0 0.020em #fff,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em #fff,5px 6px 0 0.020em #fff,6px 6px 0 0.020em #fff,7px 6px 0 0.020em #fff,8px 6px 0 0.020em #fff,9px 6px 0 0.020em #fff,10px 6px 0 0.020em #fff,11px 6px 0 0.020em #fff,12px 6px 0 0.020em #fff,13px 6px 0 0.020em #fff,14px 6px 0 0.020em #fff,15px 6px 0 0.020em #fff,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em,4px 7px 0 0.020em #fff,5px 7px 0 0.020em #fff,6px 7px 0 0.020em #fff,7px 7px 0 0.020em #fff,8px 7px 0 0.020em #fff,9px 7px 0 0.020em #fff,10px 7px 0 0.020em #fff,11px 7px 0 0.020em #fff,12px 7px 0 0.020em #fff,13px 7px 0 0.020em #fff,14px 7px 0 0.020em #fff,15px 7px 0 0.020em #fff,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em #fff,5px 8px 0 0.020em #fff,6px 8px 0 0.020em #fff,7px 8px 0 0.020em #fff,8px 8px 0 0.020em #fff,9px 8px 0 0.020em #fff,10px 8px 0 0.020em #fff,11px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,13px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,15px 8px 0 0.020em #fff,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em #fff,6px 9px 0 0.020em #fff,7px 9px 0 0.020em #fff,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em #fff,11px 9px 0 0.020em #fff,12px 9px 0 0.020em #fff,13px 9px 0 0.020em #fff,14px 9px 0 0.020em #fff,15px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em #fff,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,11px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,13px 10px 0 0.020em #fff,14px 10px 0 0.020em,15px 10px 0 0.020em,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em #fff,3px 11px 0 0.020em #fff,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em #fff,9px 11px 0 0.020em #fff,10px 11px 0 0.020em #fff,11px 11px 0 0.020em #fff,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em,4px 12px 0 0.020em #fff,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,9px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,11px 12px 0 0.020em #fff,12px 12px 0 0.020em #fff,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em #fff,6px 13px 0 0.020em #fff,7px 13px 0 0.020em #fff,8px 13px 0 0.020em #fff,9px 13px 0 0.020em #fff,10px 13px 0 0.020em #fff,11px 13px 0 0.020em #fff,12px 13px 0 0.020em #fff,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em,5px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em #fff,8px 14px 0 0.020em #fff,9px 14px 0 0.020em #fff,10px 14px 0 0.020em #fff,11px 14px 0 0.020em #fff,12px 14px 0 0.020em #fff,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em #fff,8px 15px 0 0.020em #fff,9px 15px 0 0.020em #fff,10px 15px 0 0.020em #fff,11px 15px 0 0.020em #fff,12px 15px 0 0.020em #fff,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.youtube::before {\n width: 1px;\n height: 1px;\n color: #f00;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px,4px 2px,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px,12px 2px,13px 2px,14px 2px,15px 2px,16px 2px,1px 3px,2px 3px,3px 3px,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px,14px 3px,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px,4px 4px,5px 4px,6px 4px,7px 4px #fff,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px,15px 4px,16px 4px,1px 5px,2px 5px,3px 5px,4px 5px,5px 5px,6px 5px,7px 5px #fff,8px 5px #fff,9px 5px,10px 5px,11px 5px,12px 5px,13px 5px,14px 5px,15px 5px,16px 5px,1px 6px,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px #fff,8px 6px #fff,9px 6px #fff,10px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,16px 6px,1px 7px,2px 7px,3px 7px,4px 7px,5px 7px,6px 7px,7px 7px #fff,8px 7px #fff,9px 7px #fff,10px 7px #fff,11px 7px,12px 7px,13px 7px,14px 7px,15px 7px,16px 7px,1px 8px,2px 8px,3px 8px,4px 8px,5px 8px,6px 8px,7px 8px #fff,8px 8px #fff,9px 8px #fff,10px 8px #fff,11px 8px #fff,12px 8px,13px 8px,14px 8px,15px 8px,16px 8px,1px 9px,2px 9px,3px 9px,4px 9px,5px 9px,6px 9px,7px 9px #fff,8px 9px #fff,9px 9px #fff,10px 9px #fff,11px 9px,12px 9px,13px 9px,14px 9px,15px 9px,16px 9px,1px 10px,2px 10px,3px 10px,4px 10px,5px 10px,6px 10px,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px,11px 10px,12px 10px,13px 10px,14px 10px,15px 10px,16px 10px,1px 11px,2px 11px,3px 11px,4px 11px,5px 11px,6px 11px,7px 11px #fff,8px 11px #fff,9px 11px,10px 11px,11px 11px,12px 11px,13px 11px,14px 11px,15px 11px,16px 11px,1px 12px,2px 12px,3px 12px,4px 12px,5px 12px,6px 12px,7px 12px #fff,8px 12px,9px 12px,10px 12px,11px 12px,12px 12px,13px 12px,14px 12px,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px,4px 13px,5px 13px,6px 13px,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px,12px 13px,13px 13px,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px,5px 14px,6px 14px,7px 14px,8px 14px,9px 14px,10px 14px,11px 14px,12px 14px,13px 14px,14px 14px,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px,12px 15px,13px 15px,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.youtube::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em,13px 2px 0 0.020em,14px 2px 0 0.020em,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em #fff,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em #fff,8px 5px 0 0.020em #fff,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em,15px 5px 0 0.020em,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em #fff,8px 6px 0 0.020em #fff,9px 6px 0 0.020em #fff,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em #fff,8px 7px 0 0.020em #fff,9px 7px 0 0.020em #fff,10px 7px 0 0.020em #fff,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em #fff,8px 8px 0 0.020em #fff,9px 8px 0 0.020em #fff,10px 8px 0 0.020em #fff,11px 8px 0 0.020em #fff,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em,15px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em #fff,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em #fff,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em,13px 10px 0 0.020em,14px 10px 0 0.020em,15px 10px 0 0.020em,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em,3px 11px 0 0.020em,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em #fff,8px 11px 0 0.020em #fff,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em #fff,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em,5px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.close::before {\n width: 1px;\n height: 1px;\n color: #212529;\n box-shadow: 1px 1px,2px 1px,3px 1px,4px 1px,13px 1px,14px 1px,15px 1px,16px 1px,1px 2px,2px 2px,3px 2px,4px 2px,13px 2px,14px 2px,15px 2px,16px 2px,1px 3px,2px 3px,3px 3px,4px 3px,13px 3px,14px 3px,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px,4px 4px,5px 4px,6px 4px,7px 4px,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px,15px 4px,16px 4px,4px 5px,5px 5px,6px 5px,7px 5px,10px 5px,11px 5px,12px 5px,13px 5px,4px 6px,5px 6px,6px 6px,7px 6px,10px 6px,11px 6px,12px 6px,13px 6px,4px 7px,5px 7px,6px 7px,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px,13px 7px,7px 8px,8px 8px,9px 8px,10px 8px,7px 9px,8px 9px,9px 9px,10px 9px,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px,9px 10px,10px 10px,11px 10px,12px 10px,13px 10px,4px 11px,5px 11px,6px 11px,7px 11px,10px 11px,11px 11px,12px 11px,13px 11px,4px 12px,5px 12px,6px 12px,7px 12px,10px 12px,11px 12px,12px 12px,13px 12px,1px 13px,2px 13px,3px 13px,4px 13px,5px 13px,6px 13px,7px 13px,10px 13px,11px 13px,12px 13px,13px 13px,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px,13px 14px,14px 14px,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,13px 15px,14px 15px,15px 15px,16px 15px,1px 16px,2px 16px,3px 16px,4px 16px,13px 16px,14px 16px,15px 16px,16px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.close::before {\n box-shadow: 1px 1px 0 0.020em,2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,16px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,13px 2px 0 0.020em,14px 2px 0 0.020em,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em,15px 4px 0 0.020em,16px 4px 0 0.020em,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em,13px 10px 0 0.020em,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,1px 16px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em,16px 16px 0 0.020em;\n }\n}\n\n.nes-icon.google::before {\n width: 1px;\n height: 1px;\n color: #fff;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px,4px 2px,5px 2px,6px 2px #db4437,7px 2px #db4437,8px 2px #db4437,9px 2px #db4437,10px 2px #db4437,11px 2px #db4437,12px 2px,13px 2px,14px 2px,15px 2px,16px 2px,1px 3px,2px 3px,3px 3px,4px 3px #db4437,5px 3px #db4437,6px 3px #db4437,7px 3px #db4437,8px 3px #db4437,9px 3px #db4437,10px 3px #db4437,11px 3px #db4437,12px 3px #db4437,13px 3px #db4437,14px 3px,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px #db4437,4px 4px #db4437,5px 4px #db4437,6px 4px #db4437,7px 4px #db4437,8px 4px #db4437,9px 4px #db4437,10px 4px #db4437,11px 4px #db4437,12px 4px #db4437,13px 4px,14px 4px,15px 4px,16px 4px,1px 5px,2px 5px #db4437,3px 5px #db4437,4px 5px #db4437,5px 5px #db4437,6px 5px,7px 5px,8px 5px,9px 5px,10px 5px,11px 5px #db4437,12px 5px,13px 5px,14px 5px,15px 5px,16px 5px,1px 6px #f4b400,2px 6px #db4437,3px 6px #db4437,4px 6px #db4437,5px 6px,6px 6px,7px 6px,8px 6px,9px 6px,10px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,16px 6px,1px 7px #f4b400,2px 7px #f4b400,3px 7px #db4437,4px 7px,5px 7px,6px 7px,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px,13px 7px,14px 7px,15px 7px,16px 7px,1px 8px #f4b400,2px 8px #f4b400,3px 8px #f4b400,4px 8px,5px 8px,6px 8px,7px 8px,8px 8px,9px 8px #4285f4,10px 8px #4285f4,11px 8px #4285f4,12px 8px #4285f4,13px 8px #4285f4,14px 8px #4285f4,15px 8px #4285f4,16px 8px,1px 9px #f4b400,2px 9px #f4b400,3px 9px #f4b400,4px 9px,5px 9px,6px 9px,7px 9px,8px 9px,9px 9px #4285f4,10px 9px #4285f4,11px 9px #4285f4,12px 9px #4285f4,13px 9px #4285f4,14px 9px #4285f4,15px 9px #4285f4,16px 9px,1px 10px #f4b400,2px 10px #f4b400,3px 10px #f4b400,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px,9px 10px #4285f4,10px 10px #4285f4,11px 10px #4285f4,12px 10px #4285f4,13px 10px #4285f4,14px 10px #4285f4,15px 10px #4285f4,16px 10px,1px 11px #f4b400,2px 11px #f4b400,3px 11px #0f9d58,4px 11px,5px 11px,6px 11px,7px 11px,8px 11px,9px 11px,10px 11px,11px 11px,12px 11px,13px 11px #4285f4,14px 11px #4285f4,15px 11px #4285f4,16px 11px,1px 12px #f4b400,2px 12px #0f9d58,3px 12px #0f9d58,4px 12px #0f9d58,5px 12px,6px 12px,7px 12px,8px 12px,9px 12px,10px 12px,11px 12px,12px 12px #4285f4,13px 12px #4285f4,14px 12px #4285f4,15px 12px #4285f4,16px 12px,1px 13px,2px 13px #0f9d58,3px 13px #0f9d58,4px 13px #0f9d58,5px 13px #0f9d58,6px 13px,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px #0f9d58,12px 13px #4285f4,13px 13px #4285f4,14px 13px #4285f4,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px #0f9d58,4px 14px #0f9d58,5px 14px #0f9d58,6px 14px #0f9d58,7px 14px #0f9d58,8px 14px #0f9d58,9px 14px #0f9d58,10px 14px #0f9d58,11px 14px #0f9d58,12px 14px #0f9d58,13px 14px #4285f4,14px 14px #4285f4,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px #0f9d58,5px 15px #0f9d58,6px 15px #0f9d58,7px 15px #0f9d58,8px 15px #0f9d58,9px 15px #0f9d58,10px 15px #0f9d58,11px 15px #0f9d58,12px 15px #0f9d58,13px 15px #0f9d58,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px #0f9d58,7px 16px #0f9d58,8px 16px #0f9d58,9px 16px #0f9d58,10px 16px #0f9d58,11px 16px #0f9d58,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.google::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em #db4437,7px 2px 0 0.020em #db4437,8px 2px 0 0.020em #db4437,9px 2px 0 0.020em #db4437,10px 2px 0 0.020em #db4437,11px 2px 0 0.020em #db4437,12px 2px 0 0.020em,13px 2px 0 0.020em,14px 2px 0 0.020em,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em #db4437,5px 3px 0 0.020em #db4437,6px 3px 0 0.020em #db4437,7px 3px 0 0.020em #db4437,8px 3px 0 0.020em #db4437,9px 3px 0 0.020em #db4437,10px 3px 0 0.020em #db4437,11px 3px 0 0.020em #db4437,12px 3px 0 0.020em #db4437,13px 3px 0 0.020em #db4437,14px 3px 0 0.020em,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em #db4437,4px 4px 0 0.020em #db4437,5px 4px 0 0.020em #db4437,6px 4px 0 0.020em #db4437,7px 4px 0 0.020em #db4437,8px 4px 0 0.020em #db4437,9px 4px 0 0.020em #db4437,10px 4px 0 0.020em #db4437,11px 4px 0 0.020em #db4437,12px 4px 0 0.020em #db4437,13px 4px 0 0.020em,14px 4px 0 0.020em,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em #db4437,3px 5px 0 0.020em #db4437,4px 5px 0 0.020em #db4437,5px 5px 0 0.020em #db4437,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em #db4437,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em,15px 5px 0 0.020em,16px 5px 0 0.020em,1px 6px 0 0.020em #f4b400,2px 6px 0 0.020em #db4437,3px 6px 0 0.020em #db4437,4px 6px 0 0.020em #db4437,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,16px 6px 0 0.020em,1px 7px 0 0.020em #f4b400,2px 7px 0 0.020em #f4b400,3px 7px 0 0.020em #db4437,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em,16px 7px 0 0.020em,1px 8px 0 0.020em #f4b400,2px 8px 0 0.020em #f4b400,3px 8px 0 0.020em #f4b400,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em #4285f4,10px 8px 0 0.020em #4285f4,11px 8px 0 0.020em #4285f4,12px 8px 0 0.020em #4285f4,13px 8px 0 0.020em #4285f4,14px 8px 0 0.020em #4285f4,15px 8px 0 0.020em #4285f4,16px 8px 0 0.020em,1px 9px 0 0.020em #f4b400,2px 9px 0 0.020em #f4b400,3px 9px 0 0.020em #f4b400,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em #4285f4,10px 9px 0 0.020em #4285f4,11px 9px 0 0.020em #4285f4,12px 9px 0 0.020em #4285f4,13px 9px 0 0.020em #4285f4,14px 9px 0 0.020em #4285f4,15px 9px 0 0.020em #4285f4,16px 9px 0 0.020em,1px 10px 0 0.020em #f4b400,2px 10px 0 0.020em #f4b400,3px 10px 0 0.020em #f4b400,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em #4285f4,10px 10px 0 0.020em #4285f4,11px 10px 0 0.020em #4285f4,12px 10px 0 0.020em #4285f4,13px 10px 0 0.020em #4285f4,14px 10px 0 0.020em #4285f4,15px 10px 0 0.020em #4285f4,16px 10px 0 0.020em,1px 11px 0 0.020em #f4b400,2px 11px 0 0.020em #f4b400,3px 11px 0 0.020em #0f9d58,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em #4285f4,14px 11px 0 0.020em #4285f4,15px 11px 0 0.020em #4285f4,16px 11px 0 0.020em,1px 12px 0 0.020em #f4b400,2px 12px 0 0.020em #0f9d58,3px 12px 0 0.020em #0f9d58,4px 12px 0 0.020em #0f9d58,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em #4285f4,13px 12px 0 0.020em #4285f4,14px 12px 0 0.020em #4285f4,15px 12px 0 0.020em #4285f4,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em #0f9d58,3px 13px 0 0.020em #0f9d58,4px 13px 0 0.020em #0f9d58,5px 13px 0 0.020em #0f9d58,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em #0f9d58,12px 13px 0 0.020em #4285f4,13px 13px 0 0.020em #4285f4,14px 13px 0 0.020em #4285f4,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em #0f9d58,4px 14px 0 0.020em #0f9d58,5px 14px 0 0.020em #0f9d58,6px 14px 0 0.020em #0f9d58,7px 14px 0 0.020em #0f9d58,8px 14px 0 0.020em #0f9d58,9px 14px 0 0.020em #0f9d58,10px 14px 0 0.020em #0f9d58,11px 14px 0 0.020em #0f9d58,12px 14px 0 0.020em #0f9d58,13px 14px 0 0.020em #4285f4,14px 14px 0 0.020em #4285f4,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em #0f9d58,5px 15px 0 0.020em #0f9d58,6px 15px 0 0.020em #0f9d58,7px 15px 0 0.020em #0f9d58,8px 15px 0 0.020em #0f9d58,9px 15px 0 0.020em #0f9d58,10px 15px 0 0.020em #0f9d58,11px 15px 0 0.020em #0f9d58,12px 15px 0 0.020em #0f9d58,13px 15px 0 0.020em #0f9d58,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em #0f9d58,7px 16px 0 0.020em #0f9d58,8px 16px 0 0.020em #0f9d58,9px 16px 0 0.020em #0f9d58,10px 16px 0 0.020em #0f9d58,11px 16px 0 0.020em #0f9d58,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.medium::before {\n width: 1px;\n height: 1px;\n color: #12100e;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px #fff,3px 2px #fff,4px 2px #fff,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px,12px 2px #fff,13px 2px #fff,14px 2px #fff,15px 2px #fff,16px 2px,1px 3px,2px 3px,3px 3px #fff,4px 3px #fff,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px #fff,13px 3px #fff,14px 3px #fff,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px #fff,4px 4px #fff,5px 4px #fff,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px #fff,13px 4px #fff,14px 4px #fff,15px 4px,16px 4px,1px 5px,2px 5px,3px 5px #fff,4px 5px #fff,5px 5px #fff,6px 5px #fff,7px 5px,8px 5px,9px 5px,10px 5px,11px 5px #fff,12px 5px #fff,13px 5px #fff,14px 5px #fff,15px 5px,16px 5px,1px 6px,2px 6px,3px 6px #fff,4px 6px #fff,5px 6px #fff,6px 6px #fff,7px 6px,8px 6px,9px 6px,10px 6px,11px 6px #fff,12px 6px #fff,13px 6px #fff,14px 6px #fff,15px 6px,16px 6px,1px 7px,2px 7px,3px 7px #fff,4px 7px #fff,5px 7px #fff,6px 7px #fff,7px 7px,8px 7px,9px 7px,10px 7px #fff,11px 7px #fff,12px 7px #fff,13px 7px #fff,14px 7px #fff,15px 7px,16px 7px,1px 8px,2px 8px,3px 8px #fff,4px 8px,5px 8px #fff,6px 8px #fff,7px 8px #fff,8px 8px,9px 8px,10px 8px #fff,11px 8px #fff,12px 8px #fff,13px 8px #fff,14px 8px #fff,15px 8px,16px 8px,1px 9px,2px 9px,3px 9px #fff,4px 9px,5px 9px #fff,6px 9px #fff,7px 9px #fff,8px 9px,9px 9px #fff,10px 9px #fff,11px 9px,12px 9px #fff,13px 9px #fff,14px 9px #fff,15px 9px,16px 9px,1px 10px,2px 10px,3px 10px #fff,4px 10px,5px 10px,6px 10px #fff,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px #fff,11px 10px,12px 10px #fff,13px 10px #fff,14px 10px #fff,15px 10px,16px 10px,1px 11px,2px 11px,3px 11px #fff,4px 11px,5px 11px,6px 11px #fff,7px 11px #fff,8px 11px #fff,9px 11px #fff,10px 11px,11px 11px,12px 11px #fff,13px 11px #fff,14px 11px #fff,15px 11px,16px 11px,1px 12px,2px 12px,3px 12px #fff,4px 12px,5px 12px,6px 12px,7px 12px #fff,8px 12px #fff,9px 12px #fff,10px 12px,11px 12px,12px 12px #fff,13px 12px #fff,14px 12px #fff,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px #fff,4px 13px,5px 13px,6px 13px,7px 13px #fff,8px 13px #fff,9px 13px,10px 13px,11px 13px,12px 13px #fff,13px 13px #fff,14px 13px #fff,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px #fff,4px 14px,5px 14px,6px 14px,7px 14px,8px 14px #fff,9px 14px,10px 14px,11px 14px,12px 14px #fff,13px 14px #fff,14px 14px #fff,15px 14px,16px 14px,1px 15px,2px 15px #fff,3px 15px #fff,4px 15px #fff,5px 15px,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px #fff,12px 15px #fff,13px 15px #fff,14px 15px #fff,15px 15px #fff,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.medium::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em #fff,3px 2px 0 0.020em #fff,4px 2px 0 0.020em #fff,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em #fff,13px 2px 0 0.020em #fff,14px 2px 0 0.020em #fff,15px 2px 0 0.020em #fff,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em #fff,4px 3px 0 0.020em #fff,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em #fff,13px 3px 0 0.020em #fff,14px 3px 0 0.020em #fff,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em #fff,4px 4px 0 0.020em #fff,5px 4px 0 0.020em #fff,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em #fff,13px 4px 0 0.020em #fff,14px 4px 0 0.020em #fff,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em #fff,4px 5px 0 0.020em #fff,5px 5px 0 0.020em #fff,6px 5px 0 0.020em #fff,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em #fff,12px 5px 0 0.020em #fff,13px 5px 0 0.020em #fff,14px 5px 0 0.020em #fff,15px 5px 0 0.020em,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em #fff,4px 6px 0 0.020em #fff,5px 6px 0 0.020em #fff,6px 6px 0 0.020em #fff,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em #fff,12px 6px 0 0.020em #fff,13px 6px 0 0.020em #fff,14px 6px 0 0.020em #fff,15px 6px 0 0.020em,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em #fff,4px 7px 0 0.020em #fff,5px 7px 0 0.020em #fff,6px 7px 0 0.020em #fff,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em #fff,11px 7px 0 0.020em #fff,12px 7px 0 0.020em #fff,13px 7px 0 0.020em #fff,14px 7px 0 0.020em #fff,15px 7px 0 0.020em,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em #fff,4px 8px 0 0.020em,5px 8px 0 0.020em #fff,6px 8px 0 0.020em #fff,7px 8px 0 0.020em #fff,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em #fff,11px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,13px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,15px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em #fff,4px 9px 0 0.020em,5px 9px 0 0.020em #fff,6px 9px 0 0.020em #fff,7px 9px 0 0.020em #fff,8px 9px 0 0.020em,9px 9px 0 0.020em #fff,10px 9px 0 0.020em #fff,11px 9px 0 0.020em,12px 9px 0 0.020em #fff,13px 9px 0 0.020em #fff,14px 9px 0 0.020em #fff,15px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em #fff,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em #fff,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,11px 10px 0 0.020em,12px 10px 0 0.020em #fff,13px 10px 0 0.020em #fff,14px 10px 0 0.020em #fff,15px 10px 0 0.020em,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em,3px 11px 0 0.020em #fff,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em #fff,7px 11px 0 0.020em #fff,8px 11px 0 0.020em #fff,9px 11px 0 0.020em #fff,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em #fff,13px 11px 0 0.020em #fff,14px 11px 0 0.020em #fff,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em #fff,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,9px 12px 0 0.020em #fff,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em #fff,13px 12px 0 0.020em #fff,14px 12px 0 0.020em #fff,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em #fff,4px 13px 0 0.020em,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em #fff,8px 13px 0 0.020em #fff,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em #fff,13px 13px 0 0.020em #fff,14px 13px 0 0.020em #fff,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em #fff,4px 14px 0 0.020em,5px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em #fff,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em #fff,13px 14px 0 0.020em #fff,14px 14px 0 0.020em #fff,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em #fff,3px 15px 0 0.020em #fff,4px 15px 0 0.020em #fff,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em #fff,12px 15px 0 0.020em #fff,13px 15px 0 0.020em #fff,14px 15px 0 0.020em #fff,15px 15px 0 0.020em #fff,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.twitch::before {\n width: 1px;\n height: 1px;\n color: #6441a4;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px #fff,4px 2px #fff,5px 2px #fff,6px 2px #fff,7px 2px #fff,8px 2px #fff,9px 2px #fff,10px 2px #fff,11px 2px #fff,12px 2px #fff,13px 2px #fff,14px 2px #fff,15px 2px #fff,16px 2px,1px 3px,2px 3px #fff,3px 3px #fff,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px,14px 3px,15px 3px #fff,16px 3px,1px 4px,2px 4px #fff,3px 4px #fff,4px 4px,5px 4px,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px,15px 4px #fff,16px 4px,1px 5px,2px 5px #fff,3px 5px #fff,4px 5px,5px 5px,6px 5px,7px 5px,8px 5px #fff,9px 5px,10px 5px,11px 5px #fff,12px 5px,13px 5px,14px 5px,15px 5px #fff,16px 5px,1px 6px,2px 6px #fff,3px 6px #fff,4px 6px,5px 6px,6px 6px,7px 6px,8px 6px #fff,9px 6px,10px 6px,11px 6px #fff,12px 6px,13px 6px,14px 6px,15px 6px #fff,16px 6px,1px 7px,2px 7px #fff,3px 7px #fff,4px 7px,5px 7px,6px 7px,7px 7px,8px 7px #fff,9px 7px,10px 7px,11px 7px #fff,12px 7px,13px 7px,14px 7px,15px 7px #fff,16px 7px,1px 8px,2px 8px #fff,3px 8px #fff,4px 8px,5px 8px,6px 8px,7px 8px,8px 8px #fff,9px 8px,10px 8px,11px 8px #fff,12px 8px,13px 8px,14px 8px,15px 8px #fff,16px 8px,1px 9px,2px 9px #fff,3px 9px #fff,4px 9px,5px 9px,6px 9px,7px 9px,8px 9px,9px 9px,10px 9px,11px 9px,12px 9px,13px 9px,14px 9px,15px 9px #fff,16px 9px,1px 10px,2px 10px #fff,3px 10px #fff,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px,9px 10px,10px 10px,11px 10px,12px 10px,13px 10px,14px 10px #fff,15px 10px #fff,16px 10px,1px 11px,2px 11px #fff,3px 11px #fff,4px 11px,5px 11px,6px 11px,7px 11px,8px 11px,9px 11px,10px 11px,11px 11px,12px 11px,13px 11px #fff,14px 11px #fff,15px 11px,16px 11px,1px 12px,2px 12px #fff,3px 12px #fff,4px 12px #fff,5px 12px #fff,6px 12px,7px 12px,8px 12px #fff,9px 12px #fff,10px 12px #fff,11px 12px #fff,12px 12px #fff,13px 12px #fff,14px 12px,15px 12px,16px 12px,1px 13px,2px 13px #fff,3px 13px #fff,4px 13px #fff,5px 13px #fff,6px 13px,7px 13px #fff,8px 13px #fff,9px 13px #fff,10px 13px #fff,11px 13px #fff,12px 13px #fff,13px 13px,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px,5px 14px #fff,6px 14px #fff,7px 14px #fff,8px 14px #fff,9px 14px,10px 14px,11px 14px,12px 14px,13px 14px,14px 14px,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,5px 15px #fff,6px 15px #fff,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px,12px 15px,13px 15px,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.twitch::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em #fff,4px 2px 0 0.020em #fff,5px 2px 0 0.020em #fff,6px 2px 0 0.020em #fff,7px 2px 0 0.020em #fff,8px 2px 0 0.020em #fff,9px 2px 0 0.020em #fff,10px 2px 0 0.020em #fff,11px 2px 0 0.020em #fff,12px 2px 0 0.020em #fff,13px 2px 0 0.020em #fff,14px 2px 0 0.020em #fff,15px 2px 0 0.020em #fff,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em #fff,3px 3px 0 0.020em #fff,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em #fff,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em #fff,3px 4px 0 0.020em #fff,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em,15px 4px 0 0.020em #fff,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em #fff,3px 5px 0 0.020em #fff,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em #fff,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em #fff,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em,15px 5px 0 0.020em #fff,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em #fff,3px 6px 0 0.020em #fff,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em #fff,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em #fff,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em #fff,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em #fff,3px 7px 0 0.020em #fff,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em,8px 7px 0 0.020em #fff,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em #fff,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em #fff,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em #fff,3px 8px 0 0.020em #fff,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em #fff,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em #fff,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em,15px 8px 0 0.020em #fff,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em #fff,3px 9px 0 0.020em #fff,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em #fff,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em #fff,3px 10px 0 0.020em #fff,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em,13px 10px 0 0.020em,14px 10px 0 0.020em #fff,15px 10px 0 0.020em #fff,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em #fff,3px 11px 0 0.020em #fff,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em #fff,14px 11px 0 0.020em #fff,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em #fff,3px 12px 0 0.020em #fff,4px 12px 0 0.020em #fff,5px 12px 0 0.020em #fff,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em #fff,9px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,11px 12px 0 0.020em #fff,12px 12px 0 0.020em #fff,13px 12px 0 0.020em #fff,14px 12px 0 0.020em,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em #fff,3px 13px 0 0.020em #fff,4px 13px 0 0.020em #fff,5px 13px 0 0.020em #fff,6px 13px 0 0.020em,7px 13px 0 0.020em #fff,8px 13px 0 0.020em #fff,9px 13px 0 0.020em #fff,10px 13px 0 0.020em #fff,11px 13px 0 0.020em #fff,12px 13px 0 0.020em #fff,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em,5px 14px 0 0.020em #fff,6px 14px 0 0.020em #fff,7px 14px 0 0.020em #fff,8px 14px 0 0.020em #fff,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em #fff,6px 15px 0 0.020em #fff,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.reddit::before {\n width: 1px;\n height: 1px;\n color: #f40;\n box-shadow: 3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,2px 2px,3px 2px,4px 2px,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px #fff,10px 2px #fff,11px 2px #fff,12px 2px,13px 2px #fff,14px 2px,15px 2px,1px 3px,2px 3px,3px 3px,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px #fff,9px 3px,10px 3px,11px 3px,12px 3px #fff,13px 3px #fff,14px 3px #fff,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px,4px 4px,5px 4px,6px 4px,7px 4px,8px 4px #fff,9px 4px,10px 4px,11px 4px,12px 4px,13px 4px #fff,14px 4px,15px 4px,16px 4px,1px 5px,2px 5px,3px 5px,4px 5px,5px 5px,6px 5px,7px 5px #fff,8px 5px #fff,9px 5px #fff,10px 5px #fff,11px 5px,12px 5px,13px 5px,14px 5px,15px 5px,16px 5px,1px 6px,2px 6px #fff,3px 6px #fff,4px 6px,5px 6px #fff,6px 6px #fff,7px 6px #fff,8px 6px #fff,9px 6px #fff,10px 6px #fff,11px 6px #fff,12px 6px #fff,13px 6px,14px 6px #fff,15px 6px #fff,16px 6px,1px 7px,2px 7px #fff,3px 7px,4px 7px #fff,5px 7px #fff,6px 7px #fff,7px 7px #fff,8px 7px #fff,9px 7px #fff,10px 7px #fff,11px 7px #fff,12px 7px #fff,13px 7px #fff,14px 7px,15px 7px #fff,16px 7px,1px 8px,2px 8px,3px 8px #fff,4px 8px #fff,5px 8px #fff,6px 8px,7px 8px,8px 8px #fff,9px 8px #fff,10px 8px,11px 8px,12px 8px #fff,13px 8px #fff,14px 8px #fff,15px 8px,16px 8px,1px 9px,2px 9px #fff,3px 9px #fff,4px 9px #fff,5px 9px #fff,6px 9px,7px 9px,8px 9px #fff,9px 9px #fff,10px 9px,11px 9px,12px 9px #fff,13px 9px #fff,14px 9px #fff,15px 9px #fff,16px 9px,1px 10px,2px 10px #fff,3px 10px #fff,4px 10px #fff,5px 10px #fff,6px 10px #fff,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px #fff,11px 10px #fff,12px 10px #fff,13px 10px #fff,14px 10px #fff,15px 10px #fff,16px 10px,1px 11px,2px 11px #fff,3px 11px #fff,4px 11px #fff,5px 11px #fff,6px 11px #fff,7px 11px #fff,8px 11px #fff,9px 11px #fff,10px 11px #fff,11px 11px #fff,12px 11px #fff,13px 11px #fff,14px 11px #fff,15px 11px #fff,16px 11px,1px 12px,2px 12px,3px 12px #fff,4px 12px #fff,5px 12px #fff,6px 12px,7px 12px #fff,8px 12px #fff,9px 12px #fff,10px 12px #fff,11px 12px,12px 12px #fff,13px 12px #fff,14px 12px #fff,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px,4px 13px #fff,5px 13px #fff,6px 13px #fff,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px #fff,12px 13px #fff,13px 13px #fff,14px 13px,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px,4px 14px,5px 14px #fff,6px 14px #fff,7px 14px #fff,8px 14px #fff,9px 14px #fff,10px 14px #fff,11px 14px #fff,12px 14px #fff,13px 14px,14px 14px,15px 14px,16px 14px,2px 15px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px #fff,8px 15px #fff,9px 15px #fff,10px 15px #fff,11px 15px,12px 15px,13px 15px,14px 15px,15px 15px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.reddit::before {\n box-shadow: 3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em #fff,10px 2px 0 0.020em #fff,11px 2px 0 0.020em #fff,12px 2px 0 0.020em,13px 2px 0 0.020em #fff,14px 2px 0 0.020em,15px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em #fff,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em #fff,13px 3px 0 0.020em #fff,14px 3px 0 0.020em #fff,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em #fff,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em #fff,14px 4px 0 0.020em,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em #fff,8px 5px 0 0.020em #fff,9px 5px 0 0.020em #fff,10px 5px 0 0.020em #fff,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em,15px 5px 0 0.020em,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em #fff,3px 6px 0 0.020em #fff,4px 6px 0 0.020em,5px 6px 0 0.020em #fff,6px 6px 0 0.020em #fff,7px 6px 0 0.020em #fff,8px 6px 0 0.020em #fff,9px 6px 0 0.020em #fff,10px 6px 0 0.020em #fff,11px 6px 0 0.020em #fff,12px 6px 0 0.020em #fff,13px 6px 0 0.020em,14px 6px 0 0.020em #fff,15px 6px 0 0.020em #fff,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em #fff,3px 7px 0 0.020em,4px 7px 0 0.020em #fff,5px 7px 0 0.020em #fff,6px 7px 0 0.020em #fff,7px 7px 0 0.020em #fff,8px 7px 0 0.020em #fff,9px 7px 0 0.020em #fff,10px 7px 0 0.020em #fff,11px 7px 0 0.020em #fff,12px 7px 0 0.020em #fff,13px 7px 0 0.020em #fff,14px 7px 0 0.020em,15px 7px 0 0.020em #fff,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em #fff,4px 8px 0 0.020em #fff,5px 8px 0 0.020em #fff,6px 8px 0 0.020em,7px 8px 0 0.020em,8px 8px 0 0.020em #fff,9px 8px 0 0.020em #fff,10px 8px 0 0.020em,11px 8px 0 0.020em,12px 8px 0 0.020em #fff,13px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,15px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em #fff,3px 9px 0 0.020em #fff,4px 9px 0 0.020em #fff,5px 9px 0 0.020em #fff,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em,11px 9px 0 0.020em,12px 9px 0 0.020em #fff,13px 9px 0 0.020em #fff,14px 9px 0 0.020em #fff,15px 9px 0 0.020em #fff,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em #fff,3px 10px 0 0.020em #fff,4px 10px 0 0.020em #fff,5px 10px 0 0.020em #fff,6px 10px 0 0.020em #fff,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,11px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,13px 10px 0 0.020em #fff,14px 10px 0 0.020em #fff,15px 10px 0 0.020em #fff,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em #fff,3px 11px 0 0.020em #fff,4px 11px 0 0.020em #fff,5px 11px 0 0.020em #fff,6px 11px 0 0.020em #fff,7px 11px 0 0.020em #fff,8px 11px 0 0.020em #fff,9px 11px 0 0.020em #fff,10px 11px 0 0.020em #fff,11px 11px 0 0.020em #fff,12px 11px 0 0.020em #fff,13px 11px 0 0.020em #fff,14px 11px 0 0.020em #fff,15px 11px 0 0.020em #fff,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em #fff,4px 12px 0 0.020em #fff,5px 12px 0 0.020em #fff,6px 12px 0 0.020em,7px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,9px 12px 0 0.020em #fff,10px 12px 0 0.020em #fff,11px 12px 0 0.020em,12px 12px 0 0.020em #fff,13px 12px 0 0.020em #fff,14px 12px 0 0.020em #fff,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em,4px 13px 0 0.020em #fff,5px 13px 0 0.020em #fff,6px 13px 0 0.020em #fff,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em #fff,12px 13px 0 0.020em #fff,13px 13px 0 0.020em #fff,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em,4px 14px 0 0.020em,5px 14px 0 0.020em #fff,6px 14px 0 0.020em #fff,7px 14px 0 0.020em #fff,8px 14px 0 0.020em #fff,9px 14px 0 0.020em #fff,10px 14px 0 0.020em #fff,11px 14px 0 0.020em #fff,12px 14px 0 0.020em #fff,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,16px 14px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em #fff,8px 15px 0 0.020em #fff,9px 15px 0 0.020em #fff,10px 15px 0 0.020em #fff,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em;\n }\n}\n\n.nes-icon.whatsapp::before {\n width: 1px;\n height: 1px;\n color: #00ba37;\n box-shadow: 4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,3px 2px,4px 2px,5px 2px,6px 2px #fff,7px 2px #fff,8px 2px #fff,9px 2px #fff,10px 2px #fff,11px 2px #fff,12px 2px #fff,13px 2px,14px 2px,15px 2px,2px 3px,3px 3px,4px 3px,5px 3px #fff,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px #fff,14px 3px,15px 3px,16px 3px,2px 4px,3px 4px,4px 4px #fff,5px 4px,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px #fff,15px 4px,16px 4px,2px 5px,3px 5px,4px 5px #fff,5px 5px,6px 5px #fff,7px 5px #fff,8px 5px,9px 5px,10px 5px,11px 5px,12px 5px,13px 5px,14px 5px #fff,15px 5px,16px 5px,2px 6px,3px 6px #fff,4px 6px,5px 6px,6px 6px #fff,7px 6px #fff,8px 6px,9px 6px,10px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px #fff,16px 6px,2px 7px,3px 7px #fff,4px 7px,5px 7px,6px 7px #fff,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px,12px 7px,13px 7px,14px 7px,15px 7px #fff,16px 7px,2px 8px,3px 8px #fff,4px 8px,5px 8px,6px 8px,7px 8px #fff,8px 8px #fff,9px 8px,10px 8px,11px 8px,12px 8px,13px 8px,14px 8px,15px 8px #fff,16px 8px,2px 9px,3px 9px #fff,4px 9px,5px 9px,6px 9px,7px 9px,8px 9px #fff,9px 9px #fff,10px 9px,11px 9px,12px 9px,13px 9px,14px 9px,15px 9px #fff,16px 9px,2px 10px,3px 10px #fff,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px,9px 10px #fff,10px 10px,11px 10px #fff,12px 10px #fff,13px 10px,14px 10px,15px 10px #fff,16px 10px,2px 11px,3px 11px,4px 11px #fff,5px 11px,6px 11px,7px 11px,8px 11px,9px 11px,10px 11px #fff,11px 11px #fff,12px 11px #fff,13px 11px,14px 11px #fff,15px 11px,16px 11px,2px 12px,3px 12px,4px 12px #fff,5px 12px,6px 12px,7px 12px,8px 12px,9px 12px,10px 12px,11px 12px,12px 12px,13px 12px,14px 12px #fff,15px 12px,16px 12px,2px 13px,3px 13px #fff,4px 13px,5px 13px #fff,6px 13px,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px,12px 13px,13px 13px #fff,14px 13px,15px 13px,16px 13px,2px 14px,3px 14px #fff,4px 14px #fff,5px 14px,6px 14px #fff,7px 14px #fff,8px 14px #fff,9px 14px #fff,10px 14px #fff,11px 14px #fff,12px 14px #fff,13px 14px,14px 14px,15px 14px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px,12px 15px,13px 15px,14px 15px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.whatsapp::before {\n box-shadow: 4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em #fff,7px 2px 0 0.020em #fff,8px 2px 0 0.020em #fff,9px 2px 0 0.020em #fff,10px 2px 0 0.020em #fff,11px 2px 0 0.020em #fff,12px 2px 0 0.020em #fff,13px 2px 0 0.020em,14px 2px 0 0.020em,15px 2px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em #fff,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em #fff,14px 3px 0 0.020em,15px 3px 0 0.020em,16px 3px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em,4px 4px 0 0.020em #fff,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em #fff,15px 4px 0 0.020em,16px 4px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em,4px 5px 0 0.020em #fff,5px 5px 0 0.020em,6px 5px 0 0.020em #fff,7px 5px 0 0.020em #fff,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em #fff,15px 5px 0 0.020em,16px 5px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em #fff,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em #fff,7px 6px 0 0.020em #fff,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em #fff,16px 6px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em #fff,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em #fff,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em #fff,16px 7px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em #fff,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em #fff,8px 8px 0 0.020em #fff,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em,15px 8px 0 0.020em #fff,16px 8px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em #fff,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em #fff,16px 9px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em #fff,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em #fff,10px 10px 0 0.020em,11px 10px 0 0.020em #fff,12px 10px 0 0.020em #fff,13px 10px 0 0.020em,14px 10px 0 0.020em,15px 10px 0 0.020em #fff,16px 10px 0 0.020em,2px 11px 0 0.020em,3px 11px 0 0.020em,4px 11px 0 0.020em #fff,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em #fff,11px 11px 0 0.020em #fff,12px 11px 0 0.020em #fff,13px 11px 0 0.020em,14px 11px 0 0.020em #fff,15px 11px 0 0.020em,16px 11px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em,4px 12px 0 0.020em #fff,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em #fff,15px 12px 0 0.020em,16px 12px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em #fff,4px 13px 0 0.020em,5px 13px 0 0.020em #fff,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em #fff,14px 13px 0 0.020em,15px 13px 0 0.020em,16px 13px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em #fff,4px 14px 0 0.020em #fff,5px 14px 0 0.020em,6px 14px 0 0.020em #fff,7px 14px 0 0.020em #fff,8px 14px 0 0.020em #fff,9px 14px 0 0.020em #fff,10px 14px 0 0.020em #fff,11px 14px 0 0.020em #fff,12px 14px 0 0.020em #fff,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em;\n }\n}\n\n.nes-icon.gmail::before {\n width: 1px;\n height: 1px;\n color: #eeecec;\n box-shadow: 2px 3px #fd2b2b,3px 3px,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px,14px 3px,15px 3px #fd2b2b,1px 4px #fd2b2b,2px 4px #fd2b2b,3px 4px #fd2b2b,4px 4px,5px 4px,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px #fd2b2b,15px 4px #fd2b2b,16px 4px #fd2b2b,1px 5px #fd2b2b,2px 5px #fd2b2b,3px 5px #fd2b2b,4px 5px #fd2b2b,5px 5px,6px 5px,7px 5px,8px 5px,9px 5px,10px 5px,11px 5px,12px 5px,13px 5px #fd2b2b,14px 5px #fd2b2b,15px 5px #fd2b2b,16px 5px #fd2b2b,1px 6px #fd2b2b,2px 6px #fd2b2b,3px 6px,4px 6px #fd2b2b,5px 6px #fd2b2b,6px 6px,7px 6px,8px 6px,9px 6px,10px 6px,11px 6px,12px 6px #fd2b2b,13px 6px #fd2b2b,14px 6px,15px 6px #fd2b2b,16px 6px #fd2b2b,1px 7px #fd2b2b,2px 7px #fd2b2b,3px 7px,4px 7px,5px 7px #fd2b2b,6px 7px #fd2b2b,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px #fd2b2b,12px 7px #fd2b2b,13px 7px,14px 7px,15px 7px #fd2b2b,16px 7px #fd2b2b,1px 8px #fd2b2b,2px 8px #fd2b2b,3px 8px,4px 8px,5px 8px,6px 8px #fd2b2b,7px 8px #fd2b2b,8px 8px,9px 8px,10px 8px #fd2b2b,11px 8px #fd2b2b,12px 8px,13px 8px,14px 8px,15px 8px #fd2b2b,16px 8px #fd2b2b,1px 9px #fd2b2b,2px 9px #fd2b2b,3px 9px,4px 9px,5px 9px,6px 9px,7px 9px #fd2b2b,8px 9px #fd2b2b,9px 9px #fd2b2b,10px 9px #fd2b2b,11px 9px,12px 9px,13px 9px,14px 9px,15px 9px #fd2b2b,16px 9px #fd2b2b,1px 10px #fd2b2b,2px 10px #fd2b2b,3px 10px,4px 10px,5px 10px,6px 10px,7px 10px,8px 10px #fd2b2b,9px 10px #fd2b2b,10px 10px,11px 10px,12px 10px,13px 10px,14px 10px,15px 10px #fd2b2b,16px 10px #fd2b2b,1px 11px #fd2b2b,2px 11px #fd2b2b,3px 11px,4px 11px,5px 11px,6px 11px,7px 11px,8px 11px,9px 11px,10px 11px,11px 11px,12px 11px,13px 11px,14px 11px,15px 11px #fd2b2b,16px 11px #fd2b2b,1px 12px #fd2b2b,2px 12px #fd2b2b,3px 12px,4px 12px,5px 12px,6px 12px,7px 12px,8px 12px,9px 12px,10px 12px,11px 12px,12px 12px,13px 12px,14px 12px,15px 12px #fd2b2b,16px 12px #fd2b2b,1px 13px #fd2b2b,2px 13px #fd2b2b,3px 13px,4px 13px,5px 13px,6px 13px,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px,12px 13px,13px 13px,14px 13px,15px 13px #fd2b2b,16px 13px #fd2b2b,2px 14px #fd2b2b,3px 14px,4px 14px,5px 14px,6px 14px,7px 14px,8px 14px,9px 14px,10px 14px,11px 14px,12px 14px,13px 14px,14px 14px,15px 14px #fd2b2b;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.gmail::before {\n box-shadow: 2px 3px 0 0.020em #fd2b2b,3px 3px 0 0.020em,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em #fd2b2b,1px 4px 0 0.020em #fd2b2b,2px 4px 0 0.020em #fd2b2b,3px 4px 0 0.020em #fd2b2b,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em #fd2b2b,15px 4px 0 0.020em #fd2b2b,16px 4px 0 0.020em #fd2b2b,1px 5px 0 0.020em #fd2b2b,2px 5px 0 0.020em #fd2b2b,3px 5px 0 0.020em #fd2b2b,4px 5px 0 0.020em #fd2b2b,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em #fd2b2b,14px 5px 0 0.020em #fd2b2b,15px 5px 0 0.020em #fd2b2b,16px 5px 0 0.020em #fd2b2b,1px 6px 0 0.020em #fd2b2b,2px 6px 0 0.020em #fd2b2b,3px 6px 0 0.020em,4px 6px 0 0.020em #fd2b2b,5px 6px 0 0.020em #fd2b2b,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em #fd2b2b,13px 6px 0 0.020em #fd2b2b,14px 6px 0 0.020em,15px 6px 0 0.020em #fd2b2b,16px 6px 0 0.020em #fd2b2b,1px 7px 0 0.020em #fd2b2b,2px 7px 0 0.020em #fd2b2b,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em #fd2b2b,6px 7px 0 0.020em #fd2b2b,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em #fd2b2b,12px 7px 0 0.020em #fd2b2b,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em #fd2b2b,16px 7px 0 0.020em #fd2b2b,1px 8px 0 0.020em #fd2b2b,2px 8px 0 0.020em #fd2b2b,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em #fd2b2b,7px 8px 0 0.020em #fd2b2b,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em #fd2b2b,11px 8px 0 0.020em #fd2b2b,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em,15px 8px 0 0.020em #fd2b2b,16px 8px 0 0.020em #fd2b2b,1px 9px 0 0.020em #fd2b2b,2px 9px 0 0.020em #fd2b2b,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em #fd2b2b,8px 9px 0 0.020em #fd2b2b,9px 9px 0 0.020em #fd2b2b,10px 9px 0 0.020em #fd2b2b,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em #fd2b2b,16px 9px 0 0.020em #fd2b2b,1px 10px 0 0.020em #fd2b2b,2px 10px 0 0.020em #fd2b2b,3px 10px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em,8px 10px 0 0.020em #fd2b2b,9px 10px 0 0.020em #fd2b2b,10px 10px 0 0.020em,11px 10px 0 0.020em,12px 10px 0 0.020em,13px 10px 0 0.020em,14px 10px 0 0.020em,15px 10px 0 0.020em #fd2b2b,16px 10px 0 0.020em #fd2b2b,1px 11px 0 0.020em #fd2b2b,2px 11px 0 0.020em #fd2b2b,3px 11px 0 0.020em,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em #fd2b2b,16px 11px 0 0.020em #fd2b2b,1px 12px 0 0.020em #fd2b2b,2px 12px 0 0.020em #fd2b2b,3px 12px 0 0.020em,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em #fd2b2b,16px 12px 0 0.020em #fd2b2b,1px 13px 0 0.020em #fd2b2b,2px 13px 0 0.020em #fd2b2b,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em #fd2b2b,16px 13px 0 0.020em #fd2b2b,2px 14px 0 0.020em #fd2b2b,3px 14px 0 0.020em,4px 14px 0 0.020em,5px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em,15px 14px 0 0.020em #fd2b2b;\n }\n}\n\n.nes-icon.linkedin::before {\n width: 1px;\n height: 1px;\n color: #2577b9;\n box-shadow: 2px 1px,3px 1px,4px 1px,5px 1px,6px 1px,7px 1px,8px 1px,9px 1px,10px 1px,11px 1px,12px 1px,13px 1px,14px 1px,15px 1px,1px 2px,2px 2px,3px 2px,4px 2px,5px 2px,6px 2px,7px 2px,8px 2px,9px 2px,10px 2px,11px 2px,12px 2px,13px 2px,14px 2px,15px 2px,16px 2px,1px 3px,2px 3px,3px 3px #fff,4px 3px #fff,5px 3px #fff,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px,14px 3px,15px 3px,16px 3px,1px 4px,2px 4px,3px 4px #fff,4px 4px #fff,5px 4px #fff,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px,13px 4px,14px 4px,15px 4px,16px 4px,1px 5px,2px 5px,3px 5px #fff,4px 5px #fff,5px 5px #fff,6px 5px,7px 5px,8px 5px,9px 5px,10px 5px,11px 5px,12px 5px,13px 5px,14px 5px,15px 5px,16px 5px,1px 6px,2px 6px,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px,8px 6px,9px 6px,10px 6px,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px,16px 6px,1px 7px,2px 7px,3px 7px #fff,4px 7px #fff,5px 7px #fff,6px 7px,7px 7px #fff,8px 7px #fff,9px 7px #fff,10px 7px,11px 7px #fff,12px 7px #fff,13px 7px #fff,14px 7px,15px 7px,16px 7px,1px 8px,2px 8px,3px 8px #fff,4px 8px #fff,5px 8px #fff,6px 8px,7px 8px #fff,8px 8px #fff,9px 8px #fff,10px 8px #fff,11px 8px #fff,12px 8px #fff,13px 8px #fff,14px 8px #fff,15px 8px,16px 8px,1px 9px,2px 9px,3px 9px #fff,4px 9px #fff,5px 9px #fff,6px 9px,7px 9px #fff,8px 9px #fff,9px 9px #fff,10px 9px #fff,11px 9px #fff,12px 9px #fff,13px 9px #fff,14px 9px #fff,15px 9px,16px 9px,1px 10px,2px 10px,3px 10px #fff,4px 10px #fff,5px 10px #fff,6px 10px,7px 10px #fff,8px 10px #fff,9px 10px #fff,10px 10px #fff,11px 10px,12px 10px #fff,13px 10px #fff,14px 10px #fff,15px 10px,16px 10px,1px 11px,2px 11px,3px 11px #fff,4px 11px #fff,5px 11px #fff,6px 11px,7px 11px #fff,8px 11px #fff,9px 11px #fff,10px 11px,11px 11px,12px 11px #fff,13px 11px #fff,14px 11px #fff,15px 11px,16px 11px,1px 12px,2px 12px,3px 12px #fff,4px 12px #fff,5px 12px #fff,6px 12px,7px 12px #fff,8px 12px #fff,9px 12px #fff,10px 12px,11px 12px,12px 12px #fff,13px 12px #fff,14px 12px #fff,15px 12px,16px 12px,1px 13px,2px 13px,3px 13px #fff,4px 13px #fff,5px 13px #fff,6px 13px,7px 13px #fff,8px 13px #fff,9px 13px #fff,10px 13px,11px 13px,12px 13px #fff,13px 13px #fff,14px 13px #fff,15px 13px,16px 13px,1px 14px,2px 14px,3px 14px #fff,4px 14px #fff,5px 14px #fff,6px 14px,7px 14px #fff,8px 14px #fff,9px 14px #fff,10px 14px,11px 14px,12px 14px #fff,13px 14px #fff,14px 14px #fff,15px 14px,16px 14px,1px 15px,2px 15px,3px 15px,4px 15px,5px 15px,6px 15px,7px 15px,8px 15px,9px 15px,10px 15px,11px 15px,12px 15px,13px 15px,14px 15px,15px 15px,16px 15px,2px 16px,3px 16px,4px 16px,5px 16px,6px 16px,7px 16px,8px 16px,9px 16px,10px 16px,11px 16px,12px 16px,13px 16px,14px 16px,15px 16px;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.linkedin::before {\n box-shadow: 2px 1px 0 0.020em,3px 1px 0 0.020em,4px 1px 0 0.020em,5px 1px 0 0.020em,6px 1px 0 0.020em,7px 1px 0 0.020em,8px 1px 0 0.020em,9px 1px 0 0.020em,10px 1px 0 0.020em,11px 1px 0 0.020em,12px 1px 0 0.020em,13px 1px 0 0.020em,14px 1px 0 0.020em,15px 1px 0 0.020em,1px 2px 0 0.020em,2px 2px 0 0.020em,3px 2px 0 0.020em,4px 2px 0 0.020em,5px 2px 0 0.020em,6px 2px 0 0.020em,7px 2px 0 0.020em,8px 2px 0 0.020em,9px 2px 0 0.020em,10px 2px 0 0.020em,11px 2px 0 0.020em,12px 2px 0 0.020em,13px 2px 0 0.020em,14px 2px 0 0.020em,15px 2px 0 0.020em,16px 2px 0 0.020em,1px 3px 0 0.020em,2px 3px 0 0.020em,3px 3px 0 0.020em #fff,4px 3px 0 0.020em #fff,5px 3px 0 0.020em #fff,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em,15px 3px 0 0.020em,16px 3px 0 0.020em,1px 4px 0 0.020em,2px 4px 0 0.020em,3px 4px 0 0.020em #fff,4px 4px 0 0.020em #fff,5px 4px 0 0.020em #fff,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em,14px 4px 0 0.020em,15px 4px 0 0.020em,16px 4px 0 0.020em,1px 5px 0 0.020em,2px 5px 0 0.020em,3px 5px 0 0.020em #fff,4px 5px 0 0.020em #fff,5px 5px 0 0.020em #fff,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em,14px 5px 0 0.020em,15px 5px 0 0.020em,16px 5px 0 0.020em,1px 6px 0 0.020em,2px 6px 0 0.020em,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em,16px 6px 0 0.020em,1px 7px 0 0.020em,2px 7px 0 0.020em,3px 7px 0 0.020em #fff,4px 7px 0 0.020em #fff,5px 7px 0 0.020em #fff,6px 7px 0 0.020em,7px 7px 0 0.020em #fff,8px 7px 0 0.020em #fff,9px 7px 0 0.020em #fff,10px 7px 0 0.020em,11px 7px 0 0.020em #fff,12px 7px 0 0.020em #fff,13px 7px 0 0.020em #fff,14px 7px 0 0.020em,15px 7px 0 0.020em,16px 7px 0 0.020em,1px 8px 0 0.020em,2px 8px 0 0.020em,3px 8px 0 0.020em #fff,4px 8px 0 0.020em #fff,5px 8px 0 0.020em #fff,6px 8px 0 0.020em,7px 8px 0 0.020em #fff,8px 8px 0 0.020em #fff,9px 8px 0 0.020em #fff,10px 8px 0 0.020em #fff,11px 8px 0 0.020em #fff,12px 8px 0 0.020em #fff,13px 8px 0 0.020em #fff,14px 8px 0 0.020em #fff,15px 8px 0 0.020em,16px 8px 0 0.020em,1px 9px 0 0.020em,2px 9px 0 0.020em,3px 9px 0 0.020em #fff,4px 9px 0 0.020em #fff,5px 9px 0 0.020em #fff,6px 9px 0 0.020em,7px 9px 0 0.020em #fff,8px 9px 0 0.020em #fff,9px 9px 0 0.020em #fff,10px 9px 0 0.020em #fff,11px 9px 0 0.020em #fff,12px 9px 0 0.020em #fff,13px 9px 0 0.020em #fff,14px 9px 0 0.020em #fff,15px 9px 0 0.020em,16px 9px 0 0.020em,1px 10px 0 0.020em,2px 10px 0 0.020em,3px 10px 0 0.020em #fff,4px 10px 0 0.020em #fff,5px 10px 0 0.020em #fff,6px 10px 0 0.020em,7px 10px 0 0.020em #fff,8px 10px 0 0.020em #fff,9px 10px 0 0.020em #fff,10px 10px 0 0.020em #fff,11px 10px 0 0.020em,12px 10px 0 0.020em #fff,13px 10px 0 0.020em #fff,14px 10px 0 0.020em #fff,15px 10px 0 0.020em,16px 10px 0 0.020em,1px 11px 0 0.020em,2px 11px 0 0.020em,3px 11px 0 0.020em #fff,4px 11px 0 0.020em #fff,5px 11px 0 0.020em #fff,6px 11px 0 0.020em,7px 11px 0 0.020em #fff,8px 11px 0 0.020em #fff,9px 11px 0 0.020em #fff,10px 11px 0 0.020em,11px 11px 0 0.020em,12px 11px 0 0.020em #fff,13px 11px 0 0.020em #fff,14px 11px 0 0.020em #fff,15px 11px 0 0.020em,16px 11px 0 0.020em,1px 12px 0 0.020em,2px 12px 0 0.020em,3px 12px 0 0.020em #fff,4px 12px 0 0.020em #fff,5px 12px 0 0.020em #fff,6px 12px 0 0.020em,7px 12px 0 0.020em #fff,8px 12px 0 0.020em #fff,9px 12px 0 0.020em #fff,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em #fff,13px 12px 0 0.020em #fff,14px 12px 0 0.020em #fff,15px 12px 0 0.020em,16px 12px 0 0.020em,1px 13px 0 0.020em,2px 13px 0 0.020em,3px 13px 0 0.020em #fff,4px 13px 0 0.020em #fff,5px 13px 0 0.020em #fff,6px 13px 0 0.020em,7px 13px 0 0.020em #fff,8px 13px 0 0.020em #fff,9px 13px 0 0.020em #fff,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em #fff,13px 13px 0 0.020em #fff,14px 13px 0 0.020em #fff,15px 13px 0 0.020em,16px 13px 0 0.020em,1px 14px 0 0.020em,2px 14px 0 0.020em,3px 14px 0 0.020em #fff,4px 14px 0 0.020em #fff,5px 14px 0 0.020em #fff,6px 14px 0 0.020em,7px 14px 0 0.020em #fff,8px 14px 0 0.020em #fff,9px 14px 0 0.020em #fff,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em #fff,13px 14px 0 0.020em #fff,14px 14px 0 0.020em #fff,15px 14px 0 0.020em,16px 14px 0 0.020em,1px 15px 0 0.020em,2px 15px 0 0.020em,3px 15px 0 0.020em,4px 15px 0 0.020em,5px 15px 0 0.020em,6px 15px 0 0.020em,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em,11px 15px 0 0.020em,12px 15px 0 0.020em,13px 15px 0 0.020em,14px 15px 0 0.020em,15px 15px 0 0.020em,16px 15px 0 0.020em,2px 16px 0 0.020em,3px 16px 0 0.020em,4px 16px 0 0.020em,5px 16px 0 0.020em,6px 16px 0 0.020em,7px 16px 0 0.020em,8px 16px 0 0.020em,9px 16px 0 0.020em,10px 16px 0 0.020em,11px 16px 0 0.020em,12px 16px 0 0.020em,13px 16px 0 0.020em,14px 16px 0 0.020em,15px 16px 0 0.020em;\n }\n}\n\n.nes-icon.instagram::before {\n width: 1px;\n height: 1px;\n color: #fff;\n box-shadow: 3px 1px #8005c8,4px 1px #8005c8,5px 1px #8005c8,6px 1px #8005c8,7px 1px #8005c8,8px 1px #8005c8,9px 1px #8005c8,10px 1px #8005c8,11px 1px #8005c8,12px 1px #8005c8,13px 1px #8005c8,14px 1px #8005c8,2px 2px #8005c8,3px 2px #8005c8,4px 2px #8005c8,5px 2px #8005c8,6px 2px #8005c8,7px 2px #8005c8,8px 2px #8005c8,9px 2px #8005c8,10px 2px #8005c8,11px 2px #8005c8,12px 2px #8005c8,13px 2px #8005c8,14px 2px #8005c8,15px 2px #8005c8,1px 3px #8005c8,2px 3px #8005c8,3px 3px #8005c8,4px 3px,5px 3px,6px 3px,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px,13px 3px,14px 3px #8005c8,15px 3px #8005c8,16px 3px #8005c8,1px 4px #8005c8,2px 4px #8005c8,3px 4px,4px 4px,5px 4px,6px 4px,7px 4px,8px 4px,9px 4px,10px 4px,11px 4px,12px 4px #8005c8,13px 4px #8005c8,14px 4px,15px 4px #8005c8,16px 4px #8005c8,1px 5px #8005c8,2px 5px #8005c8,3px 5px,4px 5px,5px 5px,6px 5px,7px 5px,8px 5px,9px 5px,10px 5px,11px 5px,12px 5px #8005c8,13px 5px #8005c8,14px 5px,15px 5px #8005c8,16px 5px #8005c8,1px 6px #8005c8,2px 6px #8005c8,3px 6px,4px 6px,5px 6px,6px 6px,7px 6px #8005c8,8px 6px #8005c8,9px 6px #8005c8,10px 6px #8005c8,11px 6px,12px 6px,13px 6px,14px 6px,15px 6px #8005c8,16px 6px #8005c8,1px 7px #d40075,2px 7px #8005c8,3px 7px,4px 7px,5px 7px,6px 7px #8005c8,7px 7px,8px 7px,9px 7px,10px 7px,11px 7px #8005c8,12px 7px,13px 7px,14px 7px,15px 7px #8005c8,16px 7px #d40075,1px 8px #d40075,2px 8px #d40075,3px 8px,4px 8px,5px 8px,6px 8px #8005c8,7px 8px,8px 8px,9px 8px,10px 8px,11px 8px #8005c8,12px 8px,13px 8px,14px 8px,15px 8px #d40075,16px 8px #d40075,1px 9px #d40075,2px 9px #d40075,3px 9px,4px 9px,5px 9px,6px 9px #d40075,7px 9px,8px 9px,9px 9px,10px 9px,11px 9px #d40075,12px 9px,13px 9px,14px 9px,15px 9px #d40075,16px 9px #d40075,1px 10px #d40075,2px 10px #d40075,3px 10px,4px 10px,5px 10px,6px 10px #d40075,7px 10px,8px 10px,9px 10px,10px 10px,11px 10px #d40075,12px 10px,13px 10px,14px 10px,15px 10px #d40075,16px 10px #d40075,1px 11px #e98c25,2px 11px #e98c25,3px 11px,4px 11px,5px 11px,6px 11px,7px 11px #d40075,8px 11px #d40075,9px 11px #d40075,10px 11px #d40075,11px 11px,12px 11px,13px 11px,14px 11px,15px 11px #d40075,16px 11px #d40075,1px 12px #e98c25,2px 12px #e98c25,3px 12px,4px 12px,5px 12px,6px 12px,7px 12px,8px 12px,9px 12px,10px 12px,11px 12px,12px 12px,13px 12px,14px 12px,15px 12px #d40075,16px 12px #d40075,1px 13px #e98c25,2px 13px #e98c25,3px 13px,4px 13px,5px 13px,6px 13px,7px 13px,8px 13px,9px 13px,10px 13px,11px 13px,12px 13px,13px 13px,14px 13px,15px 13px #d84646,16px 13px #d84646,1px 14px #e98c25,2px 14px #e98c25,3px 14px #e98c25,4px 14px,5px 14px,6px 14px,7px 14px,8px 14px,9px 14px,10px 14px,11px 14px,12px 14px,13px 14px,14px 14px #d84646,15px 14px #d84646,16px 14px #d84646,2px 15px #e98c25,3px 15px #e98c25,4px 15px #e98c25,5px 15px #e98c25,6px 15px #e98c25,7px 15px #e98c25,8px 15px #e98c25,9px 15px #e98c25,10px 15px #d84646,11px 15px #d84646,12px 15px #d84646,13px 15px #d84646,14px 15px #d84646,15px 15px #d84646,3px 16px #e98c25,4px 16px #e98c25,5px 16px #e98c25,6px 16px #e98c25,7px 16px #e98c25,8px 16px #e98c25,9px 16px #d84646,10px 16px #d84646,11px 16px #d84646,12px 16px #d84646,13px 16px #d84646,14px 16px #d84646;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.instagram::before {\n box-shadow: 3px 1px 0 0.020em #8005c8,4px 1px 0 0.020em #8005c8,5px 1px 0 0.020em #8005c8,6px 1px 0 0.020em #8005c8,7px 1px 0 0.020em #8005c8,8px 1px 0 0.020em #8005c8,9px 1px 0 0.020em #8005c8,10px 1px 0 0.020em #8005c8,11px 1px 0 0.020em #8005c8,12px 1px 0 0.020em #8005c8,13px 1px 0 0.020em #8005c8,14px 1px 0 0.020em #8005c8,2px 2px 0 0.020em #8005c8,3px 2px 0 0.020em #8005c8,4px 2px 0 0.020em #8005c8,5px 2px 0 0.020em #8005c8,6px 2px 0 0.020em #8005c8,7px 2px 0 0.020em #8005c8,8px 2px 0 0.020em #8005c8,9px 2px 0 0.020em #8005c8,10px 2px 0 0.020em #8005c8,11px 2px 0 0.020em #8005c8,12px 2px 0 0.020em #8005c8,13px 2px 0 0.020em #8005c8,14px 2px 0 0.020em #8005c8,15px 2px 0 0.020em #8005c8,1px 3px 0 0.020em #8005c8,2px 3px 0 0.020em #8005c8,3px 3px 0 0.020em #8005c8,4px 3px 0 0.020em,5px 3px 0 0.020em,6px 3px 0 0.020em,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em,13px 3px 0 0.020em,14px 3px 0 0.020em #8005c8,15px 3px 0 0.020em #8005c8,16px 3px 0 0.020em #8005c8,1px 4px 0 0.020em #8005c8,2px 4px 0 0.020em #8005c8,3px 4px 0 0.020em,4px 4px 0 0.020em,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em,8px 4px 0 0.020em,9px 4px 0 0.020em,10px 4px 0 0.020em,11px 4px 0 0.020em,12px 4px 0 0.020em #8005c8,13px 4px 0 0.020em #8005c8,14px 4px 0 0.020em,15px 4px 0 0.020em #8005c8,16px 4px 0 0.020em #8005c8,1px 5px 0 0.020em #8005c8,2px 5px 0 0.020em #8005c8,3px 5px 0 0.020em,4px 5px 0 0.020em,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em,11px 5px 0 0.020em,12px 5px 0 0.020em #8005c8,13px 5px 0 0.020em #8005c8,14px 5px 0 0.020em,15px 5px 0 0.020em #8005c8,16px 5px 0 0.020em #8005c8,1px 6px 0 0.020em #8005c8,2px 6px 0 0.020em #8005c8,3px 6px 0 0.020em,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em #8005c8,8px 6px 0 0.020em #8005c8,9px 6px 0 0.020em #8005c8,10px 6px 0 0.020em #8005c8,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em,15px 6px 0 0.020em #8005c8,16px 6px 0 0.020em #8005c8,1px 7px 0 0.020em #d40075,2px 7px 0 0.020em #8005c8,3px 7px 0 0.020em,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em #8005c8,7px 7px 0 0.020em,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em,11px 7px 0 0.020em #8005c8,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em,15px 7px 0 0.020em #8005c8,16px 7px 0 0.020em #d40075,1px 8px 0 0.020em #d40075,2px 8px 0 0.020em #d40075,3px 8px 0 0.020em,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em #8005c8,7px 8px 0 0.020em,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em,11px 8px 0 0.020em #8005c8,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em,15px 8px 0 0.020em #d40075,16px 8px 0 0.020em #d40075,1px 9px 0 0.020em #d40075,2px 9px 0 0.020em #d40075,3px 9px 0 0.020em,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em #d40075,7px 9px 0 0.020em,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em,11px 9px 0 0.020em #d40075,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em,15px 9px 0 0.020em #d40075,16px 9px 0 0.020em #d40075,1px 10px 0 0.020em #d40075,2px 10px 0 0.020em #d40075,3px 10px 0 0.020em,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em #d40075,7px 10px 0 0.020em,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em,11px 10px 0 0.020em #d40075,12px 10px 0 0.020em,13px 10px 0 0.020em,14px 10px 0 0.020em,15px 10px 0 0.020em #d40075,16px 10px 0 0.020em #d40075,1px 11px 0 0.020em #e98c25,2px 11px 0 0.020em #e98c25,3px 11px 0 0.020em,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em #d40075,8px 11px 0 0.020em #d40075,9px 11px 0 0.020em #d40075,10px 11px 0 0.020em #d40075,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em,15px 11px 0 0.020em #d40075,16px 11px 0 0.020em #d40075,1px 12px 0 0.020em #e98c25,2px 12px 0 0.020em #e98c25,3px 12px 0 0.020em,4px 12px 0 0.020em,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em,14px 12px 0 0.020em,15px 12px 0 0.020em #d40075,16px 12px 0 0.020em #d40075,1px 13px 0 0.020em #e98c25,2px 13px 0 0.020em #e98c25,3px 13px 0 0.020em,4px 13px 0 0.020em,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em,8px 13px 0 0.020em,9px 13px 0 0.020em,10px 13px 0 0.020em,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em,14px 13px 0 0.020em,15px 13px 0 0.020em #d84646,16px 13px 0 0.020em #d84646,1px 14px 0 0.020em #e98c25,2px 14px 0 0.020em #e98c25,3px 14px 0 0.020em #e98c25,4px 14px 0 0.020em,5px 14px 0 0.020em,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em,13px 14px 0 0.020em,14px 14px 0 0.020em #d84646,15px 14px 0 0.020em #d84646,16px 14px 0 0.020em #d84646,2px 15px 0 0.020em #e98c25,3px 15px 0 0.020em #e98c25,4px 15px 0 0.020em #e98c25,5px 15px 0 0.020em #e98c25,6px 15px 0 0.020em #e98c25,7px 15px 0 0.020em #e98c25,8px 15px 0 0.020em #e98c25,9px 15px 0 0.020em #e98c25,10px 15px 0 0.020em #d84646,11px 15px 0 0.020em #d84646,12px 15px 0 0.020em #d84646,13px 15px 0 0.020em #d84646,14px 15px 0 0.020em #d84646,15px 15px 0 0.020em #d84646,3px 16px 0 0.020em #e98c25,4px 16px 0 0.020em #e98c25,5px 16px 0 0.020em #e98c25,6px 16px 0 0.020em #e98c25,7px 16px 0 0.020em #e98c25,8px 16px 0 0.020em #e98c25,9px 16px 0 0.020em #d84646,10px 16px 0 0.020em #d84646,11px 16px 0 0.020em #d84646,12px 16px 0 0.020em #d84646,13px 16px 0 0.020em #d84646,14px 16px 0 0.020em #d84646;\n }\n}\n\n.nes-icon.coin::before {\n width: 1px;\n height: 1px;\n color: #ffc107;\n box-shadow: 6px 1px #060606,7px 1px #060606,8px 1px #060606,9px 1px #060606,10px 1px #060606,11px 1px #060606,4px 2px #060606,5px 2px #060606,6px 2px #060606,7px 2px #fff,8px 2px #fff,9px 2px #fff,10px 2px #060606,11px 2px #060606,12px 2px #060606,13px 2px #060606,3px 3px #060606,4px 3px #060606,5px 3px #fff,6px 3px #fff,7px 3px,8px 3px,9px 3px,10px 3px,11px 3px,12px 3px #060606,13px 3px #060606,3px 4px #060606,4px 4px #fff,5px 4px,6px 4px,7px 4px #fff,8px 4px #fff,9px 4px #fff,10px 4px #060606,11px 4px,12px 4px,13px 4px #060606,14px 4px #060606,2px 5px #060606,3px 5px #060606,4px 5px #fff,5px 5px,6px 5px,7px 5px #fff,8px 5px,9px 5px,10px 5px #060606,11px 5px,12px 5px,13px 5px #060606,14px 5px #060606,2px 6px #060606,3px 6px #fff,4px 6px,5px 6px,6px 6px,7px 6px #fff,8px 6px,9px 6px,10px 6px #060606,11px 6px,12px 6px,13px 6px,14px 6px #060606,15px 6px #060606,2px 7px #060606,3px 7px #fff,4px 7px,5px 7px,6px 7px,7px 7px #fff,8px 7px,9px 7px,10px 7px #060606,11px 7px,12px 7px,13px 7px,14px 7px #060606,15px 7px #060606,2px 8px #060606,3px 8px #fff,4px 8px,5px 8px,6px 8px,7px 8px #fff,8px 8px,9px 8px,10px 8px #060606,11px 8px,12px 8px,13px 8px,14px 8px #060606,15px 8px #060606,2px 9px #060606,3px 9px #fff,4px 9px,5px 9px,6px 9px,7px 9px #fff,8px 9px,9px 9px,10px 9px #060606,11px 9px,12px 9px,13px 9px,14px 9px #060606,15px 9px #060606,2px 10px #060606,3px 10px #fff,4px 10px,5px 10px,6px 10px,7px 10px #fff,8px 10px,9px 10px,10px 10px #060606,11px 10px,12px 10px,13px 10px,14px 10px #060606,15px 10px #060606,2px 11px #060606,3px 11px #fff,4px 11px,5px 11px,6px 11px,7px 11px #fff,8px 11px,9px 11px,10px 11px #060606,11px 11px,12px 11px,13px 11px,14px 11px #060606,15px 11px #060606,2px 12px #060606,3px 12px #060606,4px 12px #fff,5px 12px,6px 12px,7px 12px #fff,8px 12px,9px 12px,10px 12px #060606,11px 12px,12px 12px,13px 12px #060606,14px 12px #060606,3px 13px #060606,4px 13px #fff,5px 13px,6px 13px,7px 13px #fff,8px 13px #060606,9px 13px #060606,10px 13px #060606,11px 13px,12px 13px,13px 13px #060606,14px 13px #060606,3px 14px #060606,4px 14px #060606,5px 14px #fff,6px 14px,7px 14px,8px 14px,9px 14px,10px 14px,11px 14px,12px 14px #060606,13px 14px #060606,4px 15px #060606,5px 15px #060606,6px 15px #060606,7px 15px,8px 15px,9px 15px,10px 15px #060606,11px 15px #060606,12px 15px #060606,13px 15px #060606,6px 16px #060606,7px 16px #060606,8px 16px #060606,9px 16px #060606,10px 16px #060606,11px 16px #060606;\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-icon.coin::before {\n box-shadow: 6px 1px 0 0.020em #060606,7px 1px 0 0.020em #060606,8px 1px 0 0.020em #060606,9px 1px 0 0.020em #060606,10px 1px 0 0.020em #060606,11px 1px 0 0.020em #060606,4px 2px 0 0.020em #060606,5px 2px 0 0.020em #060606,6px 2px 0 0.020em #060606,7px 2px 0 0.020em #fff,8px 2px 0 0.020em #fff,9px 2px 0 0.020em #fff,10px 2px 0 0.020em #060606,11px 2px 0 0.020em #060606,12px 2px 0 0.020em #060606,13px 2px 0 0.020em #060606,3px 3px 0 0.020em #060606,4px 3px 0 0.020em #060606,5px 3px 0 0.020em #fff,6px 3px 0 0.020em #fff,7px 3px 0 0.020em,8px 3px 0 0.020em,9px 3px 0 0.020em,10px 3px 0 0.020em,11px 3px 0 0.020em,12px 3px 0 0.020em #060606,13px 3px 0 0.020em #060606,3px 4px 0 0.020em #060606,4px 4px 0 0.020em #fff,5px 4px 0 0.020em,6px 4px 0 0.020em,7px 4px 0 0.020em #fff,8px 4px 0 0.020em #fff,9px 4px 0 0.020em #fff,10px 4px 0 0.020em #060606,11px 4px 0 0.020em,12px 4px 0 0.020em,13px 4px 0 0.020em #060606,14px 4px 0 0.020em #060606,2px 5px 0 0.020em #060606,3px 5px 0 0.020em #060606,4px 5px 0 0.020em #fff,5px 5px 0 0.020em,6px 5px 0 0.020em,7px 5px 0 0.020em #fff,8px 5px 0 0.020em,9px 5px 0 0.020em,10px 5px 0 0.020em #060606,11px 5px 0 0.020em,12px 5px 0 0.020em,13px 5px 0 0.020em #060606,14px 5px 0 0.020em #060606,2px 6px 0 0.020em #060606,3px 6px 0 0.020em #fff,4px 6px 0 0.020em,5px 6px 0 0.020em,6px 6px 0 0.020em,7px 6px 0 0.020em #fff,8px 6px 0 0.020em,9px 6px 0 0.020em,10px 6px 0 0.020em #060606,11px 6px 0 0.020em,12px 6px 0 0.020em,13px 6px 0 0.020em,14px 6px 0 0.020em #060606,15px 6px 0 0.020em #060606,2px 7px 0 0.020em #060606,3px 7px 0 0.020em #fff,4px 7px 0 0.020em,5px 7px 0 0.020em,6px 7px 0 0.020em,7px 7px 0 0.020em #fff,8px 7px 0 0.020em,9px 7px 0 0.020em,10px 7px 0 0.020em #060606,11px 7px 0 0.020em,12px 7px 0 0.020em,13px 7px 0 0.020em,14px 7px 0 0.020em #060606,15px 7px 0 0.020em #060606,2px 8px 0 0.020em #060606,3px 8px 0 0.020em #fff,4px 8px 0 0.020em,5px 8px 0 0.020em,6px 8px 0 0.020em,7px 8px 0 0.020em #fff,8px 8px 0 0.020em,9px 8px 0 0.020em,10px 8px 0 0.020em #060606,11px 8px 0 0.020em,12px 8px 0 0.020em,13px 8px 0 0.020em,14px 8px 0 0.020em #060606,15px 8px 0 0.020em #060606,2px 9px 0 0.020em #060606,3px 9px 0 0.020em #fff,4px 9px 0 0.020em,5px 9px 0 0.020em,6px 9px 0 0.020em,7px 9px 0 0.020em #fff,8px 9px 0 0.020em,9px 9px 0 0.020em,10px 9px 0 0.020em #060606,11px 9px 0 0.020em,12px 9px 0 0.020em,13px 9px 0 0.020em,14px 9px 0 0.020em #060606,15px 9px 0 0.020em #060606,2px 10px 0 0.020em #060606,3px 10px 0 0.020em #fff,4px 10px 0 0.020em,5px 10px 0 0.020em,6px 10px 0 0.020em,7px 10px 0 0.020em #fff,8px 10px 0 0.020em,9px 10px 0 0.020em,10px 10px 0 0.020em #060606,11px 10px 0 0.020em,12px 10px 0 0.020em,13px 10px 0 0.020em,14px 10px 0 0.020em #060606,15px 10px 0 0.020em #060606,2px 11px 0 0.020em #060606,3px 11px 0 0.020em #fff,4px 11px 0 0.020em,5px 11px 0 0.020em,6px 11px 0 0.020em,7px 11px 0 0.020em #fff,8px 11px 0 0.020em,9px 11px 0 0.020em,10px 11px 0 0.020em #060606,11px 11px 0 0.020em,12px 11px 0 0.020em,13px 11px 0 0.020em,14px 11px 0 0.020em #060606,15px 11px 0 0.020em #060606,2px 12px 0 0.020em #060606,3px 12px 0 0.020em #060606,4px 12px 0 0.020em #fff,5px 12px 0 0.020em,6px 12px 0 0.020em,7px 12px 0 0.020em #fff,8px 12px 0 0.020em,9px 12px 0 0.020em,10px 12px 0 0.020em #060606,11px 12px 0 0.020em,12px 12px 0 0.020em,13px 12px 0 0.020em #060606,14px 12px 0 0.020em #060606,3px 13px 0 0.020em #060606,4px 13px 0 0.020em #fff,5px 13px 0 0.020em,6px 13px 0 0.020em,7px 13px 0 0.020em #fff,8px 13px 0 0.020em #060606,9px 13px 0 0.020em #060606,10px 13px 0 0.020em #060606,11px 13px 0 0.020em,12px 13px 0 0.020em,13px 13px 0 0.020em #060606,14px 13px 0 0.020em #060606,3px 14px 0 0.020em #060606,4px 14px 0 0.020em #060606,5px 14px 0 0.020em #fff,6px 14px 0 0.020em,7px 14px 0 0.020em,8px 14px 0 0.020em,9px 14px 0 0.020em,10px 14px 0 0.020em,11px 14px 0 0.020em,12px 14px 0 0.020em #060606,13px 14px 0 0.020em #060606,4px 15px 0 0.020em #060606,5px 15px 0 0.020em #060606,6px 15px 0 0.020em #060606,7px 15px 0 0.020em,8px 15px 0 0.020em,9px 15px 0 0.020em,10px 15px 0 0.020em #060606,11px 15px 0 0.020em #060606,12px 15px 0 0.020em #060606,13px 15px 0 0.020em #060606,6px 16px 0 0.020em #060606,7px 16px 0 0.020em #060606,8px 16px 0 0.020em #060606,9px 16px 0 0.020em #060606,10px 16px 0 0.020em #060606,11px 16px 0 0.020em #060606;\n }\n}\n\n.nes-logo {\n position: relative;\n display: inline-block;\n width: 60px;\n height: 40px;\n}\n\n.nes-logo::before {\n position: absolute;\n top: -4px;\n left: -4px;\n content: \"\";\n background: transparent;\n width: 4px;\n height: 4px;\n color: #3e3634;\n box-shadow: 28px 4px,28px 8px,32px 12px,4px 16px #c3c3c3,8px 16px #c3c3c3,12px 16px #c3c3c3,16px 16px #c3c3c3,20px 16px #c3c3c3,24px 16px #c3c3c3,28px 16px #c3c3c3,32px 16px #c3c3c3,36px 16px #c3c3c3,40px 16px #c3c3c3,44px 16px #c3c3c3,48px 16px #c3c3c3,52px 16px #c3c3c3,56px 16px #c3c3c3,60px 16px #c3c3c3,4px 20px #c3c3c3,8px 20px,12px 20px,16px 20px,20px 20px,24px 20px,28px 20px,32px 20px,36px 20px,40px 20px,44px 20px,48px 20px,52px 20px,56px 20px,60px 20px #c3c3c3,4px 24px #c3c3c3,8px 24px,12px 24px,16px 24px #c3c3c3,20px 24px,24px 24px,28px 24px #787973,32px 24px #787973,36px 24px #787973,40px 24px,44px 24px,48px 24px,52px 24px,56px 24px,60px 24px #c3c3c3,4px 28px #c3c3c3,8px 28px,12px 28px #c3c3c3,16px 28px #c3c3c3,20px 28px #c3c3c3,24px 28px,28px 28px,32px 28px,36px 28px,40px 28px,44px 28px,48px 28px,52px 28px,56px 28px,60px 28px #c3c3c3,4px 32px #c3c3c3,8px 32px,12px 32px,16px 32px #c3c3c3,20px 32px,24px 32px,28px 32px #787973,32px 32px #787973,36px 32px #787973,40px 32px,44px 32px #bf1710,48px 32px,52px 32px #bf1710,56px 32px,60px 32px #c3c3c3,4px 36px #c3c3c3,8px 36px,12px 36px,16px 36px,20px 36px,24px 36px,28px 36px,32px 36px,36px 36px,40px 36px,44px 36px,48px 36px,52px 36px,56px 36px,60px 36px #c3c3c3,4px 40px #c3c3c3,8px 40px #c3c3c3,12px 40px #c3c3c3,16px 40px #c3c3c3,20px 40px #c3c3c3,24px 40px #c3c3c3,28px 40px #c3c3c3,32px 40px #c3c3c3,36px 40px #c3c3c3,40px 40px #c3c3c3,44px 40px #c3c3c3,48px 40px #c3c3c3,52px 40px #c3c3c3,56px 40px #c3c3c3,60px 40px #c3c3c3;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-logo::before {\n box-shadow: 28px 4px 0 0.020em,28px 8px 0 0.020em,32px 12px 0 0.020em,4px 16px 0 0.020em #c3c3c3,8px 16px 0 0.020em #c3c3c3,12px 16px 0 0.020em #c3c3c3,16px 16px 0 0.020em #c3c3c3,20px 16px 0 0.020em #c3c3c3,24px 16px 0 0.020em #c3c3c3,28px 16px 0 0.020em #c3c3c3,32px 16px 0 0.020em #c3c3c3,36px 16px 0 0.020em #c3c3c3,40px 16px 0 0.020em #c3c3c3,44px 16px 0 0.020em #c3c3c3,48px 16px 0 0.020em #c3c3c3,52px 16px 0 0.020em #c3c3c3,56px 16px 0 0.020em #c3c3c3,60px 16px 0 0.020em #c3c3c3,4px 20px 0 0.020em #c3c3c3,8px 20px 0 0.020em,12px 20px 0 0.020em,16px 20px 0 0.020em,20px 20px 0 0.020em,24px 20px 0 0.020em,28px 20px 0 0.020em,32px 20px 0 0.020em,36px 20px 0 0.020em,40px 20px 0 0.020em,44px 20px 0 0.020em,48px 20px 0 0.020em,52px 20px 0 0.020em,56px 20px 0 0.020em,60px 20px 0 0.020em #c3c3c3,4px 24px 0 0.020em #c3c3c3,8px 24px 0 0.020em,12px 24px 0 0.020em,16px 24px 0 0.020em #c3c3c3,20px 24px 0 0.020em,24px 24px 0 0.020em,28px 24px 0 0.020em #787973,32px 24px 0 0.020em #787973,36px 24px 0 0.020em #787973,40px 24px 0 0.020em,44px 24px 0 0.020em,48px 24px 0 0.020em,52px 24px 0 0.020em,56px 24px 0 0.020em,60px 24px 0 0.020em #c3c3c3,4px 28px 0 0.020em #c3c3c3,8px 28px 0 0.020em,12px 28px 0 0.020em #c3c3c3,16px 28px 0 0.020em #c3c3c3,20px 28px 0 0.020em #c3c3c3,24px 28px 0 0.020em,28px 28px 0 0.020em,32px 28px 0 0.020em,36px 28px 0 0.020em,40px 28px 0 0.020em,44px 28px 0 0.020em,48px 28px 0 0.020em,52px 28px 0 0.020em,56px 28px 0 0.020em,60px 28px 0 0.020em #c3c3c3,4px 32px 0 0.020em #c3c3c3,8px 32px 0 0.020em,12px 32px 0 0.020em,16px 32px 0 0.020em #c3c3c3,20px 32px 0 0.020em,24px 32px 0 0.020em,28px 32px 0 0.020em #787973,32px 32px 0 0.020em #787973,36px 32px 0 0.020em #787973,40px 32px 0 0.020em,44px 32px 0 0.020em #bf1710,48px 32px 0 0.020em,52px 32px 0 0.020em #bf1710,56px 32px 0 0.020em,60px 32px 0 0.020em #c3c3c3,4px 36px 0 0.020em #c3c3c3,8px 36px 0 0.020em,12px 36px 0 0.020em,16px 36px 0 0.020em,20px 36px 0 0.020em,24px 36px 0 0.020em,28px 36px 0 0.020em,32px 36px 0 0.020em,36px 36px 0 0.020em,40px 36px 0 0.020em,44px 36px 0 0.020em,48px 36px 0 0.020em,52px 36px 0 0.020em,56px 36px 0 0.020em,60px 36px 0 0.020em #c3c3c3,4px 40px 0 0.020em #c3c3c3,8px 40px 0 0.020em #c3c3c3,12px 40px 0 0.020em #c3c3c3,16px 40px 0 0.020em #c3c3c3,20px 40px 0 0.020em #c3c3c3,24px 40px 0 0.020em #c3c3c3,28px 40px 0 0.020em #c3c3c3,32px 40px 0 0.020em #c3c3c3,36px 40px 0 0.020em #c3c3c3,40px 40px 0 0.020em #c3c3c3,44px 40px 0 0.020em #c3c3c3,48px 40px 0 0.020em #c3c3c3,52px 40px 0 0.020em #c3c3c3,56px 40px 0 0.020em #c3c3c3,60px 40px 0 0.020em #c3c3c3;\n }\n}\n\n.nes-jp-logo {\n position: relative;\n display: inline-block;\n width: 60px;\n height: 40px;\n}\n\n.nes-jp-logo::before {\n position: absolute;\n top: -4px;\n left: -4px;\n content: \"\";\n background: transparent;\n width: 4px;\n height: 4px;\n color: #871f37;\n box-shadow: 28px 4px #333,28px 8px #333,32px 12px #333,4px 16px,8px 16px,12px 16px,16px 16px,20px 16px,24px 16px,28px 16px,32px 16px,36px 16px,40px 16px,44px 16px,48px 16px,52px 16px,56px 16px,60px 16px,4px 20px,8px 20px #dfd3b9,12px 20px #dfd3b9,16px 20px #dfd3b9,20px 20px #dfd3b9,24px 20px #dfd3b9,28px 20px,32px 20px,36px 20px,40px 20px,44px 20px,48px 20px,52px 20px,56px 20px,60px 20px,4px 24px,8px 24px #dfd3b9,12px 24px #dfd3b9,16px 24px #333,20px 24px #dfd3b9,24px 24px #dfd3b9,28px 24px,32px 24px,36px 24px,40px 24px,44px 24px,48px 24px,52px 24px,56px 24px,60px 24px,4px 28px,8px 28px #dfd3b9,12px 28px #333,16px 28px #333,20px 28px #333,24px 28px #dfd3b9,28px 28px #dfd3b9,32px 28px #dfd3b9,36px 28px #dfd3b9,40px 28px #dfd3b9,44px 28px #dfd3b9,48px 28px #dfd3b9,52px 28px #dfd3b9,56px 28px #dfd3b9,60px 28px,4px 32px,8px 32px #dfd3b9,12px 32px #dfd3b9,16px 32px #333,20px 32px #dfd3b9,24px 32px #dfd3b9,28px 32px #333,32px 32px,36px 32px #333,40px 32px #dfd3b9,44px 32px #333,48px 32px #dfd3b9,52px 32px #333,56px 32px #dfd3b9,60px 32px,4px 36px,8px 36px #dfd3b9,12px 36px #dfd3b9,16px 36px #dfd3b9,20px 36px #dfd3b9,24px 36px #dfd3b9,28px 36px #dfd3b9,32px 36px #dfd3b9,36px 36px #dfd3b9,40px 36px #dfd3b9,44px 36px #dfd3b9,48px 36px #dfd3b9,52px 36px #dfd3b9,56px 36px #dfd3b9,60px 36px,4px 40px,8px 40px,12px 40px,16px 40px,20px 40px,24px 40px,28px 40px,32px 40px,36px 40px,40px 40px,44px 40px,48px 40px,52px 40px,56px 40px,60px 40px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-jp-logo::before {\n box-shadow: 28px 4px 0 0.020em #333,28px 8px 0 0.020em #333,32px 12px 0 0.020em #333,4px 16px 0 0.020em,8px 16px 0 0.020em,12px 16px 0 0.020em,16px 16px 0 0.020em,20px 16px 0 0.020em,24px 16px 0 0.020em,28px 16px 0 0.020em,32px 16px 0 0.020em,36px 16px 0 0.020em,40px 16px 0 0.020em,44px 16px 0 0.020em,48px 16px 0 0.020em,52px 16px 0 0.020em,56px 16px 0 0.020em,60px 16px 0 0.020em,4px 20px 0 0.020em,8px 20px 0 0.020em #dfd3b9,12px 20px 0 0.020em #dfd3b9,16px 20px 0 0.020em #dfd3b9,20px 20px 0 0.020em #dfd3b9,24px 20px 0 0.020em #dfd3b9,28px 20px 0 0.020em,32px 20px 0 0.020em,36px 20px 0 0.020em,40px 20px 0 0.020em,44px 20px 0 0.020em,48px 20px 0 0.020em,52px 20px 0 0.020em,56px 20px 0 0.020em,60px 20px 0 0.020em,4px 24px 0 0.020em,8px 24px 0 0.020em #dfd3b9,12px 24px 0 0.020em #dfd3b9,16px 24px 0 0.020em #333,20px 24px 0 0.020em #dfd3b9,24px 24px 0 0.020em #dfd3b9,28px 24px 0 0.020em,32px 24px 0 0.020em,36px 24px 0 0.020em,40px 24px 0 0.020em,44px 24px 0 0.020em,48px 24px 0 0.020em,52px 24px 0 0.020em,56px 24px 0 0.020em,60px 24px 0 0.020em,4px 28px 0 0.020em,8px 28px 0 0.020em #dfd3b9,12px 28px 0 0.020em #333,16px 28px 0 0.020em #333,20px 28px 0 0.020em #333,24px 28px 0 0.020em #dfd3b9,28px 28px 0 0.020em #dfd3b9,32px 28px 0 0.020em #dfd3b9,36px 28px 0 0.020em #dfd3b9,40px 28px 0 0.020em #dfd3b9,44px 28px 0 0.020em #dfd3b9,48px 28px 0 0.020em #dfd3b9,52px 28px 0 0.020em #dfd3b9,56px 28px 0 0.020em #dfd3b9,60px 28px 0 0.020em,4px 32px 0 0.020em,8px 32px 0 0.020em #dfd3b9,12px 32px 0 0.020em #dfd3b9,16px 32px 0 0.020em #333,20px 32px 0 0.020em #dfd3b9,24px 32px 0 0.020em #dfd3b9,28px 32px 0 0.020em #333,32px 32px 0 0.020em,36px 32px 0 0.020em #333,40px 32px 0 0.020em #dfd3b9,44px 32px 0 0.020em #333,48px 32px 0 0.020em #dfd3b9,52px 32px 0 0.020em #333,56px 32px 0 0.020em #dfd3b9,60px 32px 0 0.020em,4px 36px 0 0.020em,8px 36px 0 0.020em #dfd3b9,12px 36px 0 0.020em #dfd3b9,16px 36px 0 0.020em #dfd3b9,20px 36px 0 0.020em #dfd3b9,24px 36px 0 0.020em #dfd3b9,28px 36px 0 0.020em #dfd3b9,32px 36px 0 0.020em #dfd3b9,36px 36px 0 0.020em #dfd3b9,40px 36px 0 0.020em #dfd3b9,44px 36px 0 0.020em #dfd3b9,48px 36px 0 0.020em #dfd3b9,52px 36px 0 0.020em #dfd3b9,56px 36px 0 0.020em #dfd3b9,60px 36px 0 0.020em,4px 40px 0 0.020em,8px 40px 0 0.020em,12px 40px 0 0.020em,16px 40px 0 0.020em,20px 40px 0 0.020em,24px 40px 0 0.020em,28px 40px 0 0.020em,32px 40px 0 0.020em,36px 40px 0 0.020em,40px 40px 0 0.020em,44px 40px 0 0.020em,48px 40px 0 0.020em,52px 40px 0 0.020em,56px 40px 0 0.020em,60px 40px 0 0.020em;\n }\n}\n\n.snes-logo {\n position: relative;\n display: inline-block;\n width: 60px;\n height: 40px;\n}\n\n.snes-logo::before {\n position: absolute;\n top: -4px;\n left: -4px;\n content: \"\";\n background: transparent;\n width: 4px;\n height: 4px;\n color: #d7d7d7;\n box-shadow: 28px 4px #333,28px 8px #333,32px 12px #333,12px 16px #333,16px 16px #333,20px 16px #333,24px 16px #333,28px 16px #333,32px 16px #333,36px 16px #333,40px 16px #333,44px 16px #333,48px 16px #333,52px 16px #333,8px 20px #333,12px 20px,16px 20px,20px 20px,24px 20px,28px 20px,32px 20px,36px 20px,40px 20px,44px 20px,48px 20px,52px 20px,56px 20px #333,4px 24px #333,8px 24px,12px 24px,16px 24px #333,20px 24px,24px 24px,28px 24px,32px 24px,36px 24px,40px 24px,44px 24px,48px 24px #ad6df0,52px 24px,56px 24px,60px 24px #333,4px 28px #333,8px 28px,12px 28px #333,16px 28px #333,20px 28px #333,24px 28px,28px 28px,32px 28px,36px 28px,40px 28px,44px 28px #ad6df0,48px 28px,52px 28px #8932e5,56px 28px,60px 28px #333,4px 32px #333,8px 32px,12px 32px,16px 32px #333,20px 32px,24px 32px,28px 32px #333,32px 32px,36px 32px #333,40px 32px,44px 32px,48px 32px #8932e5,52px 32px,56px 32px,60px 32px #333,8px 36px #333,12px 36px,16px 36px,20px 36px,24px 36px,28px 36px,32px 36px,36px 36px,40px 36px,44px 36px,48px 36px,52px 36px,56px 36px #333,12px 40px #333,16px 40px #333,20px 40px #333,24px 40px #333,28px 40px #333,32px 40px #333,36px 40px #333,40px 40px #333,44px 40px #333,48px 40px #333,52px 40px #333;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .snes-logo::before {\n box-shadow: 28px 4px 0 0.020em #333,28px 8px 0 0.020em #333,32px 12px 0 0.020em #333,12px 16px 0 0.020em #333,16px 16px 0 0.020em #333,20px 16px 0 0.020em #333,24px 16px 0 0.020em #333,28px 16px 0 0.020em #333,32px 16px 0 0.020em #333,36px 16px 0 0.020em #333,40px 16px 0 0.020em #333,44px 16px 0 0.020em #333,48px 16px 0 0.020em #333,52px 16px 0 0.020em #333,8px 20px 0 0.020em #333,12px 20px 0 0.020em,16px 20px 0 0.020em,20px 20px 0 0.020em,24px 20px 0 0.020em,28px 20px 0 0.020em,32px 20px 0 0.020em,36px 20px 0 0.020em,40px 20px 0 0.020em,44px 20px 0 0.020em,48px 20px 0 0.020em,52px 20px 0 0.020em,56px 20px 0 0.020em #333,4px 24px 0 0.020em #333,8px 24px 0 0.020em,12px 24px 0 0.020em,16px 24px 0 0.020em #333,20px 24px 0 0.020em,24px 24px 0 0.020em,28px 24px 0 0.020em,32px 24px 0 0.020em,36px 24px 0 0.020em,40px 24px 0 0.020em,44px 24px 0 0.020em,48px 24px 0 0.020em #ad6df0,52px 24px 0 0.020em,56px 24px 0 0.020em,60px 24px 0 0.020em #333,4px 28px 0 0.020em #333,8px 28px 0 0.020em,12px 28px 0 0.020em #333,16px 28px 0 0.020em #333,20px 28px 0 0.020em #333,24px 28px 0 0.020em,28px 28px 0 0.020em,32px 28px 0 0.020em,36px 28px 0 0.020em,40px 28px 0 0.020em,44px 28px 0 0.020em #ad6df0,48px 28px 0 0.020em,52px 28px 0 0.020em #8932e5,56px 28px 0 0.020em,60px 28px 0 0.020em #333,4px 32px 0 0.020em #333,8px 32px 0 0.020em,12px 32px 0 0.020em,16px 32px 0 0.020em #333,20px 32px 0 0.020em,24px 32px 0 0.020em,28px 32px 0 0.020em #333,32px 32px 0 0.020em,36px 32px 0 0.020em #333,40px 32px 0 0.020em,44px 32px 0 0.020em,48px 32px 0 0.020em #8932e5,52px 32px 0 0.020em,56px 32px 0 0.020em,60px 32px 0 0.020em #333,8px 36px 0 0.020em #333,12px 36px 0 0.020em,16px 36px 0 0.020em,20px 36px 0 0.020em,24px 36px 0 0.020em,28px 36px 0 0.020em,32px 36px 0 0.020em,36px 36px 0 0.020em,40px 36px 0 0.020em,44px 36px 0 0.020em,48px 36px 0 0.020em,52px 36px 0 0.020em,56px 36px 0 0.020em #333,12px 40px 0 0.020em #333,16px 40px 0 0.020em #333,20px 40px 0 0.020em #333,24px 40px 0 0.020em #333,28px 40px 0 0.020em #333,32px 40px 0 0.020em #333,36px 40px 0 0.020em #333,40px 40px 0 0.020em #333,44px 40px 0 0.020em #333,48px 40px 0 0.020em #333,52px 40px 0 0.020em #333;\n }\n}\n\n.snes-jp-logo {\n position: relative;\n display: inline-block;\n width: 60px;\n height: 40px;\n}\n\n.snes-jp-logo::before {\n position: absolute;\n top: -4px;\n left: -4px;\n content: \"\";\n background: transparent;\n width: 4px;\n height: 4px;\n color: #d7d7d7;\n box-shadow: 28px 4px #333,28px 8px #333,32px 12px #333,12px 16px #333,16px 16px #333,20px 16px #333,24px 16px #333,28px 16px #333,32px 16px #333,36px 16px #333,40px 16px #333,44px 16px #333,48px 16px #333,52px 16px #333,8px 20px #333,12px 20px,16px 20px,20px 20px,24px 20px,28px 20px,32px 20px,36px 20px,40px 20px,44px 20px,48px 20px,52px 20px,56px 20px #333,4px 24px #333,8px 24px,12px 24px,16px 24px #333,20px 24px,24px 24px,28px 24px,32px 24px,36px 24px,40px 24px,44px 24px,48px 24px #999cf7,52px 24px,56px 24px,60px 24px #333,4px 28px #333,8px 28px,12px 28px #333,16px 28px #333,20px 28px #333,24px 28px,28px 28px,32px 28px,36px 28px,40px 28px,44px 28px #7dbb78,48px 28px,52px 28px #f40500,56px 28px,60px 28px #333,4px 32px #333,8px 32px,12px 32px,16px 32px #333,20px 32px,24px 32px,28px 32px #333,32px 32px,36px 32px #333,40px 32px,44px 32px,48px 32px #f6f504,52px 32px,56px 32px,60px 32px #333,8px 36px #333,12px 36px,16px 36px,20px 36px,24px 36px,28px 36px,32px 36px,36px 36px,40px 36px,44px 36px,48px 36px,52px 36px,56px 36px #333,12px 40px #333,16px 40px #333,20px 40px #333,24px 40px #333,28px 40px #333,32px 40px #333,36px 40px #333,40px 40px #333,44px 40px #333,48px 40px #333,52px 40px #333;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .snes-jp-logo::before {\n box-shadow: 28px 4px 0 0.020em #333,28px 8px 0 0.020em #333,32px 12px 0 0.020em #333,12px 16px 0 0.020em #333,16px 16px 0 0.020em #333,20px 16px 0 0.020em #333,24px 16px 0 0.020em #333,28px 16px 0 0.020em #333,32px 16px 0 0.020em #333,36px 16px 0 0.020em #333,40px 16px 0 0.020em #333,44px 16px 0 0.020em #333,48px 16px 0 0.020em #333,52px 16px 0 0.020em #333,8px 20px 0 0.020em #333,12px 20px 0 0.020em,16px 20px 0 0.020em,20px 20px 0 0.020em,24px 20px 0 0.020em,28px 20px 0 0.020em,32px 20px 0 0.020em,36px 20px 0 0.020em,40px 20px 0 0.020em,44px 20px 0 0.020em,48px 20px 0 0.020em,52px 20px 0 0.020em,56px 20px 0 0.020em #333,4px 24px 0 0.020em #333,8px 24px 0 0.020em,12px 24px 0 0.020em,16px 24px 0 0.020em #333,20px 24px 0 0.020em,24px 24px 0 0.020em,28px 24px 0 0.020em,32px 24px 0 0.020em,36px 24px 0 0.020em,40px 24px 0 0.020em,44px 24px 0 0.020em,48px 24px 0 0.020em #999cf7,52px 24px 0 0.020em,56px 24px 0 0.020em,60px 24px 0 0.020em #333,4px 28px 0 0.020em #333,8px 28px 0 0.020em,12px 28px 0 0.020em #333,16px 28px 0 0.020em #333,20px 28px 0 0.020em #333,24px 28px 0 0.020em,28px 28px 0 0.020em,32px 28px 0 0.020em,36px 28px 0 0.020em,40px 28px 0 0.020em,44px 28px 0 0.020em #7dbb78,48px 28px 0 0.020em,52px 28px 0 0.020em #f40500,56px 28px 0 0.020em,60px 28px 0 0.020em #333,4px 32px 0 0.020em #333,8px 32px 0 0.020em,12px 32px 0 0.020em,16px 32px 0 0.020em #333,20px 32px 0 0.020em,24px 32px 0 0.020em,28px 32px 0 0.020em #333,32px 32px 0 0.020em,36px 32px 0 0.020em #333,40px 32px 0 0.020em,44px 32px 0 0.020em,48px 32px 0 0.020em #f6f504,52px 32px 0 0.020em,56px 32px 0 0.020em,60px 32px 0 0.020em #333,8px 36px 0 0.020em #333,12px 36px 0 0.020em,16px 36px 0 0.020em,20px 36px 0 0.020em,24px 36px 0 0.020em,28px 36px 0 0.020em,32px 36px 0 0.020em,36px 36px 0 0.020em,40px 36px 0 0.020em,44px 36px 0 0.020em,48px 36px 0 0.020em,52px 36px 0 0.020em,56px 36px 0 0.020em #333,12px 40px 0 0.020em #333,16px 40px 0 0.020em #333,20px 40px 0 0.020em #333,24px 40px 0 0.020em #333,28px 40px 0 0.020em #333,32px 40px 0 0.020em #333,36px 40px 0 0.020em #333,40px 40px 0 0.020em #333,44px 40px 0 0.020em #333,48px 40px 0 0.020em #333,52px 40px 0 0.020em #333;\n }\n}\n\n.nes-bcrikko {\n position: relative;\n display: inline-block;\n width: 96px;\n height: 96px;\n}\n\n.nes-bcrikko::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #f9f2d7;\n box-shadow: 12px 6px,18px 6px,24px 6px,30px 6px,36px 6px,42px 6px,48px 6px,54px 6px,60px 6px,66px 6px,72px 6px,78px 6px,84px 6px,90px 6px,6px 12px,12px 12px,18px 12px,24px 12px,30px 12px,36px 12px,42px 12px,48px 12px,54px 12px,60px 12px,66px 12px,72px 12px,78px 12px,84px 12px,90px 12px,96px 12px,6px 18px,12px 18px,18px 18px,24px 18px,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px,66px 18px,72px 18px,78px 18px,84px 18px,90px 18px,96px 18px,6px 24px,12px 24px,18px 24px,24px 24px,30px 24px #333,36px 24px #333,42px 24px,48px 24px,54px 24px,60px 24px,66px 24px #333,72px 24px #333,78px 24px,84px 24px,90px 24px,96px 24px,6px 30px,12px 30px,18px 30px,24px 30px #333,30px 30px #333,36px 30px #fff,42px 30px #333,48px 30px,54px 30px,60px 30px #333,66px 30px #333,72px 30px #fff,78px 30px #333,84px 30px,90px 30px,96px 30px,6px 36px,12px 36px,18px 36px,24px 36px #333,30px 36px #333,36px 36px #333,42px 36px #333,48px 36px,54px 36px,60px 36px #333,66px 36px #333,72px 36px #333,78px 36px #333,84px 36px,90px 36px,96px 36px,6px 42px,12px 42px,18px 42px,24px 42px #333,30px 42px #333,36px 42px #333,42px 42px #333,48px 42px,54px 42px,60px 42px #333,66px 42px #333,72px 42px #333,78px 42px #333,84px 42px,90px 42px,96px 42px,6px 48px,12px 48px,18px 48px,24px 48px #333,30px 48px #333,36px 48px #333,42px 48px #333,48px 48px,54px 48px,60px 48px #333,66px 48px #333,72px 48px #333,78px 48px #333,84px 48px,90px 48px,96px 48px,6px 54px,12px 54px,18px 54px,24px 54px,30px 54px #333,36px 54px #333,42px 54px,48px 54px,54px 54px,60px 54px,66px 54px #333,72px 54px #333,78px 54px,84px 54px,90px 54px,96px 54px,6px 60px,12px 60px,18px 60px,24px 60px,30px 60px,36px 60px,42px 60px,48px 60px,54px 60px,60px 60px,66px 60px,72px 60px,78px 60px,84px 60px,90px 60px,96px 60px,6px 66px,12px 66px,18px 66px,24px 66px,30px 66px,36px 66px,42px 66px,48px 66px,54px 66px,60px 66px,66px 66px,72px 66px,78px 66px,84px 66px,90px 66px,96px 66px,6px 72px,12px 72px,18px 72px,24px 72px #c5090c,30px 72px,36px 72px,42px 72px,48px 72px,54px 72px,60px 72px,66px 72px,72px 72px,78px 72px #c5090c,84px 72px,90px 72px,96px 72px,6px 78px,12px 78px,18px 78px,24px 78px #c5090c,30px 78px,36px 78px,42px 78px,48px 78px,54px 78px,60px 78px,66px 78px,72px 78px,78px 78px #c5090c,84px 78px,90px 78px,96px 78px,6px 84px,12px 84px,18px 84px,24px 84px,30px 84px #c5090c,36px 84px #c5090c,42px 84px #c5090c,48px 84px #c5090c,54px 84px #c5090c,60px 84px #c5090c,66px 84px #c5090c,72px 84px #c5090c,78px 84px,84px 84px,90px 84px,96px 84px,6px 90px,12px 90px,18px 90px,24px 90px,30px 90px,36px 90px,42px 90px,48px 90px,54px 90px,60px 90px,66px 90px,72px 90px,78px 90px,84px 90px,90px 90px,96px 90px,12px 96px,18px 96px,24px 96px,30px 96px,36px 96px,42px 96px,48px 96px,54px 96px,60px 96px,66px 96px,72px 96px,78px 96px,84px 96px,90px 96px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-bcrikko::before {\n box-shadow: 12px 6px 0 0.020em,18px 6px 0 0.020em,24px 6px 0 0.020em,30px 6px 0 0.020em,36px 6px 0 0.020em,42px 6px 0 0.020em,48px 6px 0 0.020em,54px 6px 0 0.020em,60px 6px 0 0.020em,66px 6px 0 0.020em,72px 6px 0 0.020em,78px 6px 0 0.020em,84px 6px 0 0.020em,90px 6px 0 0.020em,6px 12px 0 0.020em,12px 12px 0 0.020em,18px 12px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em,36px 12px 0 0.020em,42px 12px 0 0.020em,48px 12px 0 0.020em,54px 12px 0 0.020em,60px 12px 0 0.020em,66px 12px 0 0.020em,72px 12px 0 0.020em,78px 12px 0 0.020em,84px 12px 0 0.020em,90px 12px 0 0.020em,96px 12px 0 0.020em,6px 18px 0 0.020em,12px 18px 0 0.020em,18px 18px 0 0.020em,24px 18px 0 0.020em,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em,66px 18px 0 0.020em,72px 18px 0 0.020em,78px 18px 0 0.020em,84px 18px 0 0.020em,90px 18px 0 0.020em,96px 18px 0 0.020em,6px 24px 0 0.020em,12px 24px 0 0.020em,18px 24px 0 0.020em,24px 24px 0 0.020em,30px 24px 0 0.020em #333,36px 24px 0 0.020em #333,42px 24px 0 0.020em,48px 24px 0 0.020em,54px 24px 0 0.020em,60px 24px 0 0.020em,66px 24px 0 0.020em #333,72px 24px 0 0.020em #333,78px 24px 0 0.020em,84px 24px 0 0.020em,90px 24px 0 0.020em,96px 24px 0 0.020em,6px 30px 0 0.020em,12px 30px 0 0.020em,18px 30px 0 0.020em,24px 30px 0 0.020em #333,30px 30px 0 0.020em #333,36px 30px 0 0.020em #fff,42px 30px 0 0.020em #333,48px 30px 0 0.020em,54px 30px 0 0.020em,60px 30px 0 0.020em #333,66px 30px 0 0.020em #333,72px 30px 0 0.020em #fff,78px 30px 0 0.020em #333,84px 30px 0 0.020em,90px 30px 0 0.020em,96px 30px 0 0.020em,6px 36px 0 0.020em,12px 36px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em #333,30px 36px 0 0.020em #333,36px 36px 0 0.020em #333,42px 36px 0 0.020em #333,48px 36px 0 0.020em,54px 36px 0 0.020em,60px 36px 0 0.020em #333,66px 36px 0 0.020em #333,72px 36px 0 0.020em #333,78px 36px 0 0.020em #333,84px 36px 0 0.020em,90px 36px 0 0.020em,96px 36px 0 0.020em,6px 42px 0 0.020em,12px 42px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em #333,30px 42px 0 0.020em #333,36px 42px 0 0.020em #333,42px 42px 0 0.020em #333,48px 42px 0 0.020em,54px 42px 0 0.020em,60px 42px 0 0.020em #333,66px 42px 0 0.020em #333,72px 42px 0 0.020em #333,78px 42px 0 0.020em #333,84px 42px 0 0.020em,90px 42px 0 0.020em,96px 42px 0 0.020em,6px 48px 0 0.020em,12px 48px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em #333,30px 48px 0 0.020em #333,36px 48px 0 0.020em #333,42px 48px 0 0.020em #333,48px 48px 0 0.020em,54px 48px 0 0.020em,60px 48px 0 0.020em #333,66px 48px 0 0.020em #333,72px 48px 0 0.020em #333,78px 48px 0 0.020em #333,84px 48px 0 0.020em,90px 48px 0 0.020em,96px 48px 0 0.020em,6px 54px 0 0.020em,12px 54px 0 0.020em,18px 54px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em #333,36px 54px 0 0.020em #333,42px 54px 0 0.020em,48px 54px 0 0.020em,54px 54px 0 0.020em,60px 54px 0 0.020em,66px 54px 0 0.020em #333,72px 54px 0 0.020em #333,78px 54px 0 0.020em,84px 54px 0 0.020em,90px 54px 0 0.020em,96px 54px 0 0.020em,6px 60px 0 0.020em,12px 60px 0 0.020em,18px 60px 0 0.020em,24px 60px 0 0.020em,30px 60px 0 0.020em,36px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em,54px 60px 0 0.020em,60px 60px 0 0.020em,66px 60px 0 0.020em,72px 60px 0 0.020em,78px 60px 0 0.020em,84px 60px 0 0.020em,90px 60px 0 0.020em,96px 60px 0 0.020em,6px 66px 0 0.020em,12px 66px 0 0.020em,18px 66px 0 0.020em,24px 66px 0 0.020em,30px 66px 0 0.020em,36px 66px 0 0.020em,42px 66px 0 0.020em,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em,72px 66px 0 0.020em,78px 66px 0 0.020em,84px 66px 0 0.020em,90px 66px 0 0.020em,96px 66px 0 0.020em,6px 72px 0 0.020em,12px 72px 0 0.020em,18px 72px 0 0.020em,24px 72px 0 0.020em #c5090c,30px 72px 0 0.020em,36px 72px 0 0.020em,42px 72px 0 0.020em,48px 72px 0 0.020em,54px 72px 0 0.020em,60px 72px 0 0.020em,66px 72px 0 0.020em,72px 72px 0 0.020em,78px 72px 0 0.020em #c5090c,84px 72px 0 0.020em,90px 72px 0 0.020em,96px 72px 0 0.020em,6px 78px 0 0.020em,12px 78px 0 0.020em,18px 78px 0 0.020em,24px 78px 0 0.020em #c5090c,30px 78px 0 0.020em,36px 78px 0 0.020em,42px 78px 0 0.020em,48px 78px 0 0.020em,54px 78px 0 0.020em,60px 78px 0 0.020em,66px 78px 0 0.020em,72px 78px 0 0.020em,78px 78px 0 0.020em #c5090c,84px 78px 0 0.020em,90px 78px 0 0.020em,96px 78px 0 0.020em,6px 84px 0 0.020em,12px 84px 0 0.020em,18px 84px 0 0.020em,24px 84px 0 0.020em,30px 84px 0 0.020em #c5090c,36px 84px 0 0.020em #c5090c,42px 84px 0 0.020em #c5090c,48px 84px 0 0.020em #c5090c,54px 84px 0 0.020em #c5090c,60px 84px 0 0.020em #c5090c,66px 84px 0 0.020em #c5090c,72px 84px 0 0.020em #c5090c,78px 84px 0 0.020em,84px 84px 0 0.020em,90px 84px 0 0.020em,96px 84px 0 0.020em,6px 90px 0 0.020em,12px 90px 0 0.020em,18px 90px 0 0.020em,24px 90px 0 0.020em,30px 90px 0 0.020em,36px 90px 0 0.020em,42px 90px 0 0.020em,48px 90px 0 0.020em,54px 90px 0 0.020em,60px 90px 0 0.020em,66px 90px 0 0.020em,72px 90px 0 0.020em,78px 90px 0 0.020em,84px 90px 0 0.020em,90px 90px 0 0.020em,96px 90px 0 0.020em,12px 96px 0 0.020em,18px 96px 0 0.020em,24px 96px 0 0.020em,30px 96px 0 0.020em,36px 96px 0 0.020em,42px 96px 0 0.020em,48px 96px 0 0.020em,54px 96px 0 0.020em,60px 96px 0 0.020em,66px 96px 0 0.020em,72px 96px 0 0.020em,78px 96px 0 0.020em,84px 96px 0 0.020em,90px 96px 0 0.020em;\n }\n}\n\n.nes-ash {\n position: relative;\n display: inline-block;\n width: 84px;\n height: 90px;\n}\n\n.nes-ash::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #181818;\n box-shadow: 30px 6px,36px 6px,42px 6px,48px 6px,54px 6px,60px 6px,24px 12px,30px 12px #ff614e,36px 12px #ff614e,42px 12px #ff614e,48px 12px #f8f8ff,54px 12px #f8f8ff,60px 12px #007f7f,66px 12px,18px 18px,24px 18px #ff614e,30px 18px #ff614e,36px 18px #ff614e,42px 18px #ff614e,48px 18px #f8f8ff,54px 18px #f8f8ff,60px 18px #f8f8ff,66px 18px #f8f8ff,72px 18px,18px 24px,24px 24px #ff614e,30px 24px #ff614e,36px 24px #ff614e,42px 24px #ff614e,48px 24px #f8f8ff,54px 24px #f8f8ff,60px 24px #007f7f,66px 24px #007f7f,72px 24px,78px 24px,12px 30px,18px 30px,24px 30px,30px 30px #ff614e,36px 30px #ff614e,42px 30px #ff614e,48px 30px #ff614e,54px 30px #ff614e,60px 30px #ff614e,66px 30px #ff614e,72px 30px #ff614e,78px 30px #ff614e,84px 30px,12px 36px,18px 36px,24px 36px,30px 36px,36px 36px,42px 36px,48px 36px,54px 36px #ff614e,60px 36px #ff614e,66px 36px #ff614e,72px 36px,78px 36px,6px 42px,12px 42px,18px 42px,24px 42px,30px 42px,36px 42px,42px 42px,48px 42px #ffe3c5,54px 42px #ffe3c5,60px 42px,66px 42px #ffe3c5,72px 42px,12px 48px,18px 48px,24px 48px #ffe3c5,30px 48px #ffe3c5,36px 48px #ffe3c5,42px 48px,48px 48px #ffe3c5,54px 48px #ffe3c5,60px 48px,66px 48px #ffe3c5,72px 48px,18px 54px,24px 54px #ffe3c5,30px 54px #ffe3c5,36px 54px #ffe3c5,42px 54px #ffe3c5,48px 54px #ffe3c5,54px 54px #ffe3c5,60px 54px #ffe3c5,66px 54px #ffe3c5,72px 54px,12px 60px,18px 60px #4169e1,24px 60px,30px 60px,36px 60px #ffe3c5,42px 60px #ffe3c5,48px 60px #ffe3c5,54px 60px #ffe3c5,60px 60px #ffe3c5,66px 60px,12px 66px,18px 66px #4169e1,24px 66px,30px 66px,36px 66px,42px 66px,48px 66px,54px 66px,60px 66px,12px 72px,18px 72px,24px 72px #ffe3c5,30px 72px #ffe3c5,36px 72px,42px 72px #4169e1,48px 72px #4169e1,54px 72px,60px 72px,66px 72px,6px 78px,12px 78px #007f7f,18px 78px,24px 78px #ffe3c5,30px 78px #ffe3c5,36px 78px,42px 78px #4169e1,48px 78px,54px 78px,60px 78px #007f7f,66px 78px #007f7f,72px 78px,6px 84px,12px 84px #007f7f,18px 84px #007f7f,24px 84px,30px 84px,36px 84px,42px 84px,48px 84px,54px 84px #007f7f,60px 84px #007f7f,66px 84px,12px 90px,18px 90px,54px 90px,60px 90px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-ash::before {\n box-shadow: 30px 6px 0 0.020em,36px 6px 0 0.020em,42px 6px 0 0.020em,48px 6px 0 0.020em,54px 6px 0 0.020em,60px 6px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em #ff614e,36px 12px 0 0.020em #ff614e,42px 12px 0 0.020em #ff614e,48px 12px 0 0.020em #f8f8ff,54px 12px 0 0.020em #f8f8ff,60px 12px 0 0.020em #007f7f,66px 12px 0 0.020em,18px 18px 0 0.020em,24px 18px 0 0.020em #ff614e,30px 18px 0 0.020em #ff614e,36px 18px 0 0.020em #ff614e,42px 18px 0 0.020em #ff614e,48px 18px 0 0.020em #f8f8ff,54px 18px 0 0.020em #f8f8ff,60px 18px 0 0.020em #f8f8ff,66px 18px 0 0.020em #f8f8ff,72px 18px 0 0.020em,18px 24px 0 0.020em,24px 24px 0 0.020em #ff614e,30px 24px 0 0.020em #ff614e,36px 24px 0 0.020em #ff614e,42px 24px 0 0.020em #ff614e,48px 24px 0 0.020em #f8f8ff,54px 24px 0 0.020em #f8f8ff,60px 24px 0 0.020em #007f7f,66px 24px 0 0.020em #007f7f,72px 24px 0 0.020em,78px 24px 0 0.020em,12px 30px 0 0.020em,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em #ff614e,36px 30px 0 0.020em #ff614e,42px 30px 0 0.020em #ff614e,48px 30px 0 0.020em #ff614e,54px 30px 0 0.020em #ff614e,60px 30px 0 0.020em #ff614e,66px 30px 0 0.020em #ff614e,72px 30px 0 0.020em #ff614e,78px 30px 0 0.020em #ff614e,84px 30px 0 0.020em,12px 36px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em,42px 36px 0 0.020em,48px 36px 0 0.020em,54px 36px 0 0.020em #ff614e,60px 36px 0 0.020em #ff614e,66px 36px 0 0.020em #ff614e,72px 36px 0 0.020em,78px 36px 0 0.020em,6px 42px 0 0.020em,12px 42px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em,36px 42px 0 0.020em,42px 42px 0 0.020em,48px 42px 0 0.020em #ffe3c5,54px 42px 0 0.020em #ffe3c5,60px 42px 0 0.020em,66px 42px 0 0.020em #ffe3c5,72px 42px 0 0.020em,12px 48px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em #ffe3c5,30px 48px 0 0.020em #ffe3c5,36px 48px 0 0.020em #ffe3c5,42px 48px 0 0.020em,48px 48px 0 0.020em #ffe3c5,54px 48px 0 0.020em #ffe3c5,60px 48px 0 0.020em,66px 48px 0 0.020em #ffe3c5,72px 48px 0 0.020em,18px 54px 0 0.020em,24px 54px 0 0.020em #ffe3c5,30px 54px 0 0.020em #ffe3c5,36px 54px 0 0.020em #ffe3c5,42px 54px 0 0.020em #ffe3c5,48px 54px 0 0.020em #ffe3c5,54px 54px 0 0.020em #ffe3c5,60px 54px 0 0.020em #ffe3c5,66px 54px 0 0.020em #ffe3c5,72px 54px 0 0.020em,12px 60px 0 0.020em,18px 60px 0 0.020em #4169e1,24px 60px 0 0.020em,30px 60px 0 0.020em,36px 60px 0 0.020em #ffe3c5,42px 60px 0 0.020em #ffe3c5,48px 60px 0 0.020em #ffe3c5,54px 60px 0 0.020em #ffe3c5,60px 60px 0 0.020em #ffe3c5,66px 60px 0 0.020em,12px 66px 0 0.020em,18px 66px 0 0.020em #4169e1,24px 66px 0 0.020em,30px 66px 0 0.020em,36px 66px 0 0.020em,42px 66px 0 0.020em,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,12px 72px 0 0.020em,18px 72px 0 0.020em,24px 72px 0 0.020em #ffe3c5,30px 72px 0 0.020em #ffe3c5,36px 72px 0 0.020em,42px 72px 0 0.020em #4169e1,48px 72px 0 0.020em #4169e1,54px 72px 0 0.020em,60px 72px 0 0.020em,66px 72px 0 0.020em,6px 78px 0 0.020em,12px 78px 0 0.020em #007f7f,18px 78px 0 0.020em,24px 78px 0 0.020em #ffe3c5,30px 78px 0 0.020em #ffe3c5,36px 78px 0 0.020em,42px 78px 0 0.020em #4169e1,48px 78px 0 0.020em,54px 78px 0 0.020em,60px 78px 0 0.020em #007f7f,66px 78px 0 0.020em #007f7f,72px 78px 0 0.020em,6px 84px 0 0.020em,12px 84px 0 0.020em #007f7f,18px 84px 0 0.020em #007f7f,24px 84px 0 0.020em,30px 84px 0 0.020em,36px 84px 0 0.020em,42px 84px 0 0.020em,48px 84px 0 0.020em,54px 84px 0 0.020em #007f7f,60px 84px 0 0.020em #007f7f,66px 84px 0 0.020em,12px 90px 0 0.020em,18px 90px 0 0.020em,54px 90px 0 0.020em,60px 90px 0 0.020em;\n }\n}\n\n.nes-pokeball {\n position: relative;\n display: inline-block;\n width: 84px;\n height: 84px;\n}\n\n.nes-pokeball::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #060606;\n box-shadow: 36px 6px,42px 6px,48px 6px,54px 6px,24px 12px,30px 12px,36px 12px #ff001d,42px 12px #ff001d,48px 12px #ff001d,54px 12px #ff001d,60px 12px,66px 12px,18px 18px,24px 18px #fff,30px 18px #fff,36px 18px #ff001d,42px 18px #ff001d,48px 18px #ff001d,54px 18px #ff001d,60px 18px #ff001d,66px 18px #ff001d,72px 18px,12px 24px,18px 24px #fff,24px 24px #fff,30px 24px #ff001d,36px 24px #ff001d,42px 24px #ff001d,48px 24px #ff001d,54px 24px #ff001d,60px 24px #ff001d,66px 24px #ff001d,72px 24px,78px 24px,12px 30px,18px 30px #fff,24px 30px #ff001d,30px 30px #ff001d,36px 30px #ff001d,42px 30px #ff001d,48px 30px #ff001d,54px 30px #ff001d,60px 30px #ff001d,66px 30px #ff001d,72px 30px #ff001d,78px 30px,6px 36px,12px 36px #fff,18px 36px #ff001d,24px 36px #ff001d,30px 36px #ff001d,36px 36px #ff001d,42px 36px #ff001d,48px 36px #ff001d,54px 36px #ff001d,60px 36px #ff001d,66px 36px #ff001d,72px 36px #ff001d,78px 36px #ff001d,84px 36px,6px 42px,12px 42px,18px 42px,24px 42px #ff001d,30px 42px #ff001d,36px 42px #ff001d,42px 42px #ff001d,48px 42px,54px 42px,60px 42px,66px 42px #ff001d,72px 42px #ff001d,78px 42px #ff001d,84px 42px,6px 48px,12px 48px,18px 48px,24px 48px,30px 48px #ff001d,36px 48px #ff001d,42px 48px,48px 48px #fff,54px 48px #fff,60px 48px #fff,66px 48px,72px 48px #ff001d,78px 48px #ff001d,84px 48px,6px 54px,12px 54px #9fa1a1,18px 54px #fff,24px 54px,30px 54px,36px 54px,42px 54px,48px 54px #fff,54px 54px #fff,60px 54px #fff,66px 54px,72px 54px,78px 54px,84px 54px,12px 60px,18px 60px #fff,24px 60px #fff,30px 60px #fff,36px 60px,42px 60px,48px 60px #fff,54px 60px #fff,60px 60px #fff,66px 60px,72px 60px #fff,78px 60px,12px 66px,18px 66px #fff,24px 66px #fff,30px 66px #fff,36px 66px #fff,42px 66px #fff,48px 66px,54px 66px,60px 66px,66px 66px #fff,72px 66px #fff,78px 66px,18px 72px,24px 72px #9fa1a1,30px 72px #9fa1a1,36px 72px #fff,42px 72px #fff,48px 72px #fff,54px 72px #fff,60px 72px #fff,66px 72px #fff,72px 72px,24px 78px,30px 78px,36px 78px #9fa1a1,42px 78px #9fa1a1,48px 78px #9fa1a1,54px 78px #9fa1a1,60px 78px,66px 78px,36px 84px,42px 84px,48px 84px,54px 84px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-pokeball::before {\n box-shadow: 36px 6px 0 0.020em,42px 6px 0 0.020em,48px 6px 0 0.020em,54px 6px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em,36px 12px 0 0.020em #ff001d,42px 12px 0 0.020em #ff001d,48px 12px 0 0.020em #ff001d,54px 12px 0 0.020em #ff001d,60px 12px 0 0.020em,66px 12px 0 0.020em,18px 18px 0 0.020em,24px 18px 0 0.020em #fff,30px 18px 0 0.020em #fff,36px 18px 0 0.020em #ff001d,42px 18px 0 0.020em #ff001d,48px 18px 0 0.020em #ff001d,54px 18px 0 0.020em #ff001d,60px 18px 0 0.020em #ff001d,66px 18px 0 0.020em #ff001d,72px 18px 0 0.020em,12px 24px 0 0.020em,18px 24px 0 0.020em #fff,24px 24px 0 0.020em #fff,30px 24px 0 0.020em #ff001d,36px 24px 0 0.020em #ff001d,42px 24px 0 0.020em #ff001d,48px 24px 0 0.020em #ff001d,54px 24px 0 0.020em #ff001d,60px 24px 0 0.020em #ff001d,66px 24px 0 0.020em #ff001d,72px 24px 0 0.020em,78px 24px 0 0.020em,12px 30px 0 0.020em,18px 30px 0 0.020em #fff,24px 30px 0 0.020em #ff001d,30px 30px 0 0.020em #ff001d,36px 30px 0 0.020em #ff001d,42px 30px 0 0.020em #ff001d,48px 30px 0 0.020em #ff001d,54px 30px 0 0.020em #ff001d,60px 30px 0 0.020em #ff001d,66px 30px 0 0.020em #ff001d,72px 30px 0 0.020em #ff001d,78px 30px 0 0.020em,6px 36px 0 0.020em,12px 36px 0 0.020em #fff,18px 36px 0 0.020em #ff001d,24px 36px 0 0.020em #ff001d,30px 36px 0 0.020em #ff001d,36px 36px 0 0.020em #ff001d,42px 36px 0 0.020em #ff001d,48px 36px 0 0.020em #ff001d,54px 36px 0 0.020em #ff001d,60px 36px 0 0.020em #ff001d,66px 36px 0 0.020em #ff001d,72px 36px 0 0.020em #ff001d,78px 36px 0 0.020em #ff001d,84px 36px 0 0.020em,6px 42px 0 0.020em,12px 42px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em #ff001d,30px 42px 0 0.020em #ff001d,36px 42px 0 0.020em #ff001d,42px 42px 0 0.020em #ff001d,48px 42px 0 0.020em,54px 42px 0 0.020em,60px 42px 0 0.020em,66px 42px 0 0.020em #ff001d,72px 42px 0 0.020em #ff001d,78px 42px 0 0.020em #ff001d,84px 42px 0 0.020em,6px 48px 0 0.020em,12px 48px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em #ff001d,36px 48px 0 0.020em #ff001d,42px 48px 0 0.020em,48px 48px 0 0.020em #fff,54px 48px 0 0.020em #fff,60px 48px 0 0.020em #fff,66px 48px 0 0.020em,72px 48px 0 0.020em #ff001d,78px 48px 0 0.020em #ff001d,84px 48px 0 0.020em,6px 54px 0 0.020em,12px 54px 0 0.020em #9fa1a1,18px 54px 0 0.020em #fff,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em,42px 54px 0 0.020em,48px 54px 0 0.020em #fff,54px 54px 0 0.020em #fff,60px 54px 0 0.020em #fff,66px 54px 0 0.020em,72px 54px 0 0.020em,78px 54px 0 0.020em,84px 54px 0 0.020em,12px 60px 0 0.020em,18px 60px 0 0.020em #fff,24px 60px 0 0.020em #fff,30px 60px 0 0.020em #fff,36px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em #fff,54px 60px 0 0.020em #fff,60px 60px 0 0.020em #fff,66px 60px 0 0.020em,72px 60px 0 0.020em #fff,78px 60px 0 0.020em,12px 66px 0 0.020em,18px 66px 0 0.020em #fff,24px 66px 0 0.020em #fff,30px 66px 0 0.020em #fff,36px 66px 0 0.020em #fff,42px 66px 0 0.020em #fff,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em #fff,72px 66px 0 0.020em #fff,78px 66px 0 0.020em,18px 72px 0 0.020em,24px 72px 0 0.020em #9fa1a1,30px 72px 0 0.020em #9fa1a1,36px 72px 0 0.020em #fff,42px 72px 0 0.020em #fff,48px 72px 0 0.020em #fff,54px 72px 0 0.020em #fff,60px 72px 0 0.020em #fff,66px 72px 0 0.020em #fff,72px 72px 0 0.020em,24px 78px 0 0.020em,30px 78px 0 0.020em,36px 78px 0 0.020em #9fa1a1,42px 78px 0 0.020em #9fa1a1,48px 78px 0 0.020em #9fa1a1,54px 78px 0 0.020em #9fa1a1,60px 78px 0 0.020em,66px 78px 0 0.020em,36px 84px 0 0.020em,42px 84px 0 0.020em,48px 84px 0 0.020em,54px 84px 0 0.020em;\n }\n}\n\n.nes-bulbasaur {\n position: relative;\n display: inline-block;\n width: 120px;\n height: 102px;\n}\n\n.nes-bulbasaur::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #000;\n box-shadow: 78px 6px,84px 6px,90px 6px,72px 12px,78px 12px #8beb46,84px 12px #8beb46,90px 12px #8beb46,96px 12px,60px 18px,66px 18px,72px 18px,78px 18px #8beb46,84px 18px #8beb46,90px 18px #8beb46,96px 18px,48px 24px,54px 24px,60px 24px #8beb46,66px 24px #8beb46,72px 24px #2d8d22,78px 24px #8beb46,84px 24px #8beb46,90px 24px #2d8d22,96px 24px #8beb46,102px 24px,108px 24px,24px 30px,30px 30px,42px 30px,48px 30px #8beb46,54px 30px #8beb46,60px 30px #8beb46,66px 30px #2d8d22,72px 30px #2d8d22,78px 30px #8beb46,84px 30px #8beb46,90px 30px #2d8d22,96px 30px #8beb46,102px 30px #8beb46,108px 30px #8beb46,114px 30px,18px 36px,24px 36px #5ceee1,30px 36px #5ceee1,36px 36px,42px 36px,48px 36px #8beb46,54px 36px #8beb46,60px 36px #2d8d22,66px 36px #8beb46,72px 36px #2d8d22,78px 36px #8beb46,84px 36px #8beb46,90px 36px #8beb46,96px 36px #2d8d22,102px 36px #8beb46,108px 36px #8beb46,114px 36px #8beb46,120px 36px,18px 42px,24px 42px #5ceee1,30px 42px #5ceee1,36px 42px #5ceee1,42px 42px,48px 42px,54px 42px #2d8d22,60px 42px #8beb46,66px 42px #2d8d22,72px 42px #8beb46,78px 42px #8beb46,84px 42px #8beb46,90px 42px #8beb46,96px 42px #8beb46,102px 42px #2d8d22,108px 42px #8beb46,114px 42px #8beb46,120px 42px,18px 48px,24px 48px #5ceee1,30px 48px #5ceee1,36px 48px #5ceee1,42px 48px #5ceee1,48px 48px #3fc3b5,54px 48px,60px 48px #8beb46,66px 48px #2d8d22,72px 48px #8beb46,78px 48px #8beb46,84px 48px #8beb46,90px 48px #8beb46,96px 48px #8beb46,102px 48px #2d8d22,108px 48px #8beb46,114px 48px #8beb46,120px 48px,12px 54px,18px 54px #5ceee1,24px 54px #5ceee1,30px 54px #3fc3b5,36px 54px #5ceee1,42px 54px #3fc3b5,48px 54px #3fc3b5,54px 54px #5ceee1,60px 54px,66px 54px,72px 54px,78px 54px #8beb46,84px 54px #8beb46,90px 54px #8beb46,96px 54px #8beb46,102px 54px #2d8d22,108px 54px #8beb46,114px 54px,6px 60px,12px 60px,18px 60px #3fc3b5,24px 60px #5ceee1,30px 60px #5ceee1,36px 60px #5ceee1,42px 60px #5ceee1,48px 60px #5ceee1,54px 60px #5ceee1,60px 60px #5ceee1,66px 60px #5ceee1,72px 60px,78px 60px #8beb46,84px 60px #8beb46,90px 60px #8beb46,96px 60px,102px 60px,108px 60px,114px 60px,6px 66px,12px 66px,18px 66px #3fc3b5,24px 66px #5ceee1,30px 66px #5ceee1,36px 66px #5ceee1,42px 66px #3fc3b5,48px 66px #5ceee1,54px 66px #5ceee1,60px 66px #5ceee1,66px 66px,72px 66px #3fc3b5,78px 66px,84px 66px,90px 66px,96px 66px #3fc3b5,102px 66px #3fc3b5,108px 66px #3fc3b5,114px 66px,6px 72px,12px 72px #5ceee1,18px 72px #5ceee1,24px 72px #5ceee1,30px 72px #5ceee1,36px 72px #3fc3b5,42px 72px #5ceee1,48px 72px,54px 72px,60px 72px #5ceee1,66px 72px #3fc3b5,72px 72px #3fc3b5,78px 72px #3fc3b5,84px 72px #3fc3b5,90px 72px #3fc3b5,96px 72px,102px 72px #3fc3b5,108px 72px #fdfdf5,114px 72px,6px 78px,12px 78px #3fc3b5,18px 78px #5ceee1,24px 78px #5ceee1,30px 78px #5ceee1,36px 78px #5ceee1,42px 78px,48px 78px #ca242a,54px 78px #fdfdf5,60px 78px #fdfdf5,66px 78px #3fc3b5,72px 78px #3fc3b5,78px 78px,84px 78px #3fc3b5,90px 78px #3fc3b5,96px 78px,102px 78px,108px 78px,12px 84px,18px 84px #3fc3b5,24px 84px #5ceee1,30px 84px #5ceee1,36px 84px #5ceee1,42px 84px,48px 84px #ca242a,54px 84px #fdfdf5,60px 84px #5ceee1,66px 84px #3fc3b5,72px 84px,78px 84px #3fc3b5,84px 84px #3fc3b5,90px 84px,18px 90px,24px 90px,30px 90px #3fc3b5,36px 90px #3fc3b5,42px 90px #3fc3b5,48px 90px #3fc3b5,54px 90px #3fc3b5,60px 90px #3fc3b5,66px 90px,72px 90px #3fc3b5,78px 90px #3fc3b5,84px 90px #3fc3b5,90px 90px,30px 96px,36px 96px,42px 96px,48px 96px,54px 96px,60px 96px,66px 96px,72px 96px #fdfdf5,78px 96px #3fc3b5,84px 96px #fdfdf5,90px 96px,72px 102px,78px 102px,84px 102px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-bulbasaur::before {\n box-shadow: 78px 6px 0 0.020em,84px 6px 0 0.020em,90px 6px 0 0.020em,72px 12px 0 0.020em,78px 12px 0 0.020em #8beb46,84px 12px 0 0.020em #8beb46,90px 12px 0 0.020em #8beb46,96px 12px 0 0.020em,60px 18px 0 0.020em,66px 18px 0 0.020em,72px 18px 0 0.020em,78px 18px 0 0.020em #8beb46,84px 18px 0 0.020em #8beb46,90px 18px 0 0.020em #8beb46,96px 18px 0 0.020em,48px 24px 0 0.020em,54px 24px 0 0.020em,60px 24px 0 0.020em #8beb46,66px 24px 0 0.020em #8beb46,72px 24px 0 0.020em #2d8d22,78px 24px 0 0.020em #8beb46,84px 24px 0 0.020em #8beb46,90px 24px 0 0.020em #2d8d22,96px 24px 0 0.020em #8beb46,102px 24px 0 0.020em,108px 24px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,42px 30px 0 0.020em,48px 30px 0 0.020em #8beb46,54px 30px 0 0.020em #8beb46,60px 30px 0 0.020em #8beb46,66px 30px 0 0.020em #2d8d22,72px 30px 0 0.020em #2d8d22,78px 30px 0 0.020em #8beb46,84px 30px 0 0.020em #8beb46,90px 30px 0 0.020em #2d8d22,96px 30px 0 0.020em #8beb46,102px 30px 0 0.020em #8beb46,108px 30px 0 0.020em #8beb46,114px 30px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em #5ceee1,30px 36px 0 0.020em #5ceee1,36px 36px 0 0.020em,42px 36px 0 0.020em,48px 36px 0 0.020em #8beb46,54px 36px 0 0.020em #8beb46,60px 36px 0 0.020em #2d8d22,66px 36px 0 0.020em #8beb46,72px 36px 0 0.020em #2d8d22,78px 36px 0 0.020em #8beb46,84px 36px 0 0.020em #8beb46,90px 36px 0 0.020em #8beb46,96px 36px 0 0.020em #2d8d22,102px 36px 0 0.020em #8beb46,108px 36px 0 0.020em #8beb46,114px 36px 0 0.020em #8beb46,120px 36px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em #5ceee1,30px 42px 0 0.020em #5ceee1,36px 42px 0 0.020em #5ceee1,42px 42px 0 0.020em,48px 42px 0 0.020em,54px 42px 0 0.020em #2d8d22,60px 42px 0 0.020em #8beb46,66px 42px 0 0.020em #2d8d22,72px 42px 0 0.020em #8beb46,78px 42px 0 0.020em #8beb46,84px 42px 0 0.020em #8beb46,90px 42px 0 0.020em #8beb46,96px 42px 0 0.020em #8beb46,102px 42px 0 0.020em #2d8d22,108px 42px 0 0.020em #8beb46,114px 42px 0 0.020em #8beb46,120px 42px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em #5ceee1,30px 48px 0 0.020em #5ceee1,36px 48px 0 0.020em #5ceee1,42px 48px 0 0.020em #5ceee1,48px 48px 0 0.020em #3fc3b5,54px 48px 0 0.020em,60px 48px 0 0.020em #8beb46,66px 48px 0 0.020em #2d8d22,72px 48px 0 0.020em #8beb46,78px 48px 0 0.020em #8beb46,84px 48px 0 0.020em #8beb46,90px 48px 0 0.020em #8beb46,96px 48px 0 0.020em #8beb46,102px 48px 0 0.020em #2d8d22,108px 48px 0 0.020em #8beb46,114px 48px 0 0.020em #8beb46,120px 48px 0 0.020em,12px 54px 0 0.020em,18px 54px 0 0.020em #5ceee1,24px 54px 0 0.020em #5ceee1,30px 54px 0 0.020em #3fc3b5,36px 54px 0 0.020em #5ceee1,42px 54px 0 0.020em #3fc3b5,48px 54px 0 0.020em #3fc3b5,54px 54px 0 0.020em #5ceee1,60px 54px 0 0.020em,66px 54px 0 0.020em,72px 54px 0 0.020em,78px 54px 0 0.020em #8beb46,84px 54px 0 0.020em #8beb46,90px 54px 0 0.020em #8beb46,96px 54px 0 0.020em #8beb46,102px 54px 0 0.020em #2d8d22,108px 54px 0 0.020em #8beb46,114px 54px 0 0.020em,6px 60px 0 0.020em,12px 60px 0 0.020em,18px 60px 0 0.020em #3fc3b5,24px 60px 0 0.020em #5ceee1,30px 60px 0 0.020em #5ceee1,36px 60px 0 0.020em #5ceee1,42px 60px 0 0.020em #5ceee1,48px 60px 0 0.020em #5ceee1,54px 60px 0 0.020em #5ceee1,60px 60px 0 0.020em #5ceee1,66px 60px 0 0.020em #5ceee1,72px 60px 0 0.020em,78px 60px 0 0.020em #8beb46,84px 60px 0 0.020em #8beb46,90px 60px 0 0.020em #8beb46,96px 60px 0 0.020em,102px 60px 0 0.020em,108px 60px 0 0.020em,114px 60px 0 0.020em,6px 66px 0 0.020em,12px 66px 0 0.020em,18px 66px 0 0.020em #3fc3b5,24px 66px 0 0.020em #5ceee1,30px 66px 0 0.020em #5ceee1,36px 66px 0 0.020em #5ceee1,42px 66px 0 0.020em #3fc3b5,48px 66px 0 0.020em #5ceee1,54px 66px 0 0.020em #5ceee1,60px 66px 0 0.020em #5ceee1,66px 66px 0 0.020em,72px 66px 0 0.020em #3fc3b5,78px 66px 0 0.020em,84px 66px 0 0.020em,90px 66px 0 0.020em,96px 66px 0 0.020em #3fc3b5,102px 66px 0 0.020em #3fc3b5,108px 66px 0 0.020em #3fc3b5,114px 66px 0 0.020em,6px 72px 0 0.020em,12px 72px 0 0.020em #5ceee1,18px 72px 0 0.020em #5ceee1,24px 72px 0 0.020em #5ceee1,30px 72px 0 0.020em #5ceee1,36px 72px 0 0.020em #3fc3b5,42px 72px 0 0.020em #5ceee1,48px 72px 0 0.020em,54px 72px 0 0.020em,60px 72px 0 0.020em #5ceee1,66px 72px 0 0.020em #3fc3b5,72px 72px 0 0.020em #3fc3b5,78px 72px 0 0.020em #3fc3b5,84px 72px 0 0.020em #3fc3b5,90px 72px 0 0.020em #3fc3b5,96px 72px 0 0.020em,102px 72px 0 0.020em #3fc3b5,108px 72px 0 0.020em #fdfdf5,114px 72px 0 0.020em,6px 78px 0 0.020em,12px 78px 0 0.020em #3fc3b5,18px 78px 0 0.020em #5ceee1,24px 78px 0 0.020em #5ceee1,30px 78px 0 0.020em #5ceee1,36px 78px 0 0.020em #5ceee1,42px 78px 0 0.020em,48px 78px 0 0.020em #ca242a,54px 78px 0 0.020em #fdfdf5,60px 78px 0 0.020em #fdfdf5,66px 78px 0 0.020em #3fc3b5,72px 78px 0 0.020em #3fc3b5,78px 78px 0 0.020em,84px 78px 0 0.020em #3fc3b5,90px 78px 0 0.020em #3fc3b5,96px 78px 0 0.020em,102px 78px 0 0.020em,108px 78px 0 0.020em,12px 84px 0 0.020em,18px 84px 0 0.020em #3fc3b5,24px 84px 0 0.020em #5ceee1,30px 84px 0 0.020em #5ceee1,36px 84px 0 0.020em #5ceee1,42px 84px 0 0.020em,48px 84px 0 0.020em #ca242a,54px 84px 0 0.020em #fdfdf5,60px 84px 0 0.020em #5ceee1,66px 84px 0 0.020em #3fc3b5,72px 84px 0 0.020em,78px 84px 0 0.020em #3fc3b5,84px 84px 0 0.020em #3fc3b5,90px 84px 0 0.020em,18px 90px 0 0.020em,24px 90px 0 0.020em,30px 90px 0 0.020em #3fc3b5,36px 90px 0 0.020em #3fc3b5,42px 90px 0 0.020em #3fc3b5,48px 90px 0 0.020em #3fc3b5,54px 90px 0 0.020em #3fc3b5,60px 90px 0 0.020em #3fc3b5,66px 90px 0 0.020em,72px 90px 0 0.020em #3fc3b5,78px 90px 0 0.020em #3fc3b5,84px 90px 0 0.020em #3fc3b5,90px 90px 0 0.020em,30px 96px 0 0.020em,36px 96px 0 0.020em,42px 96px 0 0.020em,48px 96px 0 0.020em,54px 96px 0 0.020em,60px 96px 0 0.020em,66px 96px 0 0.020em,72px 96px 0 0.020em #fdfdf5,78px 96px 0 0.020em #3fc3b5,84px 96px 0 0.020em #fdfdf5,90px 96px 0 0.020em,72px 102px 0 0.020em,78px 102px 0 0.020em,84px 102px 0 0.020em;\n }\n}\n\n.nes-charmander {\n position: relative;\n display: inline-block;\n width: 126px;\n height: 108px;\n}\n\n.nes-charmander::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #f77702;\n box-shadow: 30px 6px #000202,36px 6px #000202,42px 6px #000202,48px 6px #000202,108px 6px #000202,24px 12px #000202,30px 12px,36px 12px,42px 12px,48px 12px,54px 12px #000202,102px 12px #000202,108px 12px #eb2010,114px 12px #000202,18px 18px #000202,24px 18px,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px #000202,102px 18px #000202,108px 18px #eb2010,114px 18px #eb2010,120px 18px #000202,18px 24px #000202,24px 24px,30px 24px,36px 24px,42px 24px,48px 24px,54px 24px,60px 24px #000202,102px 24px #000202,108px 24px #eb2010,114px 24px #eb2010,120px 24px #000202,12px 30px #000202,18px 30px,24px 30px,30px 30px,36px 30px,42px 30px,48px 30px,54px 30px,60px 30px,66px 30px #000202,96px 30px #000202,102px 30px #eb2010,108px 30px #eb2010,114px 30px,120px 30px #eb2010,126px 30px #000202,6px 36px #000202,12px 36px,18px 36px,24px 36px,30px 36px,36px 36px #fdfcff,42px 36px #000202,48px 36px,54px 36px,60px 36px,66px 36px #000202,96px 36px #000202,102px 36px #eb2010,108px 36px,114px 36px #e7d70e,120px 36px #eb2010,126px 36px #000202,6px 42px #000202,12px 42px,18px 42px,24px 42px,30px 42px,36px 42px #000202,42px 42px #000202,48px 42px,54px 42px,60px 42px,66px 42px,72px 42px #000202,96px 42px #000202,102px 42px #eb2010,108px 42px #e5d70a,114px 42px #e5d70a,120px 42px #eb2010,126px 42px #000202,6px 48px #000202,12px 48px,18px 48px,24px 48px,30px 48px,36px 48px #000202,42px 48px #000202,48px 48px,54px 48px,60px 48px,66px 48px,72px 48px #000202,102px 48px #000202,108px 48px #e5d70a,114px 48px #000202,120px 48px #000202,12px 54px #000202,18px 54px,24px 54px,30px 54px,36px 54px,42px 54px,48px 54px,54px 54px,60px 54px,66px 54px,72px 54px,78px 54px #000202,102px 54px #000202,108px 54px,114px 54px #000202,18px 60px #000202,24px 60px #000202,30px 60px,36px 60px,42px 60px,48px 60px,54px 60px,60px 60px,66px 60px,72px 60px,78px 60px,84px 60px #000202,96px 60px #000202,102px 60px,108px 60px,114px 60px #000202,30px 66px #000202,36px 66px #000202,42px 66px #000202,48px 66px,54px 66px,60px 66px #000202,66px 66px,72px 66px,78px 66px,84px 66px #000202,90px 66px #000202,96px 66px,102px 66px,108px 66px #000202,36px 72px #000202,42px 72px #e7d70e,48px 72px #e5d70a,54px 72px #000202,60px 72px,66px 72px,72px 72px,78px 72px,84px 72px,90px 72px #000202,96px 72px,102px 72px,108px 72px #000202,36px 78px #000202,42px 78px #e5d70a,48px 78px #e5d70a,54px 78px #e5d70a,60px 78px #000202,66px 78px #000202,72px 78px,78px 78px,84px 78px,90px 78px #000202,96px 78px,102px 78px #000202,30px 84px #000202,36px 84px #fdfcff,42px 84px #000202,48px 84px #e7d70e,54px 84px #e5d70a,60px 84px #e5d70a,66px 84px,72px 84px,78px 84px,84px 84px,90px 84px #000202,96px 84px #000202,36px 90px #000202,42px 90px #000202,48px 90px #000202,54px 90px #e5d70a,60px 90px #e5d70a,66px 90px,72px 90px,78px 90px,84px 90px #000202,90px 90px #000202,54px 96px #000202,60px 96px #000202,66px 96px #000202,78px 96px #000202,84px 96px #000202,60px 102px #000202,66px 102px #fdfcff,78px 102px #fdfcff,84px 102px #000202,66px 108px #000202,72px 108px #000202,78px 108px #000202;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-charmander::before {\n box-shadow: 30px 6px 0 0.020em #000202,36px 6px 0 0.020em #000202,42px 6px 0 0.020em #000202,48px 6px 0 0.020em #000202,108px 6px 0 0.020em #000202,24px 12px 0 0.020em #000202,30px 12px 0 0.020em,36px 12px 0 0.020em,42px 12px 0 0.020em,48px 12px 0 0.020em,54px 12px 0 0.020em #000202,102px 12px 0 0.020em #000202,108px 12px 0 0.020em #eb2010,114px 12px 0 0.020em #000202,18px 18px 0 0.020em #000202,24px 18px 0 0.020em,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em #000202,102px 18px 0 0.020em #000202,108px 18px 0 0.020em #eb2010,114px 18px 0 0.020em #eb2010,120px 18px 0 0.020em #000202,18px 24px 0 0.020em #000202,24px 24px 0 0.020em,30px 24px 0 0.020em,36px 24px 0 0.020em,42px 24px 0 0.020em,48px 24px 0 0.020em,54px 24px 0 0.020em,60px 24px 0 0.020em #000202,102px 24px 0 0.020em #000202,108px 24px 0 0.020em #eb2010,114px 24px 0 0.020em #eb2010,120px 24px 0 0.020em #000202,12px 30px 0 0.020em #000202,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,36px 30px 0 0.020em,42px 30px 0 0.020em,48px 30px 0 0.020em,54px 30px 0 0.020em,60px 30px 0 0.020em,66px 30px 0 0.020em #000202,96px 30px 0 0.020em #000202,102px 30px 0 0.020em #eb2010,108px 30px 0 0.020em #eb2010,114px 30px 0 0.020em,120px 30px 0 0.020em #eb2010,126px 30px 0 0.020em #000202,6px 36px 0 0.020em #000202,12px 36px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em #fdfcff,42px 36px 0 0.020em #000202,48px 36px 0 0.020em,54px 36px 0 0.020em,60px 36px 0 0.020em,66px 36px 0 0.020em #000202,96px 36px 0 0.020em #000202,102px 36px 0 0.020em #eb2010,108px 36px 0 0.020em,114px 36px 0 0.020em #e7d70e,120px 36px 0 0.020em #eb2010,126px 36px 0 0.020em #000202,6px 42px 0 0.020em #000202,12px 42px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em,36px 42px 0 0.020em #000202,42px 42px 0 0.020em #000202,48px 42px 0 0.020em,54px 42px 0 0.020em,60px 42px 0 0.020em,66px 42px 0 0.020em,72px 42px 0 0.020em #000202,96px 42px 0 0.020em #000202,102px 42px 0 0.020em #eb2010,108px 42px 0 0.020em #e5d70a,114px 42px 0 0.020em #e5d70a,120px 42px 0 0.020em #eb2010,126px 42px 0 0.020em #000202,6px 48px 0 0.020em #000202,12px 48px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em,36px 48px 0 0.020em #000202,42px 48px 0 0.020em #000202,48px 48px 0 0.020em,54px 48px 0 0.020em,60px 48px 0 0.020em,66px 48px 0 0.020em,72px 48px 0 0.020em #000202,102px 48px 0 0.020em #000202,108px 48px 0 0.020em #e5d70a,114px 48px 0 0.020em #000202,120px 48px 0 0.020em #000202,12px 54px 0 0.020em #000202,18px 54px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em,42px 54px 0 0.020em,48px 54px 0 0.020em,54px 54px 0 0.020em,60px 54px 0 0.020em,66px 54px 0 0.020em,72px 54px 0 0.020em,78px 54px 0 0.020em #000202,102px 54px 0 0.020em #000202,108px 54px 0 0.020em,114px 54px 0 0.020em #000202,18px 60px 0 0.020em #000202,24px 60px 0 0.020em #000202,30px 60px 0 0.020em,36px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em,54px 60px 0 0.020em,60px 60px 0 0.020em,66px 60px 0 0.020em,72px 60px 0 0.020em,78px 60px 0 0.020em,84px 60px 0 0.020em #000202,96px 60px 0 0.020em #000202,102px 60px 0 0.020em,108px 60px 0 0.020em,114px 60px 0 0.020em #000202,30px 66px 0 0.020em #000202,36px 66px 0 0.020em #000202,42px 66px 0 0.020em #000202,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em #000202,66px 66px 0 0.020em,72px 66px 0 0.020em,78px 66px 0 0.020em,84px 66px 0 0.020em #000202,90px 66px 0 0.020em #000202,96px 66px 0 0.020em,102px 66px 0 0.020em,108px 66px 0 0.020em #000202,36px 72px 0 0.020em #000202,42px 72px 0 0.020em #e7d70e,48px 72px 0 0.020em #e5d70a,54px 72px 0 0.020em #000202,60px 72px 0 0.020em,66px 72px 0 0.020em,72px 72px 0 0.020em,78px 72px 0 0.020em,84px 72px 0 0.020em,90px 72px 0 0.020em #000202,96px 72px 0 0.020em,102px 72px 0 0.020em,108px 72px 0 0.020em #000202,36px 78px 0 0.020em #000202,42px 78px 0 0.020em #e5d70a,48px 78px 0 0.020em #e5d70a,54px 78px 0 0.020em #e5d70a,60px 78px 0 0.020em #000202,66px 78px 0 0.020em #000202,72px 78px 0 0.020em,78px 78px 0 0.020em,84px 78px 0 0.020em,90px 78px 0 0.020em #000202,96px 78px 0 0.020em,102px 78px 0 0.020em #000202,30px 84px 0 0.020em #000202,36px 84px 0 0.020em #fdfcff,42px 84px 0 0.020em #000202,48px 84px 0 0.020em #e7d70e,54px 84px 0 0.020em #e5d70a,60px 84px 0 0.020em #e5d70a,66px 84px 0 0.020em,72px 84px 0 0.020em,78px 84px 0 0.020em,84px 84px 0 0.020em,90px 84px 0 0.020em #000202,96px 84px 0 0.020em #000202,36px 90px 0 0.020em #000202,42px 90px 0 0.020em #000202,48px 90px 0 0.020em #000202,54px 90px 0 0.020em #e5d70a,60px 90px 0 0.020em #e5d70a,66px 90px 0 0.020em,72px 90px 0 0.020em,78px 90px 0 0.020em,84px 90px 0 0.020em #000202,90px 90px 0 0.020em #000202,54px 96px 0 0.020em #000202,60px 96px 0 0.020em #000202,66px 96px 0 0.020em #000202,78px 96px 0 0.020em #000202,84px 96px 0 0.020em #000202,60px 102px 0 0.020em #000202,66px 102px 0 0.020em #fdfcff,78px 102px 0 0.020em #fdfcff,84px 102px 0 0.020em #000202,66px 108px 0 0.020em #000202,72px 108px 0 0.020em #000202,78px 108px 0 0.020em #000202;\n }\n}\n\n.nes-squirtle {\n position: relative;\n display: inline-block;\n width: 126px;\n height: 102px;\n}\n\n.nes-squirtle::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #9cf;\n box-shadow: 24px 6px #000,30px 6px #000,36px 6px #000,42px 6px #000,102px 6px #000,108px 6px #000,114px 6px #000,18px 12px #000,24px 12px,30px 12px,36px 12px,42px 12px,48px 12px #000,54px 12px #000,96px 12px #000,102px 12px,108px 12px,114px 12px,120px 12px #000,12px 18px #000,18px 18px,24px 18px,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px #000,66px 18px #000,90px 18px #000,96px 18px,102px 18px,108px 18px,114px 18px,120px 18px,126px 18px #000,12px 24px #000,18px 24px,24px 24px,30px 24px,36px 24px,42px 24px,48px 24px,54px 24px,60px 24px #000,66px 24px #f89934,72px 24px #000,78px 24px #000,90px 24px #000,96px 24px,102px 24px,108px 24px,114px 24px #000,120px 24px,126px 24px #000,6px 30px #000,12px 30px #cb6633,18px 30px,24px 30px,30px 30px,36px 30px,42px 30px,48px 30px,54px 30px,60px 30px,66px 30px #f89934,72px 30px #f89934,78px 30px #f89934,84px 30px #000,90px 30px,96px 30px,102px 30px,108px 30px #000,114px 30px,120px 30px,126px 30px #000,6px 36px #000,12px 36px,18px 36px,24px 36px,30px 36px,36px 36px #fff,42px 36px #000,48px 36px,54px 36px,60px 36px,66px 36px #fff,72px 36px #f89934,78px 36px #f89934,84px 36px #f89934,90px 36px #000,96px 36px,102px 36px,108px 36px #000,114px 36px,120px 36px #000,6px 42px #000,12px 42px,18px 42px,24px 42px,30px 42px,36px 42px #000,42px 42px #cb6633,48px 42px,54px 42px,60px 42px,66px 42px #fff,72px 42px #f89934,78px 42px #f89934,84px 42px #f89934,90px 42px #000,96px 42px,102px 42px #000,108px 42px #000,114px 42px #000,12px 48px #000,18px 48px,24px 48px,30px 48px,36px 48px #000,42px 48px #cb6633,48px 48px,54px 48px,60px 48px,66px 48px #000,72px 48px #fff,78px 48px #f89934,84px 48px #f89934,90px 48px #f89934,96px 48px #000,102px 48px #000,18px 54px #000,24px 54px #000,30px 54px,36px 54px,42px 54px,48px 54px,54px 54px #000,60px 54px #000,66px 54px,72px 54px,78px 54px #fff,84px 54px #f89934,90px 54px #f89934,96px 54px #000,18px 60px #000,24px 60px,30px 60px #000,36px 60px #000,42px 60px #000,48px 60px #000,54px 60px,60px 60px,66px 60px,72px 60px,78px 60px #fff,84px 60px #f89934,90px 60px #f89934,96px 60px #000,24px 66px #000,30px 66px #000,36px 66px #ff3,42px 66px #ff3,48px 66px #000,54px 66px,60px 66px,66px 66px,72px 66px #000,78px 66px #fff,84px 66px #f89934,90px 66px #f89934,96px 66px #000,36px 72px #000,42px 72px #ff3,48px 72px #ff3,54px 72px #000,60px 72px #000,66px 72px #000,72px 72px #000,78px 72px #fff,84px 72px #f89934,90px 72px #f89934,96px 72px #000,30px 78px #000,36px 78px,42px 78px #000,48px 78px #ff3,54px 78px #ff3,60px 78px #ff3,66px 78px #ff3,72px 78px #ff3,78px 78px #000,84px 78px #fff,90px 78px #000,36px 84px #000,42px 84px #000,48px 84px #000,54px 84px #000,60px 84px #ff3,66px 84px #ff3,72px 84px,78px 84px #000,84px 84px #fff,90px 84px #000,54px 90px #000,60px 90px #000,66px 90px #000,72px 90px,78px 90px #000,84px 90px #000,60px 96px #000,66px 96px,72px 96px,78px 96px,84px 96px #000,66px 102px #000,72px 102px #000,78px 102px #000;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-squirtle::before {\n box-shadow: 24px 6px 0 0.020em #000,30px 6px 0 0.020em #000,36px 6px 0 0.020em #000,42px 6px 0 0.020em #000,102px 6px 0 0.020em #000,108px 6px 0 0.020em #000,114px 6px 0 0.020em #000,18px 12px 0 0.020em #000,24px 12px 0 0.020em,30px 12px 0 0.020em,36px 12px 0 0.020em,42px 12px 0 0.020em,48px 12px 0 0.020em #000,54px 12px 0 0.020em #000,96px 12px 0 0.020em #000,102px 12px 0 0.020em,108px 12px 0 0.020em,114px 12px 0 0.020em,120px 12px 0 0.020em #000,12px 18px 0 0.020em #000,18px 18px 0 0.020em,24px 18px 0 0.020em,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em #000,66px 18px 0 0.020em #000,90px 18px 0 0.020em #000,96px 18px 0 0.020em,102px 18px 0 0.020em,108px 18px 0 0.020em,114px 18px 0 0.020em,120px 18px 0 0.020em,126px 18px 0 0.020em #000,12px 24px 0 0.020em #000,18px 24px 0 0.020em,24px 24px 0 0.020em,30px 24px 0 0.020em,36px 24px 0 0.020em,42px 24px 0 0.020em,48px 24px 0 0.020em,54px 24px 0 0.020em,60px 24px 0 0.020em #000,66px 24px 0 0.020em #f89934,72px 24px 0 0.020em #000,78px 24px 0 0.020em #000,90px 24px 0 0.020em #000,96px 24px 0 0.020em,102px 24px 0 0.020em,108px 24px 0 0.020em,114px 24px 0 0.020em #000,120px 24px 0 0.020em,126px 24px 0 0.020em #000,6px 30px 0 0.020em #000,12px 30px 0 0.020em #cb6633,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,36px 30px 0 0.020em,42px 30px 0 0.020em,48px 30px 0 0.020em,54px 30px 0 0.020em,60px 30px 0 0.020em,66px 30px 0 0.020em #f89934,72px 30px 0 0.020em #f89934,78px 30px 0 0.020em #f89934,84px 30px 0 0.020em #000,90px 30px 0 0.020em,96px 30px 0 0.020em,102px 30px 0 0.020em,108px 30px 0 0.020em #000,114px 30px 0 0.020em,120px 30px 0 0.020em,126px 30px 0 0.020em #000,6px 36px 0 0.020em #000,12px 36px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em #fff,42px 36px 0 0.020em #000,48px 36px 0 0.020em,54px 36px 0 0.020em,60px 36px 0 0.020em,66px 36px 0 0.020em #fff,72px 36px 0 0.020em #f89934,78px 36px 0 0.020em #f89934,84px 36px 0 0.020em #f89934,90px 36px 0 0.020em #000,96px 36px 0 0.020em,102px 36px 0 0.020em,108px 36px 0 0.020em #000,114px 36px 0 0.020em,120px 36px 0 0.020em #000,6px 42px 0 0.020em #000,12px 42px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em,36px 42px 0 0.020em #000,42px 42px 0 0.020em #cb6633,48px 42px 0 0.020em,54px 42px 0 0.020em,60px 42px 0 0.020em,66px 42px 0 0.020em #fff,72px 42px 0 0.020em #f89934,78px 42px 0 0.020em #f89934,84px 42px 0 0.020em #f89934,90px 42px 0 0.020em #000,96px 42px 0 0.020em,102px 42px 0 0.020em #000,108px 42px 0 0.020em #000,114px 42px 0 0.020em #000,12px 48px 0 0.020em #000,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em,36px 48px 0 0.020em #000,42px 48px 0 0.020em #cb6633,48px 48px 0 0.020em,54px 48px 0 0.020em,60px 48px 0 0.020em,66px 48px 0 0.020em #000,72px 48px 0 0.020em #fff,78px 48px 0 0.020em #f89934,84px 48px 0 0.020em #f89934,90px 48px 0 0.020em #f89934,96px 48px 0 0.020em #000,102px 48px 0 0.020em #000,18px 54px 0 0.020em #000,24px 54px 0 0.020em #000,30px 54px 0 0.020em,36px 54px 0 0.020em,42px 54px 0 0.020em,48px 54px 0 0.020em,54px 54px 0 0.020em #000,60px 54px 0 0.020em #000,66px 54px 0 0.020em,72px 54px 0 0.020em,78px 54px 0 0.020em #fff,84px 54px 0 0.020em #f89934,90px 54px 0 0.020em #f89934,96px 54px 0 0.020em #000,18px 60px 0 0.020em #000,24px 60px 0 0.020em,30px 60px 0 0.020em #000,36px 60px 0 0.020em #000,42px 60px 0 0.020em #000,48px 60px 0 0.020em #000,54px 60px 0 0.020em,60px 60px 0 0.020em,66px 60px 0 0.020em,72px 60px 0 0.020em,78px 60px 0 0.020em #fff,84px 60px 0 0.020em #f89934,90px 60px 0 0.020em #f89934,96px 60px 0 0.020em #000,24px 66px 0 0.020em #000,30px 66px 0 0.020em #000,36px 66px 0 0.020em #ff3,42px 66px 0 0.020em #ff3,48px 66px 0 0.020em #000,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em,72px 66px 0 0.020em #000,78px 66px 0 0.020em #fff,84px 66px 0 0.020em #f89934,90px 66px 0 0.020em #f89934,96px 66px 0 0.020em #000,36px 72px 0 0.020em #000,42px 72px 0 0.020em #ff3,48px 72px 0 0.020em #ff3,54px 72px 0 0.020em #000,60px 72px 0 0.020em #000,66px 72px 0 0.020em #000,72px 72px 0 0.020em #000,78px 72px 0 0.020em #fff,84px 72px 0 0.020em #f89934,90px 72px 0 0.020em #f89934,96px 72px 0 0.020em #000,30px 78px 0 0.020em #000,36px 78px 0 0.020em,42px 78px 0 0.020em #000,48px 78px 0 0.020em #ff3,54px 78px 0 0.020em #ff3,60px 78px 0 0.020em #ff3,66px 78px 0 0.020em #ff3,72px 78px 0 0.020em #ff3,78px 78px 0 0.020em #000,84px 78px 0 0.020em #fff,90px 78px 0 0.020em #000,36px 84px 0 0.020em #000,42px 84px 0 0.020em #000,48px 84px 0 0.020em #000,54px 84px 0 0.020em #000,60px 84px 0 0.020em #ff3,66px 84px 0 0.020em #ff3,72px 84px 0 0.020em,78px 84px 0 0.020em #000,84px 84px 0 0.020em #fff,90px 84px 0 0.020em #000,54px 90px 0 0.020em #000,60px 90px 0 0.020em #000,66px 90px 0 0.020em #000,72px 90px 0 0.020em,78px 90px 0 0.020em #000,84px 90px 0 0.020em #000,60px 96px 0 0.020em #000,66px 96px 0 0.020em,72px 96px 0 0.020em,78px 96px 0 0.020em,84px 96px 0 0.020em #000,66px 102px 0 0.020em #000,72px 102px 0 0.020em #000,78px 102px 0 0.020em #000;\n }\n}\n\n.nes-phone {\n position: relative;\n display: inline-block;\n width: 48px;\n height: 126px;\n}\n\n.nes-phone::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #000;\n box-shadow: 18px 6px,24px 6px,30px 6px,36px 6px,42px 6px,48px 6px,12px 12px,18px 12px,24px 12px #3c4665,30px 12px #3c4665,36px 12px #3c4665,42px 12px #596985,48px 12px,6px 18px,12px 18px,18px 18px #3c4665,24px 18px #3c4665,30px 18px #3c4665,36px 18px #3c4665,42px 18px #596985,48px 18px,6px 24px,12px 24px #3c4665,18px 24px #3c4665,24px 24px #3c4665,30px 24px #3c4665,36px 24px #3c4665,42px 24px #596985,48px 24px,6px 30px,12px 30px #3c4665,18px 30px #3c4665,24px 30px #3c4665,30px 30px #3c4665,36px 30px #3c4665,42px 30px #596985,48px 30px,6px 36px,12px 36px #3c4665,18px 36px #3c4665,24px 36px #3c4665,30px 36px #3c4665,36px 36px #3c4665,42px 36px #596985,48px 36px,6px 42px,12px 42px #3c4665,18px 42px #3c4665,24px 42px,30px 42px,36px 42px,42px 42px,48px 42px,6px 48px,12px 48px #3c4665,18px 48px #3c4665,24px 48px,6px 54px,12px 54px #3c4665,18px 54px #3c4665,24px 54px,6px 60px,12px 60px #3c4665,18px 60px #3c4665,24px 60px,6px 66px,12px 66px #3c4665,18px 66px #3c4665,24px 66px,6px 72px,12px 72px #3c4665,18px 72px #3c4665,24px 72px,6px 78px,12px 78px #3c4665,18px 78px #3c4665,24px 78px,6px 84px,12px 84px #3c4665,18px 84px #3c4665,24px 84px,6px 90px,12px 90px #3c4665,18px 90px #3c4665,24px 90px,30px 90px,36px 90px,42px 90px,48px 90px,6px 96px,12px 96px #3c4665,18px 96px #3c4665,24px 96px #3c4665,30px 96px #3c4665,36px 96px #3c4665,42px 96px #596985,48px 96px,6px 102px,12px 102px #3c4665,18px 102px #3c4665,24px 102px #3c4665,30px 102px #3c4665,36px 102px #3c4665,42px 102px #596985,48px 102px,6px 108px,12px 108px #3c4665,18px 108px #3c4665,24px 108px #3c4665,30px 108px #3c4665,36px 108px #3c4665,42px 108px #596985,48px 108px,6px 114px,12px 114px,18px 114px #3c4665,24px 114px #3c4665,30px 114px #3c4665,36px 114px #3c4665,42px 114px #596985,48px 114px,12px 120px,18px 120px,24px 120px #3c4665,30px 120px #3c4665,36px 120px #3c4665,42px 120px #596985,48px 120px,18px 126px,24px 126px,30px 126px,36px 126px,42px 126px,48px 126px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-phone::before {\n box-shadow: 18px 6px 0 0.020em,24px 6px 0 0.020em,30px 6px 0 0.020em,36px 6px 0 0.020em,42px 6px 0 0.020em,48px 6px 0 0.020em,12px 12px 0 0.020em,18px 12px 0 0.020em,24px 12px 0 0.020em #3c4665,30px 12px 0 0.020em #3c4665,36px 12px 0 0.020em #3c4665,42px 12px 0 0.020em #596985,48px 12px 0 0.020em,6px 18px 0 0.020em,12px 18px 0 0.020em,18px 18px 0 0.020em #3c4665,24px 18px 0 0.020em #3c4665,30px 18px 0 0.020em #3c4665,36px 18px 0 0.020em #3c4665,42px 18px 0 0.020em #596985,48px 18px 0 0.020em,6px 24px 0 0.020em,12px 24px 0 0.020em #3c4665,18px 24px 0 0.020em #3c4665,24px 24px 0 0.020em #3c4665,30px 24px 0 0.020em #3c4665,36px 24px 0 0.020em #3c4665,42px 24px 0 0.020em #596985,48px 24px 0 0.020em,6px 30px 0 0.020em,12px 30px 0 0.020em #3c4665,18px 30px 0 0.020em #3c4665,24px 30px 0 0.020em #3c4665,30px 30px 0 0.020em #3c4665,36px 30px 0 0.020em #3c4665,42px 30px 0 0.020em #596985,48px 30px 0 0.020em,6px 36px 0 0.020em,12px 36px 0 0.020em #3c4665,18px 36px 0 0.020em #3c4665,24px 36px 0 0.020em #3c4665,30px 36px 0 0.020em #3c4665,36px 36px 0 0.020em #3c4665,42px 36px 0 0.020em #596985,48px 36px 0 0.020em,6px 42px 0 0.020em,12px 42px 0 0.020em #3c4665,18px 42px 0 0.020em #3c4665,24px 42px 0 0.020em,30px 42px 0 0.020em,36px 42px 0 0.020em,42px 42px 0 0.020em,48px 42px 0 0.020em,6px 48px 0 0.020em,12px 48px 0 0.020em #3c4665,18px 48px 0 0.020em #3c4665,24px 48px 0 0.020em,6px 54px 0 0.020em,12px 54px 0 0.020em #3c4665,18px 54px 0 0.020em #3c4665,24px 54px 0 0.020em,6px 60px 0 0.020em,12px 60px 0 0.020em #3c4665,18px 60px 0 0.020em #3c4665,24px 60px 0 0.020em,6px 66px 0 0.020em,12px 66px 0 0.020em #3c4665,18px 66px 0 0.020em #3c4665,24px 66px 0 0.020em,6px 72px 0 0.020em,12px 72px 0 0.020em #3c4665,18px 72px 0 0.020em #3c4665,24px 72px 0 0.020em,6px 78px 0 0.020em,12px 78px 0 0.020em #3c4665,18px 78px 0 0.020em #3c4665,24px 78px 0 0.020em,6px 84px 0 0.020em,12px 84px 0 0.020em #3c4665,18px 84px 0 0.020em #3c4665,24px 84px 0 0.020em,6px 90px 0 0.020em,12px 90px 0 0.020em #3c4665,18px 90px 0 0.020em #3c4665,24px 90px 0 0.020em,30px 90px 0 0.020em,36px 90px 0 0.020em,42px 90px 0 0.020em,48px 90px 0 0.020em,6px 96px 0 0.020em,12px 96px 0 0.020em #3c4665,18px 96px 0 0.020em #3c4665,24px 96px 0 0.020em #3c4665,30px 96px 0 0.020em #3c4665,36px 96px 0 0.020em #3c4665,42px 96px 0 0.020em #596985,48px 96px 0 0.020em,6px 102px 0 0.020em,12px 102px 0 0.020em #3c4665,18px 102px 0 0.020em #3c4665,24px 102px 0 0.020em #3c4665,30px 102px 0 0.020em #3c4665,36px 102px 0 0.020em #3c4665,42px 102px 0 0.020em #596985,48px 102px 0 0.020em,6px 108px 0 0.020em,12px 108px 0 0.020em #3c4665,18px 108px 0 0.020em #3c4665,24px 108px 0 0.020em #3c4665,30px 108px 0 0.020em #3c4665,36px 108px 0 0.020em #3c4665,42px 108px 0 0.020em #596985,48px 108px 0 0.020em,6px 114px 0 0.020em,12px 114px 0 0.020em,18px 114px 0 0.020em #3c4665,24px 114px 0 0.020em #3c4665,30px 114px 0 0.020em #3c4665,36px 114px 0 0.020em #3c4665,42px 114px 0 0.020em #596985,48px 114px 0 0.020em,12px 120px 0 0.020em,18px 120px 0 0.020em,24px 120px 0 0.020em #3c4665,30px 120px 0 0.020em #3c4665,36px 120px 0 0.020em #3c4665,42px 120px 0 0.020em #596985,48px 120px 0 0.020em,18px 126px 0 0.020em,24px 126px 0 0.020em,30px 126px 0 0.020em,36px 126px 0 0.020em,42px 126px 0 0.020em,48px 126px 0 0.020em;\n }\n}\n\n.nes-smartphone {\n position: relative;\n display: inline-block;\n width: 90px;\n height: 162px;\n}\n\n.nes-smartphone::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #060606;\n box-shadow: 12px 6px,18px 6px,24px 6px,30px 6px,36px 6px,42px 6px,48px 6px,54px 6px,60px 6px,66px 6px,72px 6px,78px 6px,84px 6px,6px 12px,12px 12px,18px 12px #fff,24px 12px #fff,30px 12px #fff,36px 12px #fff,42px 12px #fff,48px 12px #fff,54px 12px #fff,60px 12px #fff,66px 12px #fff,72px 12px #fff,78px 12px #fff,84px 12px,90px 12px,6px 18px,12px 18px #fff,18px 18px #fff,24px 18px #fff,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px,66px 18px,72px 18px #fff,78px 18px #fff,84px 18px #fff,90px 18px,6px 24px,12px 24px #fff,18px 24px #fff,24px 24px #fff,30px 24px #fff,36px 24px #fff,42px 24px #fff,48px 24px #fff,54px 24px #fff,60px 24px #fff,66px 24px #fff,72px 24px #fff,78px 24px #fff,84px 24px #fff,90px 24px,6px 30px,12px 30px #fff,18px 30px,24px 30px,30px 30px,36px 30px,42px 30px,48px 30px,54px 30px,60px 30px,66px 30px,72px 30px,78px 30px,84px 30px #fff,90px 30px,6px 36px,12px 36px #fff,18px 36px,24px 36px,30px 36px,36px 36px,42px 36px,48px 36px,54px 36px,60px 36px,66px 36px,72px 36px,78px 36px,84px 36px #fff,90px 36px,6px 42px,12px 42px #fff,18px 42px,24px 42px,30px 42px,36px 42px,42px 42px,48px 42px,54px 42px,60px 42px,66px 42px,72px 42px,78px 42px,84px 42px #fff,90px 42px,6px 48px,12px 48px #fff,18px 48px,24px 48px,30px 48px,36px 48px,42px 48px,48px 48px,54px 48px,60px 48px,66px 48px,72px 48px,78px 48px,84px 48px #fff,90px 48px,6px 54px,12px 54px #fff,18px 54px,24px 54px,30px 54px,36px 54px,42px 54px,48px 54px,54px 54px,60px 54px,66px 54px,72px 54px,78px 54px,84px 54px #fff,90px 54px,6px 60px,12px 60px #fff,18px 60px,24px 60px,30px 60px,36px 60px,42px 60px,48px 60px,54px 60px,60px 60px,66px 60px,72px 60px,78px 60px,84px 60px #fff,90px 60px,6px 66px,12px 66px #fff,18px 66px,24px 66px,30px 66px,36px 66px,42px 66px,48px 66px,54px 66px,60px 66px,66px 66px,72px 66px,78px 66px,84px 66px #fff,90px 66px,6px 72px,12px 72px #fff,18px 72px,24px 72px,30px 72px,36px 72px,42px 72px,48px 72px,54px 72px,60px 72px,66px 72px,72px 72px,78px 72px,84px 72px #fff,90px 72px,6px 78px,12px 78px #fff,18px 78px,24px 78px,30px 78px,36px 78px,42px 78px,48px 78px,54px 78px,60px 78px,66px 78px,72px 78px,78px 78px,84px 78px #fff,90px 78px,6px 84px,12px 84px #fff,18px 84px,24px 84px,30px 84px,36px 84px,42px 84px,48px 84px,54px 84px,60px 84px,66px 84px,72px 84px,78px 84px,84px 84px #fff,90px 84px,6px 90px,12px 90px #fff,18px 90px,24px 90px,30px 90px,36px 90px,42px 90px,48px 90px,54px 90px,60px 90px,66px 90px,72px 90px,78px 90px,84px 90px #fff,90px 90px,6px 96px,12px 96px #fff,18px 96px,24px 96px,30px 96px,36px 96px,42px 96px,48px 96px,54px 96px,60px 96px,66px 96px,72px 96px,78px 96px,84px 96px #fff,90px 96px,6px 102px,12px 102px #fff,18px 102px,24px 102px,30px 102px,36px 102px,42px 102px,48px 102px,54px 102px,60px 102px,66px 102px,72px 102px,78px 102px,84px 102px #fff,90px 102px,6px 108px,12px 108px #fff,18px 108px,24px 108px,30px 108px,36px 108px,42px 108px,48px 108px,54px 108px,60px 108px,66px 108px,72px 108px,78px 108px,84px 108px #fff,90px 108px,6px 114px,12px 114px #fff,18px 114px,24px 114px,30px 114px,36px 114px,42px 114px,48px 114px,54px 114px,60px 114px,66px 114px,72px 114px,78px 114px,84px 114px #fff,90px 114px,6px 120px,12px 120px #fff,18px 120px,24px 120px,30px 120px,36px 120px,42px 120px,48px 120px,54px 120px,60px 120px,66px 120px,72px 120px,78px 120px,84px 120px #fff,90px 120px,6px 126px,12px 126px #fff,18px 126px,24px 126px,30px 126px,36px 126px,42px 126px,48px 126px,54px 126px,60px 126px,66px 126px,72px 126px,78px 126px,84px 126px #fff,90px 126px,6px 132px,12px 132px #fff,18px 132px,24px 132px,30px 132px,36px 132px,42px 132px,48px 132px,54px 132px,60px 132px,66px 132px,72px 132px,78px 132px,84px 132px #fff,90px 132px,6px 138px,12px 138px #fff,18px 138px #fff,24px 138px #fff,30px 138px #fff,36px 138px #fff,42px 138px #fff,48px 138px #fff,54px 138px #fff,60px 138px #fff,66px 138px #fff,72px 138px #fff,78px 138px #fff,84px 138px #fff,90px 138px,6px 144px,12px 144px #fff,18px 144px #fff,24px 144px #fff,30px 144px #fff,36px 144px #fff,42px 144px #fff,48px 144px,54px 144px,60px 144px #fff,66px 144px #fff,72px 144px #fff,78px 144px #fff,84px 144px #fff,90px 144px,6px 150px,12px 150px #fff,18px 150px #fff,24px 150px #fff,30px 150px #fff,36px 150px #fff,42px 150px #fff,48px 150px,54px 150px,60px 150px #fff,66px 150px #fff,72px 150px #fff,78px 150px #fff,84px 150px #fff,90px 150px,6px 156px,12px 156px,18px 156px #fff,24px 156px #fff,30px 156px #fff,36px 156px #fff,42px 156px #fff,48px 156px #fff,54px 156px #fff,60px 156px #fff,66px 156px #fff,72px 156px #fff,78px 156px #fff,84px 156px,90px 156px,12px 162px,18px 162px,24px 162px,30px 162px,36px 162px,42px 162px,48px 162px,54px 162px,60px 162px,66px 162px,72px 162px,78px 162px,84px 162px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-smartphone::before {\n box-shadow: 12px 6px 0 0.020em,18px 6px 0 0.020em,24px 6px 0 0.020em,30px 6px 0 0.020em,36px 6px 0 0.020em,42px 6px 0 0.020em,48px 6px 0 0.020em,54px 6px 0 0.020em,60px 6px 0 0.020em,66px 6px 0 0.020em,72px 6px 0 0.020em,78px 6px 0 0.020em,84px 6px 0 0.020em,6px 12px 0 0.020em,12px 12px 0 0.020em,18px 12px 0 0.020em #fff,24px 12px 0 0.020em #fff,30px 12px 0 0.020em #fff,36px 12px 0 0.020em #fff,42px 12px 0 0.020em #fff,48px 12px 0 0.020em #fff,54px 12px 0 0.020em #fff,60px 12px 0 0.020em #fff,66px 12px 0 0.020em #fff,72px 12px 0 0.020em #fff,78px 12px 0 0.020em #fff,84px 12px 0 0.020em,90px 12px 0 0.020em,6px 18px 0 0.020em,12px 18px 0 0.020em #fff,18px 18px 0 0.020em #fff,24px 18px 0 0.020em #fff,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em,66px 18px 0 0.020em,72px 18px 0 0.020em #fff,78px 18px 0 0.020em #fff,84px 18px 0 0.020em #fff,90px 18px 0 0.020em,6px 24px 0 0.020em,12px 24px 0 0.020em #fff,18px 24px 0 0.020em #fff,24px 24px 0 0.020em #fff,30px 24px 0 0.020em #fff,36px 24px 0 0.020em #fff,42px 24px 0 0.020em #fff,48px 24px 0 0.020em #fff,54px 24px 0 0.020em #fff,60px 24px 0 0.020em #fff,66px 24px 0 0.020em #fff,72px 24px 0 0.020em #fff,78px 24px 0 0.020em #fff,84px 24px 0 0.020em #fff,90px 24px 0 0.020em,6px 30px 0 0.020em,12px 30px 0 0.020em #fff,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,36px 30px 0 0.020em,42px 30px 0 0.020em,48px 30px 0 0.020em,54px 30px 0 0.020em,60px 30px 0 0.020em,66px 30px 0 0.020em,72px 30px 0 0.020em,78px 30px 0 0.020em,84px 30px 0 0.020em #fff,90px 30px 0 0.020em,6px 36px 0 0.020em,12px 36px 0 0.020em #fff,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em,42px 36px 0 0.020em,48px 36px 0 0.020em,54px 36px 0 0.020em,60px 36px 0 0.020em,66px 36px 0 0.020em,72px 36px 0 0.020em,78px 36px 0 0.020em,84px 36px 0 0.020em #fff,90px 36px 0 0.020em,6px 42px 0 0.020em,12px 42px 0 0.020em #fff,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em,36px 42px 0 0.020em,42px 42px 0 0.020em,48px 42px 0 0.020em,54px 42px 0 0.020em,60px 42px 0 0.020em,66px 42px 0 0.020em,72px 42px 0 0.020em,78px 42px 0 0.020em,84px 42px 0 0.020em #fff,90px 42px 0 0.020em,6px 48px 0 0.020em,12px 48px 0 0.020em #fff,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em,36px 48px 0 0.020em,42px 48px 0 0.020em,48px 48px 0 0.020em,54px 48px 0 0.020em,60px 48px 0 0.020em,66px 48px 0 0.020em,72px 48px 0 0.020em,78px 48px 0 0.020em,84px 48px 0 0.020em #fff,90px 48px 0 0.020em,6px 54px 0 0.020em,12px 54px 0 0.020em #fff,18px 54px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em,42px 54px 0 0.020em,48px 54px 0 0.020em,54px 54px 0 0.020em,60px 54px 0 0.020em,66px 54px 0 0.020em,72px 54px 0 0.020em,78px 54px 0 0.020em,84px 54px 0 0.020em #fff,90px 54px 0 0.020em,6px 60px 0 0.020em,12px 60px 0 0.020em #fff,18px 60px 0 0.020em,24px 60px 0 0.020em,30px 60px 0 0.020em,36px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em,54px 60px 0 0.020em,60px 60px 0 0.020em,66px 60px 0 0.020em,72px 60px 0 0.020em,78px 60px 0 0.020em,84px 60px 0 0.020em #fff,90px 60px 0 0.020em,6px 66px 0 0.020em,12px 66px 0 0.020em #fff,18px 66px 0 0.020em,24px 66px 0 0.020em,30px 66px 0 0.020em,36px 66px 0 0.020em,42px 66px 0 0.020em,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em,72px 66px 0 0.020em,78px 66px 0 0.020em,84px 66px 0 0.020em #fff,90px 66px 0 0.020em,6px 72px 0 0.020em,12px 72px 0 0.020em #fff,18px 72px 0 0.020em,24px 72px 0 0.020em,30px 72px 0 0.020em,36px 72px 0 0.020em,42px 72px 0 0.020em,48px 72px 0 0.020em,54px 72px 0 0.020em,60px 72px 0 0.020em,66px 72px 0 0.020em,72px 72px 0 0.020em,78px 72px 0 0.020em,84px 72px 0 0.020em #fff,90px 72px 0 0.020em,6px 78px 0 0.020em,12px 78px 0 0.020em #fff,18px 78px 0 0.020em,24px 78px 0 0.020em,30px 78px 0 0.020em,36px 78px 0 0.020em,42px 78px 0 0.020em,48px 78px 0 0.020em,54px 78px 0 0.020em,60px 78px 0 0.020em,66px 78px 0 0.020em,72px 78px 0 0.020em,78px 78px 0 0.020em,84px 78px 0 0.020em #fff,90px 78px 0 0.020em,6px 84px 0 0.020em,12px 84px 0 0.020em #fff,18px 84px 0 0.020em,24px 84px 0 0.020em,30px 84px 0 0.020em,36px 84px 0 0.020em,42px 84px 0 0.020em,48px 84px 0 0.020em,54px 84px 0 0.020em,60px 84px 0 0.020em,66px 84px 0 0.020em,72px 84px 0 0.020em,78px 84px 0 0.020em,84px 84px 0 0.020em #fff,90px 84px 0 0.020em,6px 90px 0 0.020em,12px 90px 0 0.020em #fff,18px 90px 0 0.020em,24px 90px 0 0.020em,30px 90px 0 0.020em,36px 90px 0 0.020em,42px 90px 0 0.020em,48px 90px 0 0.020em,54px 90px 0 0.020em,60px 90px 0 0.020em,66px 90px 0 0.020em,72px 90px 0 0.020em,78px 90px 0 0.020em,84px 90px 0 0.020em #fff,90px 90px 0 0.020em,6px 96px 0 0.020em,12px 96px 0 0.020em #fff,18px 96px 0 0.020em,24px 96px 0 0.020em,30px 96px 0 0.020em,36px 96px 0 0.020em,42px 96px 0 0.020em,48px 96px 0 0.020em,54px 96px 0 0.020em,60px 96px 0 0.020em,66px 96px 0 0.020em,72px 96px 0 0.020em,78px 96px 0 0.020em,84px 96px 0 0.020em #fff,90px 96px 0 0.020em,6px 102px 0 0.020em,12px 102px 0 0.020em #fff,18px 102px 0 0.020em,24px 102px 0 0.020em,30px 102px 0 0.020em,36px 102px 0 0.020em,42px 102px 0 0.020em,48px 102px 0 0.020em,54px 102px 0 0.020em,60px 102px 0 0.020em,66px 102px 0 0.020em,72px 102px 0 0.020em,78px 102px 0 0.020em,84px 102px 0 0.020em #fff,90px 102px 0 0.020em,6px 108px 0 0.020em,12px 108px 0 0.020em #fff,18px 108px 0 0.020em,24px 108px 0 0.020em,30px 108px 0 0.020em,36px 108px 0 0.020em,42px 108px 0 0.020em,48px 108px 0 0.020em,54px 108px 0 0.020em,60px 108px 0 0.020em,66px 108px 0 0.020em,72px 108px 0 0.020em,78px 108px 0 0.020em,84px 108px 0 0.020em #fff,90px 108px 0 0.020em,6px 114px 0 0.020em,12px 114px 0 0.020em #fff,18px 114px 0 0.020em,24px 114px 0 0.020em,30px 114px 0 0.020em,36px 114px 0 0.020em,42px 114px 0 0.020em,48px 114px 0 0.020em,54px 114px 0 0.020em,60px 114px 0 0.020em,66px 114px 0 0.020em,72px 114px 0 0.020em,78px 114px 0 0.020em,84px 114px 0 0.020em #fff,90px 114px 0 0.020em,6px 120px 0 0.020em,12px 120px 0 0.020em #fff,18px 120px 0 0.020em,24px 120px 0 0.020em,30px 120px 0 0.020em,36px 120px 0 0.020em,42px 120px 0 0.020em,48px 120px 0 0.020em,54px 120px 0 0.020em,60px 120px 0 0.020em,66px 120px 0 0.020em,72px 120px 0 0.020em,78px 120px 0 0.020em,84px 120px 0 0.020em #fff,90px 120px 0 0.020em,6px 126px 0 0.020em,12px 126px 0 0.020em #fff,18px 126px 0 0.020em,24px 126px 0 0.020em,30px 126px 0 0.020em,36px 126px 0 0.020em,42px 126px 0 0.020em,48px 126px 0 0.020em,54px 126px 0 0.020em,60px 126px 0 0.020em,66px 126px 0 0.020em,72px 126px 0 0.020em,78px 126px 0 0.020em,84px 126px 0 0.020em #fff,90px 126px 0 0.020em,6px 132px 0 0.020em,12px 132px 0 0.020em #fff,18px 132px 0 0.020em,24px 132px 0 0.020em,30px 132px 0 0.020em,36px 132px 0 0.020em,42px 132px 0 0.020em,48px 132px 0 0.020em,54px 132px 0 0.020em,60px 132px 0 0.020em,66px 132px 0 0.020em,72px 132px 0 0.020em,78px 132px 0 0.020em,84px 132px 0 0.020em #fff,90px 132px 0 0.020em,6px 138px 0 0.020em,12px 138px 0 0.020em #fff,18px 138px 0 0.020em #fff,24px 138px 0 0.020em #fff,30px 138px 0 0.020em #fff,36px 138px 0 0.020em #fff,42px 138px 0 0.020em #fff,48px 138px 0 0.020em #fff,54px 138px 0 0.020em #fff,60px 138px 0 0.020em #fff,66px 138px 0 0.020em #fff,72px 138px 0 0.020em #fff,78px 138px 0 0.020em #fff,84px 138px 0 0.020em #fff,90px 138px 0 0.020em,6px 144px 0 0.020em,12px 144px 0 0.020em #fff,18px 144px 0 0.020em #fff,24px 144px 0 0.020em #fff,30px 144px 0 0.020em #fff,36px 144px 0 0.020em #fff,42px 144px 0 0.020em #fff,48px 144px 0 0.020em,54px 144px 0 0.020em,60px 144px 0 0.020em #fff,66px 144px 0 0.020em #fff,72px 144px 0 0.020em #fff,78px 144px 0 0.020em #fff,84px 144px 0 0.020em #fff,90px 144px 0 0.020em,6px 150px 0 0.020em,12px 150px 0 0.020em #fff,18px 150px 0 0.020em #fff,24px 150px 0 0.020em #fff,30px 150px 0 0.020em #fff,36px 150px 0 0.020em #fff,42px 150px 0 0.020em #fff,48px 150px 0 0.020em,54px 150px 0 0.020em,60px 150px 0 0.020em #fff,66px 150px 0 0.020em #fff,72px 150px 0 0.020em #fff,78px 150px 0 0.020em #fff,84px 150px 0 0.020em #fff,90px 150px 0 0.020em,6px 156px 0 0.020em,12px 156px 0 0.020em,18px 156px 0 0.020em #fff,24px 156px 0 0.020em #fff,30px 156px 0 0.020em #fff,36px 156px 0 0.020em #fff,42px 156px 0 0.020em #fff,48px 156px 0 0.020em #fff,54px 156px 0 0.020em #fff,60px 156px 0 0.020em #fff,66px 156px 0 0.020em #fff,72px 156px 0 0.020em #fff,78px 156px 0 0.020em #fff,84px 156px 0 0.020em,90px 156px 0 0.020em,12px 162px 0 0.020em,18px 162px 0 0.020em,24px 162px 0 0.020em,30px 162px 0 0.020em,36px 162px 0 0.020em,42px 162px 0 0.020em,48px 162px 0 0.020em,54px 162px 0 0.020em,60px 162px 0 0.020em,66px 162px 0 0.020em,72px 162px 0 0.020em,78px 162px 0 0.020em,84px 162px 0 0.020em;\n }\n}\n\n.nes-mario {\n position: relative;\n display: inline-block;\n width: 84px;\n height: 96px;\n}\n\n.nes-mario::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #f81c2f;\n box-shadow: 30px 6px,36px 6px,42px 6px,48px 6px,54px 6px,24px 12px,30px 12px,36px 12px,42px 12px,48px 12px,54px 12px,60px 12px,66px 12px,72px 12px,24px 18px #65352b,30px 18px #65352b,36px 18px #65352b,42px 18px #ffbb8e,48px 18px #ffbb8e,54px 18px #000,60px 18px #ffbb8e,18px 24px #65352b,24px 24px #ffbb8e,30px 24px #65352b,36px 24px #ffbb8e,42px 24px #ffbb8e,48px 24px #ffbb8e,54px 24px #000,60px 24px #ffbb8e,66px 24px #ffbb8e,72px 24px #ffbb8e,18px 30px #65352b,24px 30px #ffbb8e,30px 30px #65352b,36px 30px #65352b,42px 30px #ffbb8e,48px 30px #ffbb8e,54px 30px #ffbb8e,60px 30px #000,66px 30px #ffbb8e,72px 30px #ffbb8e,78px 30px #ffbb8e,18px 36px #65352b,24px 36px #65352b,30px 36px #ffbb8e,36px 36px #ffbb8e,42px 36px #ffbb8e,48px 36px #ffbb8e,54px 36px #000,60px 36px #000,66px 36px #000,72px 36px #000,30px 42px #ffbb8e,36px 42px #ffbb8e,42px 42px #ffbb8e,48px 42px #ffbb8e,54px 42px #ffbb8e,60px 42px #ffbb8e,66px 42px #ffbb8e,30px 48px,36px 48px #1560ad,42px 48px,48px 48px,54px 48px #1560ad,18px 54px,24px 54px,30px 54px,36px 54px #1560ad,42px 54px,48px 54px,54px 54px #1560ad,60px 54px,66px 54px,72px 54px,12px 60px,18px 60px,24px 60px,30px 60px,36px 60px #1560ad,42px 60px #1560ad,48px 60px #1560ad,54px 60px #1560ad,60px 60px,66px 60px,72px 60px,78px 60px,12px 66px #aeaeac,18px 66px #aeaeac,24px 66px,30px 66px #1560ad,36px 66px #fef102,42px 66px #1560ad,48px 66px #1560ad,54px 66px #fef102,60px 66px #1560ad,66px 66px,72px 66px #aeaeac,78px 66px #aeaeac,12px 72px #aeaeac,18px 72px #aeaeac,24px 72px #aeaeac,30px 72px #1560ad,36px 72px #1560ad,42px 72px #1560ad,48px 72px #1560ad,54px 72px #1560ad,60px 72px #1560ad,66px 72px #aeaeac,72px 72px #aeaeac,78px 72px #aeaeac,12px 78px #aeaeac,18px 78px #aeaeac,24px 78px #1560ad,30px 78px #1560ad,36px 78px #1560ad,42px 78px #1560ad,48px 78px #1560ad,54px 78px #1560ad,60px 78px #1560ad,66px 78px #1560ad,72px 78px #aeaeac,78px 78px #aeaeac,24px 84px #1560ad,30px 84px #1560ad,36px 84px #1560ad,54px 84px #1560ad,60px 84px #1560ad,66px 84px #1560ad,18px 90px #65352b,24px 90px #65352b,30px 90px #65352b,60px 90px #65352b,66px 90px #65352b,72px 90px #65352b,12px 96px #65352b,18px 96px #65352b,24px 96px #65352b,30px 96px #65352b,60px 96px #65352b,66px 96px #65352b,72px 96px #65352b,78px 96px #65352b;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-mario::before {\n box-shadow: 30px 6px 0 0.020em,36px 6px 0 0.020em,42px 6px 0 0.020em,48px 6px 0 0.020em,54px 6px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em,36px 12px 0 0.020em,42px 12px 0 0.020em,48px 12px 0 0.020em,54px 12px 0 0.020em,60px 12px 0 0.020em,66px 12px 0 0.020em,72px 12px 0 0.020em,24px 18px 0 0.020em #65352b,30px 18px 0 0.020em #65352b,36px 18px 0 0.020em #65352b,42px 18px 0 0.020em #ffbb8e,48px 18px 0 0.020em #ffbb8e,54px 18px 0 0.020em #000,60px 18px 0 0.020em #ffbb8e,18px 24px 0 0.020em #65352b,24px 24px 0 0.020em #ffbb8e,30px 24px 0 0.020em #65352b,36px 24px 0 0.020em #ffbb8e,42px 24px 0 0.020em #ffbb8e,48px 24px 0 0.020em #ffbb8e,54px 24px 0 0.020em #000,60px 24px 0 0.020em #ffbb8e,66px 24px 0 0.020em #ffbb8e,72px 24px 0 0.020em #ffbb8e,18px 30px 0 0.020em #65352b,24px 30px 0 0.020em #ffbb8e,30px 30px 0 0.020em #65352b,36px 30px 0 0.020em #65352b,42px 30px 0 0.020em #ffbb8e,48px 30px 0 0.020em #ffbb8e,54px 30px 0 0.020em #ffbb8e,60px 30px 0 0.020em #000,66px 30px 0 0.020em #ffbb8e,72px 30px 0 0.020em #ffbb8e,78px 30px 0 0.020em #ffbb8e,18px 36px 0 0.020em #65352b,24px 36px 0 0.020em #65352b,30px 36px 0 0.020em #ffbb8e,36px 36px 0 0.020em #ffbb8e,42px 36px 0 0.020em #ffbb8e,48px 36px 0 0.020em #ffbb8e,54px 36px 0 0.020em #000,60px 36px 0 0.020em #000,66px 36px 0 0.020em #000,72px 36px 0 0.020em #000,30px 42px 0 0.020em #ffbb8e,36px 42px 0 0.020em #ffbb8e,42px 42px 0 0.020em #ffbb8e,48px 42px 0 0.020em #ffbb8e,54px 42px 0 0.020em #ffbb8e,60px 42px 0 0.020em #ffbb8e,66px 42px 0 0.020em #ffbb8e,30px 48px 0 0.020em,36px 48px 0 0.020em #1560ad,42px 48px 0 0.020em,48px 48px 0 0.020em,54px 48px 0 0.020em #1560ad,18px 54px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em #1560ad,42px 54px 0 0.020em,48px 54px 0 0.020em,54px 54px 0 0.020em #1560ad,60px 54px 0 0.020em,66px 54px 0 0.020em,72px 54px 0 0.020em,12px 60px 0 0.020em,18px 60px 0 0.020em,24px 60px 0 0.020em,30px 60px 0 0.020em,36px 60px 0 0.020em #1560ad,42px 60px 0 0.020em #1560ad,48px 60px 0 0.020em #1560ad,54px 60px 0 0.020em #1560ad,60px 60px 0 0.020em,66px 60px 0 0.020em,72px 60px 0 0.020em,78px 60px 0 0.020em,12px 66px 0 0.020em #aeaeac,18px 66px 0 0.020em #aeaeac,24px 66px 0 0.020em,30px 66px 0 0.020em #1560ad,36px 66px 0 0.020em #fef102,42px 66px 0 0.020em #1560ad,48px 66px 0 0.020em #1560ad,54px 66px 0 0.020em #fef102,60px 66px 0 0.020em #1560ad,66px 66px 0 0.020em,72px 66px 0 0.020em #aeaeac,78px 66px 0 0.020em #aeaeac,12px 72px 0 0.020em #aeaeac,18px 72px 0 0.020em #aeaeac,24px 72px 0 0.020em #aeaeac,30px 72px 0 0.020em #1560ad,36px 72px 0 0.020em #1560ad,42px 72px 0 0.020em #1560ad,48px 72px 0 0.020em #1560ad,54px 72px 0 0.020em #1560ad,60px 72px 0 0.020em #1560ad,66px 72px 0 0.020em #aeaeac,72px 72px 0 0.020em #aeaeac,78px 72px 0 0.020em #aeaeac,12px 78px 0 0.020em #aeaeac,18px 78px 0 0.020em #aeaeac,24px 78px 0 0.020em #1560ad,30px 78px 0 0.020em #1560ad,36px 78px 0 0.020em #1560ad,42px 78px 0 0.020em #1560ad,48px 78px 0 0.020em #1560ad,54px 78px 0 0.020em #1560ad,60px 78px 0 0.020em #1560ad,66px 78px 0 0.020em #1560ad,72px 78px 0 0.020em #aeaeac,78px 78px 0 0.020em #aeaeac,24px 84px 0 0.020em #1560ad,30px 84px 0 0.020em #1560ad,36px 84px 0 0.020em #1560ad,54px 84px 0 0.020em #1560ad,60px 84px 0 0.020em #1560ad,66px 84px 0 0.020em #1560ad,18px 90px 0 0.020em #65352b,24px 90px 0 0.020em #65352b,30px 90px 0 0.020em #65352b,60px 90px 0 0.020em #65352b,66px 90px 0 0.020em #65352b,72px 90px 0 0.020em #65352b,12px 96px 0 0.020em #65352b,18px 96px 0 0.020em #65352b,24px 96px 0 0.020em #65352b,30px 96px 0 0.020em #65352b,60px 96px 0 0.020em #65352b,66px 96px 0 0.020em #65352b,72px 96px 0 0.020em #65352b,78px 96px 0 0.020em #65352b;\n }\n}\n\n.nes-kirby {\n position: relative;\n display: inline-block;\n width: 96px;\n height: 96px;\n}\n\n.nes-kirby::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #ffaccc;\n box-shadow: 18px 6px #000,24px 6px #000,36px 6px #000,42px 6px #000,48px 6px #000,54px 6px #000,60px 6px #000,12px 12px #000,18px 12px,24px 12px,30px 12px #000,36px 12px,42px 12px,48px 12px,54px 12px,60px 12px,66px 12px #000,72px 12px #000,6px 18px #000,12px 18px,18px 18px,24px 18px #000,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px,66px 18px,72px 18px,78px 18px #000,6px 24px #000,12px 24px,18px 24px,24px 24px,30px 24px,36px 24px,42px 24px #000,48px 24px,54px 24px #000,60px 24px,66px 24px,72px 24px,78px 24px,84px 24px #000,6px 30px #000,12px 30px,18px 30px,24px 30px,30px 30px,36px 30px,42px 30px #000,48px 30px,54px 30px #000,60px 30px,66px 30px,72px 30px,78px 30px,84px 30px #000,6px 36px #000,12px 36px,18px 36px,24px 36px,30px 36px,36px 36px,42px 36px #000,48px 36px,54px 36px #000,60px 36px,66px 36px,72px 36px,78px 36px,84px 36px,90px 36px #000,6px 42px #000,12px 42px,18px 42px,24px 42px,30px 42px #ff5478,36px 42px #ff5478,42px 42px,48px 42px,54px 42px,60px 42px #ff5478,66px 42px #ff5478,72px 42px,78px 42px,84px 42px,90px 42px,96px 42px #000,6px 48px #000,12px 48px,18px 48px,24px 48px,30px 48px,36px 48px,42px 48px,48px 48px #000,54px 48px,60px 48px,66px 48px,72px 48px,78px 48px,84px 48px,90px 48px,96px 48px #000,12px 54px #000,18px 54px,24px 54px,30px 54px,36px 54px,42px 54px,48px 54px #000,54px 54px,60px 54px,66px 54px,72px 54px,78px 54px,84px 54px,90px 54px,96px 54px #000,12px 60px #000,18px 60px,24px 60px,30px 60px,36px 60px,42px 60px,48px 60px,54px 60px,60px 60px,66px 60px,72px 60px,78px 60px #000,84px 60px #000,90px 60px #000,12px 66px #000,18px 66px,24px 66px,30px 66px,36px 66px,42px 66px,48px 66px,54px 66px,60px 66px,66px 66px,72px 66px #000,78px 66px #ff5478,84px 66px #ff5478,90px 66px #ff5478,96px 66px #000,18px 72px #000,24px 72px,30px 72px,36px 72px,42px 72px,48px 72px,54px 72px,60px 72px,66px 72px #000,72px 72px #ff5478,78px 72px #ff5478,84px 72px #ff5478,90px 72px #ff5478,96px 72px #000,18px 78px #000,24px 78px #000,30px 78px,36px 78px,42px 78px,48px 78px,54px 78px,60px 78px,66px 78px #000,72px 78px #ff5478,78px 78px #ff5478,84px 78px #ff5478,90px 78px #ff5478,96px 78px #000,12px 84px #000,18px 84px #ff5478,24px 84px #ff5478,30px 84px #000,36px 84px #000,42px 84px,48px 84px,54px 84px,60px 84px #000,66px 84px #ff5478,72px 84px #ff5478,78px 84px #ff5478,84px 84px #ff5478,90px 84px #000,6px 90px #000,12px 90px #ff5478,18px 90px #ff5478,24px 90px #ff5478,30px 90px #ff5478,36px 90px #ff5478,42px 90px #000,48px 90px #000,54px 90px #000,60px 90px #000,66px 90px #000,72px 90px #ff5478,78px 90px #ff5478,84px 90px #000,12px 96px #000,18px 96px #000,24px 96px #000,30px 96px #000,36px 96px #000,42px 96px #000,66px 96px #000,72px 96px #000,78px 96px #000;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-kirby::before {\n box-shadow: 18px 6px 0 0.020em #000,24px 6px 0 0.020em #000,36px 6px 0 0.020em #000,42px 6px 0 0.020em #000,48px 6px 0 0.020em #000,54px 6px 0 0.020em #000,60px 6px 0 0.020em #000,12px 12px 0 0.020em #000,18px 12px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em #000,36px 12px 0 0.020em,42px 12px 0 0.020em,48px 12px 0 0.020em,54px 12px 0 0.020em,60px 12px 0 0.020em,66px 12px 0 0.020em #000,72px 12px 0 0.020em #000,6px 18px 0 0.020em #000,12px 18px 0 0.020em,18px 18px 0 0.020em,24px 18px 0 0.020em #000,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em,66px 18px 0 0.020em,72px 18px 0 0.020em,78px 18px 0 0.020em #000,6px 24px 0 0.020em #000,12px 24px 0 0.020em,18px 24px 0 0.020em,24px 24px 0 0.020em,30px 24px 0 0.020em,36px 24px 0 0.020em,42px 24px 0 0.020em #000,48px 24px 0 0.020em,54px 24px 0 0.020em #000,60px 24px 0 0.020em,66px 24px 0 0.020em,72px 24px 0 0.020em,78px 24px 0 0.020em,84px 24px 0 0.020em #000,6px 30px 0 0.020em #000,12px 30px 0 0.020em,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,36px 30px 0 0.020em,42px 30px 0 0.020em #000,48px 30px 0 0.020em,54px 30px 0 0.020em #000,60px 30px 0 0.020em,66px 30px 0 0.020em,72px 30px 0 0.020em,78px 30px 0 0.020em,84px 30px 0 0.020em #000,6px 36px 0 0.020em #000,12px 36px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em,42px 36px 0 0.020em #000,48px 36px 0 0.020em,54px 36px 0 0.020em #000,60px 36px 0 0.020em,66px 36px 0 0.020em,72px 36px 0 0.020em,78px 36px 0 0.020em,84px 36px 0 0.020em,90px 36px 0 0.020em #000,6px 42px 0 0.020em #000,12px 42px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em #ff5478,36px 42px 0 0.020em #ff5478,42px 42px 0 0.020em,48px 42px 0 0.020em,54px 42px 0 0.020em,60px 42px 0 0.020em #ff5478,66px 42px 0 0.020em #ff5478,72px 42px 0 0.020em,78px 42px 0 0.020em,84px 42px 0 0.020em,90px 42px 0 0.020em,96px 42px 0 0.020em #000,6px 48px 0 0.020em #000,12px 48px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em,36px 48px 0 0.020em,42px 48px 0 0.020em,48px 48px 0 0.020em #000,54px 48px 0 0.020em,60px 48px 0 0.020em,66px 48px 0 0.020em,72px 48px 0 0.020em,78px 48px 0 0.020em,84px 48px 0 0.020em,90px 48px 0 0.020em,96px 48px 0 0.020em #000,12px 54px 0 0.020em #000,18px 54px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em,42px 54px 0 0.020em,48px 54px 0 0.020em #000,54px 54px 0 0.020em,60px 54px 0 0.020em,66px 54px 0 0.020em,72px 54px 0 0.020em,78px 54px 0 0.020em,84px 54px 0 0.020em,90px 54px 0 0.020em,96px 54px 0 0.020em #000,12px 60px 0 0.020em #000,18px 60px 0 0.020em,24px 60px 0 0.020em,30px 60px 0 0.020em,36px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em,54px 60px 0 0.020em,60px 60px 0 0.020em,66px 60px 0 0.020em,72px 60px 0 0.020em,78px 60px 0 0.020em #000,84px 60px 0 0.020em #000,90px 60px 0 0.020em #000,12px 66px 0 0.020em #000,18px 66px 0 0.020em,24px 66px 0 0.020em,30px 66px 0 0.020em,36px 66px 0 0.020em,42px 66px 0 0.020em,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em,72px 66px 0 0.020em #000,78px 66px 0 0.020em #ff5478,84px 66px 0 0.020em #ff5478,90px 66px 0 0.020em #ff5478,96px 66px 0 0.020em #000,18px 72px 0 0.020em #000,24px 72px 0 0.020em,30px 72px 0 0.020em,36px 72px 0 0.020em,42px 72px 0 0.020em,48px 72px 0 0.020em,54px 72px 0 0.020em,60px 72px 0 0.020em,66px 72px 0 0.020em #000,72px 72px 0 0.020em #ff5478,78px 72px 0 0.020em #ff5478,84px 72px 0 0.020em #ff5478,90px 72px 0 0.020em #ff5478,96px 72px 0 0.020em #000,18px 78px 0 0.020em #000,24px 78px 0 0.020em #000,30px 78px 0 0.020em,36px 78px 0 0.020em,42px 78px 0 0.020em,48px 78px 0 0.020em,54px 78px 0 0.020em,60px 78px 0 0.020em,66px 78px 0 0.020em #000,72px 78px 0 0.020em #ff5478,78px 78px 0 0.020em #ff5478,84px 78px 0 0.020em #ff5478,90px 78px 0 0.020em #ff5478,96px 78px 0 0.020em #000,12px 84px 0 0.020em #000,18px 84px 0 0.020em #ff5478,24px 84px 0 0.020em #ff5478,30px 84px 0 0.020em #000,36px 84px 0 0.020em #000,42px 84px 0 0.020em,48px 84px 0 0.020em,54px 84px 0 0.020em,60px 84px 0 0.020em #000,66px 84px 0 0.020em #ff5478,72px 84px 0 0.020em #ff5478,78px 84px 0 0.020em #ff5478,84px 84px 0 0.020em #ff5478,90px 84px 0 0.020em #000,6px 90px 0 0.020em #000,12px 90px 0 0.020em #ff5478,18px 90px 0 0.020em #ff5478,24px 90px 0 0.020em #ff5478,30px 90px 0 0.020em #ff5478,36px 90px 0 0.020em #ff5478,42px 90px 0 0.020em #000,48px 90px 0 0.020em #000,54px 90px 0 0.020em #000,60px 90px 0 0.020em #000,66px 90px 0 0.020em #000,72px 90px 0 0.020em #ff5478,78px 90px 0 0.020em #ff5478,84px 90px 0 0.020em #000,12px 96px 0 0.020em #000,18px 96px 0 0.020em #000,24px 96px 0 0.020em #000,30px 96px 0 0.020em #000,36px 96px 0 0.020em #000,42px 96px 0 0.020em #000,66px 96px 0 0.020em #000,72px 96px 0 0.020em #000,78px 96px 0 0.020em #000;\n }\n}\n\n.nes-octocat {\n position: relative;\n display: inline-block;\n width: 84px;\n height: 90px;\n}\n\n.nes-octocat::before {\n position: absolute;\n top: -6px;\n left: -6px;\n content: \"\";\n background: transparent;\n width: 6px;\n height: 6px;\n color: #333;\n box-shadow: 24px 6px,78px 6px,24px 12px,30px 12px,72px 12px,78px 12px,24px 18px,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px,66px 18px,72px 18px,78px 18px,18px 24px,24px 24px,30px 24px,36px 24px,42px 24px,48px 24px,54px 24px,60px 24px,66px 24px,72px 24px,78px 24px,84px 24px,18px 30px,24px 30px,30px 30px,36px 30px,42px 30px,48px 30px,54px 30px,60px 30px,66px 30px,72px 30px,78px 30px,84px 30px,18px 36px,24px 36px,30px 36px,36px 36px #ffdec4,42px 36px #ffdec4,48px 36px #ffdec4,54px 36px #ffdec4,60px 36px #ffdec4,66px 36px #ffdec4,72px 36px,78px 36px,84px 36px,18px 42px,24px 42px,30px 42px #ffdec4,36px 42px #cb7066,42px 42px #ffdec4,48px 42px #ffdec4,54px 42px #ffdec4,60px 42px #ffdec4,66px 42px #cb7066,72px 42px #ffdec4,78px 42px,84px 42px,18px 48px,24px 48px,30px 48px #ffdec4,36px 48px #cb7066,42px 48px #ffdec4,48px 48px #ffdec4,54px 48px #ffdec4,60px 48px #ffdec4,66px 48px #cb7066,72px 48px #ffdec4,78px 48px,84px 48px,24px 54px,30px 54px,36px 54px #ffdec4,42px 54px #ffdec4,48px 54px #cb7066,54px 54px #cb7066,60px 54px #ffdec4,66px 54px #ffdec4,72px 54px,78px 54px,6px 60px,12px 60px,42px 60px,48px 60px,54px 60px,60px 60px,18px 66px,24px 66px,36px 66px,42px 66px,48px 66px,54px 66px,60px 66px,66px 66px,24px 72px,30px 72px,36px 72px,42px 72px,48px 72px,54px 72px,60px 72px,66px 72px,36px 78px,48px 78px,54px 78px,66px 78px,36px 84px,48px 84px,54px 84px,66px 84px,30px 90px,42px 90px,60px 90px,72px 90px;\n transform: rotate(0);\n}\n\n@supports (-moz-appearance: meterbar) {\n .nes-octocat::before {\n box-shadow: 24px 6px 0 0.020em,78px 6px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em,72px 12px 0 0.020em,78px 12px 0 0.020em,24px 18px 0 0.020em,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em,66px 18px 0 0.020em,72px 18px 0 0.020em,78px 18px 0 0.020em,18px 24px 0 0.020em,24px 24px 0 0.020em,30px 24px 0 0.020em,36px 24px 0 0.020em,42px 24px 0 0.020em,48px 24px 0 0.020em,54px 24px 0 0.020em,60px 24px 0 0.020em,66px 24px 0 0.020em,72px 24px 0 0.020em,78px 24px 0 0.020em,84px 24px 0 0.020em,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,36px 30px 0 0.020em,42px 30px 0 0.020em,48px 30px 0 0.020em,54px 30px 0 0.020em,60px 30px 0 0.020em,66px 30px 0 0.020em,72px 30px 0 0.020em,78px 30px 0 0.020em,84px 30px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em #ffdec4,42px 36px 0 0.020em #ffdec4,48px 36px 0 0.020em #ffdec4,54px 36px 0 0.020em #ffdec4,60px 36px 0 0.020em #ffdec4,66px 36px 0 0.020em #ffdec4,72px 36px 0 0.020em,78px 36px 0 0.020em,84px 36px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em #ffdec4,36px 42px 0 0.020em #cb7066,42px 42px 0 0.020em #ffdec4,48px 42px 0 0.020em #ffdec4,54px 42px 0 0.020em #ffdec4,60px 42px 0 0.020em #ffdec4,66px 42px 0 0.020em #cb7066,72px 42px 0 0.020em #ffdec4,78px 42px 0 0.020em,84px 42px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em #ffdec4,36px 48px 0 0.020em #cb7066,42px 48px 0 0.020em #ffdec4,48px 48px 0 0.020em #ffdec4,54px 48px 0 0.020em #ffdec4,60px 48px 0 0.020em #ffdec4,66px 48px 0 0.020em #cb7066,72px 48px 0 0.020em #ffdec4,78px 48px 0 0.020em,84px 48px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em #ffdec4,42px 54px 0 0.020em #ffdec4,48px 54px 0 0.020em #cb7066,54px 54px 0 0.020em #cb7066,60px 54px 0 0.020em #ffdec4,66px 54px 0 0.020em #ffdec4,72px 54px 0 0.020em,78px 54px 0 0.020em,6px 60px 0 0.020em,12px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em,54px 60px 0 0.020em,60px 60px 0 0.020em,18px 66px 0 0.020em,24px 66px 0 0.020em,36px 66px 0 0.020em,42px 66px 0 0.020em,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em,24px 72px 0 0.020em,30px 72px 0 0.020em,36px 72px 0 0.020em,42px 72px 0 0.020em,48px 72px 0 0.020em,54px 72px 0 0.020em,60px 72px 0 0.020em,66px 72px 0 0.020em,36px 78px 0 0.020em,48px 78px 0 0.020em,54px 78px 0 0.020em,66px 78px 0 0.020em,36px 84px 0 0.020em,48px 84px 0 0.020em,54px 84px 0 0.020em,66px 84px 0 0.020em,30px 90px 0 0.020em,42px 90px 0 0.020em,60px 90px 0 0.020em,72px 90px 0 0.020em;\n }\n}\n\n.nes-octocat.animate::before {\n animation: wave 0.5s infinite steps(1);\n}\n\n@keyframes wave {\n 50% {\n width: 6px;\n height: 6px;\n color: #333;\n box-shadow: 24px 6px,78px 6px,24px 12px,30px 12px,72px 12px,78px 12px,24px 18px,30px 18px,36px 18px,42px 18px,48px 18px,54px 18px,60px 18px,66px 18px,72px 18px,78px 18px,18px 24px,24px 24px,30px 24px,36px 24px,42px 24px,48px 24px,54px 24px,60px 24px,66px 24px,72px 24px,78px 24px,84px 24px,18px 30px,24px 30px,30px 30px,36px 30px,42px 30px,48px 30px,54px 30px,60px 30px,66px 30px,72px 30px,78px 30px,84px 30px,18px 36px,24px 36px,30px 36px,36px 36px #ffdec4,42px 36px #ffdec4,48px 36px #ffdec4,54px 36px #ffdec4,60px 36px #ffdec4,66px 36px #ffdec4,72px 36px,78px 36px,84px 36px,18px 42px,24px 42px,30px 42px #ffdec4,36px 42px #ffdec4,42px 42px #ffdec4,48px 42px #ffdec4,54px 42px #ffdec4,60px 42px #ffdec4,66px 42px #ffdec4,72px 42px #ffdec4,78px 42px,84px 42px,12px 48px,18px 48px,24px 48px,30px 48px #ffdec4,36px 48px #cb7066,42px 48px #ffdec4,48px 48px #ffdec4,54px 48px #ffdec4,60px 48px #ffdec4,66px 48px #cb7066,72px 48px #ffdec4,78px 48px,84px 48px,12px 54px,24px 54px,30px 54px,36px 54px #ffdec4,42px 54px #ffdec4,48px 54px #cb7066,54px 54px #cb7066,60px 54px #ffdec4,66px 54px #ffdec4,72px 54px,78px 54px,18px 60px,42px 60px,48px 60px,54px 60px,60px 60px,24px 66px,36px 66px,42px 66px,48px 66px,54px 66px,60px 66px,66px 66px,24px 72px,30px 72px,36px 72px,42px 72px,48px 72px,54px 72px,60px 72px,66px 72px,36px 78px,48px 78px,54px 78px,66px 78px,36px 84px,48px 84px,54px 84px,66px 84px,30px 90px,42px 90px,60px 90px,72px 90px;\n @supports (-moz-appearance: meterbar) {\n box-shadow: 24px 6px 0 0.020em,78px 6px 0 0.020em,24px 12px 0 0.020em,30px 12px 0 0.020em,72px 12px 0 0.020em,78px 12px 0 0.020em,24px 18px 0 0.020em,30px 18px 0 0.020em,36px 18px 0 0.020em,42px 18px 0 0.020em,48px 18px 0 0.020em,54px 18px 0 0.020em,60px 18px 0 0.020em,66px 18px 0 0.020em,72px 18px 0 0.020em,78px 18px 0 0.020em,18px 24px 0 0.020em,24px 24px 0 0.020em,30px 24px 0 0.020em,36px 24px 0 0.020em,42px 24px 0 0.020em,48px 24px 0 0.020em,54px 24px 0 0.020em,60px 24px 0 0.020em,66px 24px 0 0.020em,72px 24px 0 0.020em,78px 24px 0 0.020em,84px 24px 0 0.020em,18px 30px 0 0.020em,24px 30px 0 0.020em,30px 30px 0 0.020em,36px 30px 0 0.020em,42px 30px 0 0.020em,48px 30px 0 0.020em,54px 30px 0 0.020em,60px 30px 0 0.020em,66px 30px 0 0.020em,72px 30px 0 0.020em,78px 30px 0 0.020em,84px 30px 0 0.020em,18px 36px 0 0.020em,24px 36px 0 0.020em,30px 36px 0 0.020em,36px 36px 0 0.020em #ffdec4,42px 36px 0 0.020em #ffdec4,48px 36px 0 0.020em #ffdec4,54px 36px 0 0.020em #ffdec4,60px 36px 0 0.020em #ffdec4,66px 36px 0 0.020em #ffdec4,72px 36px 0 0.020em,78px 36px 0 0.020em,84px 36px 0 0.020em,18px 42px 0 0.020em,24px 42px 0 0.020em,30px 42px 0 0.020em #ffdec4,36px 42px 0 0.020em #ffdec4,42px 42px 0 0.020em #ffdec4,48px 42px 0 0.020em #ffdec4,54px 42px 0 0.020em #ffdec4,60px 42px 0 0.020em #ffdec4,66px 42px 0 0.020em #ffdec4,72px 42px 0 0.020em #ffdec4,78px 42px 0 0.020em,84px 42px 0 0.020em,12px 48px 0 0.020em,18px 48px 0 0.020em,24px 48px 0 0.020em,30px 48px 0 0.020em #ffdec4,36px 48px 0 0.020em #cb7066,42px 48px 0 0.020em #ffdec4,48px 48px 0 0.020em #ffdec4,54px 48px 0 0.020em #ffdec4,60px 48px 0 0.020em #ffdec4,66px 48px 0 0.020em #cb7066,72px 48px 0 0.020em #ffdec4,78px 48px 0 0.020em,84px 48px 0 0.020em,12px 54px 0 0.020em,24px 54px 0 0.020em,30px 54px 0 0.020em,36px 54px 0 0.020em #ffdec4,42px 54px 0 0.020em #ffdec4,48px 54px 0 0.020em #cb7066,54px 54px 0 0.020em #cb7066,60px 54px 0 0.020em #ffdec4,66px 54px 0 0.020em #ffdec4,72px 54px 0 0.020em,78px 54px 0 0.020em,18px 60px 0 0.020em,42px 60px 0 0.020em,48px 60px 0 0.020em,54px 60px 0 0.020em,60px 60px 0 0.020em,24px 66px 0 0.020em,36px 66px 0 0.020em,42px 66px 0 0.020em,48px 66px 0 0.020em,54px 66px 0 0.020em,60px 66px 0 0.020em,66px 66px 0 0.020em,24px 72px 0 0.020em,30px 72px 0 0.020em,36px 72px 0 0.020em,42px 72px 0 0.020em,48px 72px 0 0.020em,54px 72px 0 0.020em,60px 72px 0 0.020em,66px 72px 0 0.020em,36px 78px 0 0.020em,48px 78px 0 0.020em,54px 78px 0 0.020em,66px 78px 0 0.020em,36px 84px 0 0.020em,48px 84px 0 0.020em,54px 84px 0 0.020em,66px 84px 0 0.020em,30px 90px 0 0.020em,42px 90px 0 0.020em,60px 90px 0 0.020em,72px 90px 0 0.020em;\n }\n }\n}\n/*# sourceMappingURL=nes.css.map */","/*!\n * Bootstrap Reboot v4.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2018 The Bootstrap Authors\n * Copyright 2011-2018 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n@-ms-viewport {\n width: device-width;\n}\n\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection {\n display: block;\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus {\n outline: 0 !important;\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: 0.5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline;\n}\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):hover,\na:not([href]):not([tabindex]):focus {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus {\n outline: 0;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 1em;\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg {\n vertical-align: middle;\n border-style: none;\n}\n\nsvg {\n overflow: hidden;\n vertical-align: middle;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n color: #6c757d;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n text-align: inherit;\n}\n\nlabel {\n display: inline-block;\n margin-bottom: 0.5rem;\n}\n\nbutton {\n border-radius: 0;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n}\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto;\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: 0.5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item;\n cursor: pointer;\n}\n\ntemplate {\n display: none;\n}\n\n[hidden] {\n display: none !important;\n}\n","// Override reboot.scss\n\nhtml,\nbody,\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family;\n}\n\nhtml {\n cursor: $cursor-url, auto;\n}\n\nbody {\n font-size: $font-size;\n color: $base-color;\n background-color: $background-color;\n -webkit-font-smoothing: antialiased;\n}\n\nlabel {\n cursor: inherit;\n}\n\na,\nbutton {\n cursor: $cursor-click-url, pointer;\n}\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: none;\n}\n\n// Prevent stray pixels on focused inputs such as checkboxes and radios\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n outline: 0;\n}\n","// https://en.wikipedia.org/wiki/List_of_video_game_console_palettes#NES\n\n$color-black: #212529;\n$color-white: #fff;\n\n$color-00: #7c7c7c;\n$color-01: #0000fc;\n$color-02: #0000bc;\n$color-03: #4428bc;\n$color-04: #940084;\n$color-05: #a80020;\n$color-06: #a81000;\n$color-07: #881400;\n$color-08: #503000;\n$color-09: #007800;\n$color-0A: #006800;\n$color-0B: #005800;\n$color-0C: #004058;\n$color-0D: #000;\n$color-0E: #000;\n$color-0F: #000;\n\n$color-10: #bcbcbc;\n$color-11: #0078f8;\n$color-12: #0058f8;\n$color-13: #6844fc;\n$color-14: #d800cc;\n$color-15: #e40058;\n$color-16: #f83800;\n$color-17: #e45c10;\n$color-18: #ac7c00;\n$color-19: #00b800;\n$color-1A: #00a800;\n$color-1B: #00a844;\n$color-1C: #088;\n$color-1D: #000;\n$color-1E: #000;\n$color-1F: #000;\n\n$color-20: #f8f8f8;\n$color-21: #3cbcfc;\n$color-22: #6888fc;\n$color-23: #9878f8;\n$color-24: #f878f8;\n$color-25: #f85898;\n$color-26: #f87858;\n$color-27: #fca044;\n$color-28: #f8b800;\n$color-29: #b8f818;\n$color-2A: #58d854;\n$color-2B: #58f898;\n$color-2C: #00e8d8;\n$color-2D: #787878;\n$color-2E: #000;\n$color-2F: #000;\n\n$color-30: #fcfcfc;\n$color-31: #a4e4fc;\n$color-32: #b8b8f8;\n$color-33: #d8b8f8;\n$color-34: #f8b8f8;\n$color-35: #f8a4c0;\n$color-36: #f0d0b0;\n$color-37: #fbdfa6;\n$color-38: #f8d878;\n$color-39: #d8f878;\n$color-3A: #b8f8b8;\n$color-3B: #b8f8d8;\n$color-3C: #00fcfc;\n$color-3D: #d8d8d8;\n$color-3E: #000;\n$color-3F: #000;\n","@keyframes blink {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0;\n }\n}\n","%rounded-corner-defaults {\n border-style: solid;\n border-width: $border-size;\n}\n\n@mixin border-image($color) {\n border-image-source: url('data:image/svg+xml;utf8,');\n}\n\n@mixin compact-border-image($color) {\n border-image-source: url('data:image/svg+xml;utf8,');\n}\n\n@mixin border-image-repeat() {\n border-image-repeat: stretch;\n\n // for chrome\n @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {\n border-image-repeat: space;\n }\n\n // for firefox\n @supports (-moz-appearance: meterbar) {\n border-image-repeat: stretch;\n }\n}\n\n@mixin rounded-corners($isDark: false) {\n @extend %rounded-corner-defaults;\n\n border-image-slice: 3;\n border-image-width: 3;\n\n @include border-image-repeat();\n\n @if $isDark {\n @include border-image($color-white);\n\n border-image-outset: 0;\n } @else {\n @include border-image($color-black);\n\n border-image-outset: 2;\n }\n}\n\n@mixin compact-rounded-corners($isDark: false) {\n @extend %rounded-corner-defaults;\n\n border-image-slice: 2;\n border-image-width: 2;\n\n @include border-image-repeat();\n\n @if $isDark {\n @include compact-border-image($color-white);\n\n border-image-outset: 0;\n } @else {\n @include compact-border-image($color-black);\n\n border-image-outset: 2;\n }\n}\n",".nes-pointer {\n cursor: $cursor-click-url, pointer;\n}\n","@mixin img-style($param) {\n $size: $param * 16;\n\n width: $size;\n height: $size;\n\n &.is-rounded {\n border-radius: 50px;\n }\n}\n.nes-avatar {\n @include img-style(2px);\n\n &.is-small {\n @include img-style(1px);\n }\n &.is-medium {\n @include img-style(3px);\n }\n &.is-large {\n @include img-style(4px);\n }\n}\n","@mixin span-style-is-icon($color, $background-color, $display, $width, $font-size) {\n display: $display;\n align-items: center;\n justify-content: center;\n width: $width;\n font-size: $font-size;\n color: $color;\n text-align: center;\n background-color: $background-color;\n}\n\n@mixin span-style($color, $background, $option, $width: 50%) {\n position: absolute;\n top: 0;\n width: $width;\n color: $color;\n text-align: center;\n background-color: $background;\n\n @if $option == left {\n left: 0;\n } @else if $option == right {\n right: 0;\n }\n}\n\n@mixin badge-style($color, $background, $option: is-default) {\n $box-shadow-first-two: 0 0.5em $background, 0 -0.5em $background;\n\n @if $option == is-splited {\n &:first-child {\n @include span-style($color, $background, left);\n\n box-shadow: $box-shadow-first-two, 0 0 $background, -0.5em 0 $background;\n }\n &:last-child {\n @include span-style($color, $background, right);\n\n box-shadow: $box-shadow-first-two, 0.5em 0 $background, 0 0 $background;\n }\n } @else if $option == is-icon {\n &:first-child {\n @include span-style-is-icon($color, $background, flex, 2.7em, 0.5em);\n\n position: absolute;\n top: -2.8em;\n left: -2.7em;\n height: 2.7em;\n }\n &:last-child {\n @include span-style-is-icon($color, $background, inline-block, 6em, 0.88em);\n\n box-shadow: $box-shadow-first-two, 0.5em 0 $background, -0.5em 0 $background;\n }\n } @else {\n &:first-child {\n @include span-style($color, $background, 0, 100%);\n\n box-shadow: $box-shadow-first-two, 0.5em 0 $background, -0.5em 0 $background;\n }\n }\n}\n\n// Default style\n.nes-badge {\n $em: 0.75em;\n\n position: relative;\n display: inline-block;\n width: $em * 14;\n height: $em * 2.5;\n margin: 0.5em;\n font-size: $em * 1.2;\n white-space: nowrap;\n vertical-align: top;\n user-select: none;\n\n // Other styles\n // prettier-ignore\n $types:\n \"dark\" $background-color $base-color,\n \"primary\" $background-color map-get($primary-colors, \"normal\"),\n \"success\" $background-color map-get($success-colors, \"normal\"),\n \"warning\" $base-color map-get($warning-colors, \"normal\"),\n \"error\" $background-color map-get($error-colors, \"normal\");\n\n @each $type in $types {\n &.is-splited {\n & span.is-#{nth($type, 1)} {\n @include badge-style(nth($type, 2), nth($type, 3), is-splited);\n }\n }\n\n &.is-icon {\n width: $em * 7;\n & span.is-#{nth($type, 1)} {\n @include badge-style(nth($type, 2), nth($type, 3), is-icon);\n }\n }\n\n & span.is-#{nth($type, 1)} {\n @include badge-style(nth($type, 2), nth($type, 3));\n }\n }\n}\n","// Font\n$font-family: \"Press Start 2P\" !default;\n$font-size: 16px !default;\n\n$base-color: $color-black !default;\n$background-color: $color-white !default;\n\n$cursor-url: url(get-file-as-data-uri(\"../assets/cursor.png\")) !default;\n$cursor-click-url: url(get-file-as-data-uri(\"../assets/cursor-click.png\")) 14 0 !default;\n\n$border-size: 4px !default;\n\n$default-colors: (\n normal: $background-color,\n hover: #e7e7e7,\n shadow: #adafbc\n) !default;\n$disabled-colors: (\n normal: #d3d3d3,\n shadow: #adafbc\n) !default;\n$primary-colors: (\n normal: #209cee,\n hover: #108de0,\n shadow: #006bb3\n) !default;\n$success-colors: (\n normal: #92cc41,\n hover: #76c442,\n shadow: #4aa52e\n) !default;\n$warning-colors: (\n normal: #f7d51d,\n hover: #f2c409,\n shadow: #e59400\n) !default;\n$error-colors: (\n normal: #e76e55,\n hover: #ce372b,\n shadow: #8c2022\n) !default;\n","@mixin box-shadow($color, $fromLeft: true) {\n @if $fromLeft {\n // prettier-ignore\n box-shadow:\n -4px 0,\n 4px 0,\n -4px 4px $color,\n 0 4px,\n -8px 4px,\n -4px 8px,\n -8px 8px;\n } @else {\n // prettier-ignore\n box-shadow:\n -4px 0,\n 4px 0,\n 4px 4px $color,\n 0 4px,\n 8px 4px,\n 4px 8px,\n 8px 8px;\n }\n}\n\n.nes-balloon {\n @include rounded-corners();\n\n position: relative;\n display: inline-block;\n padding: 1rem 1.5rem;\n margin: 8px;\n margin-bottom: 30px;\n background-color: $background-color;\n\n > :last-child {\n margin-bottom: 0;\n }\n\n &::before,\n &::after {\n position: absolute;\n content: \"\";\n }\n\n &.is-dark {\n @include rounded-corners(true);\n\n color: $background-color;\n background: $base-color;\n border-image-outset: 2;\n box-shadow: 0 0 0 8px $base-color;\n\n &.from-left,\n &.from-right {\n &::before {\n background-color: $base-color;\n border-color: $background-color;\n }\n\n &::after {\n color: $background-color;\n background-color: $base-color;\n }\n }\n\n &.from-left {\n &::before {\n box-shadow: -5px 10px 0 6px $base-color;\n }\n &::after {\n @include box-shadow($base-color);\n }\n }\n\n &.from-right {\n &::before {\n box-shadow: 5px 10px 0 6px $base-color;\n }\n &::after {\n @include box-shadow($base-color, false);\n }\n }\n }\n\n &.from-left {\n &::before,\n &::after {\n left: 2rem;\n }\n\n &::before {\n bottom: -14px;\n width: 26px;\n height: 10px;\n background-color: $background-color;\n border-right: 4px solid $base-color;\n border-left: 4px solid $base-color;\n }\n\n &::after {\n bottom: -18px;\n width: 18px;\n height: 4px;\n margin-right: 8px;\n color: $base-color;\n background-color: $background-color;\n @include box-shadow($background-color);\n }\n }\n\n &.from-right {\n &::before,\n &::after {\n right: 2rem;\n }\n\n &::before {\n bottom: -14px;\n width: 26px;\n height: 10px;\n background-color: $background-color;\n border-right: 4px solid $base-color;\n border-left: 4px solid $base-color;\n }\n\n &::after {\n bottom: -18px;\n width: 18px;\n height: 4px;\n margin-left: 8px;\n background-color: $background-color;\n @include box-shadow($background-color, false);\n }\n }\n}\n","@mixin btn-style($color, $background, $hover-background, $shadow) {\n color: $color;\n background-color: $background;\n\n &::after {\n position: absolute;\n top: -$border-size;\n right: -$border-size;\n bottom: -$border-size;\n left: -$border-size;\n content: \"\";\n box-shadow: inset -4px -4px $shadow;\n }\n\n &:hover {\n color: $color;\n text-decoration: none;\n background-color: $hover-background;\n\n &::after {\n box-shadow: inset -6px -6px $shadow;\n }\n }\n\n &:focus {\n box-shadow: 0 0 0 6px rgba($shadow, 0.3);\n }\n\n &:active:not(.is-disabled)::after {\n box-shadow: inset 4px 4px $shadow;\n }\n}\n\n// Default style\n.nes-btn {\n @include compact-rounded-corners();\n\n position: relative;\n display: inline-block;\n padding: 6px 8px;\n margin: $border-size;\n text-align: center;\n vertical-align: middle;\n cursor: $cursor-click-url, pointer;\n user-select: none;\n\n @include btn-style(\n $base-color,\n map-get($default-colors, \"normal\"),\n map-get($default-colors, \"hover\"),\n map-get($default-colors, \"shadow\")\n );\n\n &:focus {\n outline: 0;\n }\n\n &.is-disabled,\n &.is-disabled:hover,\n &.is-disabled:focus {\n color: $base-color;\n cursor: not-allowed;\n background-color: map-get($disabled-colors, \"normal\");\n box-shadow: inset -4px -4px map-get($disabled-colors, \"shadow\");\n opacity: 0.6;\n }\n\n // Other styles\n // prettier-ignore\n $types:\n \"primary\" $background-color map-get($primary-colors, \"normal\") map-get($primary-colors, \"hover\") map-get($primary-colors, \"shadow\"),\n \"success\" $background-color map-get($success-colors, \"normal\") map-get($success-colors, \"hover\") map-get($success-colors, \"shadow\"),\n \"warning\" $base-color map-get($warning-colors, \"normal\") map-get($warning-colors, \"hover\") map-get($warning-colors, \"shadow\"),\n \"error\" $background-color map-get($error-colors, \"normal\") map-get($error-colors, \"hover\") map-get($error-colors, \"shadow\");\n\n @each $type in $types {\n &.is-#{nth($type, 1)} {\n @include btn-style(nth($type, 2), nth($type, 3), nth($type, 4), nth($type, 5));\n }\n }\n\n input[type=\"file\"] {\n position: absolute;\n pointer-events: none;\n opacity: 0;\n }\n}\n",".nes-container {\n position: relative;\n padding: 1.5rem 2rem;\n border-color: black;\n border-style: solid;\n border-width: 4px;\n\n > :last-child {\n margin-bottom: 0;\n }\n\n &.is-centered {\n text-align: center;\n }\n\n &.is-right {\n text-align: right;\n }\n\n &.with-title {\n > .title {\n display: table;\n padding: 0 0.5rem;\n margin: -1.8rem 0 1rem;\n font-size: 1rem;\n background-color: $background-color;\n }\n\n &.is-centered {\n > .title {\n margin: -2rem auto 1rem;\n }\n }\n\n &.is-right {\n > .title {\n margin: -2rem 0 1rem auto;\n }\n }\n }\n\n &.is-dark {\n position: relative;\n margin: $border-size;\n color: $background-color;\n background-color: $base-color;\n border-color: white;\n\n &::after {\n position: absolute;\n top: -$border-size * 1.8;\n right: -$border-size * 1.8;\n bottom: -$border-size * 1.8;\n left: -$border-size * 1.8;\n z-index: -1;\n content: \"\";\n background-color: $base-color;\n }\n\n &.with-title {\n > .title {\n color: $background-color;\n background-color: $base-color;\n }\n }\n }\n\n &.is-rounded {\n @include rounded-corners();\n\n padding: 1rem 1.5rem;\n margin: $border-size;\n\n &.with-title {\n > .title {\n margin-top: -1.5rem;\n }\n\n &.is-centered {\n > .title {\n margin: -1.5rem auto 1rem;\n }\n }\n\n &.is-right {\n > .title {\n margin: -1.5rem 0 1rem auto;\n }\n }\n }\n\n &.is-dark {\n @include rounded-corners(true);\n &::after {\n content: none;\n }\n\n &.with-title {\n > .title {\n margin-top: -1.3rem;\n }\n\n &.is-centered {\n > .title {\n margin: -1.3rem auto 1rem;\n }\n }\n\n &.is-right {\n > .title {\n margin: -1.3rem 0 1rem auto;\n }\n }\n }\n }\n }\n}\n",".nes-dialog {\n padding: 1.5rem 2rem;\n border-width: $border-size;\n\n > .backdrop,\n &::backdrop {\n background-color: rgba(0, 0, 0, 0.3);\n }\n\n > :last-child {\n margin-bottom: 0;\n }\n\n &.is-rounded {\n @include rounded-corners();\n\n &.is-dark {\n @include rounded-corners(true);\n }\n }\n &.is-dark {\n color: $background-color;\n background-color: $base-color;\n border-color: $background-color;\n\n &:not(.is-rounded)::before {\n position: absolute;\n top: -$border-size * 2;\n right: -$border-size * 2;\n bottom: -$border-size * 2;\n left: -$border-size * 2;\n z-index: -1;\n content: \"\";\n border: $border-size solid $base-color;\n }\n }\n}\n",".nes-list {\n // prettier-ignore\n $disc: (\n (0,0,0,1,1,0,0,0),\n (0,0,1,1,1,1,0,0),\n (0,1,1,1,1,1,1,0),\n (0,1,1,1,1,1,1,0),\n (0,0,1,1,1,1,0,0),\n (0,0,0,1,1,0,0,0)\n );\n\n // prettier-ignore\n $circle: (\n (0,0,0,1,1,0,0,0),\n (0,0,1,1,1,1,0,0),\n (0,1,1,0,0,1,1,0),\n (0,1,1,0,0,1,1,0),\n (0,0,1,1,1,1,0,0),\n (0,0,0,1,1,0,0,0)\n );\n $colors: ($base-color, map-get($default-colors, \"shadow\"));\n\n list-style-type: none;\n\n & li {\n position: relative;\n }\n\n &.is-disc li::before {\n position: absolute;\n top: calc(50% - 8px);\n left: -22px;\n content: \"\";\n\n @include pixelize(2px, $disc, $colors);\n }\n\n &.is-circle li::before {\n position: absolute;\n top: calc(50% - 8px);\n left: -22px;\n content: \"\";\n\n @include pixelize(2px, $circle, $colors);\n }\n}\n","@mixin pixelize($size, $matrix, $colors, $default-color: null) {\n $ret: \"\";\n $moz: \"\";\n @if ($default-color == null) {\n // count number of each color in matrix and decide main color by highest count\n $matrix-colors: ();\n $counts: ();\n @each $row in $matrix {\n @each $item in $row {\n @if $item != 0 {\n $index: index($matrix-colors, $item);\n @if not $index {\n $matrix-colors: append($matrix-colors, $item);\n $counts: append($counts, 1);\n } @else {\n $count: nth($counts, $index) + 1;\n $counts: set-nth($counts, $index, $count);\n }\n }\n }\n }\n // use index of the highest count to get the corresponding matrix color\n $default-color: nth($colors, nth($matrix-colors, index($counts, max($counts...))));\n }\n\n @for $i from 1 through length($matrix) {\n $row: nth($matrix, $i);\n\n @for $j from 1 through length($row) {\n $dot: nth($row, $j);\n\n @if $dot != 0 {\n @if $ret != \"\" {\n $ret: $ret + \",\";\n $moz: $moz + \",\";\n }\n\n $color: nth($colors, $dot);\n @if $color == $default-color {\n $ret: $ret + ($j * $size) + \" \" + ($i * $size);\n $moz: $moz + ($j * $size) + \" \" + ($i * $size) + \" 0 0.020em\";\n } @else {\n $ret: $ret + ($j * $size) + \" \" + ($i * $size) + \" \" + $color;\n $moz: $moz + ($j * $size) + \" \" + ($i * $size) + \" 0 0.020em \" + $color;\n }\n }\n }\n }\n\n width: $size;\n height: $size;\n color: $default-color;\n box-shadow: unquote($ret);\n\n // firefox only style\n @supports (-moz-appearance: meterbar) {\n box-shadow: unquote($moz);\n }\n}\n",".nes-progress {\n @include compact-rounded-corners();\n\n width: 100%;\n height: 48px;\n margin: 4px;\n color: $base-color;\n background-color: $background-color;\n -webkit-appearance: none;\n appearance: none;\n\n @mixin progress-style($color) {\n &::-webkit-progress-bar {\n background-color: $background-color;\n }\n &::-webkit-progress-value {\n background-color: $color;\n }\n &::-moz-progress-bar {\n background-color: $color;\n }\n &::-ms-fill {\n background-color: $color;\n border: none;\n }\n }\n\n @include progress-style($base-color);\n\n &.is-rounded {\n @include rounded-corners();\n }\n &.is-primary {\n @include progress-style(map-get($primary-colors, \"normal\"));\n }\n\n &.is-success {\n @include progress-style(map-get($success-colors, \"normal\"));\n }\n\n &.is-warning {\n @include progress-style(map-get($warning-colors, \"normal\"));\n }\n\n &.is-error {\n @include progress-style(map-get($error-colors, \"normal\"));\n }\n\n &.is-pattern {\n &::-webkit-progress-value {\n background-color: $base-color;\n background-image: linear-gradient(\n 45deg,\n $background-color 25%,\n transparent 25%,\n transparent 75%,\n $background-color 75%,\n $background-color\n ),\n linear-gradient(\n 45deg,\n $background-color 25%,\n transparent 25%,\n transparent 75%,\n $background-color 75%,\n $background-color\n );\n background-position: 0 0, 10px 10px;\n background-size: 20px 20px;\n }\n\n &::-moz-progress-bar {\n background-color: $base-color;\n background-image: -moz-linear-gradient(\n 45deg,\n $background-color 25%,\n transparent 25%,\n transparent 75%,\n $background-color 75%,\n $background-color\n ),\n -moz-linear-gradient(45deg, $background-color 25%, transparent 25%, transparent 75%, $background-color\n 75%, $background-color);\n background-position: 0 0, 10px 10px;\n background-size: 20px 20px;\n }\n\n &::-ms-fill {\n background-color: $base-color;\n background-image: linear-gradient(\n 45deg,\n $background-color 25%,\n transparent 25%,\n transparent 75%,\n $background-color 75%,\n $background-color\n ),\n linear-gradient(\n 45deg,\n $background-color 25%,\n transparent 25%,\n transparent 75%,\n $background-color 75%,\n $background-color\n );\n background-position: 0 0, 10px 10px;\n background-size: 20px 20px;\n border: none;\n }\n }\n}\n",".nes-table-responsive {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n}\n\n.nes-table {\n table-layout: fixed;\n background-color: $background-color;\n\n tr {\n margin-left: -0.25em;\n }\n\n th,\n td {\n position: relative;\n padding: 0.5rem;\n word-wrap: break-word;\n border-color: $base-color;\n border-style: solid;\n border-width: 0 0.25em 0.25em 0;\n\n &:last-child {\n border-right-width: 0;\n }\n\n &::after,\n &::before {\n position: absolute;\n display: block;\n width: 0.25em;\n height: 0.25em;\n content: \"\";\n background-color: $base-color;\n }\n\n &::after {\n bottom: -0.25em;\n left: -0.25em;\n }\n\n &::before {\n top: -0.25em;\n right: -0.25em;\n }\n\n &:last-child::before {\n top: initial;\n bottom: -0.25em;\n }\n }\n\n &.is-centered th {\n text-align: center;\n }\n\n &.is-bordered {\n margin: 4px;\n border-spacing: 0;\n border-collapse: separate;\n\n @include compact-rounded-corners();\n }\n\n &.is-dark {\n color: $background-color;\n background-color: $base-color;\n\n &::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \"\";\n }\n\n &.is-bordered {\n @include compact-rounded-corners(true);\n }\n\n th,\n td {\n border-color: $background-color;\n\n &::after,\n &::before {\n display: none;\n }\n }\n }\n\n /*************************************************************************** \\\n This eliminates the gap between the last row in a table and the border, as\n well as hiding the derelict pixels in the bottom right and bottom left of\n the last row of a table\n \\ ***************************************************************************/\n tbody,\n thead:last-child {\n tr:last-child {\n th,\n td {\n border-bottom-width: 0;\n\n &:first-child::after,\n &:last-child::before {\n display: none;\n }\n }\n }\n }\n}\n",".nes-text {\n &.is-primary {\n color: map-get($primary-colors, \"normal\");\n }\n\n &.is-success {\n color: map-get($success-colors, \"normal\");\n }\n\n &.is-warning {\n color: map-get($warning-colors, \"normal\");\n }\n\n &.is-error {\n color: map_get($error-colors, \"normal\");\n }\n\n &.is-disabled {\n color: map_get($disabled-colors, \"normal\");\n }\n}\n",".nes-input,\n.nes-textarea {\n @mixin border-style($border, $outline) {\n @include compact-border-image($border);\n\n outline-color: $outline;\n }\n\n @include compact-rounded-corners();\n\n width: calc(100% - #{2 * $border-size});\n padding: 0.5rem 1rem;\n margin: 4px;\n background-clip: padding-box;\n\n &.is-dark {\n @include border-style(map-get($default-colors, \"normal\"), map-get($default-colors, \"hover\"));\n\n color: $background-color;\n background-color: $base-color;\n }\n &.is-success {\n @include border-style(map-get($success-colors, \"normal\"), map-get($success-colors, \"hover\"));\n }\n &.is-warning {\n @include border-style(map-get($warning-colors, \"normal\"), map-get($warning-colors, \"hover\"));\n }\n &.is-error {\n @include border-style(map-get($error-colors, \"normal\"), map-get($error-colors, \"hover\"));\n }\n}\n\n.nes-field {\n > label {\n display: block;\n }\n .nes-input,\n .nes-textarea {\n display: block;\n }\n\n &.is-inline {\n display: flex;\n align-items: center;\n\n > label {\n flex-basis: 0;\n flex-grow: 1;\n margin: 0;\n margin-right: 1.5rem;\n text-align: right;\n }\n\n .nes-input,\n .nes-textarea {\n flex-basis: 0;\n flex-grow: 5;\n }\n }\n}\n\n@media screen and (max-width: 768px) {\n .nes-field.is-inline {\n display: block;\n\n > label {\n margin-bottom: 0.5rem; // reboot.css:label\n text-align: left;\n }\n\n .nes-input {\n max-width: 100%;\n }\n }\n}\n",".nes-radio {\n // prettier-ignore\n $radio: (\n (1,1,0,0,0,0),\n (1,1,1,1,0,0),\n (1,1,1,1,1,0),\n (1,1,1,1,1,1),\n (1,1,1,1,1,0),\n (1,1,1,1,0,0),\n (1,1,0,0,0,0),\n );\n // prettier-ignore\n $radio-checked-focus: (\n (2,2,0,0,0,0),\n (2,2,2,2,0,0),\n (2,2,2,2,2,0),\n (2,2,2,2,2,2),\n (2,2,2,2,2,0),\n (2,2,2,2,0,0),\n (2,2,0,0,0,0),\n );\n $colors: ($base-color, map-get($default-colors, \"shadow\"));\n $colors-radio-dark: ($color-white, map-get($default-colors, \"shadow\"));\n\n margin-right: 20px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n\n @include visually-hidden();\n\n & + span {\n position: relative;\n cursor: $cursor-click-url, pointer;\n }\n\n &:checked + span::before {\n position: absolute;\n top: -2px;\n left: -20px;\n content: \"\";\n\n @include pixelize(2px, $radio, $colors);\n }\n\n &:checked:hover,\n &:checked:focus {\n & + span::before {\n animation: blink 1s infinite steps(1);\n }\n }\n\n &:checked:focus + span::before {\n @include pixelize(2px, $radio-checked-focus, $colors);\n }\n &.is-dark {\n + span {\n color: $color-white;\n }\n // prettier-ignore\n + span::before { /* stylelint-disable-line no-descending-specificity */\n color: $color-white;\n }\n\n &:checked + span::before {\n @include pixelize(2px, $radio-checked-focus, $colors-radio-dark);\n\n color: $color-white;\n }\n &:checked:focus + span::before {\n @include pixelize(2px, $radio-checked-focus, $colors-radio-dark);\n\n color: $color-white;\n }\n }\n}\n","/* https://medium.com/@matuzo/writing-css-with-accessibility-in-mind-8514a0007939 */\n@mixin visually-hidden() {\n // position: absolute;\n // margin: -1px;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n clip-path: inset(50%);\n}\n",".nes-checkbox {\n // prettier-ignore\n $checkbox: (\n (1,1,1,1,1,1,1,1,0,0),\n (1,0,0,0,0,0,0,1,0,0),\n (1,0,0,0,0,0,0,1,0,0),\n (1,0,0,0,0,0,0,1,0,0),\n (1,0,0,0,0,0,0,1,0,0),\n (1,0,0,0,0,0,0,1,0,0),\n (1,0,0,0,0,0,0,1,0,0),\n (1,1,1,1,1,1,1,1,0,0),\n );\n\n // prettier-ignore\n $checkbox-checked: (\n (1,1,1,1,1,1,1,0,1,1),\n (1,0,0,0,0,0,0,1,1,1),\n (1,0,0,0,0,0,1,1,0,0),\n (1,1,0,0,0,1,1,0,0,0),\n (1,1,1,0,1,1,0,1,0,0),\n (1,0,1,1,1,0,0,1,0,0),\n (1,0,0,1,0,0,0,1,0,0),\n (1,1,1,1,1,1,1,1,0,0)\n );\n // prettier-ignore\n $checkbox-focus: (\n (2,2,2,2,2,2,2,2,0,0),\n (2,0,0,0,0,0,0,2,0,0),\n (2,0,0,0,0,0,0,2,0,0),\n (2,0,0,0,0,0,0,2,0,0),\n (2,0,0,0,0,0,0,2,0,0),\n (2,0,0,0,0,0,0,2,0,0),\n (2,0,0,0,0,0,0,2,0,0),\n (2,2,2,2,2,2,2,2,0,0),\n );\n\n // prettier-ignore\n $checkbox-checked-focus: (\n (2,2,2,2,2,2,2,0,1,1),\n (2,0,0,0,0,0,0,1,1,1),\n (1,0,0,0,0,0,1,1,0,0),\n (1,1,0,0,0,1,1,0,0,0),\n (2,1,1,0,1,1,0,2,0,0),\n (2,0,1,1,1,0,0,2,0,0),\n (2,0,0,1,0,0,0,2,0,0),\n (2,2,2,2,2,2,2,2,0,0)\n );\n $colors: ($base-color, map-get($default-colors, \"shadow\"));\n $colors-checkbox-dark: ($color-white, map-get($default-colors, \"shadow\"));\n\n margin-left: 28px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n\n @include visually-hidden();\n\n & + span {\n position: relative;\n cursor: $cursor-click-url, pointer;\n }\n\n & + span::before,\n &:checked + span::before {\n position: absolute;\n top: -3px;\n left: -28px;\n content: \"\";\n }\n\n // prettier-ignore\n & + span::before { /* stylelint-disable-line no-descending-specificity */\n @include pixelize(2px, $checkbox, $colors);\n }\n // prettier-ignore\n &:focus + span::before { /* stylelint-disable-line no-descending-specificity */\n @include pixelize(2px, $checkbox-focus, $colors);\n }\n\n &:checked + span::before {\n @include pixelize(2px, $checkbox-checked, $colors);\n }\n &:checked:focus + span::before {\n @include pixelize(2px, $checkbox-checked-focus, $colors);\n }\n &.is-dark {\n + span {\n color: $color-white;\n }\n // prettier-ignore\n + span::before { /* stylelint-disable-line no-descending-specificity */\n color: $color-white;\n }\n\n &:checked + span::before {\n @include pixelize(2px, $checkbox-checked-focus, $colors-checkbox-dark);\n\n color: $color-white;\n }\n &:checked:focus + span::before {\n @include pixelize(2px, $checkbox-checked-focus, $colors-checkbox-dark);\n\n color: $color-white;\n }\n }\n}\n",".nes-select {\n // prettier-ignore\n $dropdown: (\n (1,1,1,1,1,1,1),\n (1,1,1,1,1,1,1),\n (0,1,1,1,1,1,0),\n (0,1,1,1,1,1,0),\n (0,0,1,1,1,0,0),\n (0,0,0,1,0,0,0),\n );\n $colors: ($base-color, map-get($default-colors, \"shadow\"));\n\n position: relative;\n width: calc(100% - #{2 * $border-size});\n margin: 4px;\n\n select {\n @include compact-rounded-corners();\n\n width: 100%;\n padding: 0.5rem 2.5rem 0.5rem 1rem;\n cursor: $cursor-click-url, pointer;\n border-radius: 0;\n outline-color: map-get($default-colors, \"hover\");\n -webkit-appearance: none;\n appearance: none;\n\n &:invalid {\n color: map-get($disabled-colors, shadow);\n }\n }\n\n &.is-dark select {\n color: $background-color;\n background-color: $base-color;\n }\n\n &::after {\n @include pixelize(3px, $dropdown, $colors);\n\n position: absolute;\n top: calc(50% - 11px);\n right: 36px;\n pointer-events: none;\n content: \"\";\n }\n\n // prettier-ignore\n $types:\n \"success\" map-get($success-colors, \"normal\") map-get($success-colors, \"hover\"),\n \"warning\" map-get($warning-colors, \"normal\") map-get($warning-colors, \"hover\"),\n \"error\" map-get($error-colors, \"normal\") map-get($error-colors, \"hover\"),\n \"dark\" map-get($default-colors, \"normal\") map-get($default-colors, \"hover\");\n\n @each $type in $types {\n &.is-#{nth($type, 1)} {\n $color: nth($type, 2);\n\n &::after {\n color: $color;\n }\n\n select {\n @include compact-border-image($color);\n\n outline-color: nth($type, 3);\n }\n }\n }\n}\n","// reaction\n@import \"heart.scss\";\n@import \"star.scss\";\n@import \"like.scss\";\n\n// sns\n@import \"twitter.scss\";\n@import \"facebook.scss\";\n@import \"github.scss\";\n@import \"youtube.scss\";\n@import \"google.scss\";\n@import \"medium.scss\";\n@import \"twitch.scss\";\n@import \"reddit.scss\";\n@import \"whatsapp.scss\";\n@import \"gmail.scss\";\n@import \"linkedin.scss\";\n@import \"instagram.scss\";\n\n// others\n@import \"close.scss\";\n@import \"trophy.scss\";\n@import \"coin.scss\";\n\n.nes-icon {\n $default-size: 1px;\n $icon-size: $default-size * 16;\n\n position: relative;\n display: inline-block;\n width: $icon-size;\n height: $icon-size;\n margin-right: $icon-size;\n margin-bottom: $icon-size;\n\n // NOTE: Use `transform: scale()` because cannot use font-size less than 10px on Chrome\n // default 2px\n transform: scale(2);\n transform-origin: top left;\n\n &.is-small {\n margin: 0;\n // 1px\n transform: scale(1);\n }\n\n &.is-medium {\n margin-right: $icon-size * 2;\n margin-bottom: $icon-size * 2;\n // 3px\n transform: scale(3);\n }\n\n &.is-large {\n margin-right: $icon-size * 3;\n margin-bottom: $icon-size * 3;\n // 4px\n transform: scale(4);\n }\n\n &::before {\n position: absolute;\n top: $default-size * -1;\n left: $default-size * -1;\n display: block;\n content: \"\";\n background: transparent;\n }\n\n &.heart::before {\n @include pixelize($default-size, $icon-heart, $icon-heart-colors);\n }\n &.heart.is-half::before {\n @include pixelize($default-size, $icon-heart-half, $icon-heart-colors);\n }\n &.heart.is-transparent::before {\n @include pixelize($default-size, $icon-heart-transparent, $icon-heart-colors);\n }\n &.heart.is-empty::before {\n @include pixelize($default-size, $icon-heart-empty, $icon-heart-empty-colors);\n }\n\n &.star::before {\n @include pixelize($default-size, $icon-star, $icon-star-colors);\n }\n &.star.is-empty::before {\n @include pixelize($default-size, $icon-star-empty, $icon-star-empty-colors);\n }\n &.star.is-half::before {\n @include pixelize($default-size, $icon-star-half, $icon-star-colors);\n }\n &.star.is-transparent::before {\n @include pixelize($default-size, $icon-star-transparent, $icon-star-colors);\n }\n\n &.trophy::before {\n @include pixelize($default-size, $icon-trophy, $icon-trophy-colors);\n }\n &.trophy.is-empty::before {\n @include pixelize($default-size, $icon-trophy-empty, $icon-trophy-empty-colors);\n }\n\n &.like::before {\n @include pixelize($default-size, $icon-like, $icon-like-colors);\n }\n &.like.is-empty::before {\n @include pixelize($default-size, $icon-like-empty, $icon-like-empty-colors);\n }\n\n &.twitter::before {\n @include pixelize($default-size, $icon-twitter, $icon-twitter-colors);\n }\n\n &.facebook::before {\n @include pixelize($default-size, $icon-facebook, $icon-facebook-colors);\n }\n\n &.github::before {\n @include pixelize($default-size, $icon-github, $icon-github-colors);\n }\n\n &.youtube::before {\n @include pixelize($default-size, $icon-youtube, $icon-youtube-colors);\n }\n\n &.close::before {\n @include pixelize($default-size, $icon-close, $icon-close-colors);\n }\n\n &.google::before {\n @include pixelize($default-size, $icon-google, $icon-google-colors);\n }\n\n &.medium::before {\n @include pixelize($default-size, $icon-medium, $icon-medium-colors);\n }\n\n &.twitch::before {\n @include pixelize($default-size, $icon-twitch, $icon-twitch-colors);\n }\n\n &.reddit::before {\n @include pixelize($default-size, $icon-reddit, $icon-reddit-colors);\n }\n\n &.whatsapp::before {\n @include pixelize($default-size, $icon-whatsapp, $icon-whatsapp-colors);\n }\n\n &.gmail::before {\n @include pixelize($default-size, $icon-gmail, $icon-gmail-colors);\n }\n\n &.linkedin::before {\n @include pixelize($default-size, $icon-linkedin, $icon-linkedin-colors);\n }\n\n &.instagram::before {\n @include pixelize($default-size, $icon-instagram, $icon-instagram-colors);\n }\n\n &.coin::before {\n @include pixelize($default-size, $icon-coin, $icon-coin-colors);\n }\n}\n","$icon-heart-colors: (#fff, #444, #f22426, #842300);\n// prettier-ignore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0,0,0,2,3,3,0,2,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,4,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)\n);\n\n// prettier-ignore\n$icon-heart-transparent: (\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),\n (0,0,2,2,2,0,0,0,0,0,2,2,2,0,0,0),\n (0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0),\n (2,0,0,0,0,0,2,0,2,0,0,0,0,0,2,0),\n (2,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0),\n (2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0),\n (2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0),\n (2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0),\n (0,2,0,0,0,0,0,0,0,0,0,0,0,2,0,0),\n (0,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0),\n (0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0),\n (0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0),\n (0,0,0,0,0,2,0,0,0,2,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)\n);\n\n$icon-heart-empty-colors: (#adafbb);\n// prettier-ignore\n$icon-heart-empty: (\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),\n (0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0),\n (0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0),\n (1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0),\n (1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0),\n (1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0),\n (1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0),\n (1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0),\n (0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0),\n (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),\n (0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0),\n (0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0),\n (0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)\n);\n","$icon-star-colors: (#fff, #444, #ebe527, #f59f54);\n// prettier-ignore\n$icon-star: (\n (0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,3,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,3,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,2,3,3,3,2,0,0,0,0,0,0),\n (0,0,0,0,0,2,1,1,3,2,0,0,0,0,0,0),\n (2,2,2,2,2,2,1,3,3,3,2,2,2,2,2,0),\n (2,3,3,3,1,1,3,3,3,3,3,3,3,3,2,0),\n (0,2,3,3,1,3,3,3,3,3,3,3,4,2,0,0),\n (0,0,2,3,3,3,3,3,3,3,4,4,2,0,0,0),\n (0,0,0,2,3,3,3,3,3,3,3,2,0,0,0,0),\n (0,0,2,3,3,3,3,4,3,3,3,3,2,0,0,0),\n (0,0,2,3,3,3,4,4,4,3,3,3,2,0,0,0),\n (0,2,3,3,4,4,4,2,4,4,4,3,3,2,0,0),\n (0,2,3,4,4,2,2,0,2,2,4,4,3,2,0,0),\n (2,4,4,2,2,0,0,0,0,0,2,2,4,4,2,0),\n (2,2,2,0,0,0,0,0,0,0,0,0,2,2,2,0)\n);\n\n$icon-star-empty-colors: (#adafbb);\n// prettier-ignore\n$icon-star-empty: (\n (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,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 0, 2, 2, 0, 0, 0, 0, 0, 2, 2, 0, 0, 2, 0),\n (2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0)\n);\n","$icon-trophy-colors: (#fff, #444, #ebe527, #f59f54);\n// prettier-ignore\n$icon-trophy: (\n (0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,0),\n (0,0,2,3,3,3,3,3,3,3,3,4,2,0,0,0),\n (2,2,2,3,1,3,3,3,3,3,3,4,2,2,2,0),\n (2,0,2,3,1,3,3,3,3,3,3,4,2,0,2,0),\n (2,0,2,3,1,3,3,3,3,3,3,4,2,0,2,0),\n (0,2,2,3,1,3,3,3,3,3,3,4,2,2,0,0),\n (0,0,2,3,1,3,3,3,3,3,3,4,2,0,0,0),\n (0,0,2,3,3,3,3,3,3,3,3,4,2,0,0,0),\n (0,0,0,2,3,3,3,3,3,3,4,2,0,0,0,0),\n (0,0,0,0,2,3,3,3,3,4,2,0,0,0,0,0),\n (0,0,0,0,0,2,3,3,4,2,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,3,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,3,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,2,2,3,2,2,0,0,0,0,0,0),\n (0,0,0,0,2,3,3,3,3,4,2,0,0,0,0,0),\n (0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0)\n);\n\n$icon-trophy-empty-colors: (#adafbb);\n// prettier-ignore\n$icon-trophy-empty: (\n (0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0),\n (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),\n (1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0),\n (1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0),\n (1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0),\n (0,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0),\n (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),\n (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),\n (0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0),\n (0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0),\n (0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0),\n (0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0),\n (0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0)\n);\n","$icon-like-colors: (#fff, #333, #2e77be);\n// prettier-ignore\n$icon-like: (\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,1,1,2,0,0,0,0,0,0),\n (0,0,0,0,0,0,2,1,1,2,2,2,2,2,2,0),\n (0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2),\n (0,2,2,2,0,2,1,1,1,1,1,1,1,1,1,2),\n (2,3,3,3,2,1,1,1,1,1,1,1,1,1,1,2),\n (2,3,3,3,2,1,1,1,1,1,1,1,1,1,2,0),\n (2,3,3,3,2,1,1,1,1,1,1,1,1,1,2,0),\n (2,3,3,3,2,1,1,1,1,1,1,1,1,1,2,0),\n (2,3,3,3,2,1,1,1,1,1,1,1,1,2,0,0),\n (2,3,3,3,2,1,1,1,1,1,1,1,1,2,0,0),\n (0,2,2,2,0,2,2,2,2,2,2,2,2,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)\n);\n\n$icon-like-empty-colors: (#adafbb);\n// prettier-ignore\n$icon-like-empty: (\n (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0),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1,1,1,1,1,1,3,3),\n ( 4,4,1,1,1,1,1,1,1,1,1,1,1,1,5,5),\n ( 4,4,4,1,1,1,1,1,1,1,1,1,1,5,5,5),\n ( 0,4,4,4,4,4,4,4,4,5,5,5,5,5,5,0),\n ( 0,0,4,4,4,4,4,4,5,5,5,5,5,5,0,0)\n);\n","$icon-coin-colors: (#060606, #fff, #ffc107);\n// prettier-ignore\n$icon-coin: (\n (0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0),\n (0,0,0,1,1,1,2,2,2,1,1,1,1,0,0,0),\n (0,0,1,1,2,2,3,3,3,3,3,1,1,0,0,0),\n (0,0,1,2,3,3,2,2,2,1,3,3,1,1,0,0),\n (0,1,1,2,3,3,2,3,3,1,3,3,1,1,0,0),\n (0,1,2,3,3,3,2,3,3,1,3,3,3,1,1,0),\n (0,1,2,3,3,3,2,3,3,1,3,3,3,1,1,0),\n (0,1,2,3,3,3,2,3,3,1,3,3,3,1,1,0),\n (0,1,2,3,3,3,2,3,3,1,3,3,3,1,1,0),\n (0,1,2,3,3,3,2,3,3,1,3,3,3,1,1,0),\n (0,1,2,3,3,3,2,3,3,1,3,3,3,1,1,0),\n (0,1,1,2,3,3,2,3,3,1,3,3,1,1,0,0),\n (0,0,1,2,3,3,2,1,1,1,3,3,1,1,0,0),\n (0,0,1,1,2,3,3,3,3,3,3,1,1,0,0,0),\n (0,0,0,1,1,1,3,3,3,1,1,1,1,0,0,0),\n (0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0),\n);\n",".nes-logo {\n $logo-colors: (#3e3634, #c3c3c3, #787973, #bf1710);\n\n // prettier-ignore\n $logo: (\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (2,1,1,1,1,1,1,1,1,1,1,1,1,1,2),\n (2,1,1,2,1,1,3,3,3,1,1,1,1,1,2),\n (2,1,2,2,2,1,1,1,1,1,1,1,1,1,2),\n (2,1,1,2,1,1,3,3,3,1,4,1,4,1,2),\n (2,1,1,1,1,1,1,1,1,1,1,1,1,1,2),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)\n );\n $size: 4px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($logo, 1));\n height: $size * length($logo);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $logo, $logo-colors);\n @include fill-gaps();\n }\n}\n","// Fill gaps in pixel art dots\n// `transform` property conflict when used for nes-icon\n@mixin fill-gaps() {\n transform: rotate(0);\n}\n",".nes-jp-logo {\n $logo-colors: (#333, #871f37, #dfd3b9);\n\n // prettier-ignore\n $logo: (\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (2,3,3,3,3,3,2,2,2,2,2,2,2,2,2),\n (2,3,3,1,3,3,2,2,2,2,2,2,2,2,2),\n (2,3,1,1,1,3,3,3,3,3,3,3,3,3,2),\n (2,3,3,1,3,3,1,2,1,3,1,3,1,3,2),\n (2,3,3,3,3,3,3,3,3,3,3,3,3,3,2),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)\n );\n $size: 4px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($logo, 1));\n height: $size * length($logo);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $logo, $logo-colors);\n @include fill-gaps();\n }\n}\n",".snes-logo {\n $logo-colors: (#333, #d7d7d7, #8932e5, #ad6df0);\n\n // prettier-ignore\n $logo: (\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,0,0),\n (0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),\n (1,2,2,1,2,2,2,2,2,2,2,4,2,2,1),\n (1,2,1,1,1,2,2,2,2,2,4,2,3,2,1),\n (1,2,2,1,2,2,1,2,1,2,2,3,2,2,1),\n (0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,0,0)\n );\n $size: 4px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($logo, 1));\n height: $size * length($logo);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $logo, $logo-colors);\n @include fill-gaps();\n }\n}\n",".snes-jp-logo {\n $px: 3px;\n $logo-colors: (#333, #d7d7d7, #7dbb78, #999cf7, #f40500, #f6f504);\n\n // prettier-ignore\n $logo: (\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,0,0),\n (0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),\n (1,2,2,1,2,2,2,2,2,2,2,4,2,2,1),\n (1,2,1,1,1,2,2,2,2,2,3,2,5,2,1),\n (1,2,2,1,2,2,1,2,1,2,2,6,2,2,1),\n (0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,0,0)\n );\n $size: 4px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($logo, 1));\n height: $size * length($logo);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $logo, $logo-colors);\n @include fill-gaps();\n }\n}\n",".nes-bcrikko {\n $bcrikko-colors: (#333, #f9f2d7, #c5090c, #fff);\n\n // prettier-ignore\n $bcrikko: (\n (0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (2,2,2,2,1,1,2,2,2,2,1,1,2,2,2,2),\n (2,2,2,1,1,4,1,2,2,1,1,4,1,2,2,2),\n (2,2,2,1,1,1,1,2,2,1,1,1,1,2,2,2),\n (2,2,2,1,1,1,1,2,2,1,1,1,1,2,2,2),\n (2,2,2,1,1,1,1,2,2,1,1,1,1,2,2,2),\n (2,2,2,2,1,1,2,2,2,2,1,1,2,2,2,2),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (2,2,2,3,2,2,2,2,2,2,2,2,3,2,2,2),\n (2,2,2,3,2,2,2,2,2,2,2,2,3,2,2,2),\n (2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2),\n (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),\n (0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0),\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($bcrikko, 1));\n height: $size * length($bcrikko);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $bcrikko, $bcrikko-colors);\n @include fill-gaps();\n }\n}\n",".nes-ash {\n $ash-colors: (#f8f8ff, #ff614e, #007f7f, #181818, #ffe3c5, #426adb, #4169e1);\n // prettier-ignore\n $ash: (\n (0,0,0,0,4,4,4,4,4,4,0,0,0,0),\n (0,0,0,4,2,2,2,1,1,3,4,0,0,0),\n (0,0,4,2,2,2,2,1,1,1,1,4,0,0),\n (0,0,4,2,2,2,2,1,1,3,3,4,4,0),\n (0,4,4,4,2,2,2,2,2,2,2,2,2,4),\n (0,4,4,4,4,4,4,4,2,2,2,4,4,0),\n (4,4,4,4,4,4,4,5,5,4,5,4,0,0),\n (0,4,4,5,5,5,4,5,5,4,5,4,0,0),\n (0,0,4,5,5,5,5,5,5,5,5,4,0,0),\n (0,4,7,4,4,5,5,5,5,5,4,0,0,0),\n (0,4,7,4,4,4,4,4,4,4,0,0,0,0),\n (0,4,4,5,5,4,7,7,4,4,4,0,0,0),\n (4,3,4,5,5,4,7,4,4,3,3,4,0,0),\n (4,3,3,4,4,4,4,4,3,3,4,0,0,0),\n (0,4,4,0,0,0,0,0,4,4,0,0,0,0)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($ash, 1));\n height: $size * length($ash);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $ash, $ash-colors);\n @include fill-gaps();\n }\n}\n",".nes-pokeball {\n $pokeball-colors: (#060606, #ff001d, #fff, #9fa1a1);\n // prettier-ignore\n $pokeball: (\n (0,0,0,0,0,1,1,1,1,0,0,0,0,0),\n (0,0,0,1,1,2,2,2,2,1,1,0,0,0),\n (0,0,1,3,3,2,2,2,2,2,2,1,0,0),\n (0,1,3,3,2,2,2,2,2,2,2,1,1,0),\n (0,1,3,2,2,2,2,2,2,2,2,2,1,0),\n (1,3,2,2,2,2,2,2,2,2,2,2,2,1),\n (1,1,1,2,2,2,2,1,1,1,2,2,2,1),\n (1,1,1,1,2,2,1,3,3,3,1,2,2,1),\n (1,4,3,1,1,1,1,3,3,3,1,1,1,1),\n (0,1,3,3,3,1,1,3,3,3,1,3,1,0),\n (0,1,3,3,3,3,3,1,1,1,3,3,1,0),\n (0,0,1,4,4,3,3,3,3,3,3,1,0,0),\n (0,0,0,1,1,4,4,4,4,1,1,0,0,0),\n (0,0,0,0,0,1,1,1,1,0,0,0,0,0),\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($pokeball, 1));\n height: $size * length($pokeball);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $pokeball, $pokeball-colors);\n @include fill-gaps();\n }\n}\n",".nes-bulbasaur {\n $bulbasaur-colors: (#000, #8beb46, #2d8d22, #5ceee1, #3fc3b5, #fdfdf5, #ca242a);\n // prettier-ignore\n $bulbasaur: (\n (0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,1,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1,0,0,0,0),\n (0,0,0,0,0,0,0,1,1,2,2,3,2,2,3,2,1,1,0,0),\n (0,0,0,1,1,0,1,2,2,2,3,3,2,2,3,2,2,2,1,0),\n (0,0,1,4,4,1,1,2,2,3,2,3,2,2,2,3,2,2,2,1),\n (0,0,1,4,4,4,1,1,3,2,3,2,2,2,2,2,3,2,2,1),\n (0,0,1,4,4,4,4,5,1,2,3,2,2,2,2,2,3,2,2,1),\n (0,1,4,4,5,4,5,5,4,1,1,1,2,2,2,2,3,2,1,0),\n (1,1,5,4,4,4,4,4,4,4,4,1,2,2,2,1,1,1,1,0),\n (1,1,5,4,4,4,5,4,4,4,1,5,1,1,1,5,5,5,1,0),\n (1,4,4,4,4,5,4,1,1,4,5,5,5,5,5,1,5,6,1,0),\n (1,5,4,4,4,4,1,7,6,6,5,5,1,5,5,1,1,1,0,0),\n (0,1,5,4,4,4,1,7,6,4,5,1,5,5,1,0,0,0,0,0),\n (0,0,1,1,5,5,5,5,5,5,1,5,5,5,1,0,0,0,0,0),\n (0,0,0,0,1,1,1,1,1,1,1,6,5,6,1,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0),\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($bulbasaur, 1));\n height: $size * length($bulbasaur);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $bulbasaur, $bulbasaur-colors);\n @include fill-gaps();\n }\n}\n",".nes-charmander {\n $charmander-colors: (#000202, #f77702, #eb2010, #fdfcff, #e5d70a, #e7d70e);\n // prettier-ignore\n $charmander: (\n (0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0),\n (0,0,0,1,2,2,2,2,1,0,0,0,0,0,0,0,1,3,1,0,0),\n (0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1,0),\n (0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1,0),\n (0,1,2,2,2,2,2,2,2,2,1,0,0,0,0,1,3,3,2,3,1),\n (1,2,2,2,2,4,1,2,2,2,1,0,0,0,0,1,3,2,6,3,1),\n (1,2,2,2,2,1,1,2,2,2,2,1,0,0,0,1,3,5,5,3,1),\n (1,2,2,2,2,1,1,2,2,2,2,1,0,0,0,0,1,5,1,1,0),\n (0,1,2,2,2,2,2,2,2,2,2,2,1,0,0,0,1,2,1,0,0),\n (0,0,1,1,2,2,2,2,2,2,2,2,2,1,0,1,2,2,1,0,0),\n (0,0,0,0,1,1,1,2,2,1,2,2,2,1,1,2,2,1,0,0,0),\n (0,0,0,0,0,1,6,5,1,2,2,2,2,2,1,2,2,1,0,0,0),\n (0,0,0,0,0,1,5,5,5,1,1,2,2,2,1,2,1,0,0,0,0),\n (0,0,0,0,1,4,1,6,5,5,2,2,2,2,1,1,0,0,0,0,0),\n (0,0,0,0,0,1,1,1,5,5,2,2,2,1,1,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,1,4,0,4,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($charmander, 1));\n height: $size * length($charmander);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $charmander, $charmander-colors);\n @include fill-gaps();\n }\n}\n",".nes-squirtle {\n $squirtle-colors: (#000, #9cf, #cb6633, #9fa1a1, #fff, #f89934, #ff3);\n // prettier-ignore\n $squirtle: (\n (0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0),\n (0,0,1,2,2,2,2,1,1,0,0,0,0,0,0,1,2,2,2,1,0),\n (0,1,2,2,2,2,2,2,2,1,1,0,0,0,1,2,2,2,2,2,1),\n (0,1,2,2,2,2,2,2,2,1,6,1,1,0,1,2,2,2,1,2,1),\n (1,3,2,2,2,2,2,2,2,2,6,6,6,1,2,2,2,1,2,2,1),\n (1,2,2,2,2,5,1,2,2,2,5,6,6,6,1,2,2,1,2,1,0),\n (1,2,2,2,2,1,3,2,2,2,5,6,6,6,1,2,1,1,1,0,0),\n (0,1,2,2,2,1,3,2,2,2,1,5,6,6,6,1,1,0,0,0,0),\n (0,0,1,1,2,2,2,2,1,1,2,2,5,6,6,1,0,0,0,0,0),\n (0,0,1,2,1,1,1,1,2,2,2,2,5,6,6,1,0,0,0,0,0),\n (0,0,0,1,1,7,7,1,2,2,2,1,5,6,6,1,0,0,0,0,0),\n (0,0,0,0,0,1,7,7,1,1,1,1,5,6,6,1,0,0,0,0,0),\n (0,0,0,0,1,2,1,7,7,7,7,7,1,5,1,0,0,0,0,0,0),\n (0,0,0,0,0,1,1,1,1,7,7,2,1,5,1,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,1,1,1,2,1,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,1,2,2,2,1,0,0,0,0,0,0,0),\n (0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0),\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($squirtle, 1));\n height: $size * length($squirtle);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $squirtle, $squirtle-colors);\n @include fill-gaps();\n }\n}\n",".nes-phone {\n $phone-colors: (#596985, #3c4665, #000);\n // prettier-ignore\n $phone: (\n (0,0,3,3,3,3,3,3),\n (0,3,3,2,2,2,1,3),\n (3,3,2,2,2,2,1,3),\n (3,2,2,2,2,2,1,3),\n (3,2,2,2,2,2,1,3),\n (3,2,2,2,2,2,1,3),\n (3,2,2,3,3,3,3,3),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,0,0,0,0),\n (3,2,2,3,3,3,3,3),\n (3,2,2,2,2,2,1,3),\n (3,2,2,2,2,2,1,3),\n (3,2,2,2,2,2,1,3),\n (3,3,2,2,2,2,1,3),\n (0,3,3,2,2,2,1,3),\n (0,0,3,3,3,3,3,3)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($phone, 1));\n height: $size * length($phone);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $phone, $phone-colors);\n @include fill-gaps();\n }\n}\n",".nes-smartphone {\n $smartphone-colors: (#fff, #060606);\n // prettier-ignore\n $smartphone: (\n (0,2,2,2,2,2,2,2,2,2,2,2,2,2,0),\n (2,2,1,1,1,1,1,1,1,1,1,1,1,2,2),\n (2,1,1,1,2,2,2,2,2,2,2,1,1,1,2),\n (2,1,1,1,1,1,1,1,1,1,1,1,1,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2),\n (2,1,1,1,1,1,1,1,1,1,1,1,1,1,2),\n (2,1,1,1,1,1,1,2,2,1,1,1,1,1,2),\n (2,1,1,1,1,1,1,2,2,1,1,1,1,1,2),\n (2,2,1,1,1,1,1,1,1,1,1,1,1,2,2),\n (0,2,2,2,2,2,2,2,2,2,2,2,2,2,0)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($smartphone, 1));\n height: $size * length($smartphone);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $smartphone, $smartphone-colors);\n @include fill-gaps();\n }\n}\n",".nes-mario {\n $mario-colors: (#f81c2f, #65352b, #ffbb8e, #000, #1560ad, #aeaeac, #fef102);\n // prettier-ignore\n $mario: (\n (0,0,0,0,1,1,1,1,1,0,0,0,0,0),\n (0,0,0,1,1,1,1,1,1,1,1,1,0,0),\n (0,0,0,2,2,2,3,3,4,3,0,0,0,0),\n (0,0,2,3,2,3,3,3,4,3,3,3,0,0),\n (0,0,2,3,2,2,3,3,3,4,3,3,3,0),\n (0,0,2,2,3,3,3,3,4,4,4,4,0,0),\n (0,0,0,0,3,3,3,3,3,3,3,0,0,0),\n (0,0,0,0,1,5,1,1,5,0,0,0,0,0),\n (0,0,1,1,1,5,1,1,5,1,1,1,0,0),\n (0,1,1,1,1,5,5,5,5,1,1,1,1,0),\n (0,6,6,1,5,7,5,5,7,5,1,6,6,0),\n (0,6,6,6,5,5,5,5,5,5,6,6,6,0),\n (0,6,6,5,5,5,5,5,5,5,5,6,6,0),\n (0,0,0,5,5,5,0,0,5,5,5,0,0,0),\n (0,0,2,2,2,0,0,0,0,2,2,2,0,0),\n (0,2,2,2,2,0,0,0,0,2,2,2,2,0)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($mario, 1));\n height: $size * length($mario);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $mario, $mario-colors);\n @include fill-gaps();\n }\n}\n",".nes-kirby {\n $kirby-colors: (#000, #ffaccc, #ff5478);\n // prettier-ignore\n $kirby: (\n (0,0,1,1,0,1,1,1,1,1,0,0,0,0,0,0),\n (0,1,2,2,1,2,2,2,2,2,1,1,0,0,0,0),\n (1,2,2,1,2,2,2,2,2,2,2,2,1,0,0,0),\n (1,2,2,2,2,2,1,2,1,2,2,2,2,1,0,0),\n (1,2,2,2,2,2,1,2,1,2,2,2,2,1,0,0),\n (1,2,2,2,2,2,1,2,1,2,2,2,2,2,1,0),\n (1,2,2,2,3,3,2,2,2,3,3,2,2,2,2,1),\n (1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,1),\n (0,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1),\n (0,1,2,2,2,2,2,2,2,2,2,2,1,1,1,0),\n (0,1,2,2,2,2,2,2,2,2,2,1,3,3,3,1),\n (0,0,1,2,2,2,2,2,2,2,1,3,3,3,3,1),\n (0,0,1,1,2,2,2,2,2,2,1,3,3,3,3,1),\n (0,1,3,3,1,1,2,2,2,1,3,3,3,3,1,0),\n (1,3,3,3,3,3,1,1,1,1,1,3,3,1,0,0),\n (0,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($kirby, 1));\n height: $size * length($kirby);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $kirby, $kirby-colors);\n @include fill-gaps();\n }\n}\n",".nes-octocat {\n $octocat-colors: (#333, #ffdec4, #cb7066);\n // prettier-ignore\n $octocat-1: (\n (0,0,0,1,0,0,0,0,0,0,0,0,1,0),\n (0,0,0,1,1,0,0,0,0,0,0,1,1,0),\n (0,0,0,1,1,1,1,1,1,1,1,1,1,0),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,1),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,1),\n (0,0,1,1,1,2,2,2,2,2,2,1,1,1),\n (0,0,1,1,2,3,2,2,2,2,3,2,1,1),\n (0,0,1,1,2,3,2,2,2,2,3,2,1,1),\n (0,0,0,1,1,2,2,3,3,2,2,1,1,0),\n (1,1,0,0,0,0,1,1,1,1,0,0,0,0),\n (0,0,1,1,0,1,1,1,1,1,1,0,0,0),\n (0,0,0,1,1,1,1,1,1,1,1,0,0,0),\n (0,0,0,0,0,1,0,1,1,0,1,0,0,0),\n (0,0,0,0,0,1,0,1,1,0,1,0,0,0),\n (0,0,0,0,1,0,1,0,0,1,0,1,0,0)\n );\n // prettier-ignore\n $octocat-2: (\n (0,0,0,1,0,0,0,0,0,0,0,0,1,0),\n (0,0,0,1,1,0,0,0,0,0,0,1,1,0),\n (0,0,0,1,1,1,1,1,1,1,1,1,1,0),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,1),\n (0,0,1,1,1,1,1,1,1,1,1,1,1,1),\n (0,0,1,1,1,2,2,2,2,2,2,1,1,1),\n (0,0,1,1,2,2,2,2,2,2,2,2,1,1),\n (0,1,1,1,2,3,2,2,2,2,3,2,1,1),\n (0,1,0,1,1,2,2,3,3,2,2,1,1,0),\n (0,0,1,0,0,0,1,1,1,1,0,0,0,0),\n (0,0,0,1,0,1,1,1,1,1,1,0,0,0),\n (0,0,0,1,1,1,1,1,1,1,1,0,0,0),\n (0,0,0,0,0,1,0,1,1,0,1,0,0,0),\n (0,0,0,0,0,1,0,1,1,0,1,0,0,0),\n (0,0,0,0,1,0,1,0,0,1,0,1,0,0)\n );\n $size: 6px;\n\n position: relative;\n display: inline-block;\n width: $size * length(nth($octocat-1, 1));\n height: $size * length($octocat-1);\n\n &::before {\n position: absolute;\n top: -$size;\n left: -$size;\n content: \"\";\n background: transparent;\n\n @include pixelize($size, $octocat-1, $octocat-colors);\n @include fill-gaps();\n }\n\n &.animate::before {\n animation: wave 0.5s infinite steps(1);\n }\n\n @keyframes wave {\n 50% {\n @include pixelize($size, $octocat-2, $octocat-colors);\n }\n }\n}\n","body {\n\tmargin: 0;\n\n\tbackground-color: #000000;\n\tcolor: white;\n}\n\n.nes-balloon {\n\tcolor: black;\n}\n\nhtml,\nbody,\npre,\ncode,\nkbd,\nsamp {\n\tfont-family: \"Press Start 2P\";\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/517.c1fcf108.chunk.js b/static/js/517.c1fcf108.chunk.js new file mode 100644 index 0000000..f6e3eaf --- /dev/null +++ b/static/js/517.c1fcf108.chunk.js @@ -0,0 +1,2 @@ +!function(){var t={4282:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(2717),a=function(){function t(e,n){var s=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Z.FPS;(0,i.Z)(this,t),this._run=function(){if(s._isRunning){s._frameId=requestAnimationFrame(s._run);var t=Date.now(),e=t-s._lastTime;t-s._lastSecondTime>1e3&&(s.onFps(s._lastSecondFrames),s._lastSecondTime=Date.now(),s._lastSecondFrames=0),e>s._interval&&(s._lastTime=t-e%s._interval,s.onFrame())}},this.onFrame=e,this.onFps=n,this._fps=a,this._interval=1e3/a,this._lastTime=Date.now(),this._startTime=this._lastTime,this._lastSecondTime=Date.now(),this._lastSecondFrames=0,this._isRunning=!1}return(0,s.Z)(t,[{key:"start",value:function(){this._isRunning=!0,this._run()}},{key:"stop",value:function(){this._isRunning=!1,cancelAnimationFrame(this._frameId)}},{key:"countNewFrame",value:function(){this._lastSecondFrames++}}]),t}()},6783:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(3144),s=n(5671),r=n(4620),a=n(4282),u=n(2717),o=n(9270),c=(0,i.Z)((function t(e){var n=this;(0,s.Z)(this,t),this.onFrame=function(t){n.frameTimer.countNewFrame(),n.$postMessage(t)},this.onAudio=function(t){n.samples.push(t)},this.terminate=function(){n.frameTimer.stop()},this.postMessage=function(t){n.$onMessage({data:t})},this.$onMessage=function(t){var e=t.data;try{if(e instanceof Uint8Array)n.nes.load(e),n.frameTimer.start();else if(Array.isArray(e)){for(var i=0;i<2;i++)for(var s in 0===i&&(n.isSaveStateRequested=e[i].$saveState,n.isLoadStateRequested=e[i].$loadState,e[i].$saveState||(n.wasSaveStateRequested=!1),e[i].$loadState||(n.wasLoadStateRequested=!1),e[i].$startDebugging&&(n.isDebugging=!0),e[i].$stopDebugging&&(n.isDebugging=!1),e[i].$debugStepFrame&&(n.isDebugStepFrameRequested=!0),e[i].$debugStepScanline&&(n.isDebugScanlineRequested=!0)),e[i])"$"!==s[0]&&n.nes.setButton(i+1,s,e[i][s]);n.availableSamples=e[2]}else"saveState"===e.id&&(n.saveState=e.saveState)}catch(r){n.$postMessage({id:"error",error:r})}},this.$postMessage=e,this.saveState=null,this.isSaveStateRequested=!1,this.isLoadStateRequested=!1,this.wasSaveStateRequested=!1,this.wasLoadStateRequested=!1,this.isDebugging=!1,this.isDebugStepFrameRequested=!1,this.isDebugStepScanlineRequested=!1,this.availableSamples=0,this.samples=[],this.nes=new r.Z(this.onFrame,this.onAudio),this.frameTimer=new a.Z((function(){if(!n.isDebugging||n.isDebugStepFrameRequested||n.isDebugScanlineRequested){var t=n.isDebugScanlineRequested;n.isDebugStepFrameRequested=!1,n.isDebugScanlineRequested=!1,n.isSaveStateRequested&&!n.wasSaveStateRequested&&(n.saveState=n.nes.getSaveState(),n.wasSaveStateRequested=!0,n.$postMessage({id:"saveState",saveState:n.saveState})),n.isLoadStateRequested&&!n.wasLoadStateRequested&&null!=n.saveState&&(n.nes.setSaveState(n.saveState),n.wasLoadStateRequested=!0);try{if(t)n.nes.scanline();else if(u.Z.SYNC_TO_AUDIO){var e=o.Z.APU_SAMPLE_RATE/u.Z.FPS;n.availableSamples+e<=u.Z.AUDIO_BUFFER_LIMIT&&n.nes.samples(e)}else n.nes.frame();n.$postMessage(n.samples),n.samples=[]}catch(i){n.$postMessage({id:"error",error:i})}}else n.$postMessage(n.samples)}),(function(t){n.$postMessage({id:"fps",fps:t})}))}))},9517:function(t,e,n){var i=new(0,n(6783).Z)((function(t){return postMessage(t)}));onmessage=function(t){i.$onMessage(t)}},8591:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(5671),s=n(3144),r=n(6942),a=n(5439),u=n(7994),o=n(1090),c=n(702),l=n(5626),h=n(9270),d=n(8092),f=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,i.Z)(this,t),d.V.apply(this),this.onFrame=n,this.onSample=function(t){e.sampleCount++,s(t)},this.logger=o,this.cpu=new r.Z,this.ppu=new a.Z,this.apu=new u.Z,this.sampleCount=0,this.pendingPPUCycles=0,this.pendingAPUCycles=0}return(0,s.Z)(t,[{key:"load",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new c.Z(t),i=n.createMapper(),s=l.Z.createPorts();this.loadContext({nes:this,logger:this.logger,cpu:this.cpu,ppu:this.ppu,apu:this.apu,memoryBus:{cpu:new o.W(i)},cartridge:n,mapper:i,controllers:[new l.Z(s.primary),new l.Z(s.secondary)],inDebugMode:function(t){try{return this.isDebugging=!0,t()}finally{this.isDebugging=!1}}}),this._setSaveFile(e)}},{key:"frame",value:function(){this.requireContext();for(var t=this.ppu.frame;this.ppu.frame===t;)this.step()}},{key:"samples",value:function(t){for(this.requireContext(),this.sampleCount=0;this.sampleCount=1;){var n=this.apu.step(this.onSample);if(e--,null!=n){var i=this.cpu.interrupt(n);e+=i*h.Z.APU_STEPS_PER_CPU_CYCLE,this.pendingPPUCycles+=i*h.Z.PPU_STEPS_PER_CPU_CYCLE}}this.pendingAPUCycles=e}},{key:"_setSaveFile",value:function(t){var e=this.context.mapper.prgRam;if(e)for(var n=0;n=this.samplePeriod))return this.outputSample;this.dividerCount=0;var e=this.cursorByte===this.sampleLength,n=8===this.cursorBit;if(null===this.buffer||n){if(this.cursorByte++,this.cursorBit=0,e)return this.isUsingDPCM=!1,this.buffer=null,this.registers.control.irqEnable&&t("dmc"),0;var i=this.sampleAddress+this.cursorByte;i>65535&&(i=32768+i%65535),this.buffer=this.context.cpu.memory.readAt(i)}var s=a.f.getBit(this.buffer,this.cursorBit)?1:-1;return this.outputSample+=s,this.cursorBit++,e&&n&&this.registers.control.loop&&this.startDPCM(),this.outputSample}}]),t}()},2806:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(4766),a=n(2717),u=n(8092),o=function(){function t(){(0,i.Z)(this,t),u.V.apply(this),this.lengthCounter=new r.fG,this.volumeEnvelope=new r.KQ,this.shift=1,this.dividerCount=0}return(0,s.Z)(t,[{key:"onLoad",value:function(t){this.registers=t.apu.registers.noise}},{key:"sample",value:function(){if(!this.isEnabled)return 0;var t=this.registers.control.constantVolume?this.registers.control.volumeOrEnvelopePeriod:this.volumeEnvelope.volume;return this._processNoise(),this.lengthCounter.didFinish||u.f.getBit(this.shift,0)?0:t*a.Z.NOISE_CHANNEL_VOLUME}},{key:"quarterBeat",value:function(){this.volumeEnvelope.clock(this.registers.control.volumeOrEnvelopePeriod,this.registers.control.envelopeLoopOrLengthCounterHalt)}},{key:"halfBeat",value:function(){this.lengthCounter.clock(this.isEnabled,this.registers.control.envelopeLoopOrLengthCounterHalt)}},{key:"getSaveState",value:function(){return{lengthCounter:this.lengthCounter.getSaveState(),volumeEnvelope:this.volumeEnvelope.getSaveState(),shift:this.shift,dividerCount:this.dividerCount}}},{key:"setSaveState",value:function(t){this.lengthCounter.setSaveState(t.lengthCounter),this.volumeEnvelope.setSaveState(t.volumeEnvelope),this.shift=t.shift,this.dividerCount=t.dividerCount}},{key:"isEnabled",get:function(){return this.context.apu.registers.apuControl.enableNoise}},{key:"_processNoise",value:function(){if(this.dividerCount++,this.dividerCount>=this.registers.form.period){this.dividerCount=0;var t=this.registers.form.loop?6:1,e=u.f.getBit(this.shift,t),n=u.f.getBit(this.shift,0)^e;this.shift=this.shift>>1|n<<14}}}]),t}()},1195:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(4766),a=n(9270),u=n(8092),o=function(){function t(e,n){(0,i.Z)(this,t),u.V.apply(this),this.id=e,this.enableFlagName=n,this.oscillator=new r.dV,this.lengthCounter=new r.fG,this.volumeEnvelope=new r.KQ,this.frequencySweeper=new r.Qg,this.timer=0}return(0,s.Z)(t,[{key:"onLoad",value:function(t){this.registers=t.apu.registers.pulses[this.id]}},{key:"sample",value:function(){var t=this.context.apu;if(!this.isEnabled)return 0;this.oscillator.dutyCycle=this.registers.control.dutyCycle,this.oscillator.frequency=a.Z.FREQ_CPU_HZ/(16*(this.timer+1));var e=this.registers.control.constantVolume?this.registers.control.volumeOrEnvelopePeriod:this.volumeEnvelope.volume;return this.oscillator.amplitude=e/a.Z.APU_MAX_VOLUME,this.lengthCounter.didFinish||this.frequencySweeper.mute?0:this.oscillator.sample(t.time)}},{key:"updateTimer",value:function(){this.timer=u.f.to16Bit(this.registers.lclTimerHigh.timerHigh,this.registers.timerLow.value)}},{key:"step",value:function(){this.frequencySweeper.track(this)}},{key:"cycle",value:function(){this.registers.sweep.enabledFlag||this.updateTimer()}},{key:"quarterBeat",value:function(){this.volumeEnvelope.clock(this.registers.control.volumeOrEnvelopePeriod,this.registers.control.envelopeLoopOrLengthCounterHalt)}},{key:"halfBeat",value:function(){this.lengthCounter.clock(this.isEnabled,this.registers.control.envelopeLoopOrLengthCounterHalt),this.frequencySweeper.clock(this)}},{key:"getSaveState",value:function(){return{oscillator:this.oscillator.getSaveState(),lengthCounter:this.lengthCounter.getSaveState(),volumeEnvelope:this.volumeEnvelope.getSaveState(),frequencySweeper:this.frequencySweeper.getSaveState(),timer:this.timer}}},{key:"setSaveState",value:function(t){this.oscillator.setSaveState(t.oscillator),this.lengthCounter.setSaveState(t.lengthCounter),this.volumeEnvelope.setSaveState(t.volumeEnvelope),this.frequencySweeper.setSaveState(t.frequencySweeper),this.timer=t.timer}},{key:"isEnabled",get:function(){return this.context.apu.registers.apuControl[this.enableFlagName]}}]),t}()},6766:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(4766),a=n(9270),u=n(8092),o=function(){function t(){(0,i.Z)(this,t),u.V.apply(this),this.oscillator=new r.c9,this.lengthCounter=new r.fG,this.linearLengthCounter=new r.fG}return(0,s.Z)(t,[{key:"onLoad",value:function(t){this.registers=t.apu.registers.triangle}},{key:"sample",value:function(){var t=this.context.apu;if(!this.isEnabled)return 0;var e=u.f.to16Bit(this.registers.lclTimerHigh.timerHigh,this.registers.timerLow.value);return this.oscillator.frequency=a.Z.FREQ_CPU_HZ/(16*(e+1))/2,this.lengthCounter.didFinish||this.linearLengthCounter.didFinish?0:this.oscillator.sample(t.time)}},{key:"quarterBeat",value:function(){this.linearLengthCounter.clock(this.isEnabled,this.registers.linearLCL.halt)}},{key:"halfBeat",value:function(){this.lengthCounter.clock(this.isEnabled,this.registers.linearLCL.halt)}},{key:"getSaveState",value:function(){return{oscillator:this.oscillator.getSaveState(),lengthCounter:this.lengthCounter.getSaveState(),linearLengthCounter:this.linearLengthCounter.getSaveState()}}},{key:"setSaveState",value:function(t){this.oscillator.setSaveState(t.oscillator),this.lengthCounter.setSaveState(t.lengthCounter),this.linearLengthCounter.setSaveState(t.linearLengthCounter)}},{key:"isEnabled",get:function(){return this.context.apu.registers.apuControl.enableTriangle}}]),t}()},7297:function(t,e,n){"use strict";n.d(e,{Lw:function(){return i.Z},Rr:function(){return s.Z},dm:function(){return r.Z},st:function(){return a.Z}});var i=n(1195),s=n(6766),r=n(2806),a=n(4581)},6743:function(t,e){"use strict";e.Z=[214,190,170,160,143,127,113,107,95,80,71,64,53,42,36,27]},6793:function(t,e){"use strict";e.Z=[10,254,20,2,40,4,80,6,160,8,60,10,14,12,26,14,12,16,24,18,48,20,96,22,192,24,72,26,16,28,32,30]},2795:function(t,e){"use strict";e.Z=[4,8,16,32,64,96,128,160,202,254,380,508,762,1016,2034,4068]},2247:function(t,e){"use strict";var n=[3729,7457,11186,14916],i=[3729,7457,11186,18641];e.Z={measure:function(t,e,s,r,a,u){var o=e?i:n,c=t===o[1]||t===o[3],l=t===o[3];(t===o[0]||t===o[1]||t===o[2]||t===o[3])&&r(),c&&a(),l&&(u(),e||s("frame"))}}},7994:function(t,e,n){"use strict";var i=n(4659);e.Z=i.Z},7598:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("enablePulse1",0).addReadOnlyField("enablePulse2",1).addReadOnlyField("enableTriangle",2).addReadOnlyField("enableNoise",3).addReadOnlyField("enableDMC",4),t}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){var n=this.enablePulse1,i=this.enablePulse2,s=this.enableTriangle,r=this.enableNoise,a=this.enableDMC,u=this.context.apu.channels;this.setValue(e),!this.enablePulse1&&n&&(u.pulses[0].lengthCounter.counter=0),!this.enablePulse2&&i&&(u.pulses[1].lengthCounter.counter=0),!this.enableTriangle&&s&&(u.triangle.lengthCounter.counter=0,u.triangle.linearLengthCounter.counter=0),!this.enableNoise&&r&&(u.noise.lengthCounter.counter=0),!this.enableDMC&&a&&u.dmc.startDPCM(),this.context.apu.registers.dmc.irqEnable=0}}]),n}(n(3829).Gy)},6166:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(3144),s=n(5671),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,s.Z)(this,n),(t=e.call(this)).addReadOnlyField("interruptInhibitFlag",6).addReadOnlyField("use5StepSequencer",7),t}return(0,i.Z)(n)}(n(3829).Gy)},1107:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addField("lcPulse1",0).addField("lcPulse2",1).addField("lcTriangle",2).addField("lcNoise",3).addField("remainingBytesDMC",4).addField("frameIRQFlag",6).addField("dmcIRQFlag",7),t}return(0,s.Z)(n,[{key:"readAt",value:function(){var t=this.context.apu,e=t.channels;return this.lcPulse1=+(e.pulses[0].lengthCounter.counter>0),this.lcPulse2=+(e.pulses[1].lengthCounter.counter>0),this.lcTriangle=+(e.triangle.lengthCounter.counter>0),this.lcNoise=+(e.noise.lengthCounter.counter>0),this.remainingBytesDMC=e.dmc.remainingBytes>0,this.frameIRQFlag=t.frameIRQFlag,this.dmcIRQFlag=t.registers.dmc.control.irqEnable,this.context.isDebugging||(t.frameIRQFlag=!1),this.value}}]),n}(n(3829).Ff)},8721:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(6743),o=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("dpcmPeriodId",0,4).addReadOnlyField("loop",6).addField("irqEnable",7),t}return(0,s.Z)(n,[{key:"dpcmPeriod",get:function(){return u.Z[this.dpcmPeriodId]}}]),n}(n(3829).Gy)},3401:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("directLoad",0,7),t}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.apu.channels.dmc.outputSample=this.directLoad}}]),n}(n(3829).Gy)},5975:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"absoluteAddress",get:function(){return 49152+64*this.value}}]),n}(n(3829).Gy)},240:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"lengthInBytes",get:function(){return 16*this.value+1}}]),n}(n(3829).Gy)},7359:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(3144),s=n(5671),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,s.Z)(this,n),(t=e.call(this)).addReadOnlyField("volumeOrEnvelopePeriod",0,4).addReadOnlyField("constantVolume",4).addReadOnlyField("envelopeLoopOrLengthCounterHalt",5),t}return(0,i.Z)(n)}(n(3829).Gy)},8467:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(2795),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("periodId",0,4).addReadOnlyField("loop",7),t}return(0,s.Z)(n,[{key:"period",get:function(){return o.Z[this.periodId]}}]),n}(u.Gy)},4936:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(6793),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("lengthCounterLoad",3,5),t}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.apu.channels.noise.lengthCounter.counter=o.Z[this.lengthCounterLoad]}}]),n}(u.Gy)},7519:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=[.125,.25,.25,.75],c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("volumeOrEnvelopePeriod",0,4).addReadOnlyField("constantVolume",4).addReadOnlyField("envelopeLoopOrLengthCounterHalt",5).addReadOnlyField("dutyCycleId",6,2),t}return(0,s.Z)(n,[{key:"dutyCycle",get:function(){return o[this.dutyCycleId]}}]),n}(u.Gy)},9234:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(6793),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(t){var s;return(0,i.Z)(this,n),(s=e.call(this)).id=t,s.addReadOnlyField("timerHigh",0,3).addReadOnlyField("lengthCounterLoad",3,5),s}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e);var n=this.context.apu.channels.pulses[this.id];n.updateTimer(),n.lengthCounter.counter=o.Z[this.lengthCounterLoad],n.volumeEnvelope.startFlag=!0}}]),n}(u.Gy)},3179:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(t){var s;return(0,i.Z)(this,n),(s=e.call(this)).id=t,s.addReadOnlyField("shiftCount",0,3).addReadOnlyField("negateFlag",3).addReadOnlyField("dividerPeriodMinusOne",4,3).addReadOnlyField("enabledFlag",7),s}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.apu.channels.pulses[this.id].frequencySweeper.startFlag=!0}}]),n}(n(3829).Gy)},4064:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(t){var s;return(0,i.Z)(this,n),(s=e.call(this)).id=t,s}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.apu.channels.pulses[this.id].updateTimer()}}]),n}(n(3829).Gy)},269:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(6793),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("timerHigh",0,3).addReadOnlyField("lengthCounterLoad",3,5),t}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.apu.channels.triangle.lengthCounter.counter=o.Z[this.lengthCounterLoad]}}]),n}(u.Gy)},6093:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("lengthCounterLoad",0,7).addReadOnlyField("halt",7,1),t}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.apu.channels.triangle.linearLengthCounter.counter=this.lengthCounterLoad}}]),n}(n(3829).Gy)},715:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(3144),s=n(5671),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,s.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n)}(n(3829).Gy)},9228:function(t,e,n){"use strict";n.d(e,{V:function(){return T}});var i=n(5671),s=n(3144),r=n(7519),a=n(3179),u=n(4064),o=n(9234),c=n(6093),l=n(715),h=n(269),d=n(7359),f=n(8467),g=n(4936),Z=n(8721),p=n(3401),_=n(5975),v=n(240),y=n(1107),E=n(7598),m=n(6166),S=n(6371),A=n(3829),T=function(){function t(e){(0,i.Z)(this,t),this.pulses=[0,1].map((function(t){return{control:new r.Z(t).loadContext(e),sweep:new a.Z(t).loadContext(e),timerLow:new u.Z(t).loadContext(e),lclTimerHigh:new o.Z(t).loadContext(e)}})),this.triangle={linearLCL:(new c.Z).loadContext(e),timerLow:(new l.Z).loadContext(e),lclTimerHigh:(new h.Z).loadContext(e)},this.noise={control:(new d.Z).loadContext(e),form:(new f.Z).loadContext(e),lcl:(new g.Z).loadContext(e)},this.dmc={control:(new Z.Z).loadContext(e),load:(new p.Z).loadContext(e),sampleAddress:(new _.Z).loadContext(e),sampleLength:(new v.Z).loadContext(e)},this.apuStatus=(new y.Z).loadContext(e),this.apuControl=(new E.Z).loadContext(e),this.apuFrameCounter=(new m.Z).loadContext(e),this.apuMain=new A.i2(this.apuStatus,this.apuControl)}return(0,s.Z)(t,[{key:"toMemory",value:function(){return S.V6.createSegment([this.pulses[0].control,this.pulses[0].sweep,this.pulses[0].timerLow,this.pulses[0].lclTimerHigh,this.pulses[1].control,this.pulses[1].sweep,this.pulses[1].timerLow,this.pulses[1].lclTimerHigh,this.triangle.linearLCL,new S.xe(1),this.triangle.timerLow,this.triangle.lclTimerHigh,this.noise.control,new S.xe(1),this.noise.form,this.noise.lcl,this.dmc.control,this.dmc.load,this.dmc.sampleAddress,this.dmc.sampleLength])}}]),t}()},8668:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(9270),a=function(){function t(){(0,i.Z)(this,t),this.startFlag=!1,this.dividerCount=0,this.change=0,this.mute=0}return(0,s.Z)(t,[{key:"track",value:function(t){var e=t.registers.sweep;this._setMute(t),e.enabledFlag&&(this.change=t.timer>>e.shiftCount)}},{key:"clock",value:function(t){var e=t.registers.sweep;e.enabledFlag&&(0===this.dividerCount&&e.shiftCount>0&&!this.mute&&(t.timer+=this.change*(e.negateFlag?-1:1)),0===this.dividerCount||this.startFlag?(this.dividerCount=e.dividerPeriodMinusOne+1,this.startFlag=!1):this.dividerCount--,this._setMute(t))}},{key:"getSaveState",value:function(){return{startFlag:this.startFlag,dividerCount:this.dividerCount,change:this.change,mute:this.mute}}},{key:"setSaveState",value:function(t){this.startFlag=t.startFlag,this.dividerCount=t.dividerCount,this.change=t.change,this.mute=t.mute}},{key:"_setMute",value:function(t){this.mute=t.timerr.Z.APU_MAX_TIMER}}]),t}()},806:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(5671),s=n(3144),r=function(){function t(){(0,i.Z)(this,t),this.counter=0}return(0,s.Z)(t,[{key:"clock",value:function(t,e){t?this.counter>0&&!e&&this.counter--:this.counter=0}},{key:"getSaveState",value:function(){return{counter:this.counter}}},{key:"setSaveState",value:function(t){this.counter=t.counter}},{key:"didFinish",get:function(){return 0===this.counter}}]),t}()},7743:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(2717),a=function(){function t(){(0,i.Z)(this,t),this.amplitude=1,this.harmonics=r.Z.PULSE_CHANNEL_HARMONICS,this.dutyCycle=0,this._frequency=0}return(0,s.Z)(t,[{key:"sample",value:function(t){var e=1/this._frequency;return(t%er.Z.MIN_FREQUENCY_CHANGE&&(this._frequency=t)}}]),t}()},2596:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(2717),a=function(){function t(){(0,i.Z)(this,t),this.amplitude=1,this._frequency=0}return(0,s.Z)(t,[{key:"sample",value:function(t){var e=1/this._frequency,n=t%e,i=n*(4*this.amplitude/e);return(n<=e/2?i-this.amplitude:3*this.amplitude-i)*r.Z.TRIANGLE_CHANNEL_VOLUME}},{key:"getSaveState",value:function(){return{amplitude:this.amplitude,frequency:this._frequency}}},{key:"setSaveState",value:function(t){this.amplitude=t.amplitude,this.frequency=t.frequency}},{key:"frequency",set:function(t){Math.abs(this._frequency-t)>r.Z.MIN_FREQUENCY_CHANGE&&(this._frequency=t)}}]),t}()},6462:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(9270),a=function(){function t(){(0,i.Z)(this,t),this.startFlag=!1,this.dividerCount=0,this.volume=0}return(0,s.Z)(t,[{key:"clock",value:function(t,e){this.startFlag?(this.startFlag=!1,this.volume=r.Z.APU_MAX_VOLUME,this.dividerCount=t):0===this.dividerCount?(this.dividerCount=t,0===this.volume?e&&(this.volume=r.Z.APU_MAX_VOLUME):this.volume--):this.dividerCount--}},{key:"getSaveState",value:function(){return{startFlag:this.startFlag,dividerCount:this.dividerCount,volume:this.volume}}},{key:"setSaveState",value:function(t){this.startFlag=t.startFlag,this.dividerCount=t.dividerCount,this.volume=t.volume}}]),t}()},4766:function(t,e,n){"use strict";n.d(e,{KQ:function(){return a.Z},Qg:function(){return u.Z},c9:function(){return s.Z},dV:function(){return i.Z},fG:function(){return r.Z}});var i=n(7743),s=n(2596),r=n(806),a=n(6462),u=n(8668)},4653:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(513),a=n(9270),u=n(8092),o=function(){function t(e){if((0,i.Z)(this,t),this.bytes=e,this.magicNumber!==a.Z.ROM_MAGIC_NUMBER)throw new Error("Invalid ROM format.")}return(0,s.Z)(t,[{key:"createMapper",value:function(){var t=this.header.mapperId,e=r.Z[t];if(!e)throw new Error("Unknown mapper: ".concat(t,"."));return new e}},{key:"prgRom",get:function(){return this._getBytes(this._programOffset,this._programSize)}},{key:"chrRom",get:function(){var t=this._programOffset+this._programSize,e=this.header.chrRomPages*a.Z.CHR_ROM_PAGE_SIZE;return this.header.usesChrRam?new Uint8Array(a.Z.CHR_RAM_PAGES*a.Z.CHR_ROM_PAGE_SIZE):this._getBytes(t,e)}},{key:"header",get:function(){if(this.__header)return this.__header;var t=this.bytes[6],e=this.bytes[7],n=this.bytes[4],i=this.bytes[5];if(0===n)throw new Error("Invalid header: No PRG ROM pages!");return this.__header={prgRomPages:n,chrRomPages:i||a.Z.CHR_RAM_PAGES,usesChrRam:0===i,mirroring:1===u.f.getBit(t,3)?"FOUR_SCREENS":1===u.f.getBit(t,0)?"VERTICAL":"HORIZONTAL",hasTrainerBeforeProgram:!!u.f.getBit(t,2),mapperId:u.f.setBits(u.f.getBits(t,4,4),4,4,u.f.getBits(e,4,4))}}},{key:"magicNumber",get:function(){return Array.from(this._getBytes(0,3)).map((function(t){return String.fromCharCode(t)})).join("")}},{key:"_getBytes",value:function(t,e){return this.bytes.slice(t,t+e)}},{key:"_programOffset",get:function(){return a.Z.ROM_HEADER_SIZE+(this.header.hasTrainerBeforeProgram?a.Z.ROM_TRAINER_SIZE:0)}},{key:"_programSize",get:function(){return this.header.prgRomPages*a.Z.PRG_ROM_PAGE_SIZE}}]),t}()},702:function(t,e,n){"use strict";var i=n(4653);e.Z=i.Z},8453:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(5671),s=n(3144),r=n(6371),a=n(9270),u=n(8092),o=n(763),c=n.n(o),l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z.PRG_ROM_PAGE_SIZE,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Z.CHR_ROM_PAGE_SIZE;(0,i.Z)(this,t),u.V.apply(this),this.prgRomPageSize=e,this.chrRomPageSize=n}return(0,s.Z)(t,[{key:"createCPUSegment",value:function(t){throw new Error("not_implemented")}},{key:"createPPUSegment",value:function(t){throw new Error("not_implemented")}},{key:"onLoad",value:function(t){var e=this,n=t.cartridge,i=n.prgRom,s=n.chrRom,r=Math.floor(i.length/this.prgRomPageSize),a=Math.floor(s.length/this.chrRomPageSize);this.prgPages=c().range(0,r).map((function(t){return e._getPage(i,e.prgRomPageSize,t)})),this.chrPages=c().range(0,a).map((function(t){return e._getPage(s,e.chrRomPageSize,t)})),this.segments={cpu:this.createCPUSegment(t),ppu:this.createPPUSegment(t)}}},{key:"cpuWriteAt",value:function(t,e){this.context.cpu.memory.writeAt(t,e)}},{key:"tick",value:function(){return null}},{key:"getSaveState",value:function(){return{chrPages:this.context.cartridge.header.usesChrRam?this.chrPages.map((function(t){return Array.from(t)})):null}}},{key:"setSaveState",value:function(t){null!=t.chrPages&&(this.chrPages=t.chrPages.map((function(t){return new Uint8Array(t)})))}},{key:"_newPrgBank",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new r.iI(this.prgPages[t]).asReadOnly()}},{key:"_newChrBank",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new r.iI(this.chrPages[e]).asReadOnly(!t.header.usesChrRam)}},{key:"_getPrgPage",value:function(t){return this.prgPages[Math.max(0,t%this.prgPages.length)]}},{key:"_getChrPage",value:function(t){return this.chrPages[Math.max(0,t%this.chrPages.length)]}},{key:"_getPage",value:function(t,e,n){var i=n*e;return t.slice(i,i+e)}}],[{key:"id",get:function(){throw new Error("not_implemented")}}]),t}()},1880:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(8453),o=n(6371),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"createCPUSegment",value:function(t){var e=t.cartridge,n=new o.xe(16352),i=this._newPrgBank(),s=2===e.header.prgRomPages?this._newPrgBank(1):new o.$o(i,16384);return o.V6.createSegment([n,i,s])}},{key:"createPPUSegment",value:function(t){var e=t.cartridge;return this._newChrBank(e)}}],[{key:"id",get:function(){return 0}}]),n}(u.Z)},9218:function(t,e,n){"use strict";n.d(e,{Z:function(){return Z}});var i=n(5671),s=n(3144),r=n(8301),a=n(1120),u=n(136),o=n(9388),c=n(8453),l=n(6371),h=n(3829),d=n(9270),f=n(763),g=n.n(f),Z=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),e.call(this,d.Z.PRG_ROM_PAGE_SIZE,4*d.Z.KB)}return(0,s.Z)(n,[{key:"createCPUSegment",value:function(){var t=new l.xe(8160),e=new l.iI(8192),n=this._newPrgBank(),i=this._newPrgBank(this.prgPages.length-1);return this.prgRam=e,this._prgRomBank0=n,this._prgRomBank1=i,this._state={load:new p,control:new _,chrBank0:new v,chrBank1:new y,prgBank:new E},l.V6.createSegment([t,e,n,i])}},{key:"createPPUSegment",value:function(t){var e=t.cartridge;return this._chrRomBank0=this._newChrBank(e),this._chrRomBank1=this._newChrBank(e),l.V6.createSegment([this._chrRomBank0,this._chrRomBank1])}},{key:"cpuWriteAt",value:function(t,e){if(t>=32768){var n=this._state.load.write(e);if(null==n)return;return t>=32768&&t<40960?(this._state.control.setValue(n),this.context.ppu.memory.changeNameTablesMirroringTo(this._state.control.mirroring)):t>=40960&&t<49152?this._state.chrBank0.setValue(n):t>=49152&&t<57344?this._state.chrBank1.setValue(n):this._state.prgBank.setValue(n),void this._loadBanks()}this.context.cpu.memory.writeAt(t,e)}},{key:"getSaveState",value:function(){return g().assign((0,r.Z)((0,a.Z)(n.prototype),"getSaveState",this).call(this),{loadShiftRegister:this._state.load.shiftRegister,loadWriteCounter:this._state.load.writeCounter,control:this._state.control.value,chrBank0:this._state.chrBank0.value,chrBank1:this._state.chrBank1.value,prgBank:this._state.prgBank.value})}},{key:"setSaveState",value:function(t){(0,r.Z)((0,a.Z)(n.prototype),"setSaveState",this).call(this,t),this._state.load.shiftRegister=t.loadShiftRegister,this._state.load.writeCounter=t.loadWriteCounter,this._state.control.setValue(t.control),this._state.chrBank0.setValue(t.chrBank0),this._state.chrBank1.setValue(t.chrBank1),this._state.prgBank.setValue(t.prgBank),this._loadBanks()}},{key:"_loadBanks",value:function(){var t=this._state,e=t.control,n=t.chrBank0,i=t.chrBank1,s=t.prgBank;if(e.isPrgRom32Kb){var r=14&s.prgRomBankId;this._prgRomBank0.bytes=this._getPrgPage(r),this._prgRomBank1.bytes=this._getPrgPage(r+1)}else this._prgRomBank0.bytes=this._getPrgPage(e.isFirstPrgAreaSwitchable?s.prgRomBankId:0),this._prgRomBank1.bytes=this._getPrgPage(e.isSecondPrgAreaSwitchable?s.prgRomBankId:this.prgPages.length-1);if(e.isChrRom8Kb){var a=30&n.value;this._chrRomBank0.bytes=this._getChrPage(a),this._chrRomBank1.bytes=this._getChrPage(a+1)}else this._chrRomBank0.bytes=this._getChrPage(n.value),this._chrRomBank1.bytes=this._getChrPage(i.value)}}],[{key:"id",get:function(){return 1}}]),n}(c.Z),p=function(){function t(){(0,i.Z)(this,t),this.shiftRegister=0,this.writeCounter=0}return(0,s.Z)(t,[{key:"write",value:function(t){if(128&t)return this.shiftRegister=16,this.writeCounter=0,null;var e=1&t;if(this.shiftRegister=31&(this.shiftRegister>>1|e<<4),this.writeCounter++,5===this.writeCounter){var n=this.shiftRegister;return this.shiftRegister=0,this.writeCounter=0,n}return null}}]),t}(),_=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("mirroringId",0,2).addReadOnlyField("prgRomBankMode",2,2).addReadOnlyField("chrRomBankMode",4),t}return(0,s.Z)(n,[{key:"mirroring",get:function(){switch(this.mirroringId){case 0:return"ONE_SCREEN_LOWER_BANK";case 1:return"ONE_SCREEN_UPPER_BANK";case 2:return"VERTICAL";default:return"HORIZONTAL"}}},{key:"isPrgRom32Kb",get:function(){return this.prgRomBankMode<=1}},{key:"isChrRom8Kb",get:function(){return 0===this.chrRomBankMode}},{key:"isFirstPrgAreaSwitchable",get:function(){return 2!==this.prgRomBankMode}},{key:"isSecondPrgAreaSwitchable",get:function(){return 3!==this.prgRomBankMode}}]),n}(h.Ff),v=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n)}(h.Ff),y=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n)}(h.Ff),E=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("prgRomBankId",0,4),t}return(0,s.Z)(n)}(h.Ff)},705:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(5671),s=n(3144),r=n(8301),a=n(1120),u=n(136),o=n(9388),c=n(8453),l=n(6371),h=n(763),d=n.n(h),f=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"createCPUSegment",value:function(){var t=new l.xe(16352),e=this._newPrgBank(),n=this._newPrgBank(this.prgPages.length-1);return this._prgRomSwitchableBank=e,this._state={page:0},l.V6.createSegment([t,e,n])}},{key:"createPPUSegment",value:function(t){var e=t.cartridge;return this._newChrBank(e)}},{key:"cpuWriteAt",value:function(t,e){if(t>=32768)return this._state.page=e,void this._loadBanks();this.context.cpu.memory.writeAt(t,e)}},{key:"getSaveState",value:function(){return d().assign((0,r.Z)((0,a.Z)(n.prototype),"getSaveState",this).call(this),{page:this._state.page})}},{key:"setSaveState",value:function(t){(0,r.Z)((0,a.Z)(n.prototype),"setSaveState",this).call(this,t),this._state.page=t.page,this._loadBanks(),this.segments.ppu.bytes=this._getChrPage(0)}},{key:"_loadBanks",value:function(){this._prgRomSwitchableBank.bytes=this._getPrgPage(this._state.page)}}],[{key:"id",get:function(){return 2}}]),n}(c.Z)},6993:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(5671),s=n(3144),r=n(8301),a=n(1120),u=n(136),o=n(9388),c=n(8453),l=n(6371),h=n(763),d=n.n(h),f=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"createCPUSegment",value:function(t){var e=t.cartridge,n=new l.xe(16352),i=this._newPrgBank(),s=2===e.header.prgRomPages?this._newPrgBank(1):new l.$o(i,16384);return this._state={page:0},l.V6.createSegment([n,i,s])}},{key:"createPPUSegment",value:function(t){var e=t.cartridge;return this._newChrBank(e)}},{key:"cpuWriteAt",value:function(t,e){if(t>=32768)return this._state.page=e,void this._loadBanks();this.context.cpu.memory.writeAt(t,e)}},{key:"getSaveState",value:function(){return d().assign((0,r.Z)((0,a.Z)(n.prototype),"getSaveState",this).call(this),{page:this._state.page})}},{key:"setSaveState",value:function(t){(0,r.Z)((0,a.Z)(n.prototype),"setSaveState",this).call(this,t),this._state.page=t.page,this._loadBanks()}},{key:"_loadBanks",value:function(){this.segments.ppu.bytes=this._getChrPage(this._state.page)}}],[{key:"id",get:function(){return 3}}]),n}(c.Z)},3902:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var i=n(5671),s=n(3144),r=n(8301),a=n(1120),u=n(136),o=n(9388),c=n(8453),l=n(7085),h=n(6371),d=n(3829),f=n(9270),g=n(763),Z=n.n(g),p=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),e.call(this,8*f.Z.KB,1*f.Z.KB)}return(0,s.Z)(n,[{key:"onLoad",value:function(t){(0,r.Z)((0,a.Z)(n.prototype),"onLoad",this).call(this,t),this._loadPRGBanks(),this._loadCHRBanks()}},{key:"createCPUSegment",value:function(){var t=new h.xe(8160),e=new h.iI(8192),n=this._newPrgBank(),i=this._newPrgBank(),s=this._newPrgBank(),r=this._newPrgBank(this.prgPages.length-1);return this.prgRam=e,this._prgRomBank0=n,this._prgRomBank1=i,this._prgRomBank2=s,this._state={bankSelect:new _,bankData:[0,0,0,0,0,0,0,0],irqEnabled:!1,irqLatch:0,irqCountdown:0},h.V6.createSegment([t,e,n,i,s,r])}},{key:"createPPUSegment",value:function(t){var e=t.cartridge;return this._chrRomBank0=this._newChrBank(e),this._chrRomBank1=this._newChrBank(e),this._chrRomBank2=this._newChrBank(e),this._chrRomBank3=this._newChrBank(e),this._chrRomBank4=this._newChrBank(e),this._chrRomBank5=this._newChrBank(e),this._chrRomBank6=this._newChrBank(e),this._chrRomBank7=this._newChrBank(e),h.V6.createSegment([this._chrRomBank0,this._chrRomBank1,this._chrRomBank2,this._chrRomBank3,this._chrRomBank4,this._chrRomBank5,this._chrRomBank6,this._chrRomBank7])}},{key:"cpuWriteAt",value:function(t,e){var n=t%2===0;if(t>=32768&&t<40943){var i=this._state.bankSelect;n?i.setValue(e):(this._state.bankData[i.bankRegister]=e,this._loadPRGBanks(),this._loadCHRBanks())}else t>=40960&&t<49151?n&&this.context.ppu.memory.changeNameTablesMirroringTo(1&e?"HORIZONTAL":"VERTICAL"):t>=49152&&t<57344?n?this._state.irqLatch=e:this._state.irqCountdown=0:t>=57344?this._state.irqEnabled=!n:this.context.cpu.memory.writeAt(t,e)}},{key:"tick",value:function(){if(0===this._state.irqCountdown)this._state.irqCountdown=this._state.irqLatch;else if(this._state.irqCountdown--,0===this._state.irqCountdown&&this._state.irqEnabled)return l.t.IRQ;return null}},{key:"getSaveState",value:function(){return Z().assign((0,r.Z)((0,a.Z)(n.prototype),"getSaveState",this).call(this),{bankSelect:this._state.bankSelect.value,bankData:Array.from(this._state.bankData),irqEnabled:this._state.irqEnabled,irqLatch:this._state.irqLatch,irqCountdown:this._state.irqCountdown})}},{key:"setSaveState",value:function(t){(0,r.Z)((0,a.Z)(n.prototype),"setSaveState",this).call(this,t),this._state.bankSelect.setValue(t.bankSelect),this._state.bankData=Array.from(t.bankData),this._state.irqEnabled=t.irqEnabled,this._state.irqLatch=t.irqLatch,this._state.irqCountdown=t.irqCountdown,this._loadPRGBanks(),this._loadCHRBanks()}},{key:"_loadPRGBanks",value:function(){var t=this._state,e=t.bankSelect,n=t.bankData;0===e.prgRomBankMode?(this._prgRomBank0.bytes=this._getPrgPage(n[6]),this._prgRomBank1.bytes=this._getPrgPage(n[7]),this._prgRomBank2.bytes=this._getPrgPage(this.prgPages.length-2)):(this._prgRomBank0.bytes=this._getPrgPage(this.prgPages.length-2),this._prgRomBank1.bytes=this._getPrgPage(n[7]),this._prgRomBank2.bytes=this._getPrgPage(n[6]))}},{key:"_loadCHRBanks",value:function(){var t=this._state,e=t.bankSelect,n=t.bankData,i=254&n[0],s=254&n[1];0===e.chrRomA12Inversion?(this._chrRomBank0.bytes=this._getChrPage(i),this._chrRomBank1.bytes=this._getChrPage(i+1),this._chrRomBank2.bytes=this._getChrPage(s),this._chrRomBank3.bytes=this._getChrPage(s+1),this._chrRomBank4.bytes=this._getChrPage(n[2]),this._chrRomBank5.bytes=this._getChrPage(n[3]),this._chrRomBank6.bytes=this._getChrPage(n[4]),this._chrRomBank7.bytes=this._getChrPage(n[5])):(this._chrRomBank0.bytes=this._getChrPage(n[2]),this._chrRomBank1.bytes=this._getChrPage(n[3]),this._chrRomBank2.bytes=this._getChrPage(n[4]),this._chrRomBank3.bytes=this._getChrPage(n[5]),this._chrRomBank4.bytes=this._getChrPage(i),this._chrRomBank5.bytes=this._getChrPage(i+1),this._chrRomBank6.bytes=this._getChrPage(s),this._chrRomBank7.bytes=this._getChrPage(s+1))}}],[{key:"id",get:function(){return 4}}]),n}(c.Z),_=function(t){(0,u.Z)(n,t);var e=(0,o.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("bankRegister",0,3).addReadOnlyField("prgRomBankMode",6).addReadOnlyField("chrRomA12Inversion",7),t}return(0,s.Z)(n)}(d.Ff)},513:function(t,e,n){"use strict";var i=n(1880),s=n(9218),r=n(705),a=n(6993),u=n(3902),o=n(763),c=n.n(o);e.Z=c().keyBy([i.Z,s.Z,r.Z,a.Z,u.Z],"id")},2717:function(t,e){"use strict";e.Z={SYNC_TO_AUDIO:!0,AUDIO_BUFFER_LIMIT:4096,AUDIO_BUFFER_SIZE:8192,FPS:60.098,BASE_VOLUME:1,MIN_FREQUENCY_CHANGE:5,PULSE_CHANNEL_VOLUME:1,TRIANGLE_CHANNEL_VOLUME:1,NOISE_CHANNEL_VOLUME:1,DMC_CHANNEL_VOLUME:1,NESTEST_PATH:"./public/testroms/nestest.nes"}},9270:function(t,e){"use strict";var n=1024,i=256;e.Z={SCREEN_WIDTH:i,SCREEN_HEIGHT:240,TOTAL_PIXELS:61440,BUTTONS:8,KB:n,ROM_MAGIC_NUMBER:"NES",ROM_HEADER_SIZE:16,ROM_TRAINER_SIZE:512,PRG_ROM_PAGE_SIZE:16384,CHR_ROM_PAGE_SIZE:8192,CHR_RAM_PAGES:1,CARTRIDGE_RAM_SIZE:8192,PPU_STEPS_PER_CPU_CYCLE:3,APU_STEPS_PER_CPU_CYCLE:.5,APU_HIGH_FREQUENCY_CYCLES:6,CPU_ADDRESSED_MEMORY:65536,CPU_STACK_START_ADDRESS:256,CPU_MAPPER_START_ADDRESS:16416,CPU_INTERRUPT_CYCLES:7,PPU_FRAME_RATE:60.098,PPU_ADDRESSED_PALETTE_RAM_START_ADDRESS:16128,PPU_OAM_SIZE:256,PPU_LAST_CYCLE:340,PPU_LAST_SCANLINE:260,OAMDMA_CPU_CYCLES:513,PPU_CYCLE_CLEAR_FLAGS:1,PPU_CYCLE_VBLANK:1,PPU_CYCLE_RENDER_BACKGROUND:0,PPU_CYCLE_RENDER_SPRITES:0,PPU_CYCLE_MAPPER_TICK:260,FREQ_CPU_HZ:1789773,FREQ_PPU_HZ:5369318,APU_SAMPLE_RATE:44100,APU_MAX_VOLUME:15,APU_MIN_TIMER:8,APU_MAX_TIMER:2047,TILE_LENGTH:8,TILE_SIZE:16,SPRITE_WIDTH:8,SPRITE_SIZE:4,MAX_SPRITES:64,MAX_SPRITES_PER_SCANLINE:8,COLOR_TRANSPARENT:0,NAME_TABLES_START_ADDRESS:8192,NAME_TABLE_TOTAL_TILES_X:32,NAME_TABLE_SIZE:1024,ATTRIBUTE_TABLE_BLOCK_SIZE:32,ATTRIBUTE_TABLE_TOTAL_BLOCKS_X:8,ATTRIBUTE_TABLE_REGION_SIZE:16,ATTRIBUTE_TABLE_TOTAL_REGIONS_X:2,ATTRIBUTE_TABLE_REGION_SIZE_BITS:2,ATTRIBUTE_TABLE_SIZE:64,PATTERN_TABLES_START_ADDRESS:0,PATTERN_TABLE_SIZE:4096,PALETTE_BACKGROUND_START:0,PALETTE_FOREGROUND_START:4,PALETTE_SIZE:4,LOOPY_ADDR_COARSE_X_OFFSET:0,LOOPY_ADDR_COARSE_X_MASK:31,LOOPY_ADDR_COARSE_Y_OFFSET:5,LOOPY_ADDR_COARSE_Y_MASK:31,LOOPY_ADDR_BASE_NAME_TABLE_ID_OFFSET:10,LOOPY_ADDR_BASE_NAME_TABLE_ID_MASK:3,LOOPY_ADDR_FINE_Y_OFFSET:12,LOOPY_ADDR_FINE_Y_MASK:7,SPRITE_BYTE_Y:0,SPRITE_BYTE_TILE_ID:1,SPRITE_BYTE_ATTRIBUTES:2,SPRITE_BYTE_X:3,SPRITE_ATTR_PALETTE_BITS_START:0,SPRITE_ATTR_PALETTE_BITS_SIZE:2,SPRITE_ATTR_PRIORITY_BIT:5,SPRITE_ATTR_HORIZONTAL_FLIP_BIT:6,SPRITE_ATTR_VERTICAL_FLIP_BIT:7,SPRITE_8x16_PATTERN_TABLE_MASK:1,SPRITE_8x16_TILE_ID_MASK:254}},5090:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(8361),a=n(6317),u=function(){function t(e){(0,i.Z)(this,t),this.port=e,this.buttons={BUTTON_A:!1,BUTTON_B:!1,BUTTON_SELECT:!1,BUTTON_START:!1,BUTTON_UP:!1,BUTTON_DOWN:!1,BUTTON_LEFT:!1,BUTTON_RIGHT:!1}}return(0,s.Z)(t,[{key:"update",value:function(t,e){this.buttons[t]=e,this.port.value=this.toByte()}},{key:"clear",value:function(){for(var t in this.buttons)this.buttons[t]=!1;this.port.value=this.toByte()}},{key:"toByte",value:function(){return(this.buttons.BUTTON_A&&1)|(this.buttons.BUTTON_B&&2)|(this.buttons.BUTTON_SELECT&&4)|(this.buttons.BUTTON_START&&8)|(this.buttons.BUTTON_UP&&16)|(this.buttons.BUTTON_DOWN&&32)|(this.buttons.BUTTON_LEFT&&64)|(this.buttons.BUTTON_RIGHT&&128)}}],[{key:"createPorts",value:function(){var t=new r.Z,e=new a.Z(t);return t.setSecondary(e),{primary:t,secondary:e}}}]),t}()},1424:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(9270),c=n(8092),l=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).cursor=0,t}return(0,s.Z)(n,[{key:"strobe",get:function(){throw new Error("not_implemented")}},{key:"readAt",value:function(){if(this.cursor>=o.Z.BUTTONS)return 1;var t=c.f.getBit(this.value,this.cursor);return this.strobe||this.cursor++,t}}]),n}(u.Ff)},8361:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(1424),o=n(8092),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this))._strobe=!1,t._secondary=null,t}return(0,s.Z)(n,[{key:"strobe",get:function(){return this._strobe}},{key:"setSecondary",value:function(t){this._secondary=t}},{key:"writeAt",value:function(t,e){this._strobe=!!o.f.getBit(e,0),this._strobe&&(this.cursor=0,this._secondary&&(this._secondary.cursor=0))}}]),n}(u.Z)},6317:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(t){var s;return(0,i.Z)(this,n),(s=e.call(this))._primary=t,s}return(0,s.Z)(n,[{key:"strobe",get:function(){return this._primary.strobe}},{key:"writeAt",value:function(){}}]),n}(n(1424).Z)},5626:function(t,e,n){"use strict";var i=n(5090);e.Z=i.Z},4840:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i=n(5671),s=n(3144),r=n(7894),a=n(8500),u=n(8104),o=n(5219),c=n(7085),l=n(9270),h=n(8092),d=function(){function t(){(0,i.Z)(this,t),h.V.apply(this),this.pc=new r.fv,this.sp=new r.R5,this.flags=new r.K0,this.cycle=0,this.extraCycles=0,this.registers={a:new r.R5(0),x:new r.R5(0),y:new r.R5(0)},this.memory=new a.Z,this.stack=new u.Z,this._argument=null}return(0,s.Z)(t,[{key:"onLoad",value:function(t){this.memory.loadContext(t),this.stack.loadContext(t),this._reset()}},{key:"step",value:function(){var t=this.pc.value,e=this._readOperation(),n=this._readArgument(e);this.context.logger&&this.context.logger.log({context:this.context,pc:t,operation:e,initialArgument:this._argument,finalArgument:n}),e.instruction.execute(this.context,n);var i=e.cycles+this.extraCycles;return this.cycle+=i,this.extraCycles=0,i}},{key:"interrupt",value:function(t,e){return"IRQ"!==t.id||this._areInterruptsEnabled?(this.stack.push2Bytes(this.pc.value),this.pushFlags(e),this.cycle+=l.Z.CPU_INTERRUPT_CYCLES,this.flags.i=!0,this._jumpToInterruptHandler(t),l.Z.CPU_INTERRUPT_CYCLES):0}},{key:"pushFlags",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.stack.push(this.flags.toByte()|(t&&16))}},{key:"getSaveState",value:function(){return{pc:this.pc.value,sp:this.sp.value,flags:this.flags.toByte(),cycle:this.cycle,a:this.registers.a.value,x:this.registers.x.value,y:this.registers.y.value,memory:this.memory.getSaveState()}}},{key:"setSaveState",value:function(t){this.pc.value=t.pc,this.sp.value=t.sp,this.flags.load(t.flags),this.cycle=t.cycle,this.registers.a.value=t.a,this.registers.x.value=t.x,this.registers.y.value=t.y,this.memory.setSaveState(t.memory)}},{key:"_reset",value:function(){this.pc.reset(),this.sp.reset(),this.cycle=0,this.extraCycles=0,this.registers.a.reset(),this.registers.x.reset(),this.registers.y.reset(),this._argument=null,this.interrupt(c.t.RESET)}},{key:"_readOperation",value:function(){var t=this.memory.readAt(this.pc.value),e=o.Z[t];if(!e)throw new Error("Unknown opcode: 0x".concat(t.toString(16),"."));return this.pc.increment(),e}},{key:"_readArgument",value:function(t){var e=t.instruction,n=t.addressing,i=t.canTakeExtraCycles,s=this.memory.readBytesAt(this.pc.value,n.parameterSize);return this.pc.value+=n.parameterSize,this._argument=s,e.needsValue?n.getValue(this.context,s,i):n.getAddress(this.context,s,i)}},{key:"_jumpToInterruptHandler",value:function(t){this.pc.value=this.memory.read2BytesAt(t.vector)}},{key:"_areInterruptsEnabled",get:function(){return!this.flags.i}}]),t}()},8500:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(6371),a=n(3829),u=n(8092),o=function(){function t(){(0,i.Z)(this,t),u.V.apply(this),r.V6.apply(this)}return(0,s.Z)(t,[{key:"onLoad",value:function(t){var e=t.ppu,n=t.apu,i=t.mapper,s=t.controllers;this.ram=new r.iI(2048);var u=new r.$o(this.ram,6144),o=e.registers.toMemory(),c=new r.$o(o,8184),l=n.registers.toMemory(),h=new a.i2(s[1].port,n.registers.apuFrameCounter),d=new r.xe(8);this.defineChunks([this.ram,u,o,c,l,e.registers.oamDma,n.registers.apuMain,s[0].port,h,d,i.segments.cpu])}},{key:"readAt",value:function(t){return null!=t.value?t.value:r.V6.readAt.call(this,t)}},{key:"writeAt",value:function(t,e){null!=t.value?t.value=e:r.V6.writeAt.call(this,t,e)}},{key:"getSaveState",value:function(){var t=this.context,e=t.ppu,n=t.apu;return{ram:Array.from(this.ram.bytes),ppuRegisters:e.registers.toMemory().chunks.map((function(t){return t.value})),apuRegisters:n.registers.toMemory().chunks.map((function(t){return t.value})),apuControl:n.registers.apuControl.value,apuFrameCounter:n.registers.apuFrameCounter.value}}},{key:"setSaveState",value:function(t){var e=this.context,n=e.ppu,i=e.apu;this.ram.bytes.set(t.ram),n.registers.toMemory().chunks.forEach((function(e,n){e.setValue&&e.setValue(t.ppuRegisters[n])})),i.registers.toMemory().chunks.forEach((function(e,n){e.setValue&&e.setValue(t.apuRegisters[n])})),i.registers.apuControl.setValue(t.apuControl),i.registers.apuFrameCounter.setValue(t.apuFrameCounter)}}]),t}()},8104:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(9270),a=n(8092),u=function(){function t(){(0,i.Z)(this,t),a.V.apply(this)}return(0,s.Z)(t,[{key:"push",value:function(t){this.context.memoryBus.cpu.writeAt(this.currentAddress,t),this.context.cpu.sp.decrement()}},{key:"pop",value:function(){return this.context.cpu.sp.increment(),this.context.cpu.memory.readAt(this.currentAddress)}},{key:"push2Bytes",value:function(t){var e=a.f.lowPartOf(t),n=a.f.highPartOf(t);this.push(n),this.push(e)}},{key:"pop2Bytes",value:function(){var t=this.pop(),e=this.pop();return a.f.to16Bit(e,t)}},{key:"currentAddress",get:function(){return r.Z.CPU_STACK_START_ADDRESS+this.context.cpu.sp.value}}]),t}()},7909:function(t,e,n){"use strict";function i(t,e,n){var i=this.getAddress(t,e,n);return t.cpu.memory.readAt(i)}n.d(e,{Z:function(){return i}})},883:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(8092);function s(t){return function(e,n,s){var r=e.cpu,a=n+r.registers[t].value;return i.f.highPartOf(n)!==i.f.highPartOf(a)&&s&&r.extraCycles++,i.f.force16Bit(a)}}},4350:function(t,e,n){"use strict";var i=n(7909);e.Z={id:"ABSOLUTE",parameterSize:2,getAddress:function(t,e){return e},getValue:i.Z}},5327:function(t,e){"use strict";e.Z={id:"ACCUMULATOR",parameterSize:0,getAddress:function(t){return t.cpu.registers.a},getValue:function(){throw new Error("The ACCUMULATOR addressing mode only supports the `getAddress` method")}}},2797:function(t,e){"use strict";e.Z={id:"IMMEDIATE",parameterSize:1,getAddress:function(){throw new Error("The IMMEDIATE addressing mode only supports the `getValue` method")},getValue:function(t,e){return e}}},7981:function(t,e){"use strict";e.Z={id:"IMPLICIT",parameterSize:0,getAddress:function(t){return null},getValue:function(){throw new Error("The IMPLICIT addressing mode only supports the `getAddress` method (and it always returns null)")}}},1734:function(t,e,n){"use strict";var i=n(7981),s=n(2797),r=n(4350),a=n(7453),u=n(4035),o=n(9662),c=n(6390),l=n(7534),h=n(7578),d=n(2223),f=n(118),g=n(56),Z=n(5327),p=n(763),_=n.n(p);e.Z=_().keyBy([i.Z,s.Z,r.Z,a.Z,u.Z,o.Z,c.Z,l.Z,h.Z,d.Z,f.Z,g.Z,Z.Z],"id")},7453:function(t,e,n){"use strict";var i=n(883),s=n(7909);e.Z={id:"INDEXED_ABSOLUTE_X",parameterSize:2,getAddress:(0,i.Z)("x"),getValue:s.Z}},4035:function(t,e,n){"use strict";var i=n(883),s=n(7909);e.Z={id:"INDEXED_ABSOLUTE_Y",parameterSize:2,getAddress:(0,i.Z)("y"),getValue:s.Z}},2223:function(t,e,n){"use strict";var i=n(7578),s=n(7909);e.Z={id:"INDEXED_INDIRECT_X",parameterSize:1,getAddress:function(t,e){return(0,i.$)(t,e+t.cpu.registers.x.value)},getValue:s.Z}},118:function(t,e,n){"use strict";var i=n(7578),s=n(883),r=n(7909),a=(0,s.Z)("y");e.Z={id:"INDEXED_INDIRECT_Y",parameterSize:1,getAddress:function(t,e,n){return a(t,(0,i.$)(t,e),n)},getValue:r.Z}},6390:function(t,e,n){"use strict";var i=n(8092),s=n(883),r=n(7909),a=(0,s.Z)("x");e.Z={id:"INDEXED_ZERO_PAGE_X",parameterSize:1,getAddress:function(t,e){return i.f.force8Bit(a(t,e,!1))},getValue:r.Z}},7534:function(t,e,n){"use strict";var i=n(8092),s=n(883),r=n(7909),a=(0,s.Z)("y");e.Z={id:"INDEXED_ZERO_PAGE_Y",parameterSize:1,getAddress:function(t,e){return i.f.force8Bit(a(t,e,!1))},getValue:r.Z}},7578:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});var i=n(8092),s=n(7909);e.Z={id:"INDIRECT",parameterSize:2,getAddress:function(t,e){var n=t.cpu,s=i.f.highPartOf(e),r=i.f.lowPartOf(e),a=n.memory.readAt(e),u=n.memory.readAt(255===r?i.f.to16Bit(s,0):e+1);return i.f.to16Bit(u,a)},getValue:s.Z};var r=function(t,e){var n=t.cpu,s=i.f.force8Bit(e),r=i.f.force8Bit(s+1),a=n.memory.readAt(s),u=n.memory.readAt(r);return i.f.to16Bit(u,a)}},56:function(t,e,n){"use strict";var i=n(8092),s=n(7909);e.Z={id:"RELATIVE",parameterSize:1,getAddress:function(t,e,n){var s=t.cpu,r=s.pc.value,a=r+i.f.toNumber(e);return i.f.highPartOf(r)!==i.f.highPartOf(a)&&n&&(s.extraCycles+=2),i.f.force16Bit(a)},getValue:s.Z}},9662:function(t,e,n){"use strict";var i=n(7909);e.Z={id:"ZERO_PAGE",parameterSize:1,getAddress:function(t,e){return e},getValue:i.Z}},7085:function(t,e,n){"use strict";n.d(e,{t:function(){return i.Z}});var i=n(7546)},7546:function(t,e,n){"use strict";var i=n(763),s=n.n(i);e.Z=s().keyBy([{id:"NMI",vector:65530},{id:"RESET",vector:65532},{id:"IRQ",vector:65534}],"id")},6942:function(t,e,n){"use strict";var i=n(4840);e.Z=i.Z},2403:function(t,e,n){"use strict";var i=n(8092),s=function(t,e){var n=t.cpu,s=n.registers.a.value,r=s+e+n.flags.c,a=i.f.force8Bit(r);n.registers.a.value=a,n.flags.updateZeroAndNegative(a),n.flags.c=i.f.hasOverflow(r),n.flags.v=i.f.isPositive(s)&&i.f.isPositive(e)&&i.f.isNegative(a)||i.f.isNegative(s)&&i.f.isNegative(e)&&i.f.isPositive(a)},r=function(t){return function(e){var n=e.cpu,i=n.registers[t];i.decrement(),n.flags.updateZeroAndNegative(i.value)}},a=function(t){return function(e){var n=e.cpu,i=n.registers[t];i.increment(),n.flags.updateZeroAndNegative(i.value)}};e.Z=[{id:"ADC",needsValue:!0,execute:s},{id:"ASL",execute:function(t,e){var n=t.cpu,s=t.memoryBus,r=n.memory.readAt(e)<<1,a=i.f.force8Bit(r);s.cpu.writeAt(e,a),n.flags.updateZeroAndNegative(a),n.flags.c=i.f.hasOverflow(r)}},{id:"DEC",execute:function(t,e){var n=t.cpu,s=t.memoryBus,r=n.memory.readAt(e),a=i.f.force8Bit(r-1);n.flags.updateZeroAndNegative(a),s.cpu.writeAt(e,a)}},{id:"DEX",execute:r("x")},{id:"DEY",execute:r("y")},{id:"INC",execute:function(t,e){var n=t.cpu,s=t.memoryBus,r=n.memory.readAt(e),a=i.f.force8Bit(r+1);n.flags.updateZeroAndNegative(a),s.cpu.writeAt(e,a)}},{id:"INX",execute:a("x")},{id:"INY",execute:a("y")},{id:"LSR",execute:function(t,e){var n=t.cpu,s=t.memoryBus,r=n.memory.readAt(e),a=r>>1,u=i.f.force8Bit(a);s.cpu.writeAt(e,u),n.flags.updateZeroAndNegative(u),n.flags.c=!!i.f.getBit(r,0)}},{id:"ROL",execute:function(t,e){var n=t.cpu,s=t.memoryBus,r=n.memory.readAt(e),a=r<<1|+n.flags.c,u=i.f.force8Bit(a);s.cpu.writeAt(e,u),n.flags.updateZeroAndNegative(u),n.flags.c=!!i.f.getBit(r,7)}},{id:"ROR",execute:function(t,e){var n=t.cpu,s=t.memoryBus,r=n.memory.readAt(e),a=r>>1|+n.flags.c<<7,u=i.f.force8Bit(a);s.cpu.writeAt(e,u),n.flags.updateZeroAndNegative(u),n.flags.c=!!i.f.getBit(r,0)}},{id:"SBC",needsValue:!0,execute:function(t,e){return s(t,i.f.negate(e)-1)}}]},4829:function(t,e){"use strict";var n=function(t,e){return function(n,i){var s=n.cpu;s.flags[t]===e?(s.pc.value=i,s.extraCycles++):s.extraCycles=0}};e.Z=[{id:"BCC",execute:n("c",!1)},{id:"BCS",execute:n("c",!0)},{id:"BEQ",execute:n("z",!0)},{id:"BMI",execute:n("n",!0)},{id:"BNE",execute:n("z",!1)},{id:"BPL",execute:n("n",!1)},{id:"BVC",execute:n("v",!1)},{id:"BVS",execute:n("v",!0)},{id:"JMP",execute:function(t,e){t.cpu.pc.value=e}},{id:"JSR",execute:function(t,e){var n=t.cpu;n.stack.push2Bytes(n.pc.value-1),n.pc.value=e}},{id:"RTI",execute:function(t){var e=t.cpu;e.flags.load(e.stack.pop()),e.pc.value=e.stack.pop2Bytes()}},{id:"RTS",execute:function(t){var e=t.cpu;e.pc.value=e.stack.pop2Bytes()+1}}]},202:function(t,e,n){"use strict";var i=n(8092),s=function(t){return function(e,n){var s=e.cpu,r=s.registers[t].value;s.flags.z=r===n,s.flags.updateNegative(i.f.force8Bit(r-n)),s.flags.c=r>=n}};e.Z=[{id:"BIT",needsValue:!0,execute:function(t,e){var n=t.cpu,s=e&n.registers.a.value;n.flags.updateZero(s),n.flags.updateNegative(e),n.flags.v=!!i.f.getBit(e,6)}},{id:"CMP",needsValue:!0,execute:s("a")},{id:"CPX",needsValue:!0,execute:s("x")},{id:"CPY",needsValue:!0,execute:s("y")}]},837:function(t,e){"use strict";var n=function(t){return function(e){e.cpu.flags[t]=!0}},i=function(t){return function(e){e.cpu.flags[t]=!1}},s=function(t){return function(e,n){var i=e.cpu;i.registers[t].value=n,i.flags.updateZeroAndNegative(n)}},r=function(t){return function(e,n){var i=e.cpu,s=e.memoryBus,r=i.registers[t].value;s.cpu.writeAt(n,r)}},a=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(i){var s=i.cpu,r=t(s).value;e(s).value=r,n&&s.flags.updateZeroAndNegative(r)}};e.Z=[{id:"CLC",execute:i("c")},{id:"CLD",execute:i("d")},{id:"CLI",execute:i("i")},{id:"CLV",execute:i("v")},{id:"LDA",needsValue:!0,execute:s("a")},{id:"LDX",needsValue:!0,execute:s("x")},{id:"LDY",needsValue:!0,execute:s("y")},{id:"PHA",execute:function(t){var e=t.cpu;e.stack.push(e.registers.a.value)}},{id:"PHP",execute:function(t){t.cpu.pushFlags(!0)}},{id:"PLA",execute:function(t){var e=t.cpu,n=e.stack.pop();e.registers.a.value=n,e.flags.updateZeroAndNegative(n)}},{id:"PLP",execute:function(t){var e=t.cpu;e.flags.load(e.stack.pop())}},{id:"SEC",execute:n("c")},{id:"SED",execute:n("d")},{id:"SEI",execute:n("i")},{id:"STA",execute:r("a")},{id:"STX",execute:r("x")},{id:"STY",execute:r("y")},{id:"TAX",execute:a((function(t){return t.registers.a}),(function(t){return t.registers.x}))},{id:"TAY",execute:a((function(t){return t.registers.a}),(function(t){return t.registers.y}))},{id:"TSX",execute:a((function(t){return t.sp}),(function(t){return t.registers.x}))},{id:"TXA",execute:a((function(t){return t.registers.x}),(function(t){return t.registers.a}))},{id:"TXS",execute:a((function(t){return t.registers.x}),(function(t){return t.sp}),!1)},{id:"TYA",execute:a((function(t){return t.registers.y}),(function(t){return t.registers.a}))}]},8085:function(t,e,n){"use strict";var i=n(9062),s=n(2403),r=n(4829),a=n(202),u=n(837),o=n(5677),c=n(440),l=n(763),h=n.n(l);e.Z=h().keyBy([].concat((0,i.Z)(s.Z),(0,i.Z)(r.Z),(0,i.Z)(a.Z),(0,i.Z)(u.Z),(0,i.Z)(o.Z),(0,i.Z)(c.Z)),"id")},5677:function(t,e){"use strict";var n=function(t){return function(e,n){var i=e.cpu,s=t(i.registers.a.value,n);i.registers.a.value=s,i.flags.updateZeroAndNegative(s)}};e.Z=[{id:"AND",needsValue:!0,execute:n((function(t,e){return t&e}))},{id:"EOR",needsValue:!0,execute:n((function(t,e){return t^e}))},{id:"ORA",needsValue:!0,execute:n((function(t,e){return t|e}))}]},440:function(t,e,n){"use strict";var i=n(7085);e.Z=[{id:"BRK",execute:function(t){t.cpu.interrupt(i.t.IRQ,!0)}},{id:"NOP",execute:function(t){}}]},2399:function(t,e,n){"use strict";var i=n(8085),s=n(1734);e.Z=[{id:105,instruction:i.Z.ADC,cycles:2,addressing:s.Z.IMMEDIATE},{id:101,instruction:i.Z.ADC,cycles:3,addressing:s.Z.ZERO_PAGE},{id:117,instruction:i.Z.ADC,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:109,instruction:i.Z.ADC,cycles:4,addressing:s.Z.ABSOLUTE},{id:125,instruction:i.Z.ADC,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:121,instruction:i.Z.ADC,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:97,instruction:i.Z.ADC,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:113,instruction:i.Z.ADC,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0},{id:10,instruction:i.Z.ASL,cycles:2,addressing:s.Z.ACCUMULATOR},{id:6,instruction:i.Z.ASL,cycles:5,addressing:s.Z.ZERO_PAGE},{id:22,instruction:i.Z.ASL,cycles:6,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:14,instruction:i.Z.ASL,cycles:6,addressing:s.Z.ABSOLUTE},{id:30,instruction:i.Z.ASL,cycles:7,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:198,instruction:i.Z.DEC,cycles:5,addressing:s.Z.ZERO_PAGE},{id:214,instruction:i.Z.DEC,cycles:6,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:206,instruction:i.Z.DEC,cycles:6,addressing:s.Z.ABSOLUTE},{id:222,instruction:i.Z.DEC,cycles:7,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:202,instruction:i.Z.DEX,cycles:2,addressing:s.Z.IMPLICIT},{id:136,instruction:i.Z.DEY,cycles:2,addressing:s.Z.IMPLICIT},{id:230,instruction:i.Z.INC,cycles:5,addressing:s.Z.ZERO_PAGE},{id:246,instruction:i.Z.INC,cycles:6,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:238,instruction:i.Z.INC,cycles:6,addressing:s.Z.ABSOLUTE},{id:254,instruction:i.Z.INC,cycles:7,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:232,instruction:i.Z.INX,cycles:2,addressing:s.Z.IMPLICIT},{id:200,instruction:i.Z.INY,cycles:2,addressing:s.Z.IMPLICIT},{id:74,instruction:i.Z.LSR,cycles:2,addressing:s.Z.ACCUMULATOR},{id:70,instruction:i.Z.LSR,cycles:5,addressing:s.Z.ZERO_PAGE},{id:86,instruction:i.Z.LSR,cycles:6,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:78,instruction:i.Z.LSR,cycles:6,addressing:s.Z.ABSOLUTE},{id:94,instruction:i.Z.LSR,cycles:7,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:42,instruction:i.Z.ROL,cycles:2,addressing:s.Z.ACCUMULATOR},{id:38,instruction:i.Z.ROL,cycles:5,addressing:s.Z.ZERO_PAGE},{id:54,instruction:i.Z.ROL,cycles:6,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:46,instruction:i.Z.ROL,cycles:6,addressing:s.Z.ABSOLUTE},{id:62,instruction:i.Z.ROL,cycles:7,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:106,instruction:i.Z.ROR,cycles:2,addressing:s.Z.ACCUMULATOR},{id:102,instruction:i.Z.ROR,cycles:5,addressing:s.Z.ZERO_PAGE},{id:118,instruction:i.Z.ROR,cycles:6,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:110,instruction:i.Z.ROR,cycles:6,addressing:s.Z.ABSOLUTE},{id:126,instruction:i.Z.ROR,cycles:7,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:233,instruction:i.Z.SBC,cycles:2,addressing:s.Z.IMMEDIATE},{id:229,instruction:i.Z.SBC,cycles:3,addressing:s.Z.ZERO_PAGE},{id:245,instruction:i.Z.SBC,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:237,instruction:i.Z.SBC,cycles:4,addressing:s.Z.ABSOLUTE},{id:253,instruction:i.Z.SBC,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:249,instruction:i.Z.SBC,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:225,instruction:i.Z.SBC,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:241,instruction:i.Z.SBC,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0}]},4090:function(t,e,n){"use strict";var i=n(8085),s=n(1734);e.Z=[{id:144,instruction:i.Z.BCC,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:176,instruction:i.Z.BCS,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:240,instruction:i.Z.BEQ,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:48,instruction:i.Z.BMI,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:208,instruction:i.Z.BNE,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:16,instruction:i.Z.BPL,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:80,instruction:i.Z.BVC,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:112,instruction:i.Z.BVS,cycles:2,addressing:s.Z.RELATIVE,canTakeExtraCycles:!0},{id:76,instruction:i.Z.JMP,cycles:3,addressing:s.Z.ABSOLUTE},{id:108,instruction:i.Z.JMP,cycles:5,addressing:s.Z.INDIRECT},{id:32,instruction:i.Z.JSR,cycles:6,addressing:s.Z.ABSOLUTE},{id:64,instruction:i.Z.RTI,cycles:6,addressing:s.Z.IMPLICIT},{id:96,instruction:i.Z.RTS,cycles:6,addressing:s.Z.IMPLICIT}]},6973:function(t,e,n){"use strict";var i=n(8085),s=n(1734);e.Z=[{id:36,instruction:i.Z.BIT,cycles:3,addressing:s.Z.ZERO_PAGE},{id:44,instruction:i.Z.BIT,cycles:4,addressing:s.Z.ABSOLUTE},{id:201,instruction:i.Z.CMP,cycles:2,addressing:s.Z.IMMEDIATE},{id:197,instruction:i.Z.CMP,cycles:3,addressing:s.Z.ZERO_PAGE},{id:213,instruction:i.Z.CMP,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:205,instruction:i.Z.CMP,cycles:4,addressing:s.Z.ABSOLUTE},{id:221,instruction:i.Z.CMP,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:217,instruction:i.Z.CMP,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:193,instruction:i.Z.CMP,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:209,instruction:i.Z.CMP,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0},{id:224,instruction:i.Z.CPX,cycles:2,addressing:s.Z.IMMEDIATE},{id:228,instruction:i.Z.CPX,cycles:3,addressing:s.Z.ZERO_PAGE},{id:236,instruction:i.Z.CPX,cycles:4,addressing:s.Z.ABSOLUTE},{id:192,instruction:i.Z.CPY,cycles:2,addressing:s.Z.IMMEDIATE},{id:196,instruction:i.Z.CPY,cycles:3,addressing:s.Z.ZERO_PAGE},{id:204,instruction:i.Z.CPY,cycles:4,addressing:s.Z.ABSOLUTE}]},8532:function(t,e,n){"use strict";var i=n(8085),s=n(1734);e.Z=[{id:24,instruction:i.Z.CLC,cycles:2,addressing:s.Z.IMPLICIT},{id:216,instruction:i.Z.CLD,cycles:2,addressing:s.Z.IMPLICIT},{id:88,instruction:i.Z.CLI,cycles:2,addressing:s.Z.IMPLICIT},{id:184,instruction:i.Z.CLV,cycles:2,addressing:s.Z.IMPLICIT},{id:169,instruction:i.Z.LDA,cycles:2,addressing:s.Z.IMMEDIATE},{id:165,instruction:i.Z.LDA,cycles:3,addressing:s.Z.ZERO_PAGE},{id:181,instruction:i.Z.LDA,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:173,instruction:i.Z.LDA,cycles:4,addressing:s.Z.ABSOLUTE},{id:189,instruction:i.Z.LDA,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:185,instruction:i.Z.LDA,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:161,instruction:i.Z.LDA,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:177,instruction:i.Z.LDA,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0},{id:162,instruction:i.Z.LDX,cycles:2,addressing:s.Z.IMMEDIATE},{id:166,instruction:i.Z.LDX,cycles:3,addressing:s.Z.ZERO_PAGE},{id:182,instruction:i.Z.LDX,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_Y},{id:174,instruction:i.Z.LDX,cycles:4,addressing:s.Z.ABSOLUTE},{id:190,instruction:i.Z.LDX,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:160,instruction:i.Z.LDY,cycles:2,addressing:s.Z.IMMEDIATE},{id:164,instruction:i.Z.LDY,cycles:3,addressing:s.Z.ZERO_PAGE},{id:180,instruction:i.Z.LDY,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:172,instruction:i.Z.LDY,cycles:4,addressing:s.Z.ABSOLUTE},{id:188,instruction:i.Z.LDY,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:72,instruction:i.Z.PHA,cycles:3,addressing:s.Z.IMPLICIT},{id:8,instruction:i.Z.PHP,cycles:3,addressing:s.Z.IMPLICIT},{id:104,instruction:i.Z.PLA,cycles:4,addressing:s.Z.IMPLICIT},{id:40,instruction:i.Z.PLP,cycles:4,addressing:s.Z.IMPLICIT},{id:56,instruction:i.Z.SEC,cycles:2,addressing:s.Z.IMPLICIT},{id:248,instruction:i.Z.SED,cycles:2,addressing:s.Z.IMPLICIT},{id:120,instruction:i.Z.SEI,cycles:2,addressing:s.Z.IMPLICIT},{id:133,instruction:i.Z.STA,cycles:3,addressing:s.Z.ZERO_PAGE},{id:149,instruction:i.Z.STA,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:141,instruction:i.Z.STA,cycles:4,addressing:s.Z.ABSOLUTE},{id:157,instruction:i.Z.STA,cycles:5,addressing:s.Z.INDEXED_ABSOLUTE_X},{id:153,instruction:i.Z.STA,cycles:5,addressing:s.Z.INDEXED_ABSOLUTE_Y},{id:129,instruction:i.Z.STA,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:145,instruction:i.Z.STA,cycles:6,addressing:s.Z.INDEXED_INDIRECT_Y},{id:134,instruction:i.Z.STX,cycles:3,addressing:s.Z.ZERO_PAGE},{id:150,instruction:i.Z.STX,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_Y},{id:142,instruction:i.Z.STX,cycles:4,addressing:s.Z.ABSOLUTE},{id:132,instruction:i.Z.STY,cycles:3,addressing:s.Z.ZERO_PAGE},{id:148,instruction:i.Z.STY,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:140,instruction:i.Z.STY,cycles:4,addressing:s.Z.ABSOLUTE},{id:170,instruction:i.Z.TAX,cycles:2,addressing:s.Z.IMPLICIT},{id:168,instruction:i.Z.TAY,cycles:2,addressing:s.Z.IMPLICIT},{id:186,instruction:i.Z.TSX,cycles:2,addressing:s.Z.IMPLICIT},{id:138,instruction:i.Z.TXA,cycles:2,addressing:s.Z.IMPLICIT},{id:154,instruction:i.Z.TXS,cycles:2,addressing:s.Z.IMPLICIT},{id:152,instruction:i.Z.TYA,cycles:2,addressing:s.Z.IMPLICIT}]},5219:function(t,e,n){"use strict";var i=n(9062),s=n(2399),r=n(4090),a=n(6973),u=n(8532),o=n(2850),c=n(421),l=n(763),h=n.n(l);e.Z=h().keyBy([].concat((0,i.Z)(s.Z),(0,i.Z)(r.Z),(0,i.Z)(a.Z),(0,i.Z)(u.Z),(0,i.Z)(o.Z),(0,i.Z)(c.Z)),"id")},2850:function(t,e,n){"use strict";var i=n(8085),s=n(1734);e.Z=[{id:41,instruction:i.Z.AND,cycles:2,addressing:s.Z.IMMEDIATE},{id:37,instruction:i.Z.AND,cycles:3,addressing:s.Z.ZERO_PAGE},{id:53,instruction:i.Z.AND,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:45,instruction:i.Z.AND,cycles:4,addressing:s.Z.ABSOLUTE},{id:61,instruction:i.Z.AND,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:57,instruction:i.Z.AND,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:33,instruction:i.Z.AND,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:49,instruction:i.Z.AND,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0},{id:73,instruction:i.Z.EOR,cycles:2,addressing:s.Z.IMMEDIATE},{id:69,instruction:i.Z.EOR,cycles:3,addressing:s.Z.ZERO_PAGE},{id:85,instruction:i.Z.EOR,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:77,instruction:i.Z.EOR,cycles:4,addressing:s.Z.ABSOLUTE},{id:93,instruction:i.Z.EOR,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:89,instruction:i.Z.EOR,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:65,instruction:i.Z.EOR,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:81,instruction:i.Z.EOR,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0},{id:9,instruction:i.Z.ORA,cycles:2,addressing:s.Z.IMMEDIATE},{id:5,instruction:i.Z.ORA,cycles:3,addressing:s.Z.ZERO_PAGE},{id:21,instruction:i.Z.ORA,cycles:4,addressing:s.Z.INDEXED_ZERO_PAGE_X},{id:13,instruction:i.Z.ORA,cycles:4,addressing:s.Z.ABSOLUTE},{id:29,instruction:i.Z.ORA,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_X,canTakeExtraCycles:!0},{id:25,instruction:i.Z.ORA,cycles:4,addressing:s.Z.INDEXED_ABSOLUTE_Y,canTakeExtraCycles:!0},{id:1,instruction:i.Z.ORA,cycles:6,addressing:s.Z.INDEXED_INDIRECT_X},{id:17,instruction:i.Z.ORA,cycles:5,addressing:s.Z.INDEXED_INDIRECT_Y,canTakeExtraCycles:!0}]},421:function(t,e,n){"use strict";var i=n(8085),s=n(1734);e.Z=[{id:0,instruction:i.Z.BRK,cycles:0,addressing:s.Z.IMPLICIT},{id:234,instruction:i.Z.NOP,cycles:2,addressing:s.Z.IMPLICIT}]},7630:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(8092),a=function(){function t(){(0,i.Z)(this,t),this.n=!1,this.v=!1,this.d=!1,this.i=!1,this.z=!1,this.c=!1}return(0,s.Z)(t,[{key:"load",value:function(t){return this.n=!!(128&t),this.v=!!(64&t),this.d=!!(8&t),this.i=!!(4&t),this.z=!!(2&t),this.c=!!(1&t),this}},{key:"toByte",value:function(){return(this.n&&128)|(this.v&&64)|32|(this.d&&8)|(this.i&&4)|(this.z&&2)|(this.c&&1)}},{key:"updateZeroAndNegative",value:function(t){this.updateZero(t),this.updateNegative(t)}},{key:"updateZero",value:function(t){this.z=0===t}},{key:"updateNegative",value:function(t){this.n=r.f.isNegative(t)}}]),t}()},4771:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(5671),s=n(3144),r=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,i.Z)(this,t),this.bytes=new e(1),this.value=this.initialValue=n}return(0,s.Z)(t,[{key:"reset",value:function(){this.value=this.initialValue}},{key:"increment",value:function(){this.value++}},{key:"decrement",value:function(){this.value--}},{key:"value",get:function(){return this.bytes[0]},set:function(t){this.bytes[0]=t}},{key:"toString",value:function(){return"[REGISTER]"}}]),t}()},7894:function(t,e,n){"use strict";n.d(e,{K0:function(){return o.Z},R5:function(){return c},fv:function(){return l}});var i=n(3144),s=n(5671),r=n(136),a=n(9388),u=n(4771),o=n(7630),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(t){return(0,s.Z)(this,n),e.call(this,Uint8Array,t)}return(0,i.Z)(n)}(u.Z),l=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(t){return(0,s.Z)(this,n),e.call(this,Uint16Array,t)}return(0,i.Z)(n)}(u.Z)},3765:function(t,e){"use strict";e.Z={toNumber:function(t){return t<<24>>24},toSignedByte:function(t){return 255&t},hasOverflow:function(t){return t>=256},isPositive:function(t){return!(t>>7&1)},isNegative:function(t){return!!(t>>7&1)},negate:function(t){return 256-t},force8Bit:function(t){return 255&t},force16Bit:function(t){return 65535&t},getBit:function(t,e){return t>>e&1},getBits:function(t,e,n){return t>>e&255>>8-n},setBits:function(t,e,n,i){var s=(1<>8},lowPartOf:function(t){return 255&t},to16Bit:function(t,e){return(255&t)<<8|255&e}}},8825:function(t,e,n){"use strict";var i=n(763),s=n.n(i);e.Z={apply:function(t){s().defaults(t,s().omit(this,"apply"))},context:null,loadContext:function(t){return this.context=t,this.onLoad&&this.onLoad(t),this},requireContext:function(){if(!this.context)throw new Error("Execution context not found.")}}},8092:function(t,e,n){"use strict";n.d(e,{V:function(){return i.Z},f:function(){return s.Z}});var i=n(8825),s=n(3765)},4620:function(t,e,n){"use strict";var i=n(8591);e.Z=i.Z},1090:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var i=n(136),s=n(9388),r=n(3144),a=n(5671),u=n(361),o=function(t){(0,i.Z)(n,t);var e=(0,s.Z)(n);function n(){return(0,a.Z)(this,n),e.apply(this,arguments)}return(0,r.Z)(n,[{key:"writeAt",value:function(t,e){this.mapper.cpuWriteAt(t,e)}}]),n}((0,r.Z)((function t(e){(0,a.Z)(this,t),u.Z.apply(this),this.mapper=e})))},8908:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(5671),s=n(3144),r=n(361),a=n(763),u=n.n(a),o=function(){function t(e){(0,i.Z)(this,t),r.Z.apply(this),u().isFinite(e)&&(e=new Uint8Array(e)),this.bytes=e,this.readOnly=!1,this.memorySize=e.length}return(0,s.Z)(t,[{key:"readAt",value:function(t){return this._assertValidAddress(t),this.bytes[t]}},{key:"writeAt",value:function(t,e){this._assertValidAddress(t),this.readOnly||(this.bytes[t]=e)}},{key:"asReadOnly",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.readOnly=t,this}},{key:"_assertValidAddress",value:function(t){(t<0||t>this.memorySize)&&this._throwInvalidAddressError(t)}},{key:"_throwInvalidAddressError",value:function(t){throw new Error("Invalid memory access at 0x".concat(t.toString(16),"."))}}]),t}()},3578:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(361),a=function(){function t(e,n){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.memorySize-s;(0,i.Z)(this,t),r.Z.apply(this),this.chunk=e,this.startAt=s,this.mirroredSize=a,this.memorySize=n}return(0,s.Z)(t,[{key:"readAt",value:function(t){return this._checkAddress(t),this.chunk.readAt(this.startAt+t%this.mirroredSize)}},{key:"writeAt",value:function(t,e){this._checkAddress(t),this.chunk.writeAt(this.startAt+t%this.mirroredSize,e)}},{key:"_checkAddress",value:function(t){if(t>=this.memorySize)throw new Error("Unreachable address: 0x".concat(t.toString(16),"."))}}]),t}()},1183:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),s=n(3144),r=n(361),a=function(){function t(e){(0,i.Z)(this,t),r.Z.apply(this),this.memorySize=e}return(0,s.Z)(t,[{key:"readAt",value:function(){return 0}},{key:"writeAt",value:function(){}}]),t}()},982:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(7762),s=n(5671),r=n(3144),a=n(136),u=n(9388),o=function(t){(0,a.Z)(n,t);var e=(0,u.Z)(n);function n(t,i){var r;return(0,s.Z)(this,n),(r=e.call(this,t)).mapping=i,r}return(0,r.Z)(n,[{key:"readAt",value:function(t){return null!=this.mapping[t]&&(t=this.mapping[t]),this._assertValidAddress(t),this.bytes[t]}},{key:"writeAt",value:function(t,e){null!=this.mapping[t]&&(t=this.mapping[t]),this._assertValidAddress(t),this.bytes[t]=e}}],[{key:"createMapping",value:function(t){var e,n={},s=(0,i.Z)(t);try{for(s.s();!(e=s.n()).done;)for(var r=e.value,a=0;a=r&&t1&&this.cycle<256)i+=this._skip(256,t,i);else if(this.cycle>260&&this.cycle<304)i+=this._skip(304,t,i);else if(this.cycle>304&&this.cycle<340)i+=this._skip(340,t,i);else{var s=d(this.scanline),r=u.Z[s](this.context);r&&n(r),this._incrementCounters(e)}}},{key:"plot",value:function(t,e,n){this.frameBuffer[e*c.Z.SCREEN_WIDTH+t]=4278190080|this.registers.ppuMask.transform(n)}},{key:"paletteIndexOf",value:function(t,e){return this.paletteIndexes[e*c.Z.SCREEN_WIDTH+t]}},{key:"getSaveState",value:function(){return{frame:this.frame,scanline:this.scanline,cycle:this.cycle,memory:this.memory.getSaveState(),oamRam:Array.from(this.oamRam),loopy:this.loopy.getSaveState()}}},{key:"setSaveState",value:function(t){this.frame=t.frame,this.scanline=t.scanline,this.cycle=t.cycle,this.memory.setSaveState(t.memory),this.oamRam=new Uint8Array(t.oamRam),this.loopy.setSaveState(t.loopy)}},{key:"_skip",value:function(t,e,n){var i=Math.min(t-this.cycle,e-n);return this.cycle+=i,i-1}},{key:"_incrementCounters",value:function(t){this.cycle++,this.cycle>c.Z.PPU_LAST_CYCLE&&(this.cycle=0,this.scanline++,this.scanline>c.Z.PPU_LAST_SCANLINE&&(this.scanline=-1,this.frame++,t(this.frameBuffer)))}},{key:"_reset",value:function(){this.frame=0,this.scanline=-1,this.cycle=0;for(var t=0;t>r.Z.LOOPY_ADDR_COARSE_X_OFFSET&r.Z.LOOPY_ADDR_COARSE_X_MASK,this.coarseY=t>>r.Z.LOOPY_ADDR_COARSE_Y_OFFSET&r.Z.LOOPY_ADDR_COARSE_Y_MASK,this.nameTableId=t>>r.Z.LOOPY_ADDR_BASE_NAME_TABLE_ID_OFFSET&r.Z.LOOPY_ADDR_BASE_NAME_TABLE_ID_MASK,this.fineY=t>>r.Z.LOOPY_ADDR_FINE_Y_OFFSET&r.Z.LOOPY_ADDR_FINE_Y_MASK}},{key:"_switchHorizontalNameTable",value:function(){this.nameTableId=1^this.nameTableId}},{key:"_switchVerticalNameTable",value:function(){this.nameTableId=2^this.nameTableId}}]),t}()},1044:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(2634),a=n(8092),u=function(){function t(){(0,i.Z)(this,t),this.vAddress=new r.Z,this.tAddress=new r.Z,this.fineX=0,this.latch=!1}return(0,s.Z)(t,[{key:"onPPUCtrlWrite",value:function(t){this.tAddress.nameTableId=a.f.getBits(t,0,2)}},{key:"onPPUStatusRead",value:function(){this.latch=!1}},{key:"onPPUScrollWrite",value:function(t){this.latch?(this.tAddress.coarseY=a.f.getBits(t,3,5),this.tAddress.fineY=a.f.getBits(t,0,3)):(this.tAddress.coarseX=a.f.getBits(t,3,5),this.fineX=a.f.getBits(t,0,3)),this.latch=!this.latch}},{key:"onPPUAddrWrite",value:function(t){if(this.latch){var e=this.tAddress.toNumber();e=a.f.to16Bit(a.f.highPartOf(e),t),this.tAddress.update(e),this.vAddress.update(e)}else{var n=this.tAddress.toNumber(),i=a.f.highPartOf(n);i=a.f.setBits(i,0,6,a.f.getBits(t,0,6)),i=a.f.setBits(i,6,1,0),n=a.f.to16Bit(i,a.f.lowPartOf(n)),this.tAddress.update(n)}this.latch=!this.latch}},{key:"onPreLine",value:function(t){t>=280&&t<=304&&this._copyY()}},{key:"onVisibleLine",value:function(t){t>=8&&t<=256&&t%8===0&&this.vAddress.incrementX()}},{key:"onLine",value:function(t){256===t&&this.vAddress.incrementY(),257===t&&this._copyX()}},{key:"getSaveState",value:function(){return{v:this.vAddress.toNumber(),t:this.tAddress.toNumber(),x:this.fineX,w:this.latch}}},{key:"setSaveState",value:function(t){this.vAddress.update(t.v),this.tAddress.update(t.t),this.fineX=t.x,this.latch=t.w}},{key:"_copyX",value:function(){var t=this.vAddress.toNumber(),e=this.tAddress.toNumber();this.vAddress.update(31712&t|1055&e)}},{key:"_copyY",value:function(){var t=this.vAddress.toNumber(),e=this.tAddress.toNumber();this.vAddress.update(1055&t|31712&e)}}]),t}()},4250:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(3144),s=n(5671),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,s.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n)}(n(3829).Gy)},6258:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(9270),c=n(8092),l=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){for(var n=this.context,i=n.cpu,s=n.ppu,r=0;r<256;r++){var a=c.f.to16Bit(e,r),u=i.memory.readAt(a);s.oamRam[r]=u}i.extraCycles+=o.Z.OAMDMA_CPU_CYCLES+(i.cycle%2===1)}}]),n}(u.Gy)},4819:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(8092),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"readAt",value:function(){var t=this.context.ppu,e=t.registers.oamAddr.value;return t.oamRam[e]}},{key:"writeAt",value:function(t,e){var n=this.context.ppu,i=n.registers.oamAddr.value;n.oamRam[i]=e,this._incrementAddress()}},{key:"_incrementAddress",value:function(){var t=this.context.ppu.registers.oamAddr;t.setValue(o.f.force8Bit(t.value+1))}}]),n}(u.Ff)},3209:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.context.ppu.loopy.onPPUAddrWrite(e)}},{key:"address",get:function(){return this.context.ppu.loopy.vAddress.to14BitNumber()},set:function(t){this.context.ppu.loopy.vAddress.update(t)}},{key:"latch",get:function(){return this.context.ppu.loopy.latch}}]),n}(n(3829).Gy)},7126:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("vramAddressIncrement32",2).addReadOnlyField("patternTableAddressIdFor8x8Sprites",3).addReadOnlyField("patternTableAddressIdForBackground",4).addReadOnlyField("spriteSizeId",5).addReadOnlyField("generateNmiAtStartOfVBlank",7),t}return(0,s.Z)(n,[{key:"writeAt",value:function(t,e){this.setValue(e),this.context.ppu.loopy.onPPUCtrlWrite(e)}},{key:"vramAddressIncrement",get:function(){return this.vramAddressIncrement32?32:1}},{key:"isIn8x16Mode",get:function(){return 1===this.spriteSizeId}}]),n}(n(3829).Gy)},9854:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(9270),c=n(8092),l=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"onLoad",value:function(){this.buffer=0}},{key:"readAt",value:function(){var t=this.buffer,e=this.context.ppu.registers.ppuAddr.address;return this.buffer=this.context.ppu.memory.readAt(e),e>=o.Z.PPU_ADDRESSED_PALETTE_RAM_START_ADDRESS&&(t=this.buffer),this.context.isDebugging||this._incrementAddress(),t}},{key:"writeAt",value:function(t,e){var n=this.context.ppu.registers.ppuAddr.address;this.context.ppu.memory.writeAt(n,e),this._incrementAddress()}},{key:"_incrementAddress",value:function(){var t=this.context.ppu.registers;t.ppuAddr.address=c.f.force16Bit(t.ppuAddr.address+t.ppuCtrl.vramAddressIncrement)}}]),n}(u.Ff)},4990:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addReadOnlyField("grayscale",0).addReadOnlyField("showBackgroundInLeftmost8PixelsOfScreen",1).addReadOnlyField("showSpritesInLeftmost8PixelsOfScreen",2).addReadOnlyField("showBackground",3).addReadOnlyField("showSprites",4).addReadOnlyField("emphasizeRed",5).addReadOnlyField("emphasizeGreen",6).addReadOnlyField("emphasizeBlue",7),t}return(0,s.Z)(n,[{key:"transform",value:function(t){var e=t>>0&255,n=t>>8&255,i=t>>16&255;if(this.grayscale){var s=Math.floor(e/3)+Math.floor(n/3)+Math.floor(i/3);e=s,n=s,i=s}if(this.emphasizeRed||this.emphasizeGreen||this.emphasizeBlue){var r=this.emphasizeRed&&this.emphasizeGreen&&this.emphasizeBlue;e=this.emphasizeRed&&!r?e:Math.floor(.75*e),n=this.emphasizeGreen&&!r?n:Math.floor(.75*n),i=this.emphasizeBlue&&!r?i:Math.floor(.75*i)}return e<<0|n<<8|i<<16}},{key:"isRenderingEnabled",get:function(){return this.showBackground||this.showSprites}}]),n}(n(3829).Gy)},9119:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(3829),o=n(9270),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"scrolledX",value:function(t){var e=this.context.ppu.loopy,n=e.vAddress,i=e.fineX;return n.coarseX*o.Z.TILE_LENGTH+i+t%o.Z.TILE_LENGTH}},{key:"scrolledY",value:function(){var t=this.context.ppu.loopy.vAddress;return t.coarseY*o.Z.TILE_LENGTH+t.fineY}},{key:"writeAt",value:function(t,e){this.context.ppu.loopy.onPPUScrollWrite(e)}}]),n}(u.Gy)},8177:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;return(0,i.Z)(this,n),(t=e.call(this)).addField("spriteOverflow",5).addField("sprite0Hit",6).addField("isInVBlankInterval",7),t}return(0,s.Z)(n,[{key:"onLoad",value:function(){this.setValue(128)}},{key:"readAt",value:function(){var t=this.value;return this.context.isDebugging||(this.isInVBlankInterval=0,this.context.ppu.loopy.onPPUStatusRead()),t}},{key:"writeAt",value:function(){}}]),n}(n(3829).Ff)},5104:function(t,e,n){"use strict";n.d(e,{h:function(){return g.Z},m:function(){return p}});var i=n(5671),s=n(3144),r=n(7126),a=n(4990),u=n(8177),o=n(4250),c=n(4819),l=n(9119),h=n(3209),d=n(9854),f=n(6258),g=n(1044),Z=n(6371),p=function(){function t(e){(0,i.Z)(this,t),this.ppuCtrl=(new r.Z).loadContext(e),this.ppuMask=(new a.Z).loadContext(e),this.ppuStatus=(new u.Z).loadContext(e),this.oamAddr=(new o.Z).loadContext(e),this.oamData=(new c.Z).loadContext(e),this.ppuScroll=(new l.Z).loadContext(e),this.ppuAddr=(new h.Z).loadContext(e),this.ppuData=(new d.Z).loadContext(e),this.oamDma=(new f.Z).loadContext(e)}return(0,s.Z)(t,[{key:"toMemory",value:function(){return Z.V6.createSegment([this.ppuCtrl,this.ppuMask,this.ppuStatus,this.oamAddr,this.oamData,this.ppuScroll,this.ppuAddr,this.ppuData])}}]),t}()},3075:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(9270);function s(t){var e=t.ppu,n=t.mapper;if(!e.registers.ppuMask.isRenderingEnabled)return null;if(e.cycle===i.Z.PPU_CYCLE_CLEAR_FLAGS){var s=e.registers.ppuStatus;s.spriteOverflow=0,s.sprite0Hit=0,s.isInVBlankInterval=0}return e.loopy.onPreLine(e.cycle),e.loopy.onLine(e.cycle),e.cycle===i.Z.PPU_CYCLE_MAPPER_TICK?n.tick():null}},6151:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(8262),s=n(6427),r=n(9270);function a(t){var e=t.ppu,n=t.mapper,a=e.registers.ppuMask;return a.isRenderingEnabled?(e.cycle===r.Z.PPU_CYCLE_RENDER_BACKGROUND&&a.showBackground&&(0,i.Z)(t),e.cycle===r.Z.PPU_CYCLE_RENDER_SPRITES&&a.showSprites&&(0,s.Z)(t),e.loopy.onLine(e.cycle),e.cycle===r.Z.PPU_CYCLE_MAPPER_TICK?n.tick():null):null}},4836:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(9270),s=n(7085);function r(t){var e=t.ppu;return e.cycle===i.Z.PPU_CYCLE_VBLANK&&(e.registers.ppuStatus.isInVBlankInterval=1,e.registers.ppuCtrl.generateNmiAtStartOfVBlank)?s.t.NMI:null}},5886:function(t,e,n){"use strict";var i=n(3075),s=n(6151),r=n(4836);e.Z={PRELINE:i.Z,VISIBLE:s.Z,VBLANK_START:r.Z,IDLE:function(){}}},8262:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9270),s=[1,-1,1,-1],r=4278190080;function a(t){for(var e=t.ppu,n=e.registers,a=e.loopy,u=e.scanline,o=n.ppuScroll.scrolledY(),c=e.framePalette.getColorOf(0,0),l=0;l=i.Z.SCREEN_WIDTH?s[f]:0),Z=d%i.Z.SCREEN_WIDTH,p=o%i.Z.SCREEN_HEIGHT,_=e.nameTable.getTileIdOf(g,Z,p),v=e.attributeTable.getPaletteIdOf(g,Z,p),y=[e.framePalette.getColorOf(v,0),e.framePalette.getColorOf(v,1),e.framePalette.getColorOf(v,2),e.framePalette.getColorOf(v,3)],E=n.ppuCtrl.patternTableAddressIdForBackground,m=Z%i.Z.TILE_LENGTH,S=p%i.Z.TILE_LENGTH,A=e.patternTable.getLowByteOf(E,_,S),T=e.patternTable.getHighByteOf(E,_,S),R=i.Z.SCREEN_WIDTH-Z,C=Math.min(i.Z.TILE_LENGTH-m,R),I=0;I=r.Z.TILE_LENGTH);return this.is8x16&&this.flipY&&(e=+!e),this.tileId+e}},{key:"shouldRenderInScanline",value:function(t){var e=this.diffY(t);return e>=0&&e2&&void 0!==arguments[2]?arguments[2]:1;return Object.defineProperty(this,t,{get:function(){return a.f.getBits(this.value,e,n)},set:function(t){this.value=a.f.force8Bit(a.f.setBits(this.value,e,n,t))}}),this}},{key:"addReadOnlyField",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this._readOnlyFields.push({name:t,startPosition:e,size:n}),this[t]=0,this}},{key:"setValue",value:function(t){this.value=a.f.force8Bit(t),this._writeReadOnlyFields()}},{key:"readAt",value:function(){return this.value}},{key:"writeAt",value:function(t,e){this.setValue(e)}},{key:"_writeReadOnlyFields",value:function(){var t,e=(0,i.Z)(this._readOnlyFields);try{for(e.s();!(t=e.n()).done;){var n=t.value,s=n.name,r=n.startPosition,u=n.size;this[s]=a.f.getBits(this.value,r,u)}}catch(o){e.e(o)}finally{e.f()}}}]),t}()},541:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(5671),s=n(3144),r=function(){function t(e,n){(0,i.Z)(this,t),this.readRegister=e,this.writeRegister=n,this.memorySize=1}return(0,s.Z)(t,[{key:"readAt",value:function(t){return this.readRegister.readAt(t)}},{key:"writeAt",value:function(t,e){this.writeRegister.writeAt(t,e)}}]),t}()},3829:function(t,e,n){"use strict";n.d(e,{Ff:function(){return u.Z},Gy:function(){return c},i2:function(){return o.Z}});var i=n(5671),s=n(3144),r=n(136),a=n(9388),u=n(7047),o=n(541),c=function(t){(0,r.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),e.apply(this,arguments)}return(0,s.Z)(n,[{key:"readAt",value:function(){return 0}}]),n}(u.Z)}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var r=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=t,n.x=function(){var t=n.O(void 0,[64],(function(){return n(9517)}));return t=n.O(t)},function(){var t=[];n.O=function(e,i,s,r){if(!i){var a=1/0;for(l=0;l=r)&&Object.keys(n.O).every((function(t){return n.O[t](i[o])}))?i.splice(o--,1):(u=!1,r0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[i,s,r]}}(),n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,i){return n.f[i](t,e),e}),[]))},n.u=function(t){return"static/js/"+t+".40a37172.chunk.js"},n.miniCssF=function(t){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},n.p="/nescore/",function(){var t={517:1};n.f.i=function(e,i){t[e]||importScripts(n.p+n.u(e))};var e=self.webpackChunknescore=self.webpackChunknescore||[],i=e.push.bind(e);e.push=function(e){var s=e[0],r=e[1],a=e[2];for(var u in r)n.o(r,u)&&(n.m[u]=r[u]);for(a&&a(n);s.length;)t[s.pop()]=1;i(e)}}(),function(){var t=n.x;n.x=function(){return n.e(64).then(t)}}();n.x()}(); +//# sourceMappingURL=517.c1fcf108.chunk.js.map \ No newline at end of file diff --git a/static/js/517.c1fcf108.chunk.js.map b/static/js/517.c1fcf108.chunk.js.map new file mode 100644 index 0000000..012152c --- /dev/null +++ b/static/js/517.c1fcf108.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/517.c1fcf108.chunk.js","mappings":"uHAIqBA,EAAU,WAC9B,SAAAA,EAAYC,EAASC,GAA0B,IA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,SAASG,GAC3B,IAAIw6B,EAAWx6B,EAAK,GAChB28B,EAAc38B,EAAK,GACnB48B,EAAU58B,EAAK,GACnB,IAAI,IAAI85B,KAAY6C,EAChB9C,EAAoBwB,EAAEsB,EAAa7C,KACrCD,EAAoBO,EAAEN,GAAY6C,EAAY7C,IAIhD,IADG8C,GAASA,EAAQ/C,GACdW,EAAS18B,QACdw+B,EAAgB9B,EAAS7V,OAAS,EACnC+X,EAA2B18B,EAC5B,C,eCtBA,IAAI68B,EAAOhD,EAAoBxY,EAC/BwY,EAAoBxY,EAAI,WACvB,OAAOwY,EAAoBxN,EAAE,IAAIyQ,KAAKD,EACvC,C,ICF0BhD,EAAoBxY,G","sources":["gui/emulator/FrameTimer.js","gui/emulator/WebWorker.js","gui/emulator/webWorkerRunner.js","nes/NES.js","nes/apu/APU.js","nes/apu/channels/DMCChannel.js","nes/apu/channels/NoiseChannel.js","nes/apu/channels/PulseChannel.js","nes/apu/channels/TriangleChannel.js","nes/apu/constants/dpcmPeriods.js","nes/apu/constants/lengthTable.js","nes/apu/constants/noisePeriods.js","nes/apu/frameClock.js","nes/apu/index.js","nes/apu/registers/APUControl.js","nes/apu/registers/APUFrameCounter.js","nes/apu/registers/APUStatus.js","nes/apu/registers/DMCControl.js","nes/apu/registers/DMCLoad.js","nes/apu/registers/DMCSampleAddress.js","nes/apu/registers/DMCSampleLength.js","nes/apu/registers/NoiseControl.js","nes/apu/registers/NoiseForm.js","nes/apu/registers/NoiseLCL.js","nes/apu/registers/PulseControl.js","nes/apu/registers/PulseLCLTimerHigh.js","nes/apu/registers/PulseSweep.js","nes/apu/registers/PulseTimerLow.js","nes/apu/registers/TriangleLCLTimerHigh.js","nes/apu/registers/TriangleLinearLCL.js","nes/apu/registers/TriangleTimerLow.js","nes/apu/registers/index.js","nes/apu/synthesis/FrequencySweeper.js","nes/apu/synthesis/LengthCounter.js","nes/apu/synthesis/PulseOscillator.js","nes/apu/synthesis/TriangleOscillator.js","nes/apu/synthesis/VolumeEnvelope.js","nes/cartridge/Cartridge.js","nes/cartridge/index.js","nes/cartridge/mappers/Mapper.js","nes/cartridge/mappers/_0_NROM.js","nes/cartridge/mappers/_1_MMC1.js","nes/cartridge/mappers/_2_UxROM.js","nes/cartridge/mappers/_3_CNROM.js","nes/cartridge/mappers/_4_MMC3.js","nes/cartridge/mappers/index.js","nes/config.js","nes/constants.js","nes/controller/Controller.js","nes/controller/ControllerPort.js","nes/controller/PrimaryControllerPort.js","nes/controller/SecondaryControllerPort.js","nes/controller/index.js","nes/cpu/CPU.js","nes/cpu/CPUMemoryMap.js","nes/cpu/Stack.js","nes/cpu/addressings/_getValue.js","nes/cpu/addressings/_indexedGetAddress.js","nes/cpu/addressings/absolute.js","nes/cpu/addressings/accumulator.js","nes/cpu/addressings/immediate.js","nes/cpu/addressings/implicit.js","nes/cpu/addressings/index.js","nes/cpu/addressings/indexedAbsoluteX.js","nes/cpu/addressings/indexedAbsoluteY.js","nes/cpu/addressings/indexedIndirectX.js","nes/cpu/addressings/indexedIndirectY.js","nes/cpu/addressings/indexedZeroPageX.js","nes/cpu/addressings/indexedZeroPageY.js","nes/cpu/addressings/indirect.js","nes/cpu/addressings/relative.js","nes/cpu/addressings/zeroPage.js","nes/cpu/constants/interrupts.js","nes/cpu/index.js","nes/cpu/instructions/arithmetic.js","nes/cpu/instructions/branching.js","nes/cpu/instructions/checks.js","nes/cpu/instructions/data.js","nes/cpu/instructions/index.js","nes/cpu/instructions/logical.js","nes/cpu/instructions/misc.js","nes/cpu/operations/arithmetic.js","nes/cpu/operations/branching.js","nes/cpu/operations/checks.js","nes/cpu/operations/data.js","nes/cpu/operations/index.js","nes/cpu/operations/logical.js","nes/cpu/operations/misc.js","nes/cpu/registers/FlagsRegister.js","nes/cpu/registers/Register.js","nes/cpu/registers/index.js","nes/helpers/Byte.js","nes/helpers/WithContext.js","nes/index.js","nes/memory/Bus.js","nes/memory/MemoryChunk.js","nes/memory/MemoryMirror.js","nes/memory/MemoryPadding.js","nes/memory/RewiredMemoryChunk.js","nes/memory/WithCompositeMemory.js","nes/memory/WithLittleEndian.js","nes/ppu/PPU.js","nes/ppu/PPUMemoryMap.js","nes/ppu/constants/palette.js","nes/ppu/index.js","nes/ppu/mirroring.js","nes/ppu/registers/LoopyAddress.js","nes/ppu/registers/LoopyRegister.js","nes/ppu/registers/OAMAddr.js","nes/ppu/registers/OAMDMA.js","nes/ppu/registers/OAMData.js","nes/ppu/registers/PPUAddr.js","nes/ppu/registers/PPUCtrl.js","nes/ppu/registers/PPUData.js","nes/ppu/registers/PPUMask.js","nes/ppu/registers/PPUScroll.js","nes/ppu/registers/PPUStatus.js","nes/ppu/registers/index.js","nes/ppu/renderers/_1_preLine.js","nes/ppu/renderers/_2_visibleLines.js","nes/ppu/renderers/_3_vBlankLine.js","nes/ppu/renderers/index.js","nes/ppu/renderers/renderBackground.js","nes/ppu/renderers/renderSprites.js","nes/ppu/renderers/tables/AttributeTable.js","nes/ppu/renderers/tables/FramePalette.js","nes/ppu/renderers/tables/NameTable.js","nes/ppu/renderers/tables/OAM.js","nes/ppu/renderers/tables/PatternTable.js","nes/ppu/renderers/tables/Sprite.js","nes/registers/InMemoryRegister.js","nes/registers/MixedInMemoryRegister.js","nes/registers/index.js","../webpack/bootstrap","../webpack/runtime/chunk loaded","../webpack/runtime/compat get default export","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/node module decorator","../webpack/runtime/publicPath","../webpack/runtime/importScripts chunk loading","../webpack/runtime/startup chunk dependencies","../webpack/startup"],"sourcesContent":["import config from \"../../nes/config\";\n\nconst SECOND = 1000;\n\nexport default class FrameTimer {\n\tconstructor(onFrame, onFps, fps = config.FPS) {\n\t\tthis.onFrame = onFrame;\n\t\tthis.onFps = onFps;\n\n\t\tthis._fps = fps;\n\t\tthis._interval = SECOND / fps;\n\t\tthis._lastTime = Date.now();\n\t\tthis._startTime = this._lastTime;\n\t\tthis._lastSecondTime = Date.now();\n\t\tthis._lastSecondFrames = 0;\n\t\tthis._isRunning = false;\n\t}\n\n\tstart() {\n\t\tthis._isRunning = true;\n\t\tthis._run();\n\t}\n\n\tstop() {\n\t\tthis._isRunning = false;\n\t\tcancelAnimationFrame(this._frameId);\n\t}\n\n\tcountNewFrame() {\n\t\tthis._lastSecondFrames++;\n\t}\n\n\t_run = () => {\n\t\tif (!this._isRunning) return;\n\t\tthis._frameId = requestAnimationFrame(this._run);\n\n\t\tconst now = Date.now();\n\t\tconst elapsedTime = now - this._lastTime;\n\n\t\tconst elapsedTimeSinceLastSecond = now - this._lastSecondTime;\n\t\tif (elapsedTimeSinceLastSecond > SECOND) {\n\t\t\tthis.onFps(this._lastSecondFrames);\n\n\t\t\tthis._lastSecondTime = Date.now();\n\t\t\tthis._lastSecondFrames = 0;\n\t\t}\n\n\t\tif (elapsedTime > this._interval) {\n\t\t\tthis._lastTime = now - (elapsedTime % this._interval);\n\t\t\tthis.onFrame();\n\t\t}\n\t};\n}\n","import NES from \"../../nes\";\nimport FrameTimer from \"./FrameTimer\";\nimport config from \"../../nes/config\";\nimport constants from \"../../nes/constants\";\n\n/**\n * An emulator instance running inside a Web Worker.\n * This contains the communication logic between `Emulator` and `webWorkerRunner`.\n */\nexport default class WebWorker {\n\tconstructor(postMessage) {\n\t\tthis.$postMessage = postMessage;\n\n\t\tthis.saveState = null;\n\t\tthis.isSaveStateRequested = false;\n\t\tthis.isLoadStateRequested = false;\n\t\tthis.wasSaveStateRequested = false;\n\t\tthis.wasLoadStateRequested = false;\n\t\tthis.isDebugging = false;\n\t\tthis.isDebugStepFrameRequested = false;\n\t\tthis.isDebugStepScanlineRequested = false;\n\n\t\tthis.availableSamples = 0;\n\t\tthis.samples = [];\n\n\t\tthis.nes = new NES(this.onFrame, this.onAudio);\n\t\tthis.frameTimer = new FrameTimer(\n\t\t\t() => {\n\t\t\t\tif (\n\t\t\t\t\tthis.isDebugging &&\n\t\t\t\t\t!this.isDebugStepFrameRequested &&\n\t\t\t\t\t!this.isDebugScanlineRequested\n\t\t\t\t) {\n\t\t\t\t\tthis.$postMessage(this.samples);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst isDebugScanlineRequested = this.isDebugScanlineRequested;\n\t\t\t\tthis.isDebugStepFrameRequested = false;\n\t\t\t\tthis.isDebugScanlineRequested = false;\n\n\t\t\t\tif (this.isSaveStateRequested && !this.wasSaveStateRequested) {\n\t\t\t\t\tthis.saveState = this.nes.getSaveState();\n\t\t\t\t\tthis.wasSaveStateRequested = true;\n\n\t\t\t\t\tthis.$postMessage({ id: \"saveState\", saveState: this.saveState });\n\t\t\t\t}\n\t\t\t\tif (\n\t\t\t\t\tthis.isLoadStateRequested &&\n\t\t\t\t\t!this.wasLoadStateRequested &&\n\t\t\t\t\tthis.saveState != null\n\t\t\t\t) {\n\t\t\t\t\tthis.nes.setSaveState(this.saveState);\n\t\t\t\t\tthis.wasLoadStateRequested = true;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tif (isDebugScanlineRequested) {\n\t\t\t\t\t\tthis.nes.scanline();\n\t\t\t\t\t} else if (config.SYNC_TO_AUDIO) {\n\t\t\t\t\t\tconst requestedSamples = constants.APU_SAMPLE_RATE / config.FPS;\n\t\t\t\t\t\tconst newBufferSize = this.availableSamples + requestedSamples;\n\t\t\t\t\t\tif (newBufferSize <= config.AUDIO_BUFFER_LIMIT)\n\t\t\t\t\t\t\tthis.nes.samples(requestedSamples);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.nes.frame();\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.$postMessage(this.samples);\n\t\t\t\t\tthis.samples = [];\n\t\t\t\t} catch (error) {\n\t\t\t\t\tthis.$postMessage({ id: \"error\", error });\n\t\t\t\t}\n\t\t\t},\n\t\t\t(fps) => {\n\t\t\t\tthis.$postMessage({ id: \"fps\", fps });\n\t\t\t}\n\t\t);\n\t}\n\n\tonFrame = (frameBuffer) => {\n\t\tthis.frameTimer.countNewFrame();\n\t\tthis.$postMessage(frameBuffer);\n\t};\n\n\tonAudio = (sample) => {\n\t\tthis.samples.push(sample);\n\t};\n\n\tterminate = () => {\n\t\tthis.frameTimer.stop();\n\t};\n\n\tpostMessage = (data) => {\n\t\tthis.$onMessage({ data });\n\t};\n\n\t$onMessage = ({ data }) => {\n\t\ttry {\n\t\t\tif (data instanceof Uint8Array) {\n\t\t\t\t// rom bytes\n\t\t\t\tthis.nes.load(data);\n\t\t\t\tthis.frameTimer.start();\n\t\t\t} else if (Array.isArray(data)) {\n\t\t\t\t// state packet\n\n\t\t\t\t// -> controller input\n\t\t\t\tfor (let i = 0; i < 2; i++) {\n\t\t\t\t\tif (i === 0) {\n\t\t\t\t\t\tthis.isSaveStateRequested = data[i].$saveState;\n\t\t\t\t\t\tthis.isLoadStateRequested = data[i].$loadState;\n\t\t\t\t\t\tif (!data[i].$saveState) this.wasSaveStateRequested = false;\n\t\t\t\t\t\tif (!data[i].$loadState) this.wasLoadStateRequested = false;\n\t\t\t\t\t\tif (data[i].$startDebugging) this.isDebugging = true;\n\t\t\t\t\t\tif (data[i].$stopDebugging) this.isDebugging = false;\n\t\t\t\t\t\tif (data[i].$debugStepFrame) this.isDebugStepFrameRequested = true;\n\t\t\t\t\t\tif (data[i].$debugStepScanline)\n\t\t\t\t\t\t\tthis.isDebugScanlineRequested = true;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (let button in data[i])\n\t\t\t\t\t\tif (button[0] !== \"$\")\n\t\t\t\t\t\t\tthis.nes.setButton(i + 1, button, data[i][button]);\n\t\t\t\t}\n\n\t\t\t\t// -> available samples\n\t\t\t\tthis.availableSamples = data[2];\n\t\t\t} else {\n\t\t\t\t// metadata\n\t\t\t\tif (data.id === \"saveState\") this.saveState = data.saveState;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tthis.$postMessage({ id: \"error\", error });\n\t\t}\n\t};\n}\n","const WebWorker = require(\"./WebWorker\").default;\nconst webWorker = new WebWorker((msg) => postMessage(msg));\n\nonmessage = function(message) {\n\twebWorker.$onMessage(message);\n};\n","import CPU from \"./cpu\";\nimport PPU from \"./ppu\";\nimport APU from \"./apu\";\nimport { CPUBus } from \"./memory/Bus\";\nimport Cartridge from \"./cartridge\";\nimport Controller from \"./controller\";\nimport constants from \"./constants\";\nimport { WithContext } from \"./helpers\";\n\n/** The NES Emulator. */\nexport default class NES {\n\tconstructor(onFrame = () => {}, onSample = () => {}, logger = null) {\n\t\tWithContext.apply(this);\n\n\t\tthis.onFrame = onFrame;\n\t\tthis.onSample = (sample) => {\n\t\t\tthis.sampleCount++;\n\t\t\tonSample(sample);\n\t\t};\n\t\tthis.logger = logger;\n\n\t\tthis.cpu = new CPU();\n\t\tthis.ppu = new PPU();\n\t\tthis.apu = new APU();\n\n\t\tthis.sampleCount = 0;\n\t\tthis.pendingPPUCycles = 0;\n\t\tthis.pendingAPUCycles = 0;\n\t}\n\n\t/** Loads a `rom` as the current cartridge. */\n\tload(rom, saveFileBytes = []) {\n\t\tconst cartridge = new Cartridge(rom);\n\t\tconst mapper = cartridge.createMapper();\n\n\t\tconst controllerPorts = Controller.createPorts();\n\n\t\tthis.loadContext({\n\t\t\tnes: this,\n\t\t\tlogger: this.logger,\n\n\t\t\tcpu: this.cpu,\n\t\t\tppu: this.ppu,\n\t\t\tapu: this.apu,\n\n\t\t\tmemoryBus: {\n\t\t\t\tcpu: new CPUBus(mapper)\n\t\t\t},\n\n\t\t\tcartridge,\n\t\t\tmapper,\n\n\t\t\tcontrollers: [\n\t\t\t\tnew Controller(controllerPorts.primary),\n\t\t\t\tnew Controller(controllerPorts.secondary)\n\t\t\t],\n\n\t\t\tinDebugMode(action) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.isDebugging = true;\n\t\t\t\t\treturn action();\n\t\t\t\t} finally {\n\t\t\t\t\tthis.isDebugging = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tthis._setSaveFile(saveFileBytes);\n\t}\n\n\t/** Runs the emulation for a whole video frame. */\n\tframe() {\n\t\tthis.requireContext();\n\n\t\tconst currentFrame = this.ppu.frame;\n\t\twhile (this.ppu.frame === currentFrame) this.step();\n\t}\n\n\t/** Runs the emulation until the audio system generates `requestedSamples`. */\n\tsamples(requestedSamples) {\n\t\tthis.requireContext();\n\n\t\tthis.sampleCount = 0;\n\n\t\twhile (this.sampleCount < requestedSamples) this.step();\n\t}\n\n\t/** Runs the emulation until the next scanline. */\n\tscanline() {\n\t\tthis.requireContext();\n\n\t\tconst currentScanline = this.ppu.scanline;\n\t\twhile (this.ppu.scanline === currentScanline) this.step();\n\t\tfor (let i = 0; i < 256; i++)\n\t\t\tthis.ppu.plot(i, this.ppu.scanline, 0xff0000ff);\n\t\tthis.onFrame(this.ppu.frameBuffer);\n\t}\n\n\t/** Executes a step in the emulation (1 CPU instruction). */\n\tstep() {\n\t\tlet cpuCycles = this.cpu.step();\n\t\tcpuCycles = this._clockPPU(cpuCycles);\n\t\tthis._clockAPU(cpuCycles);\n\t}\n\n\t/** Sets the `button` state of `player` to `isPressed`. */\n\tsetButton(player, button, isPressed) {\n\t\tthis.requireContext();\n\t\tif (player !== 1 && player !== 2)\n\t\t\tthrow new Error(`Invalid player: ${player}.`);\n\n\t\tthis.context.controllers[player - 1].update(button, isPressed);\n\t}\n\n\t/** Sets all buttons of `player` to a non-pressed state. */\n\tclearButtons(player) {\n\t\tthis.requireContext();\n\t\tif (player !== 1 && player !== 2)\n\t\t\tthrow new Error(`Invalid player: ${player}.`);\n\n\t\tthis.context.controllers[player - 1].clear();\n\t}\n\n\t/** Returns the PRG RAM bytes, or null. */\n\tgetSaveFile() {\n\t\tthis.requireContext();\n\t\tconst { prgRam } = this.context.mapper;\n\t\tif (!prgRam) return null;\n\n\t\tconst bytes = [];\n\t\tfor (let i = 0; i < prgRam.memorySize; i++) bytes[i] = prgRam.readAt(i);\n\n\t\treturn bytes;\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\tthis.requireContext();\n\n\t\treturn {\n\t\t\tcpu: this.cpu.getSaveState(),\n\t\t\tppu: this.ppu.getSaveState(),\n\t\t\tapu: this.apu.getSaveState(),\n\t\t\tmapper: this.context.mapper.getSaveState(),\n\t\t\tsaveFile: this.getSaveFile()\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.requireContext();\n\n\t\tthis.cpu.setSaveState(saveState.cpu);\n\t\tthis.ppu.setSaveState(saveState.ppu);\n\t\tthis.apu.setSaveState(saveState.apu);\n\t\tthis.context.mapper.setSaveState(saveState.mapper);\n\t\tthis._setSaveFile(saveState.saveFile);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.pendingPPUCycles = 0;\n\t\tthis.pendingAPUCycles = 0;\n\n\t\tcontext.mapper.loadContext(context);\n\t\tthis.ppu.loadContext(context);\n\t\tthis.apu.loadContext(context);\n\t\tthis.cpu.loadContext(context);\n\t}\n\n\t_clockPPU(cpuCycles) {\n\t\tlet unitCycles =\n\t\t\tthis.pendingPPUCycles + cpuCycles * constants.PPU_STEPS_PER_CPU_CYCLE;\n\t\tthis.pendingPPUCycles = 0;\n\n\t\tthis.ppu.step(unitCycles, this.onFrame, (interrupt) => {\n\t\t\tconst newCPUCycles = this.cpu.interrupt(interrupt);\n\t\t\tcpuCycles += newCPUCycles;\n\t\t\tthis.pendingPPUCycles += newCPUCycles * constants.PPU_STEPS_PER_CPU_CYCLE;\n\t\t});\n\n\t\treturn cpuCycles;\n\t}\n\n\t_clockAPU(cpuCycles) {\n\t\tlet unitCycles =\n\t\t\tthis.pendingAPUCycles + cpuCycles * constants.APU_STEPS_PER_CPU_CYCLE;\n\n\t\twhile (unitCycles >= 1) {\n\t\t\tconst interrupt = this.apu.step(this.onSample);\n\t\t\tunitCycles--;\n\n\t\t\tif (interrupt != null) {\n\t\t\t\tconst newCPUCycles = this.cpu.interrupt(interrupt);\n\t\t\t\tunitCycles += newCPUCycles * constants.APU_STEPS_PER_CPU_CYCLE;\n\t\t\t\tthis.pendingPPUCycles +=\n\t\t\t\t\tnewCPUCycles * constants.PPU_STEPS_PER_CPU_CYCLE;\n\t\t\t}\n\t\t}\n\n\t\tthis.pendingAPUCycles = unitCycles;\n\t}\n\n\t_setSaveFile(prgRamBytes) {\n\t\tconst { prgRam } = this.context.mapper;\n\t\tif (!prgRam) return;\n\n\t\tfor (let i = 0; i < prgRamBytes.length; i++)\n\t\t\tprgRam.writeAt(i, prgRamBytes[i]);\n\t}\n}\n","import { APURegisterSegment } from \"./registers\";\nimport {\n\tPulseChannel,\n\tTriangleChannel,\n\tNoiseChannel,\n\tDMCChannel\n} from \"./channels\";\nimport frameClock from \"./frameClock\";\nimport { interrupts } from \"../cpu/constants\";\nimport config from \"../config\";\nimport constants from \"../constants\";\nimport { WithContext } from \"../helpers\";\n\nconst STEPS_PER_SAMPLE = Math.floor(\n\tconstants.FREQ_PPU_HZ /\n\t\tconstants.APU_HIGH_FREQUENCY_CYCLES /\n\t\tconstants.APU_SAMPLE_RATE\n);\n\n/** The Audio Processing Unit. It generates audio samples. */\nexport default class APU {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.time = 0;\n\t\tthis.sampleCounter = 0;\n\t\tthis.frameClockCounter = 0;\n\t\tthis.sample = 0;\n\t\tthis.frameIRQFlag = false;\n\n\t\tthis.registers = null;\n\n\t\tthis.channels = {\n\t\t\tpulses: [\n\t\t\t\tnew PulseChannel(0, \"enablePulse1\"),\n\t\t\t\tnew PulseChannel(1, \"enablePulse2\")\n\t\t\t],\n\t\t\ttriangle: new TriangleChannel(),\n\t\t\tnoise: new NoiseChannel(),\n\t\t\tdmc: new DMCChannel()\n\t\t};\n\n\t\tthis._onQuarter = this._onQuarter.bind(this);\n\t\tthis._onHalf = this._onHalf.bind(this);\n\t\tthis._onEnd = this._onEnd.bind(this);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.registers = new APURegisterSegment(context);\n\n\t\tthis.channels.pulses[0].loadContext(context);\n\t\tthis.channels.pulses[1].loadContext(context);\n\t\tthis.channels.triangle.loadContext(context);\n\t\tthis.channels.noise.loadContext(context);\n\t\tthis.channels.dmc.loadContext(context);\n\n\t\tthis._reset();\n\t}\n\n\t/**\n\t * Executes the next step (1 step = 1 APU cycle).\n\t * Returns an interrupt or null.\n\t * It calls `onSample` when it generates a new sample.\n\t */\n\tstep(onSample) {\n\t\tlet irq = null;\n\t\tconst onIRQ = (type) => {\n\t\t\tif (type === \"frame\") {\n\t\t\t\tif (!this.registers.apuFrameCounter.interruptInhibitFlag) {\n\t\t\t\t\tthis.frameIRQFlag = true;\n\t\t\t\t\tirq = interrupts.IRQ;\n\t\t\t\t}\n\t\t\t} else irq = interrupts.IRQ;\n\t\t};\n\n\t\tthis._onNewCycle(onIRQ);\n\n\t\t// (frequency sweepers change at high frequency)\n\t\tfor (let i = 0; i < constants.APU_HIGH_FREQUENCY_CYCLES; i++) {\n\t\t\tthis.channels.pulses[0].step();\n\t\t\tthis.channels.pulses[1].step();\n\t\t}\n\n\t\tthis._incrementCounters();\n\n\t\tif (this.sampleCounter === 0) onSample(this.sample);\n\n\t\treturn irq;\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\ttime: this.time,\n\t\t\tsampleCounter: this.sampleCounter,\n\t\t\tframeClockCounter: this.frameClockCounter,\n\t\t\tsample: this.sample,\n\t\t\tframeIRQFlag: this.frameIRQFlag,\n\t\t\tpulse1: this.channels.pulses[0].getSaveState(),\n\t\t\tpulse2: this.channels.pulses[1].getSaveState(),\n\t\t\ttriangle: this.channels.triangle.getSaveState(),\n\t\t\tnoise: this.channels.noise.getSaveState(),\n\t\t\tdmc: this.channels.dmc.getSaveState()\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.time = saveState.time;\n\t\tthis.sampleCounter = saveState.sampleCounter;\n\t\tthis.frameClockCounter = saveState.frameClockCounter;\n\t\tthis.sample = saveState.sample;\n\t\tthis.frameIRQFlag = saveState.frameIRQFlag;\n\t\tthis.channels.pulses[0].setSaveState(saveState.pulse1);\n\t\tthis.channels.pulses[1].setSaveState(saveState.pulse2);\n\t\tthis.channels.triangle.setSaveState(saveState.triangle);\n\t\tthis.channels.noise.setSaveState(saveState.noise);\n\t\tthis.channels.dmc.setSaveState(saveState.dmc);\n\t}\n\n\t_onNewCycle(onIRQ) {\n\t\tthis.channels.pulses[0].cycle();\n\t\tthis.channels.pulses[1].cycle();\n\n\t\tframeClock.measure(\n\t\t\tthis.frameClockCounter,\n\t\t\tthis.registers.apuFrameCounter.use5StepSequencer,\n\t\t\tonIRQ,\n\t\t\tthis._onQuarter,\n\t\t\tthis._onHalf,\n\t\t\tthis._onEnd\n\t\t);\n\n\t\tconst pulse1 = this.channels.pulses[0].sample(); // -1 ~ 1\n\t\tconst pulse2 = this.channels.pulses[1].sample(); // -1 ~ 1\n\t\tconst triangle = this.channels.triangle.sample(); // -1 ~ 1\n\t\tconst noise = this.channels.noise.sample(); // 0 ~ 15\n\t\tconst dmc = this.channels.dmc.sample(onIRQ); // 0 ~ 127\n\n\t\t// (APU mixer from nesdev)\n\t\tconst normalizedPulse1 = Math.floor((pulse1 + 1) * 7.5); // 0 ~ 15\n\t\tconst normalizedPulse2 = Math.floor((pulse2 + 1) * 7.5); // 0 ~ 15\n\t\tconst normalizedTriangle = Math.floor((triangle + 1) * 7.5); // 0 ~ 15\n\t\tconst pulseOut = 0.00752 * (normalizedPulse1 + normalizedPulse2);\n\t\tconst tndOut =\n\t\t\t0.00851 * normalizedTriangle + 0.00494 * noise + 0.00335 * dmc;\n\n\t\tthis.sample = config.BASE_VOLUME * (pulseOut + tndOut);\n\t}\n\n\t_onQuarter() {\n\t\t// (quarter frame \"beats\" adjust the volume envelope and triangle's linear length counter)\n\n\t\tthis.channels.pulses[0].quarterBeat();\n\t\tthis.channels.pulses[1].quarterBeat();\n\t\tthis.channels.triangle.quarterBeat();\n\t\tthis.channels.noise.quarterBeat();\n\t}\n\n\t_onHalf() {\n\t\t// (half frame \"beats\" adjust the note length and frequency sweepers)\n\n\t\tthis.channels.pulses[0].halfBeat();\n\t\tthis.channels.pulses[1].halfBeat();\n\t\tthis.channels.triangle.halfBeat();\n\t\tthis.channels.noise.halfBeat();\n\t}\n\n\t_onEnd() {\n\t\tthis.frameClockCounter = 0;\n\t}\n\n\t_incrementCounters() {\n\t\tthis.sampleCounter++;\n\t\tthis.frameClockCounter++;\n\n\t\tif (this.sampleCounter === STEPS_PER_SAMPLE) {\n\t\t\tthis.sampleCounter = 0;\n\t\t\tthis.time += 1 / constants.APU_SAMPLE_RATE;\n\t\t}\n\t}\n\n\t_reset() {\n\t\tthis.time = 0;\n\t\tthis.sampleCounter = 0;\n\t\tthis.frameClockCounter = 0;\n\t\tthis.sample = 0;\n\t\tthis.frameIRQFlag = false;\n\t}\n}\n","import config from \"../../config\";\nimport { WithContext, Byte } from \"../../helpers\";\n\n/**\n * The delta modulation channel (DMC) can output 1-bit delta-encoded samples (DPCM) or can\n * have its 7-bit counter directly loaded (PCM). This allows flexible manual sample playback.\n *\n * DPCM samples are stored as a stream of 1-bit deltas that control the 7-bit PCM counter that\n * the channel outputs. A bit of 1 will increment the counter, 0 will decrement, and it will clamp\n * rather than overflow if the 7-bit range is exceeded.\n */\nexport default class DMCChannel {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.outputSample = 0;\n\n\t\t// DPCM:\n\t\tthis.startFlag = false;\n\t\tthis.isUsingDPCM = false;\n\t\tthis.buffer = null;\n\t\tthis.cursorByte = 0;\n\t\tthis.cursorBit = 0;\n\t\tthis.dividerCount = 0;\n\t\tthis.samplePeriod = 0;\n\t\tthis.sampleAddress = 0;\n\t\tthis.sampleLength = 0;\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.registers = context.apu.registers.dmc;\n\t}\n\n\t/** Generates a new sample. It calls `onIRQ` when a DPCM sample finishes (if IRQ flag is on). */\n\tsample(onIRQ) {\n\t\t// (the output level is sent to the mixer whether the channel is enabled or not)\n\n\t\tif (this.startFlag) {\n\t\t\tconst samplePeriod = this.registers.control.dpcmPeriod;\n\n\t\t\tthis.startFlag = false;\n\t\t\tthis.isUsingDPCM = true;\n\t\t\tthis.cursorByte = -1;\n\t\t\tthis.cursorBit = 0;\n\t\t\tthis.dividerCount = samplePeriod - 1;\n\t\t\tthis.samplePeriod = samplePeriod;\n\t\t\tthis.sampleAddress = this.registers.sampleAddress.absoluteAddress;\n\t\t\tthis.sampleLength = this.registers.sampleLength.lengthInBytes;\n\t\t\tthis.outputSample = 0;\n\t\t}\n\n\t\treturn (\n\t\t\t(this.isUsingDPCM ? this._processDPCM(onIRQ) : this.outputSample) *\n\t\t\tconfig.DMC_CHANNEL_VOLUME\n\t\t);\n\t}\n\n\t/** Starts auto-playing a sample from `DMCSampleAddress`. */\n\tstartDPCM() {\n\t\tthis.startFlag = true;\n\t}\n\n\t/** Returns the remaining bytes of the current DPCM sample. */\n\tget remainingBytes() {\n\t\tif (!this.isUsingDPCM) return 0;\n\n\t\treturn this.sampleLength - this.cursorByte;\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\toutputSample: this.outputSample,\n\t\t\tstartFlag: this.startFlag,\n\t\t\tisUsingDPCM: this.isUsingDPCM,\n\t\t\tbuffer: this.buffer,\n\t\t\tcursorByte: this.cursorByte,\n\t\t\tcursorBit: this.cursorBit,\n\t\t\tdividerCount: this.dividerCount,\n\t\t\tsamplePeriod: this.samplePeriod,\n\t\t\tsampleAddress: this.sampleAddress,\n\t\t\tsampleLength: this.sampleLength\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.outputSample = saveState.outputSample;\n\t\tthis.startFlag = saveState.startFlag;\n\t\tthis.isUsingDPCM = saveState.isUsingDPCM;\n\t\tthis.buffer = saveState.buffer;\n\t\tthis.cursorByte = saveState.cursorByte;\n\t\tthis.cursorBit = saveState.cursorBit;\n\t\tthis.dividerCount = saveState.dividerCount;\n\t\tthis.samplePeriod = saveState.samplePeriod;\n\t\tthis.sampleAddress = saveState.sampleAddress;\n\t\tthis.sampleLength = saveState.sampleLength;\n\t}\n\n\t/** Returns whether the channel is enabled or not. */\n\tget isEnabled() {\n\t\treturn this.context.apu.registers.apuControl.enableDMC;\n\t}\n\n\t_processDPCM(onIRQ) {\n\t\tthis.dividerCount++;\n\t\tif (this.dividerCount >= this.samplePeriod) this.dividerCount = 0;\n\t\telse return this.outputSample;\n\n\t\tconst hasSampleFinished = this.cursorByte === this.sampleLength;\n\t\tconst hasByteFinished = this.cursorBit === 8;\n\n\t\tif (this.buffer === null || hasByteFinished) {\n\t\t\tthis.cursorByte++;\n\t\t\tthis.cursorBit = 0;\n\n\t\t\tif (hasSampleFinished) {\n\t\t\t\tthis.isUsingDPCM = false;\n\t\t\t\tthis.buffer = null;\n\t\t\t\tif (this.registers.control.irqEnable) onIRQ(\"dmc\");\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tlet address = this.sampleAddress + this.cursorByte;\n\t\t\tif (address > 0xffff) {\n\t\t\t\t// (if it exceeds $FFFF, it is wrapped around to $8000)\n\t\t\t\taddress = 0x8000 + (address % 0xffff);\n\t\t\t}\n\t\t\tthis.buffer = this.context.cpu.memory.readAt(address);\n\t\t}\n\n\t\tconst variation = Byte.getBit(this.buffer, this.cursorBit) ? 1 : -1;\n\t\tthis.outputSample += variation;\n\n\t\tthis.cursorBit++;\n\t\tif (hasSampleFinished && hasByteFinished && this.registers.control.loop)\n\t\t\tthis.startDPCM();\n\n\t\treturn this.outputSample;\n\t}\n}\n","import { LengthCounter, VolumeEnvelope } from \"../synthesis\";\nimport config from \"../../config\";\nimport { WithContext, Byte } from \"../../helpers\";\n\n/**\n * The noise channel produces noise with a pseudo-random bit generator. It supports:\n * - note lengths\n * - volume envelope / constant volume\n */\nexport default class NoiseChannel {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.lengthCounter = new LengthCounter();\n\t\tthis.volumeEnvelope = new VolumeEnvelope();\n\n\t\tthis.shift = 0b1; // (the shift register is 15 bits wide)\n\t\tthis.dividerCount = 0;\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.registers = context.apu.registers.noise;\n\t}\n\n\t/** Generates a new sample. */\n\tsample() {\n\t\tif (!this.isEnabled) return 0;\n\n\t\tconst volume = this.registers.control.constantVolume\n\t\t\t? this.registers.control.volumeOrEnvelopePeriod\n\t\t\t: this.volumeEnvelope.volume;\n\n\t\tthis._processNoise();\n\n\t\t/*\n\t\t * The mixer receives **the volume** except when\n\t\t * - Bit 0 of the shift register is set, or\n\t\t * - The length counter is zero\n\t\t */\n\t\treturn !this.lengthCounter.didFinish && !Byte.getBit(this.shift, 0)\n\t\t\t? volume * config.NOISE_CHANNEL_VOLUME\n\t\t\t: 0;\n\t}\n\n\t/** Updates the envelope. */\n\tquarterBeat() {\n\t\tthis.volumeEnvelope.clock(\n\t\t\tthis.registers.control.volumeOrEnvelopePeriod,\n\t\t\tthis.registers.control.envelopeLoopOrLengthCounterHalt\n\t\t);\n\t}\n\n\t/** Updates length counter. */\n\thalfBeat() {\n\t\tthis.lengthCounter.clock(\n\t\t\tthis.isEnabled,\n\t\t\tthis.registers.control.envelopeLoopOrLengthCounterHalt\n\t\t);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tlengthCounter: this.lengthCounter.getSaveState(),\n\t\t\tvolumeEnvelope: this.volumeEnvelope.getSaveState(),\n\t\t\tshift: this.shift,\n\t\t\tdividerCount: this.dividerCount\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.lengthCounter.setSaveState(saveState.lengthCounter);\n\t\tthis.volumeEnvelope.setSaveState(saveState.volumeEnvelope);\n\t\tthis.shift = saveState.shift;\n\t\tthis.dividerCount = saveState.dividerCount;\n\t}\n\n\t/** Returns whether the channel is enabled or not. */\n\tget isEnabled() {\n\t\treturn this.context.apu.registers.apuControl.enableNoise;\n\t}\n\n\t_processNoise() {\n\t\tthis.dividerCount++;\n\t\tif (this.dividerCount >= this.registers.form.period) this.dividerCount = 0;\n\t\telse return;\n\n\t\t/**\n\t\t * When the timer clocks the shift register, the following actions occur in order:\n\t\t * 1. Feedback is calculated as the exclusive-OR of bit 0 and one other bit: bit 6 if Mode flag is set, otherwise bit 1.\n\t\t * 2. The shift register is shifted right by one bit.\n\t\t * 3. Bit 14, the leftmost bit, is set to the feedback calculated earlier.\n\t\t */\n\n\t\tconst bitPosition = this.registers.form.loop ? 6 : 1;\n\n\t\tconst bit = Byte.getBit(this.shift, bitPosition);\n\t\tconst feedback = Byte.getBit(this.shift, 0) ^ bit;\n\n\t\tthis.shift = (this.shift >> 1) | (feedback << 14);\n\t}\n}\n","import {\n\tPulseOscillator,\n\tLengthCounter,\n\tVolumeEnvelope,\n\tFrequencySweeper\n} from \"../synthesis\";\nimport constants from \"../../constants\";\nimport { WithContext, Byte } from \"../../helpers\";\n\n/**\n * The pulse channels produce a variable-width pulse signal. They support:\n * - different duty cycles\n * - note lengths\n * - volume envelope / constant volume\n * - frequency sweeping\n */\nexport default class PulseChannel {\n\tconstructor(id, enableFlagName) {\n\t\tWithContext.apply(this);\n\n\t\tthis.id = id;\n\t\tthis.enableFlagName = enableFlagName;\n\n\t\tthis.oscillator = new PulseOscillator();\n\t\tthis.lengthCounter = new LengthCounter();\n\t\tthis.volumeEnvelope = new VolumeEnvelope();\n\t\tthis.frequencySweeper = new FrequencySweeper();\n\t\tthis.timer = 0;\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.registers = context.apu.registers.pulses[this.id];\n\t}\n\n\t/** Generates a new sample. */\n\tsample() {\n\t\tconst { apu } = this.context;\n\t\tif (!this.isEnabled) return 0;\n\n\t\tthis.oscillator.dutyCycle = this.registers.control.dutyCycle;\n\t\tthis.oscillator.frequency = constants.FREQ_CPU_HZ / (16 * (this.timer + 1));\n\t\t// from nesdev: f = fCPU / (16 * (t + 1))\n\n\t\tconst volume = this.registers.control.constantVolume\n\t\t\t? this.registers.control.volumeOrEnvelopePeriod\n\t\t\t: this.volumeEnvelope.volume;\n\t\tthis.oscillator.amplitude = volume / constants.APU_MAX_VOLUME;\n\n\t\treturn !this.lengthCounter.didFinish && !this.frequencySweeper.mute\n\t\t\t? this.oscillator.sample(apu.time)\n\t\t\t: 0;\n\t}\n\n\t/** Updates the full timer value from the registers. */\n\tupdateTimer() {\n\t\tthis.timer = Byte.to16Bit(\n\t\t\tthis.registers.lclTimerHigh.timerHigh,\n\t\t\tthis.registers.timerLow.value\n\t\t);\n\t}\n\n\t/** Updates the sweeper. */\n\tstep() {\n\t\tthis.frequencySweeper.track(this);\n\t}\n\n\t/** Updates the timer (if sweep is not active). */\n\tcycle() {\n\t\tif (this.registers.sweep.enabledFlag) return;\n\n\t\tthis.updateTimer();\n\t}\n\n\t/** Updates the envelope. */\n\tquarterBeat() {\n\t\tthis.volumeEnvelope.clock(\n\t\t\tthis.registers.control.volumeOrEnvelopePeriod,\n\t\t\tthis.registers.control.envelopeLoopOrLengthCounterHalt\n\t\t);\n\t}\n\n\t/** Updates length counter and sweep values. */\n\thalfBeat() {\n\t\tthis.lengthCounter.clock(\n\t\t\tthis.isEnabled,\n\t\t\tthis.registers.control.envelopeLoopOrLengthCounterHalt\n\t\t);\n\t\tthis.frequencySweeper.clock(this);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\toscillator: this.oscillator.getSaveState(),\n\t\t\tlengthCounter: this.lengthCounter.getSaveState(),\n\t\t\tvolumeEnvelope: this.volumeEnvelope.getSaveState(),\n\t\t\tfrequencySweeper: this.frequencySweeper.getSaveState(),\n\t\t\ttimer: this.timer\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.oscillator.setSaveState(saveState.oscillator);\n\t\tthis.lengthCounter.setSaveState(saveState.lengthCounter);\n\t\tthis.volumeEnvelope.setSaveState(saveState.volumeEnvelope);\n\t\tthis.frequencySweeper.setSaveState(saveState.frequencySweeper);\n\t\tthis.timer = saveState.timer;\n\t}\n\n\t/** Returns whether the channel is enabled or not. */\n\tget isEnabled() {\n\t\treturn this.context.apu.registers.apuControl[this.enableFlagName];\n\t}\n}\n","import { TriangleOscillator, LengthCounter } from \"../synthesis\";\nimport constants from \"../../constants\";\nimport { WithContext, Byte } from \"../../helpers\";\n\n/**\n * The triangle channel produces a quantized triangle wave. It supports:\n * - note lengths\n * - an extra high-resolution (\"linear\") length counter\n */\nexport default class TriangleChannel {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.oscillator = new TriangleOscillator();\n\t\tthis.lengthCounter = new LengthCounter();\n\t\tthis.linearLengthCounter = new LengthCounter();\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.registers = context.apu.registers.triangle;\n\t}\n\n\t/** Generates a new sample. */\n\tsample() {\n\t\tconst { apu } = this.context;\n\t\tif (!this.isEnabled) return 0;\n\n\t\tconst timer = Byte.to16Bit(\n\t\t\tthis.registers.lclTimerHigh.timerHigh,\n\t\t\tthis.registers.timerLow.value\n\t\t);\n\n\t\tthis.oscillator.frequency = constants.FREQ_CPU_HZ / (16 * (timer + 1)) / 2;\n\t\t// from nesdev: f = fCPU / (16 * (t + 1))\n\t\t// (the pitch is one octave below the pulse channels with an equivalent timer value)\n\t\t// (i.e. use the formula above but divide the resulting frequency by two).\n\n\t\treturn !this.lengthCounter.didFinish && !this.linearLengthCounter.didFinish\n\t\t\t? this.oscillator.sample(apu.time)\n\t\t\t: 0;\n\t}\n\n\t/** Updates linear length counter. */\n\tquarterBeat() {\n\t\tthis.linearLengthCounter.clock(\n\t\t\tthis.isEnabled,\n\t\t\tthis.registers.linearLCL.halt\n\t\t);\n\t}\n\n\t/** Updates length counter. */\n\thalfBeat() {\n\t\tthis.lengthCounter.clock(this.isEnabled, this.registers.linearLCL.halt);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\toscillator: this.oscillator.getSaveState(),\n\t\t\tlengthCounter: this.lengthCounter.getSaveState(),\n\t\t\tlinearLengthCounter: this.linearLengthCounter.getSaveState()\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.oscillator.setSaveState(saveState.oscillator);\n\t\tthis.lengthCounter.setSaveState(saveState.lengthCounter);\n\t\tthis.linearLengthCounter.setSaveState(saveState.linearLengthCounter);\n\t}\n\n\t/** Returns whether the channel is enabled or not. */\n\tget isEnabled() {\n\t\treturn this.context.apu.registers.apuControl.enableTriangle;\n\t}\n}\n","/** A list of all DPCM periods. The `DMCControl` register uses it to assign sample rates. */\nexport default [\n\t214,\n\t190,\n\t170,\n\t160,\n\t143,\n\t127,\n\t113,\n\t107,\n\t95,\n\t80,\n\t71,\n\t64,\n\t53,\n\t42,\n\t36,\n\t27\n];\n","/** Length counter table. Registers use its values to initialize length counters (LCL). */\nexport default [\n\t10,\n\t254,\n\t20,\n\t2,\n\t40,\n\t4,\n\t80,\n\t6,\n\t160,\n\t8,\n\t60,\n\t10,\n\t14,\n\t12,\n\t26,\n\t14,\n\t12,\n\t16,\n\t24,\n\t18,\n\t48,\n\t20,\n\t96,\n\t22,\n\t192,\n\t24,\n\t72,\n\t26,\n\t16,\n\t28,\n\t32,\n\t30\n];\n","/** A list of all noise periods. The `NoiseForm` register uses it to assign divider rates. */\nexport default [\n\t4,\n\t8,\n\t16,\n\t32,\n\t64,\n\t96,\n\t128,\n\t160,\n\t202,\n\t254,\n\t380,\n\t508,\n\t762,\n\t1016,\n\t2034,\n\t4068\n];\n","const QUARTERS_4_STEP = [3729, 7457, 11186, 14916];\nconst QUARTERS_5_STEP = [3729, 7457, 11186, 18641];\n\n/** The NES APU frame counter (or frame sequencer) generates low-frequency clocks for the channels. */\nexport default {\n\tmeasure(\n\t\tframeClockCounter,\n\t\tuse5StepSequencer,\n\t\tonIRQ,\n\t\tonQuarter,\n\t\tonHalf,\n\t\tonEnd\n\t) {\n\t\tconst quarters = use5StepSequencer ? QUARTERS_5_STEP : QUARTERS_4_STEP;\n\n\t\tconst isQuarter =\n\t\t\tframeClockCounter === quarters[0] ||\n\t\t\tframeClockCounter === quarters[1] ||\n\t\t\tframeClockCounter === quarters[2] ||\n\t\t\tframeClockCounter === quarters[3];\n\t\tconst isHalf =\n\t\t\tframeClockCounter === quarters[1] || frameClockCounter === quarters[3];\n\t\tconst isEnd = frameClockCounter === quarters[3];\n\n\t\tif (isQuarter) onQuarter();\n\t\tif (isHalf) onHalf();\n\t\tif (isEnd) {\n\t\t\tonEnd();\n\t\t\tif (!use5StepSequencer) onIRQ(\"frame\");\n\t\t}\n\t}\n};\n","import APU from \"./APU\";\n\nexport default APU;\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Enables or disables APU channels. */\nexport default class APUControl extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"enablePulse1\", 0)\n\t\t\t.addReadOnlyField(\"enablePulse2\", 1)\n\t\t\t.addReadOnlyField(\"enableTriangle\", 2)\n\t\t\t.addReadOnlyField(\"enableNoise\", 3)\n\t\t\t.addReadOnlyField(\"enableDMC\", 4);\n\t}\n\n\t/** When a channel is disabled, it resets its length counters. */\n\twriteAt(__, byte) {\n\t\tconst {\n\t\t\tenablePulse1,\n\t\t\tenablePulse2,\n\t\t\tenableTriangle,\n\t\t\tenableNoise,\n\t\t\tenableDMC\n\t\t} = this;\n\t\tconst { channels } = this.context.apu;\n\n\t\tthis.setValue(byte);\n\n\t\tif (!this.enablePulse1 && enablePulse1)\n\t\t\tchannels.pulses[0].lengthCounter.counter = 0;\n\t\tif (!this.enablePulse2 && enablePulse2)\n\t\t\tchannels.pulses[1].lengthCounter.counter = 0;\n\t\tif (!this.enableTriangle && enableTriangle) {\n\t\t\tchannels.triangle.lengthCounter.counter = 0;\n\t\t\tchannels.triangle.linearLengthCounter.counter = 0;\n\t\t}\n\t\tif (!this.enableNoise && enableNoise)\n\t\t\tchannels.noise.lengthCounter.counter = 0;\n\t\tif (!this.enableDMC && enableDMC) channels.dmc.startDPCM();\n\n\t\tthis.context.apu.registers.dmc.irqEnable = 0;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Sets frame counter options (e.g. sequence type). */\nexport default class APUFrameCounter extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"interruptInhibitFlag\", 6).addReadOnlyField(\n\t\t\t\"use5StepSequencer\",\n\t\t\t7\n\t\t);\n\t}\n}\n","import { InMemoryRegister } from \"../../registers\";\n\n/** Returns the current status of the APU. */\nexport default class APUStatus extends InMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addField(\"lcPulse1\", 0)\n\t\t\t.addField(\"lcPulse2\", 1)\n\t\t\t.addField(\"lcTriangle\", 2)\n\t\t\t.addField(\"lcNoise\", 3)\n\t\t\t.addField(\"remainingBytesDMC\", 4)\n\t\t\t.addField(\"frameIRQFlag\", 6)\n\t\t\t.addField(\"dmcIRQFlag\", 7);\n\t}\n\n\t/** Reads the status and resets the frame IRQ flag. */\n\treadAt() {\n\t\tconst { apu } = this.context;\n\t\tconst channels = apu.channels;\n\n\t\tthis.lcPulse1 = +(channels.pulses[0].lengthCounter.counter > 0);\n\t\tthis.lcPulse2 = +(channels.pulses[1].lengthCounter.counter > 0);\n\t\tthis.lcTriangle = +(channels.triangle.lengthCounter.counter > 0);\n\t\tthis.lcNoise = +(channels.noise.lengthCounter.counter > 0);\n\t\tthis.remainingBytesDMC = channels.dmc.remainingBytes > 0;\n\t\tthis.frameIRQFlag = apu.frameIRQFlag;\n\t\tthis.dmcIRQFlag = apu.registers.dmc.control.irqEnable;\n\n\t\tif (!this.context.isDebugging) apu.frameIRQFlag = false;\n\n\t\treturn this.value;\n\t}\n}\n","import { dpcmPeriods } from \"../constants\";\nimport { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Sets options for the DMC channel. */\nexport default class DMCControl extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"dpcmPeriodId\", 0, 4)\n\t\t\t.addReadOnlyField(\"loop\", 6)\n\t\t\t.addField(\"irqEnable\", 7);\n\t}\n\n\t/** Returns the DPCM period. */\n\tget dpcmPeriod() {\n\t\treturn dpcmPeriods[this.dpcmPeriodId];\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Controls the output sample of the DMC channel directly. */\nexport default class DMCLoad extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"directLoad\", 0, 7);\n\t}\n\n\t/** Writes the DMC Direct Load sample if the channel is active. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tconst { apu } = this.context;\n\t\tapu.channels.dmc.outputSample = this.directLoad;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Controls the sample address of the DMC channel when using DPCM mode. */\nexport default class DMCSampleAddress extends WriteOnlyInMemoryRegister {\n\t/** Returns the absolute address of the sample. */\n\tget absoluteAddress() {\n\t\t// sample address = %11AAAAAA.AA000000 = $C000 + (A * 64)\n\t\treturn 0xc000 + this.value * 64;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Controls the sample length of the DMC channel when using DPCM mode. */\nexport default class DMCSampleLength extends WriteOnlyInMemoryRegister {\n\t/** Returns the real sample length in bytes. */\n\tget lengthInBytes() {\n\t\t// sample length = %LLLL.LLLL0001 = (L * 16) + 1 bytes\n\t\treturn this.value * 16 + 1;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Sets options for the Noise channel. */\nexport default class NoiseControl extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"volumeOrEnvelopePeriod\", 0, 4)\n\t\t\t.addReadOnlyField(\"constantVolume\", 4)\n\t\t\t.addReadOnlyField(\"envelopeLoopOrLengthCounterHalt\", 5);\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\nimport { noisePeriods } from \"../constants\";\n\n/** Controls the sound output of the Noise channel. */\nexport default class NoiseForm extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"periodId\", 0, 4).addReadOnlyField(\"loop\", 7);\n\t}\n\n\t/** Returns the noise period. */\n\tget period() {\n\t\treturn noisePeriods[this.periodId];\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\nimport { lengthTable } from \"../constants\";\n\n/** Controls the length counter value of the Noise channel. */\nexport default class NoiseLCL extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"lengthCounterLoad\", 3, 5);\n\t}\n\n\t/** Updates the length counter. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tthis.context.apu.channels.noise.lengthCounter.counter =\n\t\t\tlengthTable[this.lengthCounterLoad];\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\nconst DUTY_CYCLES = [0.125, 0.25, 0.25, 0.75];\n\n/** Sets options for a Pulse channel. */\nexport default class PulseControl extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"volumeOrEnvelopePeriod\", 0, 4)\n\t\t\t.addReadOnlyField(\"constantVolume\", 4)\n\t\t\t.addReadOnlyField(\"envelopeLoopOrLengthCounterHalt\", 5)\n\t\t\t.addReadOnlyField(\"dutyCycleId\", 6, 2);\n\t}\n\n\t/** Returns the duty cycle (0.125, 0.25, 0.25, or 0.75). */\n\tget dutyCycle() {\n\t\treturn DUTY_CYCLES[this.dutyCycleId];\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\nimport { lengthTable } from \"../constants\";\n\n/** Sets the high 3 bits of a Pulse channel's timer and its length counter. */\nexport default class PulseLCLTimerHigh extends WriteOnlyInMemoryRegister {\n\tconstructor(id) {\n\t\tsuper();\n\n\t\tthis.id = id;\n\t\tthis.addReadOnlyField(\"timerHigh\", 0, 3).addReadOnlyField(\n\t\t\t\"lengthCounterLoad\",\n\t\t\t3,\n\t\t\t5\n\t\t);\n\t}\n\n\t/** Updates timer value, length counter, and volume envelope's start flag. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tconst channel = this.context.apu.channels.pulses[this.id];\n\t\tchannel.updateTimer();\n\t\tchannel.lengthCounter.counter = lengthTable[this.lengthCounterLoad];\n\t\tchannel.volumeEnvelope.startFlag = true;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Controls the frequency sweeper of a Pulse channel. */\nexport default class PulseSweep extends WriteOnlyInMemoryRegister {\n\tconstructor(id) {\n\t\tsuper();\n\n\t\tthis.id = id;\n\t\tthis.addReadOnlyField(\"shiftCount\", 0, 3)\n\t\t\t.addReadOnlyField(\"negateFlag\", 3)\n\t\t\t.addReadOnlyField(\"dividerPeriodMinusOne\", 4, 3)\n\t\t\t.addReadOnlyField(\"enabledFlag\", 7);\n\t}\n\n\t/** Sets the start flag of the frequency sweeper. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tconst channel = this.context.apu.channels.pulses[this.id];\n\t\tchannel.frequencySweeper.startFlag = true;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Sets the low 8 bits of a Pulse channel's timer. */\nexport default class PulseTimerLow extends WriteOnlyInMemoryRegister {\n\tconstructor(id) {\n\t\tsuper();\n\n\t\tthis.id = id;\n\t}\n\n\t/** Updates timer value. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tconst channel = this.context.apu.channels.pulses[this.id];\n\t\tchannel.updateTimer();\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\nimport { lengthTable } from \"../constants\";\n\n/** Sets the high 3 bits of the Triangle channel's timer and its length counter. */\nexport default class TriangleLCLTimerHigh extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"timerHigh\", 0, 3).addReadOnlyField(\n\t\t\t\"lengthCounterLoad\",\n\t\t\t3,\n\t\t\t5\n\t\t);\n\t}\n\n\t/** Updates the length counter. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tthis.context.apu.channels.triangle.lengthCounter.counter =\n\t\t\tlengthTable[this.lengthCounterLoad];\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Controls the linear length counter (value and halt flag) of the Triangle channel. */\nexport default class TriangleLinearLCL extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"lengthCounterLoad\", 0, 7).addReadOnlyField(\n\t\t\t\"halt\",\n\t\t\t7,\n\t\t\t1\n\t\t);\n\t}\n\n\t/** Updates the linear length counter. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tthis.context.apu.channels.triangle.linearLengthCounter.counter = this.lengthCounterLoad;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/** Sets the low 8 bits of the Triangle channel's timer. */\nexport default class TriangleTimerLow extends WriteOnlyInMemoryRegister {}\n","import PulseControl from \"./PulseControl\";\nimport PulseSweep from \"./PulseSweep\";\nimport PulseTimerLow from \"./PulseTimerLow\";\nimport PulseLCLTimerHigh from \"./PulseLCLTimerHigh\";\nimport TriangleLinearLCL from \"./TriangleLinearLCL\";\nimport TriangleTimerLow from \"./TriangleTimerLow\";\nimport TriangleLCLTimerHigh from \"./TriangleLCLTimerHigh\";\nimport NoiseControl from \"./NoiseControl\";\nimport NoiseForm from \"./NoiseForm\";\nimport NoiseLCL from \"./NoiseLCL\";\nimport DMCControl from \"./DMCControl\";\nimport DMCLoad from \"./DMCLoad\";\nimport DMCSampleAddress from \"./DMCSampleAddress\";\nimport DMCSampleLength from \"./DMCSampleLength\";\nimport APUStatus from \"./APUStatus\";\nimport APUControl from \"./APUControl\";\nimport APUFrameCounter from \"./APUFrameCounter\";\nimport { WithCompositeMemory, MemoryPadding } from \"../../memory\";\nimport { MixedInMemoryRegister } from \"../../registers\";\n\n/** A collection of all the CPU-mapped APU registers. */\nclass APURegisterSegment {\n\tconstructor(context) {\n\t\tthis.pulses = [0, 1].map((id) => ({\n\t\t\tcontrol: new PulseControl(id).loadContext(context), // $4000/$4004\n\t\t\tsweep: new PulseSweep(id).loadContext(context), // $4001/$4005\n\t\t\ttimerLow: new PulseTimerLow(id).loadContext(context), // $4002/$4006\n\t\t\tlclTimerHigh: new PulseLCLTimerHigh(id).loadContext(context) // $4003/$4007\n\t\t}));\n\n\t\tthis.triangle = {\n\t\t\tlinearLCL: new TriangleLinearLCL().loadContext(context), // $4008\n\t\t\ttimerLow: new TriangleTimerLow().loadContext(context), // $400A\n\t\t\tlclTimerHigh: new TriangleLCLTimerHigh().loadContext(context) // $400B\n\t\t};\n\n\t\tthis.noise = {\n\t\t\tcontrol: new NoiseControl().loadContext(context), // $400C\n\t\t\tform: new NoiseForm().loadContext(context), // $400E\n\t\t\tlcl: new NoiseLCL().loadContext(context) // $400F\n\t\t};\n\n\t\tthis.dmc = {\n\t\t\tcontrol: new DMCControl().loadContext(context), // $4010\n\t\t\tload: new DMCLoad().loadContext(context), // $4011\n\t\t\tsampleAddress: new DMCSampleAddress().loadContext(context), // $4012\n\t\t\tsampleLength: new DMCSampleLength().loadContext(context) // $4013\n\t\t};\n\n\t\tthis.apuStatus = new APUStatus().loadContext(context); // $4015 (read)\n\t\tthis.apuControl = new APUControl().loadContext(context); // $4015 (write)\n\t\tthis.apuFrameCounter = new APUFrameCounter().loadContext(context); // $4017\n\n\t\tthis.apuMain = new MixedInMemoryRegister(this.apuStatus, this.apuControl); // ($4015)\n\t}\n\n\t/** Creates a memory segment with the first 20 bytes ($4000-$4013). */\n\ttoMemory() {\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\tthis.pulses[0].control,\n\t\t\tthis.pulses[0].sweep,\n\t\t\tthis.pulses[0].timerLow,\n\t\t\tthis.pulses[0].lclTimerHigh,\n\n\t\t\tthis.pulses[1].control,\n\t\t\tthis.pulses[1].sweep,\n\t\t\tthis.pulses[1].timerLow,\n\t\t\tthis.pulses[1].lclTimerHigh,\n\n\t\t\tthis.triangle.linearLCL,\n\t\t\tnew MemoryPadding(1),\n\t\t\tthis.triangle.timerLow,\n\t\t\tthis.triangle.lclTimerHigh,\n\n\t\t\tthis.noise.control,\n\t\t\tnew MemoryPadding(1),\n\t\t\tthis.noise.form,\n\t\t\tthis.noise.lcl,\n\n\t\t\tthis.dmc.control,\n\t\t\tthis.dmc.load,\n\t\t\tthis.dmc.sampleAddress,\n\t\t\tthis.dmc.sampleLength\n\t\t]);\n\t}\n}\n\nexport { APURegisterSegment };\n","import constants from \"../../constants\";\n\n/** A frequency sweeper. It can progressively increase or decrease pulse channels' notes. */\nexport default class FrequencySweeper {\n\tconstructor() {\n\t\t// input\n\t\tthis.startFlag = false;\n\n\t\t// output\n\t\tthis.dividerCount = 0;\n\t\tthis.change = 0;\n\t\tthis.mute = 0;\n\t}\n\n\t/** Sets up the `change` and `mute` values. */\n\ttrack(channel) {\n\t\tconst register = channel.registers.sweep;\n\t\tthis._setMute(channel);\n\n\t\tif (register.enabledFlag)\n\t\t\tthis.change = channel.timer >> register.shiftCount;\n\t}\n\n\t/** Clocks the sweeper and updates channel's timer frequency. */\n\tclock(channel) {\n\t\tconst register = channel.registers.sweep;\n\t\tif (!register.enabledFlag) return;\n\n\t\t/**\n\t\t * The sweep unit continuously calculates each channel's target period in this way:\n\t\t * - A barrel shifter shifts the channel's 11-bit raw timer period right by the shift count, producing the change amount.\n\t\t * - If the negate flag is true, the change amount is made negative.\n\t\t * - The target period is the sum of the current period and the change amount.\n\t\t */\n\n\t\tif (this.dividerCount === 0 && register.shiftCount > 0 && !this.mute)\n\t\t\tchannel.timer += this.change * (register.negateFlag ? -1 : 1);\n\n\t\tif (this.dividerCount === 0 || this.startFlag) {\n\t\t\tthis.dividerCount = register.dividerPeriodMinusOne + 1;\n\t\t\tthis.startFlag = false;\n\t\t} else this.dividerCount--;\n\n\t\tthis._setMute(channel);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tstartFlag: this.startFlag,\n\t\t\tdividerCount: this.dividerCount,\n\t\t\tchange: this.change,\n\t\t\tmute: this.mute\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.startFlag = saveState.startFlag;\n\t\tthis.dividerCount = saveState.dividerCount;\n\t\tthis.change = saveState.change;\n\t\tthis.mute = saveState.mute;\n\t}\n\n\t_setMute(channel) {\n\t\tthis.mute =\n\t\t\tchannel.timer < constants.APU_MIN_TIMER ||\n\t\t\tchannel.timer > constants.APU_MAX_TIMER;\n\t}\n}\n","/** A note length counter. It can be clocked to decrease its value and notify when it finishes. */\nexport default class LengthCounter {\n\tconstructor() {\n\t\tthis.counter = 0;\n\t}\n\n\t/** Decreases the counter unless `isHalted`. Unless `isEnable`, it resets the counter to 0. */\n\tclock(isEnabled, isHalted) {\n\t\tif (!isEnabled) this.counter = 0;\n\t\telse if (this.counter > 0 && !isHalted) this.counter--;\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn { counter: this.counter };\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.counter = saveState.counter;\n\t}\n\n\t/** Returns whether it finished counting or not. */\n\tget didFinish() {\n\t\treturn this.counter === 0;\n\t}\n}\n","import config from \"../../config\";\n\n/** A square wave generator. */\nexport default class PulseOscillator {\n\tconstructor() {\n\t\tthis.amplitude = 1;\n\t\tthis.harmonics = config.PULSE_CHANNEL_HARMONICS;\n\t\tthis.dutyCycle = 0;\n\n\t\tthis._frequency = 0;\n\t}\n\n\t/** Generates a new sample. */\n\tsample(time) {\n\t\tconst period = 1 / this._frequency;\n\t\tconst phase = time % period;\n\n\t\treturn (\n\t\t\t(phase < this.dutyCycle * period ? 1 : -1) *\n\t\t\tconfig.PULSE_CHANNEL_VOLUME *\n\t\t\tthis.amplitude\n\t\t);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tamplitude: this.amplitude,\n\t\t\tharmonics: this.harmonics,\n\t\t\tdutyCycle: this.dutyCycle,\n\t\t\tfrequency: this._frequency\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.amplitude = saveState.amplitude;\n\t\tthis.harmonics = saveState.harmonics;\n\t\tthis.dutyCycle = saveState.dutyCycle;\n\t\tthis.frequency = saveState.frequency;\n\t}\n\n\t/** Sets the frequency, but only if `value` is above a minimum value. */\n\tset frequency(value) {\n\t\tif (Math.abs(this._frequency - value) > config.MIN_FREQUENCY_CHANGE)\n\t\t\tthis._frequency = value;\n\t}\n}\n","import config from \"../../config\";\n\n/** A triangle wave generator. */\nexport default class TriangleOscillator {\n\tconstructor() {\n\t\tthis.amplitude = 1;\n\n\t\tthis._frequency = 0;\n\t}\n\n\t/** Generates a new sample. */\n\tsample(time) {\n\t\tconst period = 1 / this._frequency;\n\t\tconst phase = time % period;\n\t\tconst slope = (4 * this.amplitude) / period;\n\t\tconst phaseInSlope = phase * slope;\n\n\t\treturn (\n\t\t\t(phase <= period / 2\n\t\t\t\t? phaseInSlope - this.amplitude\n\t\t\t\t: 3 * this.amplitude - phaseInSlope) * config.TRIANGLE_CHANNEL_VOLUME\n\t\t);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tamplitude: this.amplitude,\n\t\t\tfrequency: this._frequency\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.amplitude = saveState.amplitude;\n\t\tthis.frequency = saveState.frequency;\n\t}\n\n\t/** Sets the frequency, but only if `value` is above a minimum value. */\n\tset frequency(value) {\n\t\tif (Math.abs(this._frequency - value) > config.MIN_FREQUENCY_CHANGE)\n\t\t\tthis._frequency = value;\n\t}\n}\n","import constants from \"../../constants\";\n\n/** A volume envelope. It starts at a volume of 15 and decrements every time the unit is clocked. */\nexport default class VolumeEnvelope {\n\tconstructor() {\n\t\t// input\n\t\tthis.startFlag = false;\n\n\t\t// output\n\t\tthis.dividerCount = 0;\n\t\tthis.volume = 0;\n\t}\n\n\t/** Decrements `volume` every `period` clocks. If `loop`, it resets the countdown to 15. */\n\tclock(period, loop) {\n\t\tif (!this.startFlag) {\n\t\t\tif (this.dividerCount === 0) {\n\t\t\t\tthis.dividerCount = period;\n\n\t\t\t\tif (this.volume === 0) {\n\t\t\t\t\tif (loop) this.volume = constants.APU_MAX_VOLUME;\n\t\t\t\t} else {\n\t\t\t\t\tthis.volume--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.dividerCount--;\n\t\t\t}\n\t\t} else {\n\t\t\tthis.startFlag = false;\n\t\t\tthis.volume = constants.APU_MAX_VOLUME;\n\t\t\tthis.dividerCount = period;\n\t\t}\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tstartFlag: this.startFlag,\n\t\t\tdividerCount: this.dividerCount,\n\t\t\tvolume: this.volume\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.startFlag = saveState.startFlag;\n\t\tthis.dividerCount = saveState.dividerCount;\n\t\tthis.volume = saveState.volume;\n\t}\n}\n","import mappers from \"./mappers\";\nimport constants from \"../constants\";\nimport { Byte } from \"../helpers\";\n\n/** The game cartridge (a file in iNES format). */\nexport default class Cartridge {\n\tconstructor(bytes) {\n\t\tthis.bytes = bytes;\n\n\t\tif (this.magicNumber !== constants.ROM_MAGIC_NUMBER)\n\t\t\tthrow new Error(\"Invalid ROM format.\");\n\t}\n\n\t/** Returns a new instance of the right mapper. */\n\tcreateMapper() {\n\t\tconst mapperId = this.header.mapperId;\n\t\tconst Mapper = mappers[mapperId];\n\t\tif (!Mapper) throw new Error(`Unknown mapper: ${mapperId}.`);\n\t\treturn new Mapper();\n\t}\n\n\t/** Returns the PRG ROM, which contains the game's code. */\n\tget prgRom() {\n\t\treturn this._getBytes(this._programOffset, this._programSize);\n\t}\n\n\t/** Returns the CHR ROM buffer (which contains static tilesets) or a CHR RAM buffer. */\n\tget chrRom() {\n\t\tconst offset = this._programOffset + this._programSize;\n\t\tconst size = this.header.chrRomPages * constants.CHR_ROM_PAGE_SIZE;\n\n\t\treturn !this.header.usesChrRam\n\t\t\t? this._getBytes(offset, size)\n\t\t\t: new Uint8Array(constants.CHR_RAM_PAGES * constants.CHR_ROM_PAGE_SIZE);\n\t}\n\n\t/** Returns the header data. */\n\tget header() {\n\t\tif (this.__header) return this.__header;\n\n\t\tconst flags6 = this.bytes[6];\n\t\tconst flags7 = this.bytes[7];\n\n\t\tconst prgRomPages = this.bytes[4];\n\t\tconst chrRomPages = this.bytes[5];\n\t\tif (prgRomPages === 0) throw new Error(\"Invalid header: No PRG ROM pages!\");\n\n\t\treturn (this.__header = {\n\t\t\tprgRomPages,\n\t\t\tchrRomPages: chrRomPages || constants.CHR_RAM_PAGES,\n\t\t\tusesChrRam: chrRomPages === 0,\n\t\t\tmirroring:\n\t\t\t\tByte.getBit(flags6, 3) === 1\n\t\t\t\t\t? \"FOUR_SCREENS\"\n\t\t\t\t\t: Byte.getBit(flags6, 0) === 1\n\t\t\t\t\t? \"VERTICAL\"\n\t\t\t\t\t: \"HORIZONTAL\",\n\t\t\thasTrainerBeforeProgram: !!Byte.getBit(flags6, 2),\n\t\t\tmapperId: Byte.setBits(\n\t\t\t\tByte.getBits(flags6, 4, 4),\n\t\t\t\t4,\n\t\t\t\t4,\n\t\t\t\tByte.getBits(flags7, 4, 4)\n\t\t\t)\n\t\t});\n\t}\n\n\t/** Returns the first 3 ASCII bytes of the header. It should return \"NES\". */\n\tget magicNumber() {\n\t\treturn Array.from(this._getBytes(0, 3))\n\t\t\t.map((char) => String.fromCharCode(char))\n\t\t\t.join(\"\");\n\t}\n\n\t_getBytes(offset, size) {\n\t\treturn this.bytes.slice(offset, offset + size);\n\t}\n\n\tget _programOffset() {\n\t\treturn (\n\t\t\tconstants.ROM_HEADER_SIZE +\n\t\t\t(this.header.hasTrainerBeforeProgram ? constants.ROM_TRAINER_SIZE : 0)\n\t\t);\n\t}\n\n\tget _programSize() {\n\t\treturn this.header.prgRomPages * constants.PRG_ROM_PAGE_SIZE;\n\t}\n}\n","import Cartridge from \"./Cartridge\";\n\nexport default Cartridge;\n","import { MemoryChunk } from \"../../memory\";\nimport constants from \"../../constants\";\nimport { WithContext } from \"../../helpers\";\nimport _ from \"lodash\";\n\n/**\n * An abstract class that represents a generic mapper.\n * It has two memory segments:\n * - One mapped at CPU $4020-$FFFF (for PRG ROM, PRG RAM, and mapper registers)\n * - One mapped at PPU $0000-$1FFF (for CHR ROM / Pattern tables)\n * It intercepts all CPU write operations.\n */\nexport default class Mapper {\n\tstatic get id() {\n\t\tthrow new Error(\"not_implemented\");\n\t}\n\n\tconstructor(\n\t\tprgRomPageSize = constants.PRG_ROM_PAGE_SIZE,\n\t\tchrRomPageSize = constants.CHR_ROM_PAGE_SIZE\n\t) {\n\t\tWithContext.apply(this);\n\n\t\tthis.prgRomPageSize = prgRomPageSize;\n\t\tthis.chrRomPageSize = chrRomPageSize;\n\t}\n\n\t/** Creates a memory segment for CPU range $4020-$FFFF. */\n\tcreateCPUSegment(context) {\n\t\tthrow new Error(\"not_implemented\");\n\t}\n\n\t/** Creates a memory segment for PPU range $0000-$1FFF. */\n\tcreatePPUSegment(context) {\n\t\tthrow new Error(\"not_implemented\");\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tconst { cartridge } = context;\n\n\t\tconst prg = cartridge.prgRom;\n\t\tconst chr = cartridge.chrRom;\n\n\t\tconst totalPrgPages = Math.floor(prg.length / this.prgRomPageSize);\n\t\tconst totalChrPages = Math.floor(chr.length / this.chrRomPageSize);\n\n\t\tthis.prgPages = _.range(0, totalPrgPages).map((page) =>\n\t\t\tthis._getPage(prg, this.prgRomPageSize, page)\n\t\t);\n\t\tthis.chrPages = _.range(0, totalChrPages).map((page) =>\n\t\t\tthis._getPage(chr, this.chrRomPageSize, page)\n\t\t);\n\n\t\tthis.segments = {\n\t\t\tcpu: this.createCPUSegment(context),\n\t\t\tppu: this.createPPUSegment(context)\n\t\t};\n\t}\n\n\t/** Maps a CPU write operation. */\n\tcpuWriteAt(address, byte) {\n\t\tthis.context.cpu.memory.writeAt(address, byte);\n\t}\n\n\t/** Runs at cycle 260 of every scanline (including preline). Returns a CPU interrupt or null. */\n\ttick() {\n\t\treturn null;\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tchrPages: this.context.cartridge.header.usesChrRam\n\t\t\t\t? this.chrPages.map((it) => Array.from(it))\n\t\t\t\t: null\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tif (saveState.chrPages != null)\n\t\t\tthis.chrPages = saveState.chrPages.map((it) => new Uint8Array(it));\n\t}\n\n\t_newPrgBank(id = 0) {\n\t\treturn new MemoryChunk(this.prgPages[id]).asReadOnly();\n\t}\n\n\t_newChrBank(cartridge, id = 0) {\n\t\treturn new MemoryChunk(this.chrPages[id]).asReadOnly(\n\t\t\t!cartridge.header.usesChrRam\n\t\t);\n\t}\n\n\t_getPrgPage(page) {\n\t\treturn this.prgPages[Math.max(0, page % this.prgPages.length)];\n\t}\n\n\t_getChrPage(page) {\n\t\treturn this.chrPages[Math.max(0, page % this.chrPages.length)];\n\t}\n\n\t_getPage(memory, pageSize, page) {\n\t\tconst offset = page * pageSize;\n\t\treturn memory.slice(offset, offset + pageSize);\n\t}\n}\n","import Mapper from \"./Mapper\";\nimport { WithCompositeMemory, MemoryMirror, MemoryPadding } from \"../../memory\";\n\n/**\n * The simplest mapper (also called \"mapper 0\").\n * It can have either one or two PRG ROM of 16KB, that are mapped\n * at ranges $8000-$BFFF and $C000-$FFFF of the CPU memory.\n * It also has CHR ROM which contains the tile and sprite data.\n * This CHR ROM is mapped to the PPU memory at addresses $0000-$1FFF.\n */\nexport default class NROM extends Mapper {\n\tstatic get id() {\n\t\treturn 0;\n\t}\n\n\t/** Creates a memory segment for CPU range $4020-$FFFF. */\n\tcreateCPUSegment({ cartridge }) {\n\t\tconst unused = new MemoryPadding(0x3fe0);\n\t\tconst prgRomFirstPage = this._newPrgBank();\n\t\tconst prgRomLastPage =\n\t\t\tcartridge.header.prgRomPages === 2\n\t\t\t\t? this._newPrgBank(1)\n\t\t\t\t: new MemoryMirror(prgRomFirstPage, 0x4000);\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tunused, // $4020-$7FFF $3FE0 Unused space\n\t\t\tprgRomFirstPage, // $8000-$BFFF $4000 PRG ROM (first 16KB of ROM)\n\t\t\tprgRomLastPage // $C000-$FFFF $4000 PRG ROM (second 16KB of ROM or mirror)\n\t\t]);\n\t}\n\n\t/** Creates a memory segment for PPU range $0000-$1FFF. */\n\tcreatePPUSegment({ cartridge }) {\n\t\treturn this._newChrBank(cartridge);\n\t}\n}\n","import Mapper from \"./Mapper\";\nimport { WithCompositeMemory, MemoryChunk, MemoryPadding } from \"../../memory\";\nimport { InMemoryRegister } from \"../../registers\";\nimport constants from \"../../constants\";\nimport _ from \"lodash\";\n\n/**\n * It provides bank-switching for PRG and CHR ROM.\n * CPU $6000-$7FFF: 8 KB PRG RAM bank (optional)\n * CPU $8000-$BFFF: 16 KB PRG ROM bank, either switchable or fixed to the first bank\n * CPU $C000-$FFFF: 16 KB PRG ROM bank, either fixed to the last bank or switchable\n * PPU $0000-$0FFF: 4 KB switchable CHR bank\n * PPU $1000-$1FFF: 4 KB switchable CHR bank\n * Through writes to the MMC1 control register, it is possible for the program to\n * swap the fixed and switchable PRG ROM banks or to set up 32 KB PRG bankswitching.\n */\nexport default class MMC1 extends Mapper {\n\tstatic get id() {\n\t\treturn 1;\n\t}\n\n\tconstructor() {\n\t\tsuper(constants.PRG_ROM_PAGE_SIZE, 4 * constants.KB);\n\t}\n\n\t/** Creates a memory segment for CPU range $4020-$FFFF. */\n\tcreateCPUSegment() {\n\t\tconst unused = new MemoryPadding(0x1fe0);\n\t\tconst prgRam = new MemoryChunk(0x2000);\n\t\tconst prgRomBank0 = this._newPrgBank();\n\t\tconst prgRomBank1 = this._newPrgBank(this.prgPages.length - 1);\n\n\t\tthis.prgRam = prgRam;\n\t\tthis._prgRomBank0 = prgRomBank0;\n\t\tthis._prgRomBank1 = prgRomBank1;\n\t\tthis._state = {\n\t\t\tload: new LoadRegister(),\n\t\t\tcontrol: new ControlRegister(),\n\t\t\tchrBank0: new CHRBank0Register(),\n\t\t\tchrBank1: new CHRBank1Register(),\n\t\t\tprgBank: new PRGBankRegister()\n\t\t};\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tunused, // $4020-$5FFF $1FE0 Unused space\n\t\t\tprgRam, // $6000-$7FFF $2000 PRG RAM (optional)\n\t\t\tprgRomBank0, // $8000-$BFFF $4000 PRG ROM (switchable or fixed to first bank)\n\t\t\tprgRomBank1 // $C000-$FFFF $4000 PRG ROM (switchable or fixed to last bank)\n\t\t]);\n\t}\n\n\t/** Creates a memory segment for PPU range $0000-$1FFF. */\n\tcreatePPUSegment({ cartridge }) {\n\t\tthis._chrRomBank0 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank1 = this._newChrBank(cartridge);\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tthis._chrRomBank0, // $0000-$0FFF $1000 CHR ROM (switchable)\n\t\t\tthis._chrRomBank1 // $1000-$1FFF $1000 CHR ROM (switchable)\n\t\t]);\n\t}\n\n\t/** Maps a CPU write operation. */\n\tcpuWriteAt(address, byte) {\n\t\tif (address >= 0x8000) {\n\t\t\t// Load\n\t\t\tconst value = this._state.load.write(byte);\n\t\t\tif (value == null) return;\n\n\t\t\tif (address >= 0x8000 && address < 0xa000) {\n\t\t\t\t// Control\n\t\t\t\tthis._state.control.setValue(value);\n\t\t\t\tthis.context.ppu.memory.changeNameTablesMirroringTo(\n\t\t\t\t\tthis._state.control.mirroring\n\t\t\t\t);\n\t\t\t} else if (address >= 0xa000 && address < 0xc000) {\n\t\t\t\t// CHR bank 0\n\t\t\t\tthis._state.chrBank0.setValue(value);\n\t\t\t} else if (address >= 0xc000 && address < 0xe000) {\n\t\t\t\t// CHR bank 1\n\t\t\t\tthis._state.chrBank1.setValue(value);\n\t\t\t} else {\n\t\t\t\t// PRG bank\n\t\t\t\tthis._state.prgBank.setValue(value);\n\t\t\t}\n\n\t\t\tthis._loadBanks();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.context.cpu.memory.writeAt(address, byte);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn _.assign(super.getSaveState(), {\n\t\t\tloadShiftRegister: this._state.load.shiftRegister,\n\t\t\tloadWriteCounter: this._state.load.writeCounter,\n\t\t\tcontrol: this._state.control.value,\n\t\t\tchrBank0: this._state.chrBank0.value,\n\t\t\tchrBank1: this._state.chrBank1.value,\n\t\t\tprgBank: this._state.prgBank.value\n\t\t});\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tsuper.setSaveState(saveState);\n\n\t\tthis._state.load.shiftRegister = saveState.loadShiftRegister;\n\t\tthis._state.load.writeCounter = saveState.loadWriteCounter;\n\t\tthis._state.control.setValue(saveState.control);\n\t\tthis._state.chrBank0.setValue(saveState.chrBank0);\n\t\tthis._state.chrBank1.setValue(saveState.chrBank1);\n\t\tthis._state.prgBank.setValue(saveState.prgBank);\n\t\tthis._loadBanks();\n\t}\n\n\t_loadBanks() {\n\t\tconst { control, chrBank0, chrBank1, prgBank } = this._state;\n\n\t\tif (control.isPrgRom32Kb) {\n\t\t\t// 32KB PRG\n\t\t\tconst page = prgBank.prgRomBankId & 0b1110;\n\t\t\tthis._prgRomBank0.bytes = this._getPrgPage(page);\n\t\t\tthis._prgRomBank1.bytes = this._getPrgPage(page + 1);\n\t\t} else {\n\t\t\t// 16KB PRG\n\t\t\tthis._prgRomBank0.bytes = this._getPrgPage(\n\t\t\t\tcontrol.isFirstPrgAreaSwitchable ? prgBank.prgRomBankId : 0\n\t\t\t);\n\t\t\tthis._prgRomBank1.bytes = this._getPrgPage(\n\t\t\t\tcontrol.isSecondPrgAreaSwitchable\n\t\t\t\t\t? prgBank.prgRomBankId\n\t\t\t\t\t: this.prgPages.length - 1\n\t\t\t);\n\t\t}\n\n\t\tif (control.isChrRom8Kb) {\n\t\t\t// 8KB CHR\n\t\t\tconst page = chrBank0.value & 0b11110;\n\t\t\tthis._chrRomBank0.bytes = this._getChrPage(page);\n\t\t\tthis._chrRomBank1.bytes = this._getChrPage(page + 1);\n\t\t} else {\n\t\t\t// 4KB CHR\n\t\t\tthis._chrRomBank0.bytes = this._getChrPage(chrBank0.value);\n\t\t\tthis._chrRomBank1.bytes = this._getChrPage(chrBank1.value);\n\t\t}\n\t}\n}\n\n/**\n * Load Register ($8000-$FFFF)\n * MMC1 has a quirk, where it will take 5 writes to collect all the bits for the actual write\n * that sets a bank. These 5 writes all are made to the Load register ($8000-$FFFF) that\n * consists of a shift register. Each write to the load register shifts the rightmost bit onto\n * said shift register, and on the 5th write, the whole shift register is evaluated.\n */\nclass LoadRegister {\n\tconstructor() {\n\t\tthis.shiftRegister = 0;\n\t\tthis.writeCounter = 0;\n\t}\n\n\t/** Writes a bit. Returns null 4 times, then the full value. */\n\twrite(byte) {\n\t\tif (byte & 0b10000000) {\n\t\t\t// reset\n\t\t\tthis.shiftRegister = 0b10000;\n\t\t\tthis.writeCounter = 0;\n\n\t\t\treturn null;\n\t\t} else {\n\t\t\t// shift 4 times, writing on the 5th\n\n\t\t\tconst bit = byte & 1;\n\t\t\tthis.shiftRegister = ((this.shiftRegister >> 1) | (bit << 4)) & 0b11111;\n\t\t\tthis.writeCounter++;\n\n\t\t\tif (this.writeCounter === 5) {\n\t\t\t\tconst value = this.shiftRegister;\n\t\t\t\tthis.shiftRegister = 0;\n\t\t\t\tthis.writeCounter = 0;\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\t}\n}\n\n/**\n * Control ($8000-$9FFF)\n * -----\n * CPPMM\n * |||||\n * |||++- Mirroring (0: one-screen, lower bank; 1: one-screen, upper bank;\n * ||| 2: vertical; 3: horizontal)\n * |++--- PRG ROM bank mode (0, 1: switch 32 KB at $8000, ignoring low bit of bank number;\n * | 2: fix first bank at $8000 and switch 16 KB bank at $C000;\n * | 3: fix last bank at $C000 and switch 16 KB bank at $8000)\n * +----- CHR ROM bank mode (0: switch 8 KB at a time; 1: switch two separate 4 KB banks)\n */\nclass ControlRegister extends InMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"mirroringId\", 0, 2)\n\t\t\t.addReadOnlyField(\"prgRomBankMode\", 2, 2)\n\t\t\t.addReadOnlyField(\"chrRomBankMode\", 4);\n\t}\n\n\t/** Returns the mirroring type. */\n\tget mirroring() {\n\t\tswitch (this.mirroringId) {\n\t\t\tcase 0:\n\t\t\t\treturn \"ONE_SCREEN_LOWER_BANK\";\n\t\t\tcase 1:\n\t\t\t\treturn \"ONE_SCREEN_UPPER_BANK\";\n\t\t\tcase 2:\n\t\t\t\treturn \"VERTICAL\";\n\t\t\tcase 3:\n\t\t\tdefault:\n\t\t\t\treturn \"HORIZONTAL\";\n\t\t}\n\t}\n\n\t/** Returns whether the PRG ROM area is 32KB or not (16KB otherwise). */\n\tget isPrgRom32Kb() {\n\t\treturn this.prgRomBankMode <= 1;\n\t}\n\n\t/** Returns whether the CHR ROM area is 8KB or not (4KB otherwise). */\n\tget isChrRom8Kb() {\n\t\treturn this.chrRomBankMode === 0;\n\t}\n\n\t/** Returns true if the first PRG ROM area ($8000-$BFFF) is switchable. Otherwise, it's fixed to first bank. */\n\tget isFirstPrgAreaSwitchable() {\n\t\treturn this.prgRomBankMode !== 2;\n\t}\n\n\t/** Returns true if the second PRG ROM area ($C000-$FFFF) is switchable. Otherwise, it's fixed to last bank. */\n\tget isSecondPrgAreaSwitchable() {\n\t\treturn this.prgRomBankMode !== 3;\n\t}\n}\n\n/**\n * CHR bank 0 ($A000-$BFFF)\n * -----\n * CCCCC\n * |||||\n * +++++- Select 4 KB or 8 KB CHR bank at PPU $0000 (low bit ignored in 8 KB mode)\n */\nclass CHRBank0Register extends InMemoryRegister {}\n\n/**\n * CHR bank 1 ($C000-$DFFF)\n * -----\n * CCCCC\n * |||||\n * +++++- Select 4 KB CHR bank at PPU $1000 (ignored in 8 KB mode)\n */\nclass CHRBank1Register extends InMemoryRegister {}\n\n/**\n * PRG bank ($E000-$FFFF)\n * -----\n * RPPPP\n * |||||\n * |++++- Select 16 KB PRG ROM bank (low bit ignored in 32 KB mode)\n * +----- PRG RAM chip enable (0: enabled; 1: disabled) (unused on this emulator)\n */\nclass PRGBankRegister extends InMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"prgRomBankId\", 0, 4);\n\t}\n}\n","import Mapper from \"./Mapper\";\nimport { WithCompositeMemory, MemoryPadding } from \"../../memory\";\nimport _ from \"lodash\";\n\n/**\n * It provides bank-switching capabilities, just by writing a byte to any address on PRG ROM space.\n * CPU $8000-$BFFF: 16 KB switchable PRG ROM bank\n * CPU $C000-$FFFF: 16 KB PRG ROM bank, fixed to the last page\n * The CHR memory is usually RAM, mapped at PPU addresses $0000-$1FFF.\n */\nexport default class UxROM extends Mapper {\n\tstatic get id() {\n\t\treturn 2;\n\t}\n\n\t/** Creates a memory segment for CPU range $4020-$FFFF. */\n\tcreateCPUSegment() {\n\t\tconst unused = new MemoryPadding(0x3fe0);\n\t\tconst prgRomSelectedPage = this._newPrgBank();\n\t\tconst prgRomLastPage = this._newPrgBank(this.prgPages.length - 1);\n\n\t\tthis._prgRomSwitchableBank = prgRomSelectedPage;\n\n\t\tthis._state = { page: 0 };\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tunused, // $4020-$7FFF $3FE0 Unused space\n\t\t\tprgRomSelectedPage, // $8000-$BFFF $4000 PRG ROM (switchable)\n\t\t\tprgRomLastPage // $C000-$FFFF $4000 PRG ROM (fixed to last bank)\n\t\t]);\n\t}\n\n\t/** Creates a memory segment for PPU range $0000-$1FFF. */\n\tcreatePPUSegment({ cartridge }) {\n\t\treturn this._newChrBank(cartridge);\n\t}\n\n\t/** Maps a CPU write operation. */\n\tcpuWriteAt(address, byte) {\n\t\tif (address >= 0x8000) {\n\t\t\tthis._state.page = byte;\n\t\t\tthis._loadBanks();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.context.cpu.memory.writeAt(address, byte);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn _.assign(super.getSaveState(), { page: this._state.page });\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tsuper.setSaveState(saveState);\n\n\t\tthis._state.page = saveState.page;\n\t\tthis._loadBanks();\n\t\tthis.segments.ppu.bytes = this._getChrPage(0);\n\t}\n\n\t_loadBanks() {\n\t\tthis._prgRomSwitchableBank.bytes = this._getPrgPage(this._state.page);\n\t}\n}\n","import Mapper from \"./Mapper\";\nimport { WithCompositeMemory, MemoryMirror, MemoryPadding } from \"../../memory\";\nimport _ from \"lodash\";\n\n/**\n * It provides bank-switching for CHR ROM only.\n * CPU $8000-$BFFF: 16 KB PRG ROM, fixed to the first page\n * CPU $C000-$FFFF: 16 KB PRG ROM, fixed to the second page (or mirror)\n * PPU $0000-$1FFF: 8 KB switchable CHR bank\n */\nexport default class CNROM extends Mapper {\n\tstatic get id() {\n\t\treturn 3;\n\t}\n\n\t/** Creates a memory segment for CPU range $4020-$FFFF. */\n\tcreateCPUSegment({ cartridge }) {\n\t\tconst unused = new MemoryPadding(0x3fe0);\n\t\tconst prgRomFirstPage = this._newPrgBank();\n\t\tconst prgRomLastPage =\n\t\t\tcartridge.header.prgRomPages === 2\n\t\t\t\t? this._newPrgBank(1)\n\t\t\t\t: new MemoryMirror(prgRomFirstPage, 0x4000);\n\n\t\tthis._state = { page: 0 };\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tunused, // $4020-$7FFF $3FE0 Unused space\n\t\t\tprgRomFirstPage, // $8000-$BFFF $4000 PRG ROM (first 16KB of ROM)\n\t\t\tprgRomLastPage // $C000-$FFFF $4000 PRG ROM (second 16KB of ROM or mirror)\n\t\t]);\n\t}\n\n\t/** Creates a memory segment for PPU range $0000-$1FFF. */\n\tcreatePPUSegment({ cartridge }) {\n\t\treturn this._newChrBank(cartridge);\n\t}\n\n\t/** Maps a CPU write operation. */\n\tcpuWriteAt(address, byte) {\n\t\tif (address >= 0x8000) {\n\t\t\tthis._state.page = byte;\n\t\t\tthis._loadBanks();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.context.cpu.memory.writeAt(address, byte);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn _.assign(super.getSaveState(), { page: this._state.page });\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tsuper.setSaveState(saveState);\n\n\t\tthis._state.page = saveState.page;\n\t\tthis._loadBanks();\n\t}\n\n\t_loadBanks() {\n\t\tthis.segments.ppu.bytes = this._getChrPage(this._state.page);\n\t}\n}\n","import Mapper from \"./Mapper\";\nimport { interrupts } from \"../../cpu/constants\";\nimport { WithCompositeMemory, MemoryChunk, MemoryPadding } from \"../../memory\";\nimport { InMemoryRegister } from \"../../registers\";\nimport constants from \"../../constants\";\nimport _ from \"lodash\";\n\n/**\n * It provides bank-switching for PRG and CHR ROM.\n * CPU $6000-$7FFF: 8 KB PRG RAM bank (optional)\n * CPU $8000-$9FFF (or $C000-$DFFF): 8 KB switchable PRG ROM bank\n * CPU $A000-$BFFF: 8 KB switchable PRG ROM bank\n * CPU $C000-$DFFF (or $8000-$9FFF): 8 KB PRG ROM bank, fixed to the second-last bank\n * CPU $E000-$FFFF: 8 KB PRG ROM bank, fixed to the last bank\n * PPU $0000-$07FF (or $1000-$17FF): 2 KB switchable CHR bank\n * PPU $0800-$0FFF (or $1800-$1FFF): 2 KB switchable CHR bank\n * PPU $1000-$13FF (or $0000-$03FF): 1 KB switchable CHR bank\n * PPU $1400-$17FF (or $0400-$07FF): 1 KB switchable CHR bank\n * PPU $1800-$1BFF (or $0800-$0BFF): 1 KB switchable CHR bank\n * PPU $1C00-$1FFF (or $0C00-$0FFF): 1 KB switchable CHR bank\n * This mapper allows even more PRG and CHR banks to be selected, but doesn’t have the\n * 5-write-quirk of MMC1. It does, though, have a scanline counter, which can trigger\n * an IRQ on decrementing.\n */\nexport default class MMC3 extends Mapper {\n\tstatic get id() {\n\t\treturn 4;\n\t}\n\n\tconstructor() {\n\t\tsuper(8 * constants.KB, 1 * constants.KB);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tsuper.onLoad(context);\n\n\t\tthis._loadPRGBanks();\n\t\tthis._loadCHRBanks();\n\t}\n\n\t/** Creates a memory segment for CPU range $4020-$FFFF. */\n\tcreateCPUSegment() {\n\t\tconst unused = new MemoryPadding(0x1fe0);\n\t\tconst prgRam = new MemoryChunk(0x2000);\n\t\tconst prgRomBank0 = this._newPrgBank();\n\t\tconst prgRomBank1 = this._newPrgBank();\n\t\tconst prgRomBank2 = this._newPrgBank();\n\t\tconst prgRomBank3 = this._newPrgBank(this.prgPages.length - 1);\n\n\t\tthis.prgRam = prgRam;\n\t\tthis._prgRomBank0 = prgRomBank0;\n\t\tthis._prgRomBank1 = prgRomBank1;\n\t\tthis._prgRomBank2 = prgRomBank2;\n\n\t\tthis._state = {\n\t\t\tbankSelect: new BankSelectRegister(),\n\t\t\tbankData: [0, 0, 0, 0, 0, 0, 0, 0],\n\t\t\tirqEnabled: false,\n\t\t\tirqLatch: 0,\n\t\t\tirqCountdown: 0\n\t\t};\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tunused, // $4020-$5FFF $1FE0 Unused space\n\t\t\tprgRam, // $6000-$7FFF $2000 PRG RAM (optional)\n\t\t\tprgRomBank0, // $8000-$9FFF $2000 PRG ROM (switchable or fixed to second-last bank)\n\t\t\tprgRomBank1, // $A000-$BFFF $2000 PRG ROM (switchable)\n\t\t\tprgRomBank2, // $C000-$DFFF $2000 PRG ROM (switchable or fixed to second-last bank)\n\t\t\tprgRomBank3 // $E000-$FFFF $2000 PRG ROM (fixed to last bank)\n\t\t]);\n\t}\n\n\t/** Creates a memory segment for PPU range $0000-$1FFF. */\n\tcreatePPUSegment({ cartridge }) {\n\t\tthis._chrRomBank0 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank1 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank2 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank3 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank4 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank5 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank6 = this._newChrBank(cartridge);\n\t\tthis._chrRomBank7 = this._newChrBank(cartridge);\n\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\t// Address range Size Description\n\t\t\tthis._chrRomBank0, // $0000-$03FF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank1, // $0400-$07FF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank2, // $0800-$0BFF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank3, // $0C00-$0FFF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank4, // $1000-$13FF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank5, // $1400-$17FF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank6, // $1800-$1BFF $400 CHR ROM (switchable)\n\t\t\tthis._chrRomBank7 // $1C00-$1FFF $400 CHR ROM (switchable)\n\t\t]);\n\t}\n\n\t/** Maps a CPU write operation. */\n\tcpuWriteAt(address, byte) {\n\t\t// (the writes are differentiated in even and odd, depending on `address`)\n\t\tconst isEven = address % 2 === 0;\n\n\t\tif (address >= 0x8000 && address < 0x9fef) {\n\t\t\tconst { bankSelect } = this._state;\n\n\t\t\tif (isEven) {\n\t\t\t\t// Writes to Bank select register\n\t\t\t\tbankSelect.setValue(byte);\n\t\t\t} else {\n\t\t\t\t// Writes the page of the bank that was select with the even write before\n\t\t\t\tthis._state.bankData[bankSelect.bankRegister] = byte;\n\t\t\t\tthis._loadPRGBanks();\n\t\t\t\tthis._loadCHRBanks();\n\t\t\t}\n\n\t\t\treturn;\n\t\t} else if (address >= 0xa000 && address < 0xbfff) {\n\t\t\tif (isEven) {\n\t\t\t\t// Mirroring\n\t\t\t\t// This changes the Name table mirroring type.\n\t\t\t\tthis.context.ppu.memory.changeNameTablesMirroringTo(\n\t\t\t\t\tbyte & 1 ? \"HORIZONTAL\" : \"VERTICAL\"\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn;\n\t\t} else if (address >= 0xc000 && address < 0xe000) {\n\t\t\tif (isEven) {\n\t\t\t\t// IRQ latch\n\t\t\t\t// This register holds the value, that will be loaded into the actual\n\t\t\t\t// scanline counter when a reload is forced, or when the counter reached zero.\n\t\t\t\tthis._state.irqLatch = byte;\n\t\t\t} else {\n\t\t\t\t// IRQ reload\n\t\t\t\t// This register resets the actual scanline counter, and will push the\n\t\t\t\t// IRQ latch value to the counter in the next scanline.\n\t\t\t\tthis._state.irqCountdown = 0;\n\t\t\t}\n\t\t\treturn;\n\t\t} else if (address >= 0xe000) {\n\t\t\tif (isEven) {\n\t\t\t\t// IRQ disable\n\t\t\t\t// Writing to this register will disable the IRQ generation.\n\t\t\t\tthis._state.irqEnabled = false;\n\t\t\t} else {\n\t\t\t\t// IRQ enable\n\t\t\t\t// Writing to this address area will enable IRQ generation again.\n\t\t\t\tthis._state.irqEnabled = true;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tthis.context.cpu.memory.writeAt(address, byte);\n\t}\n\n\t/** Runs at cycle 260 of every scanline (including preline). Returns a CPU interrupt or null. */\n\ttick() {\n\t\tif (this._state.irqCountdown === 0) {\n\t\t\tthis._state.irqCountdown = this._state.irqLatch;\n\t\t} else {\n\t\t\tthis._state.irqCountdown--;\n\n\t\t\tif (this._state.irqCountdown === 0 && this._state.irqEnabled)\n\t\t\t\treturn interrupts.IRQ;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn _.assign(super.getSaveState(), {\n\t\t\tbankSelect: this._state.bankSelect.value,\n\t\t\tbankData: Array.from(this._state.bankData),\n\t\t\tirqEnabled: this._state.irqEnabled,\n\t\t\tirqLatch: this._state.irqLatch,\n\t\t\tirqCountdown: this._state.irqCountdown\n\t\t});\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tsuper.setSaveState(saveState);\n\n\t\tthis._state.bankSelect.setValue(saveState.bankSelect);\n\t\tthis._state.bankData = Array.from(saveState.bankData);\n\t\tthis._state.irqEnabled = saveState.irqEnabled;\n\t\tthis._state.irqLatch = saveState.irqLatch;\n\t\tthis._state.irqCountdown = saveState.irqCountdown;\n\t\tthis._loadPRGBanks();\n\t\tthis._loadCHRBanks();\n\t}\n\n\t_loadPRGBanks() {\n\t\tconst { bankSelect, bankData } = this._state;\n\n\t\tif (bankSelect.prgRomBankMode === 0) {\n\t\t\tthis._prgRomBank0.bytes = this._getPrgPage(bankData[6]);\n\t\t\tthis._prgRomBank1.bytes = this._getPrgPage(bankData[7]);\n\t\t\tthis._prgRomBank2.bytes = this._getPrgPage(this.prgPages.length - 2);\n\t\t} else {\n\t\t\tthis._prgRomBank0.bytes = this._getPrgPage(this.prgPages.length - 2);\n\t\t\tthis._prgRomBank1.bytes = this._getPrgPage(bankData[7]);\n\t\t\tthis._prgRomBank2.bytes = this._getPrgPage(bankData[6]);\n\t\t}\n\n\t\t/**\n\t\t * PRG map mode | $8000.D6 = 0 | $8000.D6 = 1\n\t\t * ------------------------------------------\n\t\t * CPU Bank | Value of MMC3 register\n\t\t * ------------------------------------------\n\t\t * $8000-$9FFF | R6 | (-2)\n\t\t * $A000-$BFFF | R7 | R7\n\t\t * $C000-$DFFF | (-2) | R6\n\t\t * $E000-$FFFF | (-1) | (-1)\n\t\t *\n\t\t * (-1) : the last bank\n\t\t * (-2) : the second last bank\n\t\t */\n\t}\n\n\t_loadCHRBanks() {\n\t\tconst { bankSelect, bankData } = this._state;\n\n\t\tconst r0 = bankData[0] & 0b11111110;\n\t\tconst r1 = bankData[1] & 0b11111110;\n\n\t\tif (bankSelect.chrRomA12Inversion === 0) {\n\t\t\tthis._chrRomBank0.bytes = this._getChrPage(r0);\n\t\t\tthis._chrRomBank1.bytes = this._getChrPage(r0 + 1);\n\t\t\tthis._chrRomBank2.bytes = this._getChrPage(r1);\n\t\t\tthis._chrRomBank3.bytes = this._getChrPage(r1 + 1);\n\t\t\tthis._chrRomBank4.bytes = this._getChrPage(bankData[2]);\n\t\t\tthis._chrRomBank5.bytes = this._getChrPage(bankData[3]);\n\t\t\tthis._chrRomBank6.bytes = this._getChrPage(bankData[4]);\n\t\t\tthis._chrRomBank7.bytes = this._getChrPage(bankData[5]);\n\t\t} else {\n\t\t\tthis._chrRomBank0.bytes = this._getChrPage(bankData[2]);\n\t\t\tthis._chrRomBank1.bytes = this._getChrPage(bankData[3]);\n\t\t\tthis._chrRomBank2.bytes = this._getChrPage(bankData[4]);\n\t\t\tthis._chrRomBank3.bytes = this._getChrPage(bankData[5]);\n\t\t\tthis._chrRomBank4.bytes = this._getChrPage(r0);\n\t\t\tthis._chrRomBank5.bytes = this._getChrPage(r0 + 1);\n\t\t\tthis._chrRomBank6.bytes = this._getChrPage(r1);\n\t\t\tthis._chrRomBank7.bytes = this._getChrPage(r1 + 1);\n\t\t}\n\n\t\t/**\n\t\t * CHR map mode | $8000.D7 = 0 | $8000.D7 = 1\n\t\t * ------------------------------------------\n\t\t * PPU Bank\t | Value of MMC3 register\n\t\t * ------------------------------------------\n\t\t * $0000-$03FF | R0 | R2\n\t\t * $0400-$07FF | ^^ | R3\n\t\t * $0800-$0BFF | R1 | R4\n\t\t * $0C00-$0FFF | ^^ | R5\n\t\t * $1000-$13FF | R2 | R0\n\t\t * $1400-$17FF | R3 | ^^\n\t\t * $1800-$1BFF | R4 | R1\n\t\t * $1C00-$1FFF | R5 | ^^\n\t\t */\n\t}\n}\n\n/**\n * Bank select ($8000-$9FEE, even address)\n * ---- ----\n * CPMx xRRR\n * ||| |||\n * ||| +++- Specify which bank register to update on next write to Bank Data register\n * ||| 000: R0: Select 2 KB CHR bank at PPU $0000-$07FF (or $1000-$17FF)\n * ||| 001: R1: Select 2 KB CHR bank at PPU $0800-$0FFF (or $1800-$1FFF)\n * ||| 010: R2: Select 1 KB CHR bank at PPU $1000-$13FF (or $0000-$03FF)\n * ||| 011: R3: Select 1 KB CHR bank at PPU $1400-$17FF (or $0400-$07FF)\n * ||| 100: R4: Select 1 KB CHR bank at PPU $1800-$1BFF (or $0800-$0BFF)\n * ||| 101: R5: Select 1 KB CHR bank at PPU $1C00-$1FFF (or $0C00-$0FFF)\n * ||| 110: R6: Select 8 KB PRG ROM bank at $8000-$9FFF (or $C000-$DFFF)\n * ||| 111: R7: Select 8 KB PRG ROM bank at $A000-$BFFF\n * ||+------- Nothing on the MMC3, see MMC6\n * |+-------- PRG ROM bank mode (0: $8000-$9FFF swappable,\n * | $C000-$DFFF fixed to second-last bank;\n * | 1: $C000-$DFFF swappable,\n * | $8000-$9FFF fixed to second-last bank)\n * +--------- CHR A12 inversion (0: two 2 KB banks at $0000-$0FFF,\n four 1 KB banks at $1000-$1FFF;\n 1: two 2 KB banks at $1000-$1FFF,\n four 1 KB banks at $0000-$0FFF)\n */\nclass BankSelectRegister extends InMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"bankRegister\", 0, 3)\n\t\t\t.addReadOnlyField(\"prgRomBankMode\", 6)\n\t\t\t.addReadOnlyField(\"chrRomA12Inversion\", 7);\n\t}\n}\n","import _0_NROM from \"./_0_NROM\";\nimport _1_MMC1 from \"./_1_MMC1\";\nimport _2_UxROM from \"./_2_UxROM\";\nimport _3_CNROM from \"./_3_CNROM\";\nimport _4_MMC3 from \"./_4_MMC3\";\nimport _ from \"lodash\";\n\nexport default _.keyBy([_0_NROM, _1_MMC1, _2_UxROM, _3_CNROM, _4_MMC3], \"id\");\n","/** Compile-time options that change the emulator's behavior. */\nexport default {\n\t// [frontend]\n\tSYNC_TO_AUDIO: true,\n\tAUDIO_BUFFER_LIMIT: 4096,\n\tAUDIO_BUFFER_SIZE: 8192,\n\tFPS: 60.098,\n\n\t// [emulator]\n\tBASE_VOLUME: 1,\n\tMIN_FREQUENCY_CHANGE: 5,\n\tPULSE_CHANNEL_VOLUME: 1,\n\tTRIANGLE_CHANNEL_VOLUME: 1,\n\tNOISE_CHANNEL_VOLUME: 1,\n\tDMC_CHANNEL_VOLUME: 1,\n\n\t// [test]\n\tNESTEST_PATH: \"./public/testroms/nestest.nes\"\n};\n","const KB = 1024;\nconst SCREEN_WIDTH = 256;\nconst SCREEN_HEIGHT = 240;\nconst PPU_FRAME_RATE = 60.098;\nconst APU_SAMPLE_RATE = 44100;\nconst TILE_LENGTH = 8;\nconst ATTRIBUTE_TABLE_BLOCK_SIZE = 32;\nconst ATTRIBUTE_TABLE_REGION_SIZE = 16;\n\n/** NES Emulation constants. */\nexport default {\n\tSCREEN_WIDTH,\n\tSCREEN_HEIGHT,\n\tTOTAL_PIXELS: SCREEN_WIDTH * SCREEN_HEIGHT,\n\tBUTTONS: 8,\n\tKB,\n\n\tROM_MAGIC_NUMBER: \"NES\",\n\tROM_HEADER_SIZE: 16,\n\tROM_TRAINER_SIZE: 512,\n\tPRG_ROM_PAGE_SIZE: 16 * KB,\n\tCHR_ROM_PAGE_SIZE: 8 * KB,\n\tCHR_RAM_PAGES: 1,\n\tCARTRIDGE_RAM_SIZE: 8 * KB,\n\n\tPPU_STEPS_PER_CPU_CYCLE: 3,\n\tAPU_STEPS_PER_CPU_CYCLE: 0.5,\n\tAPU_HIGH_FREQUENCY_CYCLES: 6,\n\n\tCPU_ADDRESSED_MEMORY: 64 * KB,\n\tCPU_STACK_START_ADDRESS: 0x0100,\n\tCPU_MAPPER_START_ADDRESS: 0x4020,\n\tCPU_INTERRUPT_CYCLES: 7,\n\n\tPPU_FRAME_RATE,\n\tPPU_ADDRESSED_PALETTE_RAM_START_ADDRESS: 0x3f00,\n\tPPU_OAM_SIZE: 256,\n\tPPU_LAST_CYCLE: 340,\n\tPPU_LAST_SCANLINE: 260,\n\tOAMDMA_CPU_CYCLES: 513,\n\tPPU_CYCLE_CLEAR_FLAGS: 1,\n\tPPU_CYCLE_VBLANK: 1,\n\tPPU_CYCLE_RENDER_BACKGROUND: 0,\n\tPPU_CYCLE_RENDER_SPRITES: 0,\n\tPPU_CYCLE_MAPPER_TICK: 260,\n\n\tFREQ_CPU_HZ: 1789773,\n\tFREQ_PPU_HZ: 5369318,\n\tAPU_SAMPLE_RATE,\n\tAPU_MAX_VOLUME: 15,\n\tAPU_MIN_TIMER: 8,\n\tAPU_MAX_TIMER: 0x7ff,\n\n\tTILE_LENGTH,\n\tTILE_SIZE: 16,\n\tSPRITE_WIDTH: 8,\n\tSPRITE_SIZE: 4,\n\tMAX_SPRITES: 64,\n\tMAX_SPRITES_PER_SCANLINE: 8,\n\tCOLOR_TRANSPARENT: 0,\n\n\tNAME_TABLES_START_ADDRESS: 0x2000,\n\tNAME_TABLE_TOTAL_TILES_X: SCREEN_WIDTH / TILE_LENGTH,\n\tNAME_TABLE_SIZE: 1024,\n\n\tATTRIBUTE_TABLE_BLOCK_SIZE,\n\tATTRIBUTE_TABLE_TOTAL_BLOCKS_X: SCREEN_WIDTH / ATTRIBUTE_TABLE_BLOCK_SIZE,\n\tATTRIBUTE_TABLE_REGION_SIZE,\n\tATTRIBUTE_TABLE_TOTAL_REGIONS_X:\n\t\tATTRIBUTE_TABLE_BLOCK_SIZE / ATTRIBUTE_TABLE_REGION_SIZE,\n\tATTRIBUTE_TABLE_REGION_SIZE_BITS: 2,\n\tATTRIBUTE_TABLE_SIZE: 64,\n\n\tPATTERN_TABLES_START_ADDRESS: 0x0000,\n\tPATTERN_TABLE_SIZE: 0x1000,\n\tPALETTE_BACKGROUND_START: 0,\n\tPALETTE_FOREGROUND_START: 4,\n\tPALETTE_SIZE: 4,\n\n\tLOOPY_ADDR_COARSE_X_OFFSET: 0,\n\tLOOPY_ADDR_COARSE_X_MASK: 0b11111,\n\tLOOPY_ADDR_COARSE_Y_OFFSET: 5,\n\tLOOPY_ADDR_COARSE_Y_MASK: 0b11111,\n\tLOOPY_ADDR_BASE_NAME_TABLE_ID_OFFSET: 10,\n\tLOOPY_ADDR_BASE_NAME_TABLE_ID_MASK: 0b11,\n\tLOOPY_ADDR_FINE_Y_OFFSET: 12,\n\tLOOPY_ADDR_FINE_Y_MASK: 0b111,\n\n\tSPRITE_BYTE_Y: 0,\n\tSPRITE_BYTE_TILE_ID: 1,\n\tSPRITE_BYTE_ATTRIBUTES: 2,\n\tSPRITE_BYTE_X: 3,\n\tSPRITE_ATTR_PALETTE_BITS_START: 0,\n\tSPRITE_ATTR_PALETTE_BITS_SIZE: 2,\n\tSPRITE_ATTR_PRIORITY_BIT: 5,\n\tSPRITE_ATTR_HORIZONTAL_FLIP_BIT: 6,\n\tSPRITE_ATTR_VERTICAL_FLIP_BIT: 7,\n\tSPRITE_8x16_PATTERN_TABLE_MASK: 0b1,\n\tSPRITE_8x16_TILE_ID_MASK: 0xfe\n};\n","import PrimaryControllerPort from \"./PrimaryControllerPort\";\nimport SecondaryControllerPort from \"./SecondaryControllerPort\";\n\n/** An NES controller, which updates a `ControllerPort`. */\nexport default class Controller {\n\tconstructor(port) {\n\t\tthis.port = port;\n\n\t\tthis.buttons = {\n\t\t\tBUTTON_A: false,\n\t\t\tBUTTON_B: false,\n\t\t\tBUTTON_SELECT: false,\n\t\t\tBUTTON_START: false,\n\t\t\tBUTTON_UP: false,\n\t\t\tBUTTON_DOWN: false,\n\t\t\tBUTTON_LEFT: false,\n\t\t\tBUTTON_RIGHT: false\n\t\t};\n\t}\n\n\t/** Creates a pair of connected controller ports. */\n\tstatic createPorts() {\n\t\tconst primary = new PrimaryControllerPort();\n\t\tconst secondary = new SecondaryControllerPort(primary);\n\t\tprimary.setSecondary(secondary);\n\n\t\treturn { primary, secondary };\n\t}\n\n\t/** Updates the state of a `button`, and writes the controller port. */\n\tupdate(button, isPressed) {\n\t\tthis.buttons[button] = isPressed;\n\t\tthis.port.value = this.toByte();\n\t}\n\n\t/** Clears the state of all buttons, and writes the controller port. */\n\tclear() {\n\t\tfor (let button in this.buttons) this.buttons[button] = false;\n\t\tthis.port.value = this.toByte();\n\t}\n\n\t/** Returns a binary representation of the current state. */\n\ttoByte() {\n\t\treturn (\n\t\t\t(this.buttons.BUTTON_A && 1 << 0) |\n\t\t\t(this.buttons.BUTTON_B && 1 << 1) |\n\t\t\t(this.buttons.BUTTON_SELECT && 1 << 2) |\n\t\t\t(this.buttons.BUTTON_START && 1 << 3) |\n\t\t\t(this.buttons.BUTTON_UP && 1 << 4) |\n\t\t\t(this.buttons.BUTTON_DOWN && 1 << 5) |\n\t\t\t(this.buttons.BUTTON_LEFT && 1 << 6) |\n\t\t\t(this.buttons.BUTTON_RIGHT && 1 << 7)\n\t\t);\n\t}\n}\n","import { InMemoryRegister } from \"../registers\";\nimport constants from \"../constants\";\nimport { Byte } from \"../helpers\";\n\n/**\n * Controller Port Register\n *\n * If the \"strobe\" flag is active, reads return the current state of the A button.\n * If not, reads return the current state of [A, B, Select, Start, Up, Down, Left, Right] in a loop.\n */\nexport default class ControllerPort extends InMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.cursor = 0;\n\t}\n\n\t/** Returns the strobe flag. */\n\tget strobe() {\n\t\tthrow new Error(\"not_implemented\");\n\t}\n\n\t/** Reads the current buton state, and updates the cursor if the strobe flag is on. */\n\treadAt() {\n\t\tif (this.cursor >= constants.BUTTONS) return 1;\n\n\t\tconst isPressed = Byte.getBit(this.value, this.cursor);\n\t\tif (!this.strobe) this.cursor++;\n\n\t\treturn isPressed;\n\t}\n}\n","import ControllerPort from \"./ControllerPort\";\nimport { Byte } from \"../helpers\";\n\nconst STROBE_BIT = 0;\n\n/**\n * Primary Controller Port Register (<> read/write)\n *\n * Writing a value here affects the \"strobe\" flag (bit 0).\n * Games usually write 1, then 0, and then perform 8 consecutive reads to get the state of all buttons.\n */\nexport default class PrimaryControllerPort extends ControllerPort {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._strobe = false;\n\t\tthis._secondary = null;\n\t}\n\n\t/** Returns the strobe flag. */\n\tget strobe() {\n\t\treturn this._strobe;\n\t}\n\n\t/** Sets a `secondary` controller port, that will be affected by the strobe flag. */\n\tsetSecondary(secondary) {\n\t\tthis._secondary = secondary;\n\t}\n\n\t/** Writes the strobe flag, potentially resetting the cursor. */\n\twriteAt(__, byte) {\n\t\tthis._strobe = !!Byte.getBit(byte, STROBE_BIT);\n\n\t\tif (this._strobe) {\n\t\t\tthis.cursor = 0;\n\t\t\tif (this._secondary) this._secondary.cursor = 0;\n\t\t}\n\t}\n}\n","import ControllerPort from \"./ControllerPort\";\n\n/**\n * Secondary Controller Port Register (< read)\n *\n * Writing a value here does nothing.\n * Reads work using the Primary Controller Port's strobe flag.\n */\nexport default class SecondaryControllerPort extends ControllerPort {\n\tconstructor(primary) {\n\t\tsuper();\n\n\t\tthis._primary = primary;\n\t}\n\n\t/** Returns the strobe flag. */\n\tget strobe() {\n\t\treturn this._primary.strobe;\n\t}\n\n\t/** Writes nothing (read-only address). */\n\twriteAt() {}\n}\n","import Controller from \"./Controller\";\n\nexport default Controller;\n","import { Register8Bit, Register16Bit, FlagsRegister } from \"./registers\";\nimport CPUMemoryMap from \"./CPUMemoryMap\";\nimport Stack from \"./Stack\";\nimport operations from \"./operations\";\nimport { interrupts } from \"./constants\";\nimport constants from \"../constants\";\nimport { WithContext } from \"../helpers\";\n\n/** The Center Processing Unit. It runs programs. */\nexport default class CPU {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.pc = new Register16Bit(); // -> program counter\n\t\tthis.sp = new Register8Bit(); // -> stack pointer\n\t\tthis.flags = new FlagsRegister(); // -> also called \"P\" register\n\t\tthis.cycle = 0; // -> current cycle\n\t\tthis.extraCycles = 0; // -> pending cycles (to add in next step)\n\n\t\tthis.registers = {\n\t\t\ta: new Register8Bit(0), // accumulator\n\t\t\tx: new Register8Bit(0), // index X\n\t\t\ty: new Register8Bit(0) // index Y\n\t\t};\n\n\t\tthis.memory = new CPUMemoryMap();\n\t\tthis.stack = new Stack();\n\n\t\tthis._argument = null;\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.memory.loadContext(context);\n\t\tthis.stack.loadContext(context);\n\t\tthis._reset();\n\t}\n\n\t/** Executes the next step (1 step = 1 instruction = N cycles). Returns N. */\n\tstep() {\n\t\tconst pc = this.pc.value;\n\t\tconst operation = this._readOperation();\n\t\tconst argument = this._readArgument(operation);\n\n\t\tif (this.context.logger)\n\t\t\tthis.context.logger.log({\n\t\t\t\tcontext: this.context,\n\t\t\t\tpc,\n\t\t\t\toperation,\n\t\t\t\tinitialArgument: this._argument,\n\t\t\t\tfinalArgument: argument\n\t\t\t});\n\n\t\toperation.instruction.execute(this.context, argument);\n\t\tconst cycles = operation.cycles + this.extraCycles;\n\t\tthis.cycle += cycles;\n\t\tthis.extraCycles = 0;\n\n\t\treturn cycles;\n\t}\n\n\t/** Pushes the context to the stack and jumps to the interrupt handler. */\n\tinterrupt(interrupt, withB2Flag) {\n\t\tif (interrupt.id === \"IRQ\" && !this._areInterruptsEnabled) return 0;\n\n\t\tthis.stack.push2Bytes(this.pc.value);\n\t\tthis.pushFlags(withB2Flag);\n\n\t\tthis.cycle += constants.CPU_INTERRUPT_CYCLES;\n\n\t\tthis.flags.i = true; // (to make sure handler doesn't get interrupted)\n\t\tthis._jumpToInterruptHandler(interrupt);\n\n\t\treturn constants.CPU_INTERRUPT_CYCLES;\n\t}\n\n\t/**\n\t * Pushes the flags to the stack.\n\t * B1 (bit 5) is always on, while B2 (bit 4) depends on `withB2Flag`.\n\t */\n\tpushFlags(withB2Flag = false) {\n\t\tthis.stack.push(this.flags.toByte() | (withB2Flag && 0b00010000));\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tpc: this.pc.value,\n\t\t\tsp: this.sp.value,\n\t\t\tflags: this.flags.toByte(),\n\t\t\tcycle: this.cycle,\n\t\t\ta: this.registers.a.value,\n\t\t\tx: this.registers.x.value,\n\t\t\ty: this.registers.y.value,\n\t\t\tmemory: this.memory.getSaveState()\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.pc.value = saveState.pc;\n\t\tthis.sp.value = saveState.sp;\n\t\tthis.flags.load(saveState.flags);\n\t\tthis.cycle = saveState.cycle;\n\t\tthis.registers.a.value = saveState.a;\n\t\tthis.registers.x.value = saveState.x;\n\t\tthis.registers.y.value = saveState.y;\n\t\tthis.memory.setSaveState(saveState.memory);\n\t}\n\n\t_reset() {\n\t\tthis.pc.reset();\n\t\tthis.sp.reset();\n\t\tthis.cycle = 0;\n\t\tthis.extraCycles = 0;\n\t\tthis.registers.a.reset();\n\t\tthis.registers.x.reset();\n\t\tthis.registers.y.reset();\n\t\tthis._argument = null;\n\n\t\tthis.interrupt(interrupts.RESET);\n\t}\n\n\t_readOperation() {\n\t\tconst opcode = this.memory.readAt(this.pc.value);\n\t\tconst operation = operations[opcode];\n\t\tif (!operation)\n\t\t\tthrow new Error(`Unknown opcode: 0x${opcode.toString(16)}.`);\n\t\tthis.pc.increment();\n\n\t\treturn operation;\n\t}\n\n\t_readArgument({ instruction, addressing, canTakeExtraCycles }) {\n\t\tconst argument = this.memory.readBytesAt(\n\t\t\tthis.pc.value,\n\t\t\taddressing.parameterSize\n\t\t);\n\t\tthis.pc.value += addressing.parameterSize;\n\t\tthis._argument = argument;\n\n\t\treturn instruction.needsValue\n\t\t\t? addressing.getValue(this.context, argument, canTakeExtraCycles)\n\t\t\t: addressing.getAddress(this.context, argument, canTakeExtraCycles);\n\t}\n\n\t_jumpToInterruptHandler(interrupt) {\n\t\tthis.pc.value = this.memory.read2BytesAt(interrupt.vector);\n\t}\n\n\tget _areInterruptsEnabled() {\n\t\treturn !this.flags.i;\n\t}\n}\n","import {\n\tWithCompositeMemory,\n\tMemoryChunk,\n\tMemoryMirror,\n\tMemoryPadding\n} from \"../memory\";\nimport { MixedInMemoryRegister } from \"../registers\";\nimport { WithContext } from \"../helpers\";\n\n/** The CPU memory map. Addess space size: 64KB. */\nexport default class CPUMemoryMap {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t\tWithCompositeMemory.apply(this);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad({ ppu, apu, mapper, controllers }) {\n\t\tthis.ram = new MemoryChunk(0x0800);\n\t\tconst ramMirror = new MemoryMirror(this.ram, 0x1800);\n\t\tconst ppuRegisters = ppu.registers.toMemory();\n\t\tconst ppuRegistersMirror = new MemoryMirror(ppuRegisters, 0x1ff8);\n\t\tconst apuRegisters = apu.registers.toMemory();\n\t\tconst port2AndFrameCounter = new MixedInMemoryRegister(\n\t\t\tcontrollers[1].port,\n\t\t\tapu.registers.apuFrameCounter\n\t\t);\n\t\tconst cpuTestModeRegisters = new MemoryPadding(0x0008);\n\n\t\tthis.defineChunks([\n\t\t\t// Address range Size Device\n\t\t\tthis.ram, // $0000-$07FF $0800 2KB internal RAM\n\t\t\tramMirror, // $0800-$1FFF $1800 Mirrors of $0000-$07FF\n\t\t\tppuRegisters, // $2000-$2007 $0008 NES PPU registers\n\t\t\tppuRegistersMirror, // $2008-$3FFF $1FF8 Mirrors of $2000-$2007 (repeats every 8 bytes)\n\t\t\tapuRegisters, // $4000-$4013 $0014 NES APU registers\n\t\t\tppu.registers.oamDma, // $4014-$4014 $0001 PPU's OAM DMA register\n\t\t\tapu.registers.apuMain, // $4015-$4015 $0001 APU status/control register\n\t\t\tcontrollers[0].port, // $4016-$4016 $0001 Controller port 1\n\t\t\tport2AndFrameCounter, // $4017-$4017 $0001 Controller port 2 and APU frame counter\n\t\t\tcpuTestModeRegisters, // $4018-$401F $0008 APU and I/O functionality that is normally disabled\n\t\t\tmapper.segments.cpu // $4020-$FFFF $BFE0 Cartridge space: PRG ROM, PRG RAM, and mapper registers\n\t\t]);\n\t}\n\n\t/** Reads a `byte` from `address`, which can be a register or a memory address. */\n\treadAt(address) {\n\t\treturn address.value != null\n\t\t\t? address.value\n\t\t\t: WithCompositeMemory.readAt.call(this, address);\n\t}\n\n\t/** Writes a `byte` to `address`, which can be a register or a memory address. */\n\twriteAt(address, byte) {\n\t\tif (address.value != null) address.value = byte;\n\t\telse WithCompositeMemory.writeAt.call(this, address, byte);\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\tconst { ppu, apu } = this.context;\n\n\t\treturn {\n\t\t\tram: Array.from(this.ram.bytes),\n\t\t\tppuRegisters: ppu.registers.toMemory().chunks.map((it) => it.value),\n\t\t\tapuRegisters: apu.registers.toMemory().chunks.map((it) => it.value),\n\t\t\tapuControl: apu.registers.apuControl.value,\n\t\t\tapuFrameCounter: apu.registers.apuFrameCounter.value\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tconst { ppu, apu } = this.context;\n\n\t\tthis.ram.bytes.set(saveState.ram);\n\t\tppu.registers.toMemory().chunks.forEach((chunk, i) => {\n\t\t\tchunk.setValue && chunk.setValue(saveState.ppuRegisters[i]);\n\t\t});\n\t\tapu.registers.toMemory().chunks.forEach((chunk, i) => {\n\t\t\tchunk.setValue && chunk.setValue(saveState.apuRegisters[i]);\n\t\t});\n\t\tapu.registers.apuControl.setValue(saveState.apuControl);\n\t\tapu.registers.apuFrameCounter.setValue(saveState.apuFrameCounter);\n\t}\n}\n","import constants from \"../constants\";\nimport { WithContext, Byte } from \"../helpers\";\n\n/** An in-memory stack, controlled by the CPU. */\nexport default class Stack {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t}\n\n\t/** Pushes a `value` into the stack. */\n\tpush(value) {\n\t\tthis.context.memoryBus.cpu.writeAt(this.currentAddress, value);\n\t\tthis.context.cpu.sp.decrement();\n\t}\n\n\t/** Pulls a value from the stack. */\n\tpop() {\n\t\tthis.context.cpu.sp.increment();\n\t\treturn this.context.cpu.memory.readAt(this.currentAddress);\n\t}\n\n\t/** Pushes a 16-bit `value` into the stack. */\n\tpush2Bytes(value) {\n\t\tconst low = Byte.lowPartOf(value);\n\t\tconst high = Byte.highPartOf(value);\n\t\tthis.push(high);\n\t\tthis.push(low);\n\t}\n\n\t/** Pulls a 16-bit `value` from the stack. */\n\tpop2Bytes() {\n\t\tconst low = this.pop();\n\t\tconst high = this.pop();\n\n\t\treturn Byte.to16Bit(high, low);\n\t}\n\n\t/** Returns the current address of the stack. */\n\tget currentAddress() {\n\t\treturn constants.CPU_STACK_START_ADDRESS + this.context.cpu.sp.value;\n\t}\n}\n","export default function(context, parameter, canTakeExtraCycles) {\n\tconst address = this.getAddress(context, parameter, canTakeExtraCycles);\n\treturn context.cpu.memory.readAt(address);\n}\n","import { Byte } from \"../../helpers\";\n\nexport default function indexedGetAddress(register) {\n\treturn function({ cpu }, address, canTakeExtraCycles) {\n\t\tconst newAddress = address + cpu.registers[register].value;\n\t\tconst pageCrossed =\n\t\t\tByte.highPartOf(address) !== Byte.highPartOf(newAddress);\n\n\t\tif (pageCrossed && canTakeExtraCycles) cpu.extraCycles++;\n\n\t\treturn Byte.force16Bit(newAddress);\n\t};\n}\n","import getValue from \"./_getValue\";\n\n/**\n * \"Absolute\" addressing mode.\n *\n * The parameter is an absolute memory address.\n */\nexport default {\n\tid: \"ABSOLUTE\",\n\tparameterSize: 2,\n\tgetAddress: (context, address) => address,\n\tgetValue\n};\n","/**\n * \"Accummulator\" addressing mode.\n *\n * The parameter is the A register.\n */\nexport default {\n\tid: \"ACCUMULATOR\",\n\tparameterSize: 0,\n\tgetAddress: ({ cpu }) => cpu.registers.a,\n\tgetValue: () => {\n\t\tthrow new Error(\n\t\t\t\"The ACCUMULATOR addressing mode only supports the `getAddress` method\"\n\t\t);\n\t}\n};\n","/**\n * \"Immediate\" addressing mode.\n *\n * The parameter is the actual value to use.\n */\nexport default {\n\tid: \"IMMEDIATE\",\n\tparameterSize: 1,\n\tgetAddress: () => {\n\t\tthrow new Error(\n\t\t\t\"The IMMEDIATE addressing mode only supports the `getValue` method\"\n\t\t);\n\t},\n\tgetValue: (context, value) => value\n};\n","/**\n * \"Implicit\" addressing mode.\n *\n * There's no extra parameter, it's implied by the instruction.\n */\nexport default {\n\tid: \"IMPLICIT\",\n\tparameterSize: 0,\n\tgetAddress: (context) => null,\n\tgetValue: () => {\n\t\tthrow new Error(\n\t\t\t\"The IMPLICIT addressing mode only supports the `getAddress` method (and it always returns null)\"\n\t\t);\n\t}\n};\n","import implicit from \"./implicit\";\nimport immediate from \"./immediate\";\nimport absolute from \"./absolute\";\nimport indexedAbsoluteX from \"./indexedAbsoluteX\";\nimport indexedAbsoluteY from \"./indexedAbsoluteY\";\nimport zeroPage from \"./zeroPage\";\nimport indexedZeroPageX from \"./indexedZeroPageX\";\nimport indexedZeroPageY from \"./indexedZeroPageY\";\nimport indirect from \"./indirect\";\nimport indexedIndirectX from \"./indexedIndirectX\";\nimport indexedIndirectY from \"./indexedIndirectY\";\nimport relative from \"./relative\";\nimport accumulator from \"./accumulator\";\nimport _ from \"lodash\";\n\nexport default _.keyBy(\n\t[\n\t\timplicit,\n\t\timmediate,\n\t\tabsolute,\n\t\tindexedAbsoluteX,\n\t\tindexedAbsoluteY,\n\t\tzeroPage,\n\t\tindexedZeroPageX,\n\t\tindexedZeroPageY,\n\t\tindirect,\n\t\tindexedIndirectX,\n\t\tindexedIndirectY,\n\t\trelative,\n\t\taccumulator\n\t],\n\t\"id\"\n);\n","import indexedGetAddress from \"./_indexedGetAddress\";\nimport getValue from \"./_getValue\";\n\n/**\n * \"Absolute,X\" addressing mode.\n *\n * The parameter is an absolute memory address.\n * The final address is that number plus the contents of X.\n */\nexport default {\n\tid: \"INDEXED_ABSOLUTE_X\",\n\tparameterSize: 2,\n\tgetAddress: indexedGetAddress(\"x\"),\n\tgetValue\n};\n","import indexedGetAddress from \"./_indexedGetAddress\";\nimport getValue from \"./_getValue\";\n\n/**\n * \"Absolute,Y\" addressing mode.\n *\n * The parameter is an absolute memory address.\n * The final address is that number plus the contents of Y.\n */\nexport default {\n\tid: \"INDEXED_ABSOLUTE_Y\",\n\tparameterSize: 2,\n\tgetAddress: indexedGetAddress(\"y\"),\n\tgetValue\n};\n","import { getIndirectAddress } from \"./indirect\";\nimport getValue from \"./_getValue\";\n\n/**\n * \"Indexed indirect\" addressing mode.\n *\n * The parameter is a single-byte memory address, but the contents of X is\n * added to that address, and the result is used to look up a two-byte address.\n */\nexport default {\n\tid: \"INDEXED_INDIRECT_X\",\n\tparameterSize: 1,\n\tgetAddress: (context, address) => {\n\t\treturn getIndirectAddress(context, address + context.cpu.registers.x.value);\n\t},\n\tgetValue\n};\n","import { getIndirectAddress } from \"./indirect\";\nimport indexedGetAddress from \"./_indexedGetAddress\";\nimport getValue from \"./_getValue\";\n\nconst indexedGetAddressY = indexedGetAddress(\"y\");\n\n/**\n * \"Indirect indexed\" addressing mode.\n *\n * The parameter is a single-byte memory address, which is dereferenced.\n * Then, the contents of Y is added to get the final address.\n */\nexport default {\n\tid: \"INDEXED_INDIRECT_Y\",\n\tparameterSize: 1,\n\tgetAddress: (context, address, canTakeExtraCycles) => {\n\t\treturn indexedGetAddressY(\n\t\t\tcontext,\n\t\t\tgetIndirectAddress(context, address),\n\t\t\tcanTakeExtraCycles\n\t\t);\n\t},\n\tgetValue\n};\n","import { Byte } from \"../../helpers\";\nimport indexedGetAddress from \"./_indexedGetAddress\";\nimport getValue from \"./_getValue\";\n\nconst indexedGetAddressX = indexedGetAddress(\"x\");\n\n/**\n * \"Zero page,X\" addressing mode.\n *\n * The parameter is a single-byte memory address.\n * The final address is that number plus the contents of X.\n */\nexport default {\n\tid: \"INDEXED_ZERO_PAGE_X\",\n\tparameterSize: 1,\n\tgetAddress: (context, address) => {\n\t\treturn Byte.force8Bit(indexedGetAddressX(context, address, false));\n\t},\n\tgetValue\n};\n","import { Byte } from \"../../helpers\";\nimport indexedGetAddress from \"./_indexedGetAddress\";\nimport getValue from \"./_getValue\";\n\nconst indexedGetAddressY = indexedGetAddress(\"y\");\n\n/**\n * \"Zero page,Y\" addressing mode.\n *\n * The parameter is a single-byte memory address.\n * The final address is that number plus the contents of Y.\n */\nexport default {\n\tid: \"INDEXED_ZERO_PAGE_Y\",\n\tparameterSize: 1,\n\tgetAddress: (context, address) => {\n\t\treturn Byte.force8Bit(indexedGetAddressY(context, address, false));\n\t},\n\tgetValue\n};\n","import { Byte } from \"../../helpers\";\nimport getValue from \"./_getValue\";\n\n/**\n * \"Indirect\" addressing mode.\n *\n * The parameter is an absolute memory address to look up another address.\n * The byte read from memory gives the least significant byte of the final\n * address, and the following byte gives the most significant byte.\n *\n * This addressing mode has a bug:\n * If `address` falls on a page boundary ($xxFF), it fetches the least significant byte from\n * $xxFF as expected, but takes the most significant byte from $xx00.\n */\nexport default {\n\tid: \"INDIRECT\",\n\tparameterSize: 2,\n\tgetAddress: ({ cpu }, address) => {\n\t\tconst msb = Byte.highPartOf(address);\n\t\tconst lsb = Byte.lowPartOf(address);\n\t\tconst low = cpu.memory.readAt(address);\n\t\tconst high = cpu.memory.readAt(\n\t\t\tlsb === 0xff ? Byte.to16Bit(msb, 0x00) : address + 1\n\t\t);\n\n\t\treturn Byte.to16Bit(high, low);\n\t},\n\tgetValue\n};\n\nexport const getIndirectAddress = ({ cpu }, address) => {\n\tconst start = Byte.force8Bit(address);\n\tconst end = Byte.force8Bit(start + 1);\n\tconst low = cpu.memory.readAt(start);\n\tconst high = cpu.memory.readAt(end);\n\n\treturn Byte.to16Bit(high, low);\n};\n","import { Byte } from \"../../helpers\";\nimport getValue from \"./_getValue\";\n\n/**\n * \"Relative\" addressing mode.\n *\n * The parameter is a signed relative offset from the following instruction.\n */\nexport default {\n\tid: \"RELATIVE\",\n\tparameterSize: 1,\n\tgetAddress: ({ cpu }, offset, canTakeExtraCycles) => {\n\t\tconst address = cpu.pc.value;\n\t\tconst newAddress = address + Byte.toNumber(offset);\n\t\tconst pageCrossed =\n\t\t\tByte.highPartOf(address) !== Byte.highPartOf(newAddress);\n\n\t\tif (pageCrossed && canTakeExtraCycles) cpu.extraCycles += 2;\n\n\t\treturn Byte.force16Bit(newAddress);\n\t},\n\tgetValue\n};\n","import getValue from \"./_getValue\";\n\n/**\n * \"Zero page\" addressing mode.\n *\n * The parameter is a single-byte memory address.\n * Only the first page (the first 256 bytes) of memory is accessible.\n */\nexport default {\n\tid: \"ZERO_PAGE\",\n\tparameterSize: 1,\n\tgetAddress: (context, address) => address,\n\tgetValue\n};\n","import _ from \"lodash\";\n\nconst interrupts = [\n\t// Non-maskable interrupt (used to detect vertical blanking)\n\t{\n\t\tid: \"NMI\",\n\t\tvector: 0xfffa\n\t},\n\n\t// Reset\n\t{\n\t\tid: \"RESET\",\n\t\tvector: 0xfffc\n\t},\n\n\t// Interrupt request (temporarily stops the current program, and run an interrupt handler instead)\n\t{\n\t\tid: \"IRQ\",\n\t\tvector: 0xfffe\n\t}\n];\n\nexport default _.keyBy(interrupts, \"id\");\n","import CPU from \"./CPU\";\n\nexport default CPU;\n","import { Byte } from \"../../helpers\";\n\nconst instructions = () => [\n\t/**\n\t * Add with Carry\n\t *\n\t * Adds the contents of `value` to A together with the carry bit, updating the Z and N flags.\n\t * The C and V flags are set in case of unsigned and signed overflow respectively.\n\t * Signed overflow occurs when `Positive + Positive = Negative` or `Negative + Negative = Positive`.\n\t */\n\t{\n\t\tid: \"ADC\",\n\t\tneedsValue: true,\n\t\texecute: ADC\n\t},\n\n\t/**\n\t * Arithmetic Shift Left\n\t *\n\t * Shifts all the bits of the value held at `address` one bit to the left.\n\t * Bit 7 is placed in the C flag and bit 0 is set to 0.\n\t * The Z and N flags are updated too.\n\t */\n\t{\n\t\tid: \"ASL\",\n\t\texecute: ({ cpu, memoryBus }, address) => {\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tconst result = value << 1;\n\t\t\tconst newValue = Byte.force8Bit(result);\n\n\t\t\tmemoryBus.cpu.writeAt(address, newValue);\n\t\t\tcpu.flags.updateZeroAndNegative(newValue);\n\t\t\tcpu.flags.c = Byte.hasOverflow(result);\n\t\t}\n\t},\n\n\t/**\n\t * Decrement Memory\n\t *\n\t * Substracts one from the value held at `address`, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"DEC\",\n\t\texecute: ({ cpu, memoryBus }, address) => {\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tconst newValue = Byte.force8Bit(value - 1);\n\n\t\t\tcpu.flags.updateZeroAndNegative(newValue);\n\t\t\tmemoryBus.cpu.writeAt(address, newValue);\n\t\t}\n\t},\n\n\t/**\n\t * Decrement X Register\n\t *\n\t * Substracts one from X, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"DEX\",\n\t\texecute: DE_(\"x\")\n\t},\n\n\t/**\n\t * Decrement Y Register\n\t *\n\t * Substracts one from Y, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"DEY\",\n\t\texecute: DE_(\"y\")\n\t},\n\n\t/**\n\t * Increment Memory\n\t *\n\t * Adds one to the value held at `address`, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"INC\",\n\t\texecute: ({ cpu, memoryBus }, address) => {\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tconst newValue = Byte.force8Bit(value + 1);\n\n\t\t\tcpu.flags.updateZeroAndNegative(newValue);\n\t\t\tmemoryBus.cpu.writeAt(address, newValue);\n\t\t}\n\t},\n\n\t/**\n\t * Increment X Register\n\t *\n\t * Adds one to X, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"INX\",\n\t\texecute: IN_(\"x\")\n\t},\n\n\t/**\n\t * Increment Y Register\n\t *\n\t * Adds one to Y, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"INY\",\n\t\texecute: IN_(\"y\")\n\t},\n\n\t/**\n\t * Logical Shift Right\n\t *\n\t * Shifts all the bits of the value held at `address` one bit to the right.\n\t * Bit 0 is placed in the C flag and bit 7 is set to 0.\n\t * The Z and N flags are updated too.\n\t */\n\t{\n\t\tid: \"LSR\",\n\t\texecute: ({ cpu, memoryBus }, address) => {\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tconst result = value >> 1;\n\t\t\tconst newValue = Byte.force8Bit(result);\n\n\t\t\tmemoryBus.cpu.writeAt(address, newValue);\n\t\t\tcpu.flags.updateZeroAndNegative(newValue);\n\t\t\tcpu.flags.c = !!Byte.getBit(value, 0);\n\t\t}\n\t},\n\n\t/**\n\t * Rotate Left\n\t *\n\t * Moves all the bits of the value held at `address` one place to the left.\n\t * Bit 7 is placed in the C flag and bit 0 is filled with the old value of the C flag.\n\t * The Z and N flags are updated too.\n\t */\n\t{\n\t\tid: \"ROL\",\n\t\texecute: ({ cpu, memoryBus }, address) => {\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tconst result = (value << 1) | +cpu.flags.c;\n\t\t\tconst newValue = Byte.force8Bit(result);\n\n\t\t\tmemoryBus.cpu.writeAt(address, newValue);\n\t\t\tcpu.flags.updateZeroAndNegative(newValue);\n\t\t\tcpu.flags.c = !!Byte.getBit(value, 7);\n\t\t}\n\t},\n\n\t/**\n\t * Rotate Right\n\t *\n\t * Moves all the bits of the value held at `address` one place to the right.\n\t * Bit 0 is placed in the C flag and bit 7 is filled with the old value of the C flag.\n\t * The Z and N flags are updated too.\n\t */\n\t{\n\t\tid: \"ROR\",\n\t\texecute: ({ cpu, memoryBus }, address) => {\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tconst result = (value >> 1) | (+cpu.flags.c << 7);\n\t\t\tconst newValue = Byte.force8Bit(result);\n\n\t\t\tmemoryBus.cpu.writeAt(address, newValue);\n\t\t\tcpu.flags.updateZeroAndNegative(newValue);\n\t\t\tcpu.flags.c = !!Byte.getBit(value, 0);\n\t\t}\n\t},\n\n\t/**\n\t * Subtract with Carry\n\t *\n\t * Substracts the contents of `value` to A together with the not of the carry bit.\n\t * The Z, N, C (set if there was no borrow), and V (set when sign is wrong) flags are updated.\n\t * It's implemented as an ADC call with the negative representation of `value` - 1.\n\t */\n\t{\n\t\tid: \"SBC\",\n\t\tneedsValue: true,\n\t\texecute: (context, value) => ADC(context, Byte.negate(value) - 1)\n\t}\n];\n\nconst ADC = ({ cpu }, value) => {\n\tconst oldValue = cpu.registers.a.value;\n\tconst result = oldValue + value + cpu.flags.c;\n\tconst newValue = Byte.force8Bit(result);\n\n\tcpu.registers.a.value = newValue;\n\tcpu.flags.updateZeroAndNegative(newValue);\n\tcpu.flags.c = Byte.hasOverflow(result);\n\tcpu.flags.v =\n\t\t(Byte.isPositive(oldValue) &&\n\t\t\tByte.isPositive(value) &&\n\t\t\tByte.isNegative(newValue)) ||\n\t\t(Byte.isNegative(oldValue) &&\n\t\t\tByte.isNegative(value) &&\n\t\t\tByte.isPositive(newValue));\n};\n\nconst DE_ = (registerName) => {\n\treturn ({ cpu }) => {\n\t\tconst register = cpu.registers[registerName];\n\t\tregister.decrement();\n\t\tcpu.flags.updateZeroAndNegative(register.value);\n\t};\n};\n\nconst IN_ = (registerName) => {\n\treturn ({ cpu }) => {\n\t\tconst register = cpu.registers[registerName];\n\t\tregister.increment();\n\t\tcpu.flags.updateZeroAndNegative(register.value);\n\t};\n};\n\nexport default instructions();\n","const instructions = () => [\n\t/**\n\t * Branch if Carry Clear\n\t *\n\t * If the C flag is clear, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BCC\",\n\t\texecute: B__(\"c\", false)\n\t},\n\n\t/**\n\t * Branch if Carry Set\n\t *\n\t * If the C flag is set, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BCS\",\n\t\texecute: B__(\"c\", true)\n\t},\n\n\t/**\n\t * Branch if Equal\n\t *\n\t * If the Z flag is set, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BEQ\",\n\t\texecute: B__(\"z\", true)\n\t},\n\n\t/**\n\t * Branch if Minus\n\t *\n\t * If the N flag is set, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BMI\",\n\t\texecute: B__(\"n\", true)\n\t},\n\n\t/**\n\t * Branch if Not Equal\n\t *\n\t * If the Z flag is clear, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BNE\",\n\t\texecute: B__(\"z\", false)\n\t},\n\n\t/**\n\t * Branch if Positive\n\t *\n\t * If the N flag is clear, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BPL\",\n\t\texecute: B__(\"n\", false)\n\t},\n\n\t/**\n\t * Branch if Overflow Clear\n\t *\n\t * If the V flag is clear, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BVC\",\n\t\texecute: B__(\"v\", false)\n\t},\n\n\t/**\n\t * Branch if Overflow Set\n\t *\n\t * If the V flag is set, jumps to `address`.\n\t */\n\t{\n\t\tid: \"BVS\",\n\t\texecute: B__(\"v\", true)\n\t},\n\n\t/**\n\t * Jump\n\t *\n\t * Jumps to `address`.\n\t */\n\t{\n\t\tid: \"JMP\",\n\t\texecute: ({ cpu }, address) => {\n\t\t\tcpu.pc.value = address;\n\t\t}\n\t},\n\n\t/**\n\t * Jump to Subroutine\n\t *\n\t * Pushes the current program counter (minus one) on to the stack and jumps to `address`.\n\t */\n\t{\n\t\tid: \"JSR\",\n\t\texecute: ({ cpu }, address) => {\n\t\t\tcpu.stack.push2Bytes(cpu.pc.value - 1);\n\t\t\tcpu.pc.value = address;\n\t\t}\n\t},\n\n\t/**\n\t * Return from Interrupt\n\t *\n\t * Pulls the flags from the stack followed by the program counter.\n\t */\n\t{\n\t\tid: \"RTI\",\n\t\texecute: ({ cpu }) => {\n\t\t\tcpu.flags.load(cpu.stack.pop());\n\t\t\tcpu.pc.value = cpu.stack.pop2Bytes();\n\t\t}\n\t},\n\n\t/**\n\t * Return from Subroutine\n\t *\n\t * Pulls the program counter (plus one) from the stack.\n\t */\n\t{\n\t\tid: \"RTS\",\n\t\texecute: ({ cpu }) => {\n\t\t\tcpu.pc.value = cpu.stack.pop2Bytes() + 1;\n\t\t}\n\t}\n];\n\nconst B__ = (flag, value) => {\n\treturn ({ cpu }, address) => {\n\t\tif (cpu.flags[flag] === value) {\n\t\t\tcpu.pc.value = address;\n\t\t\tcpu.extraCycles++;\n\t\t} else {\n\t\t\tcpu.extraCycles = 0;\n\t\t}\n\t};\n};\n\nexport default instructions();\n","import { Byte } from \"../../helpers\";\n\nconst instructions = () => [\n\t/**\n\t * Bit Test\n\t *\n\t * Tests if one or more bits are set in a `value`.\n\t * The mask pattern in A is ANDed with the value to set or clear the Z flag,\n\t * but the the result is not kept.\n\t * Bits 7 and 6 of the value are copied into the N and V flags.\n\t */\n\t{\n\t\tid: \"BIT\",\n\t\tneedsValue: true,\n\t\texecute: ({ cpu }, value) => {\n\t\t\tconst mask = cpu.registers.a.value;\n\t\t\tconst result = value & mask;\n\n\t\t\tcpu.flags.updateZero(result);\n\t\t\tcpu.flags.updateNegative(value);\n\t\t\tcpu.flags.v = !!Byte.getBit(value, 6);\n\t\t}\n\t},\n\n\t/**\n\t * Compare\n\t *\n\t * Compares A with `value`, setting the flags:\n\t * Z (if A = `value`), N (if bit 7 of A - `value` is set) and C (if A >= `value`).\n\t */\n\t{\n\t\tid: \"CMP\",\n\t\tneedsValue: true,\n\t\texecute: CP_(\"a\")\n\t},\n\n\t/**\n\t * Compare X Register\n\t *\n\t * Compares X with `value`, setting the flags:\n\t * Z (if X = `value`), N (if bit 7 of X - `value` is set) and C (if X >= `value`).\n\t */\n\t{\n\t\tid: \"CPX\",\n\t\tneedsValue: true,\n\t\texecute: CP_(\"x\")\n\t},\n\n\t/**\n\t * Compare Y Register\n\t *\n\t * Compares Y with `value`, setting the flags:\n\t * Z (if Y = `value`), N (if bit 7 of Y - `value` is set) and C (if Y >= `value`).\n\t */\n\t{\n\t\tid: \"CPY\",\n\t\tneedsValue: true,\n\t\texecute: CP_(\"y\")\n\t}\n];\n\nconst CP_ = (registerName) => {\n\treturn ({ cpu }, value) => {\n\t\tconst source = cpu.registers[registerName].value;\n\t\tcpu.flags.z = source === value;\n\t\tcpu.flags.updateNegative(Byte.force8Bit(source - value));\n\t\tcpu.flags.c = source >= value;\n\t};\n};\n\nexport default instructions();\n","const instructions = () => [\n\t/**\n\t * Clear Carry Flag\n\t *\n\t * Clears the C flag.\n\t */\n\t{\n\t\tid: \"CLC\",\n\t\texecute: CL_(\"c\")\n\t},\n\n\t/**\n\t * Clear Decimal Mode\n\t *\n\t * Clears the D flag.\n\t */\n\t{\n\t\tid: \"CLD\",\n\t\texecute: CL_(\"d\")\n\t},\n\n\t/**\n\t * Clear Interrupt Disable\n\t *\n\t * Clears the I flag.\n\t */\n\t{\n\t\tid: \"CLI\",\n\t\texecute: CL_(\"i\")\n\t},\n\n\t/**\n\t * Clear Overflow Flag\n\t *\n\t * Clears the V flag.\n\t */\n\t{\n\t\tid: \"CLV\",\n\t\texecute: CL_(\"v\")\n\t},\n\n\t/**\n\t * Load Accumulator\n\t *\n\t * Loads `value` into A, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"LDA\",\n\t\tneedsValue: true,\n\t\texecute: LD_(\"a\")\n\t},\n\n\t/**\n\t * Load X Register\n\t *\n\t * Loads `value` into X, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"LDX\",\n\t\tneedsValue: true,\n\t\texecute: LD_(\"x\")\n\t},\n\n\t/**\n\t * Load Y Register\n\t *\n\t * Loads `value` into Y, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"LDY\",\n\t\tneedsValue: true,\n\t\texecute: LD_(\"y\")\n\t},\n\n\t/**\n\t * Push Accumulator\n\t *\n\t * Pushes A into the stack.\n\t */\n\t{\n\t\tid: \"PHA\",\n\t\texecute: ({ cpu }) => {\n\t\t\tcpu.stack.push(cpu.registers.a.value);\n\t\t}\n\t},\n\n\t/**\n\t * Push Processor Status\n\t *\n\t * Pushes the flags (as a byte, with B2 set) into the stack.\n\t */\n\t{\n\t\tid: \"PHP\",\n\t\texecute: ({ cpu }) => {\n\t\t\tcpu.pushFlags(true);\n\t\t}\n\t},\n\n\t/**\n\t * Pull Accumulator\n\t *\n\t * Pulls a byte from the stack into A, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"PLA\",\n\t\texecute: ({ cpu }) => {\n\t\t\tconst value = cpu.stack.pop();\n\t\t\tcpu.registers.a.value = value;\n\t\t\tcpu.flags.updateZeroAndNegative(value);\n\t\t}\n\t},\n\n\t/**\n\t * Pull Processor Status\n\t *\n\t * Pulls a byte from the stack into the flags.\n\t */\n\t{\n\t\tid: \"PLP\",\n\t\texecute: ({ cpu }) => {\n\t\t\tcpu.flags.load(cpu.stack.pop());\n\t\t}\n\t},\n\n\t/**\n\t * Set Carry Flag\n\t *\n\t * Sets the C flag.\n\t */\n\t{\n\t\tid: \"SEC\",\n\t\texecute: SE_(\"c\")\n\t},\n\n\t/**\n\t * Set Decimal Flag\n\t *\n\t * Sets the D flag.\n\t */\n\t{\n\t\tid: \"SED\",\n\t\texecute: SE_(\"d\")\n\t},\n\n\t/**\n\t * Set Interrupt Disable\n\t *\n\t * Sets the I flag.\n\t */\n\t{\n\t\tid: \"SEI\",\n\t\texecute: SE_(\"i\")\n\t},\n\n\t/**\n\t * Store Accumulator\n\t *\n\t * Stores the contents of A into `address`.\n\t */\n\t{\n\t\tid: \"STA\",\n\t\texecute: ST_(\"a\")\n\t},\n\n\t/**\n\t * Store X Register\n\t *\n\t * Stores the contents of X into `address`.\n\t */\n\t{\n\t\tid: \"STX\",\n\t\texecute: ST_(\"x\")\n\t},\n\n\t/**\n\t * Store Y Register\n\t *\n\t * Stores the contents of Y into `address`.\n\t */\n\t{\n\t\tid: \"STY\",\n\t\texecute: ST_(\"y\")\n\t},\n\n\t/**\n\t * Transfer Accumulator to X\n\t *\n\t * Copies A into X, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"TAX\",\n\t\texecute: T__((cpu) => cpu.registers.a, (cpu) => cpu.registers.x)\n\t},\n\n\t/**\n\t * Transfer Accumulator to Y\n\t *\n\t * Copies A into Y, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"TAY\",\n\t\texecute: T__((cpu) => cpu.registers.a, (cpu) => cpu.registers.y)\n\t},\n\n\t/**\n\t * Transfer Stack Pointer to X\n\t *\n\t * Copies SP into X, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"TSX\",\n\t\texecute: T__((cpu) => cpu.sp, (cpu) => cpu.registers.x)\n\t},\n\n\t/**\n\t * Transfer X to Accumulator\n\t *\n\t * Copies X into A, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"TXA\",\n\t\texecute: T__((cpu) => cpu.registers.x, (cpu) => cpu.registers.a)\n\t},\n\n\t/**\n\t * Transfer X to Stack Pointer\n\t *\n\t * Copies X into SP, WITHOUT updating any flag.\n\t */\n\t{\n\t\tid: \"TXS\",\n\t\texecute: T__((cpu) => cpu.registers.x, (cpu) => cpu.sp, false)\n\t},\n\n\t/**\n\t * Transfer Y to Accumulator\n\t *\n\t * Copies Y into A, updating the Z and N flags.\n\t */\n\t{\n\t\tid: \"TYA\",\n\t\texecute: T__((cpu) => cpu.registers.y, (cpu) => cpu.registers.a)\n\t}\n];\n\nconst SE_ = (flagName) => {\n\treturn ({ cpu }) => {\n\t\tcpu.flags[flagName] = true;\n\t};\n};\n\nconst CL_ = (flagName) => {\n\treturn ({ cpu }) => {\n\t\tcpu.flags[flagName] = false;\n\t};\n};\n\nconst LD_ = (registerName) => {\n\treturn ({ cpu }, value) => {\n\t\tcpu.registers[registerName].value = value;\n\t\tcpu.flags.updateZeroAndNegative(value);\n\t};\n};\n\nconst ST_ = (registerName) => {\n\treturn ({ cpu, memoryBus }, address) => {\n\t\tconst value = cpu.registers[registerName].value;\n\t\tmemoryBus.cpu.writeAt(address, value);\n\t};\n};\n\nconst T__ = (getSourceRegister, getTargetRegister, updateFlags = true) => {\n\treturn ({ cpu }) => {\n\t\tconst value = getSourceRegister(cpu).value;\n\t\tgetTargetRegister(cpu).value = value;\n\t\tif (updateFlags) cpu.flags.updateZeroAndNegative(value);\n\t};\n};\n\nexport default instructions();\n","import arithmetic from \"./arithmetic\";\nimport branching from \"./branching\";\nimport checks from \"./checks\";\nimport data from \"./data\";\nimport logical from \"./logical\";\nimport misc from \"./misc\";\nimport _ from \"lodash\";\n\nexport default _.keyBy(\n\t[...arithmetic, ...branching, ...checks, ...data, ...logical, ...misc],\n\t\"id\"\n);\n","const instructions = () => [\n\t/**\n\t * Logical AND\n\t *\n\t * Performs a \"bit by bit\" logical AND between A and `value`, storing\n\t * the result in A and setting the Z (zero) and N (negative) flags.\n\t */\n\t{\n\t\tid: \"AND\",\n\t\tneedsValue: true,\n\t\texecute: LOGICAL_INSTRUCTION((one, another) => one & another)\n\t},\n\n\t/**\n\t * Exclusive OR\n\t *\n\t * Performs a \"bit by bit\" exclusive OR between A and `value`, storing\n\t * the result in A and setting the Z (zero) and N (negative) flags.\n\t */\n\t{\n\t\tid: \"EOR\",\n\t\tneedsValue: true,\n\t\texecute: LOGICAL_INSTRUCTION((one, another) => one ^ another)\n\t},\n\n\t/**\n\t * Logical Inclusive OR\n\t *\n\t * Performs a \"bit by bit\" logical inclusive OR between A and `value`, storing\n\t * the result in A and setting the Z (zero) and N (negative) flags.\n\t */\n\t{\n\t\tid: \"ORA\",\n\t\tneedsValue: true,\n\t\texecute: LOGICAL_INSTRUCTION((one, another) => one | another)\n\t}\n];\n\nconst LOGICAL_INSTRUCTION = (operator) => {\n\treturn ({ cpu }, value) => {\n\t\tconst result = operator(cpu.registers.a.value, value);\n\t\tcpu.registers.a.value = result;\n\t\tcpu.flags.updateZeroAndNegative(result);\n\t};\n};\n\nexport default instructions();\n","import { interrupts } from \"../constants\";\n\nconst instructions = () => [\n\t/**\n\t * Force Interrupt\n\t *\n\t * Forces the generation of an interrupt request.\n\t * The program counter and flags (with B2 set) are pushed on the stack, then the IRQ\n\t * interrupt vector at $FFFE/F is loaded into the PC.\n\t */\n\t{\n\t\tid: \"BRK\",\n\t\texecute: ({ cpu }) => {\n\t\t\tcpu.interrupt(interrupts.IRQ, true);\n\t\t}\n\t},\n\n\t/**\n\t * No Operation\n\t *\n\t * Causes no changes at all.\n\t */\n\t{\n\t\tid: \"NOP\",\n\t\texecute: (context) => {}\n\t}\n];\n\nexport default instructions();\n","import instructions from \"../instructions\";\nimport addressings from \"../addressings\";\n\nexport default [\n\t{\n\t\tid: 0x69,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0x65,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x75,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x6d,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x7d,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x79,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x61,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0x71,\n\t\tinstruction: instructions.ADC,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x0a,\n\t\tinstruction: instructions.ASL,\n\t\tcycles: 2,\n\t\taddressing: addressings.ACCUMULATOR\n\t},\n\t{\n\t\tid: 0x06,\n\t\tinstruction: instructions.ASL,\n\t\tcycles: 5,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x16,\n\t\tinstruction: instructions.ASL,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x0e,\n\t\tinstruction: instructions.ASL,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x1e,\n\t\tinstruction: instructions.ASL,\n\t\tcycles: 7,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0xc6,\n\t\tinstruction: instructions.DEC,\n\t\tcycles: 5,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xd6,\n\t\tinstruction: instructions.DEC,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0xce,\n\t\tinstruction: instructions.DEC,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xde,\n\t\tinstruction: instructions.DEC,\n\t\tcycles: 7,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0xca,\n\t\tinstruction: instructions.DEX,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x88,\n\t\tinstruction: instructions.DEY,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xe6,\n\t\tinstruction: instructions.INC,\n\t\tcycles: 5,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xf6,\n\t\tinstruction: instructions.INC,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0xee,\n\t\tinstruction: instructions.INC,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xfe,\n\t\tinstruction: instructions.INC,\n\t\tcycles: 7,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0xe8,\n\t\tinstruction: instructions.INX,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xc8,\n\t\tinstruction: instructions.INY,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x4a,\n\t\tinstruction: instructions.LSR,\n\t\tcycles: 2,\n\t\taddressing: addressings.ACCUMULATOR\n\t},\n\t{\n\t\tid: 0x46,\n\t\tinstruction: instructions.LSR,\n\t\tcycles: 5,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x56,\n\t\tinstruction: instructions.LSR,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x4e,\n\t\tinstruction: instructions.LSR,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x5e,\n\t\tinstruction: instructions.LSR,\n\t\tcycles: 7,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0x2a,\n\t\tinstruction: instructions.ROL,\n\t\tcycles: 2,\n\t\taddressing: addressings.ACCUMULATOR\n\t},\n\t{\n\t\tid: 0x26,\n\t\tinstruction: instructions.ROL,\n\t\tcycles: 5,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x36,\n\t\tinstruction: instructions.ROL,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x2e,\n\t\tinstruction: instructions.ROL,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x3e,\n\t\tinstruction: instructions.ROL,\n\t\tcycles: 7,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0x6a,\n\t\tinstruction: instructions.ROR,\n\t\tcycles: 2,\n\t\taddressing: addressings.ACCUMULATOR\n\t},\n\t{\n\t\tid: 0x66,\n\t\tinstruction: instructions.ROR,\n\t\tcycles: 5,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x76,\n\t\tinstruction: instructions.ROR,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x6e,\n\t\tinstruction: instructions.ROR,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x7e,\n\t\tinstruction: instructions.ROR,\n\t\tcycles: 7,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0xe9,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xe5,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xf5,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0xed,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xfd,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xf9,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xe1,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0xf1,\n\t\tinstruction: instructions.SBC,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t}\n];\n","import instructions from \"../instructions\";\nimport addressings from \"../addressings\";\n\nexport default [\n\t{\n\t\tid: 0x90,\n\t\tinstruction: instructions.BCC,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xb0,\n\t\tinstruction: instructions.BCS,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xf0,\n\t\tinstruction: instructions.BEQ,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x30,\n\t\tinstruction: instructions.BMI,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xd0,\n\t\tinstruction: instructions.BNE,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x10,\n\t\tinstruction: instructions.BPL,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x50,\n\t\tinstruction: instructions.BVC,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x70,\n\t\tinstruction: instructions.BVS,\n\t\tcycles: 2,\n\t\taddressing: addressings.RELATIVE,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x4c,\n\t\tinstruction: instructions.JMP,\n\t\tcycles: 3,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x6c,\n\t\tinstruction: instructions.JMP,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDIRECT\n\t},\n\t{\n\t\tid: 0x20,\n\t\tinstruction: instructions.JSR,\n\t\tcycles: 6,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x40,\n\t\tinstruction: instructions.RTI,\n\t\tcycles: 6,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x60,\n\t\tinstruction: instructions.RTS,\n\t\tcycles: 6,\n\t\taddressing: addressings.IMPLICIT\n\t}\n];\n","import instructions from \"../instructions\";\nimport addressings from \"../addressings\";\n\nexport default [\n\t{\n\t\tid: 0x24,\n\t\tinstruction: instructions.BIT,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x2c,\n\t\tinstruction: instructions.BIT,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xc9,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xc5,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xd5,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0xcd,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xdd,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xd9,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xc1,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0xd1,\n\t\tinstruction: instructions.CMP,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xe0,\n\t\tinstruction: instructions.CPX,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xe4,\n\t\tinstruction: instructions.CPX,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xec,\n\t\tinstruction: instructions.CPX,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xc0,\n\t\tinstruction: instructions.CPY,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xc4,\n\t\tinstruction: instructions.CPY,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xcc,\n\t\tinstruction: instructions.CPY,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t}\n];\n","import instructions from \"../instructions\";\nimport addressings from \"../addressings\";\n\nexport default [\n\t{\n\t\tid: 0x18,\n\t\tinstruction: instructions.CLC,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xd8,\n\t\tinstruction: instructions.CLD,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x58,\n\t\tinstruction: instructions.CLI,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xb8,\n\t\tinstruction: instructions.CLV,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xa9,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xa5,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xb5,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0xad,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xbd,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xb9,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xa1,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0xb1,\n\t\tinstruction: instructions.LDA,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xa2,\n\t\tinstruction: instructions.LDX,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xa6,\n\t\tinstruction: instructions.LDX,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xb6,\n\t\tinstruction: instructions.LDX,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_Y\n\t},\n\t{\n\t\tid: 0xae,\n\t\tinstruction: instructions.LDX,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xbe,\n\t\tinstruction: instructions.LDX,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0xa0,\n\t\tinstruction: instructions.LDY,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0xa4,\n\t\tinstruction: instructions.LDY,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0xb4,\n\t\tinstruction: instructions.LDY,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0xac,\n\t\tinstruction: instructions.LDY,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xbc,\n\t\tinstruction: instructions.LDY,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x48,\n\t\tinstruction: instructions.PHA,\n\t\tcycles: 3,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x08,\n\t\tinstruction: instructions.PHP,\n\t\tcycles: 3,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x68,\n\t\tinstruction: instructions.PLA,\n\t\tcycles: 4,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x28,\n\t\tinstruction: instructions.PLP,\n\t\tcycles: 4,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x38,\n\t\tinstruction: instructions.SEC,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xf8,\n\t\tinstruction: instructions.SED,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x78,\n\t\tinstruction: instructions.SEI,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x85,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x95,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x8d,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x9d,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X\n\t},\n\t{\n\t\tid: 0x99,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y\n\t},\n\t{\n\t\tid: 0x81,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0x91,\n\t\tinstruction: instructions.STA,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y\n\t},\n\t{\n\t\tid: 0x86,\n\t\tinstruction: instructions.STX,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x96,\n\t\tinstruction: instructions.STX,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_Y\n\t},\n\t{\n\t\tid: 0x8e,\n\t\tinstruction: instructions.STX,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x84,\n\t\tinstruction: instructions.STY,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x94,\n\t\tinstruction: instructions.STY,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x8c,\n\t\tinstruction: instructions.STY,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0xaa,\n\t\tinstruction: instructions.TAX,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xa8,\n\t\tinstruction: instructions.TAY,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xba,\n\t\tinstruction: instructions.TSX,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x8a,\n\t\tinstruction: instructions.TXA,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x9a,\n\t\tinstruction: instructions.TXS,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0x98,\n\t\tinstruction: instructions.TYA,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t}\n];\n","import arithmetic from \"./arithmetic\";\nimport branching from \"./branching\";\nimport checks from \"./checks\";\nimport data from \"./data\";\nimport logical from \"./logical\";\nimport misc from \"./misc\";\nimport _ from \"lodash\";\n\nexport default _.keyBy(\n\t[...arithmetic, ...branching, ...checks, ...data, ...logical, ...misc],\n\t\"id\"\n);\n","import instructions from \"../instructions\";\nimport addressings from \"../addressings\";\n\nexport default [\n\t{\n\t\tid: 0x29,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0x25,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x35,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x2d,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x3d,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x39,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x21,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0x31,\n\t\tinstruction: instructions.AND,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x49,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0x45,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x55,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x4d,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x5d,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x59,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x41,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0x51,\n\t\tinstruction: instructions.EOR,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x09,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMMEDIATE\n\t},\n\t{\n\t\tid: 0x05,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 3,\n\t\taddressing: addressings.ZERO_PAGE\n\t},\n\t{\n\t\tid: 0x15,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ZERO_PAGE_X\n\t},\n\t{\n\t\tid: 0x0d,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 4,\n\t\taddressing: addressings.ABSOLUTE\n\t},\n\t{\n\t\tid: 0x1d,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_X,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x19,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 4,\n\t\taddressing: addressings.INDEXED_ABSOLUTE_Y,\n\t\tcanTakeExtraCycles: true\n\t},\n\t{\n\t\tid: 0x01,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 6,\n\t\taddressing: addressings.INDEXED_INDIRECT_X\n\t},\n\t{\n\t\tid: 0x11,\n\t\tinstruction: instructions.ORA,\n\t\tcycles: 5,\n\t\taddressing: addressings.INDEXED_INDIRECT_Y,\n\t\tcanTakeExtraCycles: true\n\t}\n];\n","import instructions from \"../instructions\";\nimport addressings from \"../addressings\";\n\nexport default [\n\t{\n\t\tid: 0x00,\n\t\tinstruction: instructions.BRK,\n\t\tcycles: 0,\n\t\taddressing: addressings.IMPLICIT\n\t},\n\t{\n\t\tid: 0xea,\n\t\tinstruction: instructions.NOP,\n\t\tcycles: 2,\n\t\taddressing: addressings.IMPLICIT\n\t}\n];\n","import { Byte } from \"../../helpers\";\n\nconst N_BIT /* */ = 0b10000000;\nconst V_BIT /* */ = 0b01000000;\nconst B1_BIT /* */ = 0b00100000;\nconst D_BIT /* */ = 0b00001000;\nconst I_BIT /* */ = 0b00000100;\nconst Z_BIT /* */ = 0b00000010;\nconst C_BIT /* */ = 0b00000001;\n\n/** The processor status flags. **/\nexport default class FlagsRegister {\n\tconstructor() {\n\t\tthis.n = false; // negative\n\t\tthis.v = false; // overflow\n\t\tthis.d = false; // decimal mode\n\t\tthis.i = false; // interrupt disable\n\t\tthis.z = false; // zero\n\t\tthis.c = false; // carry\n\n\t\t// (bits 4 and 5 -also called \"B1\" and \"B2\"- are not actual flags)\n\t\t// (they only appear when the flags are pushed to the stack)\n\t}\n\n\t/** Deserializes a `byte` into the status flags. **/\n\tload(byte) {\n\t\tthis.n = !!(byte & N_BIT);\n\t\tthis.v = !!(byte & V_BIT);\n\t\tthis.d = !!(byte & D_BIT);\n\t\tthis.i = !!(byte & I_BIT);\n\t\tthis.z = !!(byte & Z_BIT);\n\t\tthis.c = !!(byte & C_BIT);\n\n\t\treturn this;\n\t}\n\n\t/** Serializes the status flags into a byte. **/\n\ttoByte() {\n\t\treturn (\n\t\t\t(this.n && N_BIT) |\n\t\t\t(this.v && V_BIT) |\n\t\t\tB1_BIT |\n\t\t\t(this.d && D_BIT) |\n\t\t\t(this.i && I_BIT) |\n\t\t\t(this.z && Z_BIT) |\n\t\t\t(this.c && C_BIT)\n\t\t);\n\t}\n\n\t/** Updates the Z and N flags depending on a `byte`. */\n\tupdateZeroAndNegative(byte) {\n\t\tthis.updateZero(byte);\n\t\tthis.updateNegative(byte);\n\t}\n\n\t/** Updates the Z flag depending on a `byte`. */\n\tupdateZero(byte) {\n\t\tthis.z = byte === 0;\n\t}\n\n\t/** Updates the N flag depending on a `byte`. */\n\tupdateNegative(byte) {\n\t\tthis.n = Byte.isNegative(byte);\n\t}\n}\n","/** A CPU register that can handle overflows and underflows. */\nexport default class Register {\n\tconstructor(TypedArray, initialValue = 0) {\n\t\tthis.bytes = new TypedArray(1);\n\t\tthis.value = this.initialValue = initialValue;\n\t}\n\n\t/** Resets the `value` to the `initialValue`. */\n\treset() {\n\t\tthis.value = this.initialValue;\n\t}\n\n\t/** Increments the value. */\n\tincrement() {\n\t\tthis.value++;\n\t}\n\n\t/** Decrements the value. */\n\tdecrement() {\n\t\tthis.value--;\n\t}\n\n\t/** Returns the actual value. */\n\tget value() {\n\t\treturn this.bytes[0];\n\t}\n\n\t/** Sets the actual value. */\n\tset value(value) {\n\t\tthis.bytes[0] = value;\n\t}\n\n\ttoString() {\n\t\treturn \"[REGISTER]\";\n\t}\n}\n","import Register from \"./Register\";\nimport FlagsRegister from \"./FlagsRegister\";\n\n/** An 8-bit register. */\nexport class Register8Bit extends Register {\n\tconstructor(initialValue) {\n\t\tsuper(Uint8Array, initialValue);\n\t}\n}\n\n/** A 16-bit register. */\nexport class Register16Bit extends Register {\n\tconstructor(initialValue) {\n\t\tsuper(Uint16Array, initialValue);\n\t}\n}\n\nexport { FlagsRegister };\n","/*\n * A byte helper. Signed bytes use the \"Two's complement\" representation.\n *\n * Positive values are: {value} => [0 , 127]\n * Negative values are: -(256 - {value}) => [128, 255]\n */\nexport default {\n\t/** Converts a signed `byte` to a number (254 => -2). */\n\ttoNumber(byte) {\n\t\treturn (byte << 24) >> 24;\n\t},\n\n\t/** Converts a `number` to a signed byte (-2 => 254). */\n\ttoSignedByte(number) {\n\t\treturn number & 0xff;\n\t},\n\n\t/** Returns whether `value` can be represented as a single byte or not. */\n\thasOverflow(value) {\n\t\treturn value >= 256;\n\t},\n\n\t/** Returns whether `value` is positive or not. */\n\tisPositive(byte) {\n\t\treturn !((byte >> 7) & 1);\n\t},\n\n\t/** Returns whether `value` is negative or not. */\n\tisNegative(byte) {\n\t\treturn !!((byte >> 7) & 1);\n\t},\n\n\t/** Converts a signed `byte` to negative. */\n\tnegate(byte) {\n\t\treturn 256 - byte;\n\t},\n\n\t/** Forces a `value` to fit in 8 bits (256 => 0). */\n\tforce8Bit(value) {\n\t\treturn value & 0xff;\n\t},\n\n\t/** Forces a `value` to fit in 16 bits (65536 => 0). */\n\tforce16Bit(value) {\n\t\treturn value & 0xffff;\n\t},\n\n\t/** Returns the bit located at `position` in `number`. */\n\tgetBit(number, position) {\n\t\treturn (number >> position) & 1;\n\t},\n\n\t/** Returns a sub-number of `size` bits inside a `byte`, starting at `startPosition`. */\n\tgetBits(byte, startPosition, size) {\n\t\treturn (byte >> startPosition) & (0xff >> (8 - size));\n\t},\n\n\t/** Inserts a `value` of `size` bits inside a `byte`, starting at `startPosition`. */\n\tsetBits(byte, startPosition, size, value) {\n\t\tconst mask = ((1 << size) - 1) << startPosition;\n\t\treturn (byte & ~mask) | ((value << startPosition) & mask);\n\t},\n\n\t/** Returns the most significant byte of a `twoBytesNumber`. */\n\thighPartOf(twoBytesNumber) {\n\t\treturn twoBytesNumber >> 8;\n\t},\n\n\t/** Returns the least significant byte of a `twoBytesNumber`. */\n\tlowPartOf(twoBytesNumber) {\n\t\treturn twoBytesNumber & 0x00ff;\n\t},\n\n\t/** Returns a two bytes value from the `highByte` and `lowByte`. */\n\tto16Bit(highByte, lowByte) {\n\t\treturn ((highByte & 0xff) << 8) | (lowByte & 0xff);\n\t}\n};\n","import _ from \"lodash\";\n\n/** A mixin for anything that has a context. */\nexport default {\n\t/** Applies the mixin. */\n\tapply(obj) {\n\t\t_.defaults(obj, _.omit(this, \"apply\"));\n\t},\n\n\t/** The current execution context. */\n\tcontext: null,\n\n\t/** Loads an execution context. */\n\tloadContext(context) {\n\t\tthis.context = context;\n\t\tif (this.onLoad) this.onLoad(context);\n\t\treturn this;\n\t},\n\n\t/** Asserts that a current context exists. */\n\trequireContext() {\n\t\tif (!this.context) throw new Error(\"Execution context not found.\");\n\t}\n};\n","import NES from \"./NES\";\n\nexport default NES;\n","import WithLittleEndian from \"./WithLittleEndian\";\n\n/** A memory Bus that forwards every memory access to the cartridge's mapper. */\nclass Bus {\n\tconstructor(mapper) {\n\t\tWithLittleEndian.apply(this);\n\n\t\tthis.mapper = mapper;\n\t}\n}\n\n/** The CPU bus. */\nclass CPUBus extends Bus {\n\t/** Writes a `byte` to `address`, using the mapper. */\n\twriteAt(address, byte) {\n\t\tthis.mapper.cpuWriteAt(address, byte);\n\t}\n}\n\nexport { CPUBus };\n","import WithLittleEndian from \"./WithLittleEndian\";\nimport _ from \"lodash\";\n\n/** A memory chunk that can store `bytes` (it can be a number or a Buffer). */\nexport default class MemoryChunk {\n\tconstructor(bytes) {\n\t\tWithLittleEndian.apply(this);\n\t\tif (_.isFinite(bytes)) bytes = new Uint8Array(bytes);\n\n\t\tthis.bytes = bytes;\n\t\tthis.readOnly = false;\n\t\tthis.memorySize = bytes.length;\n\t}\n\n\t/** Reads a byte from `address`. */\n\treadAt(address) {\n\t\tthis._assertValidAddress(address);\n\n\t\treturn this.bytes[address];\n\t}\n\n\t/** Writes a `byte` to `address`. */\n\twriteAt(address, byte) {\n\t\tthis._assertValidAddress(address);\n\t\tif (this.readOnly) return;\n\n\t\tthis.bytes[address] = byte;\n\t}\n\n\t/** Sets the chunk's `readOnly` state. */\n\tasReadOnly(readOnly = true) {\n\t\tthis.readOnly = readOnly;\n\t\treturn this;\n\t}\n\n\t_assertValidAddress(address) {\n\t\tif (address < 0 || address > this.memorySize)\n\t\t\tthis._throwInvalidAddressError(address);\n\t}\n\n\t_throwInvalidAddressError(address) {\n\t\tthrow new Error(`Invalid memory access at 0x${address.toString(16)}.`);\n\t}\n}\n","import WithLittleEndian from \"./WithLittleEndian\";\n\n/** A memory chunk that mirrors another `chunk`. */\nexport default class MemoryMirror {\n\tconstructor(\n\t\tchunk,\n\t\tsize,\n\t\tstartAt = 0,\n\t\tmirroredSize = chunk.memorySize - startAt\n\t) {\n\t\tWithLittleEndian.apply(this);\n\n\t\tthis.chunk = chunk;\n\t\tthis.startAt = startAt;\n\t\tthis.mirroredSize = mirroredSize;\n\t\tthis.memorySize = size;\n\t}\n\n\t/** Reads a byte from `address`, mirroring bytes. */\n\treadAt(address) {\n\t\tthis._checkAddress(address);\n\t\treturn this.chunk.readAt(this.startAt + (address % this.mirroredSize));\n\t}\n\n\t/** Writes a `byte` to `address`, mirroring bytes. */\n\twriteAt(address, byte) {\n\t\tthis._checkAddress(address);\n\t\tthis.chunk.writeAt(this.startAt + (address % this.mirroredSize), byte);\n\t}\n\n\t_checkAddress(address) {\n\t\tif (address >= this.memorySize)\n\t\t\tthrow new Error(`Unreachable address: 0x${address.toString(16)}.`);\n\t}\n}\n","import WithLittleEndian from \"./WithLittleEndian\";\n\n/**\n * A memory chunk that doesn't use space.\n * It's usually mapped / rewired to another thing.\n */\nexport default class MemoryPadding {\n\tconstructor(size) {\n\t\tWithLittleEndian.apply(this);\n\n\t\tthis.memorySize = size;\n\t}\n\n\t/** Reads nothing. */\n\treadAt() {\n\t\treturn 0;\n\t}\n\n\t/** Writes nothing. */\n\twriteAt() {}\n}\n","import MemoryChunk from \"./MemoryChunk\";\n\n/**\n * A memory segment that accepts a `mapping` object which translates internal addresses.\n * For example, in PPU's Palette RAM, $10/$14/$18/$1C are mirrors of $00/$04/$08/$0C, so:\n * mapping = { 0x10: 0x00, 0x14: 0x04, 0x18: 0x08, 0x1c: 0x0c }\n */\nexport default class RewiredMemoryChunk extends MemoryChunk {\n\tconstructor(bytes, mapping) {\n\t\tsuper(bytes);\n\n\t\tthis.mapping = mapping;\n\t}\n\n\t/**\n\t * Creates a mapping object from a `ranges` array.\n\t * For example:\n\t * The list [{ from: 10, size: 5, to: 1 }]...\n\t * ...creates the mapping { 10: 1, 11: 2, 12: 3, 13: 4, 14: 5 }\n\t */\n\tstatic createMapping(ranges) {\n\t\tconst mapping = {};\n\t\tfor (let range of ranges) {\n\t\t\tfor (let i = 0; i < range.size; i++) {\n\t\t\t\tmapping[range.from + i] = range.to + i;\n\t\t\t}\n\t\t}\n\t\treturn mapping;\n\t}\n\n\t/** Reads a byte from `address`, following mirroring rules. */\n\treadAt(address) {\n\t\tif (this.mapping[address] != null) address = this.mapping[address];\n\t\tthis._assertValidAddress(address);\n\n\t\treturn this.bytes[address];\n\t}\n\n\t/** Writes a `byte` to `address`, following mirroring rules. */\n\twriteAt(address, byte) {\n\t\tif (this.mapping[address] != null) address = this.mapping[address];\n\t\tthis._assertValidAddress(address);\n\n\t\tthis.bytes[address] = byte;\n\t}\n}\n","import WithLittleEndian from \"./WithLittleEndian\";\nimport _ from \"lodash\";\n\n/** A mixin for composite memory handling, with multiple `chunks`. */\nexport default {\n\t/** Applies the mixin. */\n\tapply(obj) {\n\t\t_.defaults(obj, _.omit(this, \"apply\", \"createSegment\"));\n\t\tWithLittleEndian.apply(obj);\n\t\tobj.chunks = null;\n\t\tobj.lut = null;\n\t},\n\n\t/** Creates a composite memory segment with different `chunks`. */\n\tcreateSegment(chunks) {\n\t\tconst memory = {};\n\t\tthis.apply(memory);\n\t\tmemory.defineChunks(chunks);\n\t\treturn memory;\n\t},\n\n\t/** Defines the `chunks` of the memory map. */\n\tdefineChunks(chunks) {\n\t\tthis.chunks = chunks;\n\t\tthis.lut = [];\n\n\t\tlet startAddress = 0;\n\t\tfor (let chunk of this.chunks) {\n\t\t\tchunk.$memoryStartAddress = startAddress;\n\t\t\tstartAddress += chunk.memorySize;\n\t\t}\n\n\t\tthis.memorySize = startAddress;\n\n\t\tthis._generateLookUpTable(startAddress);\n\t},\n\n\t/** Reads a byte from `address`, using the correct `chunk`. */\n\treadAt(address) {\n\t\tconst chunk = this.lut[address * 2] || this._throwUnreachable(address);\n\t\tconst offset = this.lut[address * 2 + 1];\n\t\treturn chunk.readAt(offset);\n\t},\n\n\t/** Writes a `byte` to `address`, using the correct `chunk`. */\n\twriteAt(address, byte) {\n\t\tconst chunk = this.lut[address * 2] || this._throwUnreachable(address);\n\t\tconst offset = this.lut[address * 2 + 1];\n\t\tchunk.writeAt(offset, byte);\n\t},\n\n\t_throwUnreachable(address) {\n\t\tthrow new Error(`Unreachable address: 0x${address.toString(16)}.`);\n\t},\n\n\t_generateLookUpTable(finalAddress) {\n\t\tfor (let i = 0; i < finalAddress; i++) {\n\t\t\tconst chunk = this._getChunkFor(i);\n\t\t\tconst offset = this._toRelativeAddress(i, chunk);\n\t\t\tthis.lut[i * 2] = chunk;\n\t\t\tthis.lut[i * 2 + 1] = offset;\n\t\t}\n\t},\n\n\t_getChunkFor(address) {\n\t\tfor (let chunk of this.chunks) {\n\t\t\tconst startAddress = chunk.$memoryStartAddress;\n\n\t\t\tif (address >= startAddress && address < startAddress + chunk.memorySize)\n\t\t\t\treturn chunk;\n\t\t}\n\t},\n\n\t_toRelativeAddress(address, chunk) {\n\t\treturn address - chunk.$memoryStartAddress;\n\t}\n};\n","import { Byte } from \"../helpers\";\nimport _ from \"lodash\";\n\n/** A mixin for reading bytes in Little Endian. */\nexport default {\n\t/** Applies the mixin. */\n\tapply(obj) {\n\t\t_.defaults(obj, _.omit(this, \"apply\"));\n\t},\n\n\t/** Reads `length` (1 or 2) bytes in LE from `address`. */\n\treadBytesAt(address, length) {\n\t\tif (length === 0) return null;\n\n\t\treturn length === 2 ? this.read2BytesAt(address) : this.readAt(address);\n\t},\n\n\t/** Writes two bytes in LE to `address`. */\n\twrite2BytesAt(address, value) {\n\t\tconst low = Byte.lowPartOf(value);\n\t\tconst high = Byte.highPartOf(value);\n\n\t\tthis.writeAt(address, low);\n\t\tthis.writeAt(address + 1, high);\n\t},\n\n\t/** Reads two bytes in LE from `address`. */\n\tread2BytesAt(address) {\n\t\tconst low = this.readAt(address);\n\t\tconst high = this.readAt(address + 1);\n\n\t\treturn Byte.to16Bit(high, low);\n\t}\n};\n","import { PPURegisterSegment, LoopyRegister } from \"./registers\";\nimport PPUMemoryMap from \"./PPUMemoryMap\";\nimport renderers from \"./renderers\";\nimport {\n\tNameTable,\n\tAttributeTable,\n\tPatternTable,\n\tFramePalette,\n\tOAM\n} from \"./renderers/tables\";\nimport constants from \"../constants\";\nimport { WithContext } from \"../helpers\";\n\nconst FULL_ALPHA = 0xff000000;\n\n/** The Picture Processing Unit. It generates a video signal of 256x240 pixels. */\nexport default class PPU {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.frame = 0;\n\t\tthis.scanline = 0;\n\t\tthis.cycle = 0;\n\n\t\tthis.memory = new PPUMemoryMap();\n\t\tthis.oamRam = null;\n\t\tthis.registers = null;\n\t\tthis.loopy = null;\n\n\t\tthis.nameTable = new NameTable();\n\t\tthis.attributeTable = new AttributeTable();\n\t\tthis.patternTable = new PatternTable();\n\t\tthis.framePalette = new FramePalette();\n\t\tthis.oam = new OAM();\n\n\t\tthis.frameBuffer = new Uint32Array(constants.TOTAL_PIXELS);\n\t\tthis.paletteIndexes = new Uint8Array(constants.TOTAL_PIXELS);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad(context) {\n\t\tthis.memory.loadContext(context);\n\t\tthis.oamRam = new Uint8Array(constants.PPU_OAM_SIZE);\n\t\tthis.registers = new PPURegisterSegment(context);\n\t\tthis.loopy = new LoopyRegister();\n\n\t\tthis.nameTable.loadContext(context);\n\t\tthis.attributeTable.loadContext(context);\n\t\tthis.patternTable.loadContext(context);\n\t\tthis.framePalette.loadContext(context);\n\t\tthis.oam.loadContext(context);\n\n\t\tthis._reset();\n\t}\n\n\t/**\n\t * Executes a number of `cycles`.\n\t * It calls `onFrame` when it generates a new frame.\n\t * It calls `onIntr` on interrupts;\n\t */\n\tstep(cycles, onFrame, onIntr) {\n\t\tfor (let i = 0; i < cycles; i++) {\n\t\t\t// \n\t\t\tif (this.cycle > 1 && this.cycle < 256) {\n\t\t\t\ti += this._skip(256, cycles, i);\n\t\t\t\tcontinue;\n\t\t\t} else if (this.cycle > 260 && this.cycle < 304) {\n\t\t\t\ti += this._skip(304, cycles, i);\n\t\t\t\tcontinue;\n\t\t\t} else if (this.cycle > 304 && this.cycle < 340) {\n\t\t\t\ti += this._skip(340, cycles, i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// \n\n\t\t\tconst scanlineType = getScanlineType(this.scanline);\n\t\t\tconst interrupt = renderers[scanlineType](this.context);\n\t\t\tif (interrupt) onIntr(interrupt);\n\t\t\tthis._incrementCounters(onFrame);\n\t\t}\n\t}\n\n\t/** Draws a pixel (ABGR) in (`x`, `y`) using BGR `color`. */\n\tplot(x, y, color) {\n\t\tthis.frameBuffer[y * constants.SCREEN_WIDTH + x] =\n\t\t\tFULL_ALPHA | this.registers.ppuMask.transform(color);\n\t}\n\n\t/** Returns the palette index of pixel (`x`, `y`). Used for sprite drawing. */\n\tpaletteIndexOf(x, y) {\n\t\treturn this.paletteIndexes[y * constants.SCREEN_WIDTH + x];\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tframe: this.frame,\n\t\t\tscanline: this.scanline,\n\t\t\tcycle: this.cycle,\n\t\t\tmemory: this.memory.getSaveState(),\n\t\t\toamRam: Array.from(this.oamRam),\n\t\t\tloopy: this.loopy.getSaveState()\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.frame = saveState.frame;\n\t\tthis.scanline = saveState.scanline;\n\t\tthis.cycle = saveState.cycle;\n\t\tthis.memory.setSaveState(saveState.memory);\n\t\tthis.oamRam = new Uint8Array(saveState.oamRam);\n\t\tthis.loopy.setSaveState(saveState.loopy);\n\t}\n\n\t_skip(destinationCycle, cycles, i) {\n\t\tconst skippedCycles = Math.min(destinationCycle - this.cycle, cycles - i);\n\t\tthis.cycle += skippedCycles;\n\t\treturn skippedCycles - 1;\n\t}\n\n\t_incrementCounters(onFrame) {\n\t\tthis.cycle++;\n\t\tif (this.cycle > constants.PPU_LAST_CYCLE) {\n\t\t\tthis.cycle = 0;\n\t\t\tthis.scanline++;\n\n\t\t\tif (this.scanline > constants.PPU_LAST_SCANLINE) {\n\t\t\t\tthis.scanline = -1;\n\t\t\t\tthis.frame++;\n\t\t\t\tonFrame(this.frameBuffer);\n\t\t\t}\n\t\t}\n\t}\n\n\t_reset() {\n\t\tthis.frame = 0;\n\t\tthis.scanline = -1;\n\t\tthis.cycle = 0;\n\n\t\tfor (let i = 0; i < this.frameBuffer.length - 1; i++) {\n\t\t\tthis.frameBuffer[i] = 0;\n\t\t\tthis.paletteIndexes[i] = 0;\n\t\t}\n\t}\n}\n\n/** Returns the type of `scanLine`. */\nfunction getScanlineType(scanLine) {\n\tif (scanLine === -1) {\n\t\treturn \"PRELINE\";\n\t} else if (scanLine < 240) {\n\t\treturn \"VISIBLE\";\n\t} else if (scanLine === 241) {\n\t\treturn \"VBLANK_START\";\n\t} else {\n\t\treturn \"IDLE\";\n\t}\n}\n","import {\n\tWithCompositeMemory,\n\tMemoryMirror,\n\tRewiredMemoryChunk\n} from \"../memory\";\nimport mirroring from \"./mirroring\";\nimport { WithContext } from \"../helpers\";\n\n/** The PPU memory map. Address space size: 16KB. */\nexport default class PPUMemoryMap {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t\tWithCompositeMemory.apply(this);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad({ cartridge, mapper }) {\n\t\t// (the system only has memory for two Name tables, the other two are mirrored)\n\t\tthis.nameTables = new RewiredMemoryChunk(0x1000);\n\t\tthis.changeNameTablesMirroringTo(cartridge.header.mirroring);\n\t\tconst nameTablesMirror = new MemoryMirror(this.nameTables, 0x0f00);\n\t\tthis.paletteRam = new RewiredMemoryChunk(0x20, {\n\t\t\t// ($3F10/$3F14/$3F18/$3F1C are mirrors of $3F00/$3F04/$3F08/$3F0C)\n\t\t\t0x10: 0x00,\n\t\t\t0x14: 0x04,\n\t\t\t0x18: 0x08,\n\t\t\t0x1c: 0x0c\n\t\t});\n\t\tconst paletteRamMirror = new MemoryMirror(this.paletteRam, 0x00e0);\n\n\t\tthis.defineChunks([\n\t\t\t// Address range Size Device\n\t\t\tmapper.segments.ppu, // $0000-$1FFF $2000 Pattern tables 0 and 1 (mapper)\n\t\t\tthis.nameTables, // $2000-$2FFF $1000 Name tables 0 to 3 (VRAM + mirror)\n\t\t\tnameTablesMirror, // $3000-$3EFF $0F00 Mirrors of $2000-$2EFF\n\t\t\tthis.paletteRam, // $3F00-$3F1F $0020 Palette RAM indexes\n\t\t\tpaletteRamMirror // $3F20-$3FFF $00E0 Mirrors of $3F00-$3F1F\n\t\t]);\n\t}\n\n\tchangeNameTablesMirroringTo(mirroringType) {\n\t\tif (this.context.cartridge.header.mirroring === \"FOUR_SCREENS\")\n\t\t\tmirroringType = \"FOUR_SCREENS\";\n\n\t\tthis.nameTables.$mirroringType = mirroringType;\n\t\tthis.nameTables.mapping = mirroring[mirroringType];\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tnameTables: Array.from(this.nameTables.bytes),\n\t\t\tmirroringType: this.nameTables.$mirroringType,\n\t\t\tpaletteRam: Array.from(this.paletteRam.bytes)\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.nameTables.bytes.set(saveState.nameTables);\n\t\tthis.changeNameTablesMirroringTo(saveState.mirroringType);\n\t\tthis.paletteRam.bytes.set(saveState.paletteRam);\n\t}\n}\n","/** The NES Color Palette. */\nexport default [\n\t/* 0x00 */ 0xff757575,\n\t/* 0x01 */ 0xff8f1b27,\n\t/* 0x02 */ 0xffab0000,\n\t/* 0x03 */ 0xff9f0047,\n\t/* 0x04 */ 0xff77008f,\n\t/* 0x05 */ 0xff1300ab,\n\t/* 0x06 */ 0xff0000a7,\n\t/* 0x07 */ 0xff000b7f,\n\t/* 0x08 */ 0xff002f43,\n\t/* 0x09 */ 0xff004700,\n\t/* 0x0a */ 0xff005100,\n\t/* 0x0b */ 0xff173f00,\n\t/* 0x0c */ 0xff5f3f1b,\n\t/* 0x0d */ 0xff000000,\n\t/* 0x0e */ 0xff000000,\n\t/* 0x0f */ 0xff000000,\n\t/* 0x10 */ 0xffbcbcbc,\n\t/* 0x11 */ 0xffef7300,\n\t/* 0x12 */ 0xffef3b23,\n\t/* 0x13 */ 0xfff30083,\n\t/* 0x14 */ 0xffbf00bf,\n\t/* 0x15 */ 0xff5b00e7,\n\t/* 0x16 */ 0xff002bdb,\n\t/* 0x17 */ 0xff0f4fcb,\n\t/* 0x18 */ 0xff00738b,\n\t/* 0x19 */ 0xff009700,\n\t/* 0x1a */ 0xff00ab00,\n\t/* 0x1b */ 0xff3b9300,\n\t/* 0x1c */ 0xff8b8300,\n\t/* 0x1d */ 0xff000000,\n\t/* 0x1e */ 0xff000000,\n\t/* 0x1f */ 0xff000000,\n\t/* 0x20 */ 0xffffffff,\n\t/* 0x21 */ 0xffffbf3f,\n\t/* 0x22 */ 0xffff975f,\n\t/* 0x23 */ 0xfffd8ba7,\n\t/* 0x24 */ 0xffff7bf7,\n\t/* 0x25 */ 0xffb777ff,\n\t/* 0x26 */ 0xff6377ff,\n\t/* 0x27 */ 0xff3b9bff,\n\t/* 0x28 */ 0xff3fbff3,\n\t/* 0x29 */ 0xff13d383,\n\t/* 0x2a */ 0xff4bdf4f,\n\t/* 0x2b */ 0xff98f858,\n\t/* 0x2c */ 0xffdbeb00,\n\t/* 0x2d */ 0xff000000,\n\t/* 0x2e */ 0xff000000,\n\t/* 0x2f */ 0xff000000,\n\t/* 0x30 */ 0xffffffff,\n\t/* 0x31 */ 0xffffe7ab,\n\t/* 0x32 */ 0xffffd7c7,\n\t/* 0x33 */ 0xffffcbd7,\n\t/* 0x34 */ 0xffffc7ff,\n\t/* 0x35 */ 0xffdbc7ff,\n\t/* 0x36 */ 0xffb3bfff,\n\t/* 0x37 */ 0xffabdbff,\n\t/* 0x38 */ 0xffa3e7ff,\n\t/* 0x39 */ 0xffa3ffe3,\n\t/* 0x3a */ 0xffbff3ab,\n\t/* 0x3b */ 0xffcfffb3,\n\t/* 0x3c */ 0xfff3ff9f,\n\t/* 0x3d */ 0xff000000,\n\t/* 0x3e */ 0xff000000,\n\t/* 0x3f */ 0xff000000\n];\n","import PPU from \"./PPU\";\n\nexport default PPU;\n","import { RewiredMemoryChunk } from \"../memory\";\n\n// Name tables A and B are located in 0x000 and 0x400 but can be remapped.\n\nconst HORIZONTAL = RewiredMemoryChunk.createMapping([\n\t{ from: 0x400, size: 0x400, to: 0x000 }, // top-right (A mirror)\n\t{ from: 0x800, size: 0x400, to: 0x400 }, // bottom-left (B)\n\t{ from: 0xc00, size: 0x400, to: 0x400 } // bottom-right (B mirror)\n]);\n\nconst VERTICAL = RewiredMemoryChunk.createMapping([\n\t{ from: 0x800, size: 0x400, to: 0x000 }, // bottom-left (A mirror)\n\t{ from: 0xc00, size: 0x400, to: 0x400 } // bottom-right (B mirror)\n]);\n\nconst ONE_SCREEN_LOWER_BANK = RewiredMemoryChunk.createMapping([\n\t{ from: 0x400, size: 0x400, to: 0x000 }, // top-right (A mirror)\n\t{ from: 0x800, size: 0x400, to: 0x000 }, // bottom-left (A mirror)\n\t{ from: 0xc00, size: 0x400, to: 0x000 } // bottom-right (A mirror)\n]);\n\nconst ONE_SCREEN_UPPER_BANK = RewiredMemoryChunk.createMapping([\n\t{ from: 0x000, size: 0x400, to: 0x400 }, // top-left (A mirror)\n\t{ from: 0x800, size: 0x400, to: 0x400 }, // bottom-left (A mirror)\n\t{ from: 0xc00, size: 0x400, to: 0x400 } // bottom-right (A mirror)\n]);\n\nconst FOUR_SCREENS = {}; // (the complete 4KB area is available)\n\nexport default {\n\tHORIZONTAL,\n\tVERTICAL,\n\tONE_SCREEN_LOWER_BANK,\n\tONE_SCREEN_UPPER_BANK,\n\tFOUR_SCREENS\n};\n","import constants from \"../../constants\";\n\n/**\n * A VRAM address, used for fetching the right tile during render.\n * yyy NN YYYYY XXXXX\n * ||| || ||||| +++++-- coarse X scroll\n * ||| || +++++-------- coarse Y scroll\n * ||| ++-------------- nametable select\n * +++----------------- fine Y scroll\n */\nexport default class LoopyAddress {\n\tconstructor() {\n\t\tthis.coarseX = 0;\n\t\tthis.coarseY = 0;\n\t\tthis.nameTableId = 0;\n\t\tthis.fineY = 0;\n\t}\n\n\t/** Increments X, wrapping when needed. */\n\tincrementX() {\n\t\tif (this.coarseX === 31) {\n\t\t\tthis.coarseX = 0;\n\t\t\tthis._switchHorizontalNameTable();\n\t\t} else {\n\t\t\tthis.coarseX++;\n\t\t}\n\t}\n\n\t/** Increments Y, wrapping when needed. */\n\tincrementY() {\n\t\tif (this.fineY < 7) {\n\t\t\tthis.fineY++;\n\t\t} else {\n\t\t\tthis.fineY = 0;\n\n\t\t\tif (this.coarseY === 29) {\n\t\t\t\tthis.coarseY = 0;\n\t\t\t\tthis._switchVerticalNameTable();\n\t\t\t} else if (this.coarseY === 31) {\n\t\t\t\tthis.coarseY = 0;\n\t\t\t} else {\n\t\t\t\tthis.coarseY++;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Returns the value as a 14-bit number.\n\t * The v register has 15 bits, but the PPU memory space is only 14 bits wide.\n\t * The highest bit is unused for access through $2007.\n\t */\n\tto14BitNumber() {\n\t\treturn this.toNumber() & 0b11111111111111;\n\t}\n\n\t/** Converts the address to a 15-bit number. */\n\ttoNumber() {\n\t\treturn (\n\t\t\t(this.coarseX << constants.LOOPY_ADDR_COARSE_X_OFFSET) |\n\t\t\t(this.coarseY << constants.LOOPY_ADDR_COARSE_Y_OFFSET) |\n\t\t\t(this.nameTableId << constants.LOOPY_ADDR_BASE_NAME_TABLE_ID_OFFSET) |\n\t\t\t(this.fineY << constants.LOOPY_ADDR_FINE_Y_OFFSET)\n\t\t);\n\t}\n\n\t/** Updates the address from a 15-bit number. */\n\tupdate(number) {\n\t\tthis.coarseX =\n\t\t\t(number >> constants.LOOPY_ADDR_COARSE_X_OFFSET) &\n\t\t\tconstants.LOOPY_ADDR_COARSE_X_MASK;\n\t\tthis.coarseY =\n\t\t\t(number >> constants.LOOPY_ADDR_COARSE_Y_OFFSET) &\n\t\t\tconstants.LOOPY_ADDR_COARSE_Y_MASK;\n\t\tthis.nameTableId =\n\t\t\t(number >> constants.LOOPY_ADDR_BASE_NAME_TABLE_ID_OFFSET) &\n\t\t\tconstants.LOOPY_ADDR_BASE_NAME_TABLE_ID_MASK;\n\t\tthis.fineY =\n\t\t\t(number >> constants.LOOPY_ADDR_FINE_Y_OFFSET) &\n\t\t\tconstants.LOOPY_ADDR_FINE_Y_MASK;\n\t}\n\n\t_switchHorizontalNameTable() {\n\t\tthis.nameTableId = this.nameTableId ^ 0b1;\n\t}\n\n\t_switchVerticalNameTable() {\n\t\tthis.nameTableId = this.nameTableId ^ 0b10;\n\t}\n}\n","import LoopyAddress from \"./LoopyAddress\";\nimport { Byte } from \"../../helpers\";\n\n/**\n * PPU's internal register (discovered by a user called `loopy` on nesdev).\n * It contains important data related to Name table scrolling.\n * Every write to `PPUAddr`, `PPUScroll`, and `PPUCtrl` changes its state.\n * It's also changed multiple times by the PPU during render.\n */\nexport default class LoopyRegister {\n\tconstructor() {\n\t\tthis.vAddress = new LoopyAddress(); // v (current VRAM address)\n\t\tthis.tAddress = new LoopyAddress(); // t (temporary VRAM address)\n\t\tthis.fineX = 0; // x (fine X scroll)\n\t\tthis.latch = false; // w (first or second write toggle)\n\t}\n\n\t/** Executed on `PPUCtrl` writes (updates `nameTableId` of `t`). */\n\tonPPUCtrlWrite(byte) {\n\t\t// $2000 write\n\t\t// t: ...GH.. ........ <- d: ......GH\n\t\t// <- d: ABCDEF..\n\t\tthis.tAddress.nameTableId = Byte.getBits(byte, 0, 2);\n\t}\n\n\t/** Executed on `PPUStatus` reads (resets `latch`). */\n\tonPPUStatusRead() {\n\t\t// $2002 read\n\t\t// w: <- 0\n\t\tthis.latch = false;\n\t}\n\n\t/** Executed on `PPUScroll` writes (updates X and Y scrolling on `t`). */\n\tonPPUScrollWrite(byte) {\n\t\tif (!this.latch) {\n\t\t\t// $2005 first write (w is 0)\n\t\t\t// t: ....... ...ABCDE <- d: ABCDE...\n\t\t\t// x: FGH <- d: .....FGH\n\t\t\t// w: <- 1\n\n\t\t\tthis.tAddress.coarseX = Byte.getBits(byte, 3, 5);\n\t\t\tthis.fineX = Byte.getBits(byte, 0, 3);\n\t\t} else {\n\t\t\t// $2005 second write (w is 1)\n\t\t\t// t: FGH..AB CDE..... <- d: ABCDEFGH\n\t\t\t// w: <- 0\n\n\t\t\tthis.tAddress.coarseY = Byte.getBits(byte, 3, 5);\n\t\t\tthis.tAddress.fineY = Byte.getBits(byte, 0, 3);\n\t\t}\n\n\t\tthis.latch = !this.latch;\n\t}\n\n\t/** Executed on `PPUAddr` writes (updates everything in a weird way, copying `t` to `v`). */\n\tonPPUAddrWrite(byte) {\n\t\tif (!this.latch) {\n\t\t\t// $2006 first write (w is 0)\n\t\t\t// t: .CDEFGH ........ <- d: ..CDEFGH\n\t\t\t// <- d: AB......\n\t\t\t// t: Z...... ........ <- 0 (bit Z is cleared)\n\t\t\t// w: <- 1\n\n\t\t\tlet number = this.tAddress.toNumber();\n\t\t\tlet high = Byte.highPartOf(number);\n\t\t\thigh = Byte.setBits(high, 0, 6, Byte.getBits(byte, 0, 6));\n\t\t\thigh = Byte.setBits(high, 6, 1, 0);\n\t\t\tnumber = Byte.to16Bit(high, Byte.lowPartOf(number));\n\t\t\tthis.tAddress.update(number);\n\t\t} else {\n\t\t\t// $2006 second write (w is 1)\n\t\t\t// t: ....... ABCDEFGH <- d: ABCDEFGH\n\t\t\t// v: <...all bits...> <- t: <...all bits...>\n\t\t\t// w: <- 0\n\n\t\t\tlet number = this.tAddress.toNumber();\n\t\t\tnumber = Byte.to16Bit(Byte.highPartOf(number), byte);\n\t\t\tthis.tAddress.update(number);\n\t\t\tthis.vAddress.update(number);\n\t\t}\n\n\t\tthis.latch = !this.latch;\n\t}\n\n\t/** Executed multiple times for each pre line. */\n\tonPreLine(cycle) {\n\t\t/**\n\t\t * During dots 280 to 304 of the pre-render scanline (end of vblank)\n\t\t * If rendering is enabled, at the end of vblank, shortly after the horizontal bits are copied\n\t\t * from t to v at dot 257, the PPU will repeatedly copy the vertical bits from t to v from\n\t\t * dots 280 to 304, completing the full initialization of v from t.\n\t\t */\n\t\tif (cycle >= 280 && cycle <= 304) this._copyY();\n\t}\n\n\t/** Executed multiple times for each visible line (prefetch dots were ignored). */\n\tonVisibleLine(cycle) {\n\t\t/**\n\t\t * Between dot 328 of a scanline, and 256 of the next scanline\n\t\t * If rendering is enabled, the PPU increments the horizontal position in v many times\n\t\t * across the scanline, it begins at dots 328 and 336, and will continue through the next\n\t\t * scanline at 8, 16, 24... 240, 248, 256 (every 8 dots across the scanline until 256).\n\t\t * Across the scanline the effective coarse X scroll coordinate is incremented repeatedly,\n\t\t * which will also wrap to the next nametable appropriately.\n\t\t */\n\t\tif (cycle >= 8 && cycle <= 256 && cycle % 8 === 0)\n\t\t\tthis.vAddress.incrementX();\n\t}\n\n\t/** Executed multiple times for each line. */\n\tonLine(cycle) {\n\t\t/**\n\t\t * At dot 256 of each scanline\n\t\t * If rendering is enabled, the PPU increments the vertical position in v. The effective Y\n\t\t * scroll coordinate is incremented, which is a complex operation that will correctly skip\n\t\t * the attribute table memory regions, and wrap to the next nametable appropriately.\n\t\t */\n\t\tif (cycle === 256) this.vAddress.incrementY();\n\n\t\t/**\n\t\t * At dot 257 of each scanline\n\t\t * If rendering is enabled, the PPU copies all bits related to horizontal position from t to v.\n\t\t */\n\t\tif (cycle === 257) this._copyX();\n\t}\n\n\t/** Returns a snapshot of the current state. */\n\tgetSaveState() {\n\t\treturn {\n\t\t\tv: this.vAddress.toNumber(),\n\t\t\tt: this.tAddress.toNumber(),\n\t\t\tx: this.fineX,\n\t\t\tw: this.latch\n\t\t};\n\t}\n\n\t/** Restores state from a snapshot. */\n\tsetSaveState(saveState) {\n\t\tthis.vAddress.update(saveState.v);\n\t\tthis.tAddress.update(saveState.t);\n\t\tthis.fineX = saveState.x;\n\t\tthis.latch = saveState.w;\n\t}\n\n\t_copyX() {\n\t\t// (copies all bits related to horizontal position from `t` to `v`)\n\t\tconst v = this.vAddress.toNumber();\n\t\tconst t = this.tAddress.toNumber();\n\n\t\t// v: ....A.. ...BCDEF <- t: ....A.. ...BCDEF\n\t\tthis.vAddress.update((v & 0b111101111100000) | (t & 0b000010000011111));\n\t}\n\n\t_copyY() {\n\t\t// (copies all bits related to vertical position from `t` to `v`)\n\t\tconst v = this.vAddress.toNumber();\n\t\tconst t = this.tAddress.toNumber();\n\n\t\t// v: GHIA.BC DEF..... <- t: GHIA.BC DEF.....\n\t\tthis.vAddress.update((v & 0b000010000011111) | (t & 0b111101111100000));\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/**\n * OAM Address Register (> write)\n *\n * Write the address of OAM you want to access here, then write in `OAMData`.\n * Most games just write $00 here and then use `OAMDMA`.\n */\nexport default class OAMAddr extends WriteOnlyInMemoryRegister {}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\nimport constants from \"../../constants\";\nimport { Byte } from \"../../helpers\";\n\n/**\n * OAM DMA Register (> write)\n *\n * Writing XX here will upload 256 bytes of data from CPU page $XX00-$XXFF to the internal PPU OAM.\n * This process takes 513 CPU cycles (+1 if on an odd cycle). The CPU is suspended during the operation.\n */\nexport default class OAMDMA extends WriteOnlyInMemoryRegister {\n\t/** Writes 256 bytes from page $`byte` to PPU's internal OAM. */\n\twriteAt(__, byte) {\n\t\tconst { cpu, ppu } = this.context;\n\n\t\tfor (let i = 0; i < 256; i++) {\n\t\t\tconst address = Byte.to16Bit(byte, i);\n\t\t\tconst value = cpu.memory.readAt(address);\n\t\t\tppu.oamRam[i] = value;\n\t\t}\n\n\t\tcpu.extraCycles += constants.OAMDMA_CPU_CYCLES + (cpu.cycle % 2 === 1);\n\t}\n}\n","import { InMemoryRegister } from \"../../registers\";\nimport { Byte } from \"../../helpers\";\n\n/**\n * OAM Data Port (<> read/write)\n *\n * Write OAM data here. Writes will increment `OAMAddr` after the write.\n */\nexport default class OAMData extends InMemoryRegister {\n\t/** Reads a value from PPU's internal OAM. */\n\treadAt() {\n\t\tconst { ppu } = this.context;\n\n\t\tconst oamAddress = ppu.registers.oamAddr.value;\n\t\treturn ppu.oamRam[oamAddress];\n\t}\n\n\t/** Writes a `byte` to PPU's internal OAM and increments `OAMAddr`. */\n\twriteAt(__, byte) {\n\t\tconst { ppu } = this.context;\n\n\t\tconst oamAddress = ppu.registers.oamAddr.value;\n\t\tppu.oamRam[oamAddress] = byte;\n\t\tthis._incrementAddress();\n\t}\n\n\t_incrementAddress() {\n\t\tconst { oamAddr } = this.context.ppu.registers;\n\t\toamAddr.setValue(Byte.force8Bit(oamAddr.value + 1));\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/**\n * PPU Address Register (>> write twice, upper byte first)\n *\n * Write the PPU address you want to access here, then write in `PPUData`.\n * Connected to `LoopyRegister`.\n */\nexport default class PPUAddr extends WriteOnlyInMemoryRegister {\n\t/** Alternately writes the MSB and the LSB of the address, and updates scrolling metadata. */\n\twriteAt(__, byte) {\n\t\tthis.context.ppu.loopy.onPPUAddrWrite(byte);\n\t}\n\n\t/** Returns the address. */\n\tget address() {\n\t\treturn this.context.ppu.loopy.vAddress.to14BitNumber();\n\t}\n\n\t/** Sets the address. */\n\tset address(value) {\n\t\tthis.context.ppu.loopy.vAddress.update(value);\n\t}\n\n\t/** Returns the write latch. */\n\tget latch() {\n\t\treturn this.context.ppu.loopy.latch;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/**\n * PPU Control Register (> write)\n *\n * Contains various flags controlling PPU operation.\n * Connected to `LoopyRegister`.\n */\nexport default class PPUCtrl extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"vramAddressIncrement32\", 2)\n\t\t\t.addReadOnlyField(\"patternTableAddressIdFor8x8Sprites\", 3)\n\t\t\t.addReadOnlyField(\"patternTableAddressIdForBackground\", 4)\n\t\t\t.addReadOnlyField(\"spriteSizeId\", 5)\n\t\t\t.addReadOnlyField(\"generateNmiAtStartOfVBlank\", 7);\n\t}\n\n\t/** Sets the actual value and updates scrolling metadata. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\n\t\tthis.context.ppu.loopy.onPPUCtrlWrite(byte);\n\t}\n\n\t/** Returns the `PPUAddr` increment per CPU read/write of `PPUData`. */\n\tget vramAddressIncrement() {\n\t\treturn this.vramAddressIncrement32 ? 32 : 1;\n\t}\n\n\t/** Returns true if sprites are 8x16. Otherwise, they're 8x8. */\n\tget isIn8x16Mode() {\n\t\treturn this.spriteSizeId === 1;\n\t}\n}\n","import { InMemoryRegister } from \"../../registers\";\nimport constants from \"../../constants\";\nimport { Byte } from \"../../helpers\";\n\n/**\n * PPU Data Port (<> read/write)\n *\n * Read/Write VRAM data here. `PPUAddr` will be incremented after any read/write.\n * Reads are delayed by 1.\n */\nexport default class PPUData extends InMemoryRegister {\n\t/** When a context is loaded. */\n\tonLoad() {\n\t\tthis.buffer = 0; // (used to simulate read delay)\n\t}\n\n\t/** Reads a value from PPU address space, delayed by one read (except for the Palette RAM). */\n\treadAt() {\n\t\tlet data = this.buffer;\n\n\t\tconst ppuAddress = this.context.ppu.registers.ppuAddr.address;\n\t\tthis.buffer = this.context.ppu.memory.readAt(ppuAddress);\n\n\t\t// (if the PPUAddr is inside Palette RAM area, skip the buffer)\n\t\tif (ppuAddress >= constants.PPU_ADDRESSED_PALETTE_RAM_START_ADDRESS)\n\t\t\tdata = this.buffer;\n\n\t\t// (reading increments `PPUAddr` as a side effect)\n\t\tif (!this.context.isDebugging) this._incrementAddress();\n\n\t\treturn data;\n\t}\n\n\t/** Writes a `byte` to PPU address space and increments `PPUAddr`. */\n\twriteAt(__, byte) {\n\t\tconst ppuAddress = this.context.ppu.registers.ppuAddr.address;\n\t\tthis.context.ppu.memory.writeAt(ppuAddress, byte);\n\t\tthis._incrementAddress();\n\t}\n\n\t_incrementAddress() {\n\t\tconst { registers } = this.context.ppu;\n\n\t\tregisters.ppuAddr.address = Byte.force16Bit(\n\t\t\tregisters.ppuAddr.address + registers.ppuCtrl.vramAddressIncrement\n\t\t);\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\n\n/**\n * PPU Mask Register (> write)\n *\n * Controls the rendering of sprites and backgrounds, as well as colour effects.\n */\nexport default class PPUMask extends WriteOnlyInMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addReadOnlyField(\"grayscale\", 0)\n\t\t\t.addReadOnlyField(\"showBackgroundInLeftmost8PixelsOfScreen\", 1)\n\t\t\t.addReadOnlyField(\"showSpritesInLeftmost8PixelsOfScreen\", 2)\n\t\t\t.addReadOnlyField(\"showBackground\", 3)\n\t\t\t.addReadOnlyField(\"showSprites\", 4)\n\t\t\t.addReadOnlyField(\"emphasizeRed\", 5)\n\t\t\t.addReadOnlyField(\"emphasizeGreen\", 6)\n\t\t\t.addReadOnlyField(\"emphasizeBlue\", 7);\n\t}\n\n\t/** Transforms a BGR `color` following the register's rules (grayscale or emphasize bits). */\n\ttransform(color) {\n\t\tlet r = (color >> 0) & 0xff;\n\t\tlet g = (color >> 8) & 0xff;\n\t\tlet b = (color >> 16) & 0xff;\n\n\t\tif (this.grayscale) {\n\t\t\tconst gray = Math.floor(r / 3) + Math.floor(g / 3) + Math.floor(b / 3);\n\t\t\tr = gray;\n\t\t\tg = gray;\n\t\t\tb = gray;\n\t\t}\n\n\t\tif (this.emphasizeRed || this.emphasizeGreen || this.emphasizeBlue) {\n\t\t\tconst all =\n\t\t\t\tthis.emphasizeRed && this.emphasizeGreen && this.emphasizeBlue;\n\t\t\tr = this.emphasizeRed && !all ? r : Math.floor(r * 0.75);\n\t\t\tg = this.emphasizeGreen && !all ? g : Math.floor(g * 0.75);\n\t\t\tb = this.emphasizeBlue && !all ? b : Math.floor(b * 0.75);\n\t\t}\n\n\t\treturn (r << 0) | (g << 8) | (b << 16);\n\t}\n\n\t/** Returns whether any rendering (background or sprites) is active or not. */\n\tget isRenderingEnabled() {\n\t\treturn this.showBackground || this.showSprites;\n\t}\n}\n","import { WriteOnlyInMemoryRegister } from \"../../registers\";\nimport constants from \"../../constants\";\n\n/**\n * PPU Scrolling Position Register (>> write twice, first X then Y)\n *\n * Changes the scroll position. Used to tell the PPU which pixel of the Name table\n * (selected through `PPUCtrl`) should be at the top left corner of the rendered screen.\n * Connected to `LoopyRegister`.\n */\nexport default class PPUScroll extends WriteOnlyInMemoryRegister {\n\t/**\n\t * Returns the scrolled X in Name table coordinates ([0..262]).\n\t * If this value overflows (> 255), switch the horizontal Name table.\n\t */\n\tscrolledX(x) {\n\t\tconst { vAddress, fineX } = this.context.ppu.loopy;\n\n\t\treturn (\n\t\t\tvAddress.coarseX * constants.TILE_LENGTH +\n\t\t\tfineX +\n\t\t\t(x % constants.TILE_LENGTH)\n\t\t);\n\t}\n\n\t/** Returns the scrolled X in Name table coordinates ([0..255]). */\n\tscrolledY() {\n\t\tconst { vAddress } = this.context.ppu.loopy;\n\n\t\treturn vAddress.coarseY * constants.TILE_LENGTH + vAddress.fineY;\n\t}\n\n\t/** Alternately writes the X and the Y coordinates of the scroll. */\n\twriteAt(__, byte) {\n\t\tthis.context.ppu.loopy.onPPUScrollWrite(byte);\n\t}\n}\n","import { InMemoryRegister } from \"../../registers\";\n\n/**\n * PPU Status Register (< read)\n *\n * Reflects the state of various functions inside the PPU.\n * It is often used for determining timing.\n */\nexport default class PPUStatus extends InMemoryRegister {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.addField(\"spriteOverflow\", 5)\n\t\t\t.addField(\"sprite0Hit\", 6)\n\t\t\t.addField(\"isInVBlankInterval\", 7);\n\t}\n\n\t/** When a context is loaded. */\n\tonLoad() {\n\t\tthis.setValue(0b10000000);\n\t}\n\n\t/** Reads the status flags, with some side effects. */\n\treadAt() {\n\t\tconst value = this.value;\n\n\t\t// this has two side effects:\n\t\tif (!this.context.isDebugging) {\n\t\t\t// - it resets the vertical blank flag\n\t\t\tthis.isInVBlankInterval = 0;\n\n\t\t\t// - it resets the write latch\n\t\t\tthis.context.ppu.loopy.onPPUStatusRead();\n\t\t}\n\n\t\treturn value;\n\t}\n\n\t/** Writes nothing (read-only address). */\n\twriteAt() {}\n}\n","import PPUCtrl from \"./PPUCtrl\";\nimport PPUMask from \"./PPUMask\";\nimport PPUStatus from \"./PPUStatus\";\nimport OAMAddr from \"./OAMAddr\";\nimport OAMData from \"./OAMData\";\nimport PPUScroll from \"./PPUScroll\";\nimport PPUAddr from \"./PPUAddr\";\nimport PPUData from \"./PPUData\";\nimport OAMDMA from \"./OAMDMA\";\nimport LoopyRegister from \"./LoopyRegister\";\nimport { WithCompositeMemory } from \"../../memory\";\n\n/** A collection of all the CPU-mapped PPU registers. */\nclass PPURegisterSegment {\n\tconstructor(context) {\n\t\tthis.ppuCtrl = new PPUCtrl().loadContext(context); // $2000\n\t\tthis.ppuMask = new PPUMask().loadContext(context); // $2001\n\t\tthis.ppuStatus = new PPUStatus().loadContext(context); // $2002\n\t\tthis.oamAddr = new OAMAddr().loadContext(context); // $2003\n\t\tthis.oamData = new OAMData().loadContext(context); // $2004\n\t\tthis.ppuScroll = new PPUScroll().loadContext(context); // $2005\n\t\tthis.ppuAddr = new PPUAddr().loadContext(context); // $2006\n\t\tthis.ppuData = new PPUData().loadContext(context); // $2007\n\t\tthis.oamDma = new OAMDMA().loadContext(context); // $4014\n\t}\n\n\t/** Creates a memory segment with the first 8 registers ($2000-$2007). */\n\ttoMemory() {\n\t\treturn WithCompositeMemory.createSegment([\n\t\t\tthis.ppuCtrl,\n\t\t\tthis.ppuMask,\n\t\t\tthis.ppuStatus,\n\t\t\tthis.oamAddr,\n\t\t\tthis.oamData,\n\t\t\tthis.ppuScroll,\n\t\t\tthis.ppuAddr,\n\t\t\tthis.ppuData\n\t\t]);\n\t}\n}\n\nexport { PPURegisterSegment, LoopyRegister };\n","import constants from \"../../constants\";\n\n/** Runs on virtual scanline -1, which prepares the PPU for rendering. */\nexport default function preLine({ ppu, mapper }) {\n\tif (!ppu.registers.ppuMask.isRenderingEnabled) return null;\n\n\tif (ppu.cycle === constants.PPU_CYCLE_CLEAR_FLAGS) {\n\t\tconst { ppuStatus } = ppu.registers;\n\n\t\tppuStatus.spriteOverflow = 0;\n\t\tppuStatus.sprite0Hit = 0;\n\t\tppuStatus.isInVBlankInterval = 0;\n\t}\n\n\tppu.loopy.onPreLine(ppu.cycle);\n\tppu.loopy.onLine(ppu.cycle);\n\n\treturn ppu.cycle === constants.PPU_CYCLE_MAPPER_TICK ? mapper.tick() : null;\n}\n","import renderBackground from \"./renderBackground\";\nimport renderSprites from \"./renderSprites\";\nimport constants from \"../../constants\";\n\n/** Runs for each visible scanline. Renders the image. */\nexport default function visibleLines(context) {\n\tconst { ppu, mapper } = context;\n\tconst { ppuMask } = ppu.registers;\n\tif (!ppuMask.isRenderingEnabled) return null;\n\n\tif (\n\t\tppu.cycle === constants.PPU_CYCLE_RENDER_BACKGROUND &&\n\t\tppuMask.showBackground\n\t)\n\t\trenderBackground(context);\n\n\tif (ppu.cycle === constants.PPU_CYCLE_RENDER_SPRITES && ppuMask.showSprites)\n\t\trenderSprites(context);\n\n\tppu.loopy.onLine(ppu.cycle);\n\n\treturn ppu.cycle === constants.PPU_CYCLE_MAPPER_TICK ? mapper.tick() : null;\n}\n","import constants from \"../../constants\";\nimport { interrupts } from \"../../cpu/constants\";\n\n/** Runs on scanline 241, which starts the VBlank period and can trigger NMIs. */\nexport default function vBlankLine({ ppu }) {\n\tif (ppu.cycle === constants.PPU_CYCLE_VBLANK) {\n\t\tppu.registers.ppuStatus.isInVBlankInterval = 1;\n\t\tif (ppu.registers.ppuCtrl.generateNmiAtStartOfVBlank) return interrupts.NMI;\n\t}\n\n\treturn null;\n}\n","import preLine from \"./_1_preLine\";\nimport visibleLines from \"./_2_visibleLines\";\nimport vBlankLine from \"./_3_vBlankLine\";\n\nexport default {\n\tPRELINE: preLine,\n\tVISIBLE: visibleLines,\n\tVBLANK_START: vBlankLine,\n\tIDLE: () => {}\n};\n","import constants from \"../../constants\";\n\nconst NAME_TABLE_OFFSETS = [1, -1, 1, -1]; // (for `scrolledX` overflow)\nconst FULL_ALPHA = 0xff000000;\n\n/** Renders the background from the Name tables. */\nexport default function renderBackground({ ppu }) {\n\tconst { registers, loopy } = ppu;\n\tconst y = ppu.scanline;\n\n\tconst scrolledY = registers.ppuScroll.scrolledY();\n\tconst transparentColor = ppu.framePalette.getColorOf(0, 0);\n\n\tfor (let x = 0; x < constants.SCREEN_WIDTH; x++) {\n\t\tconst cycle = x + 1;\n\t\tconst scrolledX = registers.ppuScroll.scrolledX(x);\n\n\t\t// skip masked pixels\n\t\tif (!registers.ppuMask.showBackgroundInLeftmost8PixelsOfScreen && x < 8) {\n\t\t\tppu.frameBuffer[y * constants.SCREEN_WIDTH + x] =\n\t\t\t\tFULL_ALPHA | registers.ppuMask.transform(transparentColor);\n\t\t\tppu.paletteIndexes[y * constants.SCREEN_WIDTH + x] = 0;\n\t\t\tloopy.onVisibleLine(cycle);\n\t\t\tcontinue;\n\t\t}\n\n\t\t// background coordinates based on scroll\n\t\tconst baseNameTableId = loopy.vAddress.nameTableId;\n\t\tconst nameTableOffset = // (switch horizontal Name table if scrolledX has overflowed)\n\t\t\tscrolledX >= constants.SCREEN_WIDTH\n\t\t\t\t? NAME_TABLE_OFFSETS[baseNameTableId]\n\t\t\t\t: 0;\n\t\tconst nameTableId = baseNameTableId + nameTableOffset;\n\t\tconst nameTableX = scrolledX % constants.SCREEN_WIDTH;\n\t\tconst nameTableY = scrolledY % constants.SCREEN_HEIGHT;\n\n\t\t// tile id and palette fetch\n\t\tconst tileId = ppu.nameTable.getTileIdOf(\n\t\t\tnameTableId,\n\t\t\tnameTableX,\n\t\t\tnameTableY\n\t\t);\n\t\tconst paletteId = ppu.attributeTable.getPaletteIdOf(\n\t\t\tnameTableId,\n\t\t\tnameTableX,\n\t\t\tnameTableY\n\t\t);\n\t\tconst paletteColors = [\n\t\t\tppu.framePalette.getColorOf(paletteId, 0),\n\t\t\tppu.framePalette.getColorOf(paletteId, 1),\n\t\t\tppu.framePalette.getColorOf(paletteId, 2),\n\t\t\tppu.framePalette.getColorOf(paletteId, 3)\n\t\t];\n\n\t\t// tile row fetch\n\t\tconst patternTableId = registers.ppuCtrl.patternTableAddressIdForBackground;\n\t\tconst tileStartX = nameTableX % constants.TILE_LENGTH;\n\t\tconst tileStartY = nameTableY % constants.TILE_LENGTH;\n\t\tconst patternLowByte = ppu.patternTable.getLowByteOf(\n\t\t\tpatternTableId,\n\t\t\ttileId,\n\t\t\ttileStartY\n\t\t);\n\t\tconst patternHighByte = ppu.patternTable.getHighByteOf(\n\t\t\tpatternTableId,\n\t\t\ttileId,\n\t\t\ttileStartY\n\t\t);\n\n\t\t// partially draw tile (from `tileStartX` until its end or the end of the Name table)\n\t\tconst remainingNameTablePixels = constants.SCREEN_WIDTH - nameTableX;\n\t\tconst tilePixels = Math.min(\n\t\t\tconstants.TILE_LENGTH - tileStartX,\n\t\t\tremainingNameTablePixels\n\t\t);\n\t\tfor (let i = 0; i < tilePixels; i++) {\n\t\t\tconst paletteIndex = ppu.patternTable.getPaletteIndexFromBytes(\n\t\t\t\tpatternLowByte,\n\t\t\t\tpatternHighByte,\n\t\t\t\ttileStartX + i\n\t\t\t);\n\n\t\t\tconst color =\n\t\t\t\tpaletteIndex !== constants.COLOR_TRANSPARENT\n\t\t\t\t\t? paletteColors[paletteIndex]\n\t\t\t\t\t: transparentColor;\n\n\t\t\tppu.frameBuffer[y * constants.SCREEN_WIDTH + x + i] =\n\t\t\t\tFULL_ALPHA | registers.ppuMask.transform(color);\n\t\t\tppu.paletteIndexes[y * constants.SCREEN_WIDTH + x + i] = paletteIndex;\n\t\t\tloopy.onVisibleLine(cycle + i);\n\t\t}\n\n\t\t// (the x++ of the for loop will do the last increment)\n\t\tx += tilePixels - 1;\n\t}\n}\n","import constants from \"../../constants\";\n\n/** Renders the sprites from OAM. */\nexport default function renderSprites(context) {\n\tconst sprites = evaluateSprites(context);\n\tconst buffer = drawSpritesIntoBuffer(context, sprites);\n\tdrawSprites(context, buffer);\n}\n\n/** Evaluates which sprites should be rendered in the current scanline. */\nconst evaluateSprites = ({ ppu }) => {\n\tconst sprites = [];\n\n\tfor (let spriteId = 0; spriteId < constants.MAX_SPRITES; spriteId++) {\n\t\tconst sprite = ppu.oam.createSprite(spriteId);\n\n\t\tif (\n\t\t\tsprite.shouldRenderInScanline(ppu.scanline) &&\n\t\t\tsprites.length < constants.MAX_SPRITES_PER_SCANLINE + 1\n\t\t) {\n\t\t\tif (sprites.length < constants.MAX_SPRITES_PER_SCANLINE) {\n\t\t\t\tsprites.push(sprite);\n\t\t\t} else {\n\t\t\t\tppu.registers.ppuStatus.spriteOverflow = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// (sprites on lower addresses have greater priority)\n\treturn sprites.reverse();\n};\n\n/** Draws a list of `sprites` into a buffer. */\nconst drawSpritesIntoBuffer = (context, sprites) => {\n\tconst { ppu } = context;\n\tconst { ppuMask, ppuStatus } = ppu.registers;\n\tconst finalY = ppu.scanline;\n\n\tconst buffer = { colors: [], priorities: [], xs: [] };\n\n\tfor (let sprite of sprites) {\n\t\tconst insideY = sprite.diffY(finalY);\n\n\t\tfor (let insideX = 0; insideX < constants.TILE_LENGTH; insideX++) {\n\t\t\tconst finalX = sprite.x + insideX;\n\t\t\tif (!ppuMask.showSpritesInLeftmost8PixelsOfScreen && finalX < 8) continue;\n\n\t\t\t// color fetch\n\t\t\tconst paletteId = sprite.paletteId;\n\t\t\tconst paletteIndex = getSpritePixelPaletteIndex(\n\t\t\t\tcontext,\n\t\t\t\tsprite,\n\t\t\t\tinsideX,\n\t\t\t\tinsideY\n\t\t\t);\n\t\t\tconst isSpritePixelOpaque = paletteIndex !== constants.COLOR_TRANSPARENT;\n\t\t\tconst isBackgroundPixelOpaque =\n\t\t\t\tppu.paletteIndexOf(finalX, finalY) !== constants.COLOR_TRANSPARENT;\n\n\t\t\t// sprite 0 hit\n\t\t\tif (\n\t\t\t\tsprite.id === 0 &&\n\t\t\t\tisSpritePixelOpaque &&\n\t\t\t\tisBackgroundPixelOpaque &&\n\t\t\t\tppuMask.showBackground &&\n\t\t\t\tppuMask.showSprites\n\t\t\t)\n\t\t\t\tppuStatus.sprite0Hit = 1;\n\n\t\t\t// add to drawing buffer\n\t\t\tif (isSpritePixelOpaque) {\n\t\t\t\tconst color = ppu.framePalette.getColorOf(paletteId, paletteIndex);\n\t\t\t\tbuffer.colors[finalX] = color;\n\t\t\t\tbuffer.priorities[finalX] = sprite.isInFrontOfBackground;\n\t\t\t\tbuffer.xs[finalX] = finalX;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn buffer;\n};\n\n/** Draws a `buffer` using the PPU, in the right layer. */\nconst drawSprites = ({ ppu }, { colors, priorities, xs }) => {\n\tconst finalY = ppu.scanline;\n\n\tfor (let finalX of xs) {\n\t\tconst isInFrontOfBackground = priorities[finalX];\n\t\tconst color = colors[finalX];\n\n\t\t// sprite/background priority\n\t\tconst isBackgroundPixelOpaque =\n\t\t\tppu.paletteIndexOf(finalX, finalY) !== constants.COLOR_TRANSPARENT;\n\t\tconst shouldDraw = isInFrontOfBackground || !isBackgroundPixelOpaque;\n\n\t\t// actual drawing\n\t\tif (shouldDraw) ppu.plot(finalX, finalY, color);\n\t}\n};\n\n/** Returns the (`insideX`, `insideY`) `sprite`'s pixel palette index. */\nconst getSpritePixelPaletteIndex = ({ ppu }, sprite, insideX, insideY) => {\n\tconst tileInsideY = insideY % constants.TILE_LENGTH;\n\n\treturn ppu.patternTable.getPaletteIndexOf(\n\t\tsprite.patternTableId,\n\t\tsprite.tileIdFor(insideY),\n\t\tsprite.flipX ? constants.TILE_LENGTH - 1 - insideX : insideX,\n\t\tsprite.flipY ? constants.TILE_LENGTH - 1 - tileInsideY : tileInsideY\n\t);\n};\n","import constants from \"../../../constants\";\nimport { WithContext, Byte } from \"../../../helpers\";\n\n/**\n * An area of memory which defines what palette (0~3) each background tile uses.\n * It's a 64-byte array located at the end of each Name table.\n * The background is divided into blocks, each of which is 4x4 tiles.\n * Every block is divided into four regions of 2x2 tiles.\n * Each byte represents a block in that matrix.\n * (Bits 0,1 = Quad 0; Bits 2,3 = Quad 1; Bits 4,5 = Quad 2; Bits 6,7 = Quad 3)\n */\nexport default class AttributeTable {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t}\n\n\t/** Returns the palette id of the pixel located in (`x`, `y`) from `nameTableId`. */\n\tgetPaletteIdOf(nameTableId, x, y) {\n\t\tconst startAddress =\n\t\t\tconstants.NAME_TABLES_START_ADDRESS +\n\t\t\t(nameTableId + 1) * constants.NAME_TABLE_SIZE -\n\t\t\tconstants.ATTRIBUTE_TABLE_SIZE;\n\n\t\tconst blockX = Math.floor(x / constants.ATTRIBUTE_TABLE_BLOCK_SIZE);\n\t\tconst blockY = Math.floor(y / constants.ATTRIBUTE_TABLE_BLOCK_SIZE);\n\t\tconst blockIndex =\n\t\t\tblockY * constants.ATTRIBUTE_TABLE_TOTAL_BLOCKS_X + blockX;\n\n\t\tconst regionX = Math.floor(\n\t\t\t(x % constants.ATTRIBUTE_TABLE_BLOCK_SIZE) /\n\t\t\t\tconstants.ATTRIBUTE_TABLE_REGION_SIZE\n\t\t);\n\t\tconst regionY = Math.floor(\n\t\t\t(y % constants.ATTRIBUTE_TABLE_BLOCK_SIZE) /\n\t\t\t\tconstants.ATTRIBUTE_TABLE_REGION_SIZE\n\t\t);\n\t\tconst regionIndex =\n\t\t\tregionY * constants.ATTRIBUTE_TABLE_TOTAL_REGIONS_X + regionX;\n\n\t\tconst block = this.context.ppu.memory.readAt(startAddress + blockIndex);\n\n\t\treturn (\n\t\t\tconstants.PALETTE_BACKGROUND_START +\n\t\t\tByte.getBits(\n\t\t\t\tblock,\n\t\t\t\tregionIndex * constants.ATTRIBUTE_TABLE_REGION_SIZE_BITS,\n\t\t\t\tconstants.ATTRIBUTE_TABLE_REGION_SIZE_BITS\n\t\t\t)\n\t\t);\n\t}\n}\n","import palette from \"../../constants/palette\";\nimport constants from \"../../../constants\";\nimport { WithContext } from \"../../../helpers\";\n\n/**\n * An area of memory which defines eight 4-color palettes (4 for backgrounds, 4 for sprites).\n * It's located at $3F00 (Palette RAM), and its total size is 32 bytes.\n * Each byte is an index to the system palette (0x00 ~ 0x3f).\n */\nexport default class FramePalette {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t}\n\n\t/** Returns the BGR color of `paletteIndex` from `paletteId`. */\n\tgetColorOf(paletteId, paletteIndex) {\n\t\tconst startAddress =\n\t\t\tconstants.PPU_ADDRESSED_PALETTE_RAM_START_ADDRESS +\n\t\t\tpaletteId * constants.PALETTE_SIZE;\n\n\t\tconst colorIndex = this.context.ppu.memory.readAt(\n\t\t\tstartAddress + paletteIndex\n\t\t);\n\t\treturn palette[colorIndex];\n\t}\n}\n","import constants from \"../../../constants\";\nimport { WithContext } from \"../../../helpers\";\n\n/**\n * An area of memory which defines a background. It's located at $2000 (VRAM).\n * A background is made up of a grid of tiles, each tile being 8x8 pixels.\n * A frame is 256x240 pixels or 32x30 tiles.\n * Each byte represents a tile (they're indexes into the Pattern table).\n */\nexport default class NameTable {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t}\n\n\t/** Returns a tile index to the background Pattern table that contains (`x`, `y`). */\n\tgetTileIdOf(nameTableId, x, y) {\n\t\tconst startAddress =\n\t\t\tconstants.NAME_TABLES_START_ADDRESS +\n\t\t\tnameTableId * constants.NAME_TABLE_SIZE;\n\n\t\tconst tileX = Math.floor(x / constants.TILE_LENGTH);\n\t\tconst tileY = Math.floor(y / constants.TILE_LENGTH);\n\t\tconst tileIndex = tileY * constants.NAME_TABLE_TOTAL_TILES_X + tileX;\n\n\t\treturn this.context.ppu.memory.readAt(startAddress + tileIndex);\n\t}\n}\n","import Sprite from \"./Sprite\";\nimport constants from \"../../../constants\";\nimport { WithContext } from \"../../../helpers\";\n\n/**\n * OAM = \"Object Attribute Memory\"\n * An area of memory which defines a sprite list. It's located in a 256KB PPU's internal RAM.\n * Each sprite is 4 bytes, so the maximum amount of sprites is 64.\n * Sprites are defined by (y, tileId, attributes, x).\n * 76543210\n * ||| ++- foregroundPaletteId\n * ||+------ priority (0: in front of background, 1: behind background)\n * |+------- horizontalFlip\n * +-------- verticalFlip\n * All sprites are either 8x8 or 8x16 (depending on `PPUCtrl`'s bit 5).\n * On 8x16 mode, the first bit of `tileId` indicates the pattern table (ignoring `PPUCtrl`'s bit 3).\n */\nexport default class OAM {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t}\n\n\t/** Returns a new instance of the sprite #`id`. */\n\tcreateSprite(id) {\n\t\tconst { oamRam, registers } = this.context.ppu;\n\t\tconst is8x16 = registers.ppuCtrl.isIn8x16Mode;\n\n\t\tconst address = id * constants.SPRITE_SIZE;\n\t\tconst yByte = oamRam[address + constants.SPRITE_BYTE_Y];\n\t\tconst tileIdByte = oamRam[address + constants.SPRITE_BYTE_TILE_ID];\n\t\tconst attributes = oamRam[address + constants.SPRITE_BYTE_ATTRIBUTES];\n\t\tconst x = oamRam[address + constants.SPRITE_BYTE_X];\n\n\t\tconst y = yByte + 1; // (sprite data is delayed by one scanline)\n\t\tconst patternTableId = is8x16\n\t\t\t? tileIdByte & constants.SPRITE_8x16_PATTERN_TABLE_MASK\n\t\t\t: registers.ppuCtrl.patternTableAddressIdFor8x8Sprites;\n\t\tconst tileId = is8x16\n\t\t\t? tileIdByte & constants.SPRITE_8x16_TILE_ID_MASK\n\t\t\t: tileIdByte;\n\n\t\treturn new Sprite(id, x, y, patternTableId, tileId, attributes, is8x16);\n\t}\n}\n","import constants from \"../../../constants\";\nimport { WithContext, Byte } from \"../../../helpers\";\n\n/**\n * An area of memory which defines the shapes of tiles that make up backgrounds and sprites.\n * It's located at $0000, and it's usually mapped to CHR ROM.\n * Each tile is 16 bytes, made of two bit planes:\n * - The first plane controls bit 0 of the color.\n * - The second plane controls bit 1 of the color.\n * Any pixel whose color is 0 is background/transparent.\n */\nexport default class PatternTable {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\t}\n\n\t/**\n\t * Returns the palette index of the pixel located in (`x`, `y`),\n\t * from tile `tileId` of `patternTableId`.\n\t */\n\tgetPaletteIndexOf(patternTableId, tileId, x, y) {\n\t\tconst lowByte = this.getLowByteOf(patternTableId, tileId, y);\n\t\tconst highByte = this.getHighByteOf(patternTableId, tileId, y);\n\n\t\treturn this.getPaletteIndexFromBytes(lowByte, highByte, x);\n\t}\n\n\t/** Get first plane's `y`th byte from tile `tileId` of `patternTableId`. */\n\tgetLowByteOf(patternTableId, tileId, y) {\n\t\tconst startAddress = this._getStartAddress(patternTableId);\n\t\tconst firstPlane = tileId * constants.TILE_SIZE;\n\n\t\treturn this.context.ppu.memory.readAt(startAddress + firstPlane + y);\n\t}\n\n\t/** Get second plane's `y`th byte from tile `tileId` of `patternTableId`. */\n\tgetHighByteOf(patternTableId, tileId, y) {\n\t\tconst startAddress = this._getStartAddress(patternTableId);\n\t\tconst firstPlane = tileId * constants.TILE_SIZE;\n\t\tconst secondPlane = firstPlane + constants.TILE_SIZE / 2;\n\n\t\treturn this.context.ppu.memory.readAt(startAddress + secondPlane + y);\n\t}\n\n\t/** Builds a palette index from `lowByte` and `highByte` (bit 7-`x`). */\n\tgetPaletteIndexFromBytes(lowByte, highByte, x) {\n\t\tconst column = constants.TILE_LENGTH - 1 - x;\n\t\tconst lsb = Byte.getBit(lowByte, column);\n\t\tconst msb = Byte.getBit(highByte, column);\n\n\t\treturn (msb << 1) | lsb;\n\t}\n\n\t_getStartAddress(patternTableId) {\n\t\treturn (\n\t\t\tconstants.PATTERN_TABLES_START_ADDRESS +\n\t\t\tpatternTableId * constants.PATTERN_TABLE_SIZE\n\t\t);\n\t}\n}\n","import constants from \"../../../constants\";\nimport { Byte } from \"../../../helpers\";\n\n/** A sprite containing an id, position, height, a tile id and some attributes. */\nexport default class Sprite {\n\tconstructor(id, x, y, patternTableId, tileId, attributes, is8x16) {\n\t\tthis.id = id;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.patternTableId = patternTableId;\n\t\tthis.tileId = tileId;\n\t\tthis.attributes = attributes;\n\t\tthis.is8x16 = is8x16;\n\t}\n\n\t/**\n\t * Returns the tile id for an `insideY` position.\n\t * The bottom part of a 8x16 sprite uses the next tile index.\n\t */\n\ttileIdFor(insideY) {\n\t\tlet index = +(insideY >= constants.TILE_LENGTH);\n\t\tif (this.is8x16 && this.flipY) index = +!index;\n\n\t\treturn this.tileId + index;\n\t}\n\n\t/** Returns whether it should appear in a certain `scanline` or not. */\n\tshouldRenderInScanline(scanline) {\n\t\tconst diffY = this.diffY(scanline);\n\n\t\treturn diffY >= 0 && diffY < this.height;\n\t}\n\n\t/** Returns the difference between a `scanline` and sprite's Y coordinate. */\n\tdiffY(scanline) {\n\t\treturn scanline - this.y;\n\t}\n\n\t/** Returns the palette id of the sprite. */\n\tget paletteId() {\n\t\treturn (\n\t\t\tconstants.PALETTE_FOREGROUND_START +\n\t\t\tByte.getBits(\n\t\t\t\tthis.attributes,\n\t\t\t\tconstants.SPRITE_ATTR_PALETTE_BITS_START,\n\t\t\t\tconstants.SPRITE_ATTR_PALETTE_BITS_SIZE\n\t\t\t)\n\t\t);\n\t}\n\n\t/** Returns whether the sprite is in front of background or not. */\n\tget isInFrontOfBackground() {\n\t\treturn !Byte.getBit(this.attributes, constants.SPRITE_ATTR_PRIORITY_BIT);\n\t}\n\n\t/** Returns whether the sprite is horizontally flipped or not. */\n\tget flipX() {\n\t\treturn !!Byte.getBit(\n\t\t\tthis.attributes,\n\t\t\tconstants.SPRITE_ATTR_HORIZONTAL_FLIP_BIT\n\t\t);\n\t}\n\n\t/** Returns whether the sprite is vertically flipped or not. */\n\tget flipY() {\n\t\treturn !!Byte.getBit(\n\t\t\tthis.attributes,\n\t\t\tconstants.SPRITE_ATTR_VERTICAL_FLIP_BIT\n\t\t);\n\t}\n\n\t/** Returns the sprite height. */\n\tget height() {\n\t\treturn this.is8x16 ? 16 : 8;\n\t}\n}\n","import { WithContext, Byte } from \"../helpers\";\n\n/** An 8-bit register with multiple status flags and values that live in RAM. */\nexport default class InMemoryRegister {\n\tconstructor() {\n\t\tWithContext.apply(this);\n\n\t\tthis.memorySize = 1;\n\t\tthis.value = 0;\n\t\tthis._readOnlyFields = [];\n\t}\n\n\t/** Adds a field of `size` bits named `named`, starting at `startPosition`. */\n\taddField(name, startPosition, size = 1) {\n\t\tObject.defineProperty(this, name, {\n\t\t\tget() {\n\t\t\t\treturn Byte.getBits(this.value, startPosition, size);\n\t\t\t},\n\t\t\tset(value) {\n\t\t\t\tthis.value = Byte.force8Bit(\n\t\t\t\t\tByte.setBits(this.value, startPosition, size, value)\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\n\t\treturn this;\n\t}\n\n\t/** Adds a read-only field of `size` bits named `named`, starting at `startPosition`. */\n\taddReadOnlyField(name, startPosition, size = 1) {\n\t\t// (this performs better than `addField`)\n\t\tthis._readOnlyFields.push({ name, startPosition, size });\n\t\tthis[name] = 0;\n\n\t\treturn this;\n\t}\n\n\t/** Sets the value manually (updating internal accessors). */\n\tsetValue(value) {\n\t\tthis.value = Byte.force8Bit(value);\n\t\tthis._writeReadOnlyFields();\n\t}\n\n\t/** Returns the actual value. */\n\treadAt() {\n\t\treturn this.value;\n\t}\n\n\t/** Sets the actual value. */\n\twriteAt(__, byte) {\n\t\tthis.setValue(byte);\n\t}\n\n\t_writeReadOnlyFields() {\n\t\tfor (let { name, startPosition, size } of this._readOnlyFields)\n\t\t\tthis[name] = Byte.getBits(this.value, startPosition, size);\n\t}\n}\n","/** An 8-bit register in RAM, that behaves differently depending on the access type (read/write). */\nexport default class MixedInMemoryRegister {\n\tconstructor(readRegister, writeRegister) {\n\t\tthis.readRegister = readRegister;\n\t\tthis.writeRegister = writeRegister;\n\t\tthis.memorySize = 1;\n\t}\n\n\t/** Returns the actual value. */\n\treadAt(address) {\n\t\treturn this.readRegister.readAt(address);\n\t}\n\n\t/** Sets the actual value. */\n\twriteAt(address, byte) {\n\t\tthis.writeRegister.writeAt(address, byte);\n\t}\n}\n","import InMemoryRegister from \"./InMemoryRegister\";\nimport MixedInMemoryRegister from \"./MixedInMemoryRegister\";\n\n/** A write-only `InMemoryRegister`. */\nclass WriteOnlyInMemoryRegister extends InMemoryRegister {\n\t/** Reads nothing (write-only address). */\n\treadAt() {\n\t\treturn 0;\n\t}\n}\n\nexport { InMemoryRegister, WriteOnlyInMemoryRegister, MixedInMemoryRegister };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = function() {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [64], function() { return __webpack_require__(9517); })\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + \"40a37172\" + \".chunk.js\";\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/nescore/\";","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t517: 1\n};\n\n// importScripts chunk loading\nvar installChunk = function(data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = function(chunkId, promises) {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunknescore\"] = self[\"webpackChunknescore\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = function() {\n\treturn __webpack_require__.e(64).then(next);\n};","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n"],"names":["FrameTimer","onFrame","onFps","_this","fps","arguments","length","undefined","config","_classCallCheck","_run","_isRunning","_frameId","requestAnimationFrame","now","Date","elapsedTime","_lastTime","_lastSecondTime","_lastSecondFrames","_interval","this","_fps","_startTime","_createClass","key","value","cancelAnimationFrame","WebWorker","postMessage","frameBuffer","frameTimer","countNewFrame","$postMessage","onAudio","sample","samples","push","terminate","stop","data","$onMessage","_ref","Uint8Array","nes","load","start","Array","isArray","i","button","isSaveStateRequested","$saveState","isLoadStateRequested","$loadState","wasSaveStateRequested","wasLoadStateRequested","$startDebugging","isDebugging","$stopDebugging","$debugStepFrame","isDebugStepFrameRequested","$debugStepScanline","isDebugScanlineRequested","setButton","availableSamples","id","saveState","error","isDebugStepScanlineRequested","NES","getSaveState","setSaveState","scanline","requestedSamples","constants","frame","webWorker","require","msg","onmessage","message","onSample","logger","WithContext","sampleCount","cpu","CPU","ppu","PPU","apu","APU","pendingPPUCycles","pendingAPUCycles","rom","saveFileBytes","cartridge","Cartridge","mapper","createMapper","controllerPorts","Controller","loadContext","memoryBus","CPUBus","controllers","primary","secondary","inDebugMode","action","_setSaveFile","requireContext","currentFrame","step","currentScanline","plot","cpuCycles","_clockPPU","_clockAPU","player","isPressed","Error","concat","context","update","clear","prgRam","bytes","memorySize","readAt","saveFile","getSaveFile","_this2","unitCycles","interrupt","newCPUCycles","prgRamBytes","writeAt","STEPS_PER_SAMPLE","Math","floor","time","sampleCounter","frameClockCounter","frameIRQFlag","registers","channels","pulses","PulseChannel","triangle","TriangleChannel","noise","NoiseChannel","dmc","DMCChannel","_onQuarter","bind","_onHalf","_onEnd","APURegisterSegment","_reset","irq","_onNewCycle","type","apuFrameCounter","interruptInhibitFlag","interrupts","_incrementCounters","pulse1","pulse2","onIRQ","cycle","frameClock","use5StepSequencer","pulseOut","tndOut","quarterBeat","halfBeat","outputSample","startFlag","isUsingDPCM","buffer","cursorByte","cursorBit","dividerCount","samplePeriod","sampleAddress","sampleLength","control","dpcmPeriod","absoluteAddress","lengthInBytes","_processDPCM","get","apuControl","enableDMC","hasSampleFinished","hasByteFinished","irqEnable","address","memory","variation","Byte","loop","startDPCM","lengthCounter","LengthCounter","volumeEnvelope","VolumeEnvelope","shift","isEnabled","volume","constantVolume","volumeOrEnvelopePeriod","_processNoise","didFinish","clock","envelopeLoopOrLengthCounterHalt","enableNoise","form","period","bitPosition","bit","feedback","enableFlagName","oscillator","PulseOscillator","frequencySweeper","FrequencySweeper","timer","dutyCycle","frequency","amplitude","mute","lclTimerHigh","timerHigh","timerLow","track","sweep","enabledFlag","updateTimer","TriangleOscillator","linearLengthCounter","linearLCL","halt","enableTriangle","QUARTERS_4_STEP","QUARTERS_5_STEP","measure","onQuarter","onHalf","onEnd","quarters","isHalf","isEnd","APUControl","_WriteOnlyInMemoryReg","_inherits","_super","_createSuper","call","addReadOnlyField","__","byte","enablePulse1","enablePulse2","setValue","counter","WriteOnlyInMemoryRegister","APUFrameCounter","APUStatus","_InMemoryRegister","addField","lcPulse1","lcPulse2","lcTriangle","lcNoise","remainingBytesDMC","remainingBytes","dmcIRQFlag","InMemoryRegister","DMCControl","dpcmPeriods","dpcmPeriodId","DMCLoad","directLoad","DMCSampleAddress","apply","DMCSampleLength","NoiseControl","NoiseForm","noisePeriods","periodId","NoiseLCL","lengthTable","lengthCounterLoad","DUTY_CYCLES","PulseControl","dutyCycleId","PulseLCLTimerHigh","channel","PulseSweep","PulseTimerLow","TriangleLCLTimerHigh","TriangleLinearLCL","TriangleTimerLow","map","lcl","apuStatus","apuMain","MixedInMemoryRegister","WithCompositeMemory","MemoryPadding","change","register","_setMute","shiftCount","negateFlag","dividerPeriodMinusOne","isHalted","harmonics","_frequency","set","abs","phase","phaseInSlope","magicNumber","mapperId","header","Mapper","mappers","_getBytes","_programOffset","_programSize","offset","size","chrRomPages","usesChrRam","__header","flags6","flags7","prgRomPages","mirroring","hasTrainerBeforeProgram","from","char","String","fromCharCode","join","slice","prgRomPageSize","chrRomPageSize","prg","prgRom","chr","chrRom","totalPrgPages","totalChrPages","prgPages","_","page","_getPage","chrPages","segments","createCPUSegment","createPPUSegment","it","MemoryChunk","asReadOnly","max","pageSize","NROM","_Mapper","unused","prgRomFirstPage","_newPrgBank","prgRomLastPage","MemoryMirror","_ref2","_newChrBank","MMC1","prgRomBank0","prgRomBank1","_prgRomBank0","_prgRomBank1","_state","LoadRegister","ControlRegister","chrBank0","CHRBank0Register","chrBank1","CHRBank1Register","prgBank","PRGBankRegister","_chrRomBank0","_chrRomBank1","write","changeNameTablesMirroringTo","_loadBanks","_get","_getPrototypeOf","prototype","loadShiftRegister","shiftRegister","loadWriteCounter","writeCounter","_this$_state","isPrgRom32Kb","prgRomBankId","_getPrgPage","isFirstPrgAreaSwitchable","isSecondPrgAreaSwitchable","isChrRom8Kb","_getChrPage","_super2","mirroringId","prgRomBankMode","chrRomBankMode","_InMemoryRegister2","_super3","_InMemoryRegister3","_super4","_InMemoryRegister4","_super5","UxROM","prgRomSelectedPage","_prgRomSwitchableBank","CNROM","MMC3","_loadPRGBanks","_loadCHRBanks","prgRomBank2","prgRomBank3","_prgRomBank2","bankSelect","BankSelectRegister","bankData","irqEnabled","irqLatch","irqCountdown","_chrRomBank2","_chrRomBank3","_chrRomBank4","_chrRomBank5","_chrRomBank6","_chrRomBank7","isEven","bankRegister","_this$_state2","r0","r1","chrRomA12Inversion","_0_NROM","_1_MMC1","_2_UxROM","_3_CNROM","_4_MMC3","SYNC_TO_AUDIO","AUDIO_BUFFER_LIMIT","AUDIO_BUFFER_SIZE","FPS","BASE_VOLUME","MIN_FREQUENCY_CHANGE","PULSE_CHANNEL_VOLUME","TRIANGLE_CHANNEL_VOLUME","NOISE_CHANNEL_VOLUME","DMC_CHANNEL_VOLUME","NESTEST_PATH","KB","SCREEN_WIDTH","SCREEN_HEIGHT","TOTAL_PIXELS","BUTTONS","ROM_MAGIC_NUMBER","ROM_HEADER_SIZE","ROM_TRAINER_SIZE","PRG_ROM_PAGE_SIZE","CHR_ROM_PAGE_SIZE","CHR_RAM_PAGES","CARTRIDGE_RAM_SIZE","PPU_STEPS_PER_CPU_CYCLE","APU_STEPS_PER_CPU_CYCLE","APU_HIGH_FREQUENCY_CYCLES","CPU_ADDRESSED_MEMORY","CPU_STACK_START_ADDRESS","CPU_MAPPER_START_ADDRESS","CPU_INTERRUPT_CYCLES","PPU_FRAME_RATE","PPU_ADDRESSED_PALETTE_RAM_START_ADDRESS","PPU_OAM_SIZE","PPU_LAST_CYCLE","PPU_LAST_SCANLINE","OAMDMA_CPU_CYCLES","PPU_CYCLE_CLEAR_FLAGS","PPU_CYCLE_VBLANK","PPU_CYCLE_RENDER_BACKGROUND","PPU_CYCLE_RENDER_SPRITES","PPU_CYCLE_MAPPER_TICK","FREQ_CPU_HZ","FREQ_PPU_HZ","APU_SAMPLE_RATE","APU_MAX_VOLUME","APU_MIN_TIMER","APU_MAX_TIMER","TILE_LENGTH","TILE_SIZE","SPRITE_WIDTH","SPRITE_SIZE","MAX_SPRITES","MAX_SPRITES_PER_SCANLINE","COLOR_TRANSPARENT","NAME_TABLES_START_ADDRESS","NAME_TABLE_TOTAL_TILES_X","NAME_TABLE_SIZE","ATTRIBUTE_TABLE_BLOCK_SIZE","ATTRIBUTE_TABLE_TOTAL_BLOCKS_X","ATTRIBUTE_TABLE_REGION_SIZE","ATTRIBUTE_TABLE_TOTAL_REGIONS_X","ATTRIBUTE_TABLE_REGION_SIZE_BITS","ATTRIBUTE_TABLE_SIZE","PATTERN_TABLES_START_ADDRESS","PATTERN_TABLE_SIZE","PALETTE_BACKGROUND_START","PALETTE_FOREGROUND_START","PALETTE_SIZE","LOOPY_ADDR_COARSE_X_OFFSET","LOOPY_ADDR_COARSE_X_MASK","LOOPY_ADDR_COARSE_Y_OFFSET","LOOPY_ADDR_COARSE_Y_MASK","LOOPY_ADDR_BASE_NAME_TABLE_ID_OFFSET","LOOPY_ADDR_BASE_NAME_TABLE_ID_MASK","LOOPY_ADDR_FINE_Y_OFFSET","LOOPY_ADDR_FINE_Y_MASK","SPRITE_BYTE_Y","SPRITE_BYTE_TILE_ID","SPRITE_BYTE_ATTRIBUTES","SPRITE_BYTE_X","SPRITE_ATTR_PALETTE_BITS_START","SPRITE_ATTR_PALETTE_BITS_SIZE","SPRITE_ATTR_PRIORITY_BIT","SPRITE_ATTR_HORIZONTAL_FLIP_BIT","SPRITE_ATTR_VERTICAL_FLIP_BIT","SPRITE_8x16_PATTERN_TABLE_MASK","SPRITE_8x16_TILE_ID_MASK","port","buttons","BUTTON_A","BUTTON_B","BUTTON_SELECT","BUTTON_START","BUTTON_UP","BUTTON_DOWN","BUTTON_LEFT","BUTTON_RIGHT","toByte","PrimaryControllerPort","SecondaryControllerPort","setSecondary","ControllerPort","cursor","strobe","_ControllerPort","_strobe","_secondary","_primary","pc","Register16Bit","sp","Register8Bit","flags","FlagsRegister","extraCycles","a","x","y","CPUMemoryMap","stack","Stack","_argument","operation","_readOperation","argument","_readArgument","log","initialArgument","finalArgument","instruction","execute","cycles","withB2Flag","_areInterruptsEnabled","push2Bytes","pushFlags","_jumpToInterruptHandler","reset","opcode","operations","toString","increment","addressing","canTakeExtraCycles","readBytesAt","parameterSize","needsValue","getValue","getAddress","read2BytesAt","vector","ram","ramMirror","ppuRegisters","toMemory","ppuRegistersMirror","apuRegisters","port2AndFrameCounter","cpuTestModeRegisters","defineChunks","oamDma","_this$context","chunks","_this$context2","forEach","chunk","currentAddress","decrement","low","high","pop","parameter","indexedGetAddress","newAddress","implicit","immediate","absolute","indexedAbsoluteX","indexedAbsoluteY","zeroPage","indexedZeroPageX","indexedZeroPageY","indirect","indexedIndirectX","indexedIndirectY","relative","accumulator","getIndirectAddress","indexedGetAddressY","indexedGetAddressX","msb","lsb","end","ADC","_ref7","oldValue","result","c","newValue","updateZeroAndNegative","v","DE_","registerName","_ref8","IN_","_ref9","_ref3","_ref4","_ref5","_ref6","B__","flag","pop2Bytes","CP_","source","z","updateNegative","updateZero","SE_","flagName","CL_","LD_","ST_","T__","getSourceRegister","getTargetRegister","updateFlags","_toConsumableArray","arithmetic","branching","checks","logical","misc","LOGICAL_INSTRUCTION","operator","one","another","instructions","addressings","n","d","Register","TypedArray","initialValue","_Register","_Register2","Uint16Array","toNumber","toSignedByte","number","hasOverflow","isPositive","isNegative","negate","force8Bit","force16Bit","getBit","position","getBits","startPosition","setBits","mask","highPartOf","twoBytesNumber","lowPartOf","to16Bit","highByte","lowByte","obj","onLoad","_Bus","cpuWriteAt","Bus","WithLittleEndian","readOnly","_assertValidAddress","_throwInvalidAddressError","startAt","mirroredSize","_checkAddress","RewiredMemoryChunk","_MemoryChunk","mapping","ranges","_step","_iterator","_createForOfIteratorHelper","s","done","range","to","err","e","f","lut","createSegment","startAddress","$memoryStartAddress","_generateLookUpTable","_throwUnreachable","finalAddress","_getChunkFor","_toRelativeAddress","_step2","_iterator2","write2BytesAt","PPUMemoryMap","oamRam","loopy","nameTable","NameTable","attributeTable","AttributeTable","patternTable","PatternTable","framePalette","FramePalette","oam","OAM","Uint32Array","paletteIndexes","PPURegisterSegment","LoopyRegister","onIntr","_skip","scanlineType","getScanlineType","renderers","color","ppuMask","transform","destinationCycle","skippedCycles","min","scanLine","nameTables","nameTablesMirror","paletteRam","paletteRamMirror","mirroringType","$mirroringType","HORIZONTAL","VERTICAL","ONE_SCREEN_LOWER_BANK","ONE_SCREEN_UPPER_BANK","FOUR_SCREENS","LoopyAddress","coarseX","coarseY","nameTableId","fineY","_switchHorizontalNameTable","_switchVerticalNameTable","vAddress","tAddress","fineX","latch","_copyY","incrementX","incrementY","_copyX","t","w","OAMAddr","OAMDMA","OAMData","oamAddress","oamAddr","_incrementAddress","PPUAddr","onPPUAddrWrite","to14BitNumber","PPUCtrl","onPPUCtrlWrite","vramAddressIncrement32","spriteSizeId","PPUData","ppuAddress","ppuAddr","ppuCtrl","vramAddressIncrement","PPUMask","r","g","b","grayscale","gray","emphasizeRed","emphasizeGreen","emphasizeBlue","all","showBackground","showSprites","PPUScroll","_this$context$ppu$loo","onPPUScrollWrite","PPUStatus","isInVBlankInterval","onPPUStatusRead","ppuStatus","oamData","ppuScroll","ppuData","preLine","isRenderingEnabled","spriteOverflow","sprite0Hit","onPreLine","onLine","tick","visibleLines","renderBackground","renderSprites","vBlankLine","generateNmiAtStartOfVBlank","PRELINE","VISIBLE","VBLANK_START","IDLE","NAME_TABLE_OFFSETS","FULL_ALPHA","scrolledY","transparentColor","getColorOf","scrolledX","showBackgroundInLeftmost8PixelsOfScreen","onVisibleLine","baseNameTableId","nameTableX","nameTableY","tileId","getTileIdOf","paletteId","getPaletteIdOf","paletteColors","patternTableId","patternTableAddressIdForBackground","tileStartX","tileStartY","patternLowByte","getLowByteOf","patternHighByte","getHighByteOf","remainingNameTablePixels","tilePixels","paletteIndex","getPaletteIndexFromBytes","sprites","evaluateSprites","drawSpritesIntoBuffer","drawSprites","spriteId","sprite","createSprite","shouldRenderInScanline","reverse","_ppu$registers","finalY","colors","priorities","xs","insideY","diffY","insideX","finalX","showSpritesInLeftmost8PixelsOfScreen","getSpritePixelPaletteIndex","isSpritePixelOpaque","isBackgroundPixelOpaque","paletteIndexOf","isInFrontOfBackground","tileInsideY","getPaletteIndexOf","tileIdFor","flipX","flipY","blockX","blockIndex","regionX","regionIndex","block","colorIndex","palette","tileX","tileIndex","_this$context$ppu","is8x16","isIn8x16Mode","yByte","tileIdByte","attributes","patternTableAddressIdFor8x8Sprites","Sprite","_getStartAddress","firstPlane","secondPlane","column","index","height","_readOnlyFields","name","Object","defineProperty","_writeReadOnlyFields","_step$value","readRegister","writeRegister","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","loaded","__webpack_modules__","m","__webpack_exports__","O","deferred","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","getter","__esModule","definition","o","enumerable","chunkId","Promise","reduce","promises","u","miniCssF","globalThis","Function","window","prop","hasOwnProperty","nmd","paths","children","p","installedChunks","importScripts","chunkLoadingGlobal","self","parentChunkLoadingFunction","moreModules","runtime","next","then"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/64.40a37172.chunk.js b/static/js/64.40a37172.chunk.js new file mode 100644 index 0000000..0c5f1a2 --- /dev/null +++ b/static/js/64.40a37172.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 64.40a37172.chunk.js.LICENSE.txt */ +(self.webpackChunknescore=self.webpackChunknescore||[]).push([[64],{763:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",c=16,a=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",a],["partialRight",l],["rearg",h]],d="[object Arguments]",b="[object Array]",w="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",O="[object Map]",S="[object Number]",k="[object Object]",R="[object Promise]",I="[object RegExp]",E="[object Set]",Z="[object String]",z="[object Symbol]",C="[object WeakMap]",W="[object ArrayBuffer]",L="[object DataView]",T="[object Float32Array]",B="[object Float64Array]",U="[object Int8Array]",P="[object Int16Array]",D="[object Int32Array]",$="[object Uint8Array]",M="[object Uint8ClampedArray]",N="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,cn=/\s/,an=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,On="\\ud800-\\udfff",Sn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",En="\\ufe0e\\ufe0f",Zn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zn="['\u2019]",Cn="["+On+"]",Wn="["+Zn+"]",Ln="["+Sn+"]",Tn="\\d+",Bn="["+kn+"]",Un="["+Rn+"]",Pn="[^"+On+Zn+Tn+kn+Rn+In+"]",Dn="\\ud83c[\\udffb-\\udfff]",$n="[^"+On+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",Fn="["+In+"]",qn="\\u200d",Kn="(?:"+Un+"|"+Pn+")",Vn="(?:"+Fn+"|"+Pn+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Ln+"|"+Dn+")"+"?",Yn="["+En+"]?",Qn=Yn+Jn+("(?:"+qn+"(?:"+[$n,Mn,Nn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Bn,Mn,Nn].join("|")+")"+Qn,nt="(?:"+[$n+Ln+"?",Ln,Mn,Nn,Cn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Ln,"g"),et=RegExp(Dn+"(?="+Dn+")|"+nt+Qn,"g"),ut=RegExp([Fn+"?"+Un+"+"+Gn+"(?="+[Wn,Fn,"$"].join("|")+")",Vn+"+"+Hn+"(?="+[Wn,Fn+Kn,"$"].join("|")+")",Fn+"?"+Kn+"+"+Gn,Fn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+qn+On+Sn+En+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,at={};at[T]=at[B]=at[U]=at[P]=at[D]=at[$]=at[M]=at[N]=at[F]=!0,at[d]=at[b]=at[W]=at[w]=at[L]=at[m]=at[x]=at[j]=at[O]=at[S]=at[k]=at[I]=at[E]=at[Z]=at[C]=!1;var lt={};lt[d]=lt[b]=lt[W]=lt[L]=lt[w]=lt[m]=lt[T]=lt[B]=lt[U]=lt[P]=lt[D]=lt[O]=lt[S]=lt[k]=lt[I]=lt[E]=lt[Z]=lt[z]=lt[$]=lt[M]=lt[N]=lt[F]=!0,lt[x]=lt[j]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,bt=dt&&dt.exports===yt,wt=bt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,jt=mt&&mt.isDate,At=mt&&mt.isMap,Ot=mt&&mt.isRegExp,St=mt&&mt.isSet,kt=mt&&mt.isTypedArray;function Rt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&Ft(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function cr(n){return it.test(n)}function ar(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,cn=t.Error,On=t.Function,Sn=t.Math,kn=t.Object,Rn=t.RegExp,In=t.String,En=t.TypeError,Zn=r.prototype,zn=On.prototype,Cn=kn.prototype,Wn=t["__core-js_shared__"],Ln=zn.toString,Tn=Cn.hasOwnProperty,Bn=0,Un=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Pn=Cn.toString,Dn=Ln.call(kn),$n=gt._,Mn=Rn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nn=bt?t.Buffer:u,Fn=t.Symbol,qn=t.Uint8Array,Kn=Nn?Nn.allocUnsafe:u,Vn=lr(kn.getPrototypeOf,kn),Gn=kn.create,Hn=Cn.propertyIsEnumerable,Jn=Zn.splice,Yn=Fn?Fn.isConcatSpreadable:u,Qn=Fn?Fn.iterator:u,Xn=Fn?Fn.toStringTag:u,nt=function(){try{var n=si(kn,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=Sn.ceil,_t=Sn.floor,yt=kn.getOwnPropertySymbols,dt=Nn?Nn.isBuffer:u,wt=t.isFinite,mt=Zn.join,$t=lr(kn.keys,kn),Ht=Sn.max,br=Sn.min,wr=e.now,mr=t.parseInt,xr=Sn.random,jr=Zn.reverse,Ar=si(t,"DataView"),Or=si(t,"Map"),Sr=si(t,"Promise"),kr=si(t,"Set"),Rr=si(t,"WeakMap"),Ir=si(kn,"create"),Er=Rr&&new Rr,Zr={},zr=Bi(Ar),Cr=Bi(Or),Wr=Bi(Sr),Lr=Bi(kr),Tr=Bi(Rr),Br=Fn?Fn.prototype:u,Ur=Br?Br.valueOf:u,Pr=Br?Br.toString:u;function Dr(n){if(tf(n)&&!Fo(n)&&!(n instanceof Fr)){if(n instanceof Nr)return n;if(Tn.call(n,"__wrapped__"))return Ui(n)}return new Nr(n)}var $r=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Mr(){}function Nr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Fr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var f,c=1&t,a=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=Fo(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Iu(n,f)}else{var h=vi(n),p=h==j||h==A;if(Go(n))return ju(n,c);if(h==k||h==d||p&&!i){if(f=a||p?{}:gi(n),!c)return a?function(n,t){return Eu(n,pi(n),t)}(n,function(n,t){return n&&Eu(t,Cf(t),n)}(f,n)):function(n,t){return Eu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return Au(n);case w:case m:return new e(+n);case L:return function(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case B:case U:case P:case D:case $:case M:case N:case F:return Ou(n,r);case O:return new e;case S:case Z:return new e(n);case I:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case E:return new e;case z:return u=n,Ur?kn(Ur.call(u)):{}}var u}(n,h,c)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ce(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?a?ui:ei:a?Cf:zf)(n);return Et(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ce(e,t,r,u,n,o))})),f}function ae(n,t,r){var e=r.length;if(null==n)return!e;for(n=kn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new En(i);return Ei((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,c=[],a=t.length;if(!f)return c;r&&(t=Tt(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Or||Kr),string:new qr}},Vr.prototype.delete=function(n){var t=ai(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return ai(this,n).get(n)},Vr.prototype.has=function(n){return ai(this,n).has(n)},Vr.prototype.set=function(n,t){var r=ai(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Or||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var he=Cu(we),pe=Cu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?ye(f,t-1,r,e,u):Bt(u,f):e||(u[u.length]=f)}return u}var de=Wu(),be=Wu(!0);function we(n,t){return n&&de(n,t,zf)}function me(n,t){return n&&be(n,t,zf)}function xe(n,t){return Ct(t,(function(t){return Yo(n[t])}))}function je(n,t){for(var r=0,e=(t=bu(t,n)).length;null!=n&&rt}function ke(n,t){return null!=n&&Tn.call(n,t)}function Re(n,t){return null!=n&&t in kn(n)}function Ie(n,t,e){for(var i=e?Lt:Wt,o=n[0].length,f=n.length,c=f,a=r(f),l=1/0,s=[];c--;){var h=n[c];c&&t&&(h=Tt(h,nr(t))),l=br(h.length,l),a[c]=!e&&(t||o>=120&&h.length>=120)?new Gr(c&&h):u}h=n[0];var p=-1,v=a[0];n:for(;++p=f?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function qe(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Jn.call(f,c,1),Jn.call(n,c,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Zi(Si(n,t,uc),n+"")}function Ye(n){return Yr($f(n))}function Qe(n,t){var r=$f(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=bu(t,n)).length,f=o-1,c=n;null!=c&&++ii?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u>>1,o=n[i];null!==o&&!af(o)&&(r?o<=t:o=200){var a=t?null:Hu(n);if(a)return hr(a);o=!1,u=rr,c=new Gr}else c=t?[]:f;n:for(;++e=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function ju(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Au(n){var t=new n.constructor(n.byteLength);return new qn(t).set(new qn(n)),t}function Ou(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Su(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=af(n),f=t!==u,c=null===t,a=t===t,l=af(t);if(!c&&!l&&!o&&n>t||o&&f&&a&&!c&&!l||e&&f&&a||!r&&a||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&bi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=kn(t);++e-1?i[o?t[f]:f]:u}}function Pu(n){return ri((function(t){var r=t.length,e=r,o=Nr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new En(i);if(o&&!c&&"wrapper"==oi(f))var c=new Nr([],!0)}for(e=c?e:r;++e1&&w.reverse(),p&&lc))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(an,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return Et(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Ci(n){var t=0,r=0;return function(){var e=wr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Dr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Fr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new Nr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Zu((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=Uu(Mi),go=Uu(Ni);function yo(n,t){return(Fo(n)?Et:he)(n,ci(t,3))}function bo(n,t){return(Fo(n)?Zt:pe)(n,ci(t,3))}var wo=Zu((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Ko(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?Rt(t,n,e):Ee(n,t,e)})),o})),xo=Zu((function(n,t,r){ie(n,r,t)}));function jo(n,t){return(Fo(n)?Tt:Pe)(n,ci(t,3))}var Ao=Zu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Oo=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&bi(n,t[0],t[1])?t=[]:r>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Fe(n,ye(t,1),[])})),So=it||function(){return gt.Date.now()};function ko(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Ro(n,t){var r;if("function"!=typeof t)throw new En(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Io=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Io));e|=a}return Yu(n,e,t,r,u)})),Eo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(Eo));e|=a}return Yu(t,e,n,r,u)}));function Zo(n,t,r){var e,o,f,c,a,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new En(i);function _(t){var r=e,i=o;return e=o=u,s=t,c=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=So();if(g(n))return d(n);a=Ei(y,function(n){var r=t-(n-l);return p?br(r,f-(n-s)):r}(n))}function d(n){return a=u,v&&e?_(n):(e=o=u,c)}function b(){var n=So(),r=g(n);if(e=arguments,o=this,l=n,r){if(a===u)return function(n){return s=n,a=Ei(y,t),h?_(n):c}(l);if(p)return xu(a),a=Ei(y,t),_(l)}return a===u&&(a=Ei(y,t)),c}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){a!==u&&xu(a),s=0,e=l=o=a=u},b.flush=function(){return a===u?c:d(So())},b}var zo=Je((function(n,t){return le(n,1,t)})),Co=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new En(i);var r=function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Vr),r}function Lo(n){if("function"!=typeof n)throw new En(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Vr;var To=wu((function(n,t){var r=(t=1==t.length&&Fo(t[0])?Tt(t[0],nr(ci())):Tt(ye(t,1),nr(ci()))).length;return Je((function(e){for(var u=-1,i=br(e.length,r);++u=t})),No=Ze(function(){return arguments}())?Ze:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},Fo=r.isArray,qo=xt?nr(xt):function(n){return tf(n)&&Oe(n)==W};function Ko(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Vo(n){return tf(n)&&Ko(n)}var Go=dt||yc,Ho=jt?nr(jt):function(n){return tf(n)&&Oe(n)==m};function Jo(n){if(!tf(n))return!1;var t=Oe(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=Oe(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=At?nr(At):function(n){return tf(n)&&vi(n)==O};function ef(n){return"number"==typeof n||tf(n)&&Oe(n)==S}function uf(n){if(!tf(n)||Oe(n)!=k)return!1;var t=Vn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==Dn}var of=Ot?nr(Ot):function(n){return tf(n)&&Oe(n)==I};var ff=St?nr(St):function(n){return tf(n)&&vi(n)==E};function cf(n){return"string"==typeof n||!Fo(n)&&tf(n)&&Oe(n)==Z}function af(n){return"symbol"==typeof n||tf(n)&&Oe(n)==z}var lf=kt?nr(kt):function(n){return tf(n)&&Xo(n.length)&&!!at[Oe(n)]};var sf=Ku(Ue),hf=Ku((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Ko(n))return cf(n)?_r(n):Iu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==O?ar:t==E?hr:$f)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(af(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return Eu(n,Cf(n))}function bf(n){return null==n?"":au(n)}var wf=zu((function(n,t){if(ji(t)||Ko(t))Eu(t,zf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=zu((function(n,t){Eu(t,Cf(t),n)})),xf=zu((function(n,t,r,e){Eu(t,Cf(t),n,e)})),jf=zu((function(n,t,r,e){Eu(t,zf(t),n,e)})),Af=ri(oe);var Of=Je((function(n,t){n=kn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&bi(t[0],t[1],i)&&(e=1);++r1),t})),Eu(n,ui(n),r),e&&(r=ce(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Bf=ri((function(n,t){return null==n?{}:function(n,t){return qe(n,t,(function(t,r){return Rf(n,r)}))}(n,t)}));function Uf(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ci(t),qe(n,r,(function(n,r){return t(n,r[0])}))}var Pf=Ju(zf),Df=Ju(Cf);function $f(n){return null==n?[]:tr(n,zf(n))}var Mf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Nf(t):t)}));function Nf(n){return Yf(bf(n).toLowerCase())}function Ff(n){return(n=bf(n))&&n.replace(xn,ir).replace(rt,"")}var qf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Kf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Vf=Lu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Lu("toUpperCase");function Qf(n,t,r){return n=bf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return Rt(n,u,t)}catch(r){return Jo(r)?r:new cn(r)}})),nc=ri((function(n,t){return Et(t,(function(t){t=Ti(t),ie(n,t,Io(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=Pu(),ec=Pu(!0);function uc(n){return n}function ic(n){return Le("function"==typeof n?n:ce(n,1))}var oc=Je((function(n,t){return function(r){return Ee(r,n,t)}})),fc=Je((function(n,t){return function(r){return Ee(n,r,t)}}));function cc(n,t,r){var e=zf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,zf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return Et(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Iu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Bt([this.value()],arguments))})})),n}function ac(){}var lc=Nu(Tt),sc=Nu(zt),hc=Nu(Dt);function pc(n){return wi(n)?Gt(Ti(n)):function(n){return function(t){return je(t,n)}}(n)}var vc=qu(),_c=qu(!0);function gc(){return[]}function yc(){return!1}var dc=Mu((function(n,t){return n+t}),0),bc=Gu("ceil"),wc=Mu((function(n,t){return n/t}),1),mc=Gu("floor");var xc=Mu((function(n,t){return n*t}),1),jc=Gu("round"),Ac=Mu((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new En(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=ko,Dr.assign=wf,Dr.assignIn=mf,Dr.assignInWith=xf,Dr.assignWith=jf,Dr.at=Af,Dr.before=Ro,Dr.bind=Io,Dr.bindAll=nc,Dr.bindKey=Eo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Fo(n)?n:[n]},Dr.chain=so,Dr.chunk=function(n,t,e){t=(e?bi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,c=r(vt(i/t));oi?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r>>0)?(n=bf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=au(t))&&cr(n)?mu(_r(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new En(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Bt(u,e),Rt(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ci(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?pu(n,ci(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new En(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Zo(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=ho,Dr.toArray=pf,Dr.toPairs=Pf,Dr.toPairsIn=Df,Dr.toPath=function(n){return Fo(n)?Tt(n,Ti):af(n)?[n]:Iu(Li(bf(n)))},Dr.toPlainObject=df,Dr.transform=function(n,t,r){var e=Fo(n),u=e||Go(n)||lf(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?$r(Vn(n)):{}}return(u?Et:we)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return ko(n,1)},Dr.union=no,Dr.unionBy=to,Dr.unionWith=ro,Dr.uniq=function(n){return n&&n.length?lu(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?lu(n,ci(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Dr.unset=function(n,t){return null==n||su(n,t)},Dr.unzip=eo,Dr.unzipWith=uo,Dr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Dr.values=$f,Dr.valuesIn=function(n){return null==n?[]:tr(n,Cf(n))},Dr.without=io,Dr.words=Qf,Dr.wrap=function(n,t){return Bo(du(t),n)},Dr.xor=oo,Dr.xorBy=fo,Dr.xorWith=co,Dr.zip=ao,Dr.zipObject=function(n,t){return gu(n||[],t||[],te)},Dr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Dr.zipWith=lo,Dr.entries=Pf,Dr.entriesIn=Df,Dr.extend=mf,Dr.extendWith=xf,cc(Dr,Dr),Dr.add=dc,Dr.attempt=Xf,Dr.camelCase=Mf,Dr.capitalize=Nf,Dr.ceil=bc,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Dr.clone=function(n){return ce(n,4)},Dr.cloneDeep=function(n){return ce(n,5)},Dr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ae(n,t,zf(t))},Dr.deburr=Ff,Dr.defaultTo=function(n,t){return null==n||n!==n?t:n},Dr.divide=wc,Dr.endsWith=function(n,t,r){n=bf(n),t=au(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=Do,Dr.escape=function(n){return(n=bf(n))&&Y.test(n)?n.replace(H,or):n},Dr.escapeRegExp=function(n){return(n=bf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Dr.every=function(n,t,r){var e=Fo(n)?zt:ve;return r&&bi(n,t,r)&&(t=u),e(n,ci(t,3))},Dr.find=_o,Dr.findIndex=Mi,Dr.findKey=function(n,t){return Mt(n,ci(t,3),we)},Dr.findLast=go,Dr.findLastIndex=Ni,Dr.findLastKey=function(n,t){return Mt(n,ci(t,3),me)},Dr.floor=mc,Dr.forEach=yo,Dr.forEachRight=bo,Dr.forIn=function(n,t){return null==n?n:de(n,ci(t,3),Cf)},Dr.forInRight=function(n,t){return null==n?n:be(n,ci(t,3),Cf)},Dr.forOwn=function(n,t){return n&&we(n,ci(t,3))},Dr.forOwnRight=function(n,t){return n&&me(n,ci(t,3))},Dr.get=kf,Dr.gt=$o,Dr.gte=Mo,Dr.has=function(n,t){return null!=n&&_i(n,t,ke)},Dr.hasIn=Rf,Dr.head=qi,Dr.identity=uc,Dr.includes=function(n,t,r,e){n=Ko(n)?n:$f(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),cf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Ft(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Ft(n,t,u)},Dr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=br(t,r)&&n=-9007199254740991&&n<=v},Dr.isSet=ff,Dr.isString=cf,Dr.isSymbol=af,Dr.isTypedArray=lf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return tf(n)&&vi(n)==C},Dr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==Oe(n)},Dr.join=function(n,t){return null==n?"":mt.call(n,t)},Dr.kebabCase=qf,Dr.last=Hi,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):br(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Kt,i,!0)},Dr.lowerCase=Kf,Dr.lowerFirst=Vf,Dr.lt=sf,Dr.lte=hf,Dr.max=function(n){return n&&n.length?_e(n,uc,Se):u},Dr.maxBy=function(n,t){return n&&n.length?_e(n,ci(t,2),Se):u},Dr.mean=function(n){return Vt(n,uc)},Dr.meanBy=function(n,t){return Vt(n,ci(t,2))},Dr.min=function(n){return n&&n.length?_e(n,uc,Ue):u},Dr.minBy=function(n,t){return n&&n.length?_e(n,ci(t,2),Ue):u},Dr.stubArray=gc,Dr.stubFalse=yc,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xc,Dr.nth=function(n,t){return n&&n.length?Ne(n,_f(t)):u},Dr.noConflict=function(){return gt._===this&&(gt._=$n),this},Dr.noop=ac,Dr.now=So,Dr.pad=function(n,t,r){n=bf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Fu(_t(u),r)+n+Fu(vt(u),r)},Dr.padEnd=function(n,t,r){n=bf(n);var e=(t=_f(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return br(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Dr.reduce=function(n,t,r){var e=Fo(n)?Ut:Jt,u=arguments.length<3;return e(n,ci(t,4),r,u,he)},Dr.reduceRight=function(n,t,r){var e=Fo(n)?Pt:Jt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Dr.repeat=function(n,t,r){return t=(r?bi(n,t,r):t===u)?1:_f(t),He(bf(n),t)},Dr.replace=function(){var n=arguments,t=bf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=bu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=br(n,g);t=ci(t),n-=g;for(var u=Qt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var a=f?mu(f,0,c).join(""):n.slice(0,c);if(i===u)return a+e;if(f&&(c+=a.length-c),of(i)){if(n.slice(c).search(i)){var l,s=a;for(i.global||(i=Rn(i.source,bf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;a=a.slice(0,h===u?c:h)}}else if(n.indexOf(au(i),c)!=c){var p=a.lastIndexOf(i);p>-1&&(a=a.slice(0,p))}return a+e},Dr.unescape=function(n){return(n=bf(n))&&J.test(n)?n.replace(G,yr):n},Dr.uniqueId=function(n){var t=++Bn;return bf(n)+t},Dr.upperCase=Jf,Dr.upperFirst=Yf,Dr.each=yo,Dr.eachRight=bo,Dr.first=qi,cc(Dr,function(){var n={};return we(Dr,(function(t,r){Tn.call(Dr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Dr.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),Et(["drop","take"],(function(n,t){Fr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new Fr(this):this.clone();return e.__filtered__?e.__takeCount__=br(r,e.__takeCount__):e.__views__.push({size:br(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Fr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),Et(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Fr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),Et(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Fr.prototype[n]=function(){return this[r](1).value()[0]}})),Et(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Fr.prototype[n]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(uc)},Fr.prototype.find=function(n){return this.filter(n).head()},Fr.prototype.findLast=function(n){return this.reverse().find(n)},Fr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Fr(this):this.map((function(r){return Ee(r,n,t)}))})),Fr.prototype.reject=function(n){return this.filter(Lo(ci(n)))},Fr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Fr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},Fr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Fr.prototype.toArray=function(){return this.take(g)},we(Fr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,c=t instanceof Fr,a=f[0],l=c||Fo(t),s=function(n){var t=i.apply(Dr,Bt([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof a&&1!=a.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=c&&!p;if(!o&&l){t=_?t:new Fr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new Nr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Zn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Fo(u)?u:[],n)}return this[r]((function(r){return t.apply(Fo(r)?r:[],n)}))}})),we(Fr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Zr,e)||(Zr[e]=[]),Zr[e].push({name:t,func:r})}})),Zr[Du(u,2).name]=[{name:"wrapper",func:u}],Fr.prototype.clone=function(){var n=new Fr(this.__wrapped__);return n.__actions__=Iu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Iu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Iu(this.__views__),n},Fr.prototype.reverse=function(){if(this.__filtered__){var n=new Fr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Fr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Fo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Mr;){var e=Ui(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Fr){var t=n;return this.__actions__.length&&(t=new Fr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new Nr(t,this.__chain__)}return this.thru(Xi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qn&&(Dr.prototype[Qn]=function(){return this}),Dr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},907:function(n,t,r){"use strict";function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r=n.length?{done:!0}:{done:!1,value:n[u++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,f=!0,c=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return f=n.done,n},e:function(n){c=!0,o=n},f:function(){try{f||null==r.return||r.return()}finally{if(c)throw o}}}}},9388:function(n,t,r){"use strict";r.d(t,{Z:function(){return o}});var e=r(1120),u=r(8814),i=r(2963);function o(n){var t=(0,u.Z)();return function(){var r,u=(0,e.Z)(n);if(t){var o=(0,e.Z)(this).constructor;r=Reflect.construct(u,arguments,o)}else r=u.apply(this,arguments);return(0,i.Z)(this,r)}}},8301:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(8415);function u(){return u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(n,t,r){var u=(0,e.Z)(n,t);if(u){var i=Object.getOwnPropertyDescriptor(u,t);return i.get?i.get.call(arguments.length<3?n:r):i.value}},u.apply(this,arguments)}},1120:function(n,t,r){"use strict";function e(n){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e(n)}r.d(t,{Z:function(){return e}})},136:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(9611);function u(n,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&(0,e.Z)(n,t)}},8814:function(n,t,r){"use strict";function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}r.d(t,{Z:function(){return e}})},9199:function(n,t,r){"use strict";function e(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}r.d(t,{Z:function(){return e}})},2786:function(n,t,r){"use strict";function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return e}})},2963:function(n,t,r){"use strict";r.d(t,{Z:function(){return i}});var e=r(1002),u=r(7326);function i(n,t){if(t&&("object"===(0,e.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,u.Z)(n)}},9611:function(n,t,r){"use strict";function e(n,t){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},e(n,t)}r.d(t,{Z:function(){return e}})},8415:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(1120);function u(n,t){for(;!Object.prototype.hasOwnProperty.call(n,t)&&null!==(n=(0,e.Z)(n)););return n}},9062:function(n,t,r){"use strict";r.d(t,{Z:function(){return f}});var e=r(5057),u=r(9199),i=r(181),o=r(2786);function f(n){return(0,e.Z)(n)||(0,u.Z)(n)||(0,i.Z)(n)||(0,o.Z)()}},5512:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(1002);function u(n,t){if("object"!==(0,e.Z)(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var u=r.call(n,t||"default");if("object"!==(0,e.Z)(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}},7343:function(n,t,r){"use strict";r.d(t,{Z:function(){return i}});var e=r(1002),u=r(5512);function i(n){var t=(0,u.Z)(n,"string");return"symbol"===(0,e.Z)(t)?t:String(t)}},1002:function(n,t,r){"use strict";function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(n)}r.d(t,{Z:function(){return e}})},181:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(907);function u(n,t){if(n){if("string"===typeof n)return(0,e.Z)(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.Z)(n,t):void 0}}}}]); +//# sourceMappingURL=64.40a37172.chunk.js.map \ No newline at end of file diff --git a/static/js/64.40a37172.chunk.js.LICENSE.txt b/static/js/64.40a37172.chunk.js.LICENSE.txt new file mode 100644 index 0000000..b1121f5 --- /dev/null +++ b/static/js/64.40a37172.chunk.js.LICENSE.txt @@ -0,0 +1,8 @@ +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ diff --git a/static/js/64.40a37172.chunk.js.map b/static/js/64.40a37172.chunk.js.map new file mode 100644 index 0000000..e3045dc --- /dev/null +++ b/static/js/64.40a37172.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/64.40a37172.chunk.js","mappings":";wFAAA,iBAQE,WAGA,IAAIA,EAUAC,EAAkB,sBAIlBC,EAAiB,4BAMjBC,EAAc,yBAgBdC,EAAwB,GACxBC,EAAoB,GACpBC,EAA0B,GAC1BC,EAAgB,IAChBC,EAAkB,IAiBlBC,EAAW,IACXC,EAAmB,iBAEnBC,EAAM,IAGNC,EAAmB,WAKn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,EAAI,SAAUA,GACZ,OAAOA,GAAO,mBAAqBt6B,QAAUs6B,EAAI7xB,cAAgBzI,QAAUs6B,IAAQt6B,OAAOlB,UAAY,gBAAkBw7B,CAC1H,EAAGD,EAAQC,EACb,gHCPe,SAASC,EAA4BnD,EAAGoD,GACrD,GAAKpD,EAAL,CACA,GAAiB,kBAANA,EAAgB,OAAO,OAAiBA,EAAGoD,GACtD,IAAIj/B,EAAIlF,OAAOyI,UAAUK,SAAS3G,KAAK4+B,GAAG17B,MAAM,GAAI,GAEpD,MADU,WAANH,GAAkB67B,EAAE3uB,cAAalN,EAAI67B,EAAE3uB,YAAYoG,MAC7C,QAANtT,GAAqB,QAANA,EAAoB3B,MAAM2/B,KAAKnC,GACxC,cAAN77B,GAAqB,2CAA2CqB,KAAKrB,IAAW,OAAiB67B,EAAGoD,QAAxG,CALc,CAMhB","sources":["../node_modules/lodash/lodash.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","../node_modules/@babel/runtime/helpers/esm/createSuper.js","../node_modules/@babel/runtime/helpers/esm/get.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/superPropBase.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\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 `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '