[
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\nindent_style = space\nindent_size = 2\nend_of_line = lf\ninsert_final_newline = true\n"
  },
  {
    "path": ".gitattributes",
    "content": "* text eol=lf\n"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json\n\nname: ci\n\non:\n  pull_request:\n    branches: [ master ]\n  push:\n    branches: [ master ]\n\npermissions:\n  contents: read\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    name: Check code style\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version-file: '.nvmrc'\n          cache: 'npm'\n      - run: npm ci\n      - run: node --run lint\n\n  build-and-test:\n    runs-on: ubuntu-latest\n    name: Build and test\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version-file: '.nvmrc'\n          cache: 'npm'\n      - run: npm ci\n      - run: node --run test\n      - run: node --run test:test262\n"
  },
  {
    "path": ".gitignore",
    "content": ".DS_Store\n.tern-port\n/node_modules\n/local\n/acorn/dist\n/acorn-loose/dist\n/acorn-walk/dist\n/yarn.lock\n"
  },
  {
    "path": ".mailmap",
    "content": "Adrian Heine <mail@adrianheine.de>\nAlistair Braidwood <alistair_braidwood@yahoo.co.uk>\nForbes Lindesay <forbes@lindesay.co.uk>\nRich Harris <richard.a.harris@gmail.com>\n"
  },
  {
    "path": ".npmignore",
    "content": "/.tern-port\n/test\n/local\n/rollup\n/bin/generate-identifier-regex.js\n/bin/update_authors.sh\n.editorconfig\n.gitattributes\n.tern-project\n.travis.yml\n/src\nyarn-error.log\n"
  },
  {
    "path": ".npmrc",
    "content": "package-lock = true"
  },
  {
    "path": ".nvmrc",
    "content": "22\n"
  },
  {
    "path": ".tern-project",
    "content": "{\n  \"plugins\": {\n    \"node\": true,\n    \"es_modules\": true\n  }\n}"
  },
  {
    "path": "AUTHORS",
    "content": "List of Acorn contributors. Updated before every release.\n\nadams85\nAdam Walsh\nAdrian Heine\nAdrian Rakovsky\nAlex\nAlistair Braidwood\nAmila Welihinda\nAndres Suarez\nAngelo\nAparajita Fishman\nArian Stolwijk\nArtem Govorov\nAugustin Mauroy\nbaseballyama\nBenedikt Meurer\nBen Page\nbojavou\nBoopesh Mahendran\nBradley Heinz\nBrandon Mills\nBrett Zamir\nBrian Donovan\nBrian Orora\nbvanjoi\nCharles Hughes\nCharmander\nChris McKnight\nConrad Irwin\nCyril Auburtin\nDaniel Nalborczyk\nDaniel Tschinder\nDavid Bonnet\ndaychongyang\ndnalborczyk\nDomenico Matteo\nehmicky\nelixiao\nericrannaud\neryue0220\nEugene Obrezkov\nFabien LOISON\nFelix Maier\nfn ⌃ ⌥\nForbes Lindesay\nGabriel Miranda\nGilad Peleg\nHonkingGoose\nHuáng Jùnliàng\nibr4qr\nimpinball\nIngvar Stepanyan\nJackson Ray Hamilton\nJan Štola\nJesse McCarthy\nJiaxing Wang\nJoe Krump\nJoel Kemp\nJohannes Herr\nJohn-David Dalton\nJordan Gensler\nJordan Harband\nJordan Klassen\nJulian Wyzykowski\nJürg Lehni\nKai Cataldo\nkeeyipchan\nKeheliya Gallaba\nKevin Irish\nKevin Kwok\nKoichi ITO\nkrator\nkyranet\nlaosb\nLucas Mirelmann\nluckyzeng\nMarek\nMarijn Haverbeke\nMartin Carlberg\nMateusz Burzyński\nMat Garcia\nMathias Bynens\nMathieu 'p01' Henri\nMatthew Bastien\nMax Schaefer\nMax Zerzouri\nmickey-gs\nMihai Bazon\nMike Rennie\nnaoh\nNauja\nNicholas C. Zakas\nNick Fitzgerald\nNorbiros\nOlivier Thomann\nOskar Schöldström\nota-meshi\noverlookmotel\nPaul Harper\npeakchen90\nPeter Rust\npiotr\nPlNG\nPraveen N\nPrayag Verma\nReadmeCritic\nr-e-d\nRenée Kooi\nRichard Gibson\nRich Harris\nRobert Palmer\nRouven Weßling\nSebastian McKenzie\nShahar Soel\nSheel Bedi\nSimen Bekkhus\nsosukesuzuki\nsusiwen\nsusiwen8\nTanimodori\nTeddy Katz\nTimothy Gu\nTimo Tijhof\nTim van der Lippe\nTony Ross\nToru Nagashima\ntuesmiddt\ntyrealhu\nVanilla\nVictor Homyakov\nVladislav Tupikin\nWexpo Lyu\nYosuke Ota\nŽiga Zupančič\nzsjforcn\n就是喜欢陈粒\n成仕伟\n星灵\n胡文彬\n龙腾道\n"
  },
  {
    "path": "README.md",
    "content": "# <img src=\"https://raw.githubusercontent.com/acornjs/acorn/refs/heads/master/logo.svg\" alt=\"Acorn Logo\" width=\"100\"> Acorn\n\n[![Build Status](https://github.com/acornjs/acorn/workflows/ci/badge.svg)](https://github.com/acornjs/acorn/actions)\n[![NPM version](https://img.shields.io/npm/v/acorn.svg)](https://www.npmjs.com/package/acorn)\n[![CDNJS](https://img.shields.io/cdnjs/v/acorn.svg)](https://cdnjs.com/libraries/acorn)  \n\nA tiny, fast JavaScript parser, written completely in JavaScript.\n\n## Community\n\n<a href=\"https://stand-with-ukraine.pp.ua/\"><img src=\"https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg\" width=\"800\"></a>\n\nAcorn is open source software released under an\n[MIT license](https://github.com/acornjs/acorn/blob/master/acorn/LICENSE).\n\nYou are welcome to\n[report bugs](https://github.com/acornjs/acorn/issues) or create pull\nrequests on [github](https://github.com/acornjs/acorn).\n\n## Packages\n\nThis repository holds three packages:\n\n - [acorn](https://github.com/acornjs/acorn/tree/master/acorn/): The\n   main parser\n - [acorn-loose](https://github.com/acornjs/acorn/tree/master/acorn-loose/): The\n   error-tolerant parser\n - [acorn-walk](https://github.com/acornjs/acorn/tree/master/acorn-walk/): The\n   syntax tree walker\n\nTo build the content of the repository, run `npm install`.\n\n```sh\ngit clone https://github.com/acornjs/acorn.git\ncd acorn\nnpm install\n```\n\n## Plugin developments\n\nAcorn is designed to support plugins which can, within reasonable\nbounds, redefine the way the parser works. Plugins can add new token\ntypes and new tokenizer contexts (if necessary), and extend methods in\nthe parser object. This is not a clean, elegant API—using it requires\nan understanding of Acorn's internals, and plugins are likely to break\nwhenever those internals are significantly changed. But still, it is\n_possible_, in this way, to create parsers for JavaScript dialects\nwithout forking all of Acorn. And in principle it is even possible to\ncombine such plugins, so that if you have, for example, a plugin for\nparsing types and a plugin for parsing JSX-style XML literals, you\ncould load them both and parse code with both JSX tags and types.\n\nA plugin is a function from a parser class to an extended parser\nclass. Plugins can be used by simply applying them to the `Parser`\nclass (or a version of that already extended by another plugin). But\nbecause that gets a little awkward, syntactically, when you are using\nmultiple plugins, the static method `Parser.extend` can be called with\nany number of plugin values as arguments to create a `Parser` class\nextended by all those plugins. You'll usually want to create such an\nextended class only once, and then repeatedly call `parse` on it, to\navoid needlessly confusing the JavaScript engine's optimizer.\n\n```javascript\nconst {Parser} = require(\"acorn\")\n\nconst MyParser = Parser.extend(\n  require(\"acorn-jsx\")(),\n  require(\"acorn-bigint\")\n)\nconsole.log(MyParser.parse(\"// Some bigint + JSX code\"))\n```\n\nPlugins override methods in their new parser class to implement\nadditional functionality. It is recommended for a plugin package to\nexport its plugin function as its default value or, if it takes\nconfiguration parameters, to export a constructor function that\ncreates the plugin function.\n\nThis is what a trivial plugin, which adds a bit of code to the\n`readToken` method, might look like:\n\n```javascript\nmodule.exports = function noisyReadToken(Parser) {\n  return class extends Parser {\n    readToken(code) {\n      console.log(\"Reading a token!\")\n      super.readToken(code)\n    }\n  }\n}\n```\n"
  },
  {
    "path": "acorn/.npmignore",
    "content": ".tern-*\n/rollup.config.*\n/src\n"
  },
  {
    "path": "acorn/CHANGELOG.md",
    "content": "## 8.16.0 (2026-02-19)\n\n### New features\n\nThe `sourceType` option can now be set to `\"commonjs\"` to have the parser treat the top level scope as a function scope.\n\nAdd support for Unicode 17.\n\n### Bug fixes\n\nDon't recognize `await using` as contextual keywords when followed directly by a backslash.\n\nFix an issue where the parser would allow `return` statements in `static` blocks when `allowReturnOutsideFunction` was enabled.\n\nProperly reject `using` declarations that appear directly in `switch` or `for` head scopes.\n\nFix some corner case issues in the recognition of `using` syntax.\n\n## 8.15.0 (2025-06-08)\n\n### New features\n\nSupport `using` and `await using` syntax.\n\nThe `AnyNode` type is now defined in such a way that plugins can extend it.\n\n### Bug fixes\n\nFix an issue where the `bigint` property of literal nodes for non-decimal bigints had the wrong format.\n\nThe `acorn` CLI tool no longer crashes when emitting a tree that contains a bigint.\n\n## 8.14.1 (2025-03-05)\n\n### Bug fixes\n\nFix an issue where `await` expressions in class field initializers were inappropriately allowed.\n\nProperly allow await inside an async arrow function inside a class field initializer.\n\nMention the source file name in syntax error messages when given.\n\nProperly add an empty `attributes` property to every form of `ExportNamedDeclaration`.\n\n## 8.14.0 (2024-10-27)\n\n### New features\n\nSupport ES2025 import attributes.\n\nSupport ES2025 RegExp modifiers.\n\n### Bug fixes\n\nSupport some missing Unicode properties.\n\n## 8.13.0 (2024-10-16)\n\n### New features\n\nUpgrade to Unicode 16.0.\n\n## 8.12.1 (2024-07-03)\n\n### Bug fixes\n\nFix a regression that caused Acorn to no longer run on Node versions <8.10.\n\n## 8.12.0 (2024-06-14)\n\n### New features\n\nSupport ES2025 duplicate capture group names in regular expressions.\n\n### Bug fixes\n\nInclude `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.\n\nProperly raise a parse error for invalid `for`/`of` statements using `async` as binding name.\n\nProperly recognize \\\"use strict\\\" when preceded by a string with an escaped newline.\n\nMark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.\n\nFix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.\n\nProperly normalize line endings in raw strings of invalid template tokens.\n\nProperly track line numbers for escaped newlines in strings.\n\nFix a bug that broke line number accounting after a template literal with invalid escape sequences.\n\n## 8.11.3 (2023-12-29)\n\n### Bug fixes\n\nAdd `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.\n\nMake sure `onToken` get an `import` keyword token when parsing `import.meta`.\n\nFix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.\n\n## 8.11.2 (2023-10-27)\n\n### Bug fixes\n\nFix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.\n\n## 8.11.1 (2023-10-26)\n\n### Bug fixes\n\nFix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.\n\n## 8.11.0 (2023-10-26)\n\n### Bug fixes\n\nFix an issue where tokenizing (without parsing) an object literal with a property named `class` or `function` could, in some circumstance, put the tokenizer into an invalid state.\n\nFix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.\n\n### New features\n\nUpgrade to Unicode 15.1.\n\nUse a set of new, much more precise, TypeScript types.\n\n## 8.10.0 (2023-07-05)\n\n### New features\n\nAdd a `checkPrivateFields` option that disables strict checking of private property use.\n\n## 8.9.0 (2023-06-16)\n\n### Bug fixes\n\nForbid dynamic import after `new`, even when part of a member expression.\n\n### New features\n\nAdd Unicode properties for ES2023.\n\nAdd support for the `v` flag to regular expressions.\n\n## 8.8.2 (2023-01-23)\n\n### Bug fixes\n\nFix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.\n\nFix an exception when passing no option object to `parse` or `new Parser`.\n\nFix incorrect parse error on `if (0) let\\n[astral identifier char]`.\n\n## 8.8.1 (2022-10-24)\n\n### Bug fixes\n\nMake type for `Comment` compatible with estree types.\n\n## 8.8.0 (2022-07-21)\n\n### Bug fixes\n\nAllow parentheses around spread args in destructuring object assignment.\n\nFix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.\n\n### New features\n\nSupport hashbang comments by default in ECMAScript 2023 and later.\n\n## 8.7.1 (2021-04-26)\n\n### Bug fixes\n\nStop handling `\"use strict\"` directives in ECMAScript versions before 5.\n\nFix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.\n\nAdd missing type for `tokTypes`.\n\n## 8.7.0 (2021-12-27)\n\n### New features\n\nSupport quoted export names.\n\nUpgrade to Unicode 14.\n\nAdd support for Unicode 13 properties in regular expressions.\n\n### Bug fixes\n\nUse a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code.\n\n## 8.6.0 (2021-11-18)\n\n### Bug fixes\n\nFix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment.\n\n### New features\n\nSupport class private fields with the `in` operator.\n\n## 8.5.0 (2021-09-06)\n\n### Bug fixes\n\nImprove context-dependent tokenization in a number of corner cases.\n\nFix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).\n\nFix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.\n\nFix wrong end locations stored on SequenceExpression nodes.\n\nImplement restriction that `for`/`of` loop LHS can't start with `let`.\n\n### New features\n\nAdd support for ES2022 class static blocks.\n\nAllow multiple input files to be passed to the CLI tool.\n\n## 8.4.1 (2021-06-24)\n\n### Bug fixes\n\nFix a bug where `allowAwaitOutsideFunction` would allow `await` in class field initializers, and setting `ecmaVersion` to 13 or higher would allow top-level await in non-module sources.\n\n## 8.4.0 (2021-06-11)\n\n### New features\n\nA new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.\n\n## 8.3.0 (2021-05-31)\n\n### New features\n\nDefault `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.\n\nAdd support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.\n\n## 8.2.4 (2021-05-04)\n\n### Bug fixes\n\nFix spec conformity in corner case 'for await (async of ...)'.\n\n## 8.2.3 (2021-05-04)\n\n### Bug fixes\n\nFix an issue where the library couldn't parse 'for (async of ...)'.\n\nFix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances.\n\n## 8.2.2 (2021-04-29)\n\n### Bug fixes\n\nFix a bug where a class field initialized to an async arrow function wouldn't allow await inside it. Same issue existed for generator arrow functions with yield.\n\n## 8.2.1 (2021-04-24)\n\n### Bug fixes\n\nFix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse.\n\n## 8.2.0 (2021-04-24)\n\n### New features\n\nAdd support for ES2022 class fields and private methods.\n\n## 8.1.1 (2021-04-12)\n\n### Various\n\nStop shipping source maps in the NPM package.\n\n## 8.1.0 (2021-03-09)\n\n### Bug fixes\n\nFix a spurious error in nested destructuring arrays.\n\n### New features\n\nExpose `allowAwaitOutsideFunction` in CLI interface.\n\nMake `allowImportExportAnywhere` also apply to `import.meta`.\n\n## 8.0.5 (2021-01-25)\n\n### Bug fixes\n\nAdjust package.json to work with Node 12.16.0 and 13.0-13.6.\n\n## 8.0.4 (2020-10-05)\n\n### Bug fixes\n\nMake `await x ** y` an error, following the spec.\n\nFix potentially exponential regular expression.\n\n## 8.0.3 (2020-10-02)\n\n### Bug fixes\n\nFix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `\"latest\"`.\n\n## 8.0.2 (2020-09-30)\n\n### Bug fixes\n\nMake the TypeScript types reflect the current allowed values for `ecmaVersion`.\n\nFix another regexp/division tokenizer issue.\n\n## 8.0.1 (2020-08-12)\n\n### Bug fixes\n\nProvide the correct value in the `version` export.\n\n## 8.0.0 (2020-08-12)\n\n### Bug fixes\n\nDisallow expressions like `(a = b) = c`.\n\nMake non-octal escape sequences a syntax error in strict mode.\n\n### New features\n\nThe package can now be loaded directly as an ECMAScript module in node 13+.\n\nUpdate to the set of Unicode properties from ES2021.\n\n### Breaking changes\n\nThe `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.\n\nSome changes to method signatures that may be used by plugins.\n\n## 7.4.0 (2020-08-03)\n\n### New features\n\nAdd support for logical assignment operators.\n\nAdd support for numeric separators.\n\n## 7.3.1 (2020-06-11)\n\n### Bug fixes\n\nMake the string in the `version` export match the actual library version.\n\n## 7.3.0 (2020-06-11)\n\n### Bug fixes\n\nFix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail.\n\n### New features\n\nAdd support for optional chaining (`?.`).\n\n## 7.2.0 (2020-05-09)\n\n### Bug fixes\n\nFix precedence issue in parsing of async arrow functions.\n\n### New features\n\nAdd support for nullish coalescing.\n\nAdd support for `import.meta`.\n\nSupport `export * as ...` syntax.\n\nUpgrade to Unicode 13.\n\n## 6.4.1 (2020-03-09)\n\n### Bug fixes\n\nMore carefully check for valid UTF16 surrogate pairs in regexp validator.\n\n## 7.1.1 (2020-03-01)\n\n### Bug fixes\n\nTreat `\\8` and `\\9` as invalid escapes in template strings.\n\nAllow unicode escapes in property names that are keywords.\n\nDon't error on an exponential operator expression as argument to `await`.\n\nMore carefully check for valid UTF16 surrogate pairs in regexp validator.\n\n## 7.1.0 (2019-09-24)\n\n### Bug fixes\n\nDisallow trailing object literal commas when ecmaVersion is less than 5.\n\n### New features\n\nAdd a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.\n\n## 7.0.0 (2019-08-13)\n\n### Breaking changes\n\nChanges the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).\n\nMakes 10 (ES2019) the default value for the `ecmaVersion` option.\n\n## 6.3.0 (2019-08-12)\n\n### New features\n\n`sourceType: \"module\"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard.\n\n## 6.2.1 (2019-07-21)\n\n### Bug fixes\n\nFix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.\n\nFix issue where setting the `allowReserved` option to `\"never\"` allowed reserved words in some circumstances.\n\n## 6.2.0 (2019-07-04)\n\n### Bug fixes\n\nImprove valid assignment checking in `for`/`in` and `for`/`of` loops.\n\nDisallow binding `let` in patterns.\n\n### New features\n\nSupport bigint syntax with `ecmaVersion` >= 11.\n\nSupport dynamic `import` syntax with `ecmaVersion` >= 11.\n\nUpgrade to Unicode version 12.\n\n## 6.1.1 (2019-02-27)\n\n### Bug fixes\n\nFix bug that caused parsing default exports of with names to fail.\n\n## 6.1.0 (2019-02-08)\n\n### Bug fixes\n\nFix scope checking when redefining a `var` as a lexical binding.\n\n### New features\n\nSplit up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins.\n\n## 6.0.7 (2019-02-04)\n\n### Bug fixes\n\nCheck that exported bindings are defined.\n\nDon't treat `\\u180e` as a whitespace character.\n\nCheck for duplicate parameter names in methods.\n\nDon't allow shorthand properties when they are generators or async methods.\n\nForbid binding `await` in async arrow function's parameter list.\n\n## 6.0.6 (2019-01-30)\n\n### Bug fixes\n\nThe content of class declarations and expressions is now always parsed in strict mode.\n\nDon't allow `let` or `const` to bind the variable name `let`.\n\nTreat class declarations as lexical.\n\nDon't allow a generator function declaration as the sole body of an `if` or `else`.\n\nIgnore `\"use strict\"` when after an empty statement.\n\nAllow string line continuations with special line terminator characters.\n\nTreat `for` bodies as part of the `for` scope when checking for conflicting bindings.\n\nFix bug with parsing `yield` in a `for` loop initializer.\n\nImplement special cases around scope checking for functions.\n\n## 6.0.5 (2019-01-02)\n\n### Bug fixes\n\nFix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.\n\nDon't treat `let` as a keyword when the next token is `{` on the next line.\n\nFix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on.\n\n## 6.0.4 (2018-11-05)\n\n### Bug fixes\n\nFurther improvements to tokenizing regular expressions in corner cases.\n\n## 6.0.3 (2018-11-04)\n\n### Bug fixes\n\nFix bug in tokenizing an expression-less return followed by a function followed by a regular expression.\n\nRemove stray symlink in the package tarball.\n\n## 6.0.2 (2018-09-26)\n\n### Bug fixes\n\nFix bug where default expressions could fail to parse inside an object destructuring assignment expression.\n\n## 6.0.1 (2018-09-14)\n\n### Bug fixes\n\nFix wrong value in `version` export.\n\n## 6.0.0 (2018-09-14)\n\n### Bug fixes\n\nBetter handle variable-redefinition checks for catch bindings and functions directly under if statements.\n\nForbid `new.target` in top-level arrow functions.\n\nFix issue with parsing a regexp after `yield` in some contexts.\n\n### New features\n\nThe package now comes with TypeScript definitions.\n\n### Breaking changes\n\nThe default value of the `ecmaVersion` option is now 9 (2018).\n\nPlugins work differently, and will have to be rewritten to work with this version.\n\nThe loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`).\n\n## 5.7.3 (2018-09-10)\n\n### Bug fixes\n\nFix failure to tokenize regexps after expressions like `x.of`.\n\nBetter error message for unterminated template literals.\n\n## 5.7.2 (2018-08-24)\n\n### Bug fixes\n\nProperly handle `allowAwaitOutsideFunction` in for statements.\n\nTreat function declarations at the top level of modules like let bindings.\n\nDon't allow async function declarations as the only statement under a label.\n\n## 5.7.0 (2018-06-15)\n\n### New features\n\nUpgraded to Unicode 11.\n\n## 5.6.0 (2018-05-31)\n\n### New features\n\nAllow U+2028 and U+2029 in string when ECMAVersion >= 10.\n\nAllow binding-less catch statements when ECMAVersion >= 10.\n\nAdd `allowAwaitOutsideFunction` option for parsing top-level `await`.\n\n## 5.5.3 (2018-03-08)\n\n### Bug fixes\n\nA _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.\n\n## 5.5.2 (2018-03-08)\n\n### Bug fixes\n\nA republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0.\n\n## 5.5.1 (2018-03-06)\n\n### Bug fixes\n\nFix misleading error message for octal escapes in template strings.\n\n## 5.5.0 (2018-02-27)\n\n### New features\n\nThe identifier character categorization is now based on Unicode version 10.\n\nAcorn will now validate the content of regular expressions, including new ES9 features.\n\n## 5.4.0 (2018-02-01)\n\n### Bug fixes\n\nDisallow duplicate or escaped flags on regular expressions.\n\nDisallow octal escapes in strings in strict mode.\n\n### New features\n\nAdd support for async iteration.\n\nAdd support for object spread and rest.\n\n## 5.3.0 (2017-12-28)\n\n### Bug fixes\n\nFix parsing of floating point literals with leading zeroes in loose mode.\n\nAllow duplicate property names in object patterns.\n\nDon't allow static class methods named `prototype`.\n\nDisallow async functions directly under `if` or `else`.\n\nParse right-hand-side of `for`/`of` as an assignment expression.\n\nStricter parsing of `for`/`in`.\n\nDon't allow unicode escapes in contextual keywords.\n\n### New features\n\nParsing class members was factored into smaller methods to allow plugins to hook into it.\n\n## 5.2.1 (2017-10-30)\n\n### Bug fixes\n\nFix a token context corruption bug.\n\n## 5.2.0 (2017-10-30)\n\n### Bug fixes\n\nFix token context tracking for `class` and `function` in property-name position.\n\nMake sure `%*` isn't parsed as a valid operator.\n\nAllow shorthand properties `get` and `set` to be followed by default values.\n\nDisallow `super` when not in callee or object position.\n\n### New features\n\nSupport [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements.\n\n## 5.1.2 (2017-09-04)\n\n### Bug fixes\n\nDisable parsing of legacy HTML-style comments in modules.\n\nFix parsing of async methods whose names are keywords.\n\n## 5.1.1 (2017-07-06)\n\n### Bug fixes\n\nFix problem with disambiguating regexp and division after a class.\n\n## 5.1.0 (2017-07-05)\n\n### Bug fixes\n\nFix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.\n\nParse zero-prefixed numbers with non-octal digits as decimal.\n\nAllow object/array patterns in rest parameters.\n\nDon't error when `yield` is used as a property name.\n\nAllow `async` as a shorthand object property.\n\n### New features\n\nImplement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.\n\n## 5.0.3 (2017-04-01)\n\n### Bug fixes\n\nFix spurious duplicate variable definition errors for named functions.\n\n## 5.0.2 (2017-03-30)\n\n### Bug fixes\n\nA binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.\n\n## 5.0.0 (2017-03-28)\n\n### Bug fixes\n\nRaise an error for duplicated lexical bindings.\n\nFix spurious error when an assignement expression occurred after a spread expression.\n\nAccept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.\n\nAllow labels in front or `var` declarations, even in strict mode.\n\n### Breaking changes\n\nParse declarations following `export default` as declaration nodes, not expressions. This means that class and function declarations nodes can now have `null` as their `id`.\n\n## 4.0.11 (2017-02-07)\n\n### Bug fixes\n\nAllow all forms of member expressions to be parenthesized as lvalue.\n\n## 4.0.10 (2017-02-07)\n\n### Bug fixes\n\nDon't expect semicolons after default-exported functions or classes, even when they are expressions.\n\nCheck for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode.\n\n## 4.0.9 (2017-02-06)\n\n### Bug fixes\n\nFix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again.\n\n## 4.0.8 (2017-02-03)\n\n### Bug fixes\n\nSolve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.\n\n## 4.0.7 (2017-02-02)\n\n### Bug fixes\n\nAccept invalidly rejected code like `(x).y = 2` again.\n\nDon't raise an error when a function _inside_ strict code has a non-simple parameter list.\n\n## 4.0.6 (2017-02-02)\n\n### Bug fixes\n\nFix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.\n\n## 4.0.5 (2017-02-02)\n\n### Bug fixes\n\nDisallow parenthesized pattern expressions.\n\nAllow keywords as export names.\n\nDon't allow the `async` keyword to be parenthesized.\n\nProperly raise an error when a keyword contains a character escape.\n\nAllow `\"use strict\"` to appear after other string literal expressions.\n\nDisallow labeled declarations.\n\n## 4.0.4 (2016-12-19)\n\n### Bug fixes\n\nFix crash when `export` was followed by a keyword that can't be\nexported.\n\n## 4.0.3 (2016-08-16)\n\n### Bug fixes\n\nAllow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.\n\nProperly parse properties named `async` in ES2017 mode.\n\nFix bug where reserved words were broken in ES2017 mode.\n\n## 4.0.2 (2016-08-11)\n\n### Bug fixes\n\nDon't ignore period or 'e' characters after octal numbers.\n\nFix broken parsing for call expressions in default parameter values of arrow functions.\n\n## 4.0.1 (2016-08-08)\n\n### Bug fixes\n\nFix false positives in duplicated export name errors.\n\n## 4.0.0 (2016-08-07)\n\n### Breaking changes\n\nThe default `ecmaVersion` option value is now 7.\n\nA number of internal method signatures changed, so plugins might need to be updated.\n\n### Bug fixes\n\nThe parser now raises errors on duplicated export names.\n\n`arguments` and `eval` can now be used in shorthand properties.\n\nDuplicate parameter names in non-simple argument lists now always produce an error.\n\n### New features\n\nThe `ecmaVersion` option now also accepts year-style version numbers\n(2015, etc).\n\nSupport for `async`/`await` syntax when `ecmaVersion` is >= 8.\n\nSupport for trailing commas in call expressions when `ecmaVersion` is >= 8.\n\n## 3.3.0 (2016-07-25)\n\n### Bug fixes\n\nFix bug in tokenizing of regexp operator after a function declaration.\n\nFix parser crash when parsing an array pattern with a hole.\n\n### New features\n\nImplement check against complex argument lists in functions that enable strict mode in ES7.\n\n## 3.2.0 (2016-06-07)\n\n### Bug fixes\n\nImprove handling of lack of unicode regexp support in host\nenvironment.\n\nProperly reject shorthand properties whose name is a keyword.\n\n### New features\n\nVisitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object.\n\n## 3.1.0 (2016-04-18)\n\n### Bug fixes\n\nProperly tokenize the division operator directly after a function expression.\n\nAllow trailing comma in destructuring arrays.\n\n## 3.0.4 (2016-02-25)\n\n### Fixes\n\nAllow update expressions as left-hand-side of the ES7 exponential operator.\n\n## 3.0.2 (2016-02-10)\n\n### Fixes\n\nFix bug that accidentally made `undefined` a reserved word when parsing ES7.\n\n## 3.0.0 (2016-02-10)\n\n### Breaking changes\n\nThe default value of the `ecmaVersion` option is now 6 (used to be 5).\n\nSupport for comprehension syntax (which was dropped from the draft spec) has been removed.\n\n### Fixes\n\n`let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code.\n\nA parenthesized class or function expression after `export default` is now parsed correctly.\n\n### New features\n\nWhen `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).\n\nThe identifier character ranges are now based on Unicode 8.0.0.\n\nPlugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled.\n\n## 2.7.0 (2016-01-04)\n\n### Fixes\n\nStop allowing rest parameters in setters.\n\nDisallow `y` rexexp flag in ES5.\n\nDisallow `\\00` and `\\000` escapes in strict mode.\n\nRaise an error when an import name is a reserved word.\n\n## 2.6.2 (2015-11-10)\n\n### Fixes\n\nDon't crash when no options object is passed.\n\n## 2.6.0 (2015-11-09)\n\n### Fixes\n\nAdd `await` as a reserved word in module sources.\n\nDisallow `yield` in a parameter default value for a generator.\n\nForbid using a comma after a rest pattern in an array destructuring.\n\n### New features\n\nSupport parsing stdin in command-line tool.\n\n## 2.5.0 (2015-10-27)\n\n### Fixes\n\nFix tokenizer support in the command-line tool.\n\nStop allowing `new.target` outside of functions.\n\nRemove legacy `guard` and `guardedHandler` properties from try nodes.\n\nStop allowing multiple `__proto__` properties on an object literal in strict mode.\n\nDon't allow rest parameters to be non-identifier patterns.\n\nCheck for duplicate paramter names in arrow functions.\n"
  },
  {
    "path": "acorn/LICENSE",
    "content": "MIT License\n\nCopyright (C) 2012-2022 by various contributors (see AUTHORS)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "acorn/README.md",
    "content": "# Acorn\n\nA tiny, fast JavaScript parser written in JavaScript.\n\n## Community\n\nAcorn is open source software released under an\n[MIT license](https://github.com/acornjs/acorn/blob/master/acorn/LICENSE).\n\nYou are welcome to\n[report bugs](https://github.com/acornjs/acorn/issues) or create pull\nrequests on [github](https://github.com/acornjs/acorn).\n\n## Installation\n\nThe easiest way to install acorn is from [`npm`](https://www.npmjs.com/):\n\n```sh\nnpm install acorn\n```\n\nAlternately, you can download the source and build acorn yourself:\n\n```sh\ngit clone https://github.com/acornjs/acorn.git\ncd acorn\nnpm install\n```\n## Importing acorn\n\nESM as well as CommonJS is supported for all 3: `acorn`, `acorn-walk` and `acorn-loose`.\n\nESM example for `acorn`:\n\n```js\nimport * as acorn from \"acorn\"\n```\n\nCommonJS example for `acorn`:\n\n```js\nlet acorn = require(\"acorn\")\n```\n\nESM is preferred, as it allows better editor auto-completions by offering TypeScript support.\nFor this reason, following examples will use ESM imports.\n\n## Interface\n\n**parse**`(input, options)` is the main interface to the library. The\n`input` parameter is a string, `options` must be an object setting\nsome of the options listed below. The return value will be an abstract\nsyntax tree object as specified by the [ESTree\nspec](https://github.com/estree/estree).\n\n```javascript\nimport * as acorn from \"acorn\"\nconsole.log(acorn.parse(\"1 + 1\", {ecmaVersion: 2020}))\n```\n\nWhen encountering a syntax error, the parser will raise a\n`SyntaxError` object with a meaningful message. The error object will\nhave a `pos` property that indicates the string offset at which the\nerror occurred, and a `loc` object that contains a `{line, column}`\nobject referring to that same position.\n\nOptions are provided by in a second argument, which should be an\nobject containing any of these fields (only `ecmaVersion` is\nrequired):\n\n- **ecmaVersion**: Indicates the ECMAScript version to parse. Can be a\n  number, either in year (`2022`) or plain version number (`6`) form,\n  or `\"latest\"` (the latest the library supports). This influences\n  support for strict mode, the set of reserved words, and support for\n  new syntax features.\n\n  **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being\n  implemented by Acorn. Other proposed new features must be\n  implemented through plugins.\n\n- **sourceType**: Indicate the mode the code should be parsed in. Can be\n  either `\"script\"`, `\"module\"` or `\"commonjs\"`. This influences global strict mode\n  and parsing of `import` and `export` declarations.\n\n  **NOTE**: If set to `\"module\"`, then static `import` / `export` syntax\n  will be valid, even if `ecmaVersion` is less than 6. If set to `\"commonjs\"`,\n  it is the same as `\"script\"` except that the top-level scope behaves like a function.\n\n- **onInsertedSemicolon**: If given a callback, that callback will be\n  called whenever a missing semicolon is inserted by the parser. The\n  callback will be given the character offset of the point where the\n  semicolon is inserted as argument, and if `locations` is on, also a\n  `{line, column}` object representing this position.\n\n- **onTrailingComma**: Like `onInsertedSemicolon`, but for trailing\n  commas.\n\n- **allowReserved**: If `false`, using a reserved word will generate\n  an error. Defaults to `true` for `ecmaVersion` 3, `false` for higher\n  versions. When given the value `\"never\"`, reserved words and\n  keywords can also not be used as property names (as in Internet\n  Explorer's old parser).\n\n- **allowReturnOutsideFunction**: By default, a return statement at\n  the top level raises an error. Set this to `true` to accept such\n  code.\n\n- **allowImportExportEverywhere**: By default, `import` and `export`\n  declarations can only appear at a program's top level. Setting this\n  option to `true` allows them anywhere where a statement is allowed,\n  and also allows `import.meta` expressions to appear in scripts\n  (when `sourceType` is not `\"module\"`).\n\n- **allowAwaitOutsideFunction**: If `false`, `await` expressions can\n  only appear inside `async` functions. Defaults to `true` in modules\n  for `ecmaVersion` 2022 and later, `false` for lower versions.\n  Setting this option to `true` allows to have top-level `await`\n  expressions. They are still not allowed in non-`async` functions,\n  though. Setting this option to `true` is not allowed when `sourceType: \"commonjs\"`.\n\n- **allowSuperOutsideMethod**: By default, `super` outside a method\n  raises an error. Set this to `true` to accept such code.\n\n- **allowHashBang**: When this is enabled, if the code starts with the\n  characters `#!` (as in a shellscript), the first line will be\n  treated as a comment. Defaults to true when `ecmaVersion` >= 2023.\n\n- **checkPrivateFields**: By default, the parser will verify that\n  private properties are only used in places where they are valid and\n  have been declared. Set this to false to turn such checks off.\n\n- **locations**: When `true`, each node has a `loc` object attached\n  with `start` and `end` subobjects, each of which contains the\n  one-based line and zero-based column numbers in `{line, column}`\n  form. Default is `false`.\n\n- **onToken**: If a function is passed for this option, each found\n  token will be passed in same format as tokens returned from\n  `tokenizer().getToken()`.\n\n  If array is passed, each found token is pushed to it.\n\n  Note that you are not allowed to call the parser from the\n  callback—that will corrupt its internal state.\n\n- **onComment**: If a function is passed for this option, whenever a\n  comment is encountered the function will be called with the\n  following parameters:\n\n  - `block`: `true` if the comment is a block comment, false if it\n    is a line comment.\n  - `text`: The content of the comment.\n  - `start`: Character offset of the start of the comment.\n  - `end`: Character offset of the end of the comment.\n\n  When the `locations` options is on, the `{line, column}` locations\n  of the comment’s start and end are passed as two additional\n  parameters.\n\n  If array is passed for this option, each found comment is pushed\n  to it as object in Esprima format:\n\n  ```javascript\n  {\n    \"type\": \"Line\" | \"Block\",\n    \"value\": \"comment text\",\n    \"start\": Number,\n    \"end\": Number,\n    // If `locations` option is on:\n    \"loc\": {\n      \"start\": {line: Number, column: Number}\n      \"end\": {line: Number, column: Number}\n    },\n    // If `ranges` option is on:\n    \"range\": [Number, Number]\n  }\n  ```\n\n  Note that you are not allowed to call the parser from the\n  callback—that will corrupt its internal state.\n\n- **ranges**: Nodes have their start and end characters offsets\n  recorded in `start` and `end` properties (directly on the node,\n  rather than the `loc` object, which holds line/column data. To also\n  add a\n  [semi-standardized](https://bugzilla.mozilla.org/show_bug.cgi?id=745678)\n  `range` property holding a `[start, end]` array with the same\n  numbers, set the `ranges` option to `true`.\n\n- **program**: It is possible to parse multiple files into a single\n  AST by passing the tree produced by parsing the first file as the\n  `program` option in subsequent parses. This will add the toplevel\n  forms of the parsed file to the \"Program\" (top) node of an existing\n  parse tree.\n\n- **sourceFile**: When the `locations` option is `true`, you can pass\n  this option to add a `source` attribute in every node’s `loc`\n  object. Note that the contents of this option are not examined or\n  processed in any way; you are free to use whatever format you\n  choose.\n\n- **directSourceFile**: Like `sourceFile`, but a `sourceFile` property\n  will be added (regardless of the `location` option) directly to the\n  nodes, rather than the `loc` object.\n\n- **preserveParens**: If this option is `true`, parenthesized expressions\n  are represented by (non-standard) `ParenthesizedExpression` nodes\n  that have a single `expression` property containing the expression\n  inside parentheses.\n\n**parseExpressionAt**`(input, offset, options)` will parse a single\nexpression in a string, and return its AST. It will not complain if\nthere is more of the string left after the expression.\n\n**tokenizer**`(input, options)` returns an object with a `getToken`\nmethod that can be called repeatedly to get the next token, a `{start,\nend, type, value}` object (with added `loc` property when the\n`locations` option is enabled and `range` property when the `ranges`\noption is enabled). When the token's type is `tokTypes.eof`, you\nshould stop calling the method, since it will keep returning that same\ntoken forever.\n\nNote that tokenizing JavaScript without parsing it is, in modern\nversions of the language, not really possible due to the way syntax is\noverloaded in ways that can only be disambiguated by the parse\ncontext. This package applies a bunch of heuristics to try and do a\nreasonable job, but you are advised to use `parse` with the `onToken`\noption instead of this.\n\nIn ES6 environment, returned result can be used as any other\nprotocol-compliant iterable:\n\n```javascript\nfor (let token of acorn.tokenizer(str)) {\n  // iterate over the tokens\n}\n\n// transform code to array of tokens:\nvar tokens = [...acorn.tokenizer(str)]\n```\n\n**tokTypes** holds an object mapping names to the token type objects\nthat end up in the `type` properties of tokens.\n\n**getLineInfo**`(input, offset)` can be used to get a `{line,\ncolumn}` object for a given program string and offset.\n\n### The `Parser` class\n\nInstances of the **`Parser`** class contain all the state and logic\nthat drives a parse. It has static methods `parse`,\n`parseExpressionAt`, and `tokenizer` that match the top-level\nfunctions by the same name.\n\nWhen extending the parser with plugins, you need to call these methods\non the extended version of the class. To extend a parser with plugins,\nyou can use its static `extend` method.\n\n```javascript\nvar acorn = require(\"acorn\")\nvar jsx = require(\"acorn-jsx\")\nvar JSXParser = acorn.Parser.extend(jsx())\nJSXParser.parse(\"foo(<bar/>)\", {ecmaVersion: 2020})\n```\n\nThe `extend` method takes any number of plugin values, and returns a\nnew `Parser` class that includes the extra parser logic provided by\nthe plugins.\n\n## Command line interface\n\nThe `bin/acorn` utility can be used to parse a file from the command\nline. It accepts as arguments its input file and the following\noptions:\n\n- `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|--ecma10`: Sets the ECMAScript version\n  to parse. Default is version 9.\n\n- `--module`: Sets the parsing mode to `\"module\"`. Is set to `\"script\"` otherwise.\n\n- `--locations`: Attaches a \"loc\" object to each node with \"start\" and\n  \"end\" subobjects, each of which contains the one-based line and\n  zero-based column numbers in `{line, column}` form.\n\n- `--allow-hash-bang`: If the code starts with the characters #! (as\n  in a shellscript), the first line will be treated as a comment.\n\n- `--allow-await-outside-function`: Allows top-level `await` expressions.\n  See the `allowAwaitOutsideFunction` option for more information.\n\n- `--compact`: No whitespace is used in the AST output.\n\n- `--silent`: Do not output the AST, just return the exit status.\n\n- `--help`: Print the usage information and quit.\n\nThe utility spits out the syntax tree as JSON data.\n\n## Existing plugins\n\n - [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx)\n"
  },
  {
    "path": "acorn/bin/acorn",
    "content": "#!/usr/bin/env node\n\"use strict\"\n\nrequire(\"../dist/bin.js\")\n"
  },
  {
    "path": "acorn/package.json",
    "content": "{\n  \"name\": \"acorn\",\n  \"description\": \"ECMAScript parser\",\n  \"homepage\": \"https://github.com/acornjs/acorn\",\n  \"main\": \"dist/acorn.js\",\n  \"types\": \"dist/acorn.d.ts\",\n  \"module\": \"dist/acorn.mjs\",\n  \"exports\": {\n    \".\": [\n      {\n        \"import\": \"./dist/acorn.mjs\",\n        \"require\": \"./dist/acorn.js\",\n        \"default\": \"./dist/acorn.js\"\n      },\n      \"./dist/acorn.js\"\n    ],\n    \"./package.json\": \"./package.json\"\n  },\n  \"version\": \"8.16.0\",\n  \"engines\": {\n    \"node\": \">=0.4.0\"\n  },\n  \"maintainers\": [\n    {\n      \"name\": \"Marijn Haverbeke\",\n      \"email\": \"marijnh@gmail.com\",\n      \"web\": \"https://marijnhaverbeke.nl\"\n    },\n    {\n      \"name\": \"Ingvar Stepanyan\",\n      \"email\": \"me@rreverser.com\",\n      \"web\": \"https://rreverser.com/\"\n    },\n    {\n      \"name\": \"Adrian Heine\",\n      \"web\": \"http://adrianheine.de\"\n    }\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/acornjs/acorn.git\"\n  },\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"prepare\": \"cd ..; npm run build:main\"\n  },\n  \"bin\": {\n    \"acorn\": \"bin/acorn\"\n  }\n}\n"
  },
  {
    "path": "acorn/rollup.config.mjs",
    "content": "import {readFile, writeFile} from \"node:fs/promises\"\nimport buble from \"@rollup/plugin-buble\"\n\nconst copy = (from, to) => ({\n  async writeBundle() { await writeFile(to, await readFile(from)) }\n})\n\nexport default [\n  {\n    input: \"acorn/src/index.js\",\n    output: [\n      {\n        file: \"acorn/dist/acorn.js\",\n        format: \"umd\",\n        name: \"acorn\"\n      },\n      {\n        file: \"acorn/dist/acorn.mjs\",\n        format: \"es\"\n      }\n    ],\n    plugins: [\n      buble({transforms: {dangerousForOf: true}}),\n      copy(\"acorn/src/acorn.d.ts\", \"acorn/dist/acorn.d.ts\"),\n      copy(\"acorn/src/acorn.d.ts\", \"acorn/dist/acorn.d.mts\")\n    ]\n  },\n  {\n    external: [\"acorn\", \"fs\", \"path\"],\n    input: \"acorn/src/bin/acorn.js\",\n    output: {\n      file: \"acorn/dist/bin.js\",\n      format: \"cjs\",\n      paths: {acorn: \"./acorn.js\"}\n    },\n    plugins: [\n      buble({transforms: {dangerousForOf: true}})\n    ]\n  }\n]\n"
  },
  {
    "path": "acorn/src/acorn.d.ts",
    "content": "export interface Node {\n  start: number\n  end: number\n  type: string\n  range?: [number, number]\n  loc?: SourceLocation | null\n}\n\nexport interface SourceLocation {\n  source?: string | null\n  start: Position\n  end: Position\n}\n\nexport interface Position {\n  /** 1-based */\n  line: number\n  /** 0-based */\n  column: number\n}\n\nexport interface Identifier extends Node {\n  type: \"Identifier\"\n  name: string\n}\n\nexport interface Literal extends Node {\n  type: \"Literal\"\n  value?: string | boolean | null | number | RegExp | bigint\n  raw?: string\n  regex?: {\n    pattern: string\n    flags: string\n  }\n  bigint?: string\n}\n\nexport interface Program extends Node {\n  type: \"Program\"\n  body: Array<Statement | ModuleDeclaration>\n  sourceType: \"script\" | \"module\"\n}\n\nexport interface Function extends Node {\n  id?: Identifier | null\n  params: Array<Pattern>\n  body: BlockStatement | Expression\n  generator: boolean\n  expression: boolean\n  async: boolean\n}\n\nexport interface ExpressionStatement extends Node {\n  type: \"ExpressionStatement\"\n  expression: Expression | Literal\n  directive?: string\n}\n\nexport interface BlockStatement extends Node {\n  type: \"BlockStatement\"\n  body: Array<Statement>\n}\n\nexport interface EmptyStatement extends Node {\n  type: \"EmptyStatement\"\n}\n\nexport interface DebuggerStatement extends Node {\n  type: \"DebuggerStatement\"\n}\n\nexport interface WithStatement extends Node {\n  type: \"WithStatement\"\n  object: Expression\n  body: Statement\n}\n\nexport interface ReturnStatement extends Node {\n  type: \"ReturnStatement\"\n  argument?: Expression | null\n}\n\nexport interface LabeledStatement extends Node {\n  type: \"LabeledStatement\"\n  label: Identifier\n  body: Statement\n}\n\nexport interface BreakStatement extends Node {\n  type: \"BreakStatement\"\n  label?: Identifier | null\n}\n\nexport interface ContinueStatement extends Node {\n  type: \"ContinueStatement\"\n  label?: Identifier | null\n}\n\nexport interface IfStatement extends Node {\n  type: \"IfStatement\"\n  test: Expression\n  consequent: Statement\n  alternate?: Statement | null\n}\n\nexport interface SwitchStatement extends Node {\n  type: \"SwitchStatement\"\n  discriminant: Expression\n  cases: Array<SwitchCase>\n}\n\nexport interface SwitchCase extends Node {\n  type: \"SwitchCase\"\n  test?: Expression | null\n  consequent: Array<Statement>\n}\n\nexport interface ThrowStatement extends Node {\n  type: \"ThrowStatement\"\n  argument: Expression\n}\n\nexport interface TryStatement extends Node {\n  type: \"TryStatement\"\n  block: BlockStatement\n  handler?: CatchClause | null\n  finalizer?: BlockStatement | null\n}\n\nexport interface CatchClause extends Node {\n  type: \"CatchClause\"\n  param?: Pattern | null\n  body: BlockStatement\n}\n\nexport interface WhileStatement extends Node {\n  type: \"WhileStatement\"\n  test: Expression\n  body: Statement\n}\n\nexport interface DoWhileStatement extends Node {\n  type: \"DoWhileStatement\"\n  body: Statement\n  test: Expression\n}\n\nexport interface ForStatement extends Node {\n  type: \"ForStatement\"\n  init?: VariableDeclaration | Expression | null\n  test?: Expression | null\n  update?: Expression | null\n  body: Statement\n}\n\nexport interface ForInStatement extends Node {\n  type: \"ForInStatement\"\n  left: VariableDeclaration | Pattern\n  right: Expression\n  body: Statement\n}\n\nexport interface FunctionDeclaration extends Function {\n  type: \"FunctionDeclaration\"\n  id: Identifier\n  body: BlockStatement\n}\n\nexport interface VariableDeclaration extends Node {\n  type: \"VariableDeclaration\"\n  declarations: Array<VariableDeclarator>\n  kind: \"var\" | \"let\" | \"const\" | \"using\" | \"await using\"\n}\n\nexport interface VariableDeclarator extends Node {\n  type: \"VariableDeclarator\"\n  id: Pattern\n  init?: Expression | null\n}\n\nexport interface ThisExpression extends Node {\n  type: \"ThisExpression\"\n}\n\nexport interface ArrayExpression extends Node {\n  type: \"ArrayExpression\"\n  elements: Array<Expression | SpreadElement | null>\n}\n\nexport interface ObjectExpression extends Node {\n  type: \"ObjectExpression\"\n  properties: Array<Property | SpreadElement>\n}\n\nexport interface Property extends Node {\n  type: \"Property\"\n  key: Expression\n  value: Expression\n  kind: \"init\" | \"get\" | \"set\"\n  method: boolean\n  shorthand: boolean\n  computed: boolean\n}\n\nexport interface FunctionExpression extends Function {\n  type: \"FunctionExpression\"\n  body: BlockStatement\n}\n\nexport interface UnaryExpression extends Node {\n  type: \"UnaryExpression\"\n  operator: UnaryOperator\n  prefix: boolean\n  argument: Expression\n}\n\nexport type UnaryOperator = \"-\" | \"+\" | \"!\" | \"~\" | \"typeof\" | \"void\" | \"delete\"\n\nexport interface UpdateExpression extends Node {\n  type: \"UpdateExpression\"\n  operator: UpdateOperator\n  argument: Expression\n  prefix: boolean\n}\n\nexport type UpdateOperator = \"++\" | \"--\"\n\nexport interface BinaryExpression extends Node {\n  type: \"BinaryExpression\"\n  operator: BinaryOperator\n  left: Expression | PrivateIdentifier\n  right: Expression\n}\n\nexport type BinaryOperator = \"==\" | \"!=\" | \"===\" | \"!==\" | \"<\" | \"<=\" | \">\" | \">=\" | \"<<\" | \">>\" | \">>>\" | \"+\" | \"-\" | \"*\" | \"/\" | \"%\" | \"|\" | \"^\" | \"&\" | \"in\" | \"instanceof\" | \"**\"\n\nexport interface AssignmentExpression extends Node {\n  type: \"AssignmentExpression\"\n  operator: AssignmentOperator\n  left: Pattern\n  right: Expression\n}\n\nexport type AssignmentOperator = \"=\" | \"+=\" | \"-=\" | \"*=\" | \"/=\" | \"%=\" | \"<<=\" | \">>=\" | \">>>=\" | \"|=\" | \"^=\" | \"&=\" | \"**=\" | \"||=\" | \"&&=\" | \"??=\"\n\nexport interface LogicalExpression extends Node {\n  type: \"LogicalExpression\"\n  operator: LogicalOperator\n  left: Expression\n  right: Expression\n}\n\nexport type LogicalOperator = \"||\" | \"&&\" | \"??\"\n\nexport interface MemberExpression extends Node {\n  type: \"MemberExpression\"\n  object: Expression | Super\n  property: Expression | PrivateIdentifier\n  computed: boolean\n  optional: boolean\n}\n\nexport interface ConditionalExpression extends Node {\n  type: \"ConditionalExpression\"\n  test: Expression\n  alternate: Expression\n  consequent: Expression\n}\n\nexport interface CallExpression extends Node {\n  type: \"CallExpression\"\n  callee: Expression | Super\n  arguments: Array<Expression | SpreadElement>\n  optional: boolean\n}\n\nexport interface NewExpression extends Node {\n  type: \"NewExpression\"\n  callee: Expression\n  arguments: Array<Expression | SpreadElement>\n}\n\nexport interface SequenceExpression extends Node {\n  type: \"SequenceExpression\"\n  expressions: Array<Expression>\n}\n\nexport interface ForOfStatement extends Node {\n  type: \"ForOfStatement\"\n  left: VariableDeclaration | Pattern\n  right: Expression\n  body: Statement\n  await: boolean\n}\n\nexport interface Super extends Node {\n  type: \"Super\"\n}\n\nexport interface SpreadElement extends Node {\n  type: \"SpreadElement\"\n  argument: Expression\n}\n\nexport interface ArrowFunctionExpression extends Function {\n  type: \"ArrowFunctionExpression\"\n}\n\nexport interface YieldExpression extends Node {\n  type: \"YieldExpression\"\n  argument?: Expression | null\n  delegate: boolean\n}\n\nexport interface TemplateLiteral extends Node {\n  type: \"TemplateLiteral\"\n  quasis: Array<TemplateElement>\n  expressions: Array<Expression>\n}\n\nexport interface TaggedTemplateExpression extends Node {\n  type: \"TaggedTemplateExpression\"\n  tag: Expression\n  quasi: TemplateLiteral\n}\n\nexport interface TemplateElement extends Node {\n  type: \"TemplateElement\"\n  tail: boolean\n  value: {\n    cooked?: string | null\n    raw: string\n  }\n}\n\nexport interface AssignmentProperty extends Node {\n  type: \"Property\"\n  key: Expression\n  value: Pattern\n  kind: \"init\"\n  method: false\n  shorthand: boolean\n  computed: boolean\n}\n\nexport interface ObjectPattern extends Node {\n  type: \"ObjectPattern\"\n  properties: Array<AssignmentProperty | RestElement>\n}\n\nexport interface ArrayPattern extends Node {\n  type: \"ArrayPattern\"\n  elements: Array<Pattern | null>\n}\n\nexport interface RestElement extends Node {\n  type: \"RestElement\"\n  argument: Pattern\n}\n\nexport interface AssignmentPattern extends Node {\n  type: \"AssignmentPattern\"\n  left: Pattern\n  right: Expression\n}\n\nexport interface Class extends Node {\n  id?: Identifier | null\n  superClass?: Expression | null\n  body: ClassBody\n}\n\nexport interface ClassBody extends Node {\n  type: \"ClassBody\"\n  body: Array<MethodDefinition | PropertyDefinition | StaticBlock>\n}\n\nexport interface MethodDefinition extends Node {\n  type: \"MethodDefinition\"\n  key: Expression | PrivateIdentifier\n  value: FunctionExpression\n  kind: \"constructor\" | \"method\" | \"get\" | \"set\"\n  computed: boolean\n  static: boolean\n}\n\nexport interface ClassDeclaration extends Class {\n  type: \"ClassDeclaration\"\n  id: Identifier\n}\n\nexport interface ClassExpression extends Class {\n  type: \"ClassExpression\"\n}\n\nexport interface MetaProperty extends Node {\n  type: \"MetaProperty\"\n  meta: Identifier\n  property: Identifier\n}\n\nexport interface ImportDeclaration extends Node {\n  type: \"ImportDeclaration\"\n  specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>\n  source: Literal\n  attributes: Array<ImportAttribute>\n}\n\nexport interface ImportSpecifier extends Node {\n  type: \"ImportSpecifier\"\n  imported: Identifier | Literal\n  local: Identifier\n}\n\nexport interface ImportDefaultSpecifier extends Node {\n  type: \"ImportDefaultSpecifier\"\n  local: Identifier\n}\n\nexport interface ImportNamespaceSpecifier extends Node {\n  type: \"ImportNamespaceSpecifier\"\n  local: Identifier\n}\n\nexport interface ImportAttribute extends Node {\n  type: \"ImportAttribute\"\n  key: Identifier | Literal\n  value: Literal\n}\n\nexport interface ExportNamedDeclaration extends Node {\n  type: \"ExportNamedDeclaration\"\n  declaration?: Declaration | null\n  specifiers: Array<ExportSpecifier>\n  source?: Literal | null\n  attributes: Array<ImportAttribute>\n}\n\nexport interface ExportSpecifier extends Node {\n  type: \"ExportSpecifier\"\n  exported: Identifier | Literal\n  local: Identifier | Literal\n}\n\nexport interface AnonymousFunctionDeclaration extends Function {\n  type: \"FunctionDeclaration\"\n  id: null\n  body: BlockStatement\n}\n\nexport interface AnonymousClassDeclaration extends Class {\n  type: \"ClassDeclaration\"\n  id: null\n}\n\nexport interface ExportDefaultDeclaration extends Node {\n  type: \"ExportDefaultDeclaration\"\n  declaration: AnonymousFunctionDeclaration | FunctionDeclaration | AnonymousClassDeclaration | ClassDeclaration | Expression\n}\n\nexport interface ExportAllDeclaration extends Node {\n  type: \"ExportAllDeclaration\"\n  source: Literal\n  exported?: Identifier | Literal | null\n  attributes: Array<ImportAttribute>\n}\n\nexport interface AwaitExpression extends Node {\n  type: \"AwaitExpression\"\n  argument: Expression\n}\n\nexport interface ChainExpression extends Node {\n  type: \"ChainExpression\"\n  expression: MemberExpression | CallExpression\n}\n\nexport interface ImportExpression extends Node {\n  type: \"ImportExpression\"\n  source: Expression\n  options: Expression | null\n}\n\nexport interface ParenthesizedExpression extends Node {\n  type: \"ParenthesizedExpression\"\n  expression: Expression\n}\n\nexport interface PropertyDefinition extends Node {\n  type: \"PropertyDefinition\"\n  key: Expression | PrivateIdentifier\n  value?: Expression | null\n  computed: boolean\n  static: boolean\n}\n\nexport interface PrivateIdentifier extends Node {\n  type: \"PrivateIdentifier\"\n  name: string\n}\n\nexport interface StaticBlock extends Node {\n  type: \"StaticBlock\"\n  body: Array<Statement>\n}\n\nexport type Statement = \n| ExpressionStatement\n| BlockStatement\n| EmptyStatement\n| DebuggerStatement\n| WithStatement\n| ReturnStatement\n| LabeledStatement\n| BreakStatement\n| ContinueStatement\n| IfStatement\n| SwitchStatement\n| ThrowStatement\n| TryStatement\n| WhileStatement\n| DoWhileStatement\n| ForStatement\n| ForInStatement\n| ForOfStatement\n| Declaration\n\nexport type Declaration = \n| FunctionDeclaration\n| VariableDeclaration\n| ClassDeclaration\n\nexport type Expression = \n| Identifier\n| Literal\n| ThisExpression\n| ArrayExpression\n| ObjectExpression\n| FunctionExpression\n| UnaryExpression\n| UpdateExpression\n| BinaryExpression\n| AssignmentExpression\n| LogicalExpression\n| MemberExpression\n| ConditionalExpression\n| CallExpression\n| NewExpression\n| SequenceExpression\n| ArrowFunctionExpression\n| YieldExpression\n| TemplateLiteral\n| TaggedTemplateExpression\n| ClassExpression\n| MetaProperty\n| AwaitExpression\n| ChainExpression\n| ImportExpression\n| ParenthesizedExpression\n\nexport type Pattern = \n| Identifier\n| MemberExpression\n| ObjectPattern\n| ArrayPattern\n| RestElement\n| AssignmentPattern\n\nexport type ModuleDeclaration = \n| ImportDeclaration\n| ExportNamedDeclaration\n| ExportDefaultDeclaration\n| ExportAllDeclaration\n\n/**\n  * This interface is only used for defining {@link AnyNode}.\n  * It exists so that it can be extended by plugins:\n  *\n  * @example\n  * ```typescript\n  * declare module 'acorn' {\n  *   interface NodeTypes {\n  *     pluginName: FirstNode | SecondNode | ThirdNode | ... | LastNode\n  *   }\n  * }\n  * ```\n  */\ninterface NodeTypes {\n  core: Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportAttribute | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator\n}\n\nexport type AnyNode = NodeTypes[keyof NodeTypes]\n\nexport function parse(input: string, options: Options): Program\n\nexport function parseExpressionAt(input: string, pos: number, options: Options): Expression\n\nexport function tokenizer(input: string, options: Options): {\n  getToken(): Token\n  [Symbol.iterator](): Iterator<Token>\n}\n\nexport type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | \"latest\"\n\nexport interface Options {\n  /**\n   * `ecmaVersion` indicates the ECMAScript version to parse. Can be a\n   * number, either in year (`2022`) or plain version number (`6`) form,\n   * or `\"latest\"` (the latest the library supports). This influences\n   * support for strict mode, the set of reserved words, and support for\n   * new syntax features.\n   */\n  ecmaVersion: ecmaVersion\n\n  /**\n   * `sourceType` indicates the mode the code should be parsed in.\n   * Can be either `\"script\"`, `\"module\"` or `\"commonjs\"`. This influences global\n   * strict mode and parsing of `import` and `export` declarations.\n   */\n  sourceType?: \"script\" | \"module\" | \"commonjs\"\n\n  /**\n   * a callback that will be called when a semicolon is automatically inserted.\n   * @param lastTokEnd the position of the comma as an offset\n   * @param lastTokEndLoc location if {@link locations} is enabled\n   */\n  onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void\n\n  /**\n   * similar to `onInsertedSemicolon`, but for trailing commas\n   * @param lastTokEnd the position of the comma as an offset\n   * @param lastTokEndLoc location if `locations` is enabled\n   */\n  onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void\n\n  /**\n   * By default, reserved words are only enforced if ecmaVersion >= 5.\n   * Set `allowReserved` to a boolean value to explicitly turn this on\n   * an off. When this option has the value \"never\", reserved words\n   * and keywords can also not be used as property names.\n   */\n  allowReserved?: boolean | \"never\"\n\n  /** \n   * When enabled, a return at the top level is not considered an error.\n   */\n  allowReturnOutsideFunction?: boolean\n\n  /**\n   * When enabled, import/export statements are not constrained to\n   * appearing at the top of the program, and an import.meta expression\n   * in a script isn't considered an error.\n   */\n  allowImportExportEverywhere?: boolean\n\n  /**\n   * By default, `await` identifiers are allowed to appear at the top-level scope only if {@link ecmaVersion} >= 2022.\n   * When enabled, await identifiers are allowed to appear at the top-level scope,\n   * but they are still not allowed in non-async functions.\n   */\n  allowAwaitOutsideFunction?: boolean\n\n  /**\n   * When enabled, super identifiers are not constrained to\n   * appearing in methods and do not raise an error when they appear elsewhere.\n   */\n  allowSuperOutsideMethod?: boolean\n\n  /**\n   * When enabled, hashbang directive in the beginning of file is\n   * allowed and treated as a line comment. Enabled by default when\n   * {@link ecmaVersion} >= 2023.\n   */\n  allowHashBang?: boolean\n\n  /**\n   * By default, the parser will verify that private properties are\n   * only used in places where they are valid and have been declared.\n   * Set this to false to turn such checks off.\n   */\n  checkPrivateFields?: boolean\n\n  /**\n   * When `locations` is on, `loc` properties holding objects with\n   * `start` and `end` properties as {@link Position} objects will be attached to the\n   * nodes.\n   */\n  locations?: boolean\n\n  /**\n   * a callback that will cause Acorn to call that export function with object in the same\n   * format as tokens returned from `tokenizer().getToken()`. Note\n   * that you are not allowed to call the parser from the\n   * callback—that will corrupt its internal state.\n   */\n  onToken?: ((token: Token) => void) | Token[]\n\n\n  /**\n   * This takes a export function or an array.\n   * \n   * When a export function is passed, Acorn will call that export function with `(block, text, start,\n   * end)` parameters whenever a comment is skipped. `block` is a\n   * boolean indicating whether this is a block (`/* *\\/`) comment,\n   * `text` is the content of the comment, and `start` and `end` are\n   * character offsets that denote the start and end of the comment.\n   * When the {@link locations} option is on, two more parameters are\n   * passed, the full locations of {@link Position} export type of the start and\n   * end of the comments.\n   * \n   * When a array is passed, each found comment of {@link Comment} export type is pushed to the array.\n   * \n   * Note that you are not allowed to call the\n   * parser from the callback—that will corrupt its internal state.\n   */\n  onComment?: ((\n    isBlock: boolean, text: string, start: number, end: number, startLoc?: Position,\n    endLoc?: Position\n  ) => void) | Comment[]\n\n  /**\n   * Nodes have their start and end characters offsets recorded in\n   * `start` and `end` properties (directly on the node, rather than\n   * the `loc` object, which holds line/column data. To also add a\n   * [semi-standardized][range] `range` property holding a `[start,\n   * end]` array with the same numbers, set the `ranges` option to\n   * `true`.\n   */\n  ranges?: boolean\n\n  /**\n   * It is possible to parse multiple files into a single AST by\n   * passing the tree produced by parsing the first file as\n   * `program` option in subsequent parses. This will add the\n   * toplevel forms of the parsed file to the `Program` (top) node\n   * of an existing parse tree.\n   */\n  program?: Node\n\n  /**\n   * When {@link locations} is on, you can pass this to record the source\n   * file in every node's `loc` object.\n   */\n  sourceFile?: string\n\n  /**\n   * This value, if given, is stored in every node, whether {@link locations} is on or off.\n   */\n  directSourceFile?: string\n\n  /**\n   * When enabled, parenthesized expressions are represented by\n   * (non-standard) ParenthesizedExpression nodes\n   */\n  preserveParens?: boolean\n}\n  \nexport class Parser {\n  options: Options\n  input: string\n  \n  protected constructor(options: Options, input: string, startPos?: number)\n  parse(): Program\n  \n  static parse(input: string, options: Options): Program\n  static parseExpressionAt(input: string, pos: number, options: Options): Expression\n  static tokenizer(input: string, options: Options): {\n    getToken(): Token\n    [Symbol.iterator](): Iterator<Token>\n  }\n  static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser\n}\n\nexport const defaultOptions: Options\n\nexport function getLineInfo(input: string, offset: number): Position\n\nexport class TokenType {\n  label: string\n  keyword: string | undefined\n}\n\nexport const tokTypes: {\n  num: TokenType\n  regexp: TokenType\n  string: TokenType\n  name: TokenType\n  privateId: TokenType\n  eof: TokenType\n\n  bracketL: TokenType\n  bracketR: TokenType\n  braceL: TokenType\n  braceR: TokenType\n  parenL: TokenType\n  parenR: TokenType\n  comma: TokenType\n  semi: TokenType\n  colon: TokenType\n  dot: TokenType\n  question: TokenType\n  questionDot: TokenType\n  arrow: TokenType\n  template: TokenType\n  invalidTemplate: TokenType\n  ellipsis: TokenType\n  backQuote: TokenType\n  dollarBraceL: TokenType\n\n  eq: TokenType\n  assign: TokenType\n  incDec: TokenType\n  prefix: TokenType\n  logicalOR: TokenType\n  logicalAND: TokenType\n  bitwiseOR: TokenType\n  bitwiseXOR: TokenType\n  bitwiseAND: TokenType\n  equality: TokenType\n  relational: TokenType\n  bitShift: TokenType\n  plusMin: TokenType\n  modulo: TokenType\n  star: TokenType\n  slash: TokenType\n  starstar: TokenType\n  coalesce: TokenType\n\n  _break: TokenType\n  _case: TokenType\n  _catch: TokenType\n  _continue: TokenType\n  _debugger: TokenType\n  _default: TokenType\n  _do: TokenType\n  _else: TokenType\n  _finally: TokenType\n  _for: TokenType\n  _function: TokenType\n  _if: TokenType\n  _return: TokenType\n  _switch: TokenType\n  _throw: TokenType\n  _try: TokenType\n  _var: TokenType\n  _const: TokenType\n  _while: TokenType\n  _with: TokenType\n  _new: TokenType\n  _this: TokenType\n  _super: TokenType\n  _class: TokenType\n  _extends: TokenType\n  _export: TokenType\n  _import: TokenType\n  _null: TokenType\n  _true: TokenType\n  _false: TokenType\n  _in: TokenType\n  _instanceof: TokenType\n  _typeof: TokenType\n  _void: TokenType\n  _delete: TokenType\n}\n\nexport interface Comment {\n  type: \"Line\" | \"Block\"\n  value: string\n  start: number\n  end: number\n  loc?: SourceLocation\n  range?: [number, number]\n}\n\nexport class Token {\n  type: TokenType\n  start: number\n  end: number\n  loc?: SourceLocation\n  range?: [number, number]\n}\n\nexport const version: string\n"
  },
  {
    "path": "acorn/src/bin/acorn.js",
    "content": "import {basename} from \"path\"\nimport {readFileSync as readFile} from \"fs\"\nimport * as acorn from \"acorn\"\n\nlet inputFilePaths = [], forceFileName = false, fileMode = false, silent = false, compact = false, tokenize = false\nconst options = {}\n\nfunction help(status) {\n  const print = (status === 0) ? console.log : console.error\n  print(\"usage: \" + basename(process.argv[1]) + \" [--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|...|--ecma2015|--ecma2016|--ecma2017|--ecma2018|...]\")\n  print(\"        [--tokenize] [--locations] [--allow-hash-bang] [--allow-await-outside-function] [--compact] [--silent] [--module] [--help] [--] [<infile>...]\")\n  process.exit(status)\n}\n\nfor (let i = 2; i < process.argv.length; ++i) {\n  const arg = process.argv[i]\n  if (arg[0] !== \"-\" || arg === \"-\") inputFilePaths.push(arg)\n  else if (arg === \"--\") {\n    inputFilePaths.push(...process.argv.slice(i + 1))\n    forceFileName = true\n    break\n  } else if (arg === \"--locations\") options.locations = true\n  else if (arg === \"--allow-hash-bang\") options.allowHashBang = true\n  else if (arg === \"--allow-await-outside-function\") options.allowAwaitOutsideFunction = true\n  else if (arg === \"--silent\") silent = true\n  else if (arg === \"--compact\") compact = true\n  else if (arg === \"--help\") help(0)\n  else if (arg === \"--tokenize\") tokenize = true\n  else if (arg === \"--module\") options.sourceType = \"module\"\n  else {\n    let match = arg.match(/^--ecma(\\d+)$/)\n    if (match)\n      options.ecmaVersion = +match[1]\n    else\n      help(1)\n  }\n}\n\nfunction run(codeList) {\n  let result = [], fileIdx = 0\n  try {\n    codeList.forEach((code, idx) => {\n      fileIdx = idx\n      if (!tokenize) {\n        result = acorn.parse(code, options)\n        options.program = result\n      } else {\n        let tokenizer = acorn.tokenizer(code, options), token\n        do {\n          token = tokenizer.getToken()\n          result.push(token)\n        } while (token.type !== acorn.tokTypes.eof)\n      }\n    })\n  } catch (e) {\n    console.error(fileMode ? e.message.replace(/\\(\\d+:\\d+\\)$/, m => m.slice(0, 1) + inputFilePaths[fileIdx] + \" \" + m.slice(1)) : e.message)\n    process.exit(1)\n  }\n  if (!silent) console.log(JSON.stringify(result, (_, value) => typeof value === \"bigint\" ? null : value, compact ? null : 2))\n}\n\nif (fileMode = inputFilePaths.length && (forceFileName || !inputFilePaths.includes(\"-\") || inputFilePaths.length !== 1)) {\n  run(inputFilePaths.map(path => readFile(path, \"utf8\")))\n} else {\n  let code = \"\"\n  process.stdin.resume()\n  process.stdin.on(\"data\", chunk => code += chunk)\n  process.stdin.on(\"end\", () => run([code]))\n}\n"
  },
  {
    "path": "acorn/src/expression.js",
    "content": "// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\n\nimport {types as tt} from \"./tokentype.js\"\nimport {types as tokenCtxTypes} from \"./tokencontext.js\"\nimport {Parser} from \"./state.js\"\nimport {DestructuringErrors} from \"./parseutil.js\"\nimport {lineBreak} from \"./whitespace.js\"\nimport {functionFlags, SCOPE_ARROW, SCOPE_SUPER, SCOPE_DIRECT_SUPER, BIND_OUTSIDE, BIND_VAR, SCOPE_VAR} from \"./scopeflags.js\"\n\nconst pp = Parser.prototype\n\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash —\n// either with each other or with an init property — and in\n// strict mode, init properties are also not allowed to be repeated.\n\npp.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n  if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\")\n    return\n  if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))\n    return\n  let {key} = prop, name\n  switch (key.type) {\n  case \"Identifier\": name = key.name; break\n  case \"Literal\": name = String(key.value); break\n  default: return\n  }\n  let {kind} = prop\n  if (this.options.ecmaVersion >= 6) {\n    if (name === \"__proto__\" && kind === \"init\") {\n      if (propHash.proto) {\n        if (refDestructuringErrors) {\n          if (refDestructuringErrors.doubleProto < 0) {\n            refDestructuringErrors.doubleProto = key.start\n          }\n        } else {\n          this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\")\n        }\n      }\n      propHash.proto = true\n    }\n    return\n  }\n  name = \"$\" + name\n  let other = propHash[name]\n  if (other) {\n    let redefinition\n    if (kind === \"init\") {\n      redefinition = this.strict && other.init || other.get || other.set\n    } else {\n      redefinition = other.init || other[kind]\n    }\n    if (redefinition)\n      this.raiseRecoverable(key.start, \"Redefinition of property\")\n  } else {\n    other = propHash[name] = {\n      init: false,\n      get: false,\n      set: false\n    }\n  }\n  other[kind] = true\n}\n\n// ### Expression parsing\n\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n\npp.parseExpression = function(forInit, refDestructuringErrors) {\n  let startPos = this.start, startLoc = this.startLoc\n  let expr = this.parseMaybeAssign(forInit, refDestructuringErrors)\n  if (this.type === tt.comma) {\n    let node = this.startNodeAt(startPos, startLoc)\n    node.expressions = [expr]\n    while (this.eat(tt.comma)) node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors))\n    return this.finishNode(node, \"SequenceExpression\")\n  }\n  return expr\n}\n\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n\npp.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n  if (this.isContextual(\"yield\")) {\n    if (this.inGenerator) return this.parseYield(forInit)\n    // The tokenizer will assume an expression is allowed after\n    // `yield`, but this isn't that kind of yield\n    else this.exprAllowed = false\n  }\n\n  let ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1\n  if (refDestructuringErrors) {\n    oldParenAssign = refDestructuringErrors.parenthesizedAssign\n    oldTrailingComma = refDestructuringErrors.trailingComma\n    oldDoubleProto = refDestructuringErrors.doubleProto\n    refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1\n  } else {\n    refDestructuringErrors = new DestructuringErrors\n    ownDestructuringErrors = true\n  }\n\n  let startPos = this.start, startLoc = this.startLoc\n  if (this.type === tt.parenL || this.type === tt.name) {\n    this.potentialArrowAt = this.start\n    this.potentialArrowInForAwait = forInit === \"await\"\n  }\n  let left = this.parseMaybeConditional(forInit, refDestructuringErrors)\n  if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc)\n  if (this.type.isAssign) {\n    let node = this.startNodeAt(startPos, startLoc)\n    node.operator = this.value\n    if (this.type === tt.eq)\n      left = this.toAssignable(left, false, refDestructuringErrors)\n    if (!ownDestructuringErrors) {\n      refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1\n    }\n    if (refDestructuringErrors.shorthandAssign >= left.start)\n      refDestructuringErrors.shorthandAssign = -1 // reset because shorthand default was used correctly\n    if (this.type === tt.eq)\n      this.checkLValPattern(left)\n    else\n      this.checkLValSimple(left)\n    node.left = left\n    this.next()\n    node.right = this.parseMaybeAssign(forInit)\n    if (oldDoubleProto > -1) refDestructuringErrors.doubleProto = oldDoubleProto\n    return this.finishNode(node, \"AssignmentExpression\")\n  } else {\n    if (ownDestructuringErrors) this.checkExpressionErrors(refDestructuringErrors, true)\n  }\n  if (oldParenAssign > -1) refDestructuringErrors.parenthesizedAssign = oldParenAssign\n  if (oldTrailingComma > -1) refDestructuringErrors.trailingComma = oldTrailingComma\n  return left\n}\n\n// Parse a ternary conditional (`?:`) operator.\n\npp.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n  let startPos = this.start, startLoc = this.startLoc\n  let expr = this.parseExprOps(forInit, refDestructuringErrors)\n  if (this.checkExpressionErrors(refDestructuringErrors)) return expr\n  if (!(expr.type === \"ArrowFunctionExpression\" && expr.start === startPos) && this.eat(tt.question)) {\n    let node = this.startNodeAt(startPos, startLoc)\n    node.test = expr\n    node.consequent = this.parseMaybeAssign()\n    this.expect(tt.colon)\n    node.alternate = this.parseMaybeAssign(forInit)\n    return this.finishNode(node, \"ConditionalExpression\")\n  }\n  return expr\n}\n\n// Start the precedence parser.\n\npp.parseExprOps = function(forInit, refDestructuringErrors) {\n  let startPos = this.start, startLoc = this.startLoc\n  let expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit)\n  if (this.checkExpressionErrors(refDestructuringErrors)) return expr\n  return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit)\n}\n\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n\npp.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n  let prec = this.type.binop\n  if (prec != null && (!forInit || this.type !== tt._in)) {\n    if (prec > minPrec) {\n      let logical = this.type === tt.logicalOR || this.type === tt.logicalAND\n      let coalesce = this.type === tt.coalesce\n      if (coalesce) {\n        // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n        // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n        prec = tt.logicalAND.binop\n      }\n      let op = this.value\n      this.next()\n      let startPos = this.start, startLoc = this.startLoc\n      let right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit)\n      let node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce)\n      if ((logical && this.type === tt.coalesce) || (coalesce && (this.type === tt.logicalOR || this.type === tt.logicalAND))) {\n        this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\")\n      }\n      return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit)\n    }\n  }\n  return left\n}\n\npp.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n  if (right.type === \"PrivateIdentifier\") this.raise(right.start, \"Private identifier can only be left side of binary expression\")\n  let node = this.startNodeAt(startPos, startLoc)\n  node.left = left\n  node.operator = op\n  node.right = right\n  return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\")\n}\n\n// Parse unary operators, both prefix and postfix.\n\npp.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n  let startPos = this.start, startLoc = this.startLoc, expr\n  if (this.isContextual(\"await\") && this.canAwait) {\n    expr = this.parseAwait(forInit)\n    sawUnary = true\n  } else if (this.type.prefix) {\n    let node = this.startNode(), update = this.type === tt.incDec\n    node.operator = this.value\n    node.prefix = true\n    this.next()\n    node.argument = this.parseMaybeUnary(null, true, update, forInit)\n    this.checkExpressionErrors(refDestructuringErrors, true)\n    if (update) this.checkLValSimple(node.argument)\n    else if (this.strict && node.operator === \"delete\" && isLocalVariableAccess(node.argument))\n      this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\")\n    else if (node.operator === \"delete\" && isPrivateFieldAccess(node.argument))\n      this.raiseRecoverable(node.start, \"Private fields can not be deleted\")\n    else sawUnary = true\n    expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\")\n  } else if (!sawUnary && this.type === tt.privateId) {\n    if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) this.unexpected()\n    expr = this.parsePrivateIdent()\n    // only could be private fields in 'in', such as #x in obj\n    if (this.type !== tt._in) this.unexpected()\n  } else {\n    expr = this.parseExprSubscripts(refDestructuringErrors, forInit)\n    if (this.checkExpressionErrors(refDestructuringErrors)) return expr\n    while (this.type.postfix && !this.canInsertSemicolon()) {\n      let node = this.startNodeAt(startPos, startLoc)\n      node.operator = this.value\n      node.prefix = false\n      node.argument = expr\n      this.checkLValSimple(expr)\n      this.next()\n      expr = this.finishNode(node, \"UpdateExpression\")\n    }\n  }\n\n  if (!incDec && this.eat(tt.starstar)) {\n    if (sawUnary)\n      this.unexpected(this.lastTokStart)\n    else\n      return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false)\n  } else {\n    return expr\n  }\n}\n\nfunction isLocalVariableAccess(node) {\n  return (\n    node.type === \"Identifier\" ||\n    node.type === \"ParenthesizedExpression\" && isLocalVariableAccess(node.expression)\n  )\n}\n\nfunction isPrivateFieldAccess(node) {\n  return (\n    node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" ||\n    node.type === \"ChainExpression\" && isPrivateFieldAccess(node.expression) ||\n    node.type === \"ParenthesizedExpression\" && isPrivateFieldAccess(node.expression)\n  )\n}\n\n// Parse call, dot, and `[]`-subscript expressions.\n\npp.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n  let startPos = this.start, startLoc = this.startLoc\n  let expr = this.parseExprAtom(refDestructuringErrors, forInit)\n  if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\")\n    return expr\n  let result = this.parseSubscripts(expr, startPos, startLoc, false, forInit)\n  if (refDestructuringErrors && result.type === \"MemberExpression\") {\n    if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1\n    if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1\n    if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1\n  }\n  return result\n}\n\npp.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n  let maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" &&\n      this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&\n      this.potentialArrowAt === base.start\n  let optionalChained = false\n\n  while (true) {\n    let element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit)\n\n    if (element.optional) optionalChained = true\n    if (element === base || element.type === \"ArrowFunctionExpression\") {\n      if (optionalChained) {\n        const chainNode = this.startNodeAt(startPos, startLoc)\n        chainNode.expression = element\n        element = this.finishNode(chainNode, \"ChainExpression\")\n      }\n      return element\n    }\n\n    base = element\n  }\n}\n\npp.shouldParseAsyncArrow = function() {\n  return !this.canInsertSemicolon() && this.eat(tt.arrow)\n}\n\npp.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n  return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)\n}\n\npp.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n  let optionalSupported = this.options.ecmaVersion >= 11\n  let optional = optionalSupported && this.eat(tt.questionDot)\n  if (noCalls && optional) this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\")\n\n  let computed = this.eat(tt.bracketL)\n  if (computed || (optional && this.type !== tt.parenL && this.type !== tt.backQuote) || this.eat(tt.dot)) {\n    let node = this.startNodeAt(startPos, startLoc)\n    node.object = base\n    if (computed) {\n      node.property = this.parseExpression()\n      this.expect(tt.bracketR)\n    } else if (this.type === tt.privateId && base.type !== \"Super\") {\n      node.property = this.parsePrivateIdent()\n    } else {\n      node.property = this.parseIdent(this.options.allowReserved !== \"never\")\n    }\n    node.computed = !!computed\n    if (optionalSupported) {\n      node.optional = optional\n    }\n    base = this.finishNode(node, \"MemberExpression\")\n  } else if (!noCalls && this.eat(tt.parenL)) {\n    let refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos\n    this.yieldPos = 0\n    this.awaitPos = 0\n    this.awaitIdentPos = 0\n    let exprList = this.parseExprList(tt.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors)\n    if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n      this.checkPatternErrors(refDestructuringErrors, false)\n      this.checkYieldAwaitInDefaultParams()\n      if (this.awaitIdentPos > 0)\n        this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\")\n      this.yieldPos = oldYieldPos\n      this.awaitPos = oldAwaitPos\n      this.awaitIdentPos = oldAwaitIdentPos\n      return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit)\n    }\n    this.checkExpressionErrors(refDestructuringErrors, true)\n    this.yieldPos = oldYieldPos || this.yieldPos\n    this.awaitPos = oldAwaitPos || this.awaitPos\n    this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos\n    let node = this.startNodeAt(startPos, startLoc)\n    node.callee = base\n    node.arguments = exprList\n    if (optionalSupported) {\n      node.optional = optional\n    }\n    base = this.finishNode(node, \"CallExpression\")\n  } else if (this.type === tt.backQuote) {\n    if (optional || optionalChained) {\n      this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\")\n    }\n    let node = this.startNodeAt(startPos, startLoc)\n    node.tag = base\n    node.quasi = this.parseTemplate({isTagged: true})\n    base = this.finishNode(node, \"TaggedTemplateExpression\")\n  }\n  return base\n}\n\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n\npp.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n  // If a division operator appears in an expression position, the\n  // tokenizer got confused, and we force it to read a regexp instead.\n  if (this.type === tt.slash) this.readRegexp()\n\n  let node, canBeArrow = this.potentialArrowAt === this.start\n  switch (this.type) {\n  case tt._super:\n    if (!this.allowSuper)\n      this.raise(this.start, \"'super' keyword outside a method\")\n    node = this.startNode()\n    this.next()\n    if (this.type === tt.parenL && !this.allowDirectSuper)\n      this.raise(node.start, \"super() call outside constructor of a subclass\")\n    // The `super` keyword can appear at below:\n    // SuperProperty:\n    //     super [ Expression ]\n    //     super . IdentifierName\n    // SuperCall:\n    //     super ( Arguments )\n    if (this.type !== tt.dot && this.type !== tt.bracketL && this.type !== tt.parenL)\n      this.unexpected()\n    return this.finishNode(node, \"Super\")\n\n  case tt._this:\n    node = this.startNode()\n    this.next()\n    return this.finishNode(node, \"ThisExpression\")\n\n  case tt.name:\n    let startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc\n    let id = this.parseIdent(false)\n    if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat(tt._function)) {\n      this.overrideContext(tokenCtxTypes.f_expr)\n      return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit)\n    }\n    if (canBeArrow && !this.canInsertSemicolon()) {\n      if (this.eat(tt.arrow))\n        return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit)\n      if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === tt.name && !containsEsc &&\n          (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n        id = this.parseIdent(false)\n        if (this.canInsertSemicolon() || !this.eat(tt.arrow))\n          this.unexpected()\n        return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit)\n      }\n    }\n    return id\n\n  case tt.regexp:\n    let value = this.value\n    node = this.parseLiteral(value.value)\n    node.regex = {pattern: value.pattern, flags: value.flags}\n    return node\n\n  case tt.num: case tt.string:\n    return this.parseLiteral(this.value)\n\n  case tt._null: case tt._true: case tt._false:\n    node = this.startNode()\n    node.value = this.type === tt._null ? null : this.type === tt._true\n    node.raw = this.type.keyword\n    this.next()\n    return this.finishNode(node, \"Literal\")\n\n  case tt.parenL:\n    let start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit)\n    if (refDestructuringErrors) {\n      if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))\n        refDestructuringErrors.parenthesizedAssign = start\n      if (refDestructuringErrors.parenthesizedBind < 0)\n        refDestructuringErrors.parenthesizedBind = start\n    }\n    return expr\n\n  case tt.bracketL:\n    node = this.startNode()\n    this.next()\n    node.elements = this.parseExprList(tt.bracketR, true, true, refDestructuringErrors)\n    return this.finishNode(node, \"ArrayExpression\")\n\n  case tt.braceL:\n    this.overrideContext(tokenCtxTypes.b_expr)\n    return this.parseObj(false, refDestructuringErrors)\n\n  case tt._function:\n    node = this.startNode()\n    this.next()\n    return this.parseFunction(node, 0)\n\n  case tt._class:\n    return this.parseClass(this.startNode(), false)\n\n  case tt._new:\n    return this.parseNew()\n\n  case tt.backQuote:\n    return this.parseTemplate()\n\n  case tt._import:\n    if (this.options.ecmaVersion >= 11) {\n      return this.parseExprImport(forNew)\n    } else {\n      return this.unexpected()\n    }\n\n  default:\n    return this.parseExprAtomDefault()\n  }\n}\n\npp.parseExprAtomDefault = function() {\n  this.unexpected()\n}\n\npp.parseExprImport = function(forNew) {\n  const node = this.startNode()\n\n  // Consume `import` as an identifier for `import.meta`.\n  // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n  if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword import\")\n  this.next()\n\n  if (this.type === tt.parenL && !forNew) {\n    return this.parseDynamicImport(node)\n  } else if (this.type === tt.dot) {\n    let meta = this.startNodeAt(node.start, node.loc && node.loc.start)\n    meta.name = \"import\"\n    node.meta = this.finishNode(meta, \"Identifier\")\n    return this.parseImportMeta(node)\n  } else {\n    this.unexpected()\n  }\n}\n\npp.parseDynamicImport = function(node) {\n  this.next() // skip `(`\n\n  // Parse node.source.\n  node.source = this.parseMaybeAssign()\n\n  if (this.options.ecmaVersion >= 16) {\n    if (!this.eat(tt.parenR)) {\n      this.expect(tt.comma)\n      if (!this.afterTrailingComma(tt.parenR)) {\n        node.options = this.parseMaybeAssign()\n        if (!this.eat(tt.parenR)) {\n          this.expect(tt.comma)\n          if (!this.afterTrailingComma(tt.parenR)) {\n            this.unexpected()\n          }\n        }\n      } else {\n        node.options = null\n      }\n    } else {\n      node.options = null\n    }\n  } else {\n    // Verify ending.\n    if (!this.eat(tt.parenR)) {\n      const errorPos = this.start\n      if (this.eat(tt.comma) && this.eat(tt.parenR)) {\n        this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\")\n      } else {\n        this.unexpected(errorPos)\n      }\n    }\n  }\n\n  return this.finishNode(node, \"ImportExpression\")\n}\n\npp.parseImportMeta = function(node) {\n  this.next() // skip `.`\n\n  const containsEsc = this.containsEsc\n  node.property = this.parseIdent(true)\n\n  if (node.property.name !== \"meta\")\n    this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\")\n  if (containsEsc)\n    this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\")\n  if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere)\n    this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\")\n\n  return this.finishNode(node, \"MetaProperty\")\n}\n\npp.parseLiteral = function(value) {\n  let node = this.startNode()\n  node.value = value\n  node.raw = this.input.slice(this.start, this.end)\n  if (node.raw.charCodeAt(node.raw.length - 1) === 110)\n    node.bigint = node.value != null ? node.value.toString() : node.raw.slice(0, -1).replace(/_/g, \"\")\n  this.next()\n  return this.finishNode(node, \"Literal\")\n}\n\npp.parseParenExpression = function() {\n  this.expect(tt.parenL)\n  let val = this.parseExpression()\n  this.expect(tt.parenR)\n  return val\n}\n\npp.shouldParseArrow = function(exprList) {\n  return !this.canInsertSemicolon()\n}\n\npp.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n  let startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8\n  if (this.options.ecmaVersion >= 6) {\n    this.next()\n\n    let innerStartPos = this.start, innerStartLoc = this.startLoc\n    let exprList = [], first = true, lastIsComma = false\n    let refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart\n    this.yieldPos = 0\n    this.awaitPos = 0\n    // Do not save awaitIdentPos to allow checking awaits nested in parameters\n    while (this.type !== tt.parenR) {\n      first ? first = false : this.expect(tt.comma)\n      if (allowTrailingComma && this.afterTrailingComma(tt.parenR, true)) {\n        lastIsComma = true\n        break\n      } else if (this.type === tt.ellipsis) {\n        spreadStart = this.start\n        exprList.push(this.parseParenItem(this.parseRestBinding()))\n        if (this.type === tt.comma) {\n          this.raiseRecoverable(\n            this.start,\n            \"Comma is not permitted after the rest element\"\n          )\n        }\n        break\n      } else {\n        exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem))\n      }\n    }\n    let innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc\n    this.expect(tt.parenR)\n\n    if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(tt.arrow)) {\n      this.checkPatternErrors(refDestructuringErrors, false)\n      this.checkYieldAwaitInDefaultParams()\n      this.yieldPos = oldYieldPos\n      this.awaitPos = oldAwaitPos\n      return this.parseParenArrowList(startPos, startLoc, exprList, forInit)\n    }\n\n    if (!exprList.length || lastIsComma) this.unexpected(this.lastTokStart)\n    if (spreadStart) this.unexpected(spreadStart)\n    this.checkExpressionErrors(refDestructuringErrors, true)\n    this.yieldPos = oldYieldPos || this.yieldPos\n    this.awaitPos = oldAwaitPos || this.awaitPos\n\n    if (exprList.length > 1) {\n      val = this.startNodeAt(innerStartPos, innerStartLoc)\n      val.expressions = exprList\n      this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc)\n    } else {\n      val = exprList[0]\n    }\n  } else {\n    val = this.parseParenExpression()\n  }\n\n  if (this.options.preserveParens) {\n    let par = this.startNodeAt(startPos, startLoc)\n    par.expression = val\n    return this.finishNode(par, \"ParenthesizedExpression\")\n  } else {\n    return val\n  }\n}\n\npp.parseParenItem = function(item) {\n  return item\n}\n\npp.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n  return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit)\n}\n\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\n\nconst empty = []\n\npp.parseNew = function() {\n  if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword new\")\n  let node = this.startNode()\n  this.next()\n  if (this.options.ecmaVersion >= 6 && this.type === tt.dot) {\n    let meta = this.startNodeAt(node.start, node.loc && node.loc.start)\n    meta.name = \"new\"\n    node.meta = this.finishNode(meta, \"Identifier\")\n    this.next()\n    let containsEsc = this.containsEsc\n    node.property = this.parseIdent(true)\n    if (node.property.name !== \"target\")\n      this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\")\n    if (containsEsc)\n      this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\")\n    if (!this.allowNewDotTarget)\n      this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\")\n    return this.finishNode(node, \"MetaProperty\")\n  }\n  let startPos = this.start, startLoc = this.startLoc\n  node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false)\n  if (node.callee.type === \"Super\")\n    this.raiseRecoverable(startPos, \"Invalid use of 'super'\")\n  if (this.eat(tt.parenL)) node.arguments = this.parseExprList(tt.parenR, this.options.ecmaVersion >= 8, false)\n  else node.arguments = empty\n  return this.finishNode(node, \"NewExpression\")\n}\n\n// Parse template expression.\n\npp.parseTemplateElement = function({isTagged}) {\n  let elem = this.startNode()\n  if (this.type === tt.invalidTemplate) {\n    if (!isTagged) {\n      this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\")\n    }\n    elem.value = {\n      raw: this.value.replace(/\\r\\n?/g, \"\\n\"),\n      cooked: null\n    }\n  } else {\n    elem.value = {\n      raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n      cooked: this.value\n    }\n  }\n  this.next()\n  elem.tail = this.type === tt.backQuote\n  return this.finishNode(elem, \"TemplateElement\")\n}\n\npp.parseTemplate = function({isTagged = false} = {}) {\n  let node = this.startNode()\n  this.next()\n  node.expressions = []\n  let curElt = this.parseTemplateElement({isTagged})\n  node.quasis = [curElt]\n  while (!curElt.tail) {\n    if (this.type === tt.eof) this.raise(this.pos, \"Unterminated template literal\")\n    this.expect(tt.dollarBraceL)\n    node.expressions.push(this.parseExpression())\n    this.expect(tt.braceR)\n    node.quasis.push(curElt = this.parseTemplateElement({isTagged}))\n  }\n  this.next()\n  return this.finishNode(node, \"TemplateLiteral\")\n}\n\npp.isAsyncProp = function(prop) {\n  return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" &&\n    (this.type === tt.name || this.type === tt.num || this.type === tt.string || this.type === tt.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === tt.star)) &&\n    !lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n}\n\n// Parse an object literal or binding pattern.\n\npp.parseObj = function(isPattern, refDestructuringErrors) {\n  let node = this.startNode(), first = true, propHash = {}\n  node.properties = []\n  this.next()\n  while (!this.eat(tt.braceR)) {\n    if (!first) {\n      this.expect(tt.comma)\n      if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(tt.braceR)) break\n    } else first = false\n\n    const prop = this.parseProperty(isPattern, refDestructuringErrors)\n    if (!isPattern) this.checkPropClash(prop, propHash, refDestructuringErrors)\n    node.properties.push(prop)\n  }\n  return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\")\n}\n\npp.parseProperty = function(isPattern, refDestructuringErrors) {\n  let prop = this.startNode(), isGenerator, isAsync, startPos, startLoc\n  if (this.options.ecmaVersion >= 9 && this.eat(tt.ellipsis)) {\n    if (isPattern) {\n      prop.argument = this.parseIdent(false)\n      if (this.type === tt.comma) {\n        this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\")\n      }\n      return this.finishNode(prop, \"RestElement\")\n    }\n    // Parse argument.\n    prop.argument = this.parseMaybeAssign(false, refDestructuringErrors)\n    // To disallow trailing comma via `this.toAssignable()`.\n    if (this.type === tt.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) {\n      refDestructuringErrors.trailingComma = this.start\n    }\n    // Finish\n    return this.finishNode(prop, \"SpreadElement\")\n  }\n  if (this.options.ecmaVersion >= 6) {\n    prop.method = false\n    prop.shorthand = false\n    if (isPattern || refDestructuringErrors) {\n      startPos = this.start\n      startLoc = this.startLoc\n    }\n    if (!isPattern)\n      isGenerator = this.eat(tt.star)\n  }\n  let containsEsc = this.containsEsc\n  this.parsePropertyName(prop)\n  if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n    isAsync = true\n    isGenerator = this.options.ecmaVersion >= 9 && this.eat(tt.star)\n    this.parsePropertyName(prop)\n  } else {\n    isAsync = false\n  }\n  this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc)\n  return this.finishNode(prop, \"Property\")\n}\n\npp.parseGetterSetter = function(prop) {\n  const kind = prop.key.name\n  this.parsePropertyName(prop)\n  prop.value = this.parseMethod(false)\n  prop.kind = kind\n  let paramCount = prop.kind === \"get\" ? 0 : 1\n  if (prop.value.params.length !== paramCount) {\n    let start = prop.value.start\n    if (prop.kind === \"get\")\n      this.raiseRecoverable(start, \"getter should have no params\")\n    else\n      this.raiseRecoverable(start, \"setter should have exactly one param\")\n  } else {\n    if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\")\n      this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\")\n  }\n}\n\npp.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n  if ((isGenerator || isAsync) && this.type === tt.colon)\n    this.unexpected()\n\n  if (this.eat(tt.colon)) {\n    prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors)\n    prop.kind = \"init\"\n  } else if (this.options.ecmaVersion >= 6 && this.type === tt.parenL) {\n    if (isPattern) this.unexpected()\n    prop.method = true\n    prop.value = this.parseMethod(isGenerator, isAsync)\n    prop.kind = \"init\"\n  } else if (!isPattern && !containsEsc &&\n             this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" &&\n             (prop.key.name === \"get\" || prop.key.name === \"set\") &&\n             (this.type !== tt.comma && this.type !== tt.braceR && this.type !== tt.eq)) {\n    if (isGenerator || isAsync) this.unexpected()\n    this.parseGetterSetter(prop)\n  } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n    if (isGenerator || isAsync) this.unexpected()\n    this.checkUnreserved(prop.key)\n    if (prop.key.name === \"await\" && !this.awaitIdentPos)\n      this.awaitIdentPos = startPos\n    if (isPattern) {\n      prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key))\n    } else if (this.type === tt.eq && refDestructuringErrors) {\n      if (refDestructuringErrors.shorthandAssign < 0)\n        refDestructuringErrors.shorthandAssign = this.start\n      prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key))\n    } else {\n      prop.value = this.copyNode(prop.key)\n    }\n    prop.kind = \"init\"\n    prop.shorthand = true\n  } else this.unexpected()\n}\n\npp.parsePropertyName = function(prop) {\n  if (this.options.ecmaVersion >= 6) {\n    if (this.eat(tt.bracketL)) {\n      prop.computed = true\n      prop.key = this.parseMaybeAssign()\n      this.expect(tt.bracketR)\n      return prop.key\n    } else {\n      prop.computed = false\n    }\n  }\n  return prop.key = this.type === tt.num || this.type === tt.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\")\n}\n\n// Initialize empty function node.\n\npp.initFunction = function(node) {\n  node.id = null\n  if (this.options.ecmaVersion >= 6) node.generator = node.expression = false\n  if (this.options.ecmaVersion >= 8) node.async = false\n}\n\n// Parse object or class method.\n\npp.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n  let node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos\n\n  this.initFunction(node)\n  if (this.options.ecmaVersion >= 6)\n    node.generator = isGenerator\n  if (this.options.ecmaVersion >= 8)\n    node.async = !!isAsync\n\n  this.yieldPos = 0\n  this.awaitPos = 0\n  this.awaitIdentPos = 0\n  this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0))\n\n  this.expect(tt.parenL)\n  node.params = this.parseBindingList(tt.parenR, false, this.options.ecmaVersion >= 8)\n  this.checkYieldAwaitInDefaultParams()\n  this.parseFunctionBody(node, false, true, false)\n\n  this.yieldPos = oldYieldPos\n  this.awaitPos = oldAwaitPos\n  this.awaitIdentPos = oldAwaitIdentPos\n  return this.finishNode(node, \"FunctionExpression\")\n}\n\n// Parse arrow function expression with given parameters.\n\npp.parseArrowExpression = function(node, params, isAsync, forInit) {\n  let oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos\n\n  this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW)\n  this.initFunction(node)\n  if (this.options.ecmaVersion >= 8) node.async = !!isAsync\n\n  this.yieldPos = 0\n  this.awaitPos = 0\n  this.awaitIdentPos = 0\n\n  node.params = this.toAssignableList(params, true)\n  this.parseFunctionBody(node, true, false, forInit)\n\n  this.yieldPos = oldYieldPos\n  this.awaitPos = oldAwaitPos\n  this.awaitIdentPos = oldAwaitIdentPos\n  return this.finishNode(node, \"ArrowFunctionExpression\")\n}\n\n// Parse function body and check parameters.\n\npp.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n  let isExpression = isArrowFunction && this.type !== tt.braceL\n  let oldStrict = this.strict, useStrict = false\n\n  if (isExpression) {\n    node.body = this.parseMaybeAssign(forInit)\n    node.expression = true\n    this.checkParams(node, false)\n  } else {\n    let nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params)\n    if (!oldStrict || nonSimple) {\n      useStrict = this.strictDirective(this.end)\n      // If this is a strict mode function, verify that argument names\n      // are not repeated, and it does not try to bind the words `eval`\n      // or `arguments`.\n      if (useStrict && nonSimple)\n        this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\")\n    }\n    // Start a new scope with regard to labels and the `inFunction`\n    // flag (restore them to their old value afterwards).\n    let oldLabels = this.labels\n    this.labels = []\n    if (useStrict) this.strict = true\n\n    // Add the params to varDeclaredNames to ensure that an error is thrown\n    // if a let/const declaration in the function clashes with one of the params.\n    this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params))\n    // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n    if (this.strict && node.id) this.checkLValSimple(node.id, BIND_OUTSIDE)\n    node.body = this.parseBlock(false, undefined, useStrict && !oldStrict)\n    node.expression = false\n    this.adaptDirectivePrologue(node.body.body)\n    this.labels = oldLabels\n  }\n  this.exitScope()\n}\n\npp.isSimpleParamList = function(params) {\n  for (let param of params)\n    if (param.type !== \"Identifier\") return false\n  return true\n}\n\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n\npp.checkParams = function(node, allowDuplicates) {\n  let nameHash = Object.create(null)\n  for (let param of node.params)\n    this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash)\n}\n\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n\npp.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n  let elts = [], first = true\n  while (!this.eat(close)) {\n    if (!first) {\n      this.expect(tt.comma)\n      if (allowTrailingComma && this.afterTrailingComma(close)) break\n    } else first = false\n\n    let elt\n    if (allowEmpty && this.type === tt.comma)\n      elt = null\n    else if (this.type === tt.ellipsis) {\n      elt = this.parseSpread(refDestructuringErrors)\n      if (refDestructuringErrors && this.type === tt.comma && refDestructuringErrors.trailingComma < 0)\n        refDestructuringErrors.trailingComma = this.start\n    } else {\n      elt = this.parseMaybeAssign(false, refDestructuringErrors)\n    }\n    elts.push(elt)\n  }\n  return elts\n}\n\npp.checkUnreserved = function({start, end, name}) {\n  if (this.inGenerator && name === \"yield\")\n    this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\")\n  if (this.inAsync && name === \"await\")\n    this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\")\n  if (!(this.currentThisScope().flags & SCOPE_VAR) && name === \"arguments\")\n    this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\")\n  if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\"))\n    this.raise(start, `Cannot use ${name} in class static initialization block`)\n  if (this.keywords.test(name))\n    this.raise(start, `Unexpected keyword '${name}'`)\n  if (this.options.ecmaVersion < 6 &&\n    this.input.slice(start, end).indexOf(\"\\\\\") !== -1) return\n  const re = this.strict ? this.reservedWordsStrict : this.reservedWords\n  if (re.test(name)) {\n    if (!this.inAsync && name === \"await\")\n      this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\")\n    this.raiseRecoverable(start, `The keyword '${name}' is reserved`)\n  }\n}\n\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n\npp.parseIdent = function(liberal) {\n  let node = this.parseIdentNode()\n  this.next(!!liberal)\n  this.finishNode(node, \"Identifier\")\n  if (!liberal) {\n    this.checkUnreserved(node)\n    if (node.name === \"await\" && !this.awaitIdentPos)\n      this.awaitIdentPos = node.start\n  }\n  return node\n}\n\npp.parseIdentNode = function() {\n  let node = this.startNode()\n  if (this.type === tt.name) {\n    node.name = this.value\n  } else if (this.type.keyword) {\n    node.name = this.type.keyword\n\n    // To fix https://github.com/acornjs/acorn/issues/575\n    // `class` and `function` keywords push new context into this.context.\n    // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n    // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n    if ((node.name === \"class\" || node.name === \"function\") &&\n      (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {\n      this.context.pop()\n    }\n    this.type = tt.name\n  } else {\n    this.unexpected()\n  }\n  return node\n}\n\npp.parsePrivateIdent = function() {\n  const node = this.startNode()\n  if (this.type === tt.privateId) {\n    node.name = this.value\n  } else {\n    this.unexpected()\n  }\n  this.next()\n  this.finishNode(node, \"PrivateIdentifier\")\n\n  // For validating existence\n  if (this.options.checkPrivateFields) {\n    if (this.privateNameStack.length === 0) {\n      this.raise(node.start, `Private field '#${node.name}' must be declared in an enclosing class`)\n    } else {\n      this.privateNameStack[this.privateNameStack.length - 1].used.push(node)\n    }\n  }\n\n  return node\n}\n\n// Parses yield expression inside generator.\n\npp.parseYield = function(forInit) {\n  if (!this.yieldPos) this.yieldPos = this.start\n\n  let node = this.startNode()\n  this.next()\n  if (this.type === tt.semi || this.canInsertSemicolon() || (this.type !== tt.star && !this.type.startsExpr)) {\n    node.delegate = false\n    node.argument = null\n  } else {\n    node.delegate = this.eat(tt.star)\n    node.argument = this.parseMaybeAssign(forInit)\n  }\n  return this.finishNode(node, \"YieldExpression\")\n}\n\npp.parseAwait = function(forInit) {\n  if (!this.awaitPos) this.awaitPos = this.start\n\n  let node = this.startNode()\n  this.next()\n  node.argument = this.parseMaybeUnary(null, true, false, forInit)\n  return this.finishNode(node, \"AwaitExpression\")\n}\n"
  },
  {
    "path": "acorn/src/generated/astralIdentifierCodes.js",
    "content": "// This file was generated. Do not modify manually!\nexport default [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]\n"
  },
  {
    "path": "acorn/src/generated/astralIdentifierStartCodes.js",
    "content": "// This file was generated. Do not modify manually!\nexport default [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489]\n"
  },
  {
    "path": "acorn/src/generated/nonASCIIidentifierChars.js",
    "content": "// This file was generated. Do not modify manually!\nexport default \"\\u200c\\u200d\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u0897-\\u089f\\u08ca-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1add\\u1ae0-\\u1aeb\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f\\uff65\"\n"
  },
  {
    "path": "acorn/src/generated/nonASCIIidentifierStartChars.js",
    "content": "// This file was generated. Do not modify manually!\nexport default \"\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u0870-\\u0887\\u0889-\\u088f\\u08a0-\\u08c9\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c5c\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdc-\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u1711\\u171f-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4c\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c8a\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7dc\\ua7f1-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc\"\n"
  },
  {
    "path": "acorn/src/generated/scriptValuesAddedInUnicode.js",
    "content": "// This file was generated by \"bin/generate-unicode-script-values.js\". Do not modify manually!\nexport default \"Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz\"\n"
  },
  {
    "path": "acorn/src/identifier.js",
    "content": "// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\nimport astralIdentifierCodes from \"./generated/astralIdentifierCodes.js\"\nimport astralIdentifierStartCodes from \"./generated/astralIdentifierStartCodes.js\"\n// Big ugly regular expressions that match characters in the\n// whitespace, identifier, and identifier-start categories. These\n// are only applied when a character is found to actually have a\n// code point above 128.\nimport nonASCIIidentifierChars from \"./generated/nonASCIIidentifierChars.js\"\nimport nonASCIIidentifierStartChars from \"./generated/nonASCIIidentifierStartChars.js\"\n\n// Reserved word lists for various dialects of the language\n\nexport const reservedWords = {\n  3: \"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile\",\n  5: \"class enum extends super const export import\",\n  6: \"enum\",\n  strict: \"implements interface let package private protected public static yield\",\n  strictBind: \"eval arguments\"\n}\n\n// And the keywords\n\nconst ecma5AndLessKeywords = \"break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this\"\n\nexport const keywords = {\n  5: ecma5AndLessKeywords,\n  \"5module\": ecma5AndLessKeywords + \" export import\",\n  6: ecma5AndLessKeywords + \" const class extends export import super\"\n}\n\nexport const keywordRelationalOperator = /^in(stanceof)?$/\n\n// ## Character categories\n\nconst nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\")\nconst nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\")\n\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction isInAstralSet(code, set) {\n  let pos = 0x10000\n  for (let i = 0; i < set.length; i += 2) {\n    pos += set[i]\n    if (pos > code) return false\n    pos += set[i + 1]\n    if (pos >= code) return true\n  }\n  return false\n}\n\n// Test whether a given character code starts an identifier.\n\nexport function isIdentifierStart(code, astral) {\n  if (code < 65) return code === 36\n  if (code < 91) return true\n  if (code < 97) return code === 95\n  if (code < 123) return true\n  if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code))\n  if (astral === false) return false\n  return isInAstralSet(code, astralIdentifierStartCodes)\n}\n\n// Test whether a given character is part of an identifier.\n\nexport function isIdentifierChar(code, astral) {\n  if (code < 48) return code === 36\n  if (code < 58) return true\n  if (code < 65) return false\n  if (code < 91) return true\n  if (code < 97) return code === 95\n  if (code < 123) return true\n  if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code))\n  if (astral === false) return false\n  return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)\n}\n"
  },
  {
    "path": "acorn/src/index.js",
    "content": "// Acorn is a tiny, fast JavaScript parser written in JavaScript.\n//\n// Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and\n// various contributors and released under an MIT license.\n//\n// Git repositories for Acorn are available at\n//\n//     http://marijnhaverbeke.nl/git/acorn\n//     https://github.com/acornjs/acorn.git\n//\n// Please use the [github bug tracker][ghbt] to report issues.\n//\n// [ghbt]: https://github.com/acornjs/acorn/issues\n\nimport {Parser} from \"./state.js\"\nimport \"./parseutil.js\"\nimport \"./statement.js\"\nimport \"./lval.js\"\nimport \"./expression.js\"\nimport \"./location.js\"\nimport \"./scope.js\"\n\nimport {defaultOptions} from \"./options.js\"\nimport {Position, SourceLocation, getLineInfo} from \"./locutil.js\"\nimport {Node} from \"./node.js\"\nimport {TokenType, types as tokTypes, keywords as keywordTypes} from \"./tokentype.js\"\nimport {TokContext, types as tokContexts} from \"./tokencontext.js\"\nimport {isIdentifierChar, isIdentifierStart} from \"./identifier.js\"\nimport {Token} from \"./tokenize.js\"\nimport {isNewLine, lineBreak, lineBreakG, nonASCIIwhitespace} from \"./whitespace.js\"\n\nexport const version = \"8.16.0\"\nexport {\n  Parser,\n  defaultOptions,\n  Position,\n  SourceLocation,\n  getLineInfo,\n  Node,\n  TokenType,\n  tokTypes,\n  keywordTypes,\n  TokContext,\n  tokContexts,\n  isIdentifierChar,\n  isIdentifierStart,\n  Token,\n  isNewLine,\n  lineBreak,\n  lineBreakG,\n  nonASCIIwhitespace\n}\n\nParser.acorn = {\n  Parser,\n  version,\n  defaultOptions,\n  Position,\n  SourceLocation,\n  getLineInfo,\n  Node,\n  TokenType,\n  tokTypes,\n  keywordTypes,\n  TokContext,\n  tokContexts,\n  isIdentifierChar,\n  isIdentifierStart,\n  Token,\n  isNewLine,\n  lineBreak,\n  lineBreakG,\n  nonASCIIwhitespace\n}\n\n// The main exported interface (under `self.acorn` when in the\n// browser) is a `parse` function that takes a code string and returns\n// an abstract syntax tree as specified by the [ESTree spec][estree].\n//\n// [estree]: https://github.com/estree/estree\n\nexport function parse(input, options) {\n  return Parser.parse(input, options)\n}\n\n// This function tries to parse a single expression at a given\n// offset in a string. Useful for parsing mixed-language formats\n// that embed JavaScript expressions.\n\nexport function parseExpressionAt(input, pos, options) {\n  return Parser.parseExpressionAt(input, pos, options)\n}\n\n// Acorn is organized as a tokenizer and a recursive-descent parser.\n// The `tokenizer` export provides an interface to the tokenizer.\n\nexport function tokenizer(input, options) {\n  return Parser.tokenizer(input, options)\n}\n"
  },
  {
    "path": "acorn/src/location.js",
    "content": "import {Parser} from \"./state.js\"\nimport {Position, getLineInfo} from \"./locutil.js\"\n\nconst pp = Parser.prototype\n\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n\npp.raise = function(pos, message) {\n  let loc = getLineInfo(this.input, pos)\n  message += \" (\" + loc.line + \":\" + loc.column + \")\"\n  if (this.sourceFile) {\n    message += \" in \" + this.sourceFile\n  }\n  let err = new SyntaxError(message)\n  err.pos = pos; err.loc = loc; err.raisedAt = this.pos\n  throw err\n}\n\npp.raiseRecoverable = pp.raise\n\npp.curPosition = function() {\n  if (this.options.locations) {\n    return new Position(this.curLine, this.pos - this.lineStart)\n  }\n}\n"
  },
  {
    "path": "acorn/src/locutil.js",
    "content": "import {nextLineBreak} from \"./whitespace.js\"\n\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\n\nexport class Position {\n  constructor(line, col) {\n    this.line = line\n    this.column = col\n  }\n\n  offset(n) {\n    return new Position(this.line, this.column + n)\n  }\n}\n\nexport class SourceLocation {\n  constructor(p, start, end) {\n    this.start = start\n    this.end = end\n    if (p.sourceFile !== null) this.source = p.sourceFile\n  }\n}\n\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\n\nexport function getLineInfo(input, offset) {\n  for (let line = 1, cur = 0;;) {\n    let nextBreak = nextLineBreak(input, cur, offset)\n    if (nextBreak < 0) return new Position(line, offset - cur)\n    ++line\n    cur = nextBreak\n  }\n}\n"
  },
  {
    "path": "acorn/src/lval.js",
    "content": "import {types as tt} from \"./tokentype.js\"\nimport {Parser} from \"./state.js\"\nimport {hasOwn} from \"./util.js\"\nimport {BIND_NONE, BIND_OUTSIDE, BIND_LEXICAL} from \"./scopeflags.js\"\n\nconst pp = Parser.prototype\n\n// Convert existing expression atom to assignable pattern\n// if possible.\n\npp.toAssignable = function(node, isBinding, refDestructuringErrors) {\n  if (this.options.ecmaVersion >= 6 && node) {\n    switch (node.type) {\n    case \"Identifier\":\n      if (this.inAsync && node.name === \"await\")\n        this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\")\n      break\n\n    case \"ObjectPattern\":\n    case \"ArrayPattern\":\n    case \"AssignmentPattern\":\n    case \"RestElement\":\n      break\n\n    case \"ObjectExpression\":\n      node.type = \"ObjectPattern\"\n      if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true)\n      for (let prop of node.properties) {\n        this.toAssignable(prop, isBinding)\n        // Early error:\n        //   AssignmentRestProperty[Yield, Await] :\n        //     `...` DestructuringAssignmentTarget[Yield, Await]\n        //\n        //   It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n        if (\n          prop.type === \"RestElement\" &&\n          (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")\n        ) {\n          this.raise(prop.argument.start, \"Unexpected token\")\n        }\n      }\n      break\n\n    case \"Property\":\n      // AssignmentProperty has type === \"Property\"\n      if (node.kind !== \"init\") this.raise(node.key.start, \"Object pattern can't contain getter or setter\")\n      this.toAssignable(node.value, isBinding)\n      break\n\n    case \"ArrayExpression\":\n      node.type = \"ArrayPattern\"\n      if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true)\n      this.toAssignableList(node.elements, isBinding)\n      break\n\n    case \"SpreadElement\":\n      node.type = \"RestElement\"\n      this.toAssignable(node.argument, isBinding)\n      if (node.argument.type === \"AssignmentPattern\")\n        this.raise(node.argument.start, \"Rest elements cannot have a default value\")\n      break\n\n    case \"AssignmentExpression\":\n      if (node.operator !== \"=\") this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\")\n      node.type = \"AssignmentPattern\"\n      delete node.operator\n      this.toAssignable(node.left, isBinding)\n      break\n\n    case \"ParenthesizedExpression\":\n      this.toAssignable(node.expression, isBinding, refDestructuringErrors)\n      break\n\n    case \"ChainExpression\":\n      this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\")\n      break\n\n    case \"MemberExpression\":\n      if (!isBinding) break\n\n    default:\n      this.raise(node.start, \"Assigning to rvalue\")\n    }\n  } else if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true)\n  return node\n}\n\n// Convert list of expression atoms to binding list.\n\npp.toAssignableList = function(exprList, isBinding) {\n  let end = exprList.length\n  for (let i = 0; i < end; i++) {\n    let elt = exprList[i]\n    if (elt) this.toAssignable(elt, isBinding)\n  }\n  if (end) {\n    let last = exprList[end - 1]\n    if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\")\n      this.unexpected(last.argument.start)\n  }\n  return exprList\n}\n\n// Parses spread element.\n\npp.parseSpread = function(refDestructuringErrors) {\n  let node = this.startNode()\n  this.next()\n  node.argument = this.parseMaybeAssign(false, refDestructuringErrors)\n  return this.finishNode(node, \"SpreadElement\")\n}\n\npp.parseRestBinding = function() {\n  let node = this.startNode()\n  this.next()\n\n  // RestElement inside of a function parameter must be an identifier\n  if (this.options.ecmaVersion === 6 && this.type !== tt.name)\n    this.unexpected()\n\n  node.argument = this.parseBindingAtom()\n\n  return this.finishNode(node, \"RestElement\")\n}\n\n// Parses lvalue (assignable) atom.\n\npp.parseBindingAtom = function() {\n  if (this.options.ecmaVersion >= 6) {\n    switch (this.type) {\n    case tt.bracketL:\n      let node = this.startNode()\n      this.next()\n      node.elements = this.parseBindingList(tt.bracketR, true, true)\n      return this.finishNode(node, \"ArrayPattern\")\n\n    case tt.braceL:\n      return this.parseObj(true)\n    }\n  }\n  return this.parseIdent()\n}\n\npp.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n  let elts = [], first = true\n  while (!this.eat(close)) {\n    if (first) first = false\n    else this.expect(tt.comma)\n    if (allowEmpty && this.type === tt.comma) {\n      elts.push(null)\n    } else if (allowTrailingComma && this.afterTrailingComma(close)) {\n      break\n    } else if (this.type === tt.ellipsis) {\n      let rest = this.parseRestBinding()\n      this.parseBindingListItem(rest)\n      elts.push(rest)\n      if (this.type === tt.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\")\n      this.expect(close)\n      break\n    } else {\n      elts.push(this.parseAssignableListItem(allowModifiers))\n    }\n  }\n  return elts\n}\n\npp.parseAssignableListItem = function(allowModifiers) {\n  let elem = this.parseMaybeDefault(this.start, this.startLoc)\n  this.parseBindingListItem(elem)\n  return elem\n}\n\npp.parseBindingListItem = function(param) {\n  return param\n}\n\n// Parses assignment pattern around given atom if possible.\n\npp.parseMaybeDefault = function(startPos, startLoc, left) {\n  left = left || this.parseBindingAtom()\n  if (this.options.ecmaVersion < 6 || !this.eat(tt.eq)) return left\n  let node = this.startNodeAt(startPos, startLoc)\n  node.left = left\n  node.right = this.parseMaybeAssign()\n  return this.finishNode(node, \"AssignmentPattern\")\n}\n\n// The following three functions all verify that a node is an lvalue —\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n//   nothing other than identifiers and member expressions. Parenthesized\n//   expressions are also correctly handled. This is generally appropriate for\n//   constructs for which the spec says\n//\n//   > It is a Syntax Error if AssignmentTargetType of [the production] is not\n//   > simple.\n//\n//   It is also appropriate for checking if an identifier is valid and not\n//   defined elsewhere, like import declarations or function/class identifiers.\n//\n//   Examples where this is used include:\n//     a += …;\n//     import a from '…';\n//   where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n//   anything checkLValSimple() supports, as well as object and array\n//   destructuring patterns. This is generally appropriate for constructs for\n//   which the spec says\n//\n//   > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n//   > an ArrayLiteral and AssignmentTargetType of [the production] is not\n//   > simple.\n//\n//   Examples where this is used include:\n//     (a = …);\n//     const a = …;\n//     try { … } catch (a) { … }\n//   where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n//   anything checkLValPattern() supports, as well as default assignment\n//   patterns, rest elements, and other constructs that may appear within an\n//   object or array destructuring pattern.\n//\n//   As a special case, function parameters also use checkLValInnerPattern(),\n//   as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n\npp.checkLValSimple = function(expr, bindingType = BIND_NONE, checkClashes) {\n  const isBind = bindingType !== BIND_NONE\n\n  switch (expr.type) {\n  case \"Identifier\":\n    if (this.strict && this.reservedWordsStrictBind.test(expr.name))\n      this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\")\n    if (isBind) {\n      if (bindingType === BIND_LEXICAL && expr.name === \"let\")\n        this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\")\n      if (checkClashes) {\n        if (hasOwn(checkClashes, expr.name))\n          this.raiseRecoverable(expr.start, \"Argument name clash\")\n        checkClashes[expr.name] = true\n      }\n      if (bindingType !== BIND_OUTSIDE) this.declareName(expr.name, bindingType, expr.start)\n    }\n    break\n\n  case \"ChainExpression\":\n    this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\")\n    break\n\n  case \"MemberExpression\":\n    if (isBind) this.raiseRecoverable(expr.start, \"Binding member expression\")\n    break\n\n  case \"ParenthesizedExpression\":\n    if (isBind) this.raiseRecoverable(expr.start, \"Binding parenthesized expression\")\n    return this.checkLValSimple(expr.expression, bindingType, checkClashes)\n\n  default:\n    this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\")\n  }\n}\n\npp.checkLValPattern = function(expr, bindingType = BIND_NONE, checkClashes) {\n  switch (expr.type) {\n  case \"ObjectPattern\":\n    for (let prop of expr.properties) {\n      this.checkLValInnerPattern(prop, bindingType, checkClashes)\n    }\n    break\n\n  case \"ArrayPattern\":\n    for (let elem of expr.elements) {\n      if (elem) this.checkLValInnerPattern(elem, bindingType, checkClashes)\n    }\n    break\n\n  default:\n    this.checkLValSimple(expr, bindingType, checkClashes)\n  }\n}\n\npp.checkLValInnerPattern = function(expr, bindingType = BIND_NONE, checkClashes) {\n  switch (expr.type) {\n  case \"Property\":\n    // AssignmentProperty has type === \"Property\"\n    this.checkLValInnerPattern(expr.value, bindingType, checkClashes)\n    break\n\n  case \"AssignmentPattern\":\n    this.checkLValPattern(expr.left, bindingType, checkClashes)\n    break\n\n  case \"RestElement\":\n    this.checkLValPattern(expr.argument, bindingType, checkClashes)\n    break\n\n  default:\n    this.checkLValPattern(expr, bindingType, checkClashes)\n  }\n}\n"
  },
  {
    "path": "acorn/src/node.js",
    "content": "import {Parser} from \"./state.js\"\nimport {SourceLocation} from \"./locutil.js\"\n\nexport class Node {\n  constructor(parser, pos, loc) {\n    this.type = \"\"\n    this.start = pos\n    this.end = 0\n    if (parser.options.locations)\n      this.loc = new SourceLocation(parser, loc)\n    if (parser.options.directSourceFile)\n      this.sourceFile = parser.options.directSourceFile\n    if (parser.options.ranges)\n      this.range = [pos, 0]\n  }\n}\n\n// Start an AST node, attaching a start offset.\n\nconst pp = Parser.prototype\n\npp.startNode = function() {\n  return new Node(this, this.start, this.startLoc)\n}\n\npp.startNodeAt = function(pos, loc) {\n  return new Node(this, pos, loc)\n}\n\n// Finish an AST node, adding `type` and `end` properties.\n\nfunction finishNodeAt(node, type, pos, loc) {\n  node.type = type\n  node.end = pos\n  if (this.options.locations)\n    node.loc.end = loc\n  if (this.options.ranges)\n    node.range[1] = pos\n  return node\n}\n\npp.finishNode = function(node, type) {\n  return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc)\n}\n\n// Finish node at given position\n\npp.finishNodeAt = function(node, type, pos, loc) {\n  return finishNodeAt.call(this, node, type, pos, loc)\n}\n\npp.copyNode = function(node) {\n  let newNode = new Node(this, node.start, this.startLoc)\n  for (let prop in node) newNode[prop] = node[prop]\n  return newNode\n}\n"
  },
  {
    "path": "acorn/src/options.js",
    "content": "import {hasOwn, isArray} from \"./util.js\"\nimport {SourceLocation} from \"./locutil.js\"\n\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\n\nexport const defaultOptions = {\n  // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n  // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n  // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n  // (the latest version the library supports). This influences\n  // support for strict mode, the set of reserved words, and support\n  // for new syntax features.\n  ecmaVersion: null,\n  // `sourceType` indicates the mode the code should be parsed in.\n  // Can be either `\"script\"`, `\"module\"` or `\"commonjs\"`. This influences global\n  // strict mode and parsing of `import` and `export` declarations.\n  sourceType: \"script\",\n  // `onInsertedSemicolon` can be a callback that will be called when\n  // a semicolon is automatically inserted. It will be passed the\n  // position of the inserted semicolon as an offset, and if\n  // `locations` is enabled, it is given the location as a `{line,\n  // column}` object as second argument.\n  onInsertedSemicolon: null,\n  // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n  // trailing commas.\n  onTrailingComma: null,\n  // By default, reserved words are only enforced if ecmaVersion >= 5.\n  // Set `allowReserved` to a boolean value to explicitly turn this on\n  // an off. When this option has the value \"never\", reserved words\n  // and keywords can also not be used as property names.\n  allowReserved: null,\n  // When enabled, a return at the top level is not considered an\n  // error.\n  allowReturnOutsideFunction: false,\n  // When enabled, import/export statements are not constrained to\n  // appearing at the top of the program, and an import.meta expression\n  // in a script isn't considered an error.\n  allowImportExportEverywhere: false,\n  // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n  // When enabled, await identifiers are allowed to appear at the top-level scope,\n  // but they are still not allowed in non-async functions.\n  allowAwaitOutsideFunction: null,\n  // When enabled, super identifiers are not constrained to\n  // appearing in methods and do not raise an error when they appear elsewhere.\n  allowSuperOutsideMethod: null,\n  // When enabled, hashbang directive in the beginning of file is\n  // allowed and treated as a line comment. Enabled by default when\n  // `ecmaVersion` >= 2023.\n  allowHashBang: false,\n  // By default, the parser will verify that private properties are\n  // only used in places where they are valid and have been declared.\n  // Set this to false to turn such checks off.\n  checkPrivateFields: true,\n  // When `locations` is on, `loc` properties holding objects with\n  // `start` and `end` properties in `{line, column}` form (with\n  // line being 1-based and column 0-based) will be attached to the\n  // nodes.\n  locations: false,\n  // A function can be passed as `onToken` option, which will\n  // cause Acorn to call that function with object in the same\n  // format as tokens returned from `tokenizer().getToken()`. Note\n  // that you are not allowed to call the parser from the\n  // callback—that will corrupt its internal state.\n  onToken: null,\n  // A function can be passed as `onComment` option, which will\n  // cause Acorn to call that function with `(block, text, start,\n  // end)` parameters whenever a comment is skipped. `block` is a\n  // boolean indicating whether this is a block (`/* */`) comment,\n  // `text` is the content of the comment, and `start` and `end` are\n  // character offsets that denote the start and end of the comment.\n  // When the `locations` option is on, two more parameters are\n  // passed, the full `{line, column}` locations of the start and\n  // end of the comments. Note that you are not allowed to call the\n  // parser from the callback—that will corrupt its internal state.\n  // When this option has an array as value, objects representing the\n  // comments are pushed to it.\n  onComment: null,\n  // Nodes have their start and end characters offsets recorded in\n  // `start` and `end` properties (directly on the node, rather than\n  // the `loc` object, which holds line/column data. To also add a\n  // [semi-standardized][range] `range` property holding a `[start,\n  // end]` array with the same numbers, set the `ranges` option to\n  // `true`.\n  //\n  // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n  ranges: false,\n  // It is possible to parse multiple files into a single AST by\n  // passing the tree produced by parsing the first file as\n  // `program` option in subsequent parses. This will add the\n  // toplevel forms of the parsed file to the `Program` (top) node\n  // of an existing parse tree.\n  program: null,\n  // When `locations` is on, you can pass this to record the source\n  // file in every node's `loc` object.\n  sourceFile: null,\n  // This value, if given, is stored in every node, whether\n  // `locations` is on or off.\n  directSourceFile: null,\n  // When enabled, parenthesized expressions are represented by\n  // (non-standard) ParenthesizedExpression nodes\n  preserveParens: false\n}\n\n// Interpret and default an options object\n\nlet warnedAboutEcmaVersion = false\n\nexport function getOptions(opts) {\n  let options = {}\n\n  for (let opt in defaultOptions)\n    options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]\n\n  if (options.ecmaVersion === \"latest\") {\n    options.ecmaVersion = 1e8\n  } else if (options.ecmaVersion == null) {\n    if (!warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n      warnedAboutEcmaVersion = true\n      console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\")\n    }\n    options.ecmaVersion = 11\n  } else if (options.ecmaVersion >= 2015) {\n    options.ecmaVersion -= 2009\n  }\n\n  if (options.allowReserved == null)\n    options.allowReserved = options.ecmaVersion < 5\n\n  if (!opts || opts.allowHashBang == null)\n    options.allowHashBang = options.ecmaVersion >= 14\n\n  if (isArray(options.onToken)) {\n    let tokens = options.onToken\n    options.onToken = (token) => tokens.push(token)\n  }\n  if (isArray(options.onComment))\n    options.onComment = pushComment(options, options.onComment)\n\n  if (options.sourceType === \"commonjs\" && options.allowAwaitOutsideFunction)\n    throw new Error(\"Cannot use allowAwaitOutsideFunction with sourceType: commonjs\")\n\n  return options\n}\n\nfunction pushComment(options, array) {\n  return function(block, text, start, end, startLoc, endLoc) {\n    let comment = {\n      type: block ? \"Block\" : \"Line\",\n      value: text,\n      start: start,\n      end: end\n    }\n    if (options.locations)\n      comment.loc = new SourceLocation(this, startLoc, endLoc)\n    if (options.ranges)\n      comment.range = [start, end]\n    array.push(comment)\n  }\n}\n"
  },
  {
    "path": "acorn/src/package.json",
    "content": "{\n  \"type\": \"module\"\n}\n"
  },
  {
    "path": "acorn/src/parseutil.js",
    "content": "import {types as tt} from \"./tokentype.js\"\nimport {Parser} from \"./state.js\"\nimport {lineBreak, skipWhiteSpace} from \"./whitespace.js\"\n\nconst pp = Parser.prototype\n\n// ## Parser utilities\n\nconst literal = /^(?:'((?:\\\\[^]|[^'\\\\])*?)'|\"((?:\\\\[^]|[^\"\\\\])*?)\")/\npp.strictDirective = function(start) {\n  if (this.options.ecmaVersion < 5) return false\n  for (;;) {\n    // Try to find string literal.\n    skipWhiteSpace.lastIndex = start\n    start += skipWhiteSpace.exec(this.input)[0].length\n    let match = literal.exec(this.input.slice(start))\n    if (!match) return false\n    if ((match[1] || match[2]) === \"use strict\") {\n      skipWhiteSpace.lastIndex = start + match[0].length\n      let spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length\n      let next = this.input.charAt(end)\n      return next === \";\" || next === \"}\" ||\n        (lineBreak.test(spaceAfter[0]) &&\n         !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\"))\n    }\n    start += match[0].length\n\n    // Skip semicolon, if any.\n    skipWhiteSpace.lastIndex = start\n    start += skipWhiteSpace.exec(this.input)[0].length\n    if (this.input[start] === \";\")\n      start++\n  }\n}\n\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n\npp.eat = function(type) {\n  if (this.type === type) {\n    this.next()\n    return true\n  } else {\n    return false\n  }\n}\n\n// Tests whether parsed token is a contextual keyword.\n\npp.isContextual = function(name) {\n  return this.type === tt.name && this.value === name && !this.containsEsc\n}\n\n// Consumes contextual keyword if possible.\n\npp.eatContextual = function(name) {\n  if (!this.isContextual(name)) return false\n  this.next()\n  return true\n}\n\n// Asserts that following token is given contextual keyword.\n\npp.expectContextual = function(name) {\n  if (!this.eatContextual(name)) this.unexpected()\n}\n\n// Test whether a semicolon can be inserted at the current position.\n\npp.canInsertSemicolon = function() {\n  return this.type === tt.eof ||\n    this.type === tt.braceR ||\n    lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n}\n\npp.insertSemicolon = function() {\n  if (this.canInsertSemicolon()) {\n    if (this.options.onInsertedSemicolon)\n      this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc)\n    return true\n  }\n}\n\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n\npp.semicolon = function() {\n  if (!this.eat(tt.semi) && !this.insertSemicolon()) this.unexpected()\n}\n\npp.afterTrailingComma = function(tokType, notNext) {\n  if (this.type === tokType) {\n    if (this.options.onTrailingComma)\n      this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc)\n    if (!notNext)\n      this.next()\n    return true\n  }\n}\n\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n\npp.expect = function(type) {\n  this.eat(type) || this.unexpected()\n}\n\n// Raise an unexpected token error.\n\npp.unexpected = function(pos) {\n  this.raise(pos != null ? pos : this.start, \"Unexpected token\")\n}\n\nexport class DestructuringErrors {\n  constructor() {\n    this.shorthandAssign =\n    this.trailingComma =\n    this.parenthesizedAssign =\n    this.parenthesizedBind =\n    this.doubleProto =\n      -1\n  }\n}\n\npp.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n  if (!refDestructuringErrors) return\n  if (refDestructuringErrors.trailingComma > -1)\n    this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\")\n  let parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind\n  if (parens > -1) this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\")\n}\n\npp.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n  if (!refDestructuringErrors) return false\n  let {shorthandAssign, doubleProto} = refDestructuringErrors\n  if (!andThrow) return shorthandAssign >= 0 || doubleProto >= 0\n  if (shorthandAssign >= 0)\n    this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\")\n  if (doubleProto >= 0)\n    this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\")\n}\n\npp.checkYieldAwaitInDefaultParams = function() {\n  if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))\n    this.raise(this.yieldPos, \"Yield expression cannot be a default value\")\n  if (this.awaitPos)\n    this.raise(this.awaitPos, \"Await expression cannot be a default value\")\n}\n\npp.isSimpleAssignTarget = function(expr) {\n  if (expr.type === \"ParenthesizedExpression\")\n    return this.isSimpleAssignTarget(expr.expression)\n  return expr.type === \"Identifier\" || expr.type === \"MemberExpression\"\n}\n"
  },
  {
    "path": "acorn/src/regexp.js",
    "content": "import {isIdentifierStart, isIdentifierChar} from \"./identifier.js\"\nimport {Parser} from \"./state.js\"\nimport UNICODE_PROPERTY_VALUES from \"./unicode-property-data.js\"\nimport {hasOwn, codePointToString} from \"./util.js\"\n\nconst pp = Parser.prototype\n\n// Track disjunction structure to determine whether a duplicate\n// capture group name is allowed because it is in a separate branch.\nclass BranchID {\n  constructor(parent, base) {\n    // Parent disjunction branch\n    this.parent = parent\n    // Identifies this set of sibling branches\n    this.base = base || this\n  }\n\n  separatedFrom(alt) {\n    // A branch is separate from another branch if they or any of\n    // their parents are siblings in a given disjunction\n    for (let self = this; self; self = self.parent) {\n      for (let other = alt; other; other = other.parent) {\n        if (self.base === other.base && self !== other) return true\n      }\n    }\n    return false\n  }\n\n  sibling() {\n    return new BranchID(this.parent, this.base)\n  }\n}\n\nexport class RegExpValidationState {\n  constructor(parser) {\n    this.parser = parser\n    this.validFlags = `gim${parser.options.ecmaVersion >= 6 ? \"uy\" : \"\"}${parser.options.ecmaVersion >= 9 ? \"s\" : \"\"}${parser.options.ecmaVersion >= 13 ? \"d\" : \"\"}${parser.options.ecmaVersion >= 15 ? \"v\" : \"\"}`\n    this.unicodeProperties = UNICODE_PROPERTY_VALUES[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion]\n    this.source = \"\"\n    this.flags = \"\"\n    this.start = 0\n    this.switchU = false\n    this.switchV = false\n    this.switchN = false\n    this.pos = 0\n    this.lastIntValue = 0\n    this.lastStringValue = \"\"\n    this.lastAssertionIsQuantifiable = false\n    this.numCapturingParens = 0\n    this.maxBackReference = 0\n    this.groupNames = Object.create(null)\n    this.backReferenceNames = []\n    this.branchID = null\n  }\n\n  reset(start, pattern, flags) {\n    const unicodeSets = flags.indexOf(\"v\") !== -1\n    const unicode = flags.indexOf(\"u\") !== -1\n    this.start = start | 0\n    this.source = pattern + \"\"\n    this.flags = flags\n    if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n      this.switchU = true\n      this.switchV = true\n      this.switchN = true\n    } else {\n      this.switchU = unicode && this.parser.options.ecmaVersion >= 6\n      this.switchV = false\n      this.switchN = unicode && this.parser.options.ecmaVersion >= 9\n    }\n  }\n\n  raise(message) {\n    this.parser.raiseRecoverable(this.start, `Invalid regular expression: /${this.source}/: ${message}`)\n  }\n\n  // If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n  // Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\n  at(i, forceU = false) {\n    const s = this.source\n    const l = s.length\n    if (i >= l) {\n      return -1\n    }\n    const c = s.charCodeAt(i)\n    if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {\n      return c\n    }\n    const next = s.charCodeAt(i + 1)\n    return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c\n  }\n\n  nextIndex(i, forceU = false) {\n    const s = this.source\n    const l = s.length\n    if (i >= l) {\n      return l\n    }\n    let c = s.charCodeAt(i), next\n    if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||\n        (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {\n      return i + 1\n    }\n    return i + 2\n  }\n\n  current(forceU = false) {\n    return this.at(this.pos, forceU)\n  }\n\n  lookahead(forceU = false) {\n    return this.at(this.nextIndex(this.pos, forceU), forceU)\n  }\n\n  advance(forceU = false) {\n    this.pos = this.nextIndex(this.pos, forceU)\n  }\n\n  eat(ch, forceU = false) {\n    if (this.current(forceU) === ch) {\n      this.advance(forceU)\n      return true\n    }\n    return false\n  }\n\n  eatChars(chs, forceU = false) {\n    let pos = this.pos\n    for (const ch of chs) {\n      const current = this.at(pos, forceU)\n      if (current === -1 || current !== ch) {\n        return false\n      }\n      pos = this.nextIndex(pos, forceU)\n    }\n    this.pos = pos\n    return true\n  }\n}\n\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp.validateRegExpFlags = function(state) {\n  const validFlags = state.validFlags\n  const flags = state.flags\n\n  let u = false\n  let v = false\n\n  for (let i = 0; i < flags.length; i++) {\n    const flag = flags.charAt(i)\n    if (validFlags.indexOf(flag) === -1) {\n      this.raise(state.start, \"Invalid regular expression flag\")\n    }\n    if (flags.indexOf(flag, i + 1) > -1) {\n      this.raise(state.start, \"Duplicate regular expression flag\")\n    }\n    if (flag === \"u\") u = true\n    if (flag === \"v\") v = true\n  }\n  if (this.options.ecmaVersion >= 15 && u && v) {\n    this.raise(state.start, \"Invalid regular expression flag\")\n  }\n}\n\nfunction hasProp(obj) {\n  for (let _ in obj) return true\n  return false\n}\n\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp.validateRegExpPattern = function(state) {\n  this.regexp_pattern(state)\n\n  // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n  // parsing contains a |GroupName|, reparse with the goal symbol\n  // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n  // exception if _P_ did not conform to the grammar, if any elements of _P_\n  // were not matched by the parse, or if any Early Error conditions exist.\n  if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {\n    state.switchN = true\n    this.regexp_pattern(state)\n  }\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\npp.regexp_pattern = function(state) {\n  state.pos = 0\n  state.lastIntValue = 0\n  state.lastStringValue = \"\"\n  state.lastAssertionIsQuantifiable = false\n  state.numCapturingParens = 0\n  state.maxBackReference = 0\n  state.groupNames = Object.create(null)\n  state.backReferenceNames.length = 0\n  state.branchID = null\n\n  this.regexp_disjunction(state)\n\n  if (state.pos !== state.source.length) {\n    // Make the same messages as V8.\n    if (state.eat(0x29 /* ) */)) {\n      state.raise(\"Unmatched ')'\")\n    }\n    if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) {\n      state.raise(\"Lone quantifier brackets\")\n    }\n  }\n  if (state.maxBackReference > state.numCapturingParens) {\n    state.raise(\"Invalid escape\")\n  }\n  for (const name of state.backReferenceNames) {\n    if (!state.groupNames[name]) {\n      state.raise(\"Invalid named capture referenced\")\n    }\n  }\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\npp.regexp_disjunction = function(state) {\n  let trackDisjunction = this.options.ecmaVersion >= 16\n  if (trackDisjunction) state.branchID = new BranchID(state.branchID, null)\n  this.regexp_alternative(state)\n  while (state.eat(0x7C /* | */)) {\n    if (trackDisjunction) state.branchID = state.branchID.sibling()\n    this.regexp_alternative(state)\n  }\n  if (trackDisjunction) state.branchID = state.branchID.parent\n\n  // Make the same message as V8.\n  if (this.regexp_eatQuantifier(state, true)) {\n    state.raise(\"Nothing to repeat\")\n  }\n  if (state.eat(0x7B /* { */)) {\n    state.raise(\"Lone quantifier brackets\")\n  }\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\npp.regexp_alternative = function(state) {\n  while (state.pos < state.source.length && this.regexp_eatTerm(state)) {}\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\npp.regexp_eatTerm = function(state) {\n  if (this.regexp_eatAssertion(state)) {\n    // Handle `QuantifiableAssertion Quantifier` alternative.\n    // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n    // is a QuantifiableAssertion.\n    if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) {\n      // Make the same message as V8.\n      if (state.switchU) {\n        state.raise(\"Invalid quantifier\")\n      }\n    }\n    return true\n  }\n\n  if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n    this.regexp_eatQuantifier(state)\n    return true\n  }\n\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\npp.regexp_eatAssertion = function(state) {\n  const start = state.pos\n  state.lastAssertionIsQuantifiable = false\n\n  // ^, $\n  if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {\n    return true\n  }\n\n  // \\b \\B\n  if (state.eat(0x5C /* \\ */)) {\n    if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {\n      return true\n    }\n    state.pos = start\n  }\n\n  // Lookahead / Lookbehind\n  if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {\n    let lookbehind = false\n    if (this.options.ecmaVersion >= 9) {\n      lookbehind = state.eat(0x3C /* < */)\n    }\n    if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) {\n      this.regexp_disjunction(state)\n      if (!state.eat(0x29 /* ) */)) {\n        state.raise(\"Unterminated group\")\n      }\n      state.lastAssertionIsQuantifiable = !lookbehind\n      return true\n    }\n  }\n\n  state.pos = start\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\npp.regexp_eatQuantifier = function(state, noError = false) {\n  if (this.regexp_eatQuantifierPrefix(state, noError)) {\n    state.eat(0x3F /* ? */)\n    return true\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\npp.regexp_eatQuantifierPrefix = function(state, noError) {\n  return (\n    state.eat(0x2A /* * */) ||\n    state.eat(0x2B /* + */) ||\n    state.eat(0x3F /* ? */) ||\n    this.regexp_eatBracedQuantifier(state, noError)\n  )\n}\npp.regexp_eatBracedQuantifier = function(state, noError) {\n  const start = state.pos\n  if (state.eat(0x7B /* { */)) {\n    let min = 0, max = -1\n    if (this.regexp_eatDecimalDigits(state)) {\n      min = state.lastIntValue\n      if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) {\n        max = state.lastIntValue\n      }\n      if (state.eat(0x7D /* } */)) {\n        // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n        if (max !== -1 && max < min && !noError) {\n          state.raise(\"numbers out of order in {} quantifier\")\n        }\n        return true\n      }\n    }\n    if (state.switchU && !noError) {\n      state.raise(\"Incomplete quantifier\")\n    }\n    state.pos = start\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\npp.regexp_eatAtom = function(state) {\n  return (\n    this.regexp_eatPatternCharacters(state) ||\n    state.eat(0x2E /* . */) ||\n    this.regexp_eatReverseSolidusAtomEscape(state) ||\n    this.regexp_eatCharacterClass(state) ||\n    this.regexp_eatUncapturingGroup(state) ||\n    this.regexp_eatCapturingGroup(state)\n  )\n}\npp.regexp_eatReverseSolidusAtomEscape = function(state) {\n  const start = state.pos\n  if (state.eat(0x5C /* \\ */)) {\n    if (this.regexp_eatAtomEscape(state)) {\n      return true\n    }\n    state.pos = start\n  }\n  return false\n}\npp.regexp_eatUncapturingGroup = function(state) {\n  const start = state.pos\n  if (state.eat(0x28 /* ( */)) {\n    if (state.eat(0x3F /* ? */)) {\n      if (this.options.ecmaVersion >= 16) {\n        const addModifiers = this.regexp_eatModifiers(state)\n        const hasHyphen = state.eat(0x2D /* - */)\n        if (addModifiers || hasHyphen) {\n          for (let i = 0; i < addModifiers.length; i++) {\n            const modifier = addModifiers.charAt(i)\n            if (addModifiers.indexOf(modifier, i + 1) > -1) {\n              state.raise(\"Duplicate regular expression modifiers\")\n            }\n          }\n          if (hasHyphen) {\n            const removeModifiers = this.regexp_eatModifiers(state)\n            if (!addModifiers && !removeModifiers && state.current() === 0x3A /* : */) {\n              state.raise(\"Invalid regular expression modifiers\")\n            }\n            for (let i = 0; i < removeModifiers.length; i++) {\n              const modifier = removeModifiers.charAt(i)\n              if (\n                removeModifiers.indexOf(modifier, i + 1) > -1 ||\n                addModifiers.indexOf(modifier) > -1\n              ) {\n                state.raise(\"Duplicate regular expression modifiers\")\n              }\n            }\n          }\n        }\n      }\n      if (state.eat(0x3A /* : */)) {\n        this.regexp_disjunction(state)\n        if (state.eat(0x29 /* ) */)) {\n          return true\n        }\n        state.raise(\"Unterminated group\")\n      }\n    }\n    state.pos = start\n  }\n  return false\n}\npp.regexp_eatCapturingGroup = function(state) {\n  if (state.eat(0x28 /* ( */)) {\n    if (this.options.ecmaVersion >= 9) {\n      this.regexp_groupSpecifier(state)\n    } else if (state.current() === 0x3F /* ? */) {\n      state.raise(\"Invalid group\")\n    }\n    this.regexp_disjunction(state)\n    if (state.eat(0x29 /* ) */)) {\n      state.numCapturingParens += 1\n      return true\n    }\n    state.raise(\"Unterminated group\")\n  }\n  return false\n}\n// RegularExpressionModifiers ::\n//   [empty]\n//   RegularExpressionModifiers RegularExpressionModifier\npp.regexp_eatModifiers = function(state) {\n  let modifiers = \"\"\n  let ch = 0\n  while ((ch = state.current()) !== -1 && isRegularExpressionModifier(ch)) {\n    modifiers += codePointToString(ch)\n    state.advance()\n  }\n  return modifiers\n}\n// RegularExpressionModifier :: one of\n//   `i` `m` `s`\nfunction isRegularExpressionModifier(ch) {\n  return ch === 0x69 /* i */ || ch === 0x6d /* m */ || ch === 0x73 /* s */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\npp.regexp_eatExtendedAtom = function(state) {\n  return (\n    state.eat(0x2E /* . */) ||\n    this.regexp_eatReverseSolidusAtomEscape(state) ||\n    this.regexp_eatCharacterClass(state) ||\n    this.regexp_eatUncapturingGroup(state) ||\n    this.regexp_eatCapturingGroup(state) ||\n    this.regexp_eatInvalidBracedQuantifier(state) ||\n    this.regexp_eatExtendedPatternCharacter(state)\n  )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\npp.regexp_eatInvalidBracedQuantifier = function(state) {\n  if (this.regexp_eatBracedQuantifier(state, true)) {\n    state.raise(\"Nothing to repeat\")\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\npp.regexp_eatSyntaxCharacter = function(state) {\n  const ch = state.current()\n  if (isSyntaxCharacter(ch)) {\n    state.lastIntValue = ch\n    state.advance()\n    return true\n  }\n  return false\n}\nfunction isSyntaxCharacter(ch) {\n  return (\n    ch === 0x24 /* $ */ ||\n    ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ||\n    ch === 0x2E /* . */ ||\n    ch === 0x3F /* ? */ ||\n    ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ ||\n    ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n  )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\npp.regexp_eatPatternCharacters = function(state) {\n  const start = state.pos\n  let ch = 0\n  while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) {\n    state.advance()\n  }\n  return state.pos !== start\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\npp.regexp_eatExtendedPatternCharacter = function(state) {\n  const ch = state.current()\n  if (\n    ch !== -1 &&\n    ch !== 0x24 /* $ */ &&\n    !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&\n    ch !== 0x2E /* . */ &&\n    ch !== 0x3F /* ? */ &&\n    ch !== 0x5B /* [ */ &&\n    ch !== 0x5E /* ^ */ &&\n    ch !== 0x7C /* | */\n  ) {\n    state.advance()\n    return true\n  }\n  return false\n}\n\n// GroupSpecifier ::\n//   [empty]\n//   `?` GroupName\npp.regexp_groupSpecifier = function(state) {\n  if (state.eat(0x3F /* ? */)) {\n    if (!this.regexp_eatGroupName(state)) state.raise(\"Invalid group\")\n    let trackDisjunction = this.options.ecmaVersion >= 16\n    let known = state.groupNames[state.lastStringValue]\n    if (known) {\n      if (trackDisjunction) {\n        for (let altID of known) {\n          if (!altID.separatedFrom(state.branchID))\n            state.raise(\"Duplicate capture group name\")\n        }\n      } else {\n        state.raise(\"Duplicate capture group name\")\n      }\n    }\n    if (trackDisjunction) {\n      (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID)\n    } else {\n      state.groupNames[state.lastStringValue] = true\n    }\n  }\n}\n\n// GroupName ::\n//   `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp.regexp_eatGroupName = function(state) {\n  state.lastStringValue = \"\"\n  if (state.eat(0x3C /* < */)) {\n    if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) {\n      return true\n    }\n    state.raise(\"Invalid capture group name\")\n  }\n  return false\n}\n\n// RegExpIdentifierName ::\n//   RegExpIdentifierStart\n//   RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp.regexp_eatRegExpIdentifierName = function(state) {\n  state.lastStringValue = \"\"\n  if (this.regexp_eatRegExpIdentifierStart(state)) {\n    state.lastStringValue += codePointToString(state.lastIntValue)\n    while (this.regexp_eatRegExpIdentifierPart(state)) {\n      state.lastStringValue += codePointToString(state.lastIntValue)\n    }\n    return true\n  }\n  return false\n}\n\n// RegExpIdentifierStart ::\n//   UnicodeIDStart\n//   `$`\n//   `_`\n//   `\\` RegExpUnicodeEscapeSequence[+U]\npp.regexp_eatRegExpIdentifierStart = function(state) {\n  const start = state.pos\n  const forceU = this.options.ecmaVersion >= 11\n  let ch = state.current(forceU)\n  state.advance(forceU)\n\n  if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n    ch = state.lastIntValue\n  }\n  if (isRegExpIdentifierStart(ch)) {\n    state.lastIntValue = ch\n    return true\n  }\n\n  state.pos = start\n  return false\n}\nfunction isRegExpIdentifierStart(ch) {\n  return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */\n}\n\n// RegExpIdentifierPart ::\n//   UnicodeIDContinue\n//   `$`\n//   `_`\n//   `\\` RegExpUnicodeEscapeSequence[+U]\n//   <ZWNJ>\n//   <ZWJ>\npp.regexp_eatRegExpIdentifierPart = function(state) {\n  const start = state.pos\n  const forceU = this.options.ecmaVersion >= 11\n  let ch = state.current(forceU)\n  state.advance(forceU)\n\n  if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n    ch = state.lastIntValue\n  }\n  if (isRegExpIdentifierPart(ch)) {\n    state.lastIntValue = ch\n    return true\n  }\n\n  state.pos = start\n  return false\n}\nfunction isRegExpIdentifierPart(ch) {\n  return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* <ZWNJ> */ || ch === 0x200D /* <ZWJ> */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\npp.regexp_eatAtomEscape = function(state) {\n  if (\n    this.regexp_eatBackReference(state) ||\n    this.regexp_eatCharacterClassEscape(state) ||\n    this.regexp_eatCharacterEscape(state) ||\n    (state.switchN && this.regexp_eatKGroupName(state))\n  ) {\n    return true\n  }\n  if (state.switchU) {\n    // Make the same message as V8.\n    if (state.current() === 0x63 /* c */) {\n      state.raise(\"Invalid unicode escape\")\n    }\n    state.raise(\"Invalid escape\")\n  }\n  return false\n}\npp.regexp_eatBackReference = function(state) {\n  const start = state.pos\n  if (this.regexp_eatDecimalEscape(state)) {\n    const n = state.lastIntValue\n    if (state.switchU) {\n      // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n      if (n > state.maxBackReference) {\n        state.maxBackReference = n\n      }\n      return true\n    }\n    if (n <= state.numCapturingParens) {\n      return true\n    }\n    state.pos = start\n  }\n  return false\n}\npp.regexp_eatKGroupName = function(state) {\n  if (state.eat(0x6B /* k */)) {\n    if (this.regexp_eatGroupName(state)) {\n      state.backReferenceNames.push(state.lastStringValue)\n      return true\n    }\n    state.raise(\"Invalid named reference\")\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\npp.regexp_eatCharacterEscape = function(state) {\n  return (\n    this.regexp_eatControlEscape(state) ||\n    this.regexp_eatCControlLetter(state) ||\n    this.regexp_eatZero(state) ||\n    this.regexp_eatHexEscapeSequence(state) ||\n    this.regexp_eatRegExpUnicodeEscapeSequence(state, false) ||\n    (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) ||\n    this.regexp_eatIdentityEscape(state)\n  )\n}\npp.regexp_eatCControlLetter = function(state) {\n  const start = state.pos\n  if (state.eat(0x63 /* c */)) {\n    if (this.regexp_eatControlLetter(state)) {\n      return true\n    }\n    state.pos = start\n  }\n  return false\n}\npp.regexp_eatZero = function(state) {\n  if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) {\n    state.lastIntValue = 0\n    state.advance()\n    return true\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\npp.regexp_eatControlEscape = function(state) {\n  const ch = state.current()\n  if (ch === 0x74 /* t */) {\n    state.lastIntValue = 0x09 /* \\t */\n    state.advance()\n    return true\n  }\n  if (ch === 0x6E /* n */) {\n    state.lastIntValue = 0x0A /* \\n */\n    state.advance()\n    return true\n  }\n  if (ch === 0x76 /* v */) {\n    state.lastIntValue = 0x0B /* \\v */\n    state.advance()\n    return true\n  }\n  if (ch === 0x66 /* f */) {\n    state.lastIntValue = 0x0C /* \\f */\n    state.advance()\n    return true\n  }\n  if (ch === 0x72 /* r */) {\n    state.lastIntValue = 0x0D /* \\r */\n    state.advance()\n    return true\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\npp.regexp_eatControlLetter = function(state) {\n  const ch = state.current()\n  if (isControlLetter(ch)) {\n    state.lastIntValue = ch % 0x20\n    state.advance()\n    return true\n  }\n  return false\n}\nfunction isControlLetter(ch) {\n  return (\n    (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) ||\n    (ch >= 0x61 /* a */ && ch <= 0x7A /* z */)\n  )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\npp.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU = false) {\n  const start = state.pos\n  const switchU = forceU || state.switchU\n\n  if (state.eat(0x75 /* u */)) {\n    if (this.regexp_eatFixedHexDigits(state, 4)) {\n      const lead = state.lastIntValue\n      if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n        const leadSurrogateEnd = state.pos\n        if (state.eat(0x5C /* \\ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) {\n          const trail = state.lastIntValue\n          if (trail >= 0xDC00 && trail <= 0xDFFF) {\n            state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000\n            return true\n          }\n        }\n        state.pos = leadSurrogateEnd\n        state.lastIntValue = lead\n      }\n      return true\n    }\n    if (\n      switchU &&\n      state.eat(0x7B /* { */) &&\n      this.regexp_eatHexDigits(state) &&\n      state.eat(0x7D /* } */) &&\n      isValidUnicode(state.lastIntValue)\n    ) {\n      return true\n    }\n    if (switchU) {\n      state.raise(\"Invalid unicode escape\")\n    }\n    state.pos = start\n  }\n\n  return false\n}\nfunction isValidUnicode(ch) {\n  return ch >= 0 && ch <= 0x10FFFF\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\npp.regexp_eatIdentityEscape = function(state) {\n  if (state.switchU) {\n    if (this.regexp_eatSyntaxCharacter(state)) {\n      return true\n    }\n    if (state.eat(0x2F /* / */)) {\n      state.lastIntValue = 0x2F /* / */\n      return true\n    }\n    return false\n  }\n\n  const ch = state.current()\n  if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {\n    state.lastIntValue = ch\n    state.advance()\n    return true\n  }\n\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\npp.regexp_eatDecimalEscape = function(state) {\n  state.lastIntValue = 0\n  let ch = state.current()\n  if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) {\n    do {\n      state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */)\n      state.advance()\n    } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */)\n    return true\n  }\n  return false\n}\n\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nconst CharSetNone = 0 // Nothing parsed\nconst CharSetOk = 1 // Construct parsed, cannot contain strings\nconst CharSetString = 2 // Construct parsed, can contain strings\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\npp.regexp_eatCharacterClassEscape = function(state) {\n  const ch = state.current()\n\n  if (isCharacterClassEscape(ch)) {\n    state.lastIntValue = -1\n    state.advance()\n    return CharSetOk\n  }\n\n  let negate = false\n  if (\n    state.switchU &&\n    this.options.ecmaVersion >= 9 &&\n    ((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */)\n  ) {\n    state.lastIntValue = -1\n    state.advance()\n    let result\n    if (\n      state.eat(0x7B /* { */) &&\n      (result = this.regexp_eatUnicodePropertyValueExpression(state)) &&\n      state.eat(0x7D /* } */)\n    ) {\n      if (negate && result === CharSetString) state.raise(\"Invalid property name\")\n      return result\n    }\n    state.raise(\"Invalid property name\")\n  }\n\n  return CharSetNone\n}\n\nfunction isCharacterClassEscape(ch) {\n  return (\n    ch === 0x64 /* d */ ||\n    ch === 0x44 /* D */ ||\n    ch === 0x73 /* s */ ||\n    ch === 0x53 /* S */ ||\n    ch === 0x77 /* w */ ||\n    ch === 0x57 /* W */\n  )\n}\n\n// UnicodePropertyValueExpression ::\n//   UnicodePropertyName `=` UnicodePropertyValue\n//   LoneUnicodePropertyNameOrValue\npp.regexp_eatUnicodePropertyValueExpression = function(state) {\n  const start = state.pos\n\n  // UnicodePropertyName `=` UnicodePropertyValue\n  if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {\n    const name = state.lastStringValue\n    if (this.regexp_eatUnicodePropertyValue(state)) {\n      const value = state.lastStringValue\n      this.regexp_validateUnicodePropertyNameAndValue(state, name, value)\n      return CharSetOk\n    }\n  }\n  state.pos = start\n\n  // LoneUnicodePropertyNameOrValue\n  if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n    const nameOrValue = state.lastStringValue\n    return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)\n  }\n  return CharSetNone\n}\n\npp.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n  if (!hasOwn(state.unicodeProperties.nonBinary, name))\n    state.raise(\"Invalid property name\")\n  if (!state.unicodeProperties.nonBinary[name].test(value))\n    state.raise(\"Invalid property value\")\n}\n\npp.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n  if (state.unicodeProperties.binary.test(nameOrValue)) return CharSetOk\n  if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) return CharSetString\n  state.raise(\"Invalid property name\")\n}\n\n// UnicodePropertyName ::\n//   UnicodePropertyNameCharacters\npp.regexp_eatUnicodePropertyName = function(state) {\n  let ch = 0\n  state.lastStringValue = \"\"\n  while (isUnicodePropertyNameCharacter(ch = state.current())) {\n    state.lastStringValue += codePointToString(ch)\n    state.advance()\n  }\n  return state.lastStringValue !== \"\"\n}\n\nfunction isUnicodePropertyNameCharacter(ch) {\n  return isControlLetter(ch) || ch === 0x5F /* _ */\n}\n\n// UnicodePropertyValue ::\n//   UnicodePropertyValueCharacters\npp.regexp_eatUnicodePropertyValue = function(state) {\n  let ch = 0\n  state.lastStringValue = \"\"\n  while (isUnicodePropertyValueCharacter(ch = state.current())) {\n    state.lastStringValue += codePointToString(ch)\n    state.advance()\n  }\n  return state.lastStringValue !== \"\"\n}\nfunction isUnicodePropertyValueCharacter(ch) {\n  return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)\n}\n\n// LoneUnicodePropertyNameOrValue ::\n//   UnicodePropertyValueCharacters\npp.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n  return this.regexp_eatUnicodePropertyValue(state)\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\npp.regexp_eatCharacterClass = function(state) {\n  if (state.eat(0x5B /* [ */)) {\n    const negate = state.eat(0x5E /* ^ */)\n    const result = this.regexp_classContents(state)\n    if (!state.eat(0x5D /* ] */))\n      state.raise(\"Unterminated character class\")\n    if (negate && result === CharSetString)\n      state.raise(\"Negated character class may contain strings\")\n    return true\n  }\n  return false\n}\n\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\npp.regexp_classContents = function(state) {\n  if (state.current() === 0x5D /* ] */) return CharSetOk\n  if (state.switchV) return this.regexp_classSetExpression(state)\n  this.regexp_nonEmptyClassRanges(state)\n  return CharSetOk\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\npp.regexp_nonEmptyClassRanges = function(state) {\n  while (this.regexp_eatClassAtom(state)) {\n    const left = state.lastIntValue\n    if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {\n      const right = state.lastIntValue\n      if (state.switchU && (left === -1 || right === -1)) {\n        state.raise(\"Invalid character class\")\n      }\n      if (left !== -1 && right !== -1 && left > right) {\n        state.raise(\"Range out of order in character class\")\n      }\n    }\n  }\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\npp.regexp_eatClassAtom = function(state) {\n  const start = state.pos\n\n  if (state.eat(0x5C /* \\ */)) {\n    if (this.regexp_eatClassEscape(state)) {\n      return true\n    }\n    if (state.switchU) {\n      // Make the same message as V8.\n      const ch = state.current()\n      if (ch === 0x63 /* c */ || isOctalDigit(ch)) {\n        state.raise(\"Invalid class escape\")\n      }\n      state.raise(\"Invalid escape\")\n    }\n    state.pos = start\n  }\n\n  const ch = state.current()\n  if (ch !== 0x5D /* ] */) {\n    state.lastIntValue = ch\n    state.advance()\n    return true\n  }\n\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\npp.regexp_eatClassEscape = function(state) {\n  const start = state.pos\n\n  if (state.eat(0x62 /* b */)) {\n    state.lastIntValue = 0x08 /* <BS> */\n    return true\n  }\n\n  if (state.switchU && state.eat(0x2D /* - */)) {\n    state.lastIntValue = 0x2D /* - */\n    return true\n  }\n\n  if (!state.switchU && state.eat(0x63 /* c */)) {\n    if (this.regexp_eatClassControlLetter(state)) {\n      return true\n    }\n    state.pos = start\n  }\n\n  return (\n    this.regexp_eatCharacterClassEscape(state) ||\n    this.regexp_eatCharacterEscape(state)\n  )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\npp.regexp_classSetExpression = function(state) {\n  let result = CharSetOk, subResult\n  if (this.regexp_eatClassSetRange(state)) {\n    // Continue with ClassUnion processing.\n  } else if (subResult = this.regexp_eatClassSetOperand(state)) {\n    if (subResult === CharSetString) result = CharSetString\n    // https://tc39.es/ecma262/#prod-ClassIntersection\n    const start = state.pos\n    while (state.eatChars([0x26, 0x26] /* && */)) {\n      if (\n        state.current() !== 0x26 /* & */ &&\n        (subResult = this.regexp_eatClassSetOperand(state))\n      ) {\n        if (subResult !== CharSetString) result = CharSetOk\n        continue\n      }\n      state.raise(\"Invalid character in character class\")\n    }\n    if (start !== state.pos) return result\n    // https://tc39.es/ecma262/#prod-ClassSubtraction\n    while (state.eatChars([0x2D, 0x2D] /* -- */)) {\n      if (this.regexp_eatClassSetOperand(state)) continue\n      state.raise(\"Invalid character in character class\")\n    }\n    if (start !== state.pos) return result\n  } else {\n    state.raise(\"Invalid character in character class\")\n  }\n  // https://tc39.es/ecma262/#prod-ClassUnion\n  for (;;) {\n    if (this.regexp_eatClassSetRange(state)) continue\n    subResult = this.regexp_eatClassSetOperand(state)\n    if (!subResult) return result\n    if (subResult === CharSetString) result = CharSetString\n  }\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetRange\npp.regexp_eatClassSetRange = function(state) {\n  const start = state.pos\n  if (this.regexp_eatClassSetCharacter(state)) {\n    const left = state.lastIntValue\n    if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) {\n      const right = state.lastIntValue\n      if (left !== -1 && right !== -1 && left > right) {\n        state.raise(\"Range out of order in character class\")\n      }\n      return true\n    }\n    state.pos = start\n  }\n  return false\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetOperand\npp.regexp_eatClassSetOperand = function(state) {\n  if (this.regexp_eatClassSetCharacter(state)) return CharSetOk\n  return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)\n}\n\n// https://tc39.es/ecma262/#prod-NestedClass\npp.regexp_eatNestedClass = function(state) {\n  const start = state.pos\n  if (state.eat(0x5B /* [ */)) {\n    const negate = state.eat(0x5E /* ^ */)\n    const result = this.regexp_classContents(state)\n    if (state.eat(0x5D /* ] */)) {\n      if (negate && result === CharSetString) {\n        state.raise(\"Negated character class may contain strings\")\n      }\n      return result\n    }\n    state.pos = start\n  }\n  if (state.eat(0x5C /* \\ */)) {\n    const result = this.regexp_eatCharacterClassEscape(state)\n    if (result) {\n      return result\n    }\n    state.pos = start\n  }\n  return null\n}\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\npp.regexp_eatClassStringDisjunction = function(state) {\n  const start = state.pos\n  if (state.eatChars([0x5C, 0x71] /* \\q */)) {\n    if (state.eat(0x7B /* { */)) {\n      const result = this.regexp_classStringDisjunctionContents(state)\n      if (state.eat(0x7D /* } */)) {\n        return result\n      }\n    } else {\n      // Make the same message as V8.\n      state.raise(\"Invalid escape\")\n    }\n    state.pos = start\n  }\n  return null\n}\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\npp.regexp_classStringDisjunctionContents = function(state) {\n  let result = this.regexp_classString(state)\n  while (state.eat(0x7C /* | */)) {\n    if (this.regexp_classString(state) === CharSetString) result = CharSetString\n  }\n  return result\n}\n\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\npp.regexp_classString = function(state) {\n  let count = 0\n  while (this.regexp_eatClassSetCharacter(state)) count++\n  return count === 1 ? CharSetOk : CharSetString\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\npp.regexp_eatClassSetCharacter = function(state) {\n  const start = state.pos\n  if (state.eat(0x5C /* \\ */)) {\n    if (\n      this.regexp_eatCharacterEscape(state) ||\n      this.regexp_eatClassSetReservedPunctuator(state)\n    ) {\n      return true\n    }\n    if (state.eat(0x62 /* b */)) {\n      state.lastIntValue = 0x08 /* <BS> */\n      return true\n    }\n    state.pos = start\n    return false\n  }\n  const ch = state.current()\n  if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) return false\n  if (isClassSetSyntaxCharacter(ch)) return false\n  state.advance()\n  state.lastIntValue = ch\n  return true\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction isClassSetReservedDoublePunctuatorCharacter(ch) {\n  return (\n    ch === 0x21 /* ! */ ||\n    ch >= 0x23 /* # */ && ch <= 0x26 /* & */ ||\n    ch >= 0x2A /* * */ && ch <= 0x2C /* , */ ||\n    ch === 0x2E /* . */ ||\n    ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ ||\n    ch === 0x5E /* ^ */ ||\n    ch === 0x60 /* ` */ ||\n    ch === 0x7E /* ~ */\n  )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction isClassSetSyntaxCharacter(ch) {\n  return (\n    ch === 0x28 /* ( */ ||\n    ch === 0x29 /* ) */ ||\n    ch === 0x2D /* - */ ||\n    ch === 0x2F /* / */ ||\n    ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||\n    ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n  )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\npp.regexp_eatClassSetReservedPunctuator = function(state) {\n  const ch = state.current()\n  if (isClassSetReservedPunctuator(ch)) {\n    state.lastIntValue = ch\n    state.advance()\n    return true\n  }\n  return false\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction isClassSetReservedPunctuator(ch) {\n  return (\n    ch === 0x21 /* ! */ ||\n    ch === 0x23 /* # */ ||\n    ch === 0x25 /* % */ ||\n    ch === 0x26 /* & */ ||\n    ch === 0x2C /* , */ ||\n    ch === 0x2D /* - */ ||\n    ch >= 0x3A /* : */ && ch <= 0x3E /* > */ ||\n    ch === 0x40 /* @ */ ||\n    ch === 0x60 /* ` */ ||\n    ch === 0x7E /* ~ */\n  )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\npp.regexp_eatClassControlLetter = function(state) {\n  const ch = state.current()\n  if (isDecimalDigit(ch) || ch === 0x5F /* _ */) {\n    state.lastIntValue = ch % 0x20\n    state.advance()\n    return true\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp.regexp_eatHexEscapeSequence = function(state) {\n  const start = state.pos\n  if (state.eat(0x78 /* x */)) {\n    if (this.regexp_eatFixedHexDigits(state, 2)) {\n      return true\n    }\n    if (state.switchU) {\n      state.raise(\"Invalid escape\")\n    }\n    state.pos = start\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\npp.regexp_eatDecimalDigits = function(state) {\n  const start = state.pos\n  let ch = 0\n  state.lastIntValue = 0\n  while (isDecimalDigit(ch = state.current())) {\n    state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */)\n    state.advance()\n  }\n  return state.pos !== start\n}\nfunction isDecimalDigit(ch) {\n  return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\npp.regexp_eatHexDigits = function(state) {\n  const start = state.pos\n  let ch = 0\n  state.lastIntValue = 0\n  while (isHexDigit(ch = state.current())) {\n    state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch)\n    state.advance()\n  }\n  return state.pos !== start\n}\nfunction isHexDigit(ch) {\n  return (\n    (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) ||\n    (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) ||\n    (ch >= 0x61 /* a */ && ch <= 0x66 /* f */)\n  )\n}\nfunction hexToInt(ch) {\n  if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) {\n    return 10 + (ch - 0x41 /* A */)\n  }\n  if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) {\n    return 10 + (ch - 0x61 /* a */)\n  }\n  return ch - 0x30 /* 0 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\npp.regexp_eatLegacyOctalEscapeSequence = function(state) {\n  if (this.regexp_eatOctalDigit(state)) {\n    const n1 = state.lastIntValue\n    if (this.regexp_eatOctalDigit(state)) {\n      const n2 = state.lastIntValue\n      if (n1 <= 3 && this.regexp_eatOctalDigit(state)) {\n        state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue\n      } else {\n        state.lastIntValue = n1 * 8 + n2\n      }\n    } else {\n      state.lastIntValue = n1\n    }\n    return true\n  }\n  return false\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\npp.regexp_eatOctalDigit = function(state) {\n  const ch = state.current()\n  if (isOctalDigit(ch)) {\n    state.lastIntValue = ch - 0x30 /* 0 */\n    state.advance()\n    return true\n  }\n  state.lastIntValue = 0\n  return false\n}\nfunction isOctalDigit(ch) {\n  return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp.regexp_eatFixedHexDigits = function(state, length) {\n  const start = state.pos\n  state.lastIntValue = 0\n  for (let i = 0; i < length; ++i) {\n    const ch = state.current()\n    if (!isHexDigit(ch)) {\n      state.pos = start\n      return false\n    }\n    state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch)\n    state.advance()\n  }\n  return true\n}\n"
  },
  {
    "path": "acorn/src/scope.js",
    "content": "import {Parser} from \"./state.js\"\nimport {\n  SCOPE_VAR, SCOPE_FUNCTION, SCOPE_TOP, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, BIND_LEXICAL,\n  BIND_SIMPLE_CATCH, BIND_FUNCTION, SCOPE_CLASS_FIELD_INIT, SCOPE_CLASS_STATIC_BLOCK\n} from \"./scopeflags.js\"\n\nconst pp = Parser.prototype\n\nclass Scope {\n  constructor(flags) {\n    this.flags = flags\n    // A list of var-declared names in the current lexical scope\n    this.var = []\n    // A list of lexically-declared names in the current lexical scope\n    this.lexical = []\n    // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n    this.functions = []\n  }\n}\n\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n\npp.enterScope = function(flags) {\n  this.scopeStack.push(new Scope(flags))\n}\n\npp.exitScope = function() {\n  this.scopeStack.pop()\n}\n\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\npp.treatFunctionsAsVarInScope = function(scope) {\n  return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)\n}\n\npp.declareName = function(name, bindingType, pos) {\n  let redeclared = false\n  if (bindingType === BIND_LEXICAL) {\n    const scope = this.currentScope()\n    redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1\n    scope.lexical.push(name)\n    if (this.inModule && (scope.flags & SCOPE_TOP))\n      delete this.undefinedExports[name]\n  } else if (bindingType === BIND_SIMPLE_CATCH) {\n    const scope = this.currentScope()\n    scope.lexical.push(name)\n  } else if (bindingType === BIND_FUNCTION) {\n    const scope = this.currentScope()\n    if (this.treatFunctionsAsVar)\n      redeclared = scope.lexical.indexOf(name) > -1\n    else\n      redeclared = scope.lexical.indexOf(name) > -1 || scope.var.indexOf(name) > -1\n    scope.functions.push(name)\n  } else {\n    for (let i = this.scopeStack.length - 1; i >= 0; --i) {\n      const scope = this.scopeStack[i]\n      if (scope.lexical.indexOf(name) > -1 && !((scope.flags & SCOPE_SIMPLE_CATCH) && scope.lexical[0] === name) ||\n          !this.treatFunctionsAsVarInScope(scope) && scope.functions.indexOf(name) > -1) {\n        redeclared = true\n        break\n      }\n      scope.var.push(name)\n      if (this.inModule && (scope.flags & SCOPE_TOP))\n        delete this.undefinedExports[name]\n      if (scope.flags & SCOPE_VAR) break\n    }\n  }\n  if (redeclared) this.raiseRecoverable(pos, `Identifier '${name}' has already been declared`)\n}\n\npp.checkLocalExport = function(id) {\n  // scope.functions must be empty as Module code is always strict.\n  if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&\n      this.scopeStack[0].var.indexOf(id.name) === -1) {\n    this.undefinedExports[id.name] = id\n  }\n}\n\npp.currentScope = function() {\n  return this.scopeStack[this.scopeStack.length - 1]\n}\n\npp.currentVarScope = function() {\n  for (let i = this.scopeStack.length - 1;; i--) {\n    let scope = this.scopeStack[i]\n    if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) return scope\n  }\n}\n\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\npp.currentThisScope = function() {\n  for (let i = this.scopeStack.length - 1;; i--) {\n    let scope = this.scopeStack[i]\n    if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) &&\n        !(scope.flags & SCOPE_ARROW)) return scope\n  }\n}\n"
  },
  {
    "path": "acorn/src/scopeflags.js",
    "content": "// Each scope gets a bitset that may contain these flags\nexport const\n    SCOPE_TOP = 1,\n    SCOPE_FUNCTION = 2,\n    SCOPE_ASYNC = 4,\n    SCOPE_GENERATOR = 8,\n    SCOPE_ARROW = 16,\n    SCOPE_SIMPLE_CATCH = 32,\n    SCOPE_SUPER = 64,\n    SCOPE_DIRECT_SUPER = 128,\n    SCOPE_CLASS_STATIC_BLOCK = 256,\n    SCOPE_CLASS_FIELD_INIT = 512,\n    SCOPE_SWITCH = 1024,\n    SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK\n\nexport function functionFlags(async, generator) {\n  return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)\n}\n\n// Used in checkLVal* and declareName to determine the type of a binding\nexport const\n    BIND_NONE = 0, // Not a binding\n    BIND_VAR = 1, // Var-style binding\n    BIND_LEXICAL = 2, // Let- or const-style binding\n    BIND_FUNCTION = 3, // Function declaration\n    BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding\n    BIND_OUTSIDE = 5 // Special case for function names as bound inside the function\n"
  },
  {
    "path": "acorn/src/state.js",
    "content": "import {reservedWords, keywords} from \"./identifier.js\"\nimport {types as tt} from \"./tokentype.js\"\nimport {lineBreak} from \"./whitespace.js\"\nimport {getOptions} from \"./options.js\"\nimport {wordsRegexp} from \"./util.js\"\nimport {\n  SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_SUPER, SCOPE_DIRECT_SUPER,\n  SCOPE_ARROW, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_SWITCH\n} from \"./scopeflags.js\"\n\nexport class Parser {\n  constructor(options, input, startPos) {\n    this.options = options = getOptions(options)\n    this.sourceFile = options.sourceFile\n    this.keywords = wordsRegexp(keywords[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5])\n    let reserved = \"\"\n    if (options.allowReserved !== true) {\n      reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3]\n      if (options.sourceType === \"module\") reserved += \" await\"\n    }\n    this.reservedWords = wordsRegexp(reserved)\n    let reservedStrict = (reserved ? reserved + \" \" : \"\") + reservedWords.strict\n    this.reservedWordsStrict = wordsRegexp(reservedStrict)\n    this.reservedWordsStrictBind = wordsRegexp(reservedStrict + \" \" + reservedWords.strictBind)\n    this.input = String(input)\n\n    // Used to signal to callers of `readWord1` whether the word\n    // contained any escape sequences. This is needed because words with\n    // escape sequences must not be interpreted as keywords.\n    this.containsEsc = false\n\n    // Set up token state\n\n    // The current position of the tokenizer in the input.\n    if (startPos) {\n      this.pos = startPos\n      this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1\n      this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length\n    } else {\n      this.pos = this.lineStart = 0\n      this.curLine = 1\n    }\n\n    // Properties of the current token:\n    // Its type\n    this.type = tt.eof\n    // For tokens that include more information than their type, the value\n    this.value = null\n    // Its start and end offset\n    this.start = this.end = this.pos\n    // And, if locations are used, the {line, column} object\n    // corresponding to those offsets\n    this.startLoc = this.endLoc = this.curPosition()\n\n    // Position information for the previous token\n    this.lastTokEndLoc = this.lastTokStartLoc = null\n    this.lastTokStart = this.lastTokEnd = this.pos\n\n    // The context stack is used to superficially track syntactic\n    // context to predict whether a regular expression is allowed in a\n    // given position.\n    this.context = this.initialContext()\n    this.exprAllowed = true\n\n    // Figure out if it's a module code.\n    this.inModule = options.sourceType === \"module\"\n    this.strict = this.inModule || this.strictDirective(this.pos)\n\n    // Used to signify the start of a potential arrow function\n    this.potentialArrowAt = -1\n    this.potentialArrowInForAwait = false\n\n    // Positions to delayed-check that yield/await does not exist in default parameters.\n    this.yieldPos = this.awaitPos = this.awaitIdentPos = 0\n    // Labels in scope.\n    this.labels = []\n    // Thus-far undefined exports.\n    this.undefinedExports = Object.create(null)\n\n    // If enabled, skip leading hashbang line.\n    if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\")\n      this.skipLineComment(2)\n\n    // Scope tracking for duplicate variable names (see scope.js)\n    this.scopeStack = []\n    this.enterScope(\n      this.options.sourceType === \"commonjs\"\n        // In commonjs, the top-level scope behaves like a function scope\n        ? SCOPE_FUNCTION\n        : SCOPE_TOP\n    )\n\n    // For RegExp validation\n    this.regexpState = null\n\n    // The stack of private names.\n    // Each element has two properties: 'declared' and 'used'.\n    // When it exited from the outermost class definition, all used private names must be declared.\n    this.privateNameStack = []\n  }\n\n  parse() {\n    let node = this.options.program || this.startNode()\n    this.nextToken()\n    return this.parseTopLevel(node)\n  }\n\n  get inFunction() { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 }\n\n  get inGenerator() { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 }\n\n  get inAsync() { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 }\n\n  get canAwait() {\n    for (let i = this.scopeStack.length - 1; i >= 0; i--) {\n      let {flags} = this.scopeStack[i]\n      if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) return false\n      if (flags & SCOPE_FUNCTION) return (flags & SCOPE_ASYNC) > 0\n    }\n    return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction\n  }\n\n  get allowReturn() {\n    if (this.inFunction) return true\n    if (this.options.allowReturnOutsideFunction && this.currentVarScope().flags & SCOPE_TOP) return true\n    return false\n  }\n\n  get allowSuper() {\n    const {flags} = this.currentThisScope()\n    return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod\n  }\n\n  get allowDirectSuper() { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 }\n\n  get treatFunctionsAsVar() { return this.treatFunctionsAsVarInScope(this.currentScope()) }\n\n  get allowNewDotTarget() {\n    for (let i = this.scopeStack.length - 1; i >= 0; i--) {\n      let {flags} = this.scopeStack[i]\n      if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) ||\n          ((flags & SCOPE_FUNCTION) && !(flags & SCOPE_ARROW))) return true\n    }\n    return false\n  }\n\n  get allowUsing() {\n    const {flags} = this.currentScope()\n    if (flags & SCOPE_SWITCH) return false\n    if (!this.inModule && flags & SCOPE_TOP) return false\n    return true\n  }\n\n  get inClassStaticBlock() {\n    return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0\n  }\n\n  static extend(...plugins) {\n    let cls = this\n    for (let i = 0; i < plugins.length; i++) cls = plugins[i](cls)\n    return cls\n  }\n\n  static parse(input, options) {\n    return new this(options, input).parse()\n  }\n\n  static parseExpressionAt(input, pos, options) {\n    let parser = new this(options, input, pos)\n    parser.nextToken()\n    return parser.parseExpression()\n  }\n\n  static tokenizer(input, options) {\n    return new this(options, input)\n  }\n}\n"
  },
  {
    "path": "acorn/src/statement.js",
    "content": "import {types as tt} from \"./tokentype.js\"\nimport {Parser} from \"./state.js\"\nimport {lineBreak, skipWhiteSpace} from \"./whitespace.js\"\nimport {isIdentifierStart, isIdentifierChar, keywordRelationalOperator} from \"./identifier.js\"\nimport {hasOwn, loneSurrogate} from \"./util.js\"\nimport {DestructuringErrors} from \"./parseutil.js\"\nimport {functionFlags, SCOPE_SIMPLE_CATCH, BIND_SIMPLE_CATCH, BIND_LEXICAL, BIND_VAR, BIND_FUNCTION, SCOPE_CLASS_STATIC_BLOCK, SCOPE_SUPER, SCOPE_CLASS_FIELD_INIT, SCOPE_SWITCH} from \"./scopeflags.js\"\n\nconst pp = Parser.prototype\n\n// ### Statement parsing\n\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node.  Optionally takes a\n// `program` argument.  If present, the statements will be appended\n// to its body instead of creating a new node.\n\npp.parseTopLevel = function(node) {\n  let exports = Object.create(null)\n  if (!node.body) node.body = []\n  while (this.type !== tt.eof) {\n    let stmt = this.parseStatement(null, true, exports)\n    node.body.push(stmt)\n  }\n  if (this.inModule)\n    for (let name of Object.keys(this.undefinedExports))\n      this.raiseRecoverable(this.undefinedExports[name].start, `Export '${name}' is not defined`)\n  this.adaptDirectivePrologue(node.body)\n  this.next()\n  node.sourceType = this.options.sourceType === \"commonjs\" ? \"script\" : this.options.sourceType\n  return this.finishNode(node, \"Program\")\n}\n\nconst loopLabel = {kind: \"loop\"}, switchLabel = {kind: \"switch\"}\n\npp.isLet = function(context) {\n  if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) return false\n  skipWhiteSpace.lastIndex = this.pos\n  let skip = skipWhiteSpace.exec(this.input)\n  let next = this.pos + skip[0].length, nextCh = this.fullCharCodeAt(next)\n  // For ambiguous cases, determine if a LexicalDeclaration (or only a\n  // Statement) is allowed here. If context is not empty then only a Statement\n  // is allowed. However, `let [` is an explicit negative lookahead for\n  // ExpressionStatement, so special-case it first.\n  if (nextCh === 91 || nextCh === 92) return true // '[', '\\'\n  if (context) return false\n\n  if (nextCh === 123) return true // '{'\n  if (isIdentifierStart(nextCh)) {\n    let start = next\n    do { next += nextCh <= 0xffff ? 1 : 2 }\n    while (isIdentifierChar(nextCh = this.fullCharCodeAt(next)))\n    if (nextCh === 92) return true\n    let ident = this.input.slice(start, next)\n    if (!keywordRelationalOperator.test(ident)) return true\n  }\n  return false\n}\n\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\npp.isAsyncFunction = function() {\n  if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\"))\n    return false\n\n  skipWhiteSpace.lastIndex = this.pos\n  let skip = skipWhiteSpace.exec(this.input)\n  let next = this.pos + skip[0].length, after\n  return !lineBreak.test(this.input.slice(this.pos, next)) &&\n    this.input.slice(next, next + 8) === \"function\" &&\n    (next + 8 === this.input.length ||\n     !(isIdentifierChar(after = this.fullCharCodeAt(next + 8)) || after === 92 /* '\\' */))\n}\n\npp.isUsingKeyword = function(isAwaitUsing, isFor) {\n  if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? \"await\" : \"using\"))\n    return false\n\n  skipWhiteSpace.lastIndex = this.pos\n  let skip = skipWhiteSpace.exec(this.input)\n  let next = this.pos + skip[0].length\n\n  if (lineBreak.test(this.input.slice(this.pos, next))) return false\n\n  if (isAwaitUsing) {\n    let usingEndPos = next + 5 /* using */, after\n    if (this.input.slice(next, usingEndPos) !== \"using\" ||\n      usingEndPos === this.input.length ||\n      isIdentifierChar(after = this.fullCharCodeAt(usingEndPos)) ||\n      after === 92 /* '\\' */\n    ) return false\n\n    skipWhiteSpace.lastIndex = usingEndPos\n    let skipAfterUsing = skipWhiteSpace.exec(this.input)\n    next = usingEndPos + skipAfterUsing[0].length\n    if (skipAfterUsing && lineBreak.test(this.input.slice(usingEndPos, next))) return false\n  }\n\n  let ch = this.fullCharCodeAt(next)\n  if (!isIdentifierStart(ch) && ch !== 92 /* '\\' */) return false\n  let idStart = next\n  do { next += ch <= 0xffff ? 1 : 2 }\n  while (isIdentifierChar(ch = this.fullCharCodeAt(next)))\n  if (ch === 92) return true\n  let id = this.input.slice(idStart, next)\n  if (keywordRelationalOperator.test(id) || isFor && id === \"of\") return false\n  return true\n}\n\npp.isAwaitUsing = function(isFor) {\n  return this.isUsingKeyword(true, isFor)\n}\n\npp.isUsing = function(isFor) {\n  return this.isUsingKeyword(false, isFor)\n}\n\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n\npp.parseStatement = function(context, topLevel, exports) {\n  let starttype = this.type, node = this.startNode(), kind\n\n  if (this.isLet(context)) {\n    starttype = tt._var\n    kind = \"let\"\n  }\n\n  // Most types of statements are recognized by the keyword they\n  // start with. Many are trivial to parse, some require a bit of\n  // complexity.\n\n  switch (starttype) {\n  case tt._break: case tt._continue: return this.parseBreakContinueStatement(node, starttype.keyword)\n  case tt._debugger: return this.parseDebuggerStatement(node)\n  case tt._do: return this.parseDoStatement(node)\n  case tt._for: return this.parseForStatement(node)\n  case tt._function:\n    // Function as sole body of either an if statement or a labeled statement\n    // works, but not when it is part of a labeled statement that is the sole\n    // body of an if statement.\n    if ((context && (this.strict || context !== \"if\" && context !== \"label\")) && this.options.ecmaVersion >= 6) this.unexpected()\n    return this.parseFunctionStatement(node, false, !context)\n  case tt._class:\n    if (context) this.unexpected()\n    return this.parseClass(node, true)\n  case tt._if: return this.parseIfStatement(node)\n  case tt._return: return this.parseReturnStatement(node)\n  case tt._switch: return this.parseSwitchStatement(node)\n  case tt._throw: return this.parseThrowStatement(node)\n  case tt._try: return this.parseTryStatement(node)\n  case tt._const: case tt._var:\n    kind = kind || this.value\n    if (context && kind !== \"var\") this.unexpected()\n    return this.parseVarStatement(node, kind)\n  case tt._while: return this.parseWhileStatement(node)\n  case tt._with: return this.parseWithStatement(node)\n  case tt.braceL: return this.parseBlock(true, node)\n  case tt.semi: return this.parseEmptyStatement(node)\n  case tt._export:\n  case tt._import:\n    if (this.options.ecmaVersion > 10 && starttype === tt._import) {\n      skipWhiteSpace.lastIndex = this.pos\n      let skip = skipWhiteSpace.exec(this.input)\n      let next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next)\n      if (nextCh === 40 || nextCh === 46) // '(' or '.'\n        return this.parseExpressionStatement(node, this.parseExpression())\n    }\n\n    if (!this.options.allowImportExportEverywhere) {\n      if (!topLevel)\n        this.raise(this.start, \"'import' and 'export' may only appear at the top level\")\n      if (!this.inModule)\n        this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\")\n    }\n    return starttype === tt._import ? this.parseImport(node) : this.parseExport(node, exports)\n\n    // If the statement does not start with a statement keyword or a\n    // brace, it's an ExpressionStatement or LabeledStatement. We\n    // simply start parsing an expression, and afterwards, if the\n    // next token is a colon and the expression was a simple\n    // Identifier node, we switch to interpreting it as a label.\n  default:\n    if (this.isAsyncFunction()) {\n      if (context) this.unexpected()\n      this.next()\n      return this.parseFunctionStatement(node, true, !context)\n    }\n\n    let usingKind = this.isAwaitUsing(false) ? \"await using\" : this.isUsing(false) ? \"using\" : null\n    if (usingKind) {\n      if (!this.allowUsing) {\n        this.raise(this.start, \"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement\")\n      }\n      if (usingKind === \"await using\") {\n        if (!this.canAwait) {\n          this.raise(this.start, \"Await using cannot appear outside of async function\")\n        }\n        this.next()\n      }\n      this.next()\n      this.parseVar(node, false, usingKind)\n      this.semicolon()\n      return this.finishNode(node, \"VariableDeclaration\")\n    }\n\n    let maybeName = this.value, expr = this.parseExpression()\n    if (starttype === tt.name && expr.type === \"Identifier\" && this.eat(tt.colon))\n      return this.parseLabeledStatement(node, maybeName, expr, context)\n    else return this.parseExpressionStatement(node, expr)\n  }\n}\n\npp.parseBreakContinueStatement = function(node, keyword) {\n  let isBreak = keyword === \"break\"\n  this.next()\n  if (this.eat(tt.semi) || this.insertSemicolon()) node.label = null\n  else if (this.type !== tt.name) this.unexpected()\n  else {\n    node.label = this.parseIdent()\n    this.semicolon()\n  }\n\n  // Verify that there is an actual destination to break or\n  // continue to.\n  let i = 0\n  for (; i < this.labels.length; ++i) {\n    let lab = this.labels[i]\n    if (node.label == null || lab.name === node.label.name) {\n      if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break\n      if (node.label && isBreak) break\n    }\n  }\n  if (i === this.labels.length) this.raise(node.start, \"Unsyntactic \" + keyword)\n  return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\")\n}\n\npp.parseDebuggerStatement = function(node) {\n  this.next()\n  this.semicolon()\n  return this.finishNode(node, \"DebuggerStatement\")\n}\n\npp.parseDoStatement = function(node) {\n  this.next()\n  this.labels.push(loopLabel)\n  node.body = this.parseStatement(\"do\")\n  this.labels.pop()\n  this.expect(tt._while)\n  node.test = this.parseParenExpression()\n  if (this.options.ecmaVersion >= 6)\n    this.eat(tt.semi)\n  else\n    this.semicolon()\n  return this.finishNode(node, \"DoWhileStatement\")\n}\n\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n\npp.parseForStatement = function(node) {\n  this.next()\n  let awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\")) ? this.lastTokStart : -1\n  this.labels.push(loopLabel)\n  this.enterScope(0)\n  this.expect(tt.parenL)\n  if (this.type === tt.semi) {\n    if (awaitAt > -1) this.unexpected(awaitAt)\n    return this.parseFor(node, null)\n  }\n  let isLet = this.isLet()\n  if (this.type === tt._var || this.type === tt._const || isLet) {\n    let init = this.startNode(), kind = isLet ? \"let\" : this.value\n    this.next()\n    this.parseVar(init, true, kind)\n    this.finishNode(init, \"VariableDeclaration\")\n    return this.parseForAfterInit(node, init, awaitAt)\n  }\n  let startsWithLet = this.isContextual(\"let\"), isForOf = false\n\n  let usingKind = this.isUsing(true) ? \"using\" : this.isAwaitUsing(true) ? \"await using\" : null\n  if (usingKind) {\n    let init = this.startNode()\n    this.next()\n    if (usingKind === \"await using\") {\n      if (!this.canAwait) {\n        this.raise(this.start, \"Await using cannot appear outside of async function\")\n      }\n      this.next()\n    }\n    this.parseVar(init, true, usingKind)\n    this.finishNode(init, \"VariableDeclaration\")\n    return this.parseForAfterInit(node, init, awaitAt)\n  }\n  let containsEsc = this.containsEsc\n  let refDestructuringErrors = new DestructuringErrors\n  let initPos = this.start\n  let init = awaitAt > -1\n    ? this.parseExprSubscripts(refDestructuringErrors, \"await\")\n    : this.parseExpression(true, refDestructuringErrors)\n  if (this.type === tt._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n    if (awaitAt > -1) { // implies `ecmaVersion >= 9` (see declaration of awaitAt)\n      if (this.type === tt._in) this.unexpected(awaitAt)\n      node.await = true\n    } else if (isForOf && this.options.ecmaVersion >= 8) {\n      if (init.start === initPos && !containsEsc && init.type === \"Identifier\" && init.name === \"async\") this.unexpected()\n      else if (this.options.ecmaVersion >= 9) node.await = false\n    }\n    if (startsWithLet && isForOf) this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\")\n    this.toAssignable(init, false, refDestructuringErrors)\n    this.checkLValPattern(init)\n    return this.parseForIn(node, init)\n  } else {\n    this.checkExpressionErrors(refDestructuringErrors, true)\n  }\n  if (awaitAt > -1) this.unexpected(awaitAt)\n  return this.parseFor(node, init)\n}\n\n// Helper method to parse for loop after variable initialization\npp.parseForAfterInit = function(node, init, awaitAt) {\n  if ((this.type === tt._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) && init.declarations.length === 1) {\n    if (this.options.ecmaVersion >= 9) {\n      if (this.type === tt._in) {\n        if (awaitAt > -1) this.unexpected(awaitAt)\n      } else node.await = awaitAt > -1\n    }\n    return this.parseForIn(node, init)\n  }\n  if (awaitAt > -1) this.unexpected(awaitAt)\n  return this.parseFor(node, init)\n}\n\npp.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n  this.next()\n  return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)\n}\n\npp.parseIfStatement = function(node) {\n  this.next()\n  node.test = this.parseParenExpression()\n  // allow function declarations in branches, but only in non-strict mode\n  node.consequent = this.parseStatement(\"if\")\n  node.alternate = this.eat(tt._else) ? this.parseStatement(\"if\") : null\n  return this.finishNode(node, \"IfStatement\")\n}\n\npp.parseReturnStatement = function(node) {\n  if (!this.allowReturn)\n    this.raise(this.start, \"'return' outside of function\")\n  this.next()\n\n  // In `return` (and `break`/`continue`), the keywords with\n  // optional arguments, we eagerly look for a semicolon or the\n  // possibility to insert one.\n\n  if (this.eat(tt.semi) || this.insertSemicolon()) node.argument = null\n  else { node.argument = this.parseExpression(); this.semicolon() }\n  return this.finishNode(node, \"ReturnStatement\")\n}\n\npp.parseSwitchStatement = function(node) {\n  this.next()\n  node.discriminant = this.parseParenExpression()\n  node.cases = []\n  this.expect(tt.braceL)\n  this.labels.push(switchLabel)\n  this.enterScope(SCOPE_SWITCH)\n\n  // Statements under must be grouped (by label) in SwitchCase\n  // nodes. `cur` is used to keep the node that we are currently\n  // adding statements to.\n\n  let cur\n  for (let sawDefault = false; this.type !== tt.braceR;) {\n    if (this.type === tt._case || this.type === tt._default) {\n      let isCase = this.type === tt._case\n      if (cur) this.finishNode(cur, \"SwitchCase\")\n      node.cases.push(cur = this.startNode())\n      cur.consequent = []\n      this.next()\n      if (isCase) {\n        cur.test = this.parseExpression()\n      } else {\n        if (sawDefault) this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\")\n        sawDefault = true\n        cur.test = null\n      }\n      this.expect(tt.colon)\n    } else {\n      if (!cur) this.unexpected()\n      cur.consequent.push(this.parseStatement(null))\n    }\n  }\n  this.exitScope()\n  if (cur) this.finishNode(cur, \"SwitchCase\")\n  this.next() // Closing brace\n  this.labels.pop()\n  return this.finishNode(node, \"SwitchStatement\")\n}\n\npp.parseThrowStatement = function(node) {\n  this.next()\n  if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start)))\n    this.raise(this.lastTokEnd, \"Illegal newline after throw\")\n  node.argument = this.parseExpression()\n  this.semicolon()\n  return this.finishNode(node, \"ThrowStatement\")\n}\n\n// Reused empty array added for node fields that are always empty.\n\nconst empty = []\n\npp.parseCatchClauseParam = function() {\n  const param = this.parseBindingAtom()\n  let simple = param.type === \"Identifier\"\n  this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0)\n  this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL)\n  this.expect(tt.parenR)\n\n  return param\n}\n\npp.parseTryStatement = function(node) {\n  this.next()\n  node.block = this.parseBlock()\n  node.handler = null\n  if (this.type === tt._catch) {\n    let clause = this.startNode()\n    this.next()\n    if (this.eat(tt.parenL)) {\n      clause.param = this.parseCatchClauseParam()\n    } else {\n      if (this.options.ecmaVersion < 10) this.unexpected()\n      clause.param = null\n      this.enterScope(0)\n    }\n    clause.body = this.parseBlock(false)\n    this.exitScope()\n    node.handler = this.finishNode(clause, \"CatchClause\")\n  }\n  node.finalizer = this.eat(tt._finally) ? this.parseBlock() : null\n  if (!node.handler && !node.finalizer)\n    this.raise(node.start, \"Missing catch or finally clause\")\n  return this.finishNode(node, \"TryStatement\")\n}\n\npp.parseVarStatement = function(node, kind, allowMissingInitializer) {\n  this.next()\n  this.parseVar(node, false, kind, allowMissingInitializer)\n  this.semicolon()\n  return this.finishNode(node, \"VariableDeclaration\")\n}\n\npp.parseWhileStatement = function(node) {\n  this.next()\n  node.test = this.parseParenExpression()\n  this.labels.push(loopLabel)\n  node.body = this.parseStatement(\"while\")\n  this.labels.pop()\n  return this.finishNode(node, \"WhileStatement\")\n}\n\npp.parseWithStatement = function(node) {\n  if (this.strict) this.raise(this.start, \"'with' in strict mode\")\n  this.next()\n  node.object = this.parseParenExpression()\n  node.body = this.parseStatement(\"with\")\n  return this.finishNode(node, \"WithStatement\")\n}\n\npp.parseEmptyStatement = function(node) {\n  this.next()\n  return this.finishNode(node, \"EmptyStatement\")\n}\n\npp.parseLabeledStatement = function(node, maybeName, expr, context) {\n  for (let label of this.labels)\n    if (label.name === maybeName)\n      this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\")\n  let kind = this.type.isLoop ? \"loop\" : this.type === tt._switch ? \"switch\" : null\n  for (let i = this.labels.length - 1; i >= 0; i--) {\n    let label = this.labels[i]\n    if (label.statementStart === node.start) {\n      // Update information about previous labels on this node\n      label.statementStart = this.start\n      label.kind = kind\n    } else break\n  }\n  this.labels.push({name: maybeName, kind, statementStart: this.start})\n  node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\")\n  this.labels.pop()\n  node.label = expr\n  return this.finishNode(node, \"LabeledStatement\")\n}\n\npp.parseExpressionStatement = function(node, expr) {\n  node.expression = expr\n  this.semicolon()\n  return this.finishNode(node, \"ExpressionStatement\")\n}\n\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n\npp.parseBlock = function(createNewLexicalScope = true, node = this.startNode(), exitStrict) {\n  node.body = []\n  this.expect(tt.braceL)\n  if (createNewLexicalScope) this.enterScope(0)\n  while (this.type !== tt.braceR) {\n    let stmt = this.parseStatement(null)\n    node.body.push(stmt)\n  }\n  if (exitStrict) this.strict = false\n  this.next()\n  if (createNewLexicalScope) this.exitScope()\n  return this.finishNode(node, \"BlockStatement\")\n}\n\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n\npp.parseFor = function(node, init) {\n  node.init = init\n  this.expect(tt.semi)\n  node.test = this.type === tt.semi ? null : this.parseExpression()\n  this.expect(tt.semi)\n  node.update = this.type === tt.parenR ? null : this.parseExpression()\n  this.expect(tt.parenR)\n  node.body = this.parseStatement(\"for\")\n  this.exitScope()\n  this.labels.pop()\n  return this.finishNode(node, \"ForStatement\")\n}\n\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n\npp.parseForIn = function(node, init) {\n  const isForIn = this.type === tt._in\n  this.next()\n\n  if (\n    init.type === \"VariableDeclaration\" &&\n    init.declarations[0].init != null &&\n    (\n      !isForIn ||\n      this.options.ecmaVersion < 8 ||\n      this.strict ||\n      init.kind !== \"var\" ||\n      init.declarations[0].id.type !== \"Identifier\"\n    )\n  ) {\n    this.raise(\n      init.start,\n      `${\n        isForIn ? \"for-in\" : \"for-of\"\n      } loop variable declaration may not have an initializer`\n    )\n  }\n  node.left = init\n  node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign()\n  this.expect(tt.parenR)\n  node.body = this.parseStatement(\"for\")\n  this.exitScope()\n  this.labels.pop()\n  return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\")\n}\n\n// Parse a list of variable declarations.\n\npp.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n  node.declarations = []\n  node.kind = kind\n  for (;;) {\n    let decl = this.startNode()\n    this.parseVarId(decl, kind)\n    if (this.eat(tt.eq)) {\n      decl.init = this.parseMaybeAssign(isFor)\n    } else if (!allowMissingInitializer && kind === \"const\" && !(this.type === tt._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\")))) {\n      this.unexpected()\n    } else if (!allowMissingInitializer && (kind === \"using\" || kind === \"await using\") && this.options.ecmaVersion >= 17 && this.type !== tt._in && !this.isContextual(\"of\")) {\n      this.raise(this.lastTokEnd, `Missing initializer in ${kind} declaration`)\n    } else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === tt._in || this.isContextual(\"of\")))) {\n      this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\")\n    } else {\n      decl.init = null\n    }\n    node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"))\n    if (!this.eat(tt.comma)) break\n  }\n  return node\n}\n\npp.parseVarId = function(decl, kind) {\n  decl.id = kind === \"using\" || kind === \"await using\"\n    ? this.parseIdent()\n    : this.parseBindingAtom()\n\n  this.checkLValPattern(decl.id, kind === \"var\" ? BIND_VAR : BIND_LEXICAL, false)\n}\n\nconst FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4\n\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\npp.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n  this.initFunction(node)\n  if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n    if (this.type === tt.star && (statement & FUNC_HANGING_STATEMENT))\n      this.unexpected()\n    node.generator = this.eat(tt.star)\n  }\n  if (this.options.ecmaVersion >= 8)\n    node.async = !!isAsync\n\n  if (statement & FUNC_STATEMENT) {\n    node.id = (statement & FUNC_NULLABLE_ID) && this.type !== tt.name ? null : this.parseIdent()\n    if (node.id && !(statement & FUNC_HANGING_STATEMENT))\n      // If it is a regular function declaration in sloppy mode, then it is\n      // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding\n      // mode depends on properties of the current scope (see\n      // treatFunctionsAsVar).\n      this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION)\n  }\n\n  let oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos\n  this.yieldPos = 0\n  this.awaitPos = 0\n  this.awaitIdentPos = 0\n  this.enterScope(functionFlags(node.async, node.generator))\n\n  if (!(statement & FUNC_STATEMENT))\n    node.id = this.type === tt.name ? this.parseIdent() : null\n\n  this.parseFunctionParams(node)\n  this.parseFunctionBody(node, allowExpressionBody, false, forInit)\n\n  this.yieldPos = oldYieldPos\n  this.awaitPos = oldAwaitPos\n  this.awaitIdentPos = oldAwaitIdentPos\n  return this.finishNode(node, (statement & FUNC_STATEMENT) ? \"FunctionDeclaration\" : \"FunctionExpression\")\n}\n\npp.parseFunctionParams = function(node) {\n  this.expect(tt.parenL)\n  node.params = this.parseBindingList(tt.parenR, false, this.options.ecmaVersion >= 8)\n  this.checkYieldAwaitInDefaultParams()\n}\n\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n\npp.parseClass = function(node, isStatement) {\n  this.next()\n\n  // ecma-262 14.6 Class Definitions\n  // A class definition is always strict mode code.\n  const oldStrict = this.strict\n  this.strict = true\n\n  this.parseClassId(node, isStatement)\n  this.parseClassSuper(node)\n  const privateNameMap = this.enterClassBody()\n  const classBody = this.startNode()\n  let hadConstructor = false\n  classBody.body = []\n  this.expect(tt.braceL)\n  while (this.type !== tt.braceR) {\n    const element = this.parseClassElement(node.superClass !== null)\n    if (element) {\n      classBody.body.push(element)\n      if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n        if (hadConstructor) this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\")\n        hadConstructor = true\n      } else if (element.key && element.key.type === \"PrivateIdentifier\" && isPrivateNameConflicted(privateNameMap, element)) {\n        this.raiseRecoverable(element.key.start, `Identifier '#${element.key.name}' has already been declared`)\n      }\n    }\n  }\n  this.strict = oldStrict\n  this.next()\n  node.body = this.finishNode(classBody, \"ClassBody\")\n  this.exitClassBody()\n  return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\")\n}\n\npp.parseClassElement = function(constructorAllowsSuper) {\n  if (this.eat(tt.semi)) return null\n\n  const ecmaVersion = this.options.ecmaVersion\n  const node = this.startNode()\n  let keyName = \"\"\n  let isGenerator = false\n  let isAsync = false\n  let kind = \"method\"\n  let isStatic = false\n\n  if (this.eatContextual(\"static\")) {\n    // Parse static init block\n    if (ecmaVersion >= 13 && this.eat(tt.braceL)) {\n      this.parseClassStaticBlock(node)\n      return node\n    }\n    if (this.isClassElementNameStart() || this.type === tt.star) {\n      isStatic = true\n    } else {\n      keyName = \"static\"\n    }\n  }\n  node.static = isStatic\n  if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n    if ((this.isClassElementNameStart() || this.type === tt.star) && !this.canInsertSemicolon()) {\n      isAsync = true\n    } else {\n      keyName = \"async\"\n    }\n  }\n  if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(tt.star)) {\n    isGenerator = true\n  }\n  if (!keyName && !isAsync && !isGenerator) {\n    const lastValue = this.value\n    if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n      if (this.isClassElementNameStart()) {\n        kind = lastValue\n      } else {\n        keyName = lastValue\n      }\n    }\n  }\n\n  // Parse element name\n  if (keyName) {\n    // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n    // The last token is any of those. Make it the element name.\n    node.computed = false\n    node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc)\n    node.key.name = keyName\n    this.finishNode(node.key, \"Identifier\")\n  } else {\n    this.parseClassElementName(node)\n  }\n\n  // Parse element value\n  if (ecmaVersion < 13 || this.type === tt.parenL || kind !== \"method\" || isGenerator || isAsync) {\n    const isConstructor = !node.static && checkKeyName(node, \"constructor\")\n    const allowsDirectSuper = isConstructor && constructorAllowsSuper\n    // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n    if (isConstructor && kind !== \"method\") this.raise(node.key.start, \"Constructor can't have get/set modifier\")\n    node.kind = isConstructor ? \"constructor\" : kind\n    this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper)\n  } else {\n    this.parseClassField(node)\n  }\n\n  return node\n}\n\npp.isClassElementNameStart = function() {\n  return (\n    this.type === tt.name ||\n    this.type === tt.privateId ||\n    this.type === tt.num ||\n    this.type === tt.string ||\n    this.type === tt.bracketL ||\n    this.type.keyword\n  )\n}\n\npp.parseClassElementName = function(element) {\n  if (this.type === tt.privateId) {\n    if (this.value === \"constructor\") {\n      this.raise(this.start, \"Classes can't have an element named '#constructor'\")\n    }\n    element.computed = false\n    element.key = this.parsePrivateIdent()\n  } else {\n    this.parsePropertyName(element)\n  }\n}\n\npp.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n  // Check key and flags\n  const key = method.key\n  if (method.kind === \"constructor\") {\n    if (isGenerator) this.raise(key.start, \"Constructor can't be a generator\")\n    if (isAsync) this.raise(key.start, \"Constructor can't be an async method\")\n  } else if (method.static && checkKeyName(method, \"prototype\")) {\n    this.raise(key.start, \"Classes may not have a static property named prototype\")\n  }\n\n  // Parse value\n  const value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper)\n\n  // Check value\n  if (method.kind === \"get\" && value.params.length !== 0)\n    this.raiseRecoverable(value.start, \"getter should have no params\")\n  if (method.kind === \"set\" && value.params.length !== 1)\n    this.raiseRecoverable(value.start, \"setter should have exactly one param\")\n  if (method.kind === \"set\" && value.params[0].type === \"RestElement\")\n    this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\")\n\n  return this.finishNode(method, \"MethodDefinition\")\n}\n\npp.parseClassField = function(field) {\n  if (checkKeyName(field, \"constructor\")) {\n    this.raise(field.key.start, \"Classes can't have a field named 'constructor'\")\n  } else if (field.static && checkKeyName(field, \"prototype\")) {\n    this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\")\n  }\n\n  if (this.eat(tt.eq)) {\n    // To raise SyntaxError if 'arguments' exists in the initializer.\n    this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER)\n    field.value = this.parseMaybeAssign()\n    this.exitScope()\n  } else {\n    field.value = null\n  }\n  this.semicolon()\n\n  return this.finishNode(field, \"PropertyDefinition\")\n}\n\npp.parseClassStaticBlock = function(node) {\n  node.body = []\n\n  let oldLabels = this.labels\n  this.labels = []\n  this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER)\n  while (this.type !== tt.braceR) {\n    let stmt = this.parseStatement(null)\n    node.body.push(stmt)\n  }\n  this.next()\n  this.exitScope()\n  this.labels = oldLabels\n\n  return this.finishNode(node, \"StaticBlock\")\n}\n\npp.parseClassId = function(node, isStatement) {\n  if (this.type === tt.name) {\n    node.id = this.parseIdent()\n    if (isStatement)\n      this.checkLValSimple(node.id, BIND_LEXICAL, false)\n  } else {\n    if (isStatement === true)\n      this.unexpected()\n    node.id = null\n  }\n}\n\npp.parseClassSuper = function(node) {\n  node.superClass = this.eat(tt._extends) ? this.parseExprSubscripts(null, false) : null\n}\n\npp.enterClassBody = function() {\n  const element = {declared: Object.create(null), used: []}\n  this.privateNameStack.push(element)\n  return element.declared\n}\n\npp.exitClassBody = function() {\n  const {declared, used} = this.privateNameStack.pop()\n  if (!this.options.checkPrivateFields) return\n  const len = this.privateNameStack.length\n  const parent = len === 0 ? null : this.privateNameStack[len - 1]\n  for (let i = 0; i < used.length; ++i) {\n    const id = used[i]\n    if (!hasOwn(declared, id.name)) {\n      if (parent) {\n        parent.used.push(id)\n      } else {\n        this.raiseRecoverable(id.start, `Private field '#${id.name}' must be declared in an enclosing class`)\n      }\n    }\n  }\n}\n\nfunction isPrivateNameConflicted(privateNameMap, element) {\n  const name = element.key.name\n  const curr = privateNameMap[name]\n\n  let next = \"true\"\n  if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) {\n    next = (element.static ? \"s\" : \"i\") + element.kind\n  }\n\n  // `class { get #a(){}; static set #a(_){} }` is also conflict.\n  if (\n    curr === \"iget\" && next === \"iset\" ||\n    curr === \"iset\" && next === \"iget\" ||\n    curr === \"sget\" && next === \"sset\" ||\n    curr === \"sset\" && next === \"sget\"\n  ) {\n    privateNameMap[name] = \"true\"\n    return false\n  } else if (!curr) {\n    privateNameMap[name] = next\n    return false\n  } else {\n    return true\n  }\n}\n\nfunction checkKeyName(node, name) {\n  const {computed, key} = node\n  return !computed && (\n    key.type === \"Identifier\" && key.name === name ||\n    key.type === \"Literal\" && key.value === name\n  )\n}\n\n// Parses module export declaration.\n\npp.parseExportAllDeclaration = function(node, exports) {\n  if (this.options.ecmaVersion >= 11) {\n    if (this.eatContextual(\"as\")) {\n      node.exported = this.parseModuleExportName()\n      this.checkExport(exports, node.exported, this.lastTokStart)\n    } else {\n      node.exported = null\n    }\n  }\n  this.expectContextual(\"from\")\n  if (this.type !== tt.string) this.unexpected()\n  node.source = this.parseExprAtom()\n  if (this.options.ecmaVersion >= 16)\n    node.attributes = this.parseWithClause()\n  this.semicolon()\n  return this.finishNode(node, \"ExportAllDeclaration\")\n}\n\npp.parseExport = function(node, exports) {\n  this.next()\n  // export * from '...'\n  if (this.eat(tt.star)) {\n    return this.parseExportAllDeclaration(node, exports)\n  }\n  if (this.eat(tt._default)) { // export default ...\n    this.checkExport(exports, \"default\", this.lastTokStart)\n    node.declaration = this.parseExportDefaultDeclaration()\n    return this.finishNode(node, \"ExportDefaultDeclaration\")\n  }\n  // export var|const|let|function|class ...\n  if (this.shouldParseExportStatement()) {\n    node.declaration = this.parseExportDeclaration(node)\n    if (node.declaration.type === \"VariableDeclaration\")\n      this.checkVariableExport(exports, node.declaration.declarations)\n    else\n      this.checkExport(exports, node.declaration.id, node.declaration.id.start)\n    node.specifiers = []\n    node.source = null\n    if (this.options.ecmaVersion >= 16)\n      node.attributes = []\n  } else { // export { x, y as z } [from '...']\n    node.declaration = null\n    node.specifiers = this.parseExportSpecifiers(exports)\n    if (this.eatContextual(\"from\")) {\n      if (this.type !== tt.string) this.unexpected()\n      node.source = this.parseExprAtom()\n      if (this.options.ecmaVersion >= 16)\n        node.attributes = this.parseWithClause()\n    } else {\n      for (let spec of node.specifiers) {\n        // check for keywords used as local names\n        this.checkUnreserved(spec.local)\n        // check if export is defined\n        this.checkLocalExport(spec.local)\n\n        if (spec.local.type === \"Literal\") {\n          this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\")\n        }\n      }\n\n      node.source = null\n      if (this.options.ecmaVersion >= 16)\n        node.attributes = []\n    }\n    this.semicolon()\n  }\n  return this.finishNode(node, \"ExportNamedDeclaration\")\n}\n\npp.parseExportDeclaration = function(node) {\n  return this.parseStatement(null)\n}\n\npp.parseExportDefaultDeclaration = function() {\n  let isAsync\n  if (this.type === tt._function || (isAsync = this.isAsyncFunction())) {\n    let fNode = this.startNode()\n    this.next()\n    if (isAsync) this.next()\n    return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync)\n  } else if (this.type === tt._class) {\n    let cNode = this.startNode()\n    return this.parseClass(cNode, \"nullableID\")\n  } else {\n    let declaration = this.parseMaybeAssign()\n    this.semicolon()\n    return declaration\n  }\n}\n\npp.checkExport = function(exports, name, pos) {\n  if (!exports) return\n  if (typeof name !== \"string\")\n    name = name.type === \"Identifier\" ? name.name : name.value\n  if (hasOwn(exports, name))\n    this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\")\n  exports[name] = true\n}\n\npp.checkPatternExport = function(exports, pat) {\n  let type = pat.type\n  if (type === \"Identifier\")\n    this.checkExport(exports, pat, pat.start)\n  else if (type === \"ObjectPattern\")\n    for (let prop of pat.properties)\n      this.checkPatternExport(exports, prop)\n  else if (type === \"ArrayPattern\")\n    for (let elt of pat.elements) {\n      if (elt) this.checkPatternExport(exports, elt)\n    }\n  else if (type === \"Property\")\n    this.checkPatternExport(exports, pat.value)\n  else if (type === \"AssignmentPattern\")\n    this.checkPatternExport(exports, pat.left)\n  else if (type === \"RestElement\")\n    this.checkPatternExport(exports, pat.argument)\n}\n\npp.checkVariableExport = function(exports, decls) {\n  if (!exports) return\n  for (let decl of decls)\n    this.checkPatternExport(exports, decl.id)\n}\n\npp.shouldParseExportStatement = function() {\n  return this.type.keyword === \"var\" ||\n    this.type.keyword === \"const\" ||\n    this.type.keyword === \"class\" ||\n    this.type.keyword === \"function\" ||\n    this.isLet() ||\n    this.isAsyncFunction()\n}\n\n// Parses a comma-separated list of module exports.\n\npp.parseExportSpecifier = function(exports) {\n  let node = this.startNode()\n  node.local = this.parseModuleExportName()\n\n  node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local\n  this.checkExport(\n    exports,\n    node.exported,\n    node.exported.start\n  )\n\n  return this.finishNode(node, \"ExportSpecifier\")\n}\n\npp.parseExportSpecifiers = function(exports) {\n  let nodes = [], first = true\n  // export { x, y as z } [from '...']\n  this.expect(tt.braceL)\n  while (!this.eat(tt.braceR)) {\n    if (!first) {\n      this.expect(tt.comma)\n      if (this.afterTrailingComma(tt.braceR)) break\n    } else first = false\n\n    nodes.push(this.parseExportSpecifier(exports))\n  }\n  return nodes\n}\n\n// Parses import declaration.\n\npp.parseImport = function(node) {\n  this.next()\n\n  // import '...'\n  if (this.type === tt.string) {\n    node.specifiers = empty\n    node.source = this.parseExprAtom()\n  } else {\n    node.specifiers = this.parseImportSpecifiers()\n    this.expectContextual(\"from\")\n    node.source = this.type === tt.string ? this.parseExprAtom() : this.unexpected()\n  }\n  if (this.options.ecmaVersion >= 16)\n    node.attributes = this.parseWithClause()\n  this.semicolon()\n  return this.finishNode(node, \"ImportDeclaration\")\n}\n\n// Parses a comma-separated list of module imports.\n\npp.parseImportSpecifier = function() {\n  let node = this.startNode()\n  node.imported = this.parseModuleExportName()\n\n  if (this.eatContextual(\"as\")) {\n    node.local = this.parseIdent()\n  } else {\n    this.checkUnreserved(node.imported)\n    node.local = node.imported\n  }\n  this.checkLValSimple(node.local, BIND_LEXICAL)\n\n  return this.finishNode(node, \"ImportSpecifier\")\n}\n\npp.parseImportDefaultSpecifier = function() {\n  // import defaultObj, { x, y as z } from '...'\n  let node = this.startNode()\n  node.local = this.parseIdent()\n  this.checkLValSimple(node.local, BIND_LEXICAL)\n  return this.finishNode(node, \"ImportDefaultSpecifier\")\n}\n\npp.parseImportNamespaceSpecifier = function() {\n  let node = this.startNode()\n  this.next()\n  this.expectContextual(\"as\")\n  node.local = this.parseIdent()\n  this.checkLValSimple(node.local, BIND_LEXICAL)\n  return this.finishNode(node, \"ImportNamespaceSpecifier\")\n}\n\npp.parseImportSpecifiers = function() {\n  let nodes = [], first = true\n  if (this.type === tt.name) {\n    nodes.push(this.parseImportDefaultSpecifier())\n    if (!this.eat(tt.comma)) return nodes\n  }\n  if (this.type === tt.star) {\n    nodes.push(this.parseImportNamespaceSpecifier())\n    return nodes\n  }\n  this.expect(tt.braceL)\n  while (!this.eat(tt.braceR)) {\n    if (!first) {\n      this.expect(tt.comma)\n      if (this.afterTrailingComma(tt.braceR)) break\n    } else first = false\n\n    nodes.push(this.parseImportSpecifier())\n  }\n  return nodes\n}\n\npp.parseWithClause = function() {\n  let nodes = []\n  if (!this.eat(tt._with)) {\n    return nodes\n  }\n  this.expect(tt.braceL)\n  const attributeKeys = {}\n  let first = true\n  while (!this.eat(tt.braceR)) {\n    if (!first) {\n      this.expect(tt.comma)\n      if (this.afterTrailingComma(tt.braceR)) break\n    } else first = false\n\n    const attr = this.parseImportAttribute()\n    const keyName = attr.key.type === \"Identifier\" ? attr.key.name : attr.key.value\n    if (hasOwn(attributeKeys, keyName))\n      this.raiseRecoverable(attr.key.start, \"Duplicate attribute key '\" + keyName + \"'\")\n    attributeKeys[keyName] = true\n    nodes.push(attr)\n  }\n  return nodes\n}\n\npp.parseImportAttribute = function() {\n  const node = this.startNode()\n  node.key = this.type === tt.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\")\n  this.expect(tt.colon)\n  if (this.type !== tt.string) {\n    this.unexpected()\n  }\n  node.value = this.parseExprAtom()\n  return this.finishNode(node, \"ImportAttribute\")\n}\n\npp.parseModuleExportName = function() {\n  if (this.options.ecmaVersion >= 13 && this.type === tt.string) {\n    const stringLiteral = this.parseLiteral(this.value)\n    if (loneSurrogate.test(stringLiteral.value)) {\n      this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\")\n    }\n    return stringLiteral\n  }\n  return this.parseIdent(true)\n}\n\n// Set `ExpressionStatement#directive` property for directive prologues.\npp.adaptDirectivePrologue = function(statements) {\n  for (let i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {\n    statements[i].directive = statements[i].expression.raw.slice(1, -1)\n  }\n}\npp.isDirectiveCandidate = function(statement) {\n  return (\n    this.options.ecmaVersion >= 5 &&\n    statement.type === \"ExpressionStatement\" &&\n    statement.expression.type === \"Literal\" &&\n    typeof statement.expression.value === \"string\" &&\n    // Reject parenthesized strings.\n    (this.input[statement.start] === \"\\\"\" || this.input[statement.start] === \"'\")\n  )\n}\n"
  },
  {
    "path": "acorn/src/tokencontext.js",
    "content": "// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\n\nimport {Parser} from \"./state.js\"\nimport {types as tt} from \"./tokentype.js\"\nimport {lineBreak} from \"./whitespace.js\"\n\nexport class TokContext {\n  constructor(token, isExpr, preserveSpace, override, generator) {\n    this.token = token\n    this.isExpr = !!isExpr\n    this.preserveSpace = !!preserveSpace\n    this.override = override\n    this.generator = !!generator\n  }\n}\n\nexport const types = {\n  b_stat: new TokContext(\"{\", false),\n  b_expr: new TokContext(\"{\", true),\n  b_tmpl: new TokContext(\"${\", false),\n  p_stat: new TokContext(\"(\", false),\n  p_expr: new TokContext(\"(\", true),\n  q_tmpl: new TokContext(\"`\", true, true, p => p.tryReadTemplateToken()),\n  f_stat: new TokContext(\"function\", false),\n  f_expr: new TokContext(\"function\", true),\n  f_expr_gen: new TokContext(\"function\", true, false, null, true),\n  f_gen: new TokContext(\"function\", false, false, null, true)\n}\n\nconst pp = Parser.prototype\n\npp.initialContext = function() {\n  return [types.b_stat]\n}\n\npp.curContext = function() {\n  return this.context[this.context.length - 1]\n}\n\npp.braceIsBlock = function(prevType) {\n  let parent = this.curContext()\n  if (parent === types.f_expr || parent === types.f_stat)\n    return true\n  if (prevType === tt.colon && (parent === types.b_stat || parent === types.b_expr))\n    return !parent.isExpr\n\n  // The check for `tt.name && exprAllowed` detects whether we are\n  // after a `yield` or `of` construct. See the `updateContext` for\n  // `tt.name`.\n  if (prevType === tt._return || prevType === tt.name && this.exprAllowed)\n    return lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n  if (prevType === tt._else || prevType === tt.semi || prevType === tt.eof || prevType === tt.parenR || prevType === tt.arrow)\n    return true\n  if (prevType === tt.braceL)\n    return parent === types.b_stat\n  if (prevType === tt._var || prevType === tt._const || prevType === tt.name)\n    return false\n  return !this.exprAllowed\n}\n\npp.inGeneratorContext = function() {\n  for (let i = this.context.length - 1; i >= 1; i--) {\n    let context = this.context[i]\n    if (context.token === \"function\")\n      return context.generator\n  }\n  return false\n}\n\npp.updateContext = function(prevType) {\n  let update, type = this.type\n  if (type.keyword && prevType === tt.dot)\n    this.exprAllowed = false\n  else if (update = type.updateContext)\n    update.call(this, prevType)\n  else\n    this.exprAllowed = type.beforeExpr\n}\n\n// Used to handle edge cases when token context could not be inferred correctly during tokenization phase\n\npp.overrideContext = function(tokenCtx) {\n  if (this.curContext() !== tokenCtx) {\n    this.context[this.context.length - 1] = tokenCtx\n  }\n}\n\n// Token-specific context update code\n\ntt.parenR.updateContext = tt.braceR.updateContext = function() {\n  if (this.context.length === 1) {\n    this.exprAllowed = true\n    return\n  }\n  let out = this.context.pop()\n  if (out === types.b_stat && this.curContext().token === \"function\") {\n    out = this.context.pop()\n  }\n  this.exprAllowed = !out.isExpr\n}\n\ntt.braceL.updateContext = function(prevType) {\n  this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr)\n  this.exprAllowed = true\n}\n\ntt.dollarBraceL.updateContext = function() {\n  this.context.push(types.b_tmpl)\n  this.exprAllowed = true\n}\n\ntt.parenL.updateContext = function(prevType) {\n  let statementParens = prevType === tt._if || prevType === tt._for || prevType === tt._with || prevType === tt._while\n  this.context.push(statementParens ? types.p_stat : types.p_expr)\n  this.exprAllowed = true\n}\n\ntt.incDec.updateContext = function() {\n  // tokExprAllowed stays unchanged\n}\n\ntt._function.updateContext = tt._class.updateContext = function(prevType) {\n  if (prevType.beforeExpr && prevType !== tt._else &&\n      !(prevType === tt.semi && this.curContext() !== types.p_stat) &&\n      !(prevType === tt._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&\n      !((prevType === tt.colon || prevType === tt.braceL) && this.curContext() === types.b_stat))\n    this.context.push(types.f_expr)\n  else\n    this.context.push(types.f_stat)\n  this.exprAllowed = false\n}\n\ntt.colon.updateContext = function() {\n  if (this.curContext().token === \"function\") this.context.pop()\n  this.exprAllowed = true\n}\n\ntt.backQuote.updateContext = function() {\n  if (this.curContext() === types.q_tmpl)\n    this.context.pop()\n  else\n    this.context.push(types.q_tmpl)\n  this.exprAllowed = false\n}\n\ntt.star.updateContext = function(prevType) {\n  if (prevType === tt._function) {\n    let index = this.context.length - 1\n    if (this.context[index] === types.f_expr)\n      this.context[index] = types.f_expr_gen\n    else\n      this.context[index] = types.f_gen\n  }\n  this.exprAllowed = true\n}\n\ntt.name.updateContext = function(prevType) {\n  let allowed = false\n  if (this.options.ecmaVersion >= 6 && prevType !== tt.dot) {\n    if (this.value === \"of\" && !this.exprAllowed ||\n        this.value === \"yield\" && this.inGeneratorContext())\n      allowed = true\n  }\n  this.exprAllowed = allowed\n}\n"
  },
  {
    "path": "acorn/src/tokenize.js",
    "content": "import {isIdentifierStart, isIdentifierChar} from \"./identifier.js\"\nimport {types as tt, keywords as keywordTypes} from \"./tokentype.js\"\nimport {Parser} from \"./state.js\"\nimport {SourceLocation} from \"./locutil.js\"\nimport {RegExpValidationState} from \"./regexp.js\"\nimport {lineBreak, nextLineBreak, isNewLine, nonASCIIwhitespace} from \"./whitespace.js\"\nimport {codePointToString} from \"./util.js\"\n\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\n\nexport class Token {\n  constructor(p) {\n    this.type = p.type\n    this.value = p.value\n    this.start = p.start\n    this.end = p.end\n    if (p.options.locations)\n      this.loc = new SourceLocation(p, p.startLoc, p.endLoc)\n    if (p.options.ranges)\n      this.range = [p.start, p.end]\n  }\n}\n\n// ## Tokenizer\n\nconst pp = Parser.prototype\n\n// Move to the next token\n\npp.next = function(ignoreEscapeSequenceInKeyword) {\n  if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)\n    this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword)\n  if (this.options.onToken)\n    this.options.onToken(new Token(this))\n\n  this.lastTokEnd = this.end\n  this.lastTokStart = this.start\n  this.lastTokEndLoc = this.endLoc\n  this.lastTokStartLoc = this.startLoc\n  this.nextToken()\n}\n\npp.getToken = function() {\n  this.next()\n  return new Token(this)\n}\n\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\")\n  pp[Symbol.iterator] = function() {\n    return {\n      next: () => {\n        let token = this.getToken()\n        return {\n          done: token.type === tt.eof,\n          value: token\n        }\n      }\n    }\n  }\n\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n\n// Read a single token, updating the parser object's token-related\n// properties.\n\npp.nextToken = function() {\n  let curContext = this.curContext()\n  if (!curContext || !curContext.preserveSpace) this.skipSpace()\n\n  this.start = this.pos\n  if (this.options.locations) this.startLoc = this.curPosition()\n  if (this.pos >= this.input.length) return this.finishToken(tt.eof)\n\n  if (curContext.override) return curContext.override(this)\n  else this.readToken(this.fullCharCodeAtPos())\n}\n\npp.readToken = function(code) {\n  // Identifier or keyword. '\\uXXXX' sequences are allowed in\n  // identifiers, so '\\' also dispatches to that.\n  if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */)\n    return this.readWord()\n\n  return this.getTokenFromCode(code)\n}\n\npp.fullCharCodeAt = function(pos) {\n  let code = this.input.charCodeAt(pos)\n  if (code <= 0xd7ff || code >= 0xdc00) return code\n  let next = this.input.charCodeAt(pos + 1)\n  return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00\n}\n\npp.fullCharCodeAtPos = function() {\n  return this.fullCharCodeAt(this.pos)\n}\n\npp.skipBlockComment = function() {\n  let startLoc = this.options.onComment && this.curPosition()\n  let start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2)\n  if (end === -1) this.raise(this.pos - 2, \"Unterminated comment\")\n  this.pos = end + 2\n  if (this.options.locations) {\n    for (let nextBreak, pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) {\n      ++this.curLine\n      pos = this.lineStart = nextBreak\n    }\n  }\n  if (this.options.onComment)\n    this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos,\n                           startLoc, this.curPosition())\n}\n\npp.skipLineComment = function(startSkip) {\n  let start = this.pos\n  let startLoc = this.options.onComment && this.curPosition()\n  let ch = this.input.charCodeAt(this.pos += startSkip)\n  while (this.pos < this.input.length && !isNewLine(ch)) {\n    ch = this.input.charCodeAt(++this.pos)\n  }\n  if (this.options.onComment)\n    this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos,\n                           startLoc, this.curPosition())\n}\n\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n\npp.skipSpace = function() {\n  loop: while (this.pos < this.input.length) {\n    let ch = this.input.charCodeAt(this.pos)\n    switch (ch) {\n    case 32: case 160: // ' '\n      ++this.pos\n      break\n    case 13:\n      if (this.input.charCodeAt(this.pos + 1) === 10) {\n        ++this.pos\n      }\n    case 10: case 8232: case 8233:\n      ++this.pos\n      if (this.options.locations) {\n        ++this.curLine\n        this.lineStart = this.pos\n      }\n      break\n    case 47: // '/'\n      switch (this.input.charCodeAt(this.pos + 1)) {\n      case 42: // '*'\n        this.skipBlockComment()\n        break\n      case 47:\n        this.skipLineComment(2)\n        break\n      default:\n        break loop\n      }\n      break\n    default:\n      if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n        ++this.pos\n      } else {\n        break loop\n      }\n    }\n  }\n}\n\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n\npp.finishToken = function(type, val) {\n  this.end = this.pos\n  if (this.options.locations) this.endLoc = this.curPosition()\n  let prevType = this.type\n  this.type = type\n  this.value = val\n\n  this.updateContext(prevType)\n}\n\n// ### Token reading\n\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\npp.readToken_dot = function() {\n  let next = this.input.charCodeAt(this.pos + 1)\n  if (next >= 48 && next <= 57) return this.readNumber(true)\n  let next2 = this.input.charCodeAt(this.pos + 2)\n  if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.'\n    this.pos += 3\n    return this.finishToken(tt.ellipsis)\n  } else {\n    ++this.pos\n    return this.finishToken(tt.dot)\n  }\n}\n\npp.readToken_slash = function() { // '/'\n  let next = this.input.charCodeAt(this.pos + 1)\n  if (this.exprAllowed) { ++this.pos; return this.readRegexp() }\n  if (next === 61) return this.finishOp(tt.assign, 2)\n  return this.finishOp(tt.slash, 1)\n}\n\npp.readToken_mult_modulo_exp = function(code) { // '%*'\n  let next = this.input.charCodeAt(this.pos + 1)\n  let size = 1\n  let tokentype = code === 42 ? tt.star : tt.modulo\n\n  // exponentiation operator ** and **=\n  if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n    ++size\n    tokentype = tt.starstar\n    next = this.input.charCodeAt(this.pos + 2)\n  }\n\n  if (next === 61) return this.finishOp(tt.assign, size + 1)\n  return this.finishOp(tokentype, size)\n}\n\npp.readToken_pipe_amp = function(code) { // '|&'\n  let next = this.input.charCodeAt(this.pos + 1)\n  if (next === code) {\n    if (this.options.ecmaVersion >= 12) {\n      let next2 = this.input.charCodeAt(this.pos + 2)\n      if (next2 === 61) return this.finishOp(tt.assign, 3)\n    }\n    return this.finishOp(code === 124 ? tt.logicalOR : tt.logicalAND, 2)\n  }\n  if (next === 61) return this.finishOp(tt.assign, 2)\n  return this.finishOp(code === 124 ? tt.bitwiseOR : tt.bitwiseAND, 1)\n}\n\npp.readToken_caret = function() { // '^'\n  let next = this.input.charCodeAt(this.pos + 1)\n  if (next === 61) return this.finishOp(tt.assign, 2)\n  return this.finishOp(tt.bitwiseXOR, 1)\n}\n\npp.readToken_plus_min = function(code) { // '+-'\n  let next = this.input.charCodeAt(this.pos + 1)\n  if (next === code) {\n    if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&\n        (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n      // A `-->` line comment\n      this.skipLineComment(3)\n      this.skipSpace()\n      return this.nextToken()\n    }\n    return this.finishOp(tt.incDec, 2)\n  }\n  if (next === 61) return this.finishOp(tt.assign, 2)\n  return this.finishOp(tt.plusMin, 1)\n}\n\npp.readToken_lt_gt = function(code) { // '<>'\n  let next = this.input.charCodeAt(this.pos + 1)\n  let size = 1\n  if (next === code) {\n    size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2\n    if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp(tt.assign, size + 1)\n    return this.finishOp(tt.bitShift, size)\n  }\n  if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n      this.input.charCodeAt(this.pos + 3) === 45) {\n    // `<!--`, an XML-style comment that should be interpreted as a line comment\n    this.skipLineComment(4)\n    this.skipSpace()\n    return this.nextToken()\n  }\n  if (next === 61) size = 2\n  return this.finishOp(tt.relational, size)\n}\n\npp.readToken_eq_excl = function(code) { // '=!'\n  let next = this.input.charCodeAt(this.pos + 1)\n  if (next === 61) return this.finishOp(tt.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2)\n  if (code === 61 && next === 62 && this.options.ecmaVersion >= 6) { // '=>'\n    this.pos += 2\n    return this.finishToken(tt.arrow)\n  }\n  return this.finishOp(code === 61 ? tt.eq : tt.prefix, 1)\n}\n\npp.readToken_question = function() { // '?'\n  const ecmaVersion = this.options.ecmaVersion\n  if (ecmaVersion >= 11) {\n    let next = this.input.charCodeAt(this.pos + 1)\n    if (next === 46) {\n      let next2 = this.input.charCodeAt(this.pos + 2)\n      if (next2 < 48 || next2 > 57) return this.finishOp(tt.questionDot, 2)\n    }\n    if (next === 63) {\n      if (ecmaVersion >= 12) {\n        let next2 = this.input.charCodeAt(this.pos + 2)\n        if (next2 === 61) return this.finishOp(tt.assign, 3)\n      }\n      return this.finishOp(tt.coalesce, 2)\n    }\n  }\n  return this.finishOp(tt.question, 1)\n}\n\npp.readToken_numberSign = function() { // '#'\n  const ecmaVersion = this.options.ecmaVersion\n  let code = 35 // '#'\n  if (ecmaVersion >= 13) {\n    ++this.pos\n    code = this.fullCharCodeAtPos()\n    if (isIdentifierStart(code, true) || code === 92 /* '\\' */) {\n      return this.finishToken(tt.privateId, this.readWord1())\n    }\n  }\n\n  this.raise(this.pos, \"Unexpected character '\" + codePointToString(code) + \"'\")\n}\n\npp.getTokenFromCode = function(code) {\n  switch (code) {\n  // The interpretation of a dot depends on whether it is followed\n  // by a digit or another two dots.\n  case 46: // '.'\n    return this.readToken_dot()\n\n  // Punctuation tokens.\n  case 40: ++this.pos; return this.finishToken(tt.parenL)\n  case 41: ++this.pos; return this.finishToken(tt.parenR)\n  case 59: ++this.pos; return this.finishToken(tt.semi)\n  case 44: ++this.pos; return this.finishToken(tt.comma)\n  case 91: ++this.pos; return this.finishToken(tt.bracketL)\n  case 93: ++this.pos; return this.finishToken(tt.bracketR)\n  case 123: ++this.pos; return this.finishToken(tt.braceL)\n  case 125: ++this.pos; return this.finishToken(tt.braceR)\n  case 58: ++this.pos; return this.finishToken(tt.colon)\n\n  case 96: // '`'\n    if (this.options.ecmaVersion < 6) break\n    ++this.pos\n    return this.finishToken(tt.backQuote)\n\n  case 48: // '0'\n    let next = this.input.charCodeAt(this.pos + 1)\n    if (next === 120 || next === 88) return this.readRadixNumber(16) // '0x', '0X' - hex number\n    if (this.options.ecmaVersion >= 6) {\n      if (next === 111 || next === 79) return this.readRadixNumber(8) // '0o', '0O' - octal number\n      if (next === 98 || next === 66) return this.readRadixNumber(2) // '0b', '0B' - binary number\n    }\n\n  // Anything else beginning with a digit is an integer, octal\n  // number, or float.\n  case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: // 1-9\n    return this.readNumber(false)\n\n  // Quotes produce strings.\n  case 34: case 39: // '\"', \"'\"\n    return this.readString(code)\n\n  // Operators are parsed inline in tiny state machines. '=' (61) is\n  // often referred to. `finishOp` simply skips the amount of\n  // characters it is given as second argument, and returns a token\n  // of the type given by its first argument.\n  case 47: // '/'\n    return this.readToken_slash()\n\n  case 37: case 42: // '%*'\n    return this.readToken_mult_modulo_exp(code)\n\n  case 124: case 38: // '|&'\n    return this.readToken_pipe_amp(code)\n\n  case 94: // '^'\n    return this.readToken_caret()\n\n  case 43: case 45: // '+-'\n    return this.readToken_plus_min(code)\n\n  case 60: case 62: // '<>'\n    return this.readToken_lt_gt(code)\n\n  case 61: case 33: // '=!'\n    return this.readToken_eq_excl(code)\n\n  case 63: // '?'\n    return this.readToken_question()\n\n  case 126: // '~'\n    return this.finishOp(tt.prefix, 1)\n\n  case 35: // '#'\n    return this.readToken_numberSign()\n  }\n\n  this.raise(this.pos, \"Unexpected character '\" + codePointToString(code) + \"'\")\n}\n\npp.finishOp = function(type, size) {\n  let str = this.input.slice(this.pos, this.pos + size)\n  this.pos += size\n  return this.finishToken(type, str)\n}\n\npp.readRegexp = function() {\n  let escaped, inClass, start = this.pos\n  for (;;) {\n    if (this.pos >= this.input.length) this.raise(start, \"Unterminated regular expression\")\n    let ch = this.input.charAt(this.pos)\n    if (lineBreak.test(ch)) this.raise(start, \"Unterminated regular expression\")\n    if (!escaped) {\n      if (ch === \"[\") inClass = true\n      else if (ch === \"]\" && inClass) inClass = false\n      else if (ch === \"/\" && !inClass) break\n      escaped = ch === \"\\\\\"\n    } else escaped = false\n    ++this.pos\n  }\n  let pattern = this.input.slice(start, this.pos)\n  ++this.pos\n  let flagsStart = this.pos\n  let flags = this.readWord1()\n  if (this.containsEsc) this.unexpected(flagsStart)\n\n  // Validate pattern\n  const state = this.regexpState || (this.regexpState = new RegExpValidationState(this))\n  state.reset(start, pattern, flags)\n  this.validateRegExpFlags(state)\n  this.validateRegExpPattern(state)\n\n  // Create Literal#value property value.\n  let value = null\n  try {\n    value = new RegExp(pattern, flags)\n  } catch (e) {\n    // ESTree requires null if it failed to instantiate RegExp object.\n    // https://github.com/estree/estree/blob/a27003adf4fd7bfad44de9cef372a2eacd527b1c/es5.md#regexpliteral\n  }\n\n  return this.finishToken(tt.regexp, {pattern, flags, value})\n}\n\n// Read an integer in the given radix. Return null if zero digits\n// were read, the integer value otherwise. When `len` is given, this\n// will return `null` unless the integer has exactly `len` digits.\n\npp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {\n  // `len` is used for character escape sequences. In that case, disallow separators.\n  const allowSeparators = this.options.ecmaVersion >= 12 && len === undefined\n\n  // `maybeLegacyOctalNumericLiteral` is true if it doesn't have prefix (0x,0o,0b)\n  // and isn't fraction part nor exponent part. In that case, if the first digit\n  // is zero then disallow separators.\n  const isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48\n\n  let start = this.pos, total = 0, lastCode = 0\n  for (let i = 0, e = len == null ? Infinity : len; i < e; ++i, ++this.pos) {\n    let code = this.input.charCodeAt(this.pos), val\n\n    if (allowSeparators && code === 95) {\n      if (isLegacyOctalNumericLiteral) this.raiseRecoverable(this.pos, \"Numeric separator is not allowed in legacy octal numeric literals\")\n      if (lastCode === 95) this.raiseRecoverable(this.pos, \"Numeric separator must be exactly one underscore\")\n      if (i === 0) this.raiseRecoverable(this.pos, \"Numeric separator is not allowed at the first of digits\")\n      lastCode = code\n      continue\n    }\n\n    if (code >= 97) val = code - 97 + 10 // a\n    else if (code >= 65) val = code - 65 + 10 // A\n    else if (code >= 48 && code <= 57) val = code - 48 // 0-9\n    else val = Infinity\n    if (val >= radix) break\n    lastCode = code\n    total = total * radix + val\n  }\n\n  if (allowSeparators && lastCode === 95) this.raiseRecoverable(this.pos - 1, \"Numeric separator is not allowed at the last of digits\")\n  if (this.pos === start || len != null && this.pos - start !== len) return null\n\n  return total\n}\n\nfunction stringToNumber(str, isLegacyOctalNumericLiteral) {\n  if (isLegacyOctalNumericLiteral) {\n    return parseInt(str, 8)\n  }\n\n  // `parseFloat(value)` stops parsing at the first numeric separator then returns a wrong value.\n  return parseFloat(str.replace(/_/g, \"\"))\n}\n\nfunction stringToBigInt(str) {\n  if (typeof BigInt !== \"function\") {\n    return null\n  }\n\n  // `BigInt(value)` throws syntax error if the string contains numeric separators.\n  return BigInt(str.replace(/_/g, \"\"))\n}\n\npp.readRadixNumber = function(radix) {\n  let start = this.pos\n  this.pos += 2 // 0x\n  let val = this.readInt(radix)\n  if (val == null) this.raise(this.start + 2, \"Expected number in radix \" + radix)\n  if (this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110) {\n    val = stringToBigInt(this.input.slice(start, this.pos))\n    ++this.pos\n  } else if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, \"Identifier directly after number\")\n  return this.finishToken(tt.num, val)\n}\n\n// Read an integer, octal integer, or floating-point number.\n\npp.readNumber = function(startsWithDot) {\n  let start = this.pos\n  if (!startsWithDot && this.readInt(10, undefined, true) === null) this.raise(start, \"Invalid number\")\n  let octal = this.pos - start >= 2 && this.input.charCodeAt(start) === 48\n  if (octal && this.strict) this.raise(start, \"Invalid number\")\n  let next = this.input.charCodeAt(this.pos)\n  if (!octal && !startsWithDot && this.options.ecmaVersion >= 11 && next === 110) {\n    let val = stringToBigInt(this.input.slice(start, this.pos))\n    ++this.pos\n    if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, \"Identifier directly after number\")\n    return this.finishToken(tt.num, val)\n  }\n  if (octal && /[89]/.test(this.input.slice(start, this.pos))) octal = false\n  if (next === 46 && !octal) { // '.'\n    ++this.pos\n    this.readInt(10)\n    next = this.input.charCodeAt(this.pos)\n  }\n  if ((next === 69 || next === 101) && !octal) { // 'eE'\n    next = this.input.charCodeAt(++this.pos)\n    if (next === 43 || next === 45) ++this.pos // '+-'\n    if (this.readInt(10) === null) this.raise(start, \"Invalid number\")\n  }\n  if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.pos, \"Identifier directly after number\")\n\n  let val = stringToNumber(this.input.slice(start, this.pos), octal)\n  return this.finishToken(tt.num, val)\n}\n\n// Read a string value, interpreting backslash-escapes.\n\npp.readCodePoint = function() {\n  let ch = this.input.charCodeAt(this.pos), code\n\n  if (ch === 123) { // '{'\n    if (this.options.ecmaVersion < 6) this.unexpected()\n    let codePos = ++this.pos\n    code = this.readHexChar(this.input.indexOf(\"}\", this.pos) - this.pos)\n    ++this.pos\n    if (code > 0x10FFFF) this.invalidStringToken(codePos, \"Code point out of bounds\")\n  } else {\n    code = this.readHexChar(4)\n  }\n  return code\n}\n\npp.readString = function(quote) {\n  let out = \"\", chunkStart = ++this.pos\n  for (;;) {\n    if (this.pos >= this.input.length) this.raise(this.start, \"Unterminated string constant\")\n    let ch = this.input.charCodeAt(this.pos)\n    if (ch === quote) break\n    if (ch === 92) { // '\\'\n      out += this.input.slice(chunkStart, this.pos)\n      out += this.readEscapedChar(false)\n      chunkStart = this.pos\n    } else if (ch === 0x2028 || ch === 0x2029) {\n      if (this.options.ecmaVersion < 10) this.raise(this.start, \"Unterminated string constant\")\n      ++this.pos\n      if (this.options.locations) {\n        this.curLine++\n        this.lineStart = this.pos\n      }\n    } else {\n      if (isNewLine(ch)) this.raise(this.start, \"Unterminated string constant\")\n      ++this.pos\n    }\n  }\n  out += this.input.slice(chunkStart, this.pos++)\n  return this.finishToken(tt.string, out)\n}\n\n// Reads template string tokens.\n\nconst INVALID_TEMPLATE_ESCAPE_ERROR = {}\n\npp.tryReadTemplateToken = function() {\n  this.inTemplateElement = true\n  try {\n    this.readTmplToken()\n  } catch (err) {\n    if (err === INVALID_TEMPLATE_ESCAPE_ERROR) {\n      this.readInvalidTemplateToken()\n    } else {\n      throw err\n    }\n  }\n\n  this.inTemplateElement = false\n}\n\npp.invalidStringToken = function(position, message) {\n  if (this.inTemplateElement && this.options.ecmaVersion >= 9) {\n    throw INVALID_TEMPLATE_ESCAPE_ERROR\n  } else {\n    this.raise(position, message)\n  }\n}\n\npp.readTmplToken = function() {\n  let out = \"\", chunkStart = this.pos\n  for (;;) {\n    if (this.pos >= this.input.length) this.raise(this.start, \"Unterminated template\")\n    let ch = this.input.charCodeAt(this.pos)\n    if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) { // '`', '${'\n      if (this.pos === this.start && (this.type === tt.template || this.type === tt.invalidTemplate)) {\n        if (ch === 36) {\n          this.pos += 2\n          return this.finishToken(tt.dollarBraceL)\n        } else {\n          ++this.pos\n          return this.finishToken(tt.backQuote)\n        }\n      }\n      out += this.input.slice(chunkStart, this.pos)\n      return this.finishToken(tt.template, out)\n    }\n    if (ch === 92) { // '\\'\n      out += this.input.slice(chunkStart, this.pos)\n      out += this.readEscapedChar(true)\n      chunkStart = this.pos\n    } else if (isNewLine(ch)) {\n      out += this.input.slice(chunkStart, this.pos)\n      ++this.pos\n      switch (ch) {\n      case 13:\n        if (this.input.charCodeAt(this.pos) === 10) ++this.pos\n      case 10:\n        out += \"\\n\"\n        break\n      default:\n        out += String.fromCharCode(ch)\n        break\n      }\n      if (this.options.locations) {\n        ++this.curLine\n        this.lineStart = this.pos\n      }\n      chunkStart = this.pos\n    } else {\n      ++this.pos\n    }\n  }\n}\n\n// Reads a template token to search for the end, without validating any escape sequences\npp.readInvalidTemplateToken = function() {\n  for (; this.pos < this.input.length; this.pos++) {\n    switch (this.input[this.pos]) {\n    case \"\\\\\":\n      ++this.pos\n      break\n\n    case \"$\":\n      if (this.input[this.pos + 1] !== \"{\") break\n      // fall through\n    case \"`\":\n      return this.finishToken(tt.invalidTemplate, this.input.slice(this.start, this.pos))\n\n    case \"\\r\":\n      if (this.input[this.pos + 1] === \"\\n\") ++this.pos\n      // fall through\n    case \"\\n\": case \"\\u2028\": case \"\\u2029\":\n      ++this.curLine\n      this.lineStart = this.pos + 1\n      break\n    }\n  }\n  this.raise(this.start, \"Unterminated template\")\n}\n\n// Used to read escaped characters\n\npp.readEscapedChar = function(inTemplate) {\n  let ch = this.input.charCodeAt(++this.pos)\n  ++this.pos\n  switch (ch) {\n  case 110: return \"\\n\" // 'n' -> '\\n'\n  case 114: return \"\\r\" // 'r' -> '\\r'\n  case 120: return String.fromCharCode(this.readHexChar(2)) // 'x'\n  case 117: return codePointToString(this.readCodePoint()) // 'u'\n  case 116: return \"\\t\" // 't' -> '\\t'\n  case 98: return \"\\b\" // 'b' -> '\\b'\n  case 118: return \"\\u000b\" // 'v' -> '\\u000b'\n  case 102: return \"\\f\" // 'f' -> '\\f'\n  case 13: if (this.input.charCodeAt(this.pos) === 10) ++this.pos // '\\r\\n'\n  case 10: // ' \\n'\n    if (this.options.locations) { this.lineStart = this.pos; ++this.curLine }\n    return \"\"\n  case 56:\n  case 57:\n    if (this.strict) {\n      this.invalidStringToken(\n        this.pos - 1,\n        \"Invalid escape sequence\"\n      )\n    }\n    if (inTemplate) {\n      const codePos = this.pos - 1\n\n      this.invalidStringToken(\n        codePos,\n        \"Invalid escape sequence in template string\"\n      )\n    }\n  default:\n    if (ch >= 48 && ch <= 55) {\n      let octalStr = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0]\n      let octal = parseInt(octalStr, 8)\n      if (octal > 255) {\n        octalStr = octalStr.slice(0, -1)\n        octal = parseInt(octalStr, 8)\n      }\n      this.pos += octalStr.length - 1\n      ch = this.input.charCodeAt(this.pos)\n      if ((octalStr !== \"0\" || ch === 56 || ch === 57) && (this.strict || inTemplate)) {\n        this.invalidStringToken(\n          this.pos - 1 - octalStr.length,\n          inTemplate\n            ? \"Octal literal in template string\"\n            : \"Octal literal in strict mode\"\n        )\n      }\n      return String.fromCharCode(octal)\n    }\n    if (isNewLine(ch)) {\n      // Unicode new line characters after \\ get removed from output in both\n      // template literals and strings\n      if (this.options.locations) { this.lineStart = this.pos; ++this.curLine }\n      return \"\"\n    }\n    return String.fromCharCode(ch)\n  }\n}\n\n// Used to read character escape sequences ('\\x', '\\u', '\\U').\n\npp.readHexChar = function(len) {\n  let codePos = this.pos\n  let n = this.readInt(16, len)\n  if (n === null) this.invalidStringToken(codePos, \"Bad character escape sequence\")\n  return n\n}\n\n// Read an identifier, and return it as a string. Sets `this.containsEsc`\n// to whether the word contained a '\\u' escape.\n//\n// Incrementally adds only escaped chars, adding other chunks as-is\n// as a micro-optimization.\n\npp.readWord1 = function() {\n  this.containsEsc = false\n  let word = \"\", first = true, chunkStart = this.pos\n  let astral = this.options.ecmaVersion >= 6\n  while (this.pos < this.input.length) {\n    let ch = this.fullCharCodeAtPos()\n    if (isIdentifierChar(ch, astral)) {\n      this.pos += ch <= 0xffff ? 1 : 2\n    } else if (ch === 92) { // \"\\\"\n      this.containsEsc = true\n      word += this.input.slice(chunkStart, this.pos)\n      let escStart = this.pos\n      if (this.input.charCodeAt(++this.pos) !== 117) // \"u\"\n        this.invalidStringToken(this.pos, \"Expecting Unicode escape sequence \\\\uXXXX\")\n      ++this.pos\n      let esc = this.readCodePoint()\n      if (!(first ? isIdentifierStart : isIdentifierChar)(esc, astral))\n        this.invalidStringToken(escStart, \"Invalid Unicode escape\")\n      word += codePointToString(esc)\n      chunkStart = this.pos\n    } else {\n      break\n    }\n    first = false\n  }\n  return word + this.input.slice(chunkStart, this.pos)\n}\n\n// Read an identifier or keyword token. Will check for reserved\n// words when necessary.\n\npp.readWord = function() {\n  let word = this.readWord1()\n  let type = tt.name\n  if (this.keywords.test(word)) {\n    type = keywordTypes[word]\n  }\n  return this.finishToken(type, word)\n}\n"
  },
  {
    "path": "acorn/src/tokentype.js",
    "content": "// ## Token types\n\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\n\nexport class TokenType {\n  constructor(label, conf = {}) {\n    this.label = label\n    this.keyword = conf.keyword\n    this.beforeExpr = !!conf.beforeExpr\n    this.startsExpr = !!conf.startsExpr\n    this.isLoop = !!conf.isLoop\n    this.isAssign = !!conf.isAssign\n    this.prefix = !!conf.prefix\n    this.postfix = !!conf.postfix\n    this.binop = conf.binop || null\n    this.updateContext = null\n  }\n}\n\nfunction binop(name, prec) {\n  return new TokenType(name, {beforeExpr: true, binop: prec})\n}\nconst beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true}\n\n// Map keyword names to token types.\n\nexport const keywords = {}\n\n// Succinct definitions of keyword token types\nfunction kw(name, options = {}) {\n  options.keyword = name\n  return keywords[name] = new TokenType(name, options)\n}\n\nexport const types = {\n  num: new TokenType(\"num\", startsExpr),\n  regexp: new TokenType(\"regexp\", startsExpr),\n  string: new TokenType(\"string\", startsExpr),\n  name: new TokenType(\"name\", startsExpr),\n  privateId: new TokenType(\"privateId\", startsExpr),\n  eof: new TokenType(\"eof\"),\n\n  // Punctuation token types.\n  bracketL: new TokenType(\"[\", {beforeExpr: true, startsExpr: true}),\n  bracketR: new TokenType(\"]\"),\n  braceL: new TokenType(\"{\", {beforeExpr: true, startsExpr: true}),\n  braceR: new TokenType(\"}\"),\n  parenL: new TokenType(\"(\", {beforeExpr: true, startsExpr: true}),\n  parenR: new TokenType(\")\"),\n  comma: new TokenType(\",\", beforeExpr),\n  semi: new TokenType(\";\", beforeExpr),\n  colon: new TokenType(\":\", beforeExpr),\n  dot: new TokenType(\".\"),\n  question: new TokenType(\"?\", beforeExpr),\n  questionDot: new TokenType(\"?.\"),\n  arrow: new TokenType(\"=>\", beforeExpr),\n  template: new TokenType(\"template\"),\n  invalidTemplate: new TokenType(\"invalidTemplate\"),\n  ellipsis: new TokenType(\"...\", beforeExpr),\n  backQuote: new TokenType(\"`\", startsExpr),\n  dollarBraceL: new TokenType(\"${\", {beforeExpr: true, startsExpr: true}),\n\n  // Operators. These carry several kinds of properties to help the\n  // parser use them properly (the presence of these properties is\n  // what categorizes them as operators).\n  //\n  // `binop`, when present, specifies that this operator is a binary\n  // operator, and will refer to its precedence.\n  //\n  // `prefix` and `postfix` mark the operator as a prefix or postfix\n  // unary operator.\n  //\n  // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n  // binary operators with a very low precedence, that should result\n  // in AssignmentExpression nodes.\n\n  eq: new TokenType(\"=\", {beforeExpr: true, isAssign: true}),\n  assign: new TokenType(\"_=\", {beforeExpr: true, isAssign: true}),\n  incDec: new TokenType(\"++/--\", {prefix: true, postfix: true, startsExpr: true}),\n  prefix: new TokenType(\"!/~\", {beforeExpr: true, prefix: true, startsExpr: true}),\n  logicalOR: binop(\"||\", 1),\n  logicalAND: binop(\"&&\", 2),\n  bitwiseOR: binop(\"|\", 3),\n  bitwiseXOR: binop(\"^\", 4),\n  bitwiseAND: binop(\"&\", 5),\n  equality: binop(\"==/!=/===/!==\", 6),\n  relational: binop(\"</>/<=/>=\", 7),\n  bitShift: binop(\"<</>>/>>>\", 8),\n  plusMin: new TokenType(\"+/-\", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}),\n  modulo: binop(\"%\", 10),\n  star: binop(\"*\", 10),\n  slash: binop(\"/\", 10),\n  starstar: new TokenType(\"**\", {beforeExpr: true}),\n  coalesce: binop(\"??\", 1),\n\n  // Keyword token types.\n  _break: kw(\"break\"),\n  _case: kw(\"case\", beforeExpr),\n  _catch: kw(\"catch\"),\n  _continue: kw(\"continue\"),\n  _debugger: kw(\"debugger\"),\n  _default: kw(\"default\", beforeExpr),\n  _do: kw(\"do\", {isLoop: true, beforeExpr: true}),\n  _else: kw(\"else\", beforeExpr),\n  _finally: kw(\"finally\"),\n  _for: kw(\"for\", {isLoop: true}),\n  _function: kw(\"function\", startsExpr),\n  _if: kw(\"if\"),\n  _return: kw(\"return\", beforeExpr),\n  _switch: kw(\"switch\"),\n  _throw: kw(\"throw\", beforeExpr),\n  _try: kw(\"try\"),\n  _var: kw(\"var\"),\n  _const: kw(\"const\"),\n  _while: kw(\"while\", {isLoop: true}),\n  _with: kw(\"with\"),\n  _new: kw(\"new\", {beforeExpr: true, startsExpr: true}),\n  _this: kw(\"this\", startsExpr),\n  _super: kw(\"super\", startsExpr),\n  _class: kw(\"class\", startsExpr),\n  _extends: kw(\"extends\", beforeExpr),\n  _export: kw(\"export\"),\n  _import: kw(\"import\", startsExpr),\n  _null: kw(\"null\", startsExpr),\n  _true: kw(\"true\", startsExpr),\n  _false: kw(\"false\", startsExpr),\n  _in: kw(\"in\", {beforeExpr: true, binop: 7}),\n  _instanceof: kw(\"instanceof\", {beforeExpr: true, binop: 7}),\n  _typeof: kw(\"typeof\", {beforeExpr: true, prefix: true, startsExpr: true}),\n  _void: kw(\"void\", {beforeExpr: true, prefix: true, startsExpr: true}),\n  _delete: kw(\"delete\", {beforeExpr: true, prefix: true, startsExpr: true})\n}\n"
  },
  {
    "path": "acorn/src/unicode-property-data.js",
    "content": "import {wordsRegexp} from \"./util.js\"\nimport scriptValuesAddedInUnicode from \"./generated/scriptValuesAddedInUnicode.js\"\n\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n\n// #table-binary-unicode-properties\nconst ecma9BinaryProperties = \"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS\"\nconst ecma10BinaryProperties = ecma9BinaryProperties + \" Extended_Pictographic\"\nconst ecma11BinaryProperties = ecma10BinaryProperties\nconst ecma12BinaryProperties = ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\"\nconst ecma13BinaryProperties = ecma12BinaryProperties\nconst ecma14BinaryProperties = ecma13BinaryProperties\n\nconst unicodeBinaryProperties = {\n  9: ecma9BinaryProperties,\n  10: ecma10BinaryProperties,\n  11: ecma11BinaryProperties,\n  12: ecma12BinaryProperties,\n  13: ecma13BinaryProperties,\n  14: ecma14BinaryProperties\n}\n\n// #table-binary-unicode-properties-of-strings\nconst ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\"\n\nconst unicodeBinaryPropertiesOfStrings = {\n  9: \"\",\n  10: \"\",\n  11: \"\",\n  12: \"\",\n  13: \"\",\n  14: ecma14BinaryPropertiesOfStrings\n}\n\n// #table-unicode-general-category-values\nconst unicodeGeneralCategoryValues = \"Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu\"\n\n// #table-unicode-script-values\nconst ecma9ScriptValues = \"Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb\"\nconst ecma10ScriptValues = ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\"\nconst ecma11ScriptValues = ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\"\nconst ecma12ScriptValues = ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\"\nconst ecma13ScriptValues = ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\"\nconst ecma14ScriptValues = ecma13ScriptValues + \" \" + scriptValuesAddedInUnicode\n\nconst unicodeScriptValues = {\n  9: ecma9ScriptValues,\n  10: ecma10ScriptValues,\n  11: ecma11ScriptValues,\n  12: ecma12ScriptValues,\n  13: ecma13ScriptValues,\n  14: ecma14ScriptValues\n}\n\nconst data = {}\nfunction buildUnicodeData(ecmaVersion) {\n  const d = data[ecmaVersion] = {\n    binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + \" \" + unicodeGeneralCategoryValues),\n    binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n    nonBinary: {\n      General_Category: wordsRegexp(unicodeGeneralCategoryValues),\n      Script: wordsRegexp(unicodeScriptValues[ecmaVersion])\n    }\n  }\n  d.nonBinary.Script_Extensions = d.nonBinary.Script\n\n  d.nonBinary.gc = d.nonBinary.General_Category\n  d.nonBinary.sc = d.nonBinary.Script\n  d.nonBinary.scx = d.nonBinary.Script_Extensions\n}\n\nfor (const ecmaVersion of [9, 10, 11, 12, 13, 14]) {\n  buildUnicodeData(ecmaVersion)\n}\n\nexport default data\n"
  },
  {
    "path": "acorn/src/util.js",
    "content": "const {hasOwnProperty, toString} = Object.prototype\n\nexport const hasOwn = Object.hasOwn || ((obj, propName) => (\n  hasOwnProperty.call(obj, propName)\n))\n\nexport const isArray = Array.isArray || ((obj) => (\n  toString.call(obj) === \"[object Array]\"\n))\n\nconst regexpCache = Object.create(null)\n\nexport function wordsRegexp(words) {\n  return regexpCache[words] || (regexpCache[words] = new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\"))\n}\n\nexport function codePointToString(code) {\n  // UTF-16 Decoding\n  if (code <= 0xFFFF) return String.fromCharCode(code)\n  code -= 0x10000\n  return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)\n}\n\nexport const loneSurrogate = /[\\uD800-\\uDFFF]/u\n"
  },
  {
    "path": "acorn/src/whitespace.js",
    "content": "// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\n\nexport const lineBreak = /\\r\\n?|\\n|\\u2028|\\u2029/\nexport const lineBreakG = new RegExp(lineBreak.source, \"g\")\n\nexport function isNewLine(code) {\n  return code === 10 || code === 13 || code === 0x2028 || code === 0x2029\n}\n\nexport function nextLineBreak(code, from, end = code.length) {\n  for (let i = from; i < end; i++) {\n    let next = code.charCodeAt(i)\n    if (isNewLine(next))\n      return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1\n  }\n  return -1\n}\n\nexport const nonASCIIwhitespace = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/\n\nexport const skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g\n"
  },
  {
    "path": "acorn-loose/.npmignore",
    "content": ".tern-*\n/rollup.config.*\n/src\n"
  },
  {
    "path": "acorn-loose/CHANGELOG.md",
    "content": "## 8.5.2 (2025-07-01)\n\n### Bug fixes\n\nUse the proper version of `acorn` as a dependency.\n\n## 8.5.1 (2025-06-08)\n\n### Bug fixes\n\nHandle tokenizer exceptions raised by invalid numeric separators.\n\n## 8.5.0 (2025-04-17)\n\n### New features\n\nSupport ES2025 import attributes.\n\n## 8.4.0 (2023-10-26)\n\n### Bug fixes\n\nFix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.\n\nFix a bug where the parser would raise an error when an invalid escape was included in an identifier after a keyword.\n\n### New features\n\nUse a set of new, much more precise, TypeScript types.\n\n## 8.3.0 (2021-12-27)\n\n### New features\n\nSupport quoted export names.\n\nSupport class private fields with the `in` operator.\n\n### Bug fixes\n\nFix a bug that caused semicolons after `export *` statements to be parsed as empty statements.\n\n## 8.2.1 (2021-09-06)\n\n### Bug fixes\n\nDepend on the proper version of acorn.\n\n## 8.2.0 (2021-09-06)\n\n### New features\n\nAdd support for ES2022 class static blocks.\n\n## 8.1.0 (2021-04-24)\n\n### New features\n\nAdd support for ES2022 class fields and private methods.\n\n## 8.0.2 (2021-01-25)\n\n### Bug fixes\n\nAdjust package.json to work with Node 12.16.0 and 13.0-13.6.\n\n## 8.0.1 (2020-10-11)\n\n### Bug fixes\n\nAllow `for await` at the top level.\n\n## 8.0.0 (2020-08-12)\n\n### New features\n\nThe package can now be loaded directly as an ECMAScript module in node 13+.\n\n### Breaking changes\n\nThe `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.\n\n## 7.1.0 (2020-06-11)\n\n### Bug fixes\n\nFix various issues in regexp validation.\n\n### New features\n\nAdd support for `import.meta`.\n\nAdd support for optional chaining (`?.`) and nullish coalescing (`??`).\n\nSupport `export * as ns from \"source\"`.\n\n## 7.0.0 (2019-08-12)\n\n### Breaking changes\n\nChanges the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).\n\n## 6.1.0 (2019-07-04)\n\n### New features\n\nSupport bigint syntax.\n\nSupport dynamic import.\n\n## 6.0.0 (2018-09-14)\n\n### Breaking changes\n\nThis module has been moved into its own package, `acorn-loose`.\n\nPlugins work differently, and will have to be rewritten to work with this version.\n\nThe `parse_dammit` function is now simply called `parse`.\n\n## 5.1.0 (2017-07-05)\n\n### Bug fixes\n\nMake the ES module version of the loose parser actually work.\n\n## 4.0.4 (2016-12-19)\n\n### Bug fixes\n\nFix issue with loading acorn_loose.js with an AMD loader.\n\n## 3.2.0 (2016-06-07)\n\n### Bug fixes\n\nDon't crash when the loose parser is called without options object.\n\n## 3.1.0 (2016-04-18)\n\n### Bug fixes\n\nFix issue where the loose parser created invalid TemplateElement nodes for unclosed template literals.\n\n## 2.7.0 (2016-01-04)\n\n### Fixes\n\nMake sure the loose parser always attaches a `local` property to `ImportNamespaceSpecifier` nodes.\n\n## 2.6.4 (2015-11-12)\n\n### Fixes\n\nFix crash in loose parser when parsing invalid object pattern.\n\n### New features\n\nSupport plugins in the loose parser.\n\n## 2.5.0 (2015-10-27)\n\n### Fixes\n\nIn the loose parser, don't allow non-string-literals as import sources.\n"
  },
  {
    "path": "acorn-loose/LICENSE",
    "content": "MIT License\n\nCopyright (C) 2012-2020 by various contributors (see AUTHORS)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "acorn-loose/README.md",
    "content": "# Acorn loose parser\n\nAn error-tolerant JavaScript parser written in JavaScript.\n\nThis parser will parse _any_ text into an\n[ESTree](https://github.com/estree/estree) syntax tree that is a\nreasonable approximation of what it might mean as a JavaScript\nprogram.\n\nIt will, to recover from missing brackets, treat whitespace as\nsignificant, which has the downside that it might mis-parse a valid\nbut weirdly indented file. It is recommended to always try a parse\nwith the regular `acorn` parser first, and only fall back to this\nparser when that one finds syntax errors.\n\n## Community\n\nAcorn is open source software released under an\n[MIT license](https://github.com/acornjs/acorn/blob/master/acorn-loose/LICENSE).\n\nYou are welcome to [report\nbugs](https://github.com/acornjs/acorn/issues) or create pull requests\non [github](https://github.com/acornjs/acorn).\n\n## Installation\n\nThe easiest way to install acorn-loose is from [`npm`](https://www.npmjs.com/):\n\n```sh\nnpm install acorn-loose\n```\n\nAlternately, you can download the source and build acorn yourself:\n\n```sh\ngit clone https://github.com/acornjs/acorn.git\ncd acorn\nnpm install\n```\n\n## Interface\n\n**parse**`(input, options)` takes an input string and a set of options\n(the same options as\n[acorn](https://github.com/acornjs/acorn/blob/master/acorn/README.md)\ntakes), and returns a syntax tree, even if the code isn't\nsyntactically valid. It'll insert identifier nodes with name `\"✖\"` as\nplaceholders in places where it can't make sense of the input. Depends\non the `acorn` package, because it uses the same tokenizer.\n\n```javascript\nimport * as acornLoose from \"acorn-loose\"\nconsole.log(acornLoose.parse(\"1 / * 4 )[2]\", {ecmaVersion: 2020}))\n```\n\nLike the regular parser, the loose parser supports plugins. You can\ntake the **`LooseParser`** class exported by the module, and call its\nstatic `extend` method with one or more plugins to get a customized\nparser class. The class has a static `parse` method that acts like the\ntop-level `parse` method.\n\n**isDummy**`(node)` takes a `Node` and returns `true` if it is a dummy node\ninserted by the parser. The function performs a simple equality check on the\nnode's name.\n"
  },
  {
    "path": "acorn-loose/package.json",
    "content": "{\n  \"name\": \"acorn-loose\",\n  \"description\": \"Error-tolerant ECMAScript parser\",\n  \"homepage\": \"https://github.com/acornjs/acorn\",\n  \"main\": \"dist/acorn-loose.js\",\n  \"module\": \"dist/acorn-loose.mjs\",\n  \"types\": \"dist/acorn-loose.d.ts\",\n  \"exports\": {\n    \".\": [\n      {\n        \"import\": \"./dist/acorn-loose.mjs\",\n        \"require\": \"./dist/acorn-loose.js\",\n        \"default\": \"./dist/acorn-loose.js\"\n      },\n      \"./dist/acorn-loose.js\"\n    ],\n    \"./package.json\": \"./package.json\"\n  },\n  \"version\": \"8.5.2\",\n  \"engines\": {\n    \"node\": \">=0.4.0\"\n  },\n  \"dependencies\": {\n    \"acorn\": \"^8.15.0\"\n  },\n  \"maintainers\": [\n    {\n      \"name\": \"Marijn Haverbeke\",\n      \"email\": \"marijnh@gmail.com\",\n      \"web\": \"https://marijnhaverbeke.nl\"\n    },\n    {\n      \"name\": \"Ingvar Stepanyan\",\n      \"email\": \"me@rreverser.com\",\n      \"web\": \"https://rreverser.com/\"\n    },\n    {\n      \"name\": \"Adrian Heine\",\n      \"web\": \"http://adrianheine.de\"\n    }\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/acornjs/acorn.git\"\n  },\n  \"scripts\": {\n    \"prepare\": \"cd ..; npm run build:loose\"\n  },\n  \"license\": \"MIT\"\n}\n"
  },
  {
    "path": "acorn-loose/rollup.config.mjs",
    "content": "import {readFile, writeFile} from \"node:fs/promises\"\nimport buble from \"@rollup/plugin-buble\"\n\nconst copy = (from, to) => ({\n  async writeBundle() { await writeFile(to, await readFile(from)) }\n})\n\nexport default {\n  external: [\"acorn\"],\n  input: \"acorn-loose/src/index.js\",\n  output: [\n    {\n      file: \"acorn-loose/dist/acorn-loose.js\",\n      format: \"umd\",\n      name: \"acorn.loose\",\n      globals: {acorn: \"acorn\"}\n    },\n    {\n      file: \"acorn-loose/dist/acorn-loose.mjs\",\n      format: \"es\",\n      globals: {acorn: \"acorn\"}\n    }\n  ],\n  plugins: [\n    buble({transforms: {dangerousForOf: true}}),\n    copy(\"acorn-loose/src/acorn-loose.d.ts\", \"acorn-loose/dist/acorn-loose.d.ts\"),\n    copy(\"acorn-loose/src/acorn-loose.d.ts\", \"acorn-loose/dist/acorn-loose.d.mts\")\n  ]\n}\n"
  },
  {
    "path": "acorn-loose/src/acorn-loose.d.ts",
    "content": "import * as acorn from \"acorn\"\n\nexport const LooseParser: typeof acorn.Parser\n\nexport function parse (input: string, options: acorn.Options): acorn.Program\n\n/**\n * returns `true` if it is a dummy node inserted by the parser. The function performs a simple equality check on the node's name.\n */\nexport function isDummy(node: acorn.Node): boolean\n"
  },
  {
    "path": "acorn-loose/src/expression.js",
    "content": "import {LooseParser} from \"./state.js\"\nimport {isDummy} from \"./parseutil.js\"\nimport {tokTypes as tt, tokContexts as tokContextTypes} from \"acorn\"\n\nconst lp = LooseParser.prototype\n\nlp.checkLVal = function(expr) {\n  if (!expr) return expr\n  switch (expr.type) {\n  case \"Identifier\":\n  case \"MemberExpression\":\n    return expr\n\n  case \"ParenthesizedExpression\":\n    expr.expression = this.checkLVal(expr.expression)\n    return expr\n\n  default:\n    return this.dummyIdent()\n  }\n}\n\nlp.parseExpression = function(noIn) {\n  let start = this.storeCurrentPos()\n  let expr = this.parseMaybeAssign(noIn)\n  if (this.tok.type === tt.comma) {\n    let node = this.startNodeAt(start)\n    node.expressions = [expr]\n    while (this.eat(tt.comma)) node.expressions.push(this.parseMaybeAssign(noIn))\n    return this.finishNode(node, \"SequenceExpression\")\n  }\n  return expr\n}\n\nlp.parseParenExpression = function() {\n  this.pushCx()\n  this.expect(tt.parenL)\n  let val = this.parseExpression()\n  this.popCx()\n  this.expect(tt.parenR)\n  return val\n}\n\nlp.parseMaybeAssign = function(noIn) {\n  // `yield` should be an identifier reference if it's not in generator functions.\n  if (this.inGenerator && this.toks.isContextual(\"yield\")) {\n    let node = this.startNode()\n    this.next()\n    if (this.semicolon() || this.canInsertSemicolon() || (this.tok.type !== tt.star && !this.tok.type.startsExpr)) {\n      node.delegate = false\n      node.argument = null\n    } else {\n      node.delegate = this.eat(tt.star)\n      node.argument = this.parseMaybeAssign()\n    }\n    return this.finishNode(node, \"YieldExpression\")\n  }\n\n  let start = this.storeCurrentPos()\n  let left = this.parseMaybeConditional(noIn)\n  if (this.tok.type.isAssign) {\n    let node = this.startNodeAt(start)\n    node.operator = this.tok.value\n    node.left = this.tok.type === tt.eq ? this.toAssignable(left) : this.checkLVal(left)\n    this.next()\n    node.right = this.parseMaybeAssign(noIn)\n    return this.finishNode(node, \"AssignmentExpression\")\n  }\n  return left\n}\n\nlp.parseMaybeConditional = function(noIn) {\n  let start = this.storeCurrentPos()\n  let expr = this.parseExprOps(noIn)\n  if (this.eat(tt.question)) {\n    let node = this.startNodeAt(start)\n    node.test = expr\n    node.consequent = this.parseMaybeAssign()\n    node.alternate = this.expect(tt.colon) ? this.parseMaybeAssign(noIn) : this.dummyIdent()\n    return this.finishNode(node, \"ConditionalExpression\")\n  }\n  return expr\n}\n\nlp.parseExprOps = function(noIn) {\n  let start = this.storeCurrentPos()\n  let indent = this.curIndent, line = this.curLineStart\n  return this.parseExprOp(this.parseMaybeUnary(false), start, -1, noIn, indent, line)\n}\n\nlp.parseExprOp = function(left, start, minPrec, noIn, indent, line) {\n  if (this.curLineStart !== line && this.curIndent < indent && this.tokenStartsLine()) return left\n  let prec = this.tok.type.binop\n  if (prec != null && (!noIn || this.tok.type !== tt._in)) {\n    if (prec > minPrec) {\n      let node = this.startNodeAt(start)\n      node.left = left\n      node.operator = this.tok.value\n      this.next()\n      if (this.curLineStart !== line && this.curIndent < indent && this.tokenStartsLine()) {\n        node.right = this.dummyIdent()\n      } else {\n        let rightStart = this.storeCurrentPos()\n        node.right = this.parseExprOp(this.parseMaybeUnary(false), rightStart, prec, noIn, indent, line)\n      }\n      this.finishNode(node, /&&|\\|\\||\\?\\?/.test(node.operator) ? \"LogicalExpression\" : \"BinaryExpression\")\n      return this.parseExprOp(node, start, minPrec, noIn, indent, line)\n    }\n  }\n  return left\n}\n\nlp.parseMaybeUnary = function(sawUnary) {\n  let start = this.storeCurrentPos(), expr\n  if (this.options.ecmaVersion >= 8 && this.toks.isContextual(\"await\") &&\n      (this.inAsync || (this.toks.inModule && this.options.ecmaVersion >= 13) ||\n       (!this.inFunction && this.options.allowAwaitOutsideFunction))) {\n    expr = this.parseAwait()\n    sawUnary = true\n  } else if (this.tok.type.prefix) {\n    let node = this.startNode(), update = this.tok.type === tt.incDec\n    if (!update) sawUnary = true\n    node.operator = this.tok.value\n    node.prefix = true\n    this.next()\n    node.argument = this.parseMaybeUnary(true)\n    if (update) node.argument = this.checkLVal(node.argument)\n    expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\")\n  } else if (this.tok.type === tt.ellipsis) {\n    let node = this.startNode()\n    this.next()\n    node.argument = this.parseMaybeUnary(sawUnary)\n    expr = this.finishNode(node, \"SpreadElement\")\n  } else if (!sawUnary && this.tok.type === tt.privateId) {\n    expr = this.parsePrivateIdent()\n  } else {\n    expr = this.parseExprSubscripts()\n    while (this.tok.type.postfix && !this.canInsertSemicolon()) {\n      let node = this.startNodeAt(start)\n      node.operator = this.tok.value\n      node.prefix = false\n      node.argument = this.checkLVal(expr)\n      this.next()\n      expr = this.finishNode(node, \"UpdateExpression\")\n    }\n  }\n\n  if (!sawUnary && this.eat(tt.starstar)) {\n    let node = this.startNodeAt(start)\n    node.operator = \"**\"\n    node.left = expr\n    node.right = this.parseMaybeUnary(false)\n    return this.finishNode(node, \"BinaryExpression\")\n  }\n\n  return expr\n}\n\nlp.parseExprSubscripts = function() {\n  let start = this.storeCurrentPos()\n  return this.parseSubscripts(this.parseExprAtom(), start, false, this.curIndent, this.curLineStart)\n}\n\nlp.parseSubscripts = function(base, start, noCalls, startIndent, line) {\n  const optionalSupported = this.options.ecmaVersion >= 11\n  let optionalChained = false\n  for (;;) {\n    if (this.curLineStart !== line && this.curIndent <= startIndent && this.tokenStartsLine()) {\n      if (this.tok.type === tt.dot && this.curIndent === startIndent)\n        --startIndent\n      else\n        break\n    }\n\n    let maybeAsyncArrow = base.type === \"Identifier\" && base.name === \"async\" && !this.canInsertSemicolon()\n    let optional = optionalSupported && this.eat(tt.questionDot)\n    if (optional) {\n      optionalChained = true\n    }\n\n    if ((optional && this.tok.type !== tt.parenL && this.tok.type !== tt.bracketL && this.tok.type !== tt.backQuote) || this.eat(tt.dot)) {\n      let node = this.startNodeAt(start)\n      node.object = base\n      if (this.curLineStart !== line && this.curIndent <= startIndent && this.tokenStartsLine())\n        node.property = this.dummyIdent()\n      else\n        node.property = this.parsePropertyAccessor() || this.dummyIdent()\n      node.computed = false\n      if (optionalSupported) {\n        node.optional = optional\n      }\n      base = this.finishNode(node, \"MemberExpression\")\n    } else if (this.tok.type === tt.bracketL) {\n      this.pushCx()\n      this.next()\n      let node = this.startNodeAt(start)\n      node.object = base\n      node.property = this.parseExpression()\n      node.computed = true\n      if (optionalSupported) {\n        node.optional = optional\n      }\n      this.popCx()\n      this.expect(tt.bracketR)\n      base = this.finishNode(node, \"MemberExpression\")\n    } else if (!noCalls && this.tok.type === tt.parenL) {\n      let exprList = this.parseExprList(tt.parenR)\n      if (maybeAsyncArrow && this.eat(tt.arrow))\n        return this.parseArrowExpression(this.startNodeAt(start), exprList, true)\n      let node = this.startNodeAt(start)\n      node.callee = base\n      node.arguments = exprList\n      if (optionalSupported) {\n        node.optional = optional\n      }\n      base = this.finishNode(node, \"CallExpression\")\n    } else if (this.tok.type === tt.backQuote) {\n      let node = this.startNodeAt(start)\n      node.tag = base\n      node.quasi = this.parseTemplate()\n      base = this.finishNode(node, \"TaggedTemplateExpression\")\n    } else {\n      break\n    }\n  }\n\n  if (optionalChained) {\n    const chainNode = this.startNodeAt(start)\n    chainNode.expression = base\n    base = this.finishNode(chainNode, \"ChainExpression\")\n  }\n  return base\n}\n\nlp.parseExprAtom = function() {\n  let node\n  switch (this.tok.type) {\n  case tt._this:\n  case tt._super:\n    let type = this.tok.type === tt._this ? \"ThisExpression\" : \"Super\"\n    node = this.startNode()\n    this.next()\n    return this.finishNode(node, type)\n\n  case tt.name:\n    let start = this.storeCurrentPos()\n    let id = this.parseIdent()\n    let isAsync = false\n    if (id.name === \"async\" && !this.canInsertSemicolon()) {\n      if (this.eat(tt._function)) {\n        this.toks.overrideContext(tokContextTypes.f_expr)\n        return this.parseFunction(this.startNodeAt(start), false, true)\n      }\n      if (this.tok.type === tt.name) {\n        id = this.parseIdent()\n        isAsync = true\n      }\n    }\n    return this.eat(tt.arrow) ? this.parseArrowExpression(this.startNodeAt(start), [id], isAsync) : id\n\n  case tt.regexp:\n    node = this.startNode()\n    let val = this.tok.value\n    node.regex = {pattern: val.pattern, flags: val.flags}\n    node.value = val.value\n    node.raw = this.input.slice(this.tok.start, this.tok.end)\n    this.next()\n    return this.finishNode(node, \"Literal\")\n\n  case tt.num: case tt.string:\n    node = this.startNode()\n    node.value = this.tok.value\n    node.raw = this.input.slice(this.tok.start, this.tok.end)\n    if (this.tok.type === tt.num && node.raw.charCodeAt(node.raw.length - 1) === 110)\n      node.bigint = node.value != null ? node.value.toString() : node.raw.slice(0, -1).replace(/_/g, \"\")\n    this.next()\n    return this.finishNode(node, \"Literal\")\n\n  case tt._null: case tt._true: case tt._false:\n    node = this.startNode()\n    node.value = this.tok.type === tt._null ? null : this.tok.type === tt._true\n    node.raw = this.tok.type.keyword\n    this.next()\n    return this.finishNode(node, \"Literal\")\n\n  case tt.parenL:\n    let parenStart = this.storeCurrentPos()\n    this.next()\n    let inner = this.parseExpression()\n    this.expect(tt.parenR)\n    if (this.eat(tt.arrow)) {\n      // (a,)=>a // SequenceExpression makes dummy in the last hole. Drop the dummy.\n      let params = inner.expressions || [inner]\n      if (params.length && isDummy(params[params.length - 1]))\n        params.pop()\n      return this.parseArrowExpression(this.startNodeAt(parenStart), params)\n    }\n    if (this.options.preserveParens) {\n      let par = this.startNodeAt(parenStart)\n      par.expression = inner\n      inner = this.finishNode(par, \"ParenthesizedExpression\")\n    }\n    return inner\n\n  case tt.bracketL:\n    node = this.startNode()\n    node.elements = this.parseExprList(tt.bracketR, true)\n    return this.finishNode(node, \"ArrayExpression\")\n\n  case tt.braceL:\n    this.toks.overrideContext(tokContextTypes.b_expr)\n    return this.parseObj()\n\n  case tt._class:\n    return this.parseClass(false)\n\n  case tt._function:\n    node = this.startNode()\n    this.next()\n    return this.parseFunction(node, false)\n\n  case tt._new:\n    return this.parseNew()\n\n  case tt.backQuote:\n    return this.parseTemplate()\n\n  case tt._import:\n    if (this.options.ecmaVersion >= 11) {\n      return this.parseExprImport()\n    } else {\n      return this.dummyIdent()\n    }\n\n  default:\n    return this.dummyIdent()\n  }\n}\n\nlp.parseExprImport = function() {\n  const node = this.startNode()\n  const meta = this.parseIdent(true)\n  switch (this.tok.type) {\n  case tt.parenL:\n    return this.parseDynamicImport(node)\n  case tt.dot:\n    node.meta = meta\n    return this.parseImportMeta(node)\n  default:\n    node.name = \"import\"\n    return this.finishNode(node, \"Identifier\")\n  }\n}\n\nlp.parseDynamicImport = function(node) {\n  const list = this.parseExprList(tt.parenR)\n  node.source = list[0] || this.dummyString()\n  node.options = list[1] || null\n  return this.finishNode(node, \"ImportExpression\")\n}\n\nlp.parseImportMeta = function(node) {\n  this.next() // skip '.'\n  node.property = this.parseIdent(true)\n  return this.finishNode(node, \"MetaProperty\")\n}\n\nlp.parseNew = function() {\n  let node = this.startNode(), startIndent = this.curIndent, line = this.curLineStart\n  let meta = this.parseIdent(true)\n  if (this.options.ecmaVersion >= 6 && this.eat(tt.dot)) {\n    node.meta = meta\n    node.property = this.parseIdent(true)\n    return this.finishNode(node, \"MetaProperty\")\n  }\n  let start = this.storeCurrentPos()\n  node.callee = this.parseSubscripts(this.parseExprAtom(), start, true, startIndent, line)\n  if (this.tok.type === tt.parenL) {\n    node.arguments = this.parseExprList(tt.parenR)\n  } else {\n    node.arguments = []\n  }\n  return this.finishNode(node, \"NewExpression\")\n}\n\nlp.parseTemplateElement = function() {\n  let elem = this.startNode()\n\n  // The loose parser accepts invalid unicode escapes even in untagged templates.\n  if (this.tok.type === tt.invalidTemplate) {\n    elem.value = {\n      raw: this.tok.value,\n      cooked: null\n    }\n  } else {\n    elem.value = {\n      raw: this.input.slice(this.tok.start, this.tok.end).replace(/\\r\\n?/g, \"\\n\"),\n      cooked: this.tok.value\n    }\n  }\n  this.next()\n  elem.tail = this.tok.type === tt.backQuote\n  return this.finishNode(elem, \"TemplateElement\")\n}\n\nlp.parseTemplate = function() {\n  let node = this.startNode()\n  this.next()\n  node.expressions = []\n  let curElt = this.parseTemplateElement()\n  node.quasis = [curElt]\n  while (!curElt.tail) {\n    this.next()\n    node.expressions.push(this.parseExpression())\n    if (this.expect(tt.braceR)) {\n      curElt = this.parseTemplateElement()\n    } else {\n      curElt = this.startNode()\n      curElt.value = {cooked: \"\", raw: \"\"}\n      curElt.tail = true\n      this.finishNode(curElt, \"TemplateElement\")\n    }\n    node.quasis.push(curElt)\n  }\n  this.expect(tt.backQuote)\n  return this.finishNode(node, \"TemplateLiteral\")\n}\n\nlp.parseObj = function() {\n  let node = this.startNode()\n  node.properties = []\n  this.pushCx()\n  let indent = this.curIndent + 1, line = this.curLineStart\n  this.eat(tt.braceL)\n  if (this.curIndent + 1 < indent) { indent = this.curIndent; line = this.curLineStart }\n  while (!this.closes(tt.braceR, indent, line)) {\n    let prop = this.startNode(), isGenerator, isAsync, start\n    if (this.options.ecmaVersion >= 9 && this.eat(tt.ellipsis)) {\n      prop.argument = this.parseMaybeAssign()\n      node.properties.push(this.finishNode(prop, \"SpreadElement\"))\n      this.eat(tt.comma)\n      continue\n    }\n    if (this.options.ecmaVersion >= 6) {\n      start = this.storeCurrentPos()\n      prop.method = false\n      prop.shorthand = false\n      isGenerator = this.eat(tt.star)\n    }\n    this.parsePropertyName(prop)\n    if (this.toks.isAsyncProp(prop)) {\n      isAsync = true\n      isGenerator = this.options.ecmaVersion >= 9 && this.eat(tt.star)\n      this.parsePropertyName(prop)\n    } else {\n      isAsync = false\n    }\n    if (isDummy(prop.key)) { if (isDummy(this.parseMaybeAssign())) this.next(); this.eat(tt.comma); continue }\n    if (this.eat(tt.colon)) {\n      prop.kind = \"init\"\n      prop.value = this.parseMaybeAssign()\n    } else if (this.options.ecmaVersion >= 6 && (this.tok.type === tt.parenL || this.tok.type === tt.braceL)) {\n      prop.kind = \"init\"\n      prop.method = true\n      prop.value = this.parseMethod(isGenerator, isAsync)\n    } else if (this.options.ecmaVersion >= 5 && prop.key.type === \"Identifier\" &&\n               !prop.computed && (prop.key.name === \"get\" || prop.key.name === \"set\") &&\n               (this.tok.type !== tt.comma && this.tok.type !== tt.braceR && this.tok.type !== tt.eq)) {\n      prop.kind = prop.key.name\n      this.parsePropertyName(prop)\n      prop.value = this.parseMethod(false)\n    } else {\n      prop.kind = \"init\"\n      if (this.options.ecmaVersion >= 6) {\n        if (this.eat(tt.eq)) {\n          let assign = this.startNodeAt(start)\n          assign.operator = \"=\"\n          assign.left = prop.key\n          assign.right = this.parseMaybeAssign()\n          prop.value = this.finishNode(assign, \"AssignmentExpression\")\n        } else {\n          prop.value = prop.key\n        }\n      } else {\n        prop.value = this.dummyIdent()\n      }\n      prop.shorthand = true\n    }\n    node.properties.push(this.finishNode(prop, \"Property\"))\n    this.eat(tt.comma)\n  }\n  this.popCx()\n  if (!this.eat(tt.braceR)) {\n    // If there is no closing brace, make the node span to the start\n    // of the next token (this is useful for Tern)\n    this.last.end = this.tok.start\n    if (this.options.locations) this.last.loc.end = this.tok.loc.start\n  }\n  return this.finishNode(node, \"ObjectExpression\")\n}\n\nlp.parsePropertyName = function(prop) {\n  if (this.options.ecmaVersion >= 6) {\n    if (this.eat(tt.bracketL)) {\n      prop.computed = true\n      prop.key = this.parseExpression()\n      this.expect(tt.bracketR)\n      return\n    } else {\n      prop.computed = false\n    }\n  }\n  let key = (this.tok.type === tt.num || this.tok.type === tt.string) ? this.parseExprAtom() : this.parseIdent()\n  prop.key = key || this.dummyIdent()\n}\n\nlp.parsePropertyAccessor = function() {\n  if (this.tok.type === tt.name || this.tok.type.keyword) return this.parseIdent()\n  if (this.tok.type === tt.privateId) return this.parsePrivateIdent()\n}\n\nlp.parseIdent = function() {\n  let name = this.tok.type === tt.name ? this.tok.value : this.tok.type.keyword\n  if (!name) return this.dummyIdent()\n  if (this.tok.type.keyword) this.toks.type = tt.name\n  let node = this.startNode()\n  this.next()\n  node.name = name\n  return this.finishNode(node, \"Identifier\")\n}\n\nlp.parsePrivateIdent = function() {\n  const node = this.startNode()\n  node.name = this.tok.value\n  this.next()\n  return this.finishNode(node, \"PrivateIdentifier\")\n}\n\nlp.initFunction = function(node) {\n  node.id = null\n  node.params = []\n  if (this.options.ecmaVersion >= 6) {\n    node.generator = false\n    node.expression = false\n  }\n  if (this.options.ecmaVersion >= 8)\n    node.async = false\n}\n\n// Convert existing expression atom to assignable pattern\n// if possible.\n\nlp.toAssignable = function(node, binding) {\n  if (!node || node.type === \"Identifier\" || (node.type === \"MemberExpression\" && !binding)) {\n    // Okay\n  } else if (node.type === \"ParenthesizedExpression\") {\n    this.toAssignable(node.expression, binding)\n  } else if (this.options.ecmaVersion < 6) {\n    return this.dummyIdent()\n  } else if (node.type === \"ObjectExpression\") {\n    node.type = \"ObjectPattern\"\n    for (let prop of node.properties)\n      this.toAssignable(prop, binding)\n  } else if (node.type === \"ArrayExpression\") {\n    node.type = \"ArrayPattern\"\n    this.toAssignableList(node.elements, binding)\n  } else if (node.type === \"Property\") {\n    this.toAssignable(node.value, binding)\n  } else if (node.type === \"SpreadElement\") {\n    node.type = \"RestElement\"\n    this.toAssignable(node.argument, binding)\n  } else if (node.type === \"AssignmentExpression\") {\n    node.type = \"AssignmentPattern\"\n    delete node.operator\n  } else {\n    return this.dummyIdent()\n  }\n  return node\n}\n\nlp.toAssignableList = function(exprList, binding) {\n  for (let expr of exprList)\n    this.toAssignable(expr, binding)\n  return exprList\n}\n\nlp.parseFunctionParams = function(params) {\n  params = this.parseExprList(tt.parenR)\n  return this.toAssignableList(params, true)\n}\n\nlp.parseMethod = function(isGenerator, isAsync) {\n  let node = this.startNode(), oldInAsync = this.inAsync, oldInGenerator = this.inGenerator, oldInFunction = this.inFunction\n  this.initFunction(node)\n  if (this.options.ecmaVersion >= 6)\n    node.generator = !!isGenerator\n  if (this.options.ecmaVersion >= 8)\n    node.async = !!isAsync\n  this.inAsync = node.async\n  this.inGenerator = node.generator\n  this.inFunction = true\n  node.params = this.parseFunctionParams()\n  node.body = this.parseBlock()\n  this.toks.adaptDirectivePrologue(node.body.body)\n  this.inAsync = oldInAsync\n  this.inGenerator = oldInGenerator\n  this.inFunction = oldInFunction\n  return this.finishNode(node, \"FunctionExpression\")\n}\n\nlp.parseArrowExpression = function(node, params, isAsync) {\n  let oldInAsync = this.inAsync, oldInGenerator = this.inGenerator, oldInFunction = this.inFunction\n  this.initFunction(node)\n  if (this.options.ecmaVersion >= 8)\n    node.async = !!isAsync\n  this.inAsync = node.async\n  this.inGenerator = false\n  this.inFunction = true\n  node.params = this.toAssignableList(params, true)\n  node.expression = this.tok.type !== tt.braceL\n  if (node.expression) {\n    node.body = this.parseMaybeAssign()\n  } else {\n    node.body = this.parseBlock()\n    this.toks.adaptDirectivePrologue(node.body.body)\n  }\n  this.inAsync = oldInAsync\n  this.inGenerator = oldInGenerator\n  this.inFunction = oldInFunction\n  return this.finishNode(node, \"ArrowFunctionExpression\")\n}\n\nlp.parseExprList = function(close, allowEmpty) {\n  this.pushCx()\n  let indent = this.curIndent, line = this.curLineStart, elts = []\n  this.next() // Opening bracket\n  while (!this.closes(close, indent + 1, line)) {\n    if (this.eat(tt.comma)) {\n      elts.push(allowEmpty ? null : this.dummyIdent())\n      continue\n    }\n    let elt = this.parseMaybeAssign()\n    if (isDummy(elt)) {\n      if (this.closes(close, indent, line)) break\n      this.next()\n    } else {\n      elts.push(elt)\n    }\n    this.eat(tt.comma)\n  }\n  this.popCx()\n  if (!this.eat(close)) {\n    // If there is no closing brace, make the node span to the start\n    // of the next token (this is useful for Tern)\n    this.last.end = this.tok.start\n    if (this.options.locations) this.last.loc.end = this.tok.loc.start\n  }\n  return elts\n}\n\nlp.parseAwait = function() {\n  let node = this.startNode()\n  this.next()\n  node.argument = this.parseMaybeUnary()\n  return this.finishNode(node, \"AwaitExpression\")\n}\n"
  },
  {
    "path": "acorn-loose/src/index.js",
    "content": "// Acorn: Loose parser\n//\n// This module provides an alternative parser that exposes that same\n// interface as the main module's `parse` function, but will try to\n// parse anything as JavaScript, repairing syntax error the best it\n// can. There are circumstances in which it will raise an error and\n// give up, but they are very rare. The resulting AST will be a mostly\n// valid JavaScript AST (as per the [ESTree spec][estree], except\n// that:\n//\n// - Return outside functions is allowed\n//\n// - Label consistency (no conflicts, break only to existing labels)\n//   is not enforced.\n//\n// - Bogus Identifier nodes with a name of `\"✖\"` are inserted whenever\n//   the parser got too confused to return anything meaningful.\n//\n// [estree]: https://github.com/estree/estree\n//\n// The expected use for this is to *first* try `acorn.parse`, and only\n// if that fails switch to the loose parser. The loose parser might\n// parse badly indented code incorrectly, so **don't** use it as your\n// default parser.\n//\n// Quite a lot of acorn.js is duplicated here. The alternative was to\n// add a *lot* of extra cruft to that file, making it less readable\n// and slower. Copying and editing the code allowed me to make\n// invasive changes and simplifications without creating a complicated\n// tangle.\n\nimport {defaultOptions} from \"acorn\"\nimport {LooseParser} from \"./state.js\"\nimport \"./tokenize.js\"\nimport \"./statement.js\"\nimport \"./expression.js\"\n\nexport {LooseParser} from \"./state.js\"\nexport {isDummy} from \"./parseutil.js\"\n\ndefaultOptions.tabSize = 4\n\nexport function parse(input, options) {\n  return LooseParser.parse(input, options)\n}\n"
  },
  {
    "path": "acorn-loose/src/package.json",
    "content": "{\n  \"type\": \"module\"\n}\n"
  },
  {
    "path": "acorn-loose/src/parseutil.js",
    "content": "export const dummyValue = \"✖\"\n\nexport function isDummy(node) { return node.name === dummyValue }\n"
  },
  {
    "path": "acorn-loose/src/state.js",
    "content": "import {Parser, SourceLocation, tokTypes as tt, Node, lineBreak, isNewLine} from \"acorn\"\nimport {dummyValue} from \"./parseutil.js\"\n\nfunction noop() {}\n\nexport class LooseParser {\n  constructor(input, options = {}) {\n    this.toks = this.constructor.BaseParser.tokenizer(input, options)\n    this.options = this.toks.options\n    this.input = this.toks.input\n    this.tok = this.last = {type: tt.eof, start: 0, end: 0}\n    this.tok.validateRegExpFlags = noop\n    this.tok.validateRegExpPattern = noop\n    if (this.options.locations) {\n      let here = this.toks.curPosition()\n      this.tok.loc = new SourceLocation(this.toks, here, here)\n    }\n    this.ahead = [] // Tokens ahead\n    this.context = [] // Indentation contexted\n    this.curIndent = 0\n    this.curLineStart = 0\n    this.nextLineStart = this.lineEnd(this.curLineStart) + 1\n    this.inAsync = false\n    this.inGenerator = false\n    this.inFunction = false\n  }\n\n  startNode() {\n    return new Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : null)\n  }\n\n  storeCurrentPos() {\n    return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start\n  }\n\n  startNodeAt(pos) {\n    if (this.options.locations) {\n      return new Node(this.toks, pos[0], pos[1])\n    } else {\n      return new Node(this.toks, pos)\n    }\n  }\n\n  finishNode(node, type) {\n    node.type = type\n    node.end = this.last.end\n    if (this.options.locations)\n      node.loc.end = this.last.loc.end\n    if (this.options.ranges)\n      node.range[1] = this.last.end\n    return node\n  }\n\n  dummyNode(type) {\n    let dummy = this.startNode()\n    dummy.type = type\n    dummy.end = dummy.start\n    if (this.options.locations)\n      dummy.loc.end = dummy.loc.start\n    if (this.options.ranges)\n      dummy.range[1] = dummy.start\n    this.last = {type: tt.name, start: dummy.start, end: dummy.start, loc: dummy.loc}\n    return dummy\n  }\n\n  dummyIdent() {\n    let dummy = this.dummyNode(\"Identifier\")\n    dummy.name = dummyValue\n    return dummy\n  }\n\n  dummyString() {\n    let dummy = this.dummyNode(\"Literal\")\n    dummy.value = dummy.raw = dummyValue\n    return dummy\n  }\n\n  eat(type) {\n    if (this.tok.type === type) {\n      this.next()\n      return true\n    } else {\n      return false\n    }\n  }\n\n  isContextual(name) {\n    return this.tok.type === tt.name && this.tok.value === name\n  }\n\n  eatContextual(name) {\n    return this.tok.value === name && this.eat(tt.name)\n  }\n\n  canInsertSemicolon() {\n    return this.tok.type === tt.eof || this.tok.type === tt.braceR ||\n      lineBreak.test(this.input.slice(this.last.end, this.tok.start))\n  }\n\n  semicolon() {\n    return this.eat(tt.semi)\n  }\n\n  expect(type) {\n    if (this.eat(type)) return true\n    for (let i = 1; i <= 2; i++) {\n      if (this.lookAhead(i).type === type) {\n        for (let j = 0; j < i; j++) this.next()\n        return true\n      }\n    }\n  }\n\n  pushCx() {\n    this.context.push(this.curIndent)\n  }\n\n  popCx() {\n    this.curIndent = this.context.pop()\n  }\n\n  lineEnd(pos) {\n    while (pos < this.input.length && !isNewLine(this.input.charCodeAt(pos))) ++pos\n    return pos\n  }\n\n  indentationAfter(pos) {\n    for (let count = 0;; ++pos) {\n      let ch = this.input.charCodeAt(pos)\n      if (ch === 32) ++count\n      else if (ch === 9) count += this.options.tabSize\n      else return count\n    }\n  }\n\n  closes(closeTok, indent, line, blockHeuristic) {\n    if (this.tok.type === closeTok || this.tok.type === tt.eof) return true\n    return line !== this.curLineStart && this.curIndent < indent && this.tokenStartsLine() &&\n      (!blockHeuristic || this.nextLineStart >= this.input.length ||\n       this.indentationAfter(this.nextLineStart) < indent)\n  }\n\n  tokenStartsLine() {\n    for (let p = this.tok.start - 1; p >= this.curLineStart; --p) {\n      let ch = this.input.charCodeAt(p)\n      if (ch !== 9 && ch !== 32) return false\n    }\n    return true\n  }\n\n  extend(name, f) {\n    this[name] = f(this[name])\n  }\n\n  parse() {\n    this.next()\n    return this.parseTopLevel()\n  }\n\n  static extend(...plugins) {\n    let cls = this\n    for (let i = 0; i < plugins.length; i++) cls = plugins[i](cls)\n    return cls\n  }\n\n  static parse(input, options) {\n    return new this(input, options).parse()\n  }\n}\n\n// Allows plugins to extend the base parser / tokenizer used\nLooseParser.BaseParser = Parser\n"
  },
  {
    "path": "acorn-loose/src/statement.js",
    "content": "import {LooseParser} from \"./state.js\"\nimport {isDummy} from \"./parseutil.js\"\nimport {getLineInfo, tokTypes as tt} from \"acorn\"\n\nconst lp = LooseParser.prototype\n\nlp.parseTopLevel = function() {\n  let node = this.startNodeAt(this.options.locations ? [0, getLineInfo(this.input, 0)] : 0)\n  node.body = []\n  while (this.tok.type !== tt.eof) node.body.push(this.parseStatement())\n  this.toks.adaptDirectivePrologue(node.body)\n  this.last = this.tok\n  node.sourceType = this.options.sourceType === \"commonjs\" ? \"script\" : this.options.sourceType\n  return this.finishNode(node, \"Program\")\n}\n\nlp.parseStatement = function() {\n  let starttype = this.tok.type, node = this.startNode(), kind\n\n  if (this.toks.isLet()) {\n    starttype = tt._var\n    kind = \"let\"\n  }\n\n  switch (starttype) {\n  case tt._break: case tt._continue:\n    this.next()\n    let isBreak = starttype === tt._break\n    if (this.semicolon() || this.canInsertSemicolon()) {\n      node.label = null\n    } else {\n      node.label = this.tok.type === tt.name ? this.parseIdent() : null\n      this.semicolon()\n    }\n    return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\")\n\n  case tt._debugger:\n    this.next()\n    this.semicolon()\n    return this.finishNode(node, \"DebuggerStatement\")\n\n  case tt._do:\n    this.next()\n    node.body = this.parseStatement()\n    node.test = this.eat(tt._while) ? this.parseParenExpression() : this.dummyIdent()\n    this.semicolon()\n    return this.finishNode(node, \"DoWhileStatement\")\n\n  case tt._for:\n    this.next() // `for` keyword\n    let isAwait = this.options.ecmaVersion >= 9 && this.eatContextual(\"await\")\n\n    this.pushCx()\n    this.expect(tt.parenL)\n    if (this.tok.type === tt.semi) return this.parseFor(node, null)\n    let isLet = this.toks.isLet()\n    let isAwaitUsing = this.toks.isAwaitUsing(true)\n    let isUsing = !isAwaitUsing && this.toks.isUsing(true)\n\n    if (isLet || this.tok.type === tt._var || this.tok.type === tt._const || isUsing || isAwaitUsing) {\n      let kind = isLet ? \"let\" : isUsing ? \"using\" : isAwaitUsing ? \"await using\" : this.tok.value\n      let init = this.startNode()\n      if (isUsing || isAwaitUsing) {\n        if (isAwaitUsing) this.next()\n        this.parseVar(init, true, kind)\n      } else {\n        init = this.parseVar(init, true, kind)\n      }\n\n      if (init.declarations.length === 1 && (this.tok.type === tt._in || this.isContextual(\"of\"))) {\n        if (this.options.ecmaVersion >= 9 && this.tok.type !== tt._in) {\n          node.await = isAwait\n        }\n        return this.parseForIn(node, init)\n      }\n      return this.parseFor(node, init)\n    }\n    let init = this.parseExpression(true)\n    if (this.tok.type === tt._in || this.isContextual(\"of\")) {\n      if (this.options.ecmaVersion >= 9 && this.tok.type !== tt._in) {\n        node.await = isAwait\n      }\n      return this.parseForIn(node, this.toAssignable(init))\n    }\n    return this.parseFor(node, init)\n\n  case tt._function:\n    this.next()\n    return this.parseFunction(node, true)\n\n  case tt._if:\n    this.next()\n    node.test = this.parseParenExpression()\n    node.consequent = this.parseStatement()\n    node.alternate = this.eat(tt._else) ? this.parseStatement() : null\n    return this.finishNode(node, \"IfStatement\")\n\n  case tt._return:\n    this.next()\n    if (this.eat(tt.semi) || this.canInsertSemicolon()) node.argument = null\n    else { node.argument = this.parseExpression(); this.semicolon() }\n    return this.finishNode(node, \"ReturnStatement\")\n\n  case tt._switch:\n    let blockIndent = this.curIndent, line = this.curLineStart\n    this.next()\n    node.discriminant = this.parseParenExpression()\n    node.cases = []\n    this.pushCx()\n    this.expect(tt.braceL)\n\n    let cur\n    while (!this.closes(tt.braceR, blockIndent, line, true)) {\n      if (this.tok.type === tt._case || this.tok.type === tt._default) {\n        let isCase = this.tok.type === tt._case\n        if (cur) this.finishNode(cur, \"SwitchCase\")\n        node.cases.push(cur = this.startNode())\n        cur.consequent = []\n        this.next()\n        if (isCase) cur.test = this.parseExpression()\n        else cur.test = null\n        this.expect(tt.colon)\n      } else {\n        if (!cur) {\n          node.cases.push(cur = this.startNode())\n          cur.consequent = []\n          cur.test = null\n        }\n        cur.consequent.push(this.parseStatement())\n      }\n    }\n    if (cur) this.finishNode(cur, \"SwitchCase\")\n    this.popCx()\n    this.eat(tt.braceR)\n    return this.finishNode(node, \"SwitchStatement\")\n\n  case tt._throw:\n    this.next()\n    node.argument = this.parseExpression()\n    this.semicolon()\n    return this.finishNode(node, \"ThrowStatement\")\n\n  case tt._try:\n    this.next()\n    node.block = this.parseBlock()\n    node.handler = null\n    if (this.tok.type === tt._catch) {\n      let clause = this.startNode()\n      this.next()\n      if (this.eat(tt.parenL)) {\n        clause.param = this.toAssignable(this.parseExprAtom(), true)\n        this.expect(tt.parenR)\n      } else {\n        clause.param = null\n      }\n      clause.body = this.parseBlock()\n      node.handler = this.finishNode(clause, \"CatchClause\")\n    }\n    node.finalizer = this.eat(tt._finally) ? this.parseBlock() : null\n    if (!node.handler && !node.finalizer) return node.block\n    return this.finishNode(node, \"TryStatement\")\n\n  case tt._var:\n  case tt._const:\n    return this.parseVar(node, false, kind || this.tok.value)\n\n  case tt._while:\n    this.next()\n    node.test = this.parseParenExpression()\n    node.body = this.parseStatement()\n    return this.finishNode(node, \"WhileStatement\")\n\n  case tt._with:\n    this.next()\n    node.object = this.parseParenExpression()\n    node.body = this.parseStatement()\n    return this.finishNode(node, \"WithStatement\")\n\n  case tt.braceL:\n    return this.parseBlock()\n\n  case tt.semi:\n    this.next()\n    return this.finishNode(node, \"EmptyStatement\")\n\n  case tt._class:\n    return this.parseClass(true)\n\n  case tt._import:\n    if (this.options.ecmaVersion > 10) {\n      const nextType = this.lookAhead(1).type\n      if (nextType === tt.parenL || nextType === tt.dot) {\n        node.expression = this.parseExpression()\n        this.semicolon()\n        return this.finishNode(node, \"ExpressionStatement\")\n      }\n    }\n\n    return this.parseImport()\n\n  case tt._export:\n    return this.parseExport()\n\n  default:\n    if (this.toks.isAsyncFunction()) {\n      this.next()\n      this.next()\n      return this.parseFunction(node, true, true)\n    }\n\n    if (this.toks.isUsing(false)) {\n      return this.parseVar(node, false, \"using\")\n    }\n\n    if (this.toks.isAwaitUsing(false)) {\n      this.next()\n      return this.parseVar(node, false, \"await using\")\n    }\n\n    let expr = this.parseExpression()\n    if (isDummy(expr)) {\n      this.next()\n      if (this.tok.type === tt.eof) return this.finishNode(node, \"EmptyStatement\")\n      return this.parseStatement()\n    } else if (starttype === tt.name && expr.type === \"Identifier\" && this.eat(tt.colon)) {\n      node.body = this.parseStatement()\n      node.label = expr\n      return this.finishNode(node, \"LabeledStatement\")\n    } else {\n      node.expression = expr\n      this.semicolon()\n      return this.finishNode(node, \"ExpressionStatement\")\n    }\n  }\n}\n\nlp.parseBlock = function() {\n  let node = this.startNode()\n  this.pushCx()\n  this.expect(tt.braceL)\n  let blockIndent = this.curIndent, line = this.curLineStart\n  node.body = []\n  while (!this.closes(tt.braceR, blockIndent, line, true))\n    node.body.push(this.parseStatement())\n  this.popCx()\n  this.eat(tt.braceR)\n  return this.finishNode(node, \"BlockStatement\")\n}\n\nlp.parseFor = function(node, init) {\n  node.init = init\n  node.test = node.update = null\n  if (this.eat(tt.semi) && this.tok.type !== tt.semi) node.test = this.parseExpression()\n  if (this.eat(tt.semi) && this.tok.type !== tt.parenR) node.update = this.parseExpression()\n  this.popCx()\n  this.expect(tt.parenR)\n  node.body = this.parseStatement()\n  return this.finishNode(node, \"ForStatement\")\n}\n\nlp.parseForIn = function(node, init) {\n  let type = this.tok.type === tt._in ? \"ForInStatement\" : \"ForOfStatement\"\n  this.next()\n  node.left = init\n  node.right = this.parseExpression()\n  this.popCx()\n  this.expect(tt.parenR)\n  node.body = this.parseStatement()\n  return this.finishNode(node, type)\n}\n\nlp.parseVar = function(node, noIn, kind) {\n  node.kind = kind\n  this.next()\n  node.declarations = []\n  do {\n    let decl = this.startNode()\n    decl.id = this.options.ecmaVersion >= 6 ? this.toAssignable(this.parseExprAtom(), true) : this.parseIdent()\n    decl.init = this.eat(tt.eq) ? this.parseMaybeAssign(noIn) : null\n    node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"))\n  } while (this.eat(tt.comma))\n  if (!node.declarations.length) {\n    let decl = this.startNode()\n    decl.id = this.dummyIdent()\n    node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"))\n  }\n  if (!noIn) this.semicolon()\n  return this.finishNode(node, \"VariableDeclaration\")\n}\n\nlp.parseClass = function(isStatement) {\n  let node = this.startNode()\n  this.next()\n  if (this.tok.type === tt.name) node.id = this.parseIdent()\n  else if (isStatement === true) node.id = this.dummyIdent()\n  else node.id = null\n  node.superClass = this.eat(tt._extends) ? this.parseExpression() : null\n  node.body = this.startNode()\n  node.body.body = []\n  this.pushCx()\n  let indent = this.curIndent + 1, line = this.curLineStart\n  this.eat(tt.braceL)\n  if (this.curIndent + 1 < indent) { indent = this.curIndent; line = this.curLineStart }\n  while (!this.closes(tt.braceR, indent, line)) {\n    const element = this.parseClassElement()\n    if (element) node.body.body.push(element)\n  }\n  this.popCx()\n  if (!this.eat(tt.braceR)) {\n    // If there is no closing brace, make the node span to the start\n    // of the next token (this is useful for Tern)\n    this.last.end = this.tok.start\n    if (this.options.locations) this.last.loc.end = this.tok.loc.start\n  }\n  this.semicolon()\n  this.finishNode(node.body, \"ClassBody\")\n  return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\")\n}\n\nlp.parseClassElement = function() {\n  if (this.eat(tt.semi)) return null\n\n  const {ecmaVersion, locations} = this.options\n  const indent = this.curIndent\n  const line = this.curLineStart\n  const node = this.startNode()\n  let keyName = \"\"\n  let isGenerator = false\n  let isAsync = false\n  let kind = \"method\"\n  let isStatic = false\n\n  if (this.eatContextual(\"static\")) {\n    // Parse static init block\n    if (ecmaVersion >= 13 && this.eat(tt.braceL)) {\n      this.parseClassStaticBlock(node)\n      return node\n    }\n    if (this.isClassElementNameStart() || this.toks.type === tt.star) {\n      isStatic = true\n    } else {\n      keyName = \"static\"\n    }\n  }\n  node.static = isStatic\n  if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n    if ((this.isClassElementNameStart() || this.toks.type === tt.star) && !this.canInsertSemicolon()) {\n      isAsync = true\n    } else {\n      keyName = \"async\"\n    }\n  }\n  if (!keyName) {\n    isGenerator = this.eat(tt.star)\n    const lastValue = this.toks.value\n    if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n      if (this.isClassElementNameStart()) {\n        kind = lastValue\n      } else {\n        keyName = lastValue\n      }\n    }\n  }\n\n  // Parse element name\n  if (keyName) {\n    // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n    // The last token is any of those. Make it the element name.\n    node.computed = false\n    node.key = this.startNodeAt(locations ? [this.toks.lastTokStart, this.toks.lastTokStartLoc] : this.toks.lastTokStart)\n    node.key.name = keyName\n    this.finishNode(node.key, \"Identifier\")\n  } else {\n    this.parseClassElementName(node)\n\n    // From https://github.com/acornjs/acorn/blob/7deba41118d6384a2c498c61176b3cf434f69590/acorn-loose/src/statement.js#L291\n    // Skip broken stuff.\n    if (isDummy(node.key)) {\n      if (isDummy(this.parseMaybeAssign())) this.next()\n      this.eat(tt.comma)\n      return null\n    }\n  }\n\n  // Parse element value\n  if (ecmaVersion < 13 || this.toks.type === tt.parenL || kind !== \"method\" || isGenerator || isAsync) {\n    // Method\n    const isConstructor =\n      !node.computed &&\n      !node.static &&\n      !isGenerator &&\n      !isAsync &&\n      kind === \"method\" && (\n        node.key.type === \"Identifier\" && node.key.name === \"constructor\" ||\n        node.key.type === \"Literal\" && node.key.value === \"constructor\"\n      )\n    node.kind = isConstructor ? \"constructor\" : kind\n    node.value = this.parseMethod(isGenerator, isAsync)\n    this.finishNode(node, \"MethodDefinition\")\n  } else {\n    // Field\n    if (this.eat(tt.eq)) {\n      if (this.curLineStart !== line && this.curIndent <= indent && this.tokenStartsLine()) {\n        // Estimated the next line is the next class element by indentations.\n        node.value = null\n      } else {\n        const oldInAsync = this.inAsync\n        const oldInGenerator = this.inGenerator\n        this.inAsync = false\n        this.inGenerator = false\n        node.value = this.parseMaybeAssign()\n        this.inAsync = oldInAsync\n        this.inGenerator = oldInGenerator\n      }\n    } else {\n      node.value = null\n    }\n    this.semicolon()\n    this.finishNode(node, \"PropertyDefinition\")\n  }\n\n  return node\n}\n\nlp.parseClassStaticBlock = function(node) {\n  let blockIndent = this.curIndent, line = this.curLineStart\n  node.body = []\n  this.pushCx()\n  while (!this.closes(tt.braceR, blockIndent, line, true))\n    node.body.push(this.parseStatement())\n  this.popCx()\n  this.eat(tt.braceR)\n\n  return this.finishNode(node, \"StaticBlock\")\n}\n\nlp.isClassElementNameStart = function() {\n  return this.toks.isClassElementNameStart()\n}\n\nlp.parseClassElementName = function(element) {\n  if (this.toks.type === tt.privateId) {\n    element.computed = false\n    element.key = this.parsePrivateIdent()\n  } else {\n    this.parsePropertyName(element)\n  }\n}\n\nlp.parseFunction = function(node, isStatement, isAsync) {\n  let oldInAsync = this.inAsync, oldInGenerator = this.inGenerator, oldInFunction = this.inFunction\n  this.initFunction(node)\n  if (this.options.ecmaVersion >= 6) {\n    node.generator = this.eat(tt.star)\n  }\n  if (this.options.ecmaVersion >= 8) {\n    node.async = !!isAsync\n  }\n  if (this.tok.type === tt.name) node.id = this.parseIdent()\n  else if (isStatement === true) node.id = this.dummyIdent()\n  this.inAsync = node.async\n  this.inGenerator = node.generator\n  this.inFunction = true\n  node.params = this.parseFunctionParams()\n  node.body = this.parseBlock()\n  this.toks.adaptDirectivePrologue(node.body.body)\n  this.inAsync = oldInAsync\n  this.inGenerator = oldInGenerator\n  this.inFunction = oldInFunction\n  return this.finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\")\n}\n\nlp.parseExport = function() {\n  let node = this.startNode()\n  this.next()\n  if (this.eat(tt.star)) {\n    if (this.options.ecmaVersion >= 11) {\n      if (this.eatContextual(\"as\")) {\n        node.exported = this.parseExprAtom()\n      } else {\n        node.exported = null\n      }\n    }\n    node.source = this.eatContextual(\"from\") ? this.parseExprAtom() : this.dummyString()\n    if (this.options.ecmaVersion >= 16)\n      node.attributes = this.parseWithClause()\n    this.semicolon()\n    return this.finishNode(node, \"ExportAllDeclaration\")\n  }\n  if (this.eat(tt._default)) {\n    // export default (function foo() {}) // This is FunctionExpression.\n    let isAsync\n    if (this.tok.type === tt._function || (isAsync = this.toks.isAsyncFunction())) {\n      let fNode = this.startNode()\n      this.next()\n      if (isAsync) this.next()\n      node.declaration = this.parseFunction(fNode, \"nullableID\", isAsync)\n    } else if (this.tok.type === tt._class) {\n      node.declaration = this.parseClass(\"nullableID\")\n    } else {\n      node.declaration = this.parseMaybeAssign()\n      this.semicolon()\n    }\n    return this.finishNode(node, \"ExportDefaultDeclaration\")\n  }\n  if (this.tok.type.keyword || this.toks.isLet() || this.toks.isAsyncFunction()) {\n    node.declaration = this.parseStatement()\n    node.specifiers = []\n    node.source = null\n  } else {\n    node.declaration = null\n    node.specifiers = this.parseExportSpecifierList()\n    node.source = this.eatContextual(\"from\") ? this.parseExprAtom() : null\n    if (this.options.ecmaVersion >= 16)\n      node.attributes = this.parseWithClause()\n    this.semicolon()\n  }\n  return this.finishNode(node, \"ExportNamedDeclaration\")\n}\n\nlp.parseImport = function() {\n  let node = this.startNode()\n  this.next()\n  if (this.tok.type === tt.string) {\n    node.specifiers = []\n    node.source = this.parseExprAtom()\n  } else {\n    let elt\n    if (this.tok.type === tt.name && this.tok.value !== \"from\") {\n      elt = this.startNode()\n      elt.local = this.parseIdent()\n      this.finishNode(elt, \"ImportDefaultSpecifier\")\n      this.eat(tt.comma)\n    }\n    node.specifiers = this.parseImportSpecifiers()\n    node.source = this.eatContextual(\"from\") && this.tok.type === tt.string ? this.parseExprAtom() : this.dummyString()\n    if (elt) node.specifiers.unshift(elt)\n  }\n  if (this.options.ecmaVersion >= 16)\n    node.attributes = this.parseWithClause()\n  this.semicolon()\n  return this.finishNode(node, \"ImportDeclaration\")\n}\n\nlp.parseImportSpecifiers = function() {\n  let elts = []\n  if (this.tok.type === tt.star) {\n    let elt = this.startNode()\n    this.next()\n    elt.local = this.eatContextual(\"as\") ? this.parseIdent() : this.dummyIdent()\n    elts.push(this.finishNode(elt, \"ImportNamespaceSpecifier\"))\n  } else {\n    let indent = this.curIndent, line = this.curLineStart, continuedLine = this.nextLineStart\n    this.pushCx()\n    this.eat(tt.braceL)\n    if (this.curLineStart > continuedLine) continuedLine = this.curLineStart\n    while (!this.closes(tt.braceR, indent + (this.curLineStart <= continuedLine ? 1 : 0), line)) {\n      let elt = this.startNode()\n      if (this.eat(tt.star)) {\n        elt.local = this.eatContextual(\"as\") ? this.parseModuleExportName() : this.dummyIdent()\n        this.finishNode(elt, \"ImportNamespaceSpecifier\")\n      } else {\n        if (this.isContextual(\"from\")) break\n        elt.imported = this.parseModuleExportName()\n        if (isDummy(elt.imported)) break\n        elt.local = this.eatContextual(\"as\") ? this.parseModuleExportName() : elt.imported\n        this.finishNode(elt, \"ImportSpecifier\")\n      }\n      elts.push(elt)\n      this.eat(tt.comma)\n    }\n    this.eat(tt.braceR)\n    this.popCx()\n  }\n  return elts\n}\n\nlp.parseWithClause = function() {\n  let nodes = []\n  if (!this.eat(tt._with)) {\n    return nodes\n  }\n\n  let indent = this.curIndent, line = this.curLineStart, continuedLine = this.nextLineStart\n  this.pushCx()\n  this.eat(tt.braceL)\n  if (this.curLineStart > continuedLine) continuedLine = this.curLineStart\n  while (!this.closes(tt.braceR, indent + (this.curLineStart <= continuedLine ? 1 : 0), line)) {\n    const attr = this.startNode()\n    attr.key = this.tok.type === tt.string ? this.parseExprAtom() : this.parseIdent()\n    if (this.eat(tt.colon)) {\n      if (this.tok.type === tt.string)\n        attr.value = this.parseExprAtom()\n      else attr.value = this.dummyString()\n    } else {\n      if (isDummy(attr.key)) break\n      if (this.tok.type === tt.string)\n        attr.value = this.parseExprAtom()\n      else break\n    }\n    nodes.push(this.finishNode(attr, \"ImportAttribute\"))\n    this.eat(tt.comma)\n  }\n  this.eat(tt.braceR)\n  this.popCx()\n  return nodes\n}\n\nlp.parseExportSpecifierList = function() {\n  let elts = []\n  let indent = this.curIndent, line = this.curLineStart, continuedLine = this.nextLineStart\n  this.pushCx()\n  this.eat(tt.braceL)\n  if (this.curLineStart > continuedLine) continuedLine = this.curLineStart\n  while (!this.closes(tt.braceR, indent + (this.curLineStart <= continuedLine ? 1 : 0), line)) {\n    if (this.isContextual(\"from\")) break\n    let elt = this.startNode()\n    elt.local = this.parseModuleExportName()\n    if (isDummy(elt.local)) break\n    elt.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : elt.local\n    this.finishNode(elt, \"ExportSpecifier\")\n    elts.push(elt)\n    this.eat(tt.comma)\n  }\n  this.eat(tt.braceR)\n  this.popCx()\n  return elts\n}\n\nlp.parseModuleExportName = function() {\n  return this.options.ecmaVersion >= 13 && this.tok.type === tt.string\n    ? this.parseExprAtom()\n    : this.parseIdent()\n}\n"
  },
  {
    "path": "acorn-loose/src/tokenize.js",
    "content": "import {tokTypes as tt, Token, isNewLine, SourceLocation, getLineInfo, lineBreakG} from \"acorn\"\nimport {LooseParser} from \"./state.js\"\nimport {dummyValue} from \"./parseutil.js\"\n\nconst lp = LooseParser.prototype\n\nfunction isSpace(ch) {\n  return (ch < 14 && ch > 8) || ch === 32 || ch === 160 || isNewLine(ch)\n}\n\nlp.next = function() {\n  this.last = this.tok\n  if (this.ahead.length)\n    this.tok = this.ahead.shift()\n  else\n    this.tok = this.readToken()\n\n  if (this.tok.start >= this.nextLineStart) {\n    while (this.tok.start >= this.nextLineStart) {\n      this.curLineStart = this.nextLineStart\n      this.nextLineStart = this.lineEnd(this.curLineStart) + 1\n    }\n    this.curIndent = this.indentationAfter(this.curLineStart)\n  }\n}\n\nlp.readToken = function() {\n  for (;;) {\n    try {\n      this.toks.next()\n      if (this.toks.type === tt.dot &&\n          this.input.substr(this.toks.end, 1) === \".\" &&\n          this.options.ecmaVersion >= 6) {\n        this.toks.end++\n        this.toks.type = tt.ellipsis\n      }\n      return new Token(this.toks)\n    } catch (e) {\n      if (!(e instanceof SyntaxError)) throw e\n\n      // Try to skip some text, based on the error message, and then continue\n      let msg = e.message, pos = e.raisedAt, replace = true\n      if (/unterminated/i.test(msg)) {\n        pos = this.lineEnd(e.pos + 1)\n        if (/string/.test(msg)) {\n          replace = {start: e.pos, end: pos, type: tt.string, value: this.input.slice(e.pos + 1, pos)}\n        } else if (/regular expr/i.test(msg)) {\n          let re = this.input.slice(e.pos, pos)\n          try { re = new RegExp(re) } catch (e) { /* ignore compilation error due to new syntax */ }\n          replace = {start: e.pos, end: pos, type: tt.regexp, value: re}\n        } else if (/template/.test(msg)) {\n          replace = {\n            start: e.pos,\n            end: pos,\n            type: tt.template,\n            value: this.input.slice(e.pos, pos)\n          }\n        } else {\n          replace = false\n        }\n      } else if (/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test(msg)) {\n        while (pos < this.input.length && !isSpace(this.input.charCodeAt(pos))) ++pos\n      } else if (/character escape|expected hexadecimal/i.test(msg)) {\n        while (pos < this.input.length) {\n          let ch = this.input.charCodeAt(pos++)\n          if (ch === 34 || ch === 39 || isNewLine(ch)) break\n        }\n      } else if (/unexpected character/i.test(msg)) {\n        pos++\n        replace = false\n      } else if (/regular expression/i.test(msg)) {\n        replace = true\n      } else {\n        throw e\n      }\n      this.resetTo(pos)\n      if (replace === true) replace = {start: pos, end: pos, type: tt.name, value: dummyValue}\n      if (replace) {\n        if (this.options.locations)\n          replace.loc = new SourceLocation(\n            this.toks,\n            getLineInfo(this.input, replace.start),\n            getLineInfo(this.input, replace.end))\n        return replace\n      }\n    }\n  }\n}\n\nlp.resetTo = function(pos) {\n  this.toks.pos = pos\n  this.toks.containsEsc = false\n  let ch = this.input.charAt(pos - 1)\n  this.toks.exprAllowed = !ch || /[[{(,;:?/*=+\\-~!|&%^<>]/.test(ch) ||\n    /[enwfd]/.test(ch) &&\n    /\\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(pos - 10, pos))\n\n  if (this.options.locations) {\n    this.toks.curLine = 1\n    this.toks.lineStart = lineBreakG.lastIndex = 0\n    let match\n    while ((match = lineBreakG.exec(this.input)) && match.index < pos) {\n      ++this.toks.curLine\n      this.toks.lineStart = match.index + match[0].length\n    }\n  }\n}\n\nlp.lookAhead = function(n) {\n  while (n > this.ahead.length)\n    this.ahead.push(this.readToken())\n  return this.ahead[n - 1]\n}\n"
  },
  {
    "path": "acorn-walk/.npmignore",
    "content": ".tern-*\n/rollup.config.*\n/src\n"
  },
  {
    "path": "acorn-walk/CHANGELOG.md",
    "content": "## 8.3.5 (2026-02-19)\n\n### Bug fixes\n\nEmit a more informative error message when trying to walk a node type that has no walker function.\n\nSpecify callbacks in types to receive `AnyNode` type, so that they can be narrowed more easily.\n\nSupport import attributes.\n\n## 8.3.4 (2024-09-09)\n\n### Bug fixes\n\nWalk SwitchCase nodes as separate nodes.\n\n## 8.3.3 (2024-01-11)\n\n### Bug fixes\n\nMake acorn a dependency because acorn-walk uses the types from that package.\n\n## 8.3.2 (2024-01-11)\n\n### Bug fixes\n\nAdd missing type for `findNodeBefore`.\n\n## 8.3.1 (2023-12-06)\n\n### Bug fixes\n\nAdd `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.\n\nVisitor functions are now called in such a way that their `this` refers to the object they are part of.\n\n## 8.3.0 (2023-10-26)\n\n### New features\n\nUse a set of new, much more precise, TypeScript types.\n\n## 8.2.0 (2021-09-06)\n\n### New features\n\nAdd support for walking ES2022 class static blocks.\n\n## 8.1.1 (2021-06-29)\n\n### Bug fixes\n\nInclude `base` in the type declarations.\n\n## 8.1.0 (2021-04-24)\n\n### New features\n\nSupport node types for class fields and private methods.\n\n## 8.0.2 (2021-01-25)\n\n### Bug fixes\n\nAdjust package.json to work with Node 12.16.0 and 13.0-13.6.\n\n## 8.0.0 (2021-01-05)\n\n### Bug fixes\n\nFix a bug where `full` and `fullAncestor` would skip nodes with overridden types.\n\n## 8.0.0 (2020-08-12)\n\n### New features\n\nThe package can now be loaded directly as an ECMAScript module in node 13+.\n\n## 7.2.0 (2020-06-17)\n\n### New features\n\nSupport optional chaining and nullish coalescing.\n\nSupport `import.meta`.\n\nAdd support for `export * as ns from \"source\"`.\n\n## 7.1.1 (2020-02-13)\n\n### Bug fixes\n\nClean up the type definitions to actually work well with the main parser.\n\n## 7.1.0 (2020-02-11)\n\n### New features\n\nAdd a TypeScript definition file for the library.\n\n## 7.0.0 (2017-08-12)\n\n### New features\n\nSupport walking `ImportExpression` nodes.\n\n## 6.2.0 (2017-07-04)\n\n### New features\n\nAdd support for `Import` nodes.\n\n## 6.1.0 (2018-09-28)\n\n### New features\n\nThe walker now walks `TemplateElement` nodes.\n\n## 6.0.1 (2018-09-14)\n\n### Bug fixes\n\nFix bad \"main\" field in package.json.\n\n## 6.0.0 (2018-09-14)\n\n### Breaking changes\n\nThis is now a separate package, `acorn-walk`, rather than part of the main `acorn` package.\n\nThe `ScopeBody` and `ScopeExpression` meta-node-types are no longer supported.\n\n## 5.7.1 (2018-06-15)\n\n### Bug fixes\n\nMake sure the walker and bin files are rebuilt on release (the previous release didn't get the up-to-date versions).\n\n## 5.7.0 (2018-06-15)\n\n### Bug fixes\n\nFix crash in walker when walking a binding-less catch node.\n\n## 5.6.2 (2018-06-05)\n\n### Bug fixes\n\nIn the walker, go back to allowing the `baseVisitor` argument to be null to default to the default base everywhere.\n\n## 5.6.1 (2018-06-01)\n\n### Bug fixes\n\nFix regression when passing `null` as fourth argument to `walk.recursive`.\n\n## 5.6.0 (2018-05-31)\n\n### Bug fixes\n\nFix a bug in the walker that caused a crash when walking an object pattern spread.\n\n## 5.5.1 (2018-03-06)\n\n### Bug fixes\n\nFix regression in walker causing property values in object patterns to be walked as expressions.\n\n## 5.5.0 (2018-02-27)\n\n### Bug fixes\n\nSupport object spread in the AST walker.\n\n## 5.4.1 (2018-02-02)\n\n### Bug fixes\n\n5.4.0 somehow accidentally included an old version of walk.js.\n\n## 5.2.0 (2017-10-30)\n\n### Bug fixes\n\nThe `full` and `fullAncestor` walkers no longer visit nodes multiple times.\n\n## 5.1.0 (2017-07-05)\n\n### New features\n\nNew walker functions `full` and `fullAncestor`.\n\n## 3.2.0 (2016-06-07)\n\n### New features\n\nMake it possible to use `visit.ancestor` with a walk state.\n\n## 3.1.0 (2016-04-18)\n\n### New features\n\nThe walker now allows defining handlers for `CatchClause` nodes.\n\n## 2.5.2 (2015-10-27)\n\n### Fixes\n\nFix bug where the walker walked an exported `let` statement as an expression.\n"
  },
  {
    "path": "acorn-walk/LICENSE",
    "content": "MIT License\n\nCopyright (C) 2012-2020 by various contributors (see AUTHORS)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "acorn-walk/README.md",
    "content": "# Acorn AST walker\n\nAn abstract syntax tree walker for the\n[ESTree](https://github.com/estree/estree) format.\n\n## Community\n\nAcorn is open source software released under an\n[MIT license](https://github.com/acornjs/acorn/blob/master/acorn-walk/LICENSE).\n\nYou are welcome to\n[report bugs](https://github.com/acornjs/acorn/issues) or create pull\nrequests on [github](https://github.com/acornjs/acorn).\n\n## Installation\n\nThe easiest way to install acorn is from [`npm`](https://www.npmjs.com/):\n\n```sh\nnpm install acorn-walk\n```\n\nAlternately, you can download the source and build acorn yourself:\n\n```sh\ngit clone https://github.com/acornjs/acorn.git\ncd acorn\nnpm install\n```\n\n## Interface\n\nAn algorithm for recursing through a syntax tree is stored as an\nobject, with a property for each tree node type holding a function\nthat will recurse through such a node. There are several ways to run\nsuch a walker.\n\n**simple**`(node, visitors, base, state)` does a 'simple' walk over a\ntree. `node` should be the AST node to walk, and `visitors` an object\nwith properties whose names correspond to node types in the [ESTree\nspec](https://github.com/estree/estree). The properties should contain\nfunctions that will be called with the node object and, if applicable\nthe state at that point. The last two arguments are optional. `base`\nis a walker algorithm, and `state` is a start state. The default\nwalker will simply visit all statements and expressions and not\nproduce a meaningful state. (An example of a use of state is to track\nscope at each point in the tree.)\n\n```js\nimport * as acorn from \"acorn\"\nimport * as walk from \"acorn-walk\"\n\nwalk.simple(acorn.parse(\"let x = 10\"), {\n  Literal(node) {\n    console.log(`Found a literal: ${node.value}`)\n  }\n})\n```\n\n**ancestor**`(node, visitors, base, state)` does a 'simple' walk over\na tree, building up an array of ancestor nodes (including the current node)\nand passing the array to the callbacks as a third parameter.\n\n```js\nimport * as acorn from \"acorn\"\nimport * as walk from \"acorn-walk\"\n\nwalk.ancestor(acorn.parse(\"foo('hi')\"), {\n  Literal(_node, _state, ancestors) {\n    console.log(\"This literal's ancestors are:\", ancestors.map(n => n.type))\n  }\n})\n```\n\n**recursive**`(node, state, functions, base)` does a 'recursive'\nwalk, where the walker functions are responsible for continuing the\nwalk on the child nodes of their target node. `state` is the start\nstate, and `functions` should contain an object that maps node types\nto walker functions. Such functions are called with `(node, state, c)`\narguments, and can cause the walk to continue on a sub-node by calling\nthe `c` argument on it with `(node, state)` arguments. The optional\n`base` argument provides the fallback walker functions for node types\nthat aren't handled in the `functions` object. If not given, the\ndefault walkers will be used.\n\n**make**`(functions, base)` builds a new walker object by using the\nwalker functions in `functions` and filling in the missing ones by\ntaking defaults from `base`.\n\n**full**`(node, callback, base, state)` does a 'full' walk over a\ntree, calling the callback with the arguments (node, state, type) for\neach node\n\n**fullAncestor**`(node, callback, base, state)` does a 'full' walk\nover a tree, building up an array of ancestor nodes (including the\ncurrent node) and passing the array to the callbacks as a third\nparameter.\n\n```js\nimport * as acorn from \"acorn\"\nimport * as walk from \"acorn-walk\"\n\nwalk.full(acorn.parse(\"1 + 1\"), node => {\n  console.log(`There's a ${node.type} node at ${node.ch}`)\n})\n```\n\n**findNodeAt**`(node, start, end, test, base, state)` tries to locate\na node in a tree at the given start and/or end offsets, which\nsatisfies the predicate `test`. `start` and `end` can be either `null`\n(as wildcard) or a number. `test` may be a string (indicating a node\ntype) or a function that takes `(nodeType, node)` arguments and\nreturns a boolean indicating whether this node is interesting. `base`\nand `state` are optional, and can be used to specify a custom walker.\nNodes are tested from inner to outer, so if two nodes match the\nboundaries, the inner one will be preferred.\n\n**findNodeAround**`(node, pos, test, base, state)` is a lot like\n`findNodeAt`, but will match any node that exists 'around' (spanning)\nthe given position.\n\n**findNodeAfter**`(node, pos, test, base, state)` is similar to\n`findNodeAround`, but will match all nodes *after* the given position\n(testing outer nodes before inner nodes).\n"
  },
  {
    "path": "acorn-walk/package.json",
    "content": "{\n  \"name\": \"acorn-walk\",\n  \"description\": \"ECMAScript (ESTree) AST walker\",\n  \"homepage\": \"https://github.com/acornjs/acorn\",\n  \"main\": \"dist/walk.js\",\n  \"types\": \"dist/walk.d.ts\",\n  \"module\": \"dist/walk.mjs\",\n  \"exports\": {\n    \".\": [\n      {\n        \"import\": \"./dist/walk.mjs\",\n        \"require\": \"./dist/walk.js\",\n        \"default\": \"./dist/walk.js\"\n      },\n      \"./dist/walk.js\"\n    ],\n    \"./package.json\": \"./package.json\"\n  },\n  \"version\": \"8.3.5\",\n  \"engines\": {\n    \"node\": \">=0.4.0\"\n  },\n  \"dependencies\": {\n    \"acorn\": \"^8.11.0\"\n  },\n  \"maintainers\": [\n    {\n      \"name\": \"Marijn Haverbeke\",\n      \"email\": \"marijnh@gmail.com\",\n      \"web\": \"https://marijnhaverbeke.nl\"\n    },\n    {\n      \"name\": \"Ingvar Stepanyan\",\n      \"email\": \"me@rreverser.com\",\n      \"web\": \"https://rreverser.com/\"\n    },\n    {\n      \"name\": \"Adrian Heine\",\n      \"web\": \"http://adrianheine.de\"\n    }\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/acornjs/acorn.git\"\n  },\n  \"scripts\": {\n    \"prepare\": \"cd ..; npm run build:walk\"\n  },\n  \"license\": \"MIT\"\n}\n"
  },
  {
    "path": "acorn-walk/rollup.config.mjs",
    "content": "import {readFile, writeFile} from \"node:fs/promises\"\nimport buble from \"@rollup/plugin-buble\"\n\nconst copy = (from, to) => ({\n  async writeBundle() { await writeFile(to, await readFile(from)) }\n})\n\nexport default {\n  input: \"acorn-walk/src/index.js\",\n  output: [\n    {\n      file: \"acorn-walk/dist/walk.js\",\n      format: \"umd\",\n      name: \"acorn.walk\"\n    },\n    {\n      file: \"acorn-walk/dist/walk.mjs\",\n      format: \"es\"\n    }\n  ],\n  plugins: [\n    buble({transforms: {dangerousForOf: true}}),\n    copy(\"acorn-walk/src/walk.d.ts\", \"acorn-walk/dist/walk.d.ts\"),\n    copy(\"acorn-walk/src/walk.d.ts\", \"acorn-walk/dist/walk.d.mts\")\n  ]\n}\n"
  },
  {
    "path": "acorn-walk/src/index.js",
    "content": "// AST walker module for ESTree compatible trees\n\n// A simple walk is one where you simply specify callbacks to be\n// called on specific nodes. The last two arguments are optional. A\n// simple use would be\n//\n//     walk.simple(myTree, {\n//         Expression: function(node) { ... }\n//     });\n//\n// to do something with all expressions. All ESTree node types\n// can be used to identify node types, as well as Expression and\n// Statement, which denote categories of nodes.\n//\n// The base argument can be used to pass a custom (recursive)\n// walker, and state can be used to give this walked an initial\n// state.\n\nexport function simple(node, visitors, baseVisitor, state, override) {\n  if (!baseVisitor) baseVisitor = base\n  ;(function c(node, st, override) {\n    let type = override || node.type\n    visitNode(baseVisitor, type, node, st, c)\n    if (visitors[type]) visitors[type](node, st)\n  })(node, state, override)\n}\n\n// An ancestor walk keeps an array of ancestor nodes (including the\n// current node) and passes them to the callback as third parameter\n// (and also as state parameter when no other state is present).\nexport function ancestor(node, visitors, baseVisitor, state, override) {\n  let ancestors = []\n  if (!baseVisitor) baseVisitor = base\n  ;(function c(node, st, override) {\n    let type = override || node.type\n    let isNew = node !== ancestors[ancestors.length - 1]\n    if (isNew) ancestors.push(node)\n    visitNode(baseVisitor, type, node, st, c)\n    if (visitors[type]) visitors[type](node, st || ancestors, ancestors)\n    if (isNew) ancestors.pop()\n  })(node, state, override)\n}\n\n// A recursive walk is one where your functions override the default\n// walkers. They can modify and replace the state parameter that's\n// threaded through the walk, and can opt how and whether to walk\n// their child nodes (by calling their third argument on these\n// nodes).\nexport function recursive(node, state, funcs, baseVisitor, override) {\n  let visitor = funcs ? make(funcs, baseVisitor || undefined) : baseVisitor\n  ;(function c(node, st, override) {\n    visitor[override || node.type](node, st, c)\n  })(node, state, override)\n}\n\nfunction makeTest(test) {\n  if (typeof test === \"string\")\n    return type => type === test\n  else if (!test)\n    return () => true\n  else\n    return test\n}\n\nclass Found {\n  constructor(node, state) { this.node = node; this.state = state }\n}\n\n// A full walk triggers the callback on each node\nexport function full(node, callback, baseVisitor, state, override) {\n  if (!baseVisitor) baseVisitor = base\n  let last\n  ;(function c(node, st, override) {\n    let type = override || node.type\n    visitNode(baseVisitor, type, node, st, c)\n    if (last !== node) {\n      callback(node, st, type)\n      last = node\n    }\n  })(node, state, override)\n}\n\n// An fullAncestor walk is like an ancestor walk, but triggers\n// the callback on each node\nexport function fullAncestor(node, callback, baseVisitor, state) {\n  if (!baseVisitor) baseVisitor = base\n  let ancestors = [], last\n  ;(function c(node, st, override) {\n    let type = override || node.type\n    let isNew = node !== ancestors[ancestors.length - 1]\n    if (isNew) ancestors.push(node)\n    visitNode(baseVisitor, type, node, st, c)\n    if (last !== node) {\n      callback(node, st || ancestors, ancestors, type)\n      last = node\n    }\n    if (isNew) ancestors.pop()\n  })(node, state)\n}\n\n// Find a node with a given start, end, and type (all are optional,\n// null can be used as wildcard). Returns a {node, state} object, or\n// undefined when it doesn't find a matching node.\nexport function findNodeAt(node, start, end, test, baseVisitor, state) {\n  if (!baseVisitor) baseVisitor = base\n  test = makeTest(test)\n  try {\n    (function c(node, st, override) {\n      let type = override || node.type\n      if ((start == null || node.start <= start) &&\n          (end == null || node.end >= end))\n        visitNode(baseVisitor, type, node, st, c)\n      if ((start == null || node.start === start) &&\n          (end == null || node.end === end) &&\n          test(type, node))\n        throw new Found(node, st)\n    })(node, state)\n  } catch (e) {\n    if (e instanceof Found) return e\n    throw e\n  }\n}\n\n// Find the innermost node of a given type that contains the given\n// position. Interface similar to findNodeAt.\nexport function findNodeAround(node, pos, test, baseVisitor, state) {\n  test = makeTest(test)\n  if (!baseVisitor) baseVisitor = base\n  try {\n    (function c(node, st, override) {\n      let type = override || node.type\n      if (node.start > pos || node.end < pos) return\n      visitNode(baseVisitor, type, node, st, c)\n      if (test(type, node)) throw new Found(node, st)\n    })(node, state)\n  } catch (e) {\n    if (e instanceof Found) return e\n    throw e\n  }\n}\n\n// Find the outermost matching node after a given position.\nexport function findNodeAfter(node, pos, test, baseVisitor, state) {\n  test = makeTest(test)\n  if (!baseVisitor) baseVisitor = base\n  try {\n    (function c(node, st, override) {\n      if (node.end < pos) return\n      let type = override || node.type\n      if (node.start >= pos && test(type, node)) throw new Found(node, st)\n      visitNode(baseVisitor, type, node, st, c)\n    })(node, state)\n  } catch (e) {\n    if (e instanceof Found) return e\n    throw e\n  }\n}\n\n// Find the outermost matching node before a given position.\nexport function findNodeBefore(node, pos, test, baseVisitor, state) {\n  test = makeTest(test)\n  if (!baseVisitor) baseVisitor = base\n  let max\n  ;(function c(node, st, override) {\n    if (node.start > pos) return\n    let type = override || node.type\n    if (node.end <= pos && (!max || max.node.end < node.end) && test(type, node))\n      max = new Found(node, st)\n    visitNode(baseVisitor, type, node, st, c)\n  })(node, state)\n  return max\n}\n\n// Used to create a custom walker. Will fill in all missing node\n// type properties with the defaults.\nexport function make(funcs, baseVisitor) {\n  let visitor = Object.create(baseVisitor || base)\n  for (let type in funcs) visitor[type] = funcs[type]\n  return visitor\n}\n\nfunction skipThrough(node, st, c) { c(node, st) }\nfunction ignore(_node, _st, _c) {}\n\nfunction visitNode(baseVisitor, type, node, st, c) {\n  if (baseVisitor[type] == null) throw new Error(`No walker function defined for node type ${type}`)\n  baseVisitor[type](node, st, c)\n}\n\n// Node walkers.\n\nexport const base = {}\n\nbase.Program = base.BlockStatement = base.StaticBlock = (node, st, c) => {\n  for (let stmt of node.body)\n    c(stmt, st, \"Statement\")\n}\nbase.Statement = skipThrough\nbase.EmptyStatement = ignore\nbase.ExpressionStatement = base.ParenthesizedExpression = base.ChainExpression =\n  (node, st, c) => c(node.expression, st, \"Expression\")\nbase.IfStatement = (node, st, c) => {\n  c(node.test, st, \"Expression\")\n  c(node.consequent, st, \"Statement\")\n  if (node.alternate) c(node.alternate, st, \"Statement\")\n}\nbase.LabeledStatement = (node, st, c) => c(node.body, st, \"Statement\")\nbase.BreakStatement = base.ContinueStatement = ignore\nbase.WithStatement = (node, st, c) => {\n  c(node.object, st, \"Expression\")\n  c(node.body, st, \"Statement\")\n}\nbase.SwitchStatement = (node, st, c) => {\n  c(node.discriminant, st, \"Expression\")\n  for (let cs of node.cases) c(cs, st)\n}\nbase.SwitchCase = (node, st, c) => {\n  if (node.test) c(node.test, st, \"Expression\")\n  for (let cons of node.consequent)\n    c(cons, st, \"Statement\")\n}\nbase.ReturnStatement = base.YieldExpression = base.AwaitExpression = (node, st, c) => {\n  if (node.argument) c(node.argument, st, \"Expression\")\n}\nbase.ThrowStatement = base.SpreadElement =\n  (node, st, c) => c(node.argument, st, \"Expression\")\nbase.TryStatement = (node, st, c) => {\n  c(node.block, st, \"Statement\")\n  if (node.handler) c(node.handler, st)\n  if (node.finalizer) c(node.finalizer, st, \"Statement\")\n}\nbase.CatchClause = (node, st, c) => {\n  if (node.param) c(node.param, st, \"Pattern\")\n  c(node.body, st, \"Statement\")\n}\nbase.WhileStatement = base.DoWhileStatement = (node, st, c) => {\n  c(node.test, st, \"Expression\")\n  c(node.body, st, \"Statement\")\n}\nbase.ForStatement = (node, st, c) => {\n  if (node.init) c(node.init, st, \"ForInit\")\n  if (node.test) c(node.test, st, \"Expression\")\n  if (node.update) c(node.update, st, \"Expression\")\n  c(node.body, st, \"Statement\")\n}\nbase.ForInStatement = base.ForOfStatement = (node, st, c) => {\n  c(node.left, st, \"ForInit\")\n  c(node.right, st, \"Expression\")\n  c(node.body, st, \"Statement\")\n}\nbase.ForInit = (node, st, c) => {\n  if (node.type === \"VariableDeclaration\") c(node, st)\n  else c(node, st, \"Expression\")\n}\nbase.DebuggerStatement = ignore\n\nbase.FunctionDeclaration = (node, st, c) => c(node, st, \"Function\")\nbase.VariableDeclaration = (node, st, c) => {\n  for (let decl of node.declarations)\n    c(decl, st)\n}\nbase.VariableDeclarator = (node, st, c) => {\n  c(node.id, st, \"Pattern\")\n  if (node.init) c(node.init, st, \"Expression\")\n}\n\nbase.Function = (node, st, c) => {\n  if (node.id) c(node.id, st, \"Pattern\")\n  for (let param of node.params)\n    c(param, st, \"Pattern\")\n  c(node.body, st, node.expression ? \"Expression\" : \"Statement\")\n}\n\nbase.Pattern = (node, st, c) => {\n  if (node.type === \"Identifier\")\n    c(node, st, \"VariablePattern\")\n  else if (node.type === \"MemberExpression\")\n    c(node, st, \"MemberPattern\")\n  else\n    c(node, st)\n}\nbase.VariablePattern = ignore\nbase.MemberPattern = skipThrough\nbase.RestElement = (node, st, c) => c(node.argument, st, \"Pattern\")\nbase.ArrayPattern = (node, st, c) => {\n  for (let elt of node.elements) {\n    if (elt) c(elt, st, \"Pattern\")\n  }\n}\nbase.ObjectPattern = (node, st, c) => {\n  for (let prop of node.properties) {\n    if (prop.type === \"Property\") {\n      if (prop.computed) c(prop.key, st, \"Expression\")\n      c(prop.value, st, \"Pattern\")\n    } else if (prop.type === \"RestElement\") {\n      c(prop.argument, st, \"Pattern\")\n    }\n  }\n}\n\nbase.Expression = skipThrough\nbase.ThisExpression = base.Super = base.MetaProperty = ignore\nbase.ArrayExpression = (node, st, c) => {\n  for (let elt of node.elements) {\n    if (elt) c(elt, st, \"Expression\")\n  }\n}\nbase.ObjectExpression = (node, st, c) => {\n  for (let prop of node.properties)\n    c(prop, st)\n}\nbase.FunctionExpression = base.ArrowFunctionExpression = base.FunctionDeclaration\nbase.SequenceExpression = (node, st, c) => {\n  for (let expr of node.expressions)\n    c(expr, st, \"Expression\")\n}\nbase.TemplateLiteral = (node, st, c) => {\n  for (let quasi of node.quasis)\n    c(quasi, st)\n\n  for (let expr of node.expressions)\n    c(expr, st, \"Expression\")\n}\nbase.TemplateElement = ignore\nbase.UnaryExpression = base.UpdateExpression = (node, st, c) => {\n  c(node.argument, st, \"Expression\")\n}\nbase.BinaryExpression = base.LogicalExpression = (node, st, c) => {\n  c(node.left, st, \"Expression\")\n  c(node.right, st, \"Expression\")\n}\nbase.AssignmentExpression = base.AssignmentPattern = (node, st, c) => {\n  c(node.left, st, \"Pattern\")\n  c(node.right, st, \"Expression\")\n}\nbase.ConditionalExpression = (node, st, c) => {\n  c(node.test, st, \"Expression\")\n  c(node.consequent, st, \"Expression\")\n  c(node.alternate, st, \"Expression\")\n}\nbase.NewExpression = base.CallExpression = (node, st, c) => {\n  c(node.callee, st, \"Expression\")\n  if (node.arguments)\n    for (let arg of node.arguments)\n      c(arg, st, \"Expression\")\n}\nbase.MemberExpression = (node, st, c) => {\n  c(node.object, st, \"Expression\")\n  if (node.computed) c(node.property, st, \"Expression\")\n}\nbase.ExportNamedDeclaration = base.ExportDefaultDeclaration = (node, st, c) => {\n  if (node.declaration)\n    c(node.declaration, st, node.type === \"ExportNamedDeclaration\" || node.declaration.id ? \"Statement\" : \"Expression\")\n  if (node.source) c(node.source, st, \"Expression\")\n  if (node.attributes)\n    for (let attr of node.attributes)\n      c(attr, st)\n}\nbase.ExportAllDeclaration = (node, st, c) => {\n  if (node.exported)\n    c(node.exported, st)\n  c(node.source, st, \"Expression\")\n  if (node.attributes)\n    for (let attr of node.attributes)\n      c(attr, st)\n}\nbase.ImportAttribute = (node, st, c) => {\n  c(node.value, st, \"Expression\")\n}\nbase.ImportDeclaration = (node, st, c) => {\n  for (let spec of node.specifiers)\n    c(spec, st)\n  c(node.source, st, \"Expression\")\n  if (node.attributes)\n    for (let attr of node.attributes)\n      c(attr, st)\n}\nbase.ImportExpression = (node, st, c) => {\n  c(node.source, st, \"Expression\")\n  if (node.options) c(node.options, st, \"Expression\")\n}\nbase.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore\n\nbase.TaggedTemplateExpression = (node, st, c) => {\n  c(node.tag, st, \"Expression\")\n  c(node.quasi, st, \"Expression\")\n}\nbase.ClassDeclaration = base.ClassExpression = (node, st, c) => c(node, st, \"Class\")\nbase.Class = (node, st, c) => {\n  if (node.id) c(node.id, st, \"Pattern\")\n  if (node.superClass) c(node.superClass, st, \"Expression\")\n  c(node.body, st)\n}\nbase.ClassBody = (node, st, c) => {\n  for (let elt of node.body)\n    c(elt, st)\n}\nbase.MethodDefinition = base.PropertyDefinition = base.Property = (node, st, c) => {\n  if (node.computed) c(node.key, st, \"Expression\")\n  if (node.value) c(node.value, st, \"Expression\")\n}\n"
  },
  {
    "path": "acorn-walk/src/package.json",
    "content": "{\n  \"type\": \"module\"\n}\n"
  },
  {
    "path": "acorn-walk/src/walk.d.ts",
    "content": "import * as acorn from \"acorn\"\n\nexport type FullWalkerCallback<TState> = (\n  node: acorn.AnyNode,\n  state: TState,\n  type: string\n) => void\n\nexport type FullAncestorWalkerCallback<TState> = (\n  node: acorn.AnyNode,\n  state: TState,\n  ancestors: acorn.AnyNode[],\n  type: string\n) => void\n\ntype AggregateType = {\n  Expression: acorn.Expression,\n  Statement: acorn.Statement,\n  Function: acorn.Function,\n  Class: acorn.Class,\n  Pattern: acorn.Pattern,\n  ForInit: acorn.VariableDeclaration | acorn.Expression\n}\n\nexport type SimpleVisitors<TState> = {\n  [type in acorn.AnyNode[\"type\"]]?: (node: Extract<acorn.AnyNode, { type: type }>, state: TState) => void\n} & {\n  [type in keyof AggregateType]?: (node: AggregateType[type], state: TState) => void\n}\n\nexport type AncestorVisitors<TState> = {\n  [type in acorn.AnyNode[\"type\"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, ancestors: acorn.AnyNode[]\n) => void\n} & {\n  [type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.AnyNode[]) => void\n}\n\nexport type WalkerCallback<TState> = (node: acorn.AnyNode, state: TState) => void\n\nexport type RecursiveVisitors<TState> = {\n  [type in acorn.AnyNode[\"type\"]]?: ( node: Extract<acorn.AnyNode, { type: type }>, state: TState, callback: WalkerCallback<TState>) => void\n} &  {\n  [type in keyof AggregateType]?: (node: AggregateType[type], state: TState, callback: WalkerCallback<TState>) => void\n}\n\nexport type FindPredicate = (type: string, node: acorn.AnyNode) => boolean\n\nexport interface Found<TState> {\n  node: acorn.AnyNode,\n  state: TState\n}\n\n/**\n * does a 'simple' walk over a tree\n * @param node the AST node to walk\n * @param visitors an object with properties whose names correspond to node types in the {@link https://github.com/estree/estree | ESTree spec}. The properties should contain functions that will be called with the node object and, if applicable the state at that point.\n * @param base a walker algorithm\n * @param state a start state. The default walker will simply visit all statements and expressions and not produce a meaningful state. (An example of a use of state is to track scope at each point in the tree.)\n */\nexport function simple<TState>(\n  node: acorn.Node,\n  visitors: SimpleVisitors<TState>,\n  base?: RecursiveVisitors<TState>,\n  state?: TState\n): void\n\n/**\n * does a 'simple' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.\n */\nexport function ancestor<TState>(\n    node: acorn.Node,\n    visitors: AncestorVisitors<TState>,\n    base?: RecursiveVisitors<TState>,\n    state?: TState\n  ): void\n\n/**\n * does a 'recursive' walk, where the walker functions are responsible for continuing the walk on the child nodes of their target node.\n * @param node\n * @param state the start state\n * @param functions contain an object that maps node types to walker functions\n * @param base provides the fallback walker functions for node types that aren't handled in the {@link functions} object. If not given, the default walkers will be used.\n */\nexport function recursive<TState>(\n  node: acorn.Node,\n  state: TState,\n  functions: RecursiveVisitors<TState>,\n  base?: RecursiveVisitors<TState>\n): void\n\n/**\n * does a 'full' walk over a tree, calling the {@link callback} with the arguments (node, state, type) for each node\n */\nexport function full<TState>(\n  node: acorn.Node,\n  callback: FullWalkerCallback<TState>,\n  base?: RecursiveVisitors<TState>,\n  state?: TState\n): void\n\n/**\n * does a 'full' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.\n */\nexport function fullAncestor<TState>(\n  node: acorn.Node,\n  callback: FullAncestorWalkerCallback<TState>,\n  base?: RecursiveVisitors<TState>,\n  state?: TState\n): void\n\n/**\n * builds a new walker object by using the walker functions in {@link functions} and filling in the missing ones by taking defaults from {@link base}.\n */\nexport function make<TState>(\n  functions: RecursiveVisitors<TState>,\n  base?: RecursiveVisitors<TState>\n): RecursiveVisitors<TState>\n\n/**\n * tries to locate a node in a tree at the given start and/or end offsets, which satisfies the predicate test. {@link start} and {@link end} can be either `null` (as wildcard) or a `number`. {@link test} may be a string (indicating a node type) or a function that takes (nodeType, node) arguments and returns a boolean indicating whether this node is interesting. {@link base} and {@link state} are optional, and can be used to specify a custom walker. Nodes are tested from inner to outer, so if two nodes match the boundaries, the inner one will be preferred.\n */\nexport function findNodeAt<TState>(\n  node: acorn.Node,\n  start: number | undefined | null,\n  end?: number | undefined | null,\n  type?: FindPredicate | string,\n  base?: RecursiveVisitors<TState>,\n  state?: TState\n): Found<TState> | undefined\n\n/**\n * like {@link findNodeAt}, but will match any node that exists 'around' (spanning) the given position.\n */\nexport function findNodeAround<TState>(\n  node: acorn.Node,\n  start: number | undefined | null,\n  type?: FindPredicate | string,\n  base?: RecursiveVisitors<TState>,\n  state?: TState\n): Found<TState> | undefined\n\n/**\n * Find the outermost matching node after a given position.\n */\nexport const findNodeAfter: typeof findNodeAround\n\n/**\n * Find the outermost matching node before a given position.\n */\nexport const findNodeBefore: typeof findNodeAround\n\nexport const base: RecursiveVisitors<any>\n"
  },
  {
    "path": "bin/generate-identifier-regex.js",
    "content": "\"use strict\"\n\nconst fs = require(\"fs\")\nconst path = require(\"path\")\nconst pkg = require(\"../package.json\")\nconst dependencies = Object.keys(pkg.devDependencies)\nconst unicodeVersion = dependencies.find((name) => /^@unicode\\/unicode-\\d/.test(name))\n\nconst start = require(unicodeVersion + \"/Binary_Property/ID_Start/code-points.js\").filter(ch => ch > 0x7f)\nlet last = -1\nconst cont = [0x200c, 0x200d].concat(require(unicodeVersion + \"/Binary_Property/ID_Continue/code-points.js\")\n  .filter(ch => ch > 0x7f && search(start, ch, last + 1) === -1))\n\nfunction search(arr, ch, starting) {\n  for (let i = starting; arr[i] <= ch && i < arr.length; last = i++)\n    if (arr[i] === ch) return i\n  return -1\n}\n\nfunction esc(code) {\n  const hex = code.toString(16)\n  return hex.length <= 2 ? \"\\\\x\" + hex.padStart(2, \"0\") : \"\\\\u\" + hex.padStart(4, \"0\")\n}\n\nfunction generate(chars) {\n  const astral = []\n  let re = \"\"\n  for (let i = 0, at = 0x10000; i < chars.length; i++) {\n    let from = chars[i], to = from\n    while (i < chars.length - 1 && chars[i + 1] === to + 1) { i++; to++ }\n    if (to <= 0xffff) {\n      if (from === to) re += esc(from)\n      else if (from + 1 === to) re += esc(from) + esc(to)\n      else re += esc(from) + \"-\" + esc(to)\n    } else {\n      astral.push(from - at, to - from)\n      at = to\n    }\n  }\n  return {nonASCII: re, astral: astral}\n}\n\nconst startData = generate(start), contData = generate(cont)\n\nconst astralIdentifierStartCodes = \"export default \" + JSON.stringify(startData.astral).split(\",\").join(\", \")\nconst astralIdentifierCodes = \"export default \" + JSON.stringify(contData.astral).split(\",\").join(\", \")\nconst nonASCIIidentifierStartChars = \"export default \\\"\" + startData.nonASCII + \"\\\"\"\nconst nonASCIIidentifierChars = \"export default \\\"\" + contData.nonASCII + \"\\\"\"\n\nconst comment = \"// This file was generated. Do not modify manually!\"\n\nfunction writeGeneratedFile(filename, content) {\n  fs.writeFileSync(path.resolve(\"./acorn/src/generated\", filename + \".js\"), comment + \"\\n\" + content + \"\\n\", \"utf8\")\n}\n\nwriteGeneratedFile(\"astralIdentifierStartCodes\", astralIdentifierStartCodes)\nwriteGeneratedFile(\"astralIdentifierCodes\", astralIdentifierCodes)\nwriteGeneratedFile(\"nonASCIIidentifierStartChars\", nonASCIIidentifierStartChars)\nwriteGeneratedFile(\"nonASCIIidentifierChars\", nonASCIIidentifierChars)\n\nconsole.log(\"Done. The generated files must be committed.\")\n"
  },
  {
    "path": "bin/generate-unicode-script-values.js",
    "content": "\"use strict\"\n\nconst fs = require(\"fs\")\nconst path = require(\"path\")\n\nimport(\"../acorn/src/unicode-property-data.js\")\n  .then(m => {\n    return m.default[13].nonBinary.Script\n  })\n  .then(async(reScriptValuesAddedInES) => {\n    const scriptValues = new Set()\n    for await (const value of getLatestUnicodeScriptValues()) {\n      scriptValues.add(value)\n    }\n    const scriptValuesAddedInUnicode = \"export default \" +\n    JSON.stringify(\n      [...scriptValues]\n        // The unicode script values now follow the Unicode spec as of ES2023,\n        // but prior to ES2022 they were listed in the ES2022 spec.\n        // The generated file lists all the unicode script values except those listed before ES2022.\n        .filter(value => !reScriptValuesAddedInES.test(value))\n        .sort()\n        .join(\" \")\n    )\n\n    writeGeneratedFile(\"scriptValuesAddedInUnicode\", scriptValuesAddedInUnicode)\n\n    console.log(\"Done. The generated files must be committed.\")\n  })\n\nfunction writeGeneratedFile(filename, content) {\n  const comment = \"// This file was generated by \\\"bin/\" + path.basename(__filename) + \"\\\". Do not modify manually!\"\n  fs.writeFileSync(path.resolve(\"./acorn/src/generated\", filename + \".js\"), comment + \"\\n\" + content + \"\\n\", \"utf8\")\n}\n\n/**\n * Gets the all unicode script values from the latest PropertyValueAliases.\n */\nasync function * getLatestUnicodeScriptValues() {\n  const response = await fetch(\"https://unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt\")\n  const lines = (await response.text()).split(\"\\n\")\n  for (const line of lines) {\n    if (!line || line.startsWith(\"#\")) {\n      continue\n    }\n    const [propertyAlias, alias, canonical, ...remaining] = line\n      .split(\"#\")[0] // strip comments\n      .split(\";\") // split by semicolon\n      .map((x) => x.trim()) // trim\n\n    if (propertyAlias !== \"sc\") {\n      continue\n    }\n\n    yield canonical\n    yield alias\n    yield * remaining\n  }\n}\n"
  },
  {
    "path": "bin/run_test262.js",
    "content": "const fs = require(\"fs\")\nconst path = require(\"path\")\nconst run = require(\"test262-parser-runner\")\nconst parse = require(\"../acorn\").parse\n\nfunction loadList(filename) {\n  return fs.readFileSync(filename, \"utf8\")\n    .split(\"\\n\")\n    .filter(Boolean)\n}\n\nrun(\n  (content, {sourceType}) => parse(content, {sourceType, ecmaVersion: \"latest\", preserveParens: true}),\n  {\n    testsDirectory: path.dirname(require.resolve(\"test262/package.json\")),\n    skip: test => test.attrs.features &&\n      loadList(\"./bin/test262.unsupported-features\").some(f => test.attrs.features.includes(f)),\n    whitelist: loadList(\"./bin/test262.whitelist\")\n      .map(filename => path.sep === \"/\" ? filename : filename.split(\"/\").join(path.sep))\n  }\n)\n"
  },
  {
    "path": "bin/test262.unsupported-features",
    "content": "decorators\nimport-defer\nsource-phase-imports\n"
  },
  {
    "path": "bin/test262.whitelist",
    "content": "staging/explicit-resource-management/await-using-in-switch-case-block.js (default)\nstaging/explicit-resource-management/await-using-in-switch-case-block.js (strict mode)\nstaging/explicit-resource-management/call-dispose-methods.js (default)\nstaging/explicit-resource-management/call-dispose-methods.js (strict mode)\nlanguage/statements/await-using/syntax/await-using-invalid-for-in.js (default)\nlanguage/statements/await-using/syntax/await-using-invalid-for-in.js (strict mode)\nlanguage/statements/await-using/syntax/with-initializer-do-statement-while-expression.js (default)\nlanguage/statements/await-using/syntax/with-initializer-do-statement-while-expression.js (strict mode)\nlanguage/statements/await-using/syntax/with-initializer-for-statement.js (default)\nlanguage/statements/await-using/syntax/with-initializer-for-statement.js (strict mode)\nlanguage/statements/await-using/syntax/with-initializer-if-expression-statement-else-statement.js (default)\nlanguage/statements/await-using/syntax/with-initializer-if-expression-statement-else-statement.js (strict mode)\nlanguage/statements/await-using/syntax/with-initializer-if-expression-statement.js (default)\nlanguage/statements/await-using/syntax/with-initializer-if-expression-statement.js (strict mode)\nlanguage/statements/await-using/syntax/with-initializer-label-statement.js (default)\nlanguage/statements/await-using/syntax/with-initializer-label-statement.js (strict mode)\nlanguage/statements/await-using/syntax/with-initializer-while-expression-statement.js (default)\nlanguage/statements/await-using/syntax/with-initializer-while-expression-statement.js (strict mode)\nlanguage/statements/using/syntax/using-invalid-for-in.js (default)\nlanguage/statements/using/syntax/using-invalid-for-in.js (strict mode)\nlanguage/statements/using/syntax/with-initializer-for-statement.js (default)\nlanguage/statements/using/syntax/with-initializer-for-statement.js (strict mode)\nannexB/language/expressions/assignmenttargettype/callexpression-as-for-in-lhs.js (default)\nannexB/language/expressions/assignmenttargettype/callexpression-as-for-of-lhs.js (default)\nannexB/language/expressions/assignmenttargettype/callexpression-in-compound-assignment.js (default)\nannexB/language/expressions/assignmenttargettype/callexpression-in-prefix-update.js (default)\nannexB/language/expressions/assignmenttargettype/callexpression.js (default)\nannexB/language/expressions/assignmenttargettype/callexpression-in-postfix-update.js (default)\nannexB/language/expressions/assignmenttargettype/cover-callexpression-and-asyncarrowhead.js (default)\nlanguage/statements/await-using/syntax/await-using-valid-for-await-using-of-of.js (default)\nlanguage/statements/await-using/syntax/await-using-valid-for-await-using-of-of.js (strict mode)\nlanguage/statements/using/syntax/using-for-statement.js (default)\nlanguage/statements/using/syntax/using-for-statement.js (strict mode)"
  },
  {
    "path": "bin/update_authors.sh",
    "content": "echo \"List of Acorn contributors. Updated before every release.\" > AUTHORS\necho >> AUTHORS\ngit log --format='%aN' | sort -uf >> AUTHORS\n"
  },
  {
    "path": "eslint.config.mjs",
    "content": "import js from \"@eslint/js\"\nimport neostandard from \"neostandard\"\nimport importPlugin from \"eslint-plugin-import\"\n\nexport default [\n  {\n    ignores: [\n      \"**/dist/**\",\n      \"**/test/**\",\n      \"**/local/**\"\n    ]\n  },\n  js.configs.recommended,\n  ...neostandard(),\n  importPlugin.flatConfigs.recommended,\n  {\n    languageOptions: {\n      globals: {\n        BigInt: false,\n        Packages: false\n      }\n    }\n  },\n  {\n    rules: {\n      \"@stylistic/indent\": [\n        \"error\",\n        2,\n        {\n          SwitchCase: 0,\n          VariableDeclarator: 2,\n          CallExpression: {arguments: \"off\"}\n        }\n      ],\n      \"@stylistic/new-parens\": \"off\",\n      \"@stylistic/no-mixed-operators\": \"off\",\n      \"@stylistic/object-curly-spacing\": [\"error\", \"never\"],\n      \"@stylistic/quotes\": [\"error\", \"double\"],\n      \"@stylistic/semi-spacing\": \"off\",\n      \"@stylistic/space-before-function-paren\": [\"error\", \"never\"],\n      \"no-unreachable-loop\": \"off\",\n      \"no-empty\": \"off\",\n      curly: \"off\",\n      eqeqeq: [\"error\", \"always\", {null: \"ignore\"}],\n      \"new-parens\": \"off\",\n      \"no-case-declarations\": \"off\",\n      \"no-cond-assign\": \"off\",\n      \"no-console\": [\"error\", {allow: [\"warn\", \"error\"]}],\n      \"no-fallthrough\": \"off\",\n      \"no-labels\": \"off\",\n      \"no-return-assign\": \"off\",\n      \"no-unused-labels\": \"error\",\n      \"no-var\": \"error\",\n      \"object-shorthand\": \"off\",\n      \"one-var\": \"off\",\n      \"prefer-const\": \"off\"\n    }\n  },\n  {\n    files: [\n      \"acorn/src/bin/*.js\",\n      \"bin/generate-identifier-regex.js\",\n      \"bin/generate-unicode-script-values.js\"\n    ],\n    languageOptions: {\n      ecmaVersion: 2022\n    },\n    rules: {\n      \"no-console\": \"off\"\n    }\n  }\n]\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"maintainers\": [\n    {\n      \"name\": \"Marijn Haverbeke\",\n      \"email\": \"marijnh@gmail.com\",\n      \"web\": \"http://marijnhaverbeke.nl\"\n    },\n    {\n      \"name\": \"Ingvar Stepanyan\",\n      \"email\": \"me@rreverser.com\",\n      \"web\": \"http://rreverser.com/\"\n    },\n    {\n      \"name\": \"Adrian Heine\",\n      \"web\": \"http://adrianheine.de\"\n    }\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/acornjs/acorn.git\"\n  },\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"build\": \"npm run build:main && npm run build:walk && npm run build:loose\",\n    \"build:loose\": \"rollup -c acorn-loose/rollup.config.mjs\",\n    \"build:main\": \"rollup -c acorn/rollup.config.mjs\",\n    \"build:walk\": \"rollup -c acorn-walk/rollup.config.mjs\",\n    \"generate\": \"npm run generate:identifier-regex && npm run generate:unicode-script-values\",\n    \"generate:identifier-regex\": \"node bin/generate-identifier-regex.js\",\n    \"generate:unicode-script-values\": \"node bin/generate-unicode-script-values.js\",\n    \"lint\": \"eslint .\",\n    \"lint:fix\": \"eslint . --fix\",\n    \"prepare\": \"npm run test\",\n    \"pretest\": \"npm run build:main && npm run build:loose\",\n    \"test\": \"node test/run.js\",\n    \"test:test262\": \"node bin/run_test262.js\"\n  },\n  \"devDependencies\": {\n    \"@eslint/js\": \"^9.39.2\",\n    \"@rollup/plugin-buble\": \"^1.0.3\",\n    \"@babel/core\": \"^7.29.0\",\n    \"@babel/preset-env\": \"^7.29.0\",\n    \"@unicode/unicode-17.0.0\": \"^1.6.16\",\n    \"eslint\": \"^9.0.0\",\n    \"eslint-plugin-import\": \"^2.32.0\",\n    \"eslint-plugin-n\": \"^17.23.1\",\n    \"neostandard\": \"^0.13.0\",\n    \"rollup\": \"^4.59.0\",\n    \"test262\": \"git+https://github.com/tc39/test262.git#84082e2705b9119d91789f9745df78a6fcecf7ca\",\n    \"test262-parser-runner\": \"^0.5.0\"\n  }\n}\n"
  },
  {
    "path": "test/bench/common.js",
    "content": "'use strict';\n\nconst isWorker = typeof importScripts !== 'undefined';\n\n// var because must leak into globals\nvar module, exports, req;\n\n// CommonJS shim for Web Worker\nif (isWorker) {\n  exports = self;\n\n  req = (name, urlPrefix = 'https://unpkg.com/') => {\n    let oldModule = module, oldExports = exports;\n    exports = {};\n    module = { exports };\n    importScripts(urlPrefix + name);\n    let exported = module.exports;\n    module = oldModule;\n    exports = oldExports;\n    return exported;\n  };\n} else {\n  req = require;\n}\n\nexports.parsers = {\n  'Acorn (dev)'() {\n    const { parse } = req('../../acorn/dist/acorn.js', '');\n    return {\n      version: '',\n      parse: s => parse(s, { locations: true })\n    };\n  },\n\n  'Acorn'() {\n    const { version, parse } = req('acorn');\n    return {\n      version,\n      parse: s => parse(s, { locations: true })\n    };\n  },\n\n  'Esprima'() {\n    const { version, parse } = req('esprima');\n    return {\n      version,\n      parse: s => parse(s, { loc: true })\n    }\n  },\n\n  'TypeScript'() {\n    const { version, createSourceFile, ScriptTarget: { ES6 } } = req('typescript');\n    return {\n      version,\n      parse: s => createSourceFile('source.js', s, ES6)\n    };\n  },\n\n  'Traceur'() {\n    req('traceur/bin/traceur.js'); // it creates a global :(\n    const { SourceFile, Parser } = traceur.syntax;\n    return {\n      version: traceur.loader.TraceurLoader.prototype.version,\n      parse: s => new Parser(new SourceFile('source.js', s)).parseScript()\n    }\n  },\n\n  'Flow'() {\n    const { parse } = req('flow-parser');\n    return {\n      version: isWorker ? '' : require('flow-parser/package.json').version,\n      parse\n    };\n  },\n\n  'Babylon'() {\n    const { parse } = req('babylon');\n    return {\n      version: isWorker ? '' : require('babylon/package.json').version,\n      parse\n    };\n  },\n};\n\nexports.parserNames = Object.keys(exports.parsers);\n\nexports.inputNames = [\n  'angular.js',\n  'backbone.js',\n  'ember.js',\n  'jquery.js',\n  'react-dom.js',\n  'react.js'\n];\n\nlet read;\n\nif (isWorker) {\n  read = name => fetch(name).then(response => response.text());\n} else {\n  const { readFile } = require('fs');\n\n  read = name => new Promise((resolve, reject) => {\n    readFile(`${__dirname}/${name}`, 'utf-8', (err, data) => {\n      err ? reject(err) : resolve(data);\n    });\n  });\n}\n\nexports.inputs = Promise.all(\n  exports.inputNames\n  .map(name => read(`fixtures/${name}`))\n);\n"
  },
  {
    "path": "test/bench/fixtures/angular.js",
    "content": "/**\n * @license AngularJS v1.6.1\n * (c) 2010-2016 Google, Inc. http://angularjs.org\n * License: MIT\n */\n(function(window) {'use strict';\n\n/**\n * @description\n *\n * This object provides a utility for producing rich Error messages within\n * Angular. It can be called as follows:\n *\n * var exampleMinErr = minErr('example');\n * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);\n *\n * The above creates an instance of minErr in the example namespace. The\n * resulting error will have a namespaced error code of example.one.  The\n * resulting error will replace {0} with the value of foo, and {1} with the\n * value of bar. The object is not restricted in the number of arguments it can\n * take.\n *\n * If fewer arguments are specified than necessary for interpolation, the extra\n * interpolation markers will be preserved in the final string.\n *\n * Since data will be parsed statically during a build step, some restrictions\n * are applied with respect to how minErr instances are created and called.\n * Instances should have names of the form namespaceMinErr for a minErr created\n * using minErr('namespace') . Error codes, namespaces and template strings\n * should all be static strings, not variables or general expressions.\n *\n * @param {string} module The namespace to use for the new minErr instance.\n * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning\n *   error from returned function, for cases when a particular type of error is useful.\n * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance\n */\n\nfunction minErr(module, ErrorConstructor) {\n  ErrorConstructor = ErrorConstructor || Error;\n  return function() {\n    var SKIP_INDEXES = 2;\n\n    var templateArgs = arguments,\n      code = templateArgs[0],\n      message = '[' + (module ? module + ':' : '') + code + '] ',\n      template = templateArgs[1],\n      paramPrefix, i;\n\n    message += template.replace(/\\{\\d+\\}/g, function(match) {\n      var index = +match.slice(1, -1),\n        shiftedIndex = index + SKIP_INDEXES;\n\n      if (shiftedIndex < templateArgs.length) {\n        return toDebugString(templateArgs[shiftedIndex]);\n      }\n\n      return match;\n    });\n\n    message += '\\nhttp://errors.angularjs.org/1.6.1/' +\n      (module ? module + '/' : '') + code;\n\n    for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {\n      message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +\n        encodeURIComponent(toDebugString(templateArgs[i]));\n    }\n\n    return new ErrorConstructor(message);\n  };\n}\n\n/* We need to tell ESLint what variables are being exported */\n/* exported\n  angular,\n  msie,\n  jqLite,\n  jQuery,\n  slice,\n  splice,\n  push,\n  toString,\n  ngMinErr,\n  angularModule,\n  uid,\n  REGEX_STRING_REGEXP,\n  VALIDITY_STATE_PROPERTY,\n\n  lowercase,\n  uppercase,\n  manualLowercase,\n  manualUppercase,\n  nodeName_,\n  isArrayLike,\n  forEach,\n  forEachSorted,\n  reverseParams,\n  nextUid,\n  setHashKey,\n  extend,\n  toInt,\n  inherit,\n  merge,\n  noop,\n  identity,\n  valueFn,\n  isUndefined,\n  isDefined,\n  isObject,\n  isBlankObject,\n  isString,\n  isNumber,\n  isNumberNaN,\n  isDate,\n  isArray,\n  isFunction,\n  isRegExp,\n  isWindow,\n  isScope,\n  isFile,\n  isFormData,\n  isBlob,\n  isBoolean,\n  isPromiseLike,\n  trim,\n  escapeForRegexp,\n  isElement,\n  makeMap,\n  includes,\n  arrayRemove,\n  copy,\n  equals,\n  csp,\n  jq,\n  concat,\n  sliceArgs,\n  bind,\n  toJsonReplacer,\n  toJson,\n  fromJson,\n  convertTimezoneToLocal,\n  timezoneToOffset,\n  startingTag,\n  tryDecodeURIComponent,\n  parseKeyValue,\n  toKeyValue,\n  encodeUriSegment,\n  encodeUriQuery,\n  angularInit,\n  bootstrap,\n  getTestability,\n  snake_case,\n  bindJQuery,\n  assertArg,\n  assertArgFn,\n  assertNotHasOwnProperty,\n  getter,\n  getBlockNodes,\n  hasOwnProperty,\n  createMap,\n  stringify,\n\n  NODE_TYPE_ELEMENT,\n  NODE_TYPE_ATTRIBUTE,\n  NODE_TYPE_TEXT,\n  NODE_TYPE_COMMENT,\n  NODE_TYPE_DOCUMENT,\n  NODE_TYPE_DOCUMENT_FRAGMENT\n*/\n\n////////////////////////////////////\n\n/**\n * @ngdoc module\n * @name ng\n * @module ng\n * @installation\n * @description\n *\n * # ng (core module)\n * The ng module is loaded by default when an AngularJS application is started. The module itself\n * contains the essential components for an AngularJS application to function. The table below\n * lists a high level breakdown of each of the services/factories, filters, directives and testing\n * components available within this core module.\n *\n * <div doc-module-components=\"ng\"></div>\n */\n\nvar REGEX_STRING_REGEXP = /^\\/(.+)\\/([a-z]*)$/;\n\n// The name of a form control's ValidityState property.\n// This is used so that it's possible for internal tests to create mock ValidityStates.\nvar VALIDITY_STATE_PROPERTY = 'validity';\n\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * @ngdoc function\n * @name angular.lowercase\n * @module ng\n * @kind function\n *\n * @deprecated\n * sinceVersion=\"1.5.0\"\n * removeVersion=\"1.7.0\"\n * Use [String.prototype.toLowerCase](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase) instead.\n *\n * @description Converts the specified string to lowercase.\n * @param {string} string String to be converted to lowercase.\n * @returns {string} Lowercased string.\n */\nvar lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};\n\n/**\n * @ngdoc function\n * @name angular.uppercase\n * @module ng\n * @kind function\n *\n * @deprecated\n * sinceVersion=\"1.5.0\"\n * removeVersion=\"1.7.0\"\n * Use [String.prototype.toUpperCase](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase) instead.\n *\n * @description Converts the specified string to uppercase.\n * @param {string} string String to be converted to uppercase.\n * @returns {string} Uppercased string.\n */\nvar uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};\n\n\nvar manualLowercase = function(s) {\n  /* eslint-disable no-bitwise */\n  return isString(s)\n      ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})\n      : s;\n  /* eslint-enable */\n};\nvar manualUppercase = function(s) {\n  /* eslint-disable no-bitwise */\n  return isString(s)\n      ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})\n      : s;\n  /* eslint-enable */\n};\n\n\n// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish\n// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods\n// with correct but slower alternatives. See https://github.com/angular/angular.js/issues/11387\nif ('i' !== 'I'.toLowerCase()) {\n  lowercase = manualLowercase;\n  uppercase = manualUppercase;\n}\n\n\nvar\n    msie,             // holds major version number for IE, or NaN if UA is not IE.\n    jqLite,           // delay binding since jQuery could be loaded after us.\n    jQuery,           // delay binding\n    slice             = [].slice,\n    splice            = [].splice,\n    push              = [].push,\n    toString          = Object.prototype.toString,\n    getPrototypeOf    = Object.getPrototypeOf,\n    ngMinErr          = minErr('ng'),\n\n    /** @name angular */\n    angular           = window.angular || (window.angular = {}),\n    angularModule,\n    uid               = 0;\n\n// Support: IE 9-11 only\n/**\n * documentMode is an IE-only property\n * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx\n */\nmsie = window.document.documentMode;\n\n\n/**\n * @private\n * @param {*} obj\n * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,\n *                   String ...)\n */\nfunction isArrayLike(obj) {\n\n  // `null`, `undefined` and `window` are not array-like\n  if (obj == null || isWindow(obj)) return false;\n\n  // arrays, strings and jQuery/jqLite objects are array like\n  // * jqLite is either the jQuery or jqLite constructor function\n  // * we have to check the existence of jqLite first as this method is called\n  //   via the forEach method when constructing the jqLite object in the first place\n  if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;\n\n  // Support: iOS 8.2 (not reproducible in simulator)\n  // \"length\" in obj used to prevent JIT error (gh-11508)\n  var length = 'length' in Object(obj) && obj.length;\n\n  // NodeList objects (with `item` method) and\n  // other objects with suitable length characteristics are array-like\n  return isNumber(length) &&\n    (length >= 0 && ((length - 1) in obj || obj instanceof Array) || typeof obj.item === 'function');\n\n}\n\n/**\n * @ngdoc function\n * @name angular.forEach\n * @module ng\n * @kind function\n *\n * @description\n * Invokes the `iterator` function once for each item in `obj` collection, which can be either an\n * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`\n * is the value of an object property or an array element, `key` is the object property key or\n * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.\n *\n * It is worth noting that `.forEach` does not iterate over inherited properties because it filters\n * using the `hasOwnProperty` method.\n *\n * Unlike ES262's\n * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),\n * providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just\n * return the value provided.\n *\n   ```js\n     var values = {name: 'misko', gender: 'male'};\n     var log = [];\n     angular.forEach(values, function(value, key) {\n       this.push(key + ': ' + value);\n     }, log);\n     expect(log).toEqual(['name: misko', 'gender: male']);\n   ```\n *\n * @param {Object|Array} obj Object to iterate over.\n * @param {Function} iterator Iterator function.\n * @param {Object=} context Object to become context (`this`) for the iterator function.\n * @returns {Object|Array} Reference to `obj`.\n */\n\nfunction forEach(obj, iterator, context) {\n  var key, length;\n  if (obj) {\n    if (isFunction(obj)) {\n      for (key in obj) {\n        if (key !== 'prototype' && key !== 'length' && key !== 'name' && obj.hasOwnProperty(key)) {\n          iterator.call(context, obj[key], key, obj);\n        }\n      }\n    } else if (isArray(obj) || isArrayLike(obj)) {\n      var isPrimitive = typeof obj !== 'object';\n      for (key = 0, length = obj.length; key < length; key++) {\n        if (isPrimitive || key in obj) {\n          iterator.call(context, obj[key], key, obj);\n        }\n      }\n    } else if (obj.forEach && obj.forEach !== forEach) {\n        obj.forEach(iterator, context, obj);\n    } else if (isBlankObject(obj)) {\n      // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n      for (key in obj) {\n        iterator.call(context, obj[key], key, obj);\n      }\n    } else if (typeof obj.hasOwnProperty === 'function') {\n      // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed\n      for (key in obj) {\n        if (obj.hasOwnProperty(key)) {\n          iterator.call(context, obj[key], key, obj);\n        }\n      }\n    } else {\n      // Slow path for objects which do not have a method `hasOwnProperty`\n      for (key in obj) {\n        if (hasOwnProperty.call(obj, key)) {\n          iterator.call(context, obj[key], key, obj);\n        }\n      }\n    }\n  }\n  return obj;\n}\n\nfunction forEachSorted(obj, iterator, context) {\n  var keys = Object.keys(obj).sort();\n  for (var i = 0; i < keys.length; i++) {\n    iterator.call(context, obj[keys[i]], keys[i]);\n  }\n  return keys;\n}\n\n\n/**\n * when using forEach the params are value, key, but it is often useful to have key, value.\n * @param {function(string, *)} iteratorFn\n * @returns {function(*, string)}\n */\nfunction reverseParams(iteratorFn) {\n  return function(value, key) {iteratorFn(key, value);};\n}\n\n/**\n * A consistent way of creating unique IDs in angular.\n *\n * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before\n * we hit number precision issues in JavaScript.\n *\n * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M\n *\n * @returns {number} an unique alpha-numeric string\n */\nfunction nextUid() {\n  return ++uid;\n}\n\n\n/**\n * Set or clear the hashkey for an object.\n * @param obj object\n * @param h the hashkey (!truthy to delete the hashkey)\n */\nfunction setHashKey(obj, h) {\n  if (h) {\n    obj.$$hashKey = h;\n  } else {\n    delete obj.$$hashKey;\n  }\n}\n\n\nfunction baseExtend(dst, objs, deep) {\n  var h = dst.$$hashKey;\n\n  for (var i = 0, ii = objs.length; i < ii; ++i) {\n    var obj = objs[i];\n    if (!isObject(obj) && !isFunction(obj)) continue;\n    var keys = Object.keys(obj);\n    for (var j = 0, jj = keys.length; j < jj; j++) {\n      var key = keys[j];\n      var src = obj[key];\n\n      if (deep && isObject(src)) {\n        if (isDate(src)) {\n          dst[key] = new Date(src.valueOf());\n        } else if (isRegExp(src)) {\n          dst[key] = new RegExp(src);\n        } else if (src.nodeName) {\n          dst[key] = src.cloneNode(true);\n        } else if (isElement(src)) {\n          dst[key] = src.clone();\n        } else {\n          if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};\n          baseExtend(dst[key], [src], true);\n        }\n      } else {\n        dst[key] = src;\n      }\n    }\n  }\n\n  setHashKey(dst, h);\n  return dst;\n}\n\n/**\n * @ngdoc function\n * @name angular.extend\n * @module ng\n * @kind function\n *\n * @description\n * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.\n *\n * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use\n * {@link angular.merge} for this.\n *\n * @param {Object} dst Destination object.\n * @param {...Object} src Source object(s).\n * @returns {Object} Reference to `dst`.\n */\nfunction extend(dst) {\n  return baseExtend(dst, slice.call(arguments, 1), false);\n}\n\n\n/**\n* @ngdoc function\n* @name angular.merge\n* @module ng\n* @kind function\n*\n* @description\n* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.\n*\n* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source\n* objects, performing a deep copy.\n*\n* @param {Object} dst Destination object.\n* @param {...Object} src Source object(s).\n* @returns {Object} Reference to `dst`.\n*/\nfunction merge(dst) {\n  return baseExtend(dst, slice.call(arguments, 1), true);\n}\n\n\n\nfunction toInt(str) {\n  return parseInt(str, 10);\n}\n\nvar isNumberNaN = Number.isNaN || function isNumberNaN(num) {\n  // eslint-disable-next-line no-self-compare\n  return num !== num;\n};\n\n\nfunction inherit(parent, extra) {\n  return extend(Object.create(parent), extra);\n}\n\n/**\n * @ngdoc function\n * @name angular.noop\n * @module ng\n * @kind function\n *\n * @description\n * A function that performs no operations. This function can be useful when writing code in the\n * functional style.\n   ```js\n     function foo(callback) {\n       var result = calculateResult();\n       (callback || angular.noop)(result);\n     }\n   ```\n */\nfunction noop() {}\nnoop.$inject = [];\n\n\n/**\n * @ngdoc function\n * @name angular.identity\n * @module ng\n * @kind function\n *\n * @description\n * A function that returns its first argument. This function is useful when writing code in the\n * functional style.\n *\n   ```js\n   function transformer(transformationFn, value) {\n     return (transformationFn || angular.identity)(value);\n   };\n\n   // E.g.\n   function getResult(fn, input) {\n     return (fn || angular.identity)(input);\n   };\n\n   getResult(function(n) { return n * 2; }, 21);   // returns 42\n   getResult(null, 21);                            // returns 21\n   getResult(undefined, 21);                       // returns 21\n   ```\n *\n * @param {*} value to be returned.\n * @returns {*} the value passed in.\n */\nfunction identity($) {return $;}\nidentity.$inject = [];\n\n\nfunction valueFn(value) {return function valueRef() {return value;};}\n\nfunction hasCustomToString(obj) {\n  return isFunction(obj.toString) && obj.toString !== toString;\n}\n\n\n/**\n * @ngdoc function\n * @name angular.isUndefined\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is undefined.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is undefined.\n */\nfunction isUndefined(value) {return typeof value === 'undefined';}\n\n\n/**\n * @ngdoc function\n * @name angular.isDefined\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is defined.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is defined.\n */\nfunction isDefined(value) {return typeof value !== 'undefined';}\n\n\n/**\n * @ngdoc function\n * @name angular.isObject\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not\n * considered to be objects. Note that JavaScript arrays are objects.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is an `Object` but not `null`.\n */\nfunction isObject(value) {\n  // http://jsperf.com/isobject4\n  return value !== null && typeof value === 'object';\n}\n\n\n/**\n * Determine if a value is an object with a null prototype\n *\n * @returns {boolean} True if `value` is an `Object` with a null prototype\n */\nfunction isBlankObject(value) {\n  return value !== null && typeof value === 'object' && !getPrototypeOf(value);\n}\n\n\n/**\n * @ngdoc function\n * @name angular.isString\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is a `String`.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is a `String`.\n */\nfunction isString(value) {return typeof value === 'string';}\n\n\n/**\n * @ngdoc function\n * @name angular.isNumber\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is a `Number`.\n *\n * This includes the \"special\" numbers `NaN`, `+Infinity` and `-Infinity`.\n *\n * If you wish to exclude these then you can use the native\n * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)\n * method.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is a `Number`.\n */\nfunction isNumber(value) {return typeof value === 'number';}\n\n\n/**\n * @ngdoc function\n * @name angular.isDate\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a value is a date.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is a `Date`.\n */\nfunction isDate(value) {\n  return toString.call(value) === '[object Date]';\n}\n\n\n/**\n * @ngdoc function\n * @name angular.isArray\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is an `Array`. Alias of Array.isArray.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is an `Array`.\n */\nvar isArray = Array.isArray;\n\n/**\n * @ngdoc function\n * @name angular.isFunction\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is a `Function`.\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is a `Function`.\n */\nfunction isFunction(value) {return typeof value === 'function';}\n\n\n/**\n * Determines if a value is a regular expression object.\n *\n * @private\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is a `RegExp`.\n */\nfunction isRegExp(value) {\n  return toString.call(value) === '[object RegExp]';\n}\n\n\n/**\n * Checks if `obj` is a window object.\n *\n * @private\n * @param {*} obj Object to check\n * @returns {boolean} True if `obj` is a window obj.\n */\nfunction isWindow(obj) {\n  return obj && obj.window === obj;\n}\n\n\nfunction isScope(obj) {\n  return obj && obj.$evalAsync && obj.$watch;\n}\n\n\nfunction isFile(obj) {\n  return toString.call(obj) === '[object File]';\n}\n\n\nfunction isFormData(obj) {\n  return toString.call(obj) === '[object FormData]';\n}\n\n\nfunction isBlob(obj) {\n  return toString.call(obj) === '[object Blob]';\n}\n\n\nfunction isBoolean(value) {\n  return typeof value === 'boolean';\n}\n\n\nfunction isPromiseLike(obj) {\n  return obj && isFunction(obj.then);\n}\n\n\nvar TYPED_ARRAY_REGEXP = /^\\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;\nfunction isTypedArray(value) {\n  return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));\n}\n\nfunction isArrayBuffer(obj) {\n  return toString.call(obj) === '[object ArrayBuffer]';\n}\n\n\nvar trim = function(value) {\n  return isString(value) ? value.trim() : value;\n};\n\n// Copied from:\n// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021\n// Prereq: s is a string.\nvar escapeForRegexp = function(s) {\n  return s\n    .replace(/([-()[\\]{}+?*.$^|,:#<!\\\\])/g, '\\\\$1')\n    // eslint-disable-next-line no-control-regex\n    .replace(/\\x08/g, '\\\\x08');\n};\n\n\n/**\n * @ngdoc function\n * @name angular.isElement\n * @module ng\n * @kind function\n *\n * @description\n * Determines if a reference is a DOM element (or wrapped jQuery element).\n *\n * @param {*} value Reference to check.\n * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).\n */\nfunction isElement(node) {\n  return !!(node &&\n    (node.nodeName  // We are a direct element.\n    || (node.prop && node.attr && node.find)));  // We have an on and find method part of jQuery API.\n}\n\n/**\n * @param str 'key1,key2,...'\n * @returns {object} in the form of {key1:true, key2:true, ...}\n */\nfunction makeMap(str) {\n  var obj = {}, items = str.split(','), i;\n  for (i = 0; i < items.length; i++) {\n    obj[items[i]] = true;\n  }\n  return obj;\n}\n\n\nfunction nodeName_(element) {\n  return lowercase(element.nodeName || (element[0] && element[0].nodeName));\n}\n\nfunction includes(array, obj) {\n  return Array.prototype.indexOf.call(array, obj) !== -1;\n}\n\nfunction arrayRemove(array, value) {\n  var index = array.indexOf(value);\n  if (index >= 0) {\n    array.splice(index, 1);\n  }\n  return index;\n}\n\n/**\n * @ngdoc function\n * @name angular.copy\n * @module ng\n * @kind function\n *\n * @description\n * Creates a deep copy of `source`, which should be an object or an array.\n *\n * * If no destination is supplied, a copy of the object or array is created.\n * * If a destination is provided, all of its elements (for arrays) or properties (for objects)\n *   are deleted and then all elements/properties from the source are copied to it.\n * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.\n * * If `source` is identical to `destination` an exception will be thrown.\n *\n * <br />\n * <div class=\"alert alert-warning\">\n *   Only enumerable properties are taken into account. Non-enumerable properties (both on `source`\n *   and on `destination`) will be ignored.\n * </div>\n *\n * @param {*} source The source that will be used to make a copy.\n *                   Can be any type, including primitives, `null`, and `undefined`.\n * @param {(Object|Array)=} destination Destination into which the source is copied. If\n *     provided, must be of the same type as `source`.\n * @returns {*} The copy or updated `destination`, if `destination` was specified.\n *\n * @example\n  <example module=\"copyExample\" name=\"angular-copy\">\n    <file name=\"index.html\">\n      <div ng-controller=\"ExampleController\">\n        <form novalidate class=\"simple-form\">\n          <label>Name: <input type=\"text\" ng-model=\"user.name\" /></label><br />\n          <label>Age:  <input type=\"number\" ng-model=\"user.age\" /></label><br />\n          Gender: <label><input type=\"radio\" ng-model=\"user.gender\" value=\"male\" />male</label>\n                  <label><input type=\"radio\" ng-model=\"user.gender\" value=\"female\" />female</label><br />\n          <button ng-click=\"reset()\">RESET</button>\n          <button ng-click=\"update(user)\">SAVE</button>\n        </form>\n        <pre>form = {{user | json}}</pre>\n        <pre>master = {{master | json}}</pre>\n      </div>\n    </file>\n    <file name=\"script.js\">\n      // Module: copyExample\n      angular.\n        module('copyExample', []).\n        controller('ExampleController', ['$scope', function($scope) {\n          $scope.master = {};\n\n          $scope.reset = function() {\n            // Example with 1 argument\n            $scope.user = angular.copy($scope.master);\n          };\n\n          $scope.update = function(user) {\n            // Example with 2 arguments\n            angular.copy(user, $scope.master);\n          };\n\n          $scope.reset();\n        }]);\n    </file>\n  </example>\n */\nfunction copy(source, destination) {\n  var stackSource = [];\n  var stackDest = [];\n\n  if (destination) {\n    if (isTypedArray(destination) || isArrayBuffer(destination)) {\n      throw ngMinErr('cpta', 'Can\\'t copy! TypedArray destination cannot be mutated.');\n    }\n    if (source === destination) {\n      throw ngMinErr('cpi', 'Can\\'t copy! Source and destination are identical.');\n    }\n\n    // Empty the destination object\n    if (isArray(destination)) {\n      destination.length = 0;\n    } else {\n      forEach(destination, function(value, key) {\n        if (key !== '$$hashKey') {\n          delete destination[key];\n        }\n      });\n    }\n\n    stackSource.push(source);\n    stackDest.push(destination);\n    return copyRecurse(source, destination);\n  }\n\n  return copyElement(source);\n\n  function copyRecurse(source, destination) {\n    var h = destination.$$hashKey;\n    var key;\n    if (isArray(source)) {\n      for (var i = 0, ii = source.length; i < ii; i++) {\n        destination.push(copyElement(source[i]));\n      }\n    } else if (isBlankObject(source)) {\n      // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n      for (key in source) {\n        destination[key] = copyElement(source[key]);\n      }\n    } else if (source && typeof source.hasOwnProperty === 'function') {\n      // Slow path, which must rely on hasOwnProperty\n      for (key in source) {\n        if (source.hasOwnProperty(key)) {\n          destination[key] = copyElement(source[key]);\n        }\n      }\n    } else {\n      // Slowest path --- hasOwnProperty can't be called as a method\n      for (key in source) {\n        if (hasOwnProperty.call(source, key)) {\n          destination[key] = copyElement(source[key]);\n        }\n      }\n    }\n    setHashKey(destination, h);\n    return destination;\n  }\n\n  function copyElement(source) {\n    // Simple values\n    if (!isObject(source)) {\n      return source;\n    }\n\n    // Already copied values\n    var index = stackSource.indexOf(source);\n    if (index !== -1) {\n      return stackDest[index];\n    }\n\n    if (isWindow(source) || isScope(source)) {\n      throw ngMinErr('cpws',\n        'Can\\'t copy! Making copies of Window or Scope instances is not supported.');\n    }\n\n    var needsRecurse = false;\n    var destination = copyType(source);\n\n    if (destination === undefined) {\n      destination = isArray(source) ? [] : Object.create(getPrototypeOf(source));\n      needsRecurse = true;\n    }\n\n    stackSource.push(source);\n    stackDest.push(destination);\n\n    return needsRecurse\n      ? copyRecurse(source, destination)\n      : destination;\n  }\n\n  function copyType(source) {\n    switch (toString.call(source)) {\n      case '[object Int8Array]':\n      case '[object Int16Array]':\n      case '[object Int32Array]':\n      case '[object Float32Array]':\n      case '[object Float64Array]':\n      case '[object Uint8Array]':\n      case '[object Uint8ClampedArray]':\n      case '[object Uint16Array]':\n      case '[object Uint32Array]':\n        return new source.constructor(copyElement(source.buffer), source.byteOffset, source.length);\n\n      case '[object ArrayBuffer]':\n        // Support: IE10\n        if (!source.slice) {\n          // If we're in this case we know the environment supports ArrayBuffer\n          /* eslint-disable no-undef */\n          var copied = new ArrayBuffer(source.byteLength);\n          new Uint8Array(copied).set(new Uint8Array(source));\n          /* eslint-enable */\n          return copied;\n        }\n        return source.slice(0);\n\n      case '[object Boolean]':\n      case '[object Number]':\n      case '[object String]':\n      case '[object Date]':\n        return new source.constructor(source.valueOf());\n\n      case '[object RegExp]':\n        var re = new RegExp(source.source, source.toString().match(/[^/]*$/)[0]);\n        re.lastIndex = source.lastIndex;\n        return re;\n\n      case '[object Blob]':\n        return new source.constructor([source], {type: source.type});\n    }\n\n    if (isFunction(source.cloneNode)) {\n      return source.cloneNode(true);\n    }\n  }\n}\n\n\n/**\n * @ngdoc function\n * @name angular.equals\n * @module ng\n * @kind function\n *\n * @description\n * Determines if two objects or two values are equivalent. Supports value types, regular\n * expressions, arrays and objects.\n *\n * Two objects or values are considered equivalent if at least one of the following is true:\n *\n * * Both objects or values pass `===` comparison.\n * * Both objects or values are of the same type and all of their properties are equal by\n *   comparing them with `angular.equals`.\n * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)\n * * Both values represent the same regular expression (In JavaScript,\n *   /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual\n *   representation matches).\n *\n * During a property comparison, properties of `function` type and properties with names\n * that begin with `$` are ignored.\n *\n * Scope and DOMWindow objects are being compared only by identify (`===`).\n *\n * @param {*} o1 Object or value to compare.\n * @param {*} o2 Object or value to compare.\n * @returns {boolean} True if arguments are equal.\n *\n * @example\n   <example module=\"equalsExample\" name=\"equalsExample\">\n     <file name=\"index.html\">\n      <div ng-controller=\"ExampleController\">\n        <form novalidate>\n          <h3>User 1</h3>\n          Name: <input type=\"text\" ng-model=\"user1.name\">\n          Age: <input type=\"number\" ng-model=\"user1.age\">\n\n          <h3>User 2</h3>\n          Name: <input type=\"text\" ng-model=\"user2.name\">\n          Age: <input type=\"number\" ng-model=\"user2.age\">\n\n          <div>\n            <br/>\n            <input type=\"button\" value=\"Compare\" ng-click=\"compare()\">\n          </div>\n          User 1: <pre>{{user1 | json}}</pre>\n          User 2: <pre>{{user2 | json}}</pre>\n          Equal: <pre>{{result}}</pre>\n        </form>\n      </div>\n    </file>\n    <file name=\"script.js\">\n        angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) {\n          $scope.user1 = {};\n          $scope.user2 = {};\n          $scope.compare = function() {\n            $scope.result = angular.equals($scope.user1, $scope.user2);\n          };\n        }]);\n    </file>\n  </example>\n */\nfunction equals(o1, o2) {\n  if (o1 === o2) return true;\n  if (o1 === null || o2 === null) return false;\n  // eslint-disable-next-line no-self-compare\n  if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN\n  var t1 = typeof o1, t2 = typeof o2, length, key, keySet;\n  if (t1 === t2 && t1 === 'object') {\n    if (isArray(o1)) {\n      if (!isArray(o2)) return false;\n      if ((length = o1.length) === o2.length) {\n        for (key = 0; key < length; key++) {\n          if (!equals(o1[key], o2[key])) return false;\n        }\n        return true;\n      }\n    } else if (isDate(o1)) {\n      if (!isDate(o2)) return false;\n      return equals(o1.getTime(), o2.getTime());\n    } else if (isRegExp(o1)) {\n      if (!isRegExp(o2)) return false;\n      return o1.toString() === o2.toString();\n    } else {\n      if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||\n        isArray(o2) || isDate(o2) || isRegExp(o2)) return false;\n      keySet = createMap();\n      for (key in o1) {\n        if (key.charAt(0) === '$' || isFunction(o1[key])) continue;\n        if (!equals(o1[key], o2[key])) return false;\n        keySet[key] = true;\n      }\n      for (key in o2) {\n        if (!(key in keySet) &&\n            key.charAt(0) !== '$' &&\n            isDefined(o2[key]) &&\n            !isFunction(o2[key])) return false;\n      }\n      return true;\n    }\n  }\n  return false;\n}\n\nvar csp = function() {\n  if (!isDefined(csp.rules)) {\n\n\n    var ngCspElement = (window.document.querySelector('[ng-csp]') ||\n                    window.document.querySelector('[data-ng-csp]'));\n\n    if (ngCspElement) {\n      var ngCspAttribute = ngCspElement.getAttribute('ng-csp') ||\n                    ngCspElement.getAttribute('data-ng-csp');\n      csp.rules = {\n        noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1),\n        noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1)\n      };\n    } else {\n      csp.rules = {\n        noUnsafeEval: noUnsafeEval(),\n        noInlineStyle: false\n      };\n    }\n  }\n\n  return csp.rules;\n\n  function noUnsafeEval() {\n    try {\n      // eslint-disable-next-line no-new, no-new-func\n      new Function('');\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n};\n\n/**\n * @ngdoc directive\n * @module ng\n * @name ngJq\n *\n * @element ANY\n * @param {string=} ngJq the name of the library available under `window`\n * to be used for angular.element\n * @description\n * Use this directive to force the angular.element library.  This should be\n * used to force either jqLite by leaving ng-jq blank or setting the name of\n * the jquery variable under window (eg. jQuery).\n *\n * Since angular looks for this directive when it is loaded (doesn't wait for the\n * DOMContentLoaded event), it must be placed on an element that comes before the script\n * which loads angular. Also, only the first instance of `ng-jq` will be used and all\n * others ignored.\n *\n * @example\n * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.\n ```html\n <!doctype html>\n <html ng-app ng-jq>\n ...\n ...\n </html>\n ```\n * @example\n * This example shows how to use a jQuery based library of a different name.\n * The library name must be available at the top most 'window'.\n ```html\n <!doctype html>\n <html ng-app ng-jq=\"jQueryLib\">\n ...\n ...\n </html>\n ```\n */\nvar jq = function() {\n  if (isDefined(jq.name_)) return jq.name_;\n  var el;\n  var i, ii = ngAttrPrefixes.length, prefix, name;\n  for (i = 0; i < ii; ++i) {\n    prefix = ngAttrPrefixes[i];\n    el = window.document.querySelector('[' + prefix.replace(':', '\\\\:') + 'jq]');\n    if (el) {\n      name = el.getAttribute(prefix + 'jq');\n      break;\n    }\n  }\n\n  return (jq.name_ = name);\n};\n\nfunction concat(array1, array2, index) {\n  return array1.concat(slice.call(array2, index));\n}\n\nfunction sliceArgs(args, startIndex) {\n  return slice.call(args, startIndex || 0);\n}\n\n\n/**\n * @ngdoc function\n * @name angular.bind\n * @module ng\n * @kind function\n *\n * @description\n * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for\n * `fn`). You can supply optional `args` that are prebound to the function. This feature is also\n * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as\n * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).\n *\n * @param {Object} self Context which `fn` should be evaluated in.\n * @param {function()} fn Function to be bound.\n * @param {...*} args Optional arguments to be prebound to the `fn` function call.\n * @returns {function()} Function that wraps the `fn` with all the specified bindings.\n */\nfunction bind(self, fn) {\n  var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];\n  if (isFunction(fn) && !(fn instanceof RegExp)) {\n    return curryArgs.length\n      ? function() {\n          return arguments.length\n            ? fn.apply(self, concat(curryArgs, arguments, 0))\n            : fn.apply(self, curryArgs);\n        }\n      : function() {\n          return arguments.length\n            ? fn.apply(self, arguments)\n            : fn.call(self);\n        };\n  } else {\n    // In IE, native methods are not functions so they cannot be bound (note: they don't need to be).\n    return fn;\n  }\n}\n\n\nfunction toJsonReplacer(key, value) {\n  var val = value;\n\n  if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {\n    val = undefined;\n  } else if (isWindow(value)) {\n    val = '$WINDOW';\n  } else if (value &&  window.document === value) {\n    val = '$DOCUMENT';\n  } else if (isScope(value)) {\n    val = '$SCOPE';\n  }\n\n  return val;\n}\n\n\n/**\n * @ngdoc function\n * @name angular.toJson\n * @module ng\n * @kind function\n *\n * @description\n * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be\n * stripped since angular uses this notation internally.\n *\n * @param {Object|Array|Date|string|number|boolean} obj Input to be serialized into JSON.\n * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.\n *    If set to an integer, the JSON output will contain that many spaces per indentation.\n * @returns {string|undefined} JSON-ified string representing `obj`.\n * @knownIssue\n *\n * The Safari browser throws a `RangeError` instead of returning `null` when it tries to stringify a `Date`\n * object with an invalid date value. The only reliable way to prevent this is to monkeypatch the\n * `Date.prototype.toJSON` method as follows:\n *\n * ```\n * var _DatetoJSON = Date.prototype.toJSON;\n * Date.prototype.toJSON = function() {\n *   try {\n *     return _DatetoJSON.call(this);\n *   } catch(e) {\n *     if (e instanceof RangeError) {\n *       return null;\n *     }\n *     throw e;\n *   }\n * };\n * ```\n *\n * See https://github.com/angular/angular.js/pull/14221 for more information.\n */\nfunction toJson(obj, pretty) {\n  if (isUndefined(obj)) return undefined;\n  if (!isNumber(pretty)) {\n    pretty = pretty ? 2 : null;\n  }\n  return JSON.stringify(obj, toJsonReplacer, pretty);\n}\n\n\n/**\n * @ngdoc function\n * @name angular.fromJson\n * @module ng\n * @kind function\n *\n * @description\n * Deserializes a JSON string.\n *\n * @param {string} json JSON string to deserialize.\n * @returns {Object|Array|string|number} Deserialized JSON string.\n */\nfunction fromJson(json) {\n  return isString(json)\n      ? JSON.parse(json)\n      : json;\n}\n\n\nvar ALL_COLONS = /:/g;\nfunction timezoneToOffset(timezone, fallback) {\n  // Support: IE 9-11 only, Edge 13-14+\n  // IE/Edge do not \"understand\" colon (`:`) in timezone\n  timezone = timezone.replace(ALL_COLONS, '');\n  var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n  return isNumberNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n}\n\n\nfunction addDateMinutes(date, minutes) {\n  date = new Date(date.getTime());\n  date.setMinutes(date.getMinutes() + minutes);\n  return date;\n}\n\n\nfunction convertTimezoneToLocal(date, timezone, reverse) {\n  reverse = reverse ? -1 : 1;\n  var dateTimezoneOffset = date.getTimezoneOffset();\n  var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n  return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));\n}\n\n\n/**\n * @returns {string} Returns the string representation of the element.\n */\nfunction startingTag(element) {\n  element = jqLite(element).clone();\n  try {\n    // turns out IE does not let you set .html() on elements which\n    // are not allowed to have children. So we just ignore it.\n    element.empty();\n  } catch (e) { /* empty */ }\n  var elemHtml = jqLite('<div>').append(element).html();\n  try {\n    return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :\n        elemHtml.\n          match(/^(<[^>]+>)/)[1].\n          replace(/^<([\\w-]+)/, function(match, nodeName) {return '<' + lowercase(nodeName);});\n  } catch (e) {\n    return lowercase(elemHtml);\n  }\n\n}\n\n\n/////////////////////////////////////////////////\n\n/**\n * Tries to decode the URI component without throwing an exception.\n *\n * @private\n * @param str value potential URI component to check.\n * @returns {boolean} True if `value` can be decoded\n * with the decodeURIComponent function.\n */\nfunction tryDecodeURIComponent(value) {\n  try {\n    return decodeURIComponent(value);\n  } catch (e) {\n    // Ignore any invalid uri component.\n  }\n}\n\n\n/**\n * Parses an escaped url query string into key-value pairs.\n * @returns {Object.<string,boolean|Array>}\n */\nfunction parseKeyValue(/**string*/keyValue) {\n  var obj = {};\n  forEach((keyValue || '').split('&'), function(keyValue) {\n    var splitPoint, key, val;\n    if (keyValue) {\n      key = keyValue = keyValue.replace(/\\+/g,'%20');\n      splitPoint = keyValue.indexOf('=');\n      if (splitPoint !== -1) {\n        key = keyValue.substring(0, splitPoint);\n        val = keyValue.substring(splitPoint + 1);\n      }\n      key = tryDecodeURIComponent(key);\n      if (isDefined(key)) {\n        val = isDefined(val) ? tryDecodeURIComponent(val) : true;\n        if (!hasOwnProperty.call(obj, key)) {\n          obj[key] = val;\n        } else if (isArray(obj[key])) {\n          obj[key].push(val);\n        } else {\n          obj[key] = [obj[key],val];\n        }\n      }\n    }\n  });\n  return obj;\n}\n\nfunction toKeyValue(obj) {\n  var parts = [];\n  forEach(obj, function(value, key) {\n    if (isArray(value)) {\n      forEach(value, function(arrayValue) {\n        parts.push(encodeUriQuery(key, true) +\n                   (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n      });\n    } else {\n    parts.push(encodeUriQuery(key, true) +\n               (value === true ? '' : '=' + encodeUriQuery(value, true)));\n    }\n  });\n  return parts.length ? parts.join('&') : '';\n}\n\n\n/**\n * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path\n * segments:\n *    segment       = *pchar\n *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n *    pct-encoded   = \"%\" HEXDIG HEXDIG\n *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n */\nfunction encodeUriSegment(val) {\n  return encodeUriQuery(val, true).\n             replace(/%26/gi, '&').\n             replace(/%3D/gi, '=').\n             replace(/%2B/gi, '+');\n}\n\n\n/**\n * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n * encoded per http://tools.ietf.org/html/rfc3986:\n *    query         = *( pchar / \"/\" / \"?\" )\n *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n *    pct-encoded   = \"%\" HEXDIG HEXDIG\n *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n */\nfunction encodeUriQuery(val, pctEncodeSpaces) {\n  return encodeURIComponent(val).\n             replace(/%40/gi, '@').\n             replace(/%3A/gi, ':').\n             replace(/%24/g, '$').\n             replace(/%2C/gi, ',').\n             replace(/%3B/gi, ';').\n             replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}\n\nvar ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];\n\nfunction getNgAttribute(element, ngAttr) {\n  var attr, i, ii = ngAttrPrefixes.length;\n  for (i = 0; i < ii; ++i) {\n    attr = ngAttrPrefixes[i] + ngAttr;\n    if (isString(attr = element.getAttribute(attr))) {\n      return attr;\n    }\n  }\n  return null;\n}\n\nfunction allowAutoBootstrap(document) {\n  if (!document.currentScript) {\n    return true;\n  }\n  var src = document.currentScript.getAttribute('src');\n  var link = document.createElement('a');\n  link.href = src;\n  if (document.location.origin === link.origin) {\n    // Same-origin resources are always allowed, even for non-whitelisted schemes.\n    return true;\n  }\n  // Disabled bootstrapping unless angular.js was loaded from a known scheme used on the web.\n  // This is to prevent angular.js bundled with browser extensions from being used to bypass the\n  // content security policy in web pages and other browser extensions.\n  switch (link.protocol) {\n    case 'http:':\n    case 'https:':\n    case 'ftp:':\n    case 'blob:':\n    case 'file:':\n    case 'data:':\n      return true;\n    default:\n      return false;\n  }\n}\n\n// Cached as it has to run during loading so that document.currentScript is available.\nvar isAutoBootstrapAllowed = allowAutoBootstrap(window.document);\n\n/**\n * @ngdoc directive\n * @name ngApp\n * @module ng\n *\n * @element ANY\n * @param {angular.Module} ngApp an optional application\n *   {@link angular.module module} name to load.\n * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be\n *   created in \"strict-di\" mode. This means that the application will fail to invoke functions which\n *   do not use explicit function annotation (and are thus unsuitable for minification), as described\n *   in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in\n *   tracking down the root of these bugs.\n *\n * @description\n *\n * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive\n * designates the **root element** of the application and is typically placed near the root element\n * of the page - e.g. on the `<body>` or `<html>` tags.\n *\n * There are a few things to keep in mind when using `ngApp`:\n * - only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`\n *   found in the document will be used to define the root element to auto-bootstrap as an\n *   application. To run multiple applications in an HTML document you must manually bootstrap them using\n *   {@link angular.bootstrap} instead.\n * - AngularJS applications cannot be nested within each other.\n * - Do not use a directive that uses {@link ng.$compile#transclusion transclusion} on the same element as `ngApp`.\n *   This includes directives such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and\n *   {@link ngRoute.ngView `ngView`}.\n *   Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},\n *   causing animations to stop working and making the injector inaccessible from outside the app.\n *\n * You can specify an **AngularJS module** to be used as the root module for the application.  This\n * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It\n * should contain the application code needed or have dependencies on other modules that will\n * contain the code. See {@link angular.module} for more information.\n *\n * In the example below if the `ngApp` directive were not placed on the `html` element then the\n * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`\n * would not be resolved to `3`.\n *\n * `ngApp` is the easiest, and most common way to bootstrap an application.\n *\n <example module=\"ngAppDemo\" name=\"ng-app\">\n   <file name=\"index.html\">\n   <div ng-controller=\"ngAppDemoController\">\n     I can add: {{a}} + {{b}} =  {{ a+b }}\n   </div>\n   </file>\n   <file name=\"script.js\">\n   angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {\n     $scope.a = 1;\n     $scope.b = 2;\n   });\n   </file>\n </example>\n *\n * Using `ngStrictDi`, you would see something like this:\n *\n <example ng-app-included=\"true\" name=\"strict-di\">\n   <file name=\"index.html\">\n   <div ng-app=\"ngAppStrictDemo\" ng-strict-di>\n       <div ng-controller=\"GoodController1\">\n           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n           <p>This renders because the controller does not fail to\n              instantiate, by using explicit annotation style (see\n              script.js for details)\n           </p>\n       </div>\n\n       <div ng-controller=\"GoodController2\">\n           Name: <input ng-model=\"name\"><br />\n           Hello, {{name}}!\n\n           <p>This renders because the controller does not fail to\n              instantiate, by using explicit annotation style\n              (see script.js for details)\n           </p>\n       </div>\n\n       <div ng-controller=\"BadController\">\n           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n           <p>The controller could not be instantiated, due to relying\n              on automatic function annotations (which are disabled in\n              strict mode). As such, the content of this section is not\n              interpolated, and there should be an error in your web console.\n           </p>\n       </div>\n   </div>\n   </file>\n   <file name=\"script.js\">\n   angular.module('ngAppStrictDemo', [])\n     // BadController will fail to instantiate, due to relying on automatic function annotation,\n     // rather than an explicit annotation\n     .controller('BadController', function($scope) {\n       $scope.a = 1;\n       $scope.b = 2;\n     })\n     // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,\n     // due to using explicit annotations using the array style and $inject property, respectively.\n     .controller('GoodController1', ['$scope', function($scope) {\n       $scope.a = 1;\n       $scope.b = 2;\n     }])\n     .controller('GoodController2', GoodController2);\n     function GoodController2($scope) {\n       $scope.name = 'World';\n     }\n     GoodController2.$inject = ['$scope'];\n   </file>\n   <file name=\"style.css\">\n   div[ng-controller] {\n       margin-bottom: 1em;\n       -webkit-border-radius: 4px;\n       border-radius: 4px;\n       border: 1px solid;\n       padding: .5em;\n   }\n   div[ng-controller^=Good] {\n       border-color: #d6e9c6;\n       background-color: #dff0d8;\n       color: #3c763d;\n   }\n   div[ng-controller^=Bad] {\n       border-color: #ebccd1;\n       background-color: #f2dede;\n       color: #a94442;\n       margin-bottom: 0;\n   }\n   </file>\n </example>\n */\nfunction angularInit(element, bootstrap) {\n  var appElement,\n      module,\n      config = {};\n\n  // The element `element` has priority over any other element.\n  forEach(ngAttrPrefixes, function(prefix) {\n    var name = prefix + 'app';\n\n    if (!appElement && element.hasAttribute && element.hasAttribute(name)) {\n      appElement = element;\n      module = element.getAttribute(name);\n    }\n  });\n  forEach(ngAttrPrefixes, function(prefix) {\n    var name = prefix + 'app';\n    var candidate;\n\n    if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\\\:') + ']'))) {\n      appElement = candidate;\n      module = candidate.getAttribute(name);\n    }\n  });\n  if (appElement) {\n    if (!isAutoBootstrapAllowed) {\n      window.console.error('Angular: disabling automatic bootstrap. <script> protocol indicates ' +\n          'an extension, document.location.href does not match.');\n      return;\n    }\n    config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;\n    bootstrap(appElement, module ? [module] : [], config);\n  }\n}\n\n/**\n * @ngdoc function\n * @name angular.bootstrap\n * @module ng\n * @description\n * Use this function to manually start up angular application.\n *\n * For more information, see the {@link guide/bootstrap Bootstrap guide}.\n *\n * Angular will detect if it has been loaded into the browser more than once and only allow the\n * first loaded script to be bootstrapped and will report a warning to the browser console for\n * each of the subsequent scripts. This prevents strange results in applications, where otherwise\n * multiple instances of Angular try to work on the DOM.\n *\n * <div class=\"alert alert-warning\">\n * **Note:** Protractor based end-to-end tests cannot use this function to bootstrap manually.\n * They must use {@link ng.directive:ngApp ngApp}.\n * </div>\n *\n * <div class=\"alert alert-warning\">\n * **Note:** Do not bootstrap the app on an element with a directive that uses {@link ng.$compile#transclusion transclusion},\n * such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and {@link ngRoute.ngView `ngView`}.\n * Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},\n * causing animations to stop working and making the injector inaccessible from outside the app.\n * </div>\n *\n * ```html\n * <!doctype html>\n * <html>\n * <body>\n * <div ng-controller=\"WelcomeController\">\n *   {{greeting}}\n * </div>\n *\n * <script src=\"angular.js\"></script>\n * <script>\n *   var app = angular.module('demo', [])\n *   .controller('WelcomeController', function($scope) {\n *       $scope.greeting = 'Welcome!';\n *   });\n *   angular.bootstrap(document, ['demo']);\n * </script>\n * </body>\n * </html>\n * ```\n *\n * @param {DOMElement} element DOM element which is the root of angular application.\n * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.\n *     Each item in the array should be the name of a predefined module or a (DI annotated)\n *     function that will be invoked by the injector as a `config` block.\n *     See: {@link angular.module modules}\n * @param {Object=} config an object for defining configuration options for the application. The\n *     following keys are supported:\n *\n * * `strictDi` - disable automatic function annotation for the application. This is meant to\n *   assist in finding bugs which break minified code. Defaults to `false`.\n *\n * @returns {auto.$injector} Returns the newly created injector for this app.\n */\nfunction bootstrap(element, modules, config) {\n  if (!isObject(config)) config = {};\n  var defaultConfig = {\n    strictDi: false\n  };\n  config = extend(defaultConfig, config);\n  var doBootstrap = function() {\n    element = jqLite(element);\n\n    if (element.injector()) {\n      var tag = (element[0] === window.document) ? 'document' : startingTag(element);\n      // Encode angle brackets to prevent input from being sanitized to empty string #8683.\n      throw ngMinErr(\n          'btstrpd',\n          'App already bootstrapped with this element \\'{0}\\'',\n          tag.replace(/</,'&lt;').replace(/>/,'&gt;'));\n    }\n\n    modules = modules || [];\n    modules.unshift(['$provide', function($provide) {\n      $provide.value('$rootElement', element);\n    }]);\n\n    if (config.debugInfoEnabled) {\n      // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.\n      modules.push(['$compileProvider', function($compileProvider) {\n        $compileProvider.debugInfoEnabled(true);\n      }]);\n    }\n\n    modules.unshift('ng');\n    var injector = createInjector(modules, config.strictDi);\n    injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',\n       function bootstrapApply(scope, element, compile, injector) {\n        scope.$apply(function() {\n          element.data('$injector', injector);\n          compile(element)(scope);\n        });\n      }]\n    );\n    return injector;\n  };\n\n  var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;\n  var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;\n\n  if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {\n    config.debugInfoEnabled = true;\n    window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');\n  }\n\n  if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {\n    return doBootstrap();\n  }\n\n  window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');\n  angular.resumeBootstrap = function(extraModules) {\n    forEach(extraModules, function(module) {\n      modules.push(module);\n    });\n    return doBootstrap();\n  };\n\n  if (isFunction(angular.resumeDeferredBootstrap)) {\n    angular.resumeDeferredBootstrap();\n  }\n}\n\n/**\n * @ngdoc function\n * @name angular.reloadWithDebugInfo\n * @module ng\n * @description\n * Use this function to reload the current application with debug information turned on.\n * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.\n *\n * See {@link ng.$compileProvider#debugInfoEnabled} for more.\n */\nfunction reloadWithDebugInfo() {\n  window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;\n  window.location.reload();\n}\n\n/**\n * @name angular.getTestability\n * @module ng\n * @description\n * Get the testability service for the instance of Angular on the given\n * element.\n * @param {DOMElement} element DOM element which is the root of angular application.\n */\nfunction getTestability(rootElement) {\n  var injector = angular.element(rootElement).injector();\n  if (!injector) {\n    throw ngMinErr('test',\n      'no injector found for element argument to getTestability');\n  }\n  return injector.get('$$testability');\n}\n\nvar SNAKE_CASE_REGEXP = /[A-Z]/g;\nfunction snake_case(name, separator) {\n  separator = separator || '_';\n  return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {\n    return (pos ? separator : '') + letter.toLowerCase();\n  });\n}\n\nvar bindJQueryFired = false;\nfunction bindJQuery() {\n  var originalCleanData;\n\n  if (bindJQueryFired) {\n    return;\n  }\n\n  // bind to jQuery if present;\n  var jqName = jq();\n  jQuery = isUndefined(jqName) ? window.jQuery :   // use jQuery (if present)\n           !jqName             ? undefined     :   // use jqLite\n                                 window[jqName];   // use jQuery specified by `ngJq`\n\n  // Use jQuery if it exists with proper functionality, otherwise default to us.\n  // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.\n  // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older\n  // versions. It will not work for sure with jQuery <1.7, though.\n  if (jQuery && jQuery.fn.on) {\n    jqLite = jQuery;\n    extend(jQuery.fn, {\n      scope: JQLitePrototype.scope,\n      isolateScope: JQLitePrototype.isolateScope,\n      controller: JQLitePrototype.controller,\n      injector: JQLitePrototype.injector,\n      inheritedData: JQLitePrototype.inheritedData\n    });\n\n    // All nodes removed from the DOM via various jQuery APIs like .remove()\n    // are passed through jQuery.cleanData. Monkey-patch this method to fire\n    // the $destroy event on all removed nodes.\n    originalCleanData = jQuery.cleanData;\n    jQuery.cleanData = function(elems) {\n      var events;\n      for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n        events = jQuery._data(elem, 'events');\n        if (events && events.$destroy) {\n          jQuery(elem).triggerHandler('$destroy');\n        }\n      }\n      originalCleanData(elems);\n    };\n  } else {\n    jqLite = JQLite;\n  }\n\n  angular.element = jqLite;\n\n  // Prevent double-proxying.\n  bindJQueryFired = true;\n}\n\n/**\n * throw error if the argument is falsy.\n */\nfunction assertArg(arg, name, reason) {\n  if (!arg) {\n    throw ngMinErr('areq', 'Argument \\'{0}\\' is {1}', (name || '?'), (reason || 'required'));\n  }\n  return arg;\n}\n\nfunction assertArgFn(arg, name, acceptArrayAnnotation) {\n  if (acceptArrayAnnotation && isArray(arg)) {\n      arg = arg[arg.length - 1];\n  }\n\n  assertArg(isFunction(arg), name, 'not a function, got ' +\n      (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));\n  return arg;\n}\n\n/**\n * throw error if the name given is hasOwnProperty\n * @param  {String} name    the name to test\n * @param  {String} context the context in which the name is used, such as module or directive\n */\nfunction assertNotHasOwnProperty(name, context) {\n  if (name === 'hasOwnProperty') {\n    throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);\n  }\n}\n\n/**\n * Return the value accessible from the object by path. Any undefined traversals are ignored\n * @param {Object} obj starting object\n * @param {String} path path to traverse\n * @param {boolean} [bindFnToScope=true]\n * @returns {Object} value as accessible by path\n */\n//TODO(misko): this function needs to be removed\nfunction getter(obj, path, bindFnToScope) {\n  if (!path) return obj;\n  var keys = path.split('.');\n  var key;\n  var lastInstance = obj;\n  var len = keys.length;\n\n  for (var i = 0; i < len; i++) {\n    key = keys[i];\n    if (obj) {\n      obj = (lastInstance = obj)[key];\n    }\n  }\n  if (!bindFnToScope && isFunction(obj)) {\n    return bind(lastInstance, obj);\n  }\n  return obj;\n}\n\n/**\n * Return the DOM siblings between the first and last node in the given array.\n * @param {Array} array like object\n * @returns {Array} the inputted object or a jqLite collection containing the nodes\n */\nfunction getBlockNodes(nodes) {\n  // TODO(perf): update `nodes` instead of creating a new object?\n  var node = nodes[0];\n  var endNode = nodes[nodes.length - 1];\n  var blockNodes;\n\n  for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {\n    if (blockNodes || nodes[i] !== node) {\n      if (!blockNodes) {\n        blockNodes = jqLite(slice.call(nodes, 0, i));\n      }\n      blockNodes.push(node);\n    }\n  }\n\n  return blockNodes || nodes;\n}\n\n\n/**\n * Creates a new object without a prototype. This object is useful for lookup without having to\n * guard against prototypically inherited properties via hasOwnProperty.\n *\n * Related micro-benchmarks:\n * - http://jsperf.com/object-create2\n * - http://jsperf.com/proto-map-lookup/2\n * - http://jsperf.com/for-in-vs-object-keys2\n *\n * @returns {Object}\n */\nfunction createMap() {\n  return Object.create(null);\n}\n\nfunction stringify(value) {\n  if (value == null) { // null || undefined\n    return '';\n  }\n  switch (typeof value) {\n    case 'string':\n      break;\n    case 'number':\n      value = '' + value;\n      break;\n    default:\n      if (hasCustomToString(value) && !isArray(value) && !isDate(value)) {\n        value = value.toString();\n      } else {\n        value = toJson(value);\n      }\n  }\n\n  return value;\n}\n\nvar NODE_TYPE_ELEMENT = 1;\nvar NODE_TYPE_ATTRIBUTE = 2;\nvar NODE_TYPE_TEXT = 3;\nvar NODE_TYPE_COMMENT = 8;\nvar NODE_TYPE_DOCUMENT = 9;\nvar NODE_TYPE_DOCUMENT_FRAGMENT = 11;\n\n/**\n * @ngdoc type\n * @name angular.Module\n * @module ng\n * @description\n *\n * Interface for configuring angular {@link angular.module modules}.\n */\n\nfunction setupModuleLoader(window) {\n\n  var $injectorMinErr = minErr('$injector');\n  var ngMinErr = minErr('ng');\n\n  function ensure(obj, name, factory) {\n    return obj[name] || (obj[name] = factory());\n  }\n\n  var angular = ensure(window, 'angular', Object);\n\n  // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap\n  angular.$$minErr = angular.$$minErr || minErr;\n\n  return ensure(angular, 'module', function() {\n    /** @type {Object.<string, angular.Module>} */\n    var modules = {};\n\n    /**\n     * @ngdoc function\n     * @name angular.module\n     * @module ng\n     * @description\n     *\n     * The `angular.module` is a global place for creating, registering and retrieving Angular\n     * modules.\n     * All modules (angular core or 3rd party) that should be available to an application must be\n     * registered using this mechanism.\n     *\n     * Passing one argument retrieves an existing {@link angular.Module},\n     * whereas passing more than one argument creates a new {@link angular.Module}\n     *\n     *\n     * # Module\n     *\n     * A module is a collection of services, directives, controllers, filters, and configuration information.\n     * `angular.module` is used to configure the {@link auto.$injector $injector}.\n     *\n     * ```js\n     * // Create a new module\n     * var myModule = angular.module('myModule', []);\n     *\n     * // register a new service\n     * myModule.value('appName', 'MyCoolApp');\n     *\n     * // configure existing services inside initialization blocks.\n     * myModule.config(['$locationProvider', function($locationProvider) {\n     *   // Configure existing providers\n     *   $locationProvider.hashPrefix('!');\n     * }]);\n     * ```\n     *\n     * Then you can create an injector and load your modules like this:\n     *\n     * ```js\n     * var injector = angular.injector(['ng', 'myModule'])\n     * ```\n     *\n     * However it's more likely that you'll just use\n     * {@link ng.directive:ngApp ngApp} or\n     * {@link angular.bootstrap} to simplify this process for you.\n     *\n     * @param {!string} name The name of the module to create or retrieve.\n     * @param {!Array.<string>=} requires If specified then new module is being created. If\n     *        unspecified then the module is being retrieved for further configuration.\n     * @param {Function=} configFn Optional configuration function for the module. Same as\n     *        {@link angular.Module#config Module#config()}.\n     * @returns {angular.Module} new module with the {@link angular.Module} api.\n     */\n    return function module(name, requires, configFn) {\n      var assertNotHasOwnProperty = function(name, context) {\n        if (name === 'hasOwnProperty') {\n          throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);\n        }\n      };\n\n      assertNotHasOwnProperty(name, 'module');\n      if (requires && modules.hasOwnProperty(name)) {\n        modules[name] = null;\n      }\n      return ensure(modules, name, function() {\n        if (!requires) {\n          throw $injectorMinErr('nomod', 'Module \\'{0}\\' is not available! You either misspelled ' +\n             'the module name or forgot to load it. If registering a module ensure that you ' +\n             'specify the dependencies as the second argument.', name);\n        }\n\n        /** @type {!Array.<Array.<*>>} */\n        var invokeQueue = [];\n\n        /** @type {!Array.<Function>} */\n        var configBlocks = [];\n\n        /** @type {!Array.<Function>} */\n        var runBlocks = [];\n\n        var config = invokeLater('$injector', 'invoke', 'push', configBlocks);\n\n        /** @type {angular.Module} */\n        var moduleInstance = {\n          // Private state\n          _invokeQueue: invokeQueue,\n          _configBlocks: configBlocks,\n          _runBlocks: runBlocks,\n\n          /**\n           * @ngdoc property\n           * @name angular.Module#requires\n           * @module ng\n           *\n           * @description\n           * Holds the list of modules which the injector will load before the current module is\n           * loaded.\n           */\n          requires: requires,\n\n          /**\n           * @ngdoc property\n           * @name angular.Module#name\n           * @module ng\n           *\n           * @description\n           * Name of the module.\n           */\n          name: name,\n\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#provider\n           * @module ng\n           * @param {string} name service name\n           * @param {Function} providerType Construction function for creating new instance of the\n           *                                service.\n           * @description\n           * See {@link auto.$provide#provider $provide.provider()}.\n           */\n          provider: invokeLaterAndSetModuleName('$provide', 'provider'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#factory\n           * @module ng\n           * @param {string} name service name\n           * @param {Function} providerFunction Function for creating new instance of the service.\n           * @description\n           * See {@link auto.$provide#factory $provide.factory()}.\n           */\n          factory: invokeLaterAndSetModuleName('$provide', 'factory'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#service\n           * @module ng\n           * @param {string} name service name\n           * @param {Function} constructor A constructor function that will be instantiated.\n           * @description\n           * See {@link auto.$provide#service $provide.service()}.\n           */\n          service: invokeLaterAndSetModuleName('$provide', 'service'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#value\n           * @module ng\n           * @param {string} name service name\n           * @param {*} object Service instance object.\n           * @description\n           * See {@link auto.$provide#value $provide.value()}.\n           */\n          value: invokeLater('$provide', 'value'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#constant\n           * @module ng\n           * @param {string} name constant name\n           * @param {*} object Constant value.\n           * @description\n           * Because the constants are fixed, they get applied before other provide methods.\n           * See {@link auto.$provide#constant $provide.constant()}.\n           */\n          constant: invokeLater('$provide', 'constant', 'unshift'),\n\n           /**\n           * @ngdoc method\n           * @name angular.Module#decorator\n           * @module ng\n           * @param {string} name The name of the service to decorate.\n           * @param {Function} decorFn This function will be invoked when the service needs to be\n           *                           instantiated and should return the decorated service instance.\n           * @description\n           * See {@link auto.$provide#decorator $provide.decorator()}.\n           */\n          decorator: invokeLaterAndSetModuleName('$provide', 'decorator', configBlocks),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#animation\n           * @module ng\n           * @param {string} name animation name\n           * @param {Function} animationFactory Factory function for creating new instance of an\n           *                                    animation.\n           * @description\n           *\n           * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.\n           *\n           *\n           * Defines an animation hook that can be later used with\n           * {@link $animate $animate} service and directives that use this service.\n           *\n           * ```js\n           * module.animation('.animation-name', function($inject1, $inject2) {\n           *   return {\n           *     eventName : function(element, done) {\n           *       //code to run the animation\n           *       //once complete, then run done()\n           *       return function cancellationFunction(element) {\n           *         //code to cancel the animation\n           *       }\n           *     }\n           *   }\n           * })\n           * ```\n           *\n           * See {@link ng.$animateProvider#register $animateProvider.register()} and\n           * {@link ngAnimate ngAnimate module} for more information.\n           */\n          animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#filter\n           * @module ng\n           * @param {string} name Filter name - this must be a valid angular expression identifier\n           * @param {Function} filterFactory Factory function for creating new instance of filter.\n           * @description\n           * See {@link ng.$filterProvider#register $filterProvider.register()}.\n           *\n           * <div class=\"alert alert-warning\">\n           * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n           * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n           * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n           * (`myapp_subsection_filterx`).\n           * </div>\n           */\n          filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#controller\n           * @module ng\n           * @param {string|Object} name Controller name, or an object map of controllers where the\n           *    keys are the names and the values are the constructors.\n           * @param {Function} constructor Controller constructor function.\n           * @description\n           * See {@link ng.$controllerProvider#register $controllerProvider.register()}.\n           */\n          controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#directive\n           * @module ng\n           * @param {string|Object} name Directive name, or an object map of directives where the\n           *    keys are the names and the values are the factories.\n           * @param {Function} directiveFactory Factory function for creating new instance of\n           * directives.\n           * @description\n           * See {@link ng.$compileProvider#directive $compileProvider.directive()}.\n           */\n          directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#component\n           * @module ng\n           * @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp)\n           * @param {Object} options Component definition object (a simplified\n           *    {@link ng.$compile#directive-definition-object directive definition object})\n           *\n           * @description\n           * See {@link ng.$compileProvider#component $compileProvider.component()}.\n           */\n          component: invokeLaterAndSetModuleName('$compileProvider', 'component'),\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#config\n           * @module ng\n           * @param {Function} configFn Execute this function on module load. Useful for service\n           *    configuration.\n           * @description\n           * Use this method to register work which needs to be performed on module loading.\n           * For more about how to configure services, see\n           * {@link providers#provider-recipe Provider Recipe}.\n           */\n          config: config,\n\n          /**\n           * @ngdoc method\n           * @name angular.Module#run\n           * @module ng\n           * @param {Function} initializationFn Execute this function after injector creation.\n           *    Useful for application initialization.\n           * @description\n           * Use this method to register work which should be performed when the injector is done\n           * loading all modules.\n           */\n          run: function(block) {\n            runBlocks.push(block);\n            return this;\n          }\n        };\n\n        if (configFn) {\n          config(configFn);\n        }\n\n        return moduleInstance;\n\n        /**\n         * @param {string} provider\n         * @param {string} method\n         * @param {String=} insertMethod\n         * @returns {angular.Module}\n         */\n        function invokeLater(provider, method, insertMethod, queue) {\n          if (!queue) queue = invokeQueue;\n          return function() {\n            queue[insertMethod || 'push']([provider, method, arguments]);\n            return moduleInstance;\n          };\n        }\n\n        /**\n         * @param {string} provider\n         * @param {string} method\n         * @returns {angular.Module}\n         */\n        function invokeLaterAndSetModuleName(provider, method, queue) {\n          if (!queue) queue = invokeQueue;\n          return function(recipeName, factoryFunction) {\n            if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;\n            queue.push([provider, method, arguments]);\n            return moduleInstance;\n          };\n        }\n      });\n    };\n  });\n\n}\n\n/* global shallowCopy: true */\n\n/**\n * Creates a shallow copy of an object, an array or a primitive.\n *\n * Assumes that there are no proto properties for objects.\n */\nfunction shallowCopy(src, dst) {\n  if (isArray(src)) {\n    dst = dst || [];\n\n    for (var i = 0, ii = src.length; i < ii; i++) {\n      dst[i] = src[i];\n    }\n  } else if (isObject(src)) {\n    dst = dst || {};\n\n    for (var key in src) {\n      if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {\n        dst[key] = src[key];\n      }\n    }\n  }\n\n  return dst || src;\n}\n\n/* global toDebugString: true */\n\nfunction serializeObject(obj) {\n  var seen = [];\n\n  return JSON.stringify(obj, function(key, val) {\n    val = toJsonReplacer(key, val);\n    if (isObject(val)) {\n\n      if (seen.indexOf(val) >= 0) return '...';\n\n      seen.push(val);\n    }\n    return val;\n  });\n}\n\nfunction toDebugString(obj) {\n  if (typeof obj === 'function') {\n    return obj.toString().replace(/ \\{[\\s\\S]*$/, '');\n  } else if (isUndefined(obj)) {\n    return 'undefined';\n  } else if (typeof obj !== 'string') {\n    return serializeObject(obj);\n  }\n  return obj;\n}\n\n/* global angularModule: true,\n  version: true,\n\n  $CompileProvider,\n\n  htmlAnchorDirective,\n  inputDirective,\n  inputDirective,\n  formDirective,\n  scriptDirective,\n  selectDirective,\n  optionDirective,\n  ngBindDirective,\n  ngBindHtmlDirective,\n  ngBindTemplateDirective,\n  ngClassDirective,\n  ngClassEvenDirective,\n  ngClassOddDirective,\n  ngCloakDirective,\n  ngControllerDirective,\n  ngFormDirective,\n  ngHideDirective,\n  ngIfDirective,\n  ngIncludeDirective,\n  ngIncludeFillContentDirective,\n  ngInitDirective,\n  ngNonBindableDirective,\n  ngPluralizeDirective,\n  ngRepeatDirective,\n  ngShowDirective,\n  ngStyleDirective,\n  ngSwitchDirective,\n  ngSwitchWhenDirective,\n  ngSwitchDefaultDirective,\n  ngOptionsDirective,\n  ngTranscludeDirective,\n  ngModelDirective,\n  ngListDirective,\n  ngChangeDirective,\n  patternDirective,\n  patternDirective,\n  requiredDirective,\n  requiredDirective,\n  minlengthDirective,\n  minlengthDirective,\n  maxlengthDirective,\n  maxlengthDirective,\n  ngValueDirective,\n  ngModelOptionsDirective,\n  ngAttributeAliasDirectives,\n  ngEventDirectives,\n\n  $AnchorScrollProvider,\n  $AnimateProvider,\n  $CoreAnimateCssProvider,\n  $$CoreAnimateJsProvider,\n  $$CoreAnimateQueueProvider,\n  $$AnimateRunnerFactoryProvider,\n  $$AnimateAsyncRunFactoryProvider,\n  $BrowserProvider,\n  $CacheFactoryProvider,\n  $ControllerProvider,\n  $DateProvider,\n  $DocumentProvider,\n  $$IsDocumentHiddenProvider,\n  $ExceptionHandlerProvider,\n  $FilterProvider,\n  $$ForceReflowProvider,\n  $InterpolateProvider,\n  $IntervalProvider,\n  $$HashMapProvider,\n  $HttpProvider,\n  $HttpParamSerializerProvider,\n  $HttpParamSerializerJQLikeProvider,\n  $HttpBackendProvider,\n  $xhrFactoryProvider,\n  $jsonpCallbacksProvider,\n  $LocationProvider,\n  $LogProvider,\n  $ParseProvider,\n  $RootScopeProvider,\n  $QProvider,\n  $$QProvider,\n  $$SanitizeUriProvider,\n  $SceProvider,\n  $SceDelegateProvider,\n  $SnifferProvider,\n  $TemplateCacheProvider,\n  $TemplateRequestProvider,\n  $$TestabilityProvider,\n  $TimeoutProvider,\n  $$RAFProvider,\n  $WindowProvider,\n  $$jqLiteProvider,\n  $$CookieReaderProvider\n*/\n\n\n/**\n * @ngdoc object\n * @name angular.version\n * @module ng\n * @description\n * An object that contains information about the current AngularJS version.\n *\n * This object has the following properties:\n *\n * - `full` – `{string}` – Full version string, such as \"0.9.18\".\n * - `major` – `{number}` – Major version number, such as \"0\".\n * - `minor` – `{number}` – Minor version number, such as \"9\".\n * - `dot` – `{number}` – Dot version number, such as \"18\".\n * - `codeName` – `{string}` – Code name of the release, such as \"jiggling-armfat\".\n */\nvar version = {\n  // These placeholder strings will be replaced by grunt's `build` task.\n  // They need to be double- or single-quoted.\n  full: '1.6.1',\n  major: 1,\n  minor: 6,\n  dot: 1,\n  codeName: 'promise-rectification'\n};\n\n\nfunction publishExternalAPI(angular) {\n  extend(angular, {\n    'bootstrap': bootstrap,\n    'copy': copy,\n    'extend': extend,\n    'merge': merge,\n    'equals': equals,\n    'element': jqLite,\n    'forEach': forEach,\n    'injector': createInjector,\n    'noop': noop,\n    'bind': bind,\n    'toJson': toJson,\n    'fromJson': fromJson,\n    'identity': identity,\n    'isUndefined': isUndefined,\n    'isDefined': isDefined,\n    'isString': isString,\n    'isFunction': isFunction,\n    'isObject': isObject,\n    'isNumber': isNumber,\n    'isElement': isElement,\n    'isArray': isArray,\n    'version': version,\n    'isDate': isDate,\n    'lowercase': lowercase,\n    'uppercase': uppercase,\n    'callbacks': {$$counter: 0},\n    'getTestability': getTestability,\n    'reloadWithDebugInfo': reloadWithDebugInfo,\n    '$$minErr': minErr,\n    '$$csp': csp,\n    '$$encodeUriSegment': encodeUriSegment,\n    '$$encodeUriQuery': encodeUriQuery,\n    '$$stringify': stringify\n  });\n\n  angularModule = setupModuleLoader(window);\n\n  angularModule('ng', ['ngLocale'], ['$provide',\n    function ngModule($provide) {\n      // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.\n      $provide.provider({\n        $$sanitizeUri: $$SanitizeUriProvider\n      });\n      $provide.provider('$compile', $CompileProvider).\n        directive({\n            a: htmlAnchorDirective,\n            input: inputDirective,\n            textarea: inputDirective,\n            form: formDirective,\n            script: scriptDirective,\n            select: selectDirective,\n            option: optionDirective,\n            ngBind: ngBindDirective,\n            ngBindHtml: ngBindHtmlDirective,\n            ngBindTemplate: ngBindTemplateDirective,\n            ngClass: ngClassDirective,\n            ngClassEven: ngClassEvenDirective,\n            ngClassOdd: ngClassOddDirective,\n            ngCloak: ngCloakDirective,\n            ngController: ngControllerDirective,\n            ngForm: ngFormDirective,\n            ngHide: ngHideDirective,\n            ngIf: ngIfDirective,\n            ngInclude: ngIncludeDirective,\n            ngInit: ngInitDirective,\n            ngNonBindable: ngNonBindableDirective,\n            ngPluralize: ngPluralizeDirective,\n            ngRepeat: ngRepeatDirective,\n            ngShow: ngShowDirective,\n            ngStyle: ngStyleDirective,\n            ngSwitch: ngSwitchDirective,\n            ngSwitchWhen: ngSwitchWhenDirective,\n            ngSwitchDefault: ngSwitchDefaultDirective,\n            ngOptions: ngOptionsDirective,\n            ngTransclude: ngTranscludeDirective,\n            ngModel: ngModelDirective,\n            ngList: ngListDirective,\n            ngChange: ngChangeDirective,\n            pattern: patternDirective,\n            ngPattern: patternDirective,\n            required: requiredDirective,\n            ngRequired: requiredDirective,\n            minlength: minlengthDirective,\n            ngMinlength: minlengthDirective,\n            maxlength: maxlengthDirective,\n            ngMaxlength: maxlengthDirective,\n            ngValue: ngValueDirective,\n            ngModelOptions: ngModelOptionsDirective\n        }).\n        directive({\n          ngInclude: ngIncludeFillContentDirective\n        }).\n        directive(ngAttributeAliasDirectives).\n        directive(ngEventDirectives);\n      $provide.provider({\n        $anchorScroll: $AnchorScrollProvider,\n        $animate: $AnimateProvider,\n        $animateCss: $CoreAnimateCssProvider,\n        $$animateJs: $$CoreAnimateJsProvider,\n        $$animateQueue: $$CoreAnimateQueueProvider,\n        $$AnimateRunner: $$AnimateRunnerFactoryProvider,\n        $$animateAsyncRun: $$AnimateAsyncRunFactoryProvider,\n        $browser: $BrowserProvider,\n        $cacheFactory: $CacheFactoryProvider,\n        $controller: $ControllerProvider,\n        $document: $DocumentProvider,\n        $$isDocumentHidden: $$IsDocumentHiddenProvider,\n        $exceptionHandler: $ExceptionHandlerProvider,\n        $filter: $FilterProvider,\n        $$forceReflow: $$ForceReflowProvider,\n        $interpolate: $InterpolateProvider,\n        $interval: $IntervalProvider,\n        $http: $HttpProvider,\n        $httpParamSerializer: $HttpParamSerializerProvider,\n        $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,\n        $httpBackend: $HttpBackendProvider,\n        $xhrFactory: $xhrFactoryProvider,\n        $jsonpCallbacks: $jsonpCallbacksProvider,\n        $location: $LocationProvider,\n        $log: $LogProvider,\n        $parse: $ParseProvider,\n        $rootScope: $RootScopeProvider,\n        $q: $QProvider,\n        $$q: $$QProvider,\n        $sce: $SceProvider,\n        $sceDelegate: $SceDelegateProvider,\n        $sniffer: $SnifferProvider,\n        $templateCache: $TemplateCacheProvider,\n        $templateRequest: $TemplateRequestProvider,\n        $$testability: $$TestabilityProvider,\n        $timeout: $TimeoutProvider,\n        $window: $WindowProvider,\n        $$rAF: $$RAFProvider,\n        $$jqLite: $$jqLiteProvider,\n        $$HashMap: $$HashMapProvider,\n        $$cookieReader: $$CookieReaderProvider\n      });\n    }\n  ]);\n}\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n *     Any commits to this file should be reviewed with security in mind.  *\n *   Changes to this file can potentially create security vulnerabilities. *\n *          An approval from 2 Core members with history of modifying      *\n *                         this file is required.                          *\n *                                                                         *\n *  Does the change somehow allow for arbitrary javascript to be executed? *\n *    Or allows for someone to change the prototype of built-in objects?   *\n *     Or gives undesired access to variables likes document or window?    *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n/* global\n  JQLitePrototype: true,\n  BOOLEAN_ATTR: true,\n  ALIASED_ATTR: true\n*/\n\n//////////////////////////////////\n//JQLite\n//////////////////////////////////\n\n/**\n * @ngdoc function\n * @name angular.element\n * @module ng\n * @kind function\n *\n * @description\n * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.\n *\n * If jQuery is available, `angular.element` is an alias for the\n * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`\n * delegates to Angular's built-in subset of jQuery, called \"jQuery lite\" or **jqLite**.\n *\n * jqLite is a tiny, API-compatible subset of jQuery that allows\n * Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most\n * commonly needed functionality with the goal of having a very small footprint.\n *\n * To use `jQuery`, simply ensure it is loaded before the `angular.js` file. You can also use the\n * {@link ngJq `ngJq`} directive to specify that jqlite should be used over jQuery, or to use a\n * specific version of jQuery if multiple versions exist on the page.\n *\n * <div class=\"alert alert-info\">**Note:** All element references in Angular are always wrapped with jQuery or\n * jqLite (such as the element argument in a directive's compile / link function). They are never raw DOM references.</div>\n *\n * <div class=\"alert alert-warning\">**Note:** Keep in mind that this function will not find elements\n * by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`\n * or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.</div>\n *\n * ## Angular's jqLite\n * jqLite provides only the following jQuery methods:\n *\n * - [`addClass()`](http://api.jquery.com/addClass/) - Does not support a function as first argument\n * - [`after()`](http://api.jquery.com/after/)\n * - [`append()`](http://api.jquery.com/append/)\n * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters\n * - [`bind()`](http://api.jquery.com/bind/) (_deprecated_, use [`on()`](http://api.jquery.com/on/)) - Does not support namespaces, selectors or eventData\n * - [`children()`](http://api.jquery.com/children/) - Does not support selectors\n * - [`clone()`](http://api.jquery.com/clone/)\n * - [`contents()`](http://api.jquery.com/contents/)\n * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`.\n *   As a setter, does not convert numbers to strings or append 'px', and also does not have automatic property prefixing.\n * - [`data()`](http://api.jquery.com/data/)\n * - [`detach()`](http://api.jquery.com/detach/)\n * - [`empty()`](http://api.jquery.com/empty/)\n * - [`eq()`](http://api.jquery.com/eq/)\n * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name\n * - [`hasClass()`](http://api.jquery.com/hasClass/)\n * - [`html()`](http://api.jquery.com/html/)\n * - [`next()`](http://api.jquery.com/next/) - Does not support selectors\n * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData\n * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter\n * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors\n * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors\n * - [`prepend()`](http://api.jquery.com/prepend/)\n * - [`prop()`](http://api.jquery.com/prop/)\n * - [`ready()`](http://api.jquery.com/ready/) (_deprecated_, use `angular.element(callback)` instead of `angular.element(document).ready(callback)`)\n * - [`remove()`](http://api.jquery.com/remove/)\n * - [`removeAttr()`](http://api.jquery.com/removeAttr/) - Does not support multiple attributes\n * - [`removeClass()`](http://api.jquery.com/removeClass/) - Does not support a function as first argument\n * - [`removeData()`](http://api.jquery.com/removeData/)\n * - [`replaceWith()`](http://api.jquery.com/replaceWith/)\n * - [`text()`](http://api.jquery.com/text/)\n * - [`toggleClass()`](http://api.jquery.com/toggleClass/) - Does not support a function as first argument\n * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers\n * - [`unbind()`](http://api.jquery.com/unbind/) (_deprecated_, use [`off()`](http://api.jquery.com/off/)) - Does not support namespaces or event object as parameter\n * - [`val()`](http://api.jquery.com/val/)\n * - [`wrap()`](http://api.jquery.com/wrap/)\n *\n * ## jQuery/jqLite Extras\n * Angular also provides the following additional methods and events to both jQuery and jqLite:\n *\n * ### Events\n * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event\n *    on all DOM nodes being removed.  This can be used to clean up any 3rd party bindings to the DOM\n *    element before it is removed.\n *\n * ### Methods\n * - `controller(name)` - retrieves the controller of the current element or its parent. By default\n *   retrieves controller associated with the `ngController` directive. If `name` is provided as\n *   camelCase directive name, then the controller for this directive will be retrieved (e.g.\n *   `'ngModel'`).\n * - `injector()` - retrieves the injector of the current element or its parent.\n * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current\n *   element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to\n *   be enabled.\n * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the\n *   current element. This getter should be used only on elements that contain a directive which starts a new isolate\n *   scope. Calling `scope()` on this element always returns the original non-isolate scope.\n *   Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.\n * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top\n *   parent element is reached.\n *\n * @knownIssue You cannot spy on `angular.element` if you are using Jasmine version 1.x. See\n * https://github.com/angular/angular.js/issues/14251 for more information.\n *\n * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.\n * @returns {Object} jQuery object.\n */\n\nJQLite.expando = 'ng339';\n\nvar jqCache = JQLite.cache = {},\n    jqId = 1;\n\n/*\n * !!! This is an undocumented \"private\" function !!!\n */\nJQLite._data = function(node) {\n  //jQuery always returns an object on cache miss\n  return this.cache[node[this.expando]] || {};\n};\n\nfunction jqNextId() { return ++jqId; }\n\n\nvar DASH_LOWERCASE_REGEXP = /-([a-z])/g;\nvar MS_HACK_REGEXP = /^-ms-/;\nvar MOUSE_EVENT_MAP = { mouseleave: 'mouseout', mouseenter: 'mouseover' };\nvar jqLiteMinErr = minErr('jqLite');\n\n/**\n * Converts kebab-case to camelCase.\n * There is also a special case for the ms prefix starting with a lowercase letter.\n * @param name Name to normalize\n */\nfunction cssKebabToCamel(name) {\n    return kebabToCamel(name.replace(MS_HACK_REGEXP, 'ms-'));\n}\n\nfunction fnCamelCaseReplace(all, letter) {\n  return letter.toUpperCase();\n}\n\n/**\n * Converts kebab-case to camelCase.\n * @param name Name to normalize\n */\nfunction kebabToCamel(name) {\n  return name\n    .replace(DASH_LOWERCASE_REGEXP, fnCamelCaseReplace);\n}\n\nvar SINGLE_TAG_REGEXP = /^<([\\w-]+)\\s*\\/?>(?:<\\/\\1>|)$/;\nvar HTML_REGEXP = /<|&#?\\w+;/;\nvar TAG_NAME_REGEXP = /<([\\w:-]+)/;\nvar XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:-]+)[^>]*)\\/>/gi;\n\nvar wrapMap = {\n  'option': [1, '<select multiple=\"multiple\">', '</select>'],\n\n  'thead': [1, '<table>', '</table>'],\n  'col': [2, '<table><colgroup>', '</colgroup></table>'],\n  'tr': [2, '<table><tbody>', '</tbody></table>'],\n  'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],\n  '_default': [0, '', '']\n};\n\nwrapMap.optgroup = wrapMap.option;\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n\nfunction jqLiteIsTextNode(html) {\n  return !HTML_REGEXP.test(html);\n}\n\nfunction jqLiteAcceptsData(node) {\n  // The window object can accept data but has no nodeType\n  // Otherwise we are only interested in elements (1) and documents (9)\n  var nodeType = node.nodeType;\n  return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;\n}\n\nfunction jqLiteHasData(node) {\n  for (var key in jqCache[node.ng339]) {\n    return true;\n  }\n  return false;\n}\n\nfunction jqLiteCleanData(nodes) {\n  for (var i = 0, ii = nodes.length; i < ii; i++) {\n    jqLiteRemoveData(nodes[i]);\n  }\n}\n\nfunction jqLiteBuildFragment(html, context) {\n  var tmp, tag, wrap,\n      fragment = context.createDocumentFragment(),\n      nodes = [], i;\n\n  if (jqLiteIsTextNode(html)) {\n    // Convert non-html into a text node\n    nodes.push(context.createTextNode(html));\n  } else {\n    // Convert html into DOM nodes\n    tmp = fragment.appendChild(context.createElement('div'));\n    tag = (TAG_NAME_REGEXP.exec(html) || ['', ''])[1].toLowerCase();\n    wrap = wrapMap[tag] || wrapMap._default;\n    tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, '<$1></$2>') + wrap[2];\n\n    // Descend through wrappers to the right content\n    i = wrap[0];\n    while (i--) {\n      tmp = tmp.lastChild;\n    }\n\n    nodes = concat(nodes, tmp.childNodes);\n\n    tmp = fragment.firstChild;\n    tmp.textContent = '';\n  }\n\n  // Remove wrapper from fragment\n  fragment.textContent = '';\n  fragment.innerHTML = ''; // Clear inner HTML\n  forEach(nodes, function(node) {\n    fragment.appendChild(node);\n  });\n\n  return fragment;\n}\n\nfunction jqLiteParseHTML(html, context) {\n  context = context || window.document;\n  var parsed;\n\n  if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {\n    return [context.createElement(parsed[1])];\n  }\n\n  if ((parsed = jqLiteBuildFragment(html, context))) {\n    return parsed.childNodes;\n  }\n\n  return [];\n}\n\nfunction jqLiteWrapNode(node, wrapper) {\n  var parent = node.parentNode;\n\n  if (parent) {\n    parent.replaceChild(wrapper, node);\n  }\n\n  wrapper.appendChild(node);\n}\n\n\n// IE9-11 has no method \"contains\" in SVG element and in Node.prototype. Bug #10259.\nvar jqLiteContains = window.Node.prototype.contains || /** @this */ function(arg) {\n  // eslint-disable-next-line no-bitwise\n  return !!(this.compareDocumentPosition(arg) & 16);\n};\n\n/////////////////////////////////////////////\nfunction JQLite(element) {\n  if (element instanceof JQLite) {\n    return element;\n  }\n\n  var argIsString;\n\n  if (isString(element)) {\n    element = trim(element);\n    argIsString = true;\n  }\n  if (!(this instanceof JQLite)) {\n    if (argIsString && element.charAt(0) !== '<') {\n      throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');\n    }\n    return new JQLite(element);\n  }\n\n  if (argIsString) {\n    jqLiteAddNodes(this, jqLiteParseHTML(element));\n  } else if (isFunction(element)) {\n    jqLiteReady(element);\n  } else {\n    jqLiteAddNodes(this, element);\n  }\n}\n\nfunction jqLiteClone(element) {\n  return element.cloneNode(true);\n}\n\nfunction jqLiteDealoc(element, onlyDescendants) {\n  if (!onlyDescendants) jqLiteRemoveData(element);\n\n  if (element.querySelectorAll) {\n    var descendants = element.querySelectorAll('*');\n    for (var i = 0, l = descendants.length; i < l; i++) {\n      jqLiteRemoveData(descendants[i]);\n    }\n  }\n}\n\nfunction jqLiteOff(element, type, fn, unsupported) {\n  if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');\n\n  var expandoStore = jqLiteExpandoStore(element);\n  var events = expandoStore && expandoStore.events;\n  var handle = expandoStore && expandoStore.handle;\n\n  if (!handle) return; //no listeners registered\n\n  if (!type) {\n    for (type in events) {\n      if (type !== '$destroy') {\n        element.removeEventListener(type, handle);\n      }\n      delete events[type];\n    }\n  } else {\n\n    var removeHandler = function(type) {\n      var listenerFns = events[type];\n      if (isDefined(fn)) {\n        arrayRemove(listenerFns || [], fn);\n      }\n      if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {\n        element.removeEventListener(type, handle);\n        delete events[type];\n      }\n    };\n\n    forEach(type.split(' '), function(type) {\n      removeHandler(type);\n      if (MOUSE_EVENT_MAP[type]) {\n        removeHandler(MOUSE_EVENT_MAP[type]);\n      }\n    });\n  }\n}\n\nfunction jqLiteRemoveData(element, name) {\n  var expandoId = element.ng339;\n  var expandoStore = expandoId && jqCache[expandoId];\n\n  if (expandoStore) {\n    if (name) {\n      delete expandoStore.data[name];\n      return;\n    }\n\n    if (expandoStore.handle) {\n      if (expandoStore.events.$destroy) {\n        expandoStore.handle({}, '$destroy');\n      }\n      jqLiteOff(element);\n    }\n    delete jqCache[expandoId];\n    element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it\n  }\n}\n\n\nfunction jqLiteExpandoStore(element, createIfNecessary) {\n  var expandoId = element.ng339,\n      expandoStore = expandoId && jqCache[expandoId];\n\n  if (createIfNecessary && !expandoStore) {\n    element.ng339 = expandoId = jqNextId();\n    expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};\n  }\n\n  return expandoStore;\n}\n\n\nfunction jqLiteData(element, key, value) {\n  if (jqLiteAcceptsData(element)) {\n    var prop;\n\n    var isSimpleSetter = isDefined(value);\n    var isSimpleGetter = !isSimpleSetter && key && !isObject(key);\n    var massGetter = !key;\n    var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);\n    var data = expandoStore && expandoStore.data;\n\n    if (isSimpleSetter) { // data('key', value)\n      data[kebabToCamel(key)] = value;\n    } else {\n      if (massGetter) {  // data()\n        return data;\n      } else {\n        if (isSimpleGetter) { // data('key')\n          // don't force creation of expandoStore if it doesn't exist yet\n          return data && data[kebabToCamel(key)];\n        } else { // mass-setter: data({key1: val1, key2: val2})\n          for (prop in key) {\n            data[kebabToCamel(prop)] = key[prop];\n          }\n        }\n      }\n    }\n  }\n}\n\nfunction jqLiteHasClass(element, selector) {\n  if (!element.getAttribute) return false;\n  return ((' ' + (element.getAttribute('class') || '') + ' ').replace(/[\\n\\t]/g, ' ').\n      indexOf(' ' + selector + ' ') > -1);\n}\n\nfunction jqLiteRemoveClass(element, cssClasses) {\n  if (cssClasses && element.setAttribute) {\n    forEach(cssClasses.split(' '), function(cssClass) {\n      element.setAttribute('class', trim(\n          (' ' + (element.getAttribute('class') || '') + ' ')\n          .replace(/[\\n\\t]/g, ' ')\n          .replace(' ' + trim(cssClass) + ' ', ' '))\n      );\n    });\n  }\n}\n\nfunction jqLiteAddClass(element, cssClasses) {\n  if (cssClasses && element.setAttribute) {\n    var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')\n                            .replace(/[\\n\\t]/g, ' ');\n\n    forEach(cssClasses.split(' '), function(cssClass) {\n      cssClass = trim(cssClass);\n      if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {\n        existingClasses += cssClass + ' ';\n      }\n    });\n\n    element.setAttribute('class', trim(existingClasses));\n  }\n}\n\n\nfunction jqLiteAddNodes(root, elements) {\n  // THIS CODE IS VERY HOT. Don't make changes without benchmarking.\n\n  if (elements) {\n\n    // if a Node (the most common case)\n    if (elements.nodeType) {\n      root[root.length++] = elements;\n    } else {\n      var length = elements.length;\n\n      // if an Array or NodeList and not a Window\n      if (typeof length === 'number' && elements.window !== elements) {\n        if (length) {\n          for (var i = 0; i < length; i++) {\n            root[root.length++] = elements[i];\n          }\n        }\n      } else {\n        root[root.length++] = elements;\n      }\n    }\n  }\n}\n\n\nfunction jqLiteController(element, name) {\n  return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');\n}\n\nfunction jqLiteInheritedData(element, name, value) {\n  // if element is the document object work with the html element instead\n  // this makes $(document).scope() possible\n  if (element.nodeType === NODE_TYPE_DOCUMENT) {\n    element = element.documentElement;\n  }\n  var names = isArray(name) ? name : [name];\n\n  while (element) {\n    for (var i = 0, ii = names.length; i < ii; i++) {\n      if (isDefined(value = jqLite.data(element, names[i]))) return value;\n    }\n\n    // If dealing with a document fragment node with a host element, and no parent, use the host\n    // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM\n    // to lookup parent controllers.\n    element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);\n  }\n}\n\nfunction jqLiteEmpty(element) {\n  jqLiteDealoc(element, true);\n  while (element.firstChild) {\n    element.removeChild(element.firstChild);\n  }\n}\n\nfunction jqLiteRemove(element, keepData) {\n  if (!keepData) jqLiteDealoc(element);\n  var parent = element.parentNode;\n  if (parent) parent.removeChild(element);\n}\n\n\nfunction jqLiteDocumentLoaded(action, win) {\n  win = win || window;\n  if (win.document.readyState === 'complete') {\n    // Force the action to be run async for consistent behavior\n    // from the action's point of view\n    // i.e. it will definitely not be in a $apply\n    win.setTimeout(action);\n  } else {\n    // No need to unbind this handler as load is only ever called once\n    jqLite(win).on('load', action);\n  }\n}\n\nfunction jqLiteReady(fn) {\n  function trigger() {\n    window.document.removeEventListener('DOMContentLoaded', trigger);\n    window.removeEventListener('load', trigger);\n    fn();\n  }\n\n  // check if document is already loaded\n  if (window.document.readyState === 'complete') {\n    window.setTimeout(fn);\n  } else {\n    // We can not use jqLite since we are not done loading and jQuery could be loaded later.\n\n    // Works for modern browsers and IE9\n    window.document.addEventListener('DOMContentLoaded', trigger);\n\n    // Fallback to window.onload for others\n    window.addEventListener('load', trigger);\n  }\n}\n\n//////////////////////////////////////////\n// Functions which are declared directly.\n//////////////////////////////////////////\nvar JQLitePrototype = JQLite.prototype = {\n  ready: jqLiteReady,\n  toString: function() {\n    var value = [];\n    forEach(this, function(e) { value.push('' + e);});\n    return '[' + value.join(', ') + ']';\n  },\n\n  eq: function(index) {\n      return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);\n  },\n\n  length: 0,\n  push: push,\n  sort: [].sort,\n  splice: [].splice\n};\n\n//////////////////////////////////////////\n// Functions iterating getter/setters.\n// these functions return self on setter and\n// value on get.\n//////////////////////////////////////////\nvar BOOLEAN_ATTR = {};\nforEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {\n  BOOLEAN_ATTR[lowercase(value)] = value;\n});\nvar BOOLEAN_ELEMENTS = {};\nforEach('input,select,option,textarea,button,form,details'.split(','), function(value) {\n  BOOLEAN_ELEMENTS[value] = true;\n});\nvar ALIASED_ATTR = {\n  'ngMinlength': 'minlength',\n  'ngMaxlength': 'maxlength',\n  'ngMin': 'min',\n  'ngMax': 'max',\n  'ngPattern': 'pattern',\n  'ngStep': 'step'\n};\n\nfunction getBooleanAttrName(element, name) {\n  // check dom last since we will most likely fail on name\n  var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];\n\n  // booleanAttr is here twice to minimize DOM access\n  return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;\n}\n\nfunction getAliasedAttrName(name) {\n  return ALIASED_ATTR[name];\n}\n\nforEach({\n  data: jqLiteData,\n  removeData: jqLiteRemoveData,\n  hasData: jqLiteHasData,\n  cleanData: jqLiteCleanData\n}, function(fn, name) {\n  JQLite[name] = fn;\n});\n\nforEach({\n  data: jqLiteData,\n  inheritedData: jqLiteInheritedData,\n\n  scope: function(element) {\n    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n    return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);\n  },\n\n  isolateScope: function(element) {\n    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n    return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');\n  },\n\n  controller: jqLiteController,\n\n  injector: function(element) {\n    return jqLiteInheritedData(element, '$injector');\n  },\n\n  removeAttr: function(element, name) {\n    element.removeAttribute(name);\n  },\n\n  hasClass: jqLiteHasClass,\n\n  css: function(element, name, value) {\n    name = cssKebabToCamel(name);\n\n    if (isDefined(value)) {\n      element.style[name] = value;\n    } else {\n      return element.style[name];\n    }\n  },\n\n  attr: function(element, name, value) {\n    var ret;\n    var nodeType = element.nodeType;\n    if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT ||\n      !element.getAttribute) {\n      return;\n    }\n\n    var lowercasedName = lowercase(name);\n    var isBooleanAttr = BOOLEAN_ATTR[lowercasedName];\n\n    if (isDefined(value)) {\n      // setter\n\n      if (value === null || (value === false && isBooleanAttr)) {\n        element.removeAttribute(name);\n      } else {\n        element.setAttribute(name, isBooleanAttr ? lowercasedName : value);\n      }\n    } else {\n      // getter\n\n      ret = element.getAttribute(name);\n\n      if (isBooleanAttr && ret !== null) {\n        ret = lowercasedName;\n      }\n      // Normalize non-existing attributes to undefined (as jQuery).\n      return ret === null ? undefined : ret;\n    }\n  },\n\n  prop: function(element, name, value) {\n    if (isDefined(value)) {\n      element[name] = value;\n    } else {\n      return element[name];\n    }\n  },\n\n  text: (function() {\n    getText.$dv = '';\n    return getText;\n\n    function getText(element, value) {\n      if (isUndefined(value)) {\n        var nodeType = element.nodeType;\n        return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';\n      }\n      element.textContent = value;\n    }\n  })(),\n\n  val: function(element, value) {\n    if (isUndefined(value)) {\n      if (element.multiple && nodeName_(element) === 'select') {\n        var result = [];\n        forEach(element.options, function(option) {\n          if (option.selected) {\n            result.push(option.value || option.text);\n          }\n        });\n        return result;\n      }\n      return element.value;\n    }\n    element.value = value;\n  },\n\n  html: function(element, value) {\n    if (isUndefined(value)) {\n      return element.innerHTML;\n    }\n    jqLiteDealoc(element, true);\n    element.innerHTML = value;\n  },\n\n  empty: jqLiteEmpty\n}, function(fn, name) {\n  /**\n   * Properties: writes return selection, reads return first value\n   */\n  JQLite.prototype[name] = function(arg1, arg2) {\n    var i, key;\n    var nodeCount = this.length;\n\n    // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it\n    // in a way that survives minification.\n    // jqLiteEmpty takes no arguments but is a setter.\n    if (fn !== jqLiteEmpty &&\n        (isUndefined((fn.length === 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) {\n      if (isObject(arg1)) {\n\n        // we are a write, but the object properties are the key/values\n        for (i = 0; i < nodeCount; i++) {\n          if (fn === jqLiteData) {\n            // data() takes the whole object in jQuery\n            fn(this[i], arg1);\n          } else {\n            for (key in arg1) {\n              fn(this[i], key, arg1[key]);\n            }\n          }\n        }\n        // return self for chaining\n        return this;\n      } else {\n        // we are a read, so read the first child.\n        // TODO: do we still need this?\n        var value = fn.$dv;\n        // Only if we have $dv do we iterate over all, otherwise it is just the first element.\n        var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount;\n        for (var j = 0; j < jj; j++) {\n          var nodeValue = fn(this[j], arg1, arg2);\n          value = value ? value + nodeValue : nodeValue;\n        }\n        return value;\n      }\n    } else {\n      // we are a write, so apply to all children\n      for (i = 0; i < nodeCount; i++) {\n        fn(this[i], arg1, arg2);\n      }\n      // return self for chaining\n      return this;\n    }\n  };\n});\n\nfunction createEventHandler(element, events) {\n  var eventHandler = function(event, type) {\n    // jQuery specific api\n    event.isDefaultPrevented = function() {\n      return event.defaultPrevented;\n    };\n\n    var eventFns = events[type || event.type];\n    var eventFnsLength = eventFns ? eventFns.length : 0;\n\n    if (!eventFnsLength) return;\n\n    if (isUndefined(event.immediatePropagationStopped)) {\n      var originalStopImmediatePropagation = event.stopImmediatePropagation;\n      event.stopImmediatePropagation = function() {\n        event.immediatePropagationStopped = true;\n\n        if (event.stopPropagation) {\n          event.stopPropagation();\n        }\n\n        if (originalStopImmediatePropagation) {\n          originalStopImmediatePropagation.call(event);\n        }\n      };\n    }\n\n    event.isImmediatePropagationStopped = function() {\n      return event.immediatePropagationStopped === true;\n    };\n\n    // Some events have special handlers that wrap the real handler\n    var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;\n\n    // Copy event handlers in case event handlers array is modified during execution.\n    if ((eventFnsLength > 1)) {\n      eventFns = shallowCopy(eventFns);\n    }\n\n    for (var i = 0; i < eventFnsLength; i++) {\n      if (!event.isImmediatePropagationStopped()) {\n        handlerWrapper(element, event, eventFns[i]);\n      }\n    }\n  };\n\n  // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all\n  //       events on `element`\n  eventHandler.elem = element;\n  return eventHandler;\n}\n\nfunction defaultHandlerWrapper(element, event, handler) {\n  handler.call(element, event);\n}\n\nfunction specialMouseHandlerWrapper(target, event, handler) {\n  // Refer to jQuery's implementation of mouseenter & mouseleave\n  // Read about mouseenter and mouseleave:\n  // http://www.quirksmode.org/js/events_mouse.html#link8\n  var related = event.relatedTarget;\n  // For mousenter/leave call the handler if related is outside the target.\n  // NB: No relatedTarget if the mouse left/entered the browser window\n  if (!related || (related !== target && !jqLiteContains.call(target, related))) {\n    handler.call(target, event);\n  }\n}\n\n//////////////////////////////////////////\n// Functions iterating traversal.\n// These functions chain results into a single\n// selector.\n//////////////////////////////////////////\nforEach({\n  removeData: jqLiteRemoveData,\n\n  on: function jqLiteOn(element, type, fn, unsupported) {\n    if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');\n\n    // Do not add event handlers to non-elements because they will not be cleaned up.\n    if (!jqLiteAcceptsData(element)) {\n      return;\n    }\n\n    var expandoStore = jqLiteExpandoStore(element, true);\n    var events = expandoStore.events;\n    var handle = expandoStore.handle;\n\n    if (!handle) {\n      handle = expandoStore.handle = createEventHandler(element, events);\n    }\n\n    // http://jsperf.com/string-indexof-vs-split\n    var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];\n    var i = types.length;\n\n    var addHandler = function(type, specialHandlerWrapper, noEventListener) {\n      var eventFns = events[type];\n\n      if (!eventFns) {\n        eventFns = events[type] = [];\n        eventFns.specialHandlerWrapper = specialHandlerWrapper;\n        if (type !== '$destroy' && !noEventListener) {\n          element.addEventListener(type, handle);\n        }\n      }\n\n      eventFns.push(fn);\n    };\n\n    while (i--) {\n      type = types[i];\n      if (MOUSE_EVENT_MAP[type]) {\n        addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);\n        addHandler(type, undefined, true);\n      } else {\n        addHandler(type);\n      }\n    }\n  },\n\n  off: jqLiteOff,\n\n  one: function(element, type, fn) {\n    element = jqLite(element);\n\n    //add the listener twice so that when it is called\n    //you can remove the original function and still be\n    //able to call element.off(ev, fn) normally\n    element.on(type, function onFn() {\n      element.off(type, fn);\n      element.off(type, onFn);\n    });\n    element.on(type, fn);\n  },\n\n  replaceWith: function(element, replaceNode) {\n    var index, parent = element.parentNode;\n    jqLiteDealoc(element);\n    forEach(new JQLite(replaceNode), function(node) {\n      if (index) {\n        parent.insertBefore(node, index.nextSibling);\n      } else {\n        parent.replaceChild(node, element);\n      }\n      index = node;\n    });\n  },\n\n  children: function(element) {\n    var children = [];\n    forEach(element.childNodes, function(element) {\n      if (element.nodeType === NODE_TYPE_ELEMENT) {\n        children.push(element);\n      }\n    });\n    return children;\n  },\n\n  contents: function(element) {\n    return element.contentDocument || element.childNodes || [];\n  },\n\n  append: function(element, node) {\n    var nodeType = element.nodeType;\n    if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;\n\n    node = new JQLite(node);\n\n    for (var i = 0, ii = node.length; i < ii; i++) {\n      var child = node[i];\n      element.appendChild(child);\n    }\n  },\n\n  prepend: function(element, node) {\n    if (element.nodeType === NODE_TYPE_ELEMENT) {\n      var index = element.firstChild;\n      forEach(new JQLite(node), function(child) {\n        element.insertBefore(child, index);\n      });\n    }\n  },\n\n  wrap: function(element, wrapNode) {\n    jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]);\n  },\n\n  remove: jqLiteRemove,\n\n  detach: function(element) {\n    jqLiteRemove(element, true);\n  },\n\n  after: function(element, newElement) {\n    var index = element, parent = element.parentNode;\n\n    if (parent) {\n      newElement = new JQLite(newElement);\n\n      for (var i = 0, ii = newElement.length; i < ii; i++) {\n        var node = newElement[i];\n        parent.insertBefore(node, index.nextSibling);\n        index = node;\n      }\n    }\n  },\n\n  addClass: jqLiteAddClass,\n  removeClass: jqLiteRemoveClass,\n\n  toggleClass: function(element, selector, condition) {\n    if (selector) {\n      forEach(selector.split(' '), function(className) {\n        var classCondition = condition;\n        if (isUndefined(classCondition)) {\n          classCondition = !jqLiteHasClass(element, className);\n        }\n        (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);\n      });\n    }\n  },\n\n  parent: function(element) {\n    var parent = element.parentNode;\n    return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;\n  },\n\n  next: function(element) {\n    return element.nextElementSibling;\n  },\n\n  find: function(element, selector) {\n    if (element.getElementsByTagName) {\n      return element.getElementsByTagName(selector);\n    } else {\n      return [];\n    }\n  },\n\n  clone: jqLiteClone,\n\n  triggerHandler: function(element, event, extraParameters) {\n\n    var dummyEvent, eventFnsCopy, handlerArgs;\n    var eventName = event.type || event;\n    var expandoStore = jqLiteExpandoStore(element);\n    var events = expandoStore && expandoStore.events;\n    var eventFns = events && events[eventName];\n\n    if (eventFns) {\n      // Create a dummy event to pass to the handlers\n      dummyEvent = {\n        preventDefault: function() { this.defaultPrevented = true; },\n        isDefaultPrevented: function() { return this.defaultPrevented === true; },\n        stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },\n        isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },\n        stopPropagation: noop,\n        type: eventName,\n        target: element\n      };\n\n      // If a custom event was provided then extend our dummy event with it\n      if (event.type) {\n        dummyEvent = extend(dummyEvent, event);\n      }\n\n      // Copy event handlers in case event handlers array is modified during execution.\n      eventFnsCopy = shallowCopy(eventFns);\n      handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];\n\n      forEach(eventFnsCopy, function(fn) {\n        if (!dummyEvent.isImmediatePropagationStopped()) {\n          fn.apply(element, handlerArgs);\n        }\n      });\n    }\n  }\n}, function(fn, name) {\n  /**\n   * chaining functions\n   */\n  JQLite.prototype[name] = function(arg1, arg2, arg3) {\n    var value;\n\n    for (var i = 0, ii = this.length; i < ii; i++) {\n      if (isUndefined(value)) {\n        value = fn(this[i], arg1, arg2, arg3);\n        if (isDefined(value)) {\n          // any function which returns a value needs to be wrapped\n          value = jqLite(value);\n        }\n      } else {\n        jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));\n      }\n    }\n    return isDefined(value) ? value : this;\n  };\n});\n\n// bind legacy bind/unbind to on/off\nJQLite.prototype.bind = JQLite.prototype.on;\nJQLite.prototype.unbind = JQLite.prototype.off;\n\n\n// Provider for private $$jqLite service\n/** @this */\nfunction $$jqLiteProvider() {\n  this.$get = function $$jqLite() {\n    return extend(JQLite, {\n      hasClass: function(node, classes) {\n        if (node.attr) node = node[0];\n        return jqLiteHasClass(node, classes);\n      },\n      addClass: function(node, classes) {\n        if (node.attr) node = node[0];\n        return jqLiteAddClass(node, classes);\n      },\n      removeClass: function(node, classes) {\n        if (node.attr) node = node[0];\n        return jqLiteRemoveClass(node, classes);\n      }\n    });\n  };\n}\n\n/**\n * Computes a hash of an 'obj'.\n * Hash of a:\n *  string is string\n *  number is number as string\n *  object is either result of calling $$hashKey function on the object or uniquely generated id,\n *         that is also assigned to the $$hashKey property of the object.\n *\n * @param obj\n * @returns {string} hash string such that the same input will have the same hash string.\n *         The resulting string key is in 'type:hashKey' format.\n */\nfunction hashKey(obj, nextUidFn) {\n  var key = obj && obj.$$hashKey;\n\n  if (key) {\n    if (typeof key === 'function') {\n      key = obj.$$hashKey();\n    }\n    return key;\n  }\n\n  var objType = typeof obj;\n  if (objType === 'function' || (objType === 'object' && obj !== null)) {\n    key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();\n  } else {\n    key = objType + ':' + obj;\n  }\n\n  return key;\n}\n\n/**\n * HashMap which can use objects as keys\n */\nfunction HashMap(array, isolatedUid) {\n  if (isolatedUid) {\n    var uid = 0;\n    this.nextUid = function() {\n      return ++uid;\n    };\n  }\n  forEach(array, this.put, this);\n}\nHashMap.prototype = {\n  /**\n   * Store key value pair\n   * @param key key to store can be any type\n   * @param value value to store can be any type\n   */\n  put: function(key, value) {\n    this[hashKey(key, this.nextUid)] = value;\n  },\n\n  /**\n   * @param key\n   * @returns {Object} the value for the key\n   */\n  get: function(key) {\n    return this[hashKey(key, this.nextUid)];\n  },\n\n  /**\n   * Remove the key/value pair\n   * @param key\n   */\n  remove: function(key) {\n    var value = this[key = hashKey(key, this.nextUid)];\n    delete this[key];\n    return value;\n  }\n};\n\nvar $$HashMapProvider = [/** @this */function() {\n  this.$get = [function() {\n    return HashMap;\n  }];\n}];\n\n/**\n * @ngdoc function\n * @module ng\n * @name angular.injector\n * @kind function\n *\n * @description\n * Creates an injector object that can be used for retrieving services as well as for\n * dependency injection (see {@link guide/di dependency injection}).\n *\n * @param {Array.<string|Function>} modules A list of module functions or their aliases. See\n *     {@link angular.module}. The `ng` module must be explicitly added.\n * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which\n *     disallows argument name annotation inference.\n * @returns {injector} Injector object. See {@link auto.$injector $injector}.\n *\n * @example\n * Typical usage\n * ```js\n *   // create an injector\n *   var $injector = angular.injector(['ng']);\n *\n *   // use the injector to kick off your application\n *   // use the type inference to auto inject arguments, or use implicit injection\n *   $injector.invoke(function($rootScope, $compile, $document) {\n *     $compile($document)($rootScope);\n *     $rootScope.$digest();\n *   });\n * ```\n *\n * Sometimes you want to get access to the injector of a currently running Angular app\n * from outside Angular. Perhaps, you want to inject and compile some markup after the\n * application has been bootstrapped. You can do this using the extra `injector()` added\n * to JQuery/jqLite elements. See {@link angular.element}.\n *\n * *This is fairly rare but could be the case if a third party library is injecting the\n * markup.*\n *\n * In the following example a new block of HTML containing a `ng-controller`\n * directive is added to the end of the document body by JQuery. We then compile and link\n * it into the current AngularJS scope.\n *\n * ```js\n * var $div = $('<div ng-controller=\"MyCtrl\">{{content.label}}</div>');\n * $(document.body).append($div);\n *\n * angular.element(document).injector().invoke(function($compile) {\n *   var scope = angular.element($div).scope();\n *   $compile($div)(scope);\n * });\n * ```\n */\n\n\n/**\n * @ngdoc module\n * @name auto\n * @installation\n * @description\n *\n * Implicit module which gets automatically added to each {@link auto.$injector $injector}.\n */\n\nvar ARROW_ARG = /^([^(]+?)=>/;\nvar FN_ARGS = /^[^(]*\\(\\s*([^)]*)\\)/m;\nvar FN_ARG_SPLIT = /,/;\nvar FN_ARG = /^\\s*(_?)(\\S+?)\\1\\s*$/;\nvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\nvar $injectorMinErr = minErr('$injector');\n\nfunction stringifyFn(fn) {\n  // Support: Chrome 50-51 only\n  // Creating a new string by adding `' '` at the end, to hack around some bug in Chrome v50/51\n  // (See https://github.com/angular/angular.js/issues/14487.)\n  // TODO (gkalpak): Remove workaround when Chrome v52 is released\n  return Function.prototype.toString.call(fn) + ' ';\n}\n\nfunction extractArgs(fn) {\n  var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''),\n      args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS);\n  return args;\n}\n\nfunction anonFn(fn) {\n  // For anonymous functions, showing at the very least the function signature can help in\n  // debugging.\n  var args = extractArgs(fn);\n  if (args) {\n    return 'function(' + (args[1] || '').replace(/[\\s\\r\\n]+/, ' ') + ')';\n  }\n  return 'fn';\n}\n\nfunction annotate(fn, strictDi, name) {\n  var $inject,\n      argDecl,\n      last;\n\n  if (typeof fn === 'function') {\n    if (!($inject = fn.$inject)) {\n      $inject = [];\n      if (fn.length) {\n        if (strictDi) {\n          if (!isString(name) || !name) {\n            name = fn.name || anonFn(fn);\n          }\n          throw $injectorMinErr('strictdi',\n            '{0} is not using explicit annotation and cannot be invoked in strict mode', name);\n        }\n        argDecl = extractArgs(fn);\n        forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {\n          arg.replace(FN_ARG, function(all, underscore, name) {\n            $inject.push(name);\n          });\n        });\n      }\n      fn.$inject = $inject;\n    }\n  } else if (isArray(fn)) {\n    last = fn.length - 1;\n    assertArgFn(fn[last], 'fn');\n    $inject = fn.slice(0, last);\n  } else {\n    assertArgFn(fn, 'fn', true);\n  }\n  return $inject;\n}\n\n///////////////////////////////////////\n\n/**\n * @ngdoc service\n * @name $injector\n *\n * @description\n *\n * `$injector` is used to retrieve object instances as defined by\n * {@link auto.$provide provider}, instantiate types, invoke methods,\n * and load modules.\n *\n * The following always holds true:\n *\n * ```js\n *   var $injector = angular.injector();\n *   expect($injector.get('$injector')).toBe($injector);\n *   expect($injector.invoke(function($injector) {\n *     return $injector;\n *   })).toBe($injector);\n * ```\n *\n * # Injection Function Annotation\n *\n * JavaScript does not have annotations, and annotations are needed for dependency injection. The\n * following are all valid ways of annotating function with injection arguments and are equivalent.\n *\n * ```js\n *   // inferred (only works if code not minified/obfuscated)\n *   $injector.invoke(function(serviceA){});\n *\n *   // annotated\n *   function explicit(serviceA) {};\n *   explicit.$inject = ['serviceA'];\n *   $injector.invoke(explicit);\n *\n *   // inline\n *   $injector.invoke(['serviceA', function(serviceA){}]);\n * ```\n *\n * ## Inference\n *\n * In JavaScript calling `toString()` on a function returns the function definition. The definition\n * can then be parsed and the function arguments can be extracted. This method of discovering\n * annotations is disallowed when the injector is in strict mode.\n * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the\n * argument names.\n *\n * ## `$inject` Annotation\n * By adding an `$inject` property onto a function the injection parameters can be specified.\n *\n * ## Inline\n * As an array of injection names, where the last item in the array is the function to call.\n */\n\n/**\n * @ngdoc method\n * @name $injector#get\n *\n * @description\n * Return an instance of the service.\n *\n * @param {string} name The name of the instance to retrieve.\n * @param {string=} caller An optional string to provide the origin of the function call for error messages.\n * @return {*} The instance.\n */\n\n/**\n * @ngdoc method\n * @name $injector#invoke\n *\n * @description\n * Invoke the method and supply the method arguments from the `$injector`.\n *\n * @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are\n *   injected according to the {@link guide/di $inject Annotation} rules.\n * @param {Object=} self The `this` for the invoked method.\n * @param {Object=} locals Optional object. If preset then any argument names are read from this\n *                         object first, before the `$injector` is consulted.\n * @returns {*} the value returned by the invoked `fn` function.\n */\n\n/**\n * @ngdoc method\n * @name $injector#has\n *\n * @description\n * Allows the user to query if the particular service exists.\n *\n * @param {string} name Name of the service to query.\n * @returns {boolean} `true` if injector has given service.\n */\n\n/**\n * @ngdoc method\n * @name $injector#instantiate\n * @description\n * Create a new instance of JS type. The method takes a constructor function, invokes the new\n * operator, and supplies all of the arguments to the constructor function as specified by the\n * constructor annotation.\n *\n * @param {Function} Type Annotated constructor function.\n * @param {Object=} locals Optional object. If preset then any argument names are read from this\n * object first, before the `$injector` is consulted.\n * @returns {Object} new instance of `Type`.\n */\n\n/**\n * @ngdoc method\n * @name $injector#annotate\n *\n * @description\n * Returns an array of service names which the function is requesting for injection. This API is\n * used by the injector to determine which services need to be injected into the function when the\n * function is invoked. There are three ways in which the function can be annotated with the needed\n * dependencies.\n *\n * # Argument names\n *\n * The simplest form is to extract the dependencies from the arguments of the function. This is done\n * by converting the function into a string using `toString()` method and extracting the argument\n * names.\n * ```js\n *   // Given\n *   function MyController($scope, $route) {\n *     // ...\n *   }\n *\n *   // Then\n *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n * ```\n *\n * You can disallow this method by using strict injection mode.\n *\n * This method does not work with code minification / obfuscation. For this reason the following\n * annotation strategies are supported.\n *\n * # The `$inject` property\n *\n * If a function has an `$inject` property and its value is an array of strings, then the strings\n * represent names of services to be injected into the function.\n * ```js\n *   // Given\n *   var MyController = function(obfuscatedScope, obfuscatedRoute) {\n *     // ...\n *   }\n *   // Define function dependencies\n *   MyController['$inject'] = ['$scope', '$route'];\n *\n *   // Then\n *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n * ```\n *\n * # The array notation\n *\n * It is often desirable to inline Injected functions and that's when setting the `$inject` property\n * is very inconvenient. In these situations using the array notation to specify the dependencies in\n * a way that survives minification is a better choice:\n *\n * ```js\n *   // We wish to write this (not minification / obfuscation safe)\n *   injector.invoke(function($compile, $rootScope) {\n *     // ...\n *   });\n *\n *   // We are forced to write break inlining\n *   var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {\n *     // ...\n *   };\n *   tmpFn.$inject = ['$compile', '$rootScope'];\n *   injector.invoke(tmpFn);\n *\n *   // To better support inline function the inline annotation is supported\n *   injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {\n *     // ...\n *   }]);\n *\n *   // Therefore\n *   expect(injector.annotate(\n *      ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])\n *    ).toEqual(['$compile', '$rootScope']);\n * ```\n *\n * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to\n * be retrieved as described above.\n *\n * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.\n *\n * @returns {Array.<string>} The names of the services which the function requires.\n */\n\n\n\n/**\n * @ngdoc service\n * @name $provide\n *\n * @description\n *\n * The {@link auto.$provide $provide} service has a number of methods for registering components\n * with the {@link auto.$injector $injector}. Many of these functions are also exposed on\n * {@link angular.Module}.\n *\n * An Angular **service** is a singleton object created by a **service factory**.  These **service\n * factories** are functions which, in turn, are created by a **service provider**.\n * The **service providers** are constructor functions. When instantiated they must contain a\n * property called `$get`, which holds the **service factory** function.\n *\n * When you request a service, the {@link auto.$injector $injector} is responsible for finding the\n * correct **service provider**, instantiating it and then calling its `$get` **service factory**\n * function to get the instance of the **service**.\n *\n * Often services have no configuration options and there is no need to add methods to the service\n * provider.  The provider will be no more than a constructor function with a `$get` property. For\n * these cases the {@link auto.$provide $provide} service has additional helper methods to register\n * services without specifying a provider.\n *\n * * {@link auto.$provide#provider provider(name, provider)} - registers a **service provider** with the\n *     {@link auto.$injector $injector}\n * * {@link auto.$provide#constant constant(name, obj)} - registers a value/object that can be accessed by\n *     providers and services.\n * * {@link auto.$provide#value value(name, obj)} - registers a value/object that can only be accessed by\n *     services, not providers.\n * * {@link auto.$provide#factory factory(name, fn)} - registers a service **factory function**\n *     that will be wrapped in a **service provider** object, whose `$get` property will contain the\n *     given factory function.\n * * {@link auto.$provide#service service(name, Fn)} - registers a **constructor function**\n *     that will be wrapped in a **service provider** object, whose `$get` property will instantiate\n *      a new object using the given constructor function.\n * * {@link auto.$provide#decorator decorator(name, decorFn)} - registers a **decorator function** that\n *      will be able to modify or replace the implementation of another service.\n *\n * See the individual methods for more information and examples.\n */\n\n/**\n * @ngdoc method\n * @name $provide#provider\n * @description\n *\n * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions\n * are constructor functions, whose instances are responsible for \"providing\" a factory for a\n * service.\n *\n * Service provider names start with the name of the service they provide followed by `Provider`.\n * For example, the {@link ng.$log $log} service has a provider called\n * {@link ng.$logProvider $logProvider}.\n *\n * Service provider objects can have additional methods which allow configuration of the provider\n * and its service. Importantly, you can configure what kind of service is created by the `$get`\n * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a\n * method {@link ng.$logProvider#debugEnabled debugEnabled}\n * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the\n * console or not.\n *\n * @param {string} name The name of the instance. NOTE: the provider will be available under `name +\n                        'Provider'` key.\n * @param {(Object|function())} provider If the provider is:\n *\n *   - `Object`: then it should have a `$get` method. The `$get` method will be invoked using\n *     {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.\n *   - `Constructor`: a new instance of the provider will be created using\n *     {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.\n *\n * @returns {Object} registered provider instance\n\n * @example\n *\n * The following example shows how to create a simple event tracking service and register it using\n * {@link auto.$provide#provider $provide.provider()}.\n *\n * ```js\n *  // Define the eventTracker provider\n *  function EventTrackerProvider() {\n *    var trackingUrl = '/track';\n *\n *    // A provider method for configuring where the tracked events should been saved\n *    this.setTrackingUrl = function(url) {\n *      trackingUrl = url;\n *    };\n *\n *    // The service factory function\n *    this.$get = ['$http', function($http) {\n *      var trackedEvents = {};\n *      return {\n *        // Call this to track an event\n *        event: function(event) {\n *          var count = trackedEvents[event] || 0;\n *          count += 1;\n *          trackedEvents[event] = count;\n *          return count;\n *        },\n *        // Call this to save the tracked events to the trackingUrl\n *        save: function() {\n *          $http.post(trackingUrl, trackedEvents);\n *        }\n *      };\n *    }];\n *  }\n *\n *  describe('eventTracker', function() {\n *    var postSpy;\n *\n *    beforeEach(module(function($provide) {\n *      // Register the eventTracker provider\n *      $provide.provider('eventTracker', EventTrackerProvider);\n *    }));\n *\n *    beforeEach(module(function(eventTrackerProvider) {\n *      // Configure eventTracker provider\n *      eventTrackerProvider.setTrackingUrl('/custom-track');\n *    }));\n *\n *    it('tracks events', inject(function(eventTracker) {\n *      expect(eventTracker.event('login')).toEqual(1);\n *      expect(eventTracker.event('login')).toEqual(2);\n *    }));\n *\n *    it('saves to the tracking url', inject(function(eventTracker, $http) {\n *      postSpy = spyOn($http, 'post');\n *      eventTracker.event('login');\n *      eventTracker.save();\n *      expect(postSpy).toHaveBeenCalled();\n *      expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');\n *      expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');\n *      expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });\n *    }));\n *  });\n * ```\n */\n\n/**\n * @ngdoc method\n * @name $provide#factory\n * @description\n *\n * Register a **service factory**, which will be called to return the service instance.\n * This is short for registering a service where its provider consists of only a `$get` property,\n * which is the given service factory function.\n * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to\n * configure your service in a provider.\n *\n * @param {string} name The name of the instance.\n * @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.\n *                      Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.\n * @returns {Object} registered provider instance\n *\n * @example\n * Here is an example of registering a service\n * ```js\n *   $provide.factory('ping', ['$http', function($http) {\n *     return function ping() {\n *       return $http.send('/ping');\n *     };\n *   }]);\n * ```\n * You would then inject and use this service like this:\n * ```js\n *   someModule.controller('Ctrl', ['ping', function(ping) {\n *     ping();\n *   }]);\n * ```\n */\n\n\n/**\n * @ngdoc method\n * @name $provide#service\n * @description\n *\n * Register a **service constructor**, which will be invoked with `new` to create the service\n * instance.\n * This is short for registering a service where its provider's `$get` property is a factory\n * function that returns an instance instantiated by the injector from the service constructor\n * function.\n *\n * Internally it looks a bit like this:\n *\n * ```\n * {\n *   $get: function() {\n *     return $injector.instantiate(constructor);\n *   }\n * }\n * ```\n *\n *\n * You should use {@link auto.$provide#service $provide.service(class)} if you define your service\n * as a type/class.\n *\n * @param {string} name The name of the instance.\n * @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)\n *     that will be instantiated.\n * @returns {Object} registered provider instance\n *\n * @example\n * Here is an example of registering a service using\n * {@link auto.$provide#service $provide.service(class)}.\n * ```js\n *   var Ping = function($http) {\n *     this.$http = $http;\n *   };\n *\n *   Ping.$inject = ['$http'];\n *\n *   Ping.prototype.send = function() {\n *     return this.$http.get('/ping');\n *   };\n *   $provide.service('ping', Ping);\n * ```\n * You would then inject and use this service like this:\n * ```js\n *   someModule.controller('Ctrl', ['ping', function(ping) {\n *     ping.send();\n *   }]);\n * ```\n */\n\n\n/**\n * @ngdoc method\n * @name $provide#value\n * @description\n *\n * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a\n * number, an array, an object or a function. This is short for registering a service where its\n * provider's `$get` property is a factory function that takes no arguments and returns the **value\n * service**. That also means it is not possible to inject other services into a value service.\n *\n * Value services are similar to constant services, except that they cannot be injected into a\n * module configuration function (see {@link angular.Module#config}) but they can be overridden by\n * an Angular {@link auto.$provide#decorator decorator}.\n *\n * @param {string} name The name of the instance.\n * @param {*} value The value.\n * @returns {Object} registered provider instance\n *\n * @example\n * Here are some examples of creating value services.\n * ```js\n *   $provide.value('ADMIN_USER', 'admin');\n *\n *   $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });\n *\n *   $provide.value('halfOf', function(value) {\n *     return value / 2;\n *   });\n * ```\n */\n\n\n/**\n * @ngdoc method\n * @name $provide#constant\n * @description\n *\n * Register a **constant service** with the {@link auto.$injector $injector}, such as a string,\n * a number, an array, an object or a function. Like the {@link auto.$provide#value value}, it is not\n * possible to inject other services into a constant.\n *\n * But unlike {@link auto.$provide#value value}, a constant can be\n * injected into a module configuration function (see {@link angular.Module#config}) and it cannot\n * be overridden by an Angular {@link auto.$provide#decorator decorator}.\n *\n * @param {string} name The name of the constant.\n * @param {*} value The constant value.\n * @returns {Object} registered instance\n *\n * @example\n * Here a some examples of creating constants:\n * ```js\n *   $provide.constant('SHARD_HEIGHT', 306);\n *\n *   $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);\n *\n *   $provide.constant('double', function(value) {\n *     return value * 2;\n *   });\n * ```\n */\n\n\n/**\n * @ngdoc method\n * @name $provide#decorator\n * @description\n *\n * Register a **decorator function** with the {@link auto.$injector $injector}. A decorator function\n * intercepts the creation of a service, allowing it to override or modify the behavior of the\n * service. The return value of the decorator function may be the original service, or a new service\n * that replaces (or wraps and delegates to) the original service.\n *\n * You can find out more about using decorators in the {@link guide/decorators} guide.\n *\n * @param {string} name The name of the service to decorate.\n * @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be\n *    provided and should return the decorated service instance. The function is called using\n *    the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.\n *    Local injection arguments:\n *\n *    * `$delegate` - The original service instance, which can be replaced, monkey patched, configured,\n *      decorated or delegated to.\n *\n * @example\n * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting\n * calls to {@link ng.$log#error $log.warn()}.\n * ```js\n *   $provide.decorator('$log', ['$delegate', function($delegate) {\n *     $delegate.warn = $delegate.error;\n *     return $delegate;\n *   }]);\n * ```\n */\n\n\nfunction createInjector(modulesToLoad, strictDi) {\n  strictDi = (strictDi === true);\n  var INSTANTIATING = {},\n      providerSuffix = 'Provider',\n      path = [],\n      loadedModules = new HashMap([], true),\n      providerCache = {\n        $provide: {\n            provider: supportObject(provider),\n            factory: supportObject(factory),\n            service: supportObject(service),\n            value: supportObject(value),\n            constant: supportObject(constant),\n            decorator: decorator\n          }\n      },\n      providerInjector = (providerCache.$injector =\n          createInternalInjector(providerCache, function(serviceName, caller) {\n            if (angular.isString(caller)) {\n              path.push(caller);\n            }\n            throw $injectorMinErr('unpr', 'Unknown provider: {0}', path.join(' <- '));\n          })),\n      instanceCache = {},\n      protoInstanceInjector =\n          createInternalInjector(instanceCache, function(serviceName, caller) {\n            var provider = providerInjector.get(serviceName + providerSuffix, caller);\n            return instanceInjector.invoke(\n                provider.$get, provider, undefined, serviceName);\n          }),\n      instanceInjector = protoInstanceInjector;\n\n  providerCache['$injector' + providerSuffix] = { $get: valueFn(protoInstanceInjector) };\n  var runBlocks = loadModules(modulesToLoad);\n  instanceInjector = protoInstanceInjector.get('$injector');\n  instanceInjector.strictDi = strictDi;\n  forEach(runBlocks, function(fn) { if (fn) instanceInjector.invoke(fn); });\n\n  return instanceInjector;\n\n  ////////////////////////////////////\n  // $provider\n  ////////////////////////////////////\n\n  function supportObject(delegate) {\n    return function(key, value) {\n      if (isObject(key)) {\n        forEach(key, reverseParams(delegate));\n      } else {\n        return delegate(key, value);\n      }\n    };\n  }\n\n  function provider(name, provider_) {\n    assertNotHasOwnProperty(name, 'service');\n    if (isFunction(provider_) || isArray(provider_)) {\n      provider_ = providerInjector.instantiate(provider_);\n    }\n    if (!provider_.$get) {\n      throw $injectorMinErr('pget', 'Provider \\'{0}\\' must define $get factory method.', name);\n    }\n    return (providerCache[name + providerSuffix] = provider_);\n  }\n\n  function enforceReturnValue(name, factory) {\n    return /** @this */ function enforcedReturnValue() {\n      var result = instanceInjector.invoke(factory, this);\n      if (isUndefined(result)) {\n        throw $injectorMinErr('undef', 'Provider \\'{0}\\' must return a value from $get factory method.', name);\n      }\n      return result;\n    };\n  }\n\n  function factory(name, factoryFn, enforce) {\n    return provider(name, {\n      $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn\n    });\n  }\n\n  function service(name, constructor) {\n    return factory(name, ['$injector', function($injector) {\n      return $injector.instantiate(constructor);\n    }]);\n  }\n\n  function value(name, val) { return factory(name, valueFn(val), false); }\n\n  function constant(name, value) {\n    assertNotHasOwnProperty(name, 'constant');\n    providerCache[name] = value;\n    instanceCache[name] = value;\n  }\n\n  function decorator(serviceName, decorFn) {\n    var origProvider = providerInjector.get(serviceName + providerSuffix),\n        orig$get = origProvider.$get;\n\n    origProvider.$get = function() {\n      var origInstance = instanceInjector.invoke(orig$get, origProvider);\n      return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});\n    };\n  }\n\n  ////////////////////////////////////\n  // Module Loading\n  ////////////////////////////////////\n  function loadModules(modulesToLoad) {\n    assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');\n    var runBlocks = [], moduleFn;\n    forEach(modulesToLoad, function(module) {\n      if (loadedModules.get(module)) return;\n      loadedModules.put(module, true);\n\n      function runInvokeQueue(queue) {\n        var i, ii;\n        for (i = 0, ii = queue.length; i < ii; i++) {\n          var invokeArgs = queue[i],\n              provider = providerInjector.get(invokeArgs[0]);\n\n          provider[invokeArgs[1]].apply(provider, invokeArgs[2]);\n        }\n      }\n\n      try {\n        if (isString(module)) {\n          moduleFn = angularModule(module);\n          runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);\n          runInvokeQueue(moduleFn._invokeQueue);\n          runInvokeQueue(moduleFn._configBlocks);\n        } else if (isFunction(module)) {\n            runBlocks.push(providerInjector.invoke(module));\n        } else if (isArray(module)) {\n            runBlocks.push(providerInjector.invoke(module));\n        } else {\n          assertArgFn(module, 'module');\n        }\n      } catch (e) {\n        if (isArray(module)) {\n          module = module[module.length - 1];\n        }\n        if (e.message && e.stack && e.stack.indexOf(e.message) === -1) {\n          // Safari & FF's stack traces don't contain error.message content\n          // unlike those of Chrome and IE\n          // So if stack doesn't contain message, we create a new string that contains both.\n          // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.\n          // eslint-disable-next-line no-ex-assign\n          e = e.message + '\\n' + e.stack;\n        }\n        throw $injectorMinErr('modulerr', 'Failed to instantiate module {0} due to:\\n{1}',\n                  module, e.stack || e.message || e);\n      }\n    });\n    return runBlocks;\n  }\n\n  ////////////////////////////////////\n  // internal Injector\n  ////////////////////////////////////\n\n  function createInternalInjector(cache, factory) {\n\n    function getService(serviceName, caller) {\n      if (cache.hasOwnProperty(serviceName)) {\n        if (cache[serviceName] === INSTANTIATING) {\n          throw $injectorMinErr('cdep', 'Circular dependency found: {0}',\n                    serviceName + ' <- ' + path.join(' <- '));\n        }\n        return cache[serviceName];\n      } else {\n        try {\n          path.unshift(serviceName);\n          cache[serviceName] = INSTANTIATING;\n          cache[serviceName] = factory(serviceName, caller);\n          return cache[serviceName];\n        } catch (err) {\n          if (cache[serviceName] === INSTANTIATING) {\n            delete cache[serviceName];\n          }\n          throw err;\n        } finally {\n          path.shift();\n        }\n      }\n    }\n\n\n    function injectionArgs(fn, locals, serviceName) {\n      var args = [],\n          $inject = createInjector.$$annotate(fn, strictDi, serviceName);\n\n      for (var i = 0, length = $inject.length; i < length; i++) {\n        var key = $inject[i];\n        if (typeof key !== 'string') {\n          throw $injectorMinErr('itkn',\n                  'Incorrect injection token! Expected service name as string, got {0}', key);\n        }\n        args.push(locals && locals.hasOwnProperty(key) ? locals[key] :\n                                                         getService(key, serviceName));\n      }\n      return args;\n    }\n\n    function isClass(func) {\n      // Support: IE 9-11 only\n      // IE 9-11 do not support classes and IE9 leaks with the code below.\n      if (msie || typeof func !== 'function') {\n        return false;\n      }\n      var result = func.$$ngIsClass;\n      if (!isBoolean(result)) {\n        // Support: Edge 12-13 only\n        // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/\n        result = func.$$ngIsClass = /^(?:class\\b|constructor\\()/.test(stringifyFn(func));\n      }\n      return result;\n    }\n\n    function invoke(fn, self, locals, serviceName) {\n      if (typeof locals === 'string') {\n        serviceName = locals;\n        locals = null;\n      }\n\n      var args = injectionArgs(fn, locals, serviceName);\n      if (isArray(fn)) {\n        fn = fn[fn.length - 1];\n      }\n\n      if (!isClass(fn)) {\n        // http://jsperf.com/angularjs-invoke-apply-vs-switch\n        // #5388\n        return fn.apply(self, args);\n      } else {\n        args.unshift(null);\n        return new (Function.prototype.bind.apply(fn, args))();\n      }\n    }\n\n\n    function instantiate(Type, locals, serviceName) {\n      // Check if Type is annotated and use just the given function at n-1 as parameter\n      // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);\n      var ctor = (isArray(Type) ? Type[Type.length - 1] : Type);\n      var args = injectionArgs(Type, locals, serviceName);\n      // Empty object at position 0 is ignored for invocation with `new`, but required.\n      args.unshift(null);\n      return new (Function.prototype.bind.apply(ctor, args))();\n    }\n\n\n    return {\n      invoke: invoke,\n      instantiate: instantiate,\n      get: getService,\n      annotate: createInjector.$$annotate,\n      has: function(name) {\n        return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);\n      }\n    };\n  }\n}\n\ncreateInjector.$$annotate = annotate;\n\n/**\n * @ngdoc provider\n * @name $anchorScrollProvider\n * @this\n *\n * @description\n * Use `$anchorScrollProvider` to disable automatic scrolling whenever\n * {@link ng.$location#hash $location.hash()} changes.\n */\nfunction $AnchorScrollProvider() {\n\n  var autoScrollingEnabled = true;\n\n  /**\n   * @ngdoc method\n   * @name $anchorScrollProvider#disableAutoScrolling\n   *\n   * @description\n   * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to\n   * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />\n   * Use this method to disable automatic scrolling.\n   *\n   * If automatic scrolling is disabled, one must explicitly call\n   * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the\n   * current hash.\n   */\n  this.disableAutoScrolling = function() {\n    autoScrollingEnabled = false;\n  };\n\n  /**\n   * @ngdoc service\n   * @name $anchorScroll\n   * @kind function\n   * @requires $window\n   * @requires $location\n   * @requires $rootScope\n   *\n   * @description\n   * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the\n   * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified\n   * in the\n   * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#an-indicated-part-of-the-document).\n   *\n   * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to\n   * match any anchor whenever it changes. This can be disabled by calling\n   * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.\n   *\n   * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a\n   * vertical scroll-offset (either fixed or dynamic).\n   *\n   * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of\n   *                       {@link ng.$location#hash $location.hash()} will be used.\n   *\n   * @property {(number|function|jqLite)} yOffset\n   * If set, specifies a vertical scroll-offset. This is often useful when there are fixed\n   * positioned elements at the top of the page, such as navbars, headers etc.\n   *\n   * `yOffset` can be specified in various ways:\n   * - **number**: A fixed number of pixels to be used as offset.<br /><br />\n   * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return\n   *   a number representing the offset (in pixels).<br /><br />\n   * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from\n   *   the top of the page to the element's bottom will be used as offset.<br />\n   *   **Note**: The element will be taken into account only as long as its `position` is set to\n   *   `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust\n   *   their height and/or positioning according to the viewport's size.\n   *\n   * <br />\n   * <div class=\"alert alert-warning\">\n   * In order for `yOffset` to work properly, scrolling should take place on the document's root and\n   * not some child element.\n   * </div>\n   *\n   * @example\n     <example module=\"anchorScrollExample\" name=\"anchor-scroll\">\n       <file name=\"index.html\">\n         <div id=\"scrollArea\" ng-controller=\"ScrollController\">\n           <a ng-click=\"gotoBottom()\">Go to bottom</a>\n           <a id=\"bottom\"></a> You're at the bottom!\n         </div>\n       </file>\n       <file name=\"script.js\">\n         angular.module('anchorScrollExample', [])\n           .controller('ScrollController', ['$scope', '$location', '$anchorScroll',\n             function($scope, $location, $anchorScroll) {\n               $scope.gotoBottom = function() {\n                 // set the location.hash to the id of\n                 // the element you wish to scroll to.\n                 $location.hash('bottom');\n\n                 // call $anchorScroll()\n                 $anchorScroll();\n               };\n             }]);\n       </file>\n       <file name=\"style.css\">\n         #scrollArea {\n           height: 280px;\n           overflow: auto;\n         }\n\n         #bottom {\n           display: block;\n           margin-top: 2000px;\n         }\n       </file>\n     </example>\n   *\n   * <hr />\n   * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).\n   * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.\n   *\n   * @example\n     <example module=\"anchorScrollOffsetExample\" name=\"anchor-scroll-offset\">\n       <file name=\"index.html\">\n         <div class=\"fixed-header\" ng-controller=\"headerCtrl\">\n           <a href=\"\" ng-click=\"gotoAnchor(x)\" ng-repeat=\"x in [1,2,3,4,5]\">\n             Go to anchor {{x}}\n           </a>\n         </div>\n         <div id=\"anchor{{x}}\" class=\"anchor\" ng-repeat=\"x in [1,2,3,4,5]\">\n           Anchor {{x}} of 5\n         </div>\n       </file>\n       <file name=\"script.js\">\n         angular.module('anchorScrollOffsetExample', [])\n           .run(['$anchorScroll', function($anchorScroll) {\n             $anchorScroll.yOffset = 50;   // always scroll by 50 extra pixels\n           }])\n           .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',\n             function($anchorScroll, $location, $scope) {\n               $scope.gotoAnchor = function(x) {\n                 var newHash = 'anchor' + x;\n                 if ($location.hash() !== newHash) {\n                   // set the $location.hash to `newHash` and\n                   // $anchorScroll will automatically scroll to it\n                   $location.hash('anchor' + x);\n                 } else {\n                   // call $anchorScroll() explicitly,\n                   // since $location.hash hasn't changed\n                   $anchorScroll();\n                 }\n               };\n             }\n           ]);\n       </file>\n       <file name=\"style.css\">\n         body {\n           padding-top: 50px;\n         }\n\n         .anchor {\n           border: 2px dashed DarkOrchid;\n           padding: 10px 10px 200px 10px;\n         }\n\n         .fixed-header {\n           background-color: rgba(0, 0, 0, 0.2);\n           height: 50px;\n           position: fixed;\n           top: 0; left: 0; right: 0;\n         }\n\n         .fixed-header > a {\n           display: inline-block;\n           margin: 5px 15px;\n         }\n       </file>\n     </example>\n   */\n  this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {\n    var document = $window.document;\n\n    // Helper function to get first anchor from a NodeList\n    // (using `Array#some()` instead of `angular#forEach()` since it's more performant\n    //  and working in all supported browsers.)\n    function getFirstAnchor(list) {\n      var result = null;\n      Array.prototype.some.call(list, function(element) {\n        if (nodeName_(element) === 'a') {\n          result = element;\n          return true;\n        }\n      });\n      return result;\n    }\n\n    function getYOffset() {\n\n      var offset = scroll.yOffset;\n\n      if (isFunction(offset)) {\n        offset = offset();\n      } else if (isElement(offset)) {\n        var elem = offset[0];\n        var style = $window.getComputedStyle(elem);\n        if (style.position !== 'fixed') {\n          offset = 0;\n        } else {\n          offset = elem.getBoundingClientRect().bottom;\n        }\n      } else if (!isNumber(offset)) {\n        offset = 0;\n      }\n\n      return offset;\n    }\n\n    function scrollTo(elem) {\n      if (elem) {\n        elem.scrollIntoView();\n\n        var offset = getYOffset();\n\n        if (offset) {\n          // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.\n          // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the\n          // top of the viewport.\n          //\n          // IF the number of pixels from the top of `elem` to the end of the page's content is less\n          // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some\n          // way down the page.\n          //\n          // This is often the case for elements near the bottom of the page.\n          //\n          // In such cases we do not need to scroll the whole `offset` up, just the difference between\n          // the top of the element and the offset, which is enough to align the top of `elem` at the\n          // desired position.\n          var elemTop = elem.getBoundingClientRect().top;\n          $window.scrollBy(0, elemTop - offset);\n        }\n      } else {\n        $window.scrollTo(0, 0);\n      }\n    }\n\n    function scroll(hash) {\n      // Allow numeric hashes\n      hash = isString(hash) ? hash : isNumber(hash) ? hash.toString() : $location.hash();\n      var elm;\n\n      // empty hash, scroll to the top of the page\n      if (!hash) scrollTo(null);\n\n      // element with given id\n      else if ((elm = document.getElementById(hash))) scrollTo(elm);\n\n      // first anchor with given name :-D\n      else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);\n\n      // no element and hash === 'top', scroll to the top of the page\n      else if (hash === 'top') scrollTo(null);\n    }\n\n    // does not scroll when user clicks on anchor link that is currently on\n    // (no url change, no $location.hash() change), browser native does scroll\n    if (autoScrollingEnabled) {\n      $rootScope.$watch(function autoScrollWatch() {return $location.hash();},\n        function autoScrollWatchAction(newVal, oldVal) {\n          // skip the initial scroll if $location.hash is empty\n          if (newVal === oldVal && newVal === '') return;\n\n          jqLiteDocumentLoaded(function() {\n            $rootScope.$evalAsync(scroll);\n          });\n        });\n    }\n\n    return scroll;\n  }];\n}\n\nvar $animateMinErr = minErr('$animate');\nvar ELEMENT_NODE = 1;\nvar NG_ANIMATE_CLASSNAME = 'ng-animate';\n\nfunction mergeClasses(a,b) {\n  if (!a && !b) return '';\n  if (!a) return b;\n  if (!b) return a;\n  if (isArray(a)) a = a.join(' ');\n  if (isArray(b)) b = b.join(' ');\n  return a + ' ' + b;\n}\n\nfunction extractElementNode(element) {\n  for (var i = 0; i < element.length; i++) {\n    var elm = element[i];\n    if (elm.nodeType === ELEMENT_NODE) {\n      return elm;\n    }\n  }\n}\n\nfunction splitClasses(classes) {\n  if (isString(classes)) {\n    classes = classes.split(' ');\n  }\n\n  // Use createMap() to prevent class assumptions involving property names in\n  // Object.prototype\n  var obj = createMap();\n  forEach(classes, function(klass) {\n    // sometimes the split leaves empty string values\n    // incase extra spaces were applied to the options\n    if (klass.length) {\n      obj[klass] = true;\n    }\n  });\n  return obj;\n}\n\n// if any other type of options value besides an Object value is\n// passed into the $animate.method() animation then this helper code\n// will be run which will ignore it. While this patch is not the\n// greatest solution to this, a lot of existing plugins depend on\n// $animate to either call the callback (< 1.2) or return a promise\n// that can be changed. This helper function ensures that the options\n// are wiped clean incase a callback function is provided.\nfunction prepareAnimateOptions(options) {\n  return isObject(options)\n      ? options\n      : {};\n}\n\nvar $$CoreAnimateJsProvider = /** @this */ function() {\n  this.$get = noop;\n};\n\n// this is prefixed with Core since it conflicts with\n// the animateQueueProvider defined in ngAnimate/animateQueue.js\nvar $$CoreAnimateQueueProvider = /** @this */ function() {\n  var postDigestQueue = new HashMap();\n  var postDigestElements = [];\n\n  this.$get = ['$$AnimateRunner', '$rootScope',\n       function($$AnimateRunner,   $rootScope) {\n    return {\n      enabled: noop,\n      on: noop,\n      off: noop,\n      pin: noop,\n\n      push: function(element, event, options, domOperation) {\n        if (domOperation) {\n          domOperation();\n        }\n\n        options = options || {};\n        if (options.from) {\n          element.css(options.from);\n        }\n        if (options.to) {\n          element.css(options.to);\n        }\n\n        if (options.addClass || options.removeClass) {\n          addRemoveClassesPostDigest(element, options.addClass, options.removeClass);\n        }\n\n        var runner = new $$AnimateRunner();\n\n        // since there are no animations to run the runner needs to be\n        // notified that the animation call is complete.\n        runner.complete();\n        return runner;\n      }\n    };\n\n\n    function updateData(data, classes, value) {\n      var changed = false;\n      if (classes) {\n        classes = isString(classes) ? classes.split(' ') :\n                  isArray(classes) ? classes : [];\n        forEach(classes, function(className) {\n          if (className) {\n            changed = true;\n            data[className] = value;\n          }\n        });\n      }\n      return changed;\n    }\n\n    function handleCSSClassChanges() {\n      forEach(postDigestElements, function(element) {\n        var data = postDigestQueue.get(element);\n        if (data) {\n          var existing = splitClasses(element.attr('class'));\n          var toAdd = '';\n          var toRemove = '';\n          forEach(data, function(status, className) {\n            var hasClass = !!existing[className];\n            if (status !== hasClass) {\n              if (status) {\n                toAdd += (toAdd.length ? ' ' : '') + className;\n              } else {\n                toRemove += (toRemove.length ? ' ' : '') + className;\n              }\n            }\n          });\n\n          forEach(element, function(elm) {\n            if (toAdd) {\n              jqLiteAddClass(elm, toAdd);\n            }\n            if (toRemove) {\n              jqLiteRemoveClass(elm, toRemove);\n            }\n          });\n          postDigestQueue.remove(element);\n        }\n      });\n      postDigestElements.length = 0;\n    }\n\n\n    function addRemoveClassesPostDigest(element, add, remove) {\n      var data = postDigestQueue.get(element) || {};\n\n      var classesAdded = updateData(data, add, true);\n      var classesRemoved = updateData(data, remove, false);\n\n      if (classesAdded || classesRemoved) {\n\n        postDigestQueue.put(element, data);\n        postDigestElements.push(element);\n\n        if (postDigestElements.length === 1) {\n          $rootScope.$$postDigest(handleCSSClassChanges);\n        }\n      }\n    }\n  }];\n};\n\n/**\n * @ngdoc provider\n * @name $animateProvider\n *\n * @description\n * Default implementation of $animate that doesn't perform any animations, instead just\n * synchronously performs DOM updates and resolves the returned runner promise.\n *\n * In order to enable animations the `ngAnimate` module has to be loaded.\n *\n * To see the functional implementation check out `src/ngAnimate/animate.js`.\n */\nvar $AnimateProvider = ['$provide', /** @this */ function($provide) {\n  var provider = this;\n\n  this.$$registeredAnimations = Object.create(null);\n\n   /**\n   * @ngdoc method\n   * @name $animateProvider#register\n   *\n   * @description\n   * Registers a new injectable animation factory function. The factory function produces the\n   * animation object which contains callback functions for each event that is expected to be\n   * animated.\n   *\n   *   * `eventFn`: `function(element, ... , doneFunction, options)`\n   *   The element to animate, the `doneFunction` and the options fed into the animation. Depending\n   *   on the type of animation additional arguments will be injected into the animation function. The\n   *   list below explains the function signatures for the different animation methods:\n   *\n   *   - setClass: function(element, addedClasses, removedClasses, doneFunction, options)\n   *   - addClass: function(element, addedClasses, doneFunction, options)\n   *   - removeClass: function(element, removedClasses, doneFunction, options)\n   *   - enter, leave, move: function(element, doneFunction, options)\n   *   - animate: function(element, fromStyles, toStyles, doneFunction, options)\n   *\n   *   Make sure to trigger the `doneFunction` once the animation is fully complete.\n   *\n   * ```js\n   *   return {\n   *     //enter, leave, move signature\n   *     eventFn : function(element, done, options) {\n   *       //code to run the animation\n   *       //once complete, then run done()\n   *       return function endFunction(wasCancelled) {\n   *         //code to cancel the animation\n   *       }\n   *     }\n   *   }\n   * ```\n   *\n   * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).\n   * @param {Function} factory The factory function that will be executed to return the animation\n   *                           object.\n   */\n  this.register = function(name, factory) {\n    if (name && name.charAt(0) !== '.') {\n      throw $animateMinErr('notcsel', 'Expecting class selector starting with \\'.\\' got \\'{0}\\'.', name);\n    }\n\n    var key = name + '-animation';\n    provider.$$registeredAnimations[name.substr(1)] = key;\n    $provide.factory(key, factory);\n  };\n\n  /**\n   * @ngdoc method\n   * @name $animateProvider#classNameFilter\n   *\n   * @description\n   * Sets and/or returns the CSS class regular expression that is checked when performing\n   * an animation. Upon bootstrap the classNameFilter value is not set at all and will\n   * therefore enable $animate to attempt to perform an animation on any element that is triggered.\n   * When setting the `classNameFilter` value, animations will only be performed on elements\n   * that successfully match the filter expression. This in turn can boost performance\n   * for low-powered devices as well as applications containing a lot of structural operations.\n   * @param {RegExp=} expression The className expression which will be checked against all animations\n   * @return {RegExp} The current CSS className expression value. If null then there is no expression value\n   */\n  this.classNameFilter = function(expression) {\n    if (arguments.length === 1) {\n      this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;\n      if (this.$$classNameFilter) {\n        var reservedRegex = new RegExp('(\\\\s+|\\\\/)' + NG_ANIMATE_CLASSNAME + '(\\\\s+|\\\\/)');\n        if (reservedRegex.test(this.$$classNameFilter.toString())) {\n          throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the \"{0}\" CSS class.', NG_ANIMATE_CLASSNAME);\n        }\n      }\n    }\n    return this.$$classNameFilter;\n  };\n\n  this.$get = ['$$animateQueue', function($$animateQueue) {\n    function domInsert(element, parentElement, afterElement) {\n      // if for some reason the previous element was removed\n      // from the dom sometime before this code runs then let's\n      // just stick to using the parent element as the anchor\n      if (afterElement) {\n        var afterNode = extractElementNode(afterElement);\n        if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {\n          afterElement = null;\n        }\n      }\n      if (afterElement) {\n        afterElement.after(element);\n      } else {\n        parentElement.prepend(element);\n      }\n    }\n\n    /**\n     * @ngdoc service\n     * @name $animate\n     * @description The $animate service exposes a series of DOM utility methods that provide support\n     * for animation hooks. The default behavior is the application of DOM operations, however,\n     * when an animation is detected (and animations are enabled), $animate will do the heavy lifting\n     * to ensure that animation runs with the triggered DOM operation.\n     *\n     * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't\n     * included and only when it is active then the animation hooks that `$animate` triggers will be\n     * functional. Once active then all structural `ng-` directives will trigger animations as they perform\n     * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,\n     * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.\n     *\n     * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.\n     *\n     * To learn more about enabling animation support, click here to visit the\n     * {@link ngAnimate ngAnimate module page}.\n     */\n    return {\n      // we don't call it directly since non-existant arguments may\n      // be interpreted as null within the sub enabled function\n\n      /**\n       *\n       * @ngdoc method\n       * @name $animate#on\n       * @kind function\n       * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)\n       *    has fired on the given element or among any of its children. Once the listener is fired, the provided callback\n       *    is fired with the following params:\n       *\n       * ```js\n       * $animate.on('enter', container,\n       *    function callback(element, phase) {\n       *      // cool we detected an enter animation within the container\n       *    }\n       * );\n       * ```\n       *\n       * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)\n       * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself\n       *     as well as among its children\n       * @param {Function} callback the callback function that will be fired when the listener is triggered\n       *\n       * The arguments present in the callback function are:\n       * * `element` - The captured DOM element that the animation was fired on.\n       * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).\n       */\n      on: $$animateQueue.on,\n\n      /**\n       *\n       * @ngdoc method\n       * @name $animate#off\n       * @kind function\n       * @description Deregisters an event listener based on the event which has been associated with the provided element. This method\n       * can be used in three different ways depending on the arguments:\n       *\n       * ```js\n       * // remove all the animation event listeners listening for `enter`\n       * $animate.off('enter');\n       *\n       * // remove listeners for all animation events from the container element\n       * $animate.off(container);\n       *\n       * // remove all the animation event listeners listening for `enter` on the given element and its children\n       * $animate.off('enter', container);\n       *\n       * // remove the event listener function provided by `callback` that is set\n       * // to listen for `enter` on the given `container` as well as its children\n       * $animate.off('enter', container, callback);\n       * ```\n       *\n       * @param {string|DOMElement} event|container the animation event (e.g. enter, leave, move,\n       * addClass, removeClass, etc...), or the container element. If it is the element, all other\n       * arguments are ignored.\n       * @param {DOMElement=} container the container element the event listener was placed on\n       * @param {Function=} callback the callback function that was registered as the listener\n       */\n      off: $$animateQueue.off,\n\n      /**\n       * @ngdoc method\n       * @name $animate#pin\n       * @kind function\n       * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists\n       *    outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the\n       *    element despite being outside the realm of the application or within another application. Say for example if the application\n       *    was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated\n       *    as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind\n       *    that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.\n       *\n       *    Note that this feature is only active when the `ngAnimate` module is used.\n       *\n       * @param {DOMElement} element the external element that will be pinned\n       * @param {DOMElement} parentElement the host parent element that will be associated with the external element\n       */\n      pin: $$animateQueue.pin,\n\n      /**\n       *\n       * @ngdoc method\n       * @name $animate#enabled\n       * @kind function\n       * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This\n       * function can be called in four ways:\n       *\n       * ```js\n       * // returns true or false\n       * $animate.enabled();\n       *\n       * // changes the enabled state for all animations\n       * $animate.enabled(false);\n       * $animate.enabled(true);\n       *\n       * // returns true or false if animations are enabled for an element\n       * $animate.enabled(element);\n       *\n       * // changes the enabled state for an element and its children\n       * $animate.enabled(element, true);\n       * $animate.enabled(element, false);\n       * ```\n       *\n       * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state\n       * @param {boolean=} enabled whether or not the animations will be enabled for the element\n       *\n       * @return {boolean} whether or not animations are enabled\n       */\n      enabled: $$animateQueue.enabled,\n\n      /**\n       * @ngdoc method\n       * @name $animate#cancel\n       * @kind function\n       * @description Cancels the provided animation.\n       *\n       * @param {Promise} animationPromise The animation promise that is returned when an animation is started.\n       */\n      cancel: function(runner) {\n        if (runner.end) {\n          runner.end();\n        }\n      },\n\n      /**\n       *\n       * @ngdoc method\n       * @name $animate#enter\n       * @kind function\n       * @description Inserts the element into the DOM either after the `after` element (if provided) or\n       *   as the first child within the `parent` element and then triggers an animation.\n       *   A promise is returned that will be resolved during the next digest once the animation\n       *   has completed.\n       *\n       * @param {DOMElement} element the element which will be inserted into the DOM\n       * @param {DOMElement} parent the parent element which will append the element as\n       *   a child (so long as the after element is not present)\n       * @param {DOMElement=} after the sibling element after which the element will be appended\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      enter: function(element, parent, after, options) {\n        parent = parent && jqLite(parent);\n        after = after && jqLite(after);\n        parent = parent || after.parent();\n        domInsert(element, parent, after);\n        return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));\n      },\n\n      /**\n       *\n       * @ngdoc method\n       * @name $animate#move\n       * @kind function\n       * @description Inserts (moves) the element into its new position in the DOM either after\n       *   the `after` element (if provided) or as the first child within the `parent` element\n       *   and then triggers an animation. A promise is returned that will be resolved\n       *   during the next digest once the animation has completed.\n       *\n       * @param {DOMElement} element the element which will be moved into the new DOM position\n       * @param {DOMElement} parent the parent element which will append the element as\n       *   a child (so long as the after element is not present)\n       * @param {DOMElement=} after the sibling element after which the element will be appended\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      move: function(element, parent, after, options) {\n        parent = parent && jqLite(parent);\n        after = after && jqLite(after);\n        parent = parent || after.parent();\n        domInsert(element, parent, after);\n        return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));\n      },\n\n      /**\n       * @ngdoc method\n       * @name $animate#leave\n       * @kind function\n       * @description Triggers an animation and then removes the element from the DOM.\n       * When the function is called a promise is returned that will be resolved during the next\n       * digest once the animation has completed.\n       *\n       * @param {DOMElement} element the element which will be removed from the DOM\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      leave: function(element, options) {\n        return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() {\n          element.remove();\n        });\n      },\n\n      /**\n       * @ngdoc method\n       * @name $animate#addClass\n       * @kind function\n       *\n       * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon\n       *   execution, the addClass operation will only be handled after the next digest and it will not trigger an\n       *   animation if element already contains the CSS class or if the class is removed at a later step.\n       *   Note that class-based animations are treated differently compared to structural animations\n       *   (like enter, move and leave) since the CSS classes may be added/removed at different points\n       *   depending if CSS or JavaScript animations are used.\n       *\n       * @param {DOMElement} element the element which the CSS classes will be applied to\n       * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      addClass: function(element, className, options) {\n        options = prepareAnimateOptions(options);\n        options.addClass = mergeClasses(options.addclass, className);\n        return $$animateQueue.push(element, 'addClass', options);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $animate#removeClass\n       * @kind function\n       *\n       * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon\n       *   execution, the removeClass operation will only be handled after the next digest and it will not trigger an\n       *   animation if element does not contain the CSS class or if the class is added at a later step.\n       *   Note that class-based animations are treated differently compared to structural animations\n       *   (like enter, move and leave) since the CSS classes may be added/removed at different points\n       *   depending if CSS or JavaScript animations are used.\n       *\n       * @param {DOMElement} element the element which the CSS classes will be applied to\n       * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      removeClass: function(element, className, options) {\n        options = prepareAnimateOptions(options);\n        options.removeClass = mergeClasses(options.removeClass, className);\n        return $$animateQueue.push(element, 'removeClass', options);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $animate#setClass\n       * @kind function\n       *\n       * @description Performs both the addition and removal of a CSS classes on an element and (during the process)\n       *    triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and\n       *    `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has\n       *    passed. Note that class-based animations are treated differently compared to structural animations\n       *    (like enter, move and leave) since the CSS classes may be added/removed at different points\n       *    depending if CSS or JavaScript animations are used.\n       *\n       * @param {DOMElement} element the element which the CSS classes will be applied to\n       * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)\n       * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      setClass: function(element, add, remove, options) {\n        options = prepareAnimateOptions(options);\n        options.addClass = mergeClasses(options.addClass, add);\n        options.removeClass = mergeClasses(options.removeClass, remove);\n        return $$animateQueue.push(element, 'setClass', options);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $animate#animate\n       * @kind function\n       *\n       * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.\n       * If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take\n       * on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and\n       * `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding\n       * style in `to`, the style in `from` is applied immediately, and no animation is run.\n       * If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`\n       * method (or as part of the `options` parameter):\n       *\n       * ```js\n       * ngModule.animation('.my-inline-animation', function() {\n       *   return {\n       *     animate : function(element, from, to, done, options) {\n       *       //animation\n       *       done();\n       *     }\n       *   }\n       * });\n       * ```\n       *\n       * @param {DOMElement} element the element which the CSS styles will be applied to\n       * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.\n       * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.\n       * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If\n       *    this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.\n       *    (Note that if no animation is detected then this value will not be applied to the element.)\n       * @param {object=} options an optional collection of options/styles that will be applied to the element.\n       *   The object can have the following properties:\n       *\n       *   - **addClass** - `{string}` - space-separated CSS classes to add to element\n       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`\n       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element\n       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`\n       *\n       * @return {Promise} the animation callback promise\n       */\n      animate: function(element, from, to, className, options) {\n        options = prepareAnimateOptions(options);\n        options.from = options.from ? extend(options.from, from) : from;\n        options.to   = options.to   ? extend(options.to, to)     : to;\n\n        className = className || 'ng-inline-animate';\n        options.tempClasses = mergeClasses(options.tempClasses, className);\n        return $$animateQueue.push(element, 'animate', options);\n      }\n    };\n  }];\n}];\n\nvar $$AnimateAsyncRunFactoryProvider = /** @this */ function() {\n  this.$get = ['$$rAF', function($$rAF) {\n    var waitQueue = [];\n\n    function waitForTick(fn) {\n      waitQueue.push(fn);\n      if (waitQueue.length > 1) return;\n      $$rAF(function() {\n        for (var i = 0; i < waitQueue.length; i++) {\n          waitQueue[i]();\n        }\n        waitQueue = [];\n      });\n    }\n\n    return function() {\n      var passed = false;\n      waitForTick(function() {\n        passed = true;\n      });\n      return function(callback) {\n        if (passed) {\n          callback();\n        } else {\n          waitForTick(callback);\n        }\n      };\n    };\n  }];\n};\n\nvar $$AnimateRunnerFactoryProvider = /** @this */ function() {\n  this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout',\n       function($q,   $sniffer,   $$animateAsyncRun,   $$isDocumentHidden,   $timeout) {\n\n    var INITIAL_STATE = 0;\n    var DONE_PENDING_STATE = 1;\n    var DONE_COMPLETE_STATE = 2;\n\n    AnimateRunner.chain = function(chain, callback) {\n      var index = 0;\n\n      next();\n      function next() {\n        if (index === chain.length) {\n          callback(true);\n          return;\n        }\n\n        chain[index](function(response) {\n          if (response === false) {\n            callback(false);\n            return;\n          }\n          index++;\n          next();\n        });\n      }\n    };\n\n    AnimateRunner.all = function(runners, callback) {\n      var count = 0;\n      var status = true;\n      forEach(runners, function(runner) {\n        runner.done(onProgress);\n      });\n\n      function onProgress(response) {\n        status = status && response;\n        if (++count === runners.length) {\n          callback(status);\n        }\n      }\n    };\n\n    function AnimateRunner(host) {\n      this.setHost(host);\n\n      var rafTick = $$animateAsyncRun();\n      var timeoutTick = function(fn) {\n        $timeout(fn, 0, false);\n      };\n\n      this._doneCallbacks = [];\n      this._tick = function(fn) {\n        if ($$isDocumentHidden()) {\n          timeoutTick(fn);\n        } else {\n          rafTick(fn);\n        }\n      };\n      this._state = 0;\n    }\n\n    AnimateRunner.prototype = {\n      setHost: function(host) {\n        this.host = host || {};\n      },\n\n      done: function(fn) {\n        if (this._state === DONE_COMPLETE_STATE) {\n          fn();\n        } else {\n          this._doneCallbacks.push(fn);\n        }\n      },\n\n      progress: noop,\n\n      getPromise: function() {\n        if (!this.promise) {\n          var self = this;\n          this.promise = $q(function(resolve, reject) {\n            self.done(function(status) {\n              if (status === false) {\n                reject();\n              } else {\n                resolve();\n              }\n            });\n          });\n        }\n        return this.promise;\n      },\n\n      then: function(resolveHandler, rejectHandler) {\n        return this.getPromise().then(resolveHandler, rejectHandler);\n      },\n\n      'catch': function(handler) {\n        return this.getPromise()['catch'](handler);\n      },\n\n      'finally': function(handler) {\n        return this.getPromise()['finally'](handler);\n      },\n\n      pause: function() {\n        if (this.host.pause) {\n          this.host.pause();\n        }\n      },\n\n      resume: function() {\n        if (this.host.resume) {\n          this.host.resume();\n        }\n      },\n\n      end: function() {\n        if (this.host.end) {\n          this.host.end();\n        }\n        this._resolve(true);\n      },\n\n      cancel: function() {\n        if (this.host.cancel) {\n          this.host.cancel();\n        }\n        this._resolve(false);\n      },\n\n      complete: function(response) {\n        var self = this;\n        if (self._state === INITIAL_STATE) {\n          self._state = DONE_PENDING_STATE;\n          self._tick(function() {\n            self._resolve(response);\n          });\n        }\n      },\n\n      _resolve: function(response) {\n        if (this._state !== DONE_COMPLETE_STATE) {\n          forEach(this._doneCallbacks, function(fn) {\n            fn(response);\n          });\n          this._doneCallbacks.length = 0;\n          this._state = DONE_COMPLETE_STATE;\n        }\n      }\n    };\n\n    return AnimateRunner;\n  }];\n};\n\n/* exported $CoreAnimateCssProvider */\n\n/**\n * @ngdoc service\n * @name $animateCss\n * @kind object\n * @this\n *\n * @description\n * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,\n * then the `$animateCss` service will actually perform animations.\n *\n * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.\n */\nvar $CoreAnimateCssProvider = function() {\n  this.$get = ['$$rAF', '$q', '$$AnimateRunner', function($$rAF, $q, $$AnimateRunner) {\n\n    return function(element, initialOptions) {\n      // all of the animation functions should create\n      // a copy of the options data, however, if a\n      // parent service has already created a copy then\n      // we should stick to using that\n      var options = initialOptions || {};\n      if (!options.$$prepared) {\n        options = copy(options);\n      }\n\n      // there is no point in applying the styles since\n      // there is no animation that goes on at all in\n      // this version of $animateCss.\n      if (options.cleanupStyles) {\n        options.from = options.to = null;\n      }\n\n      if (options.from) {\n        element.css(options.from);\n        options.from = null;\n      }\n\n      var closed, runner = new $$AnimateRunner();\n      return {\n        start: run,\n        end: run\n      };\n\n      function run() {\n        $$rAF(function() {\n          applyAnimationContents();\n          if (!closed) {\n            runner.complete();\n          }\n          closed = true;\n        });\n        return runner;\n      }\n\n      function applyAnimationContents() {\n        if (options.addClass) {\n          element.addClass(options.addClass);\n          options.addClass = null;\n        }\n        if (options.removeClass) {\n          element.removeClass(options.removeClass);\n          options.removeClass = null;\n        }\n        if (options.to) {\n          element.css(options.to);\n          options.to = null;\n        }\n      }\n    };\n  }];\n};\n\n/* global stripHash: true */\n\n/**\n * ! This is a private undocumented service !\n *\n * @name $browser\n * @requires $log\n * @description\n * This object has two goals:\n *\n * - hide all the global state in the browser caused by the window object\n * - abstract away all the browser specific features and inconsistencies\n *\n * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`\n * service, which can be used for convenient testing of the application without the interaction with\n * the real browser apis.\n */\n/**\n * @param {object} window The global window object.\n * @param {object} document jQuery wrapped document.\n * @param {object} $log window.console or an object with the same interface.\n * @param {object} $sniffer $sniffer service\n */\nfunction Browser(window, document, $log, $sniffer) {\n  var self = this,\n      location = window.location,\n      history = window.history,\n      setTimeout = window.setTimeout,\n      clearTimeout = window.clearTimeout,\n      pendingDeferIds = {};\n\n  self.isMock = false;\n\n  var outstandingRequestCount = 0;\n  var outstandingRequestCallbacks = [];\n\n  // TODO(vojta): remove this temporary api\n  self.$$completeOutstandingRequest = completeOutstandingRequest;\n  self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };\n\n  /**\n   * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`\n   * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.\n   */\n  function completeOutstandingRequest(fn) {\n    try {\n      fn.apply(null, sliceArgs(arguments, 1));\n    } finally {\n      outstandingRequestCount--;\n      if (outstandingRequestCount === 0) {\n        while (outstandingRequestCallbacks.length) {\n          try {\n            outstandingRequestCallbacks.pop()();\n          } catch (e) {\n            $log.error(e);\n          }\n        }\n      }\n    }\n  }\n\n  function getHash(url) {\n    var index = url.indexOf('#');\n    return index === -1 ? '' : url.substr(index);\n  }\n\n  /**\n   * @private\n   * Note: this method is used only by scenario runner\n   * TODO(vojta): prefix this method with $$ ?\n   * @param {function()} callback Function that will be called when no outstanding request\n   */\n  self.notifyWhenNoOutstandingRequests = function(callback) {\n    if (outstandingRequestCount === 0) {\n      callback();\n    } else {\n      outstandingRequestCallbacks.push(callback);\n    }\n  };\n\n  //////////////////////////////////////////////////////////////\n  // URL API\n  //////////////////////////////////////////////////////////////\n\n  var cachedState, lastHistoryState,\n      lastBrowserUrl = location.href,\n      baseElement = document.find('base'),\n      pendingLocation = null,\n      getCurrentState = !$sniffer.history ? noop : function getCurrentState() {\n        try {\n          return history.state;\n        } catch (e) {\n          // MSIE can reportedly throw when there is no state (UNCONFIRMED).\n        }\n      };\n\n  cacheState();\n  lastHistoryState = cachedState;\n\n  /**\n   * @name $browser#url\n   *\n   * @description\n   * GETTER:\n   * Without any argument, this method just returns current value of location.href.\n   *\n   * SETTER:\n   * With at least one argument, this method sets url to new value.\n   * If html5 history api supported, pushState/replaceState is used, otherwise\n   * location.href/location.replace is used.\n   * Returns its own instance to allow chaining\n   *\n   * NOTE: this api is intended for use only by the $location service. Please use the\n   * {@link ng.$location $location service} to change url.\n   *\n   * @param {string} url New url (when used as setter)\n   * @param {boolean=} replace Should new url replace current history record?\n   * @param {object=} state object to use with pushState/replaceState\n   */\n  self.url = function(url, replace, state) {\n    // In modern browsers `history.state` is `null` by default; treating it separately\n    // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n    // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n    if (isUndefined(state)) {\n      state = null;\n    }\n\n    // Android Browser BFCache causes location, history reference to become stale.\n    if (location !== window.location) location = window.location;\n    if (history !== window.history) history = window.history;\n\n    // setter\n    if (url) {\n      var sameState = lastHistoryState === state;\n\n      // Don't change anything if previous and current URLs and states match. This also prevents\n      // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.\n      // See https://github.com/angular/angular.js/commit/ffb2701\n      if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {\n        return self;\n      }\n      var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);\n      lastBrowserUrl = url;\n      lastHistoryState = state;\n      // Don't use history API if only the hash changed\n      // due to a bug in IE10/IE11 which leads\n      // to not firing a `hashchange` nor `popstate` event\n      // in some cases (see #9143).\n      if ($sniffer.history && (!sameBase || !sameState)) {\n        history[replace ? 'replaceState' : 'pushState'](state, '', url);\n        cacheState();\n        // Do the assignment again so that those two variables are referentially identical.\n        lastHistoryState = cachedState;\n      } else {\n        if (!sameBase) {\n          pendingLocation = url;\n        }\n        if (replace) {\n          location.replace(url);\n        } else if (!sameBase) {\n          location.href = url;\n        } else {\n          location.hash = getHash(url);\n        }\n        if (location.href !== url) {\n          pendingLocation = url;\n        }\n      }\n      if (pendingLocation) {\n        pendingLocation = url;\n      }\n      return self;\n    // getter\n    } else {\n      // - pendingLocation is needed as browsers don't allow to read out\n      //   the new location.href if a reload happened or if there is a bug like in iOS 9 (see\n      //   https://openradar.appspot.com/22186109).\n      // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172\n      return pendingLocation || location.href.replace(/%27/g,'\\'');\n    }\n  };\n\n  /**\n   * @name $browser#state\n   *\n   * @description\n   * This method is a getter.\n   *\n   * Return history.state or null if history.state is undefined.\n   *\n   * @returns {object} state\n   */\n  self.state = function() {\n    return cachedState;\n  };\n\n  var urlChangeListeners = [],\n      urlChangeInit = false;\n\n  function cacheStateAndFireUrlChange() {\n    pendingLocation = null;\n    cacheState();\n    fireUrlChange();\n  }\n\n  // This variable should be used *only* inside the cacheState function.\n  var lastCachedState = null;\n  function cacheState() {\n    // This should be the only place in $browser where `history.state` is read.\n    cachedState = getCurrentState();\n    cachedState = isUndefined(cachedState) ? null : cachedState;\n\n    // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n    if (equals(cachedState, lastCachedState)) {\n      cachedState = lastCachedState;\n    }\n    lastCachedState = cachedState;\n  }\n\n  function fireUrlChange() {\n    if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {\n      return;\n    }\n\n    lastBrowserUrl = self.url();\n    lastHistoryState = cachedState;\n    forEach(urlChangeListeners, function(listener) {\n      listener(self.url(), cachedState);\n    });\n  }\n\n  /**\n   * @name $browser#onUrlChange\n   *\n   * @description\n   * Register callback function that will be called, when url changes.\n   *\n   * It's only called when the url is changed from outside of angular:\n   * - user types different url into address bar\n   * - user clicks on history (forward/back) button\n   * - user clicks on a link\n   *\n   * It's not called when url is changed by $browser.url() method\n   *\n   * The listener gets called with new url as parameter.\n   *\n   * NOTE: this api is intended for use only by the $location service. Please use the\n   * {@link ng.$location $location service} to monitor url changes in angular apps.\n   *\n   * @param {function(string)} listener Listener function to be called when url changes.\n   * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.\n   */\n  self.onUrlChange = function(callback) {\n    // TODO(vojta): refactor to use node's syntax for events\n    if (!urlChangeInit) {\n      // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)\n      // don't fire popstate when user change the address bar and don't fire hashchange when url\n      // changed by push/replaceState\n\n      // html5 history api - popstate event\n      if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);\n      // hashchange event\n      jqLite(window).on('hashchange', cacheStateAndFireUrlChange);\n\n      urlChangeInit = true;\n    }\n\n    urlChangeListeners.push(callback);\n    return callback;\n  };\n\n  /**\n   * @private\n   * Remove popstate and hashchange handler from window.\n   *\n   * NOTE: this api is intended for use only by $rootScope.\n   */\n  self.$$applicationDestroyed = function() {\n    jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);\n  };\n\n  /**\n   * Checks whether the url has changed outside of Angular.\n   * Needs to be exported to be able to check for changes that have been done in sync,\n   * as hashchange/popstate events fire in async.\n   */\n  self.$$checkUrlChange = fireUrlChange;\n\n  //////////////////////////////////////////////////////////////\n  // Misc API\n  //////////////////////////////////////////////////////////////\n\n  /**\n   * @name $browser#baseHref\n   *\n   * @description\n   * Returns current <base href>\n   * (always relative - without domain)\n   *\n   * @returns {string} The current base href\n   */\n  self.baseHref = function() {\n    var href = baseElement.attr('href');\n    return href ? href.replace(/^(https?:)?\\/\\/[^/]*/, '') : '';\n  };\n\n  /**\n   * @name $browser#defer\n   * @param {function()} fn A function, who's execution should be deferred.\n   * @param {number=} [delay=0] of milliseconds to defer the function execution.\n   * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.\n   *\n   * @description\n   * Executes a fn asynchronously via `setTimeout(fn, delay)`.\n   *\n   * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using\n   * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed\n   * via `$browser.defer.flush()`.\n   *\n   */\n  self.defer = function(fn, delay) {\n    var timeoutId;\n    outstandingRequestCount++;\n    timeoutId = setTimeout(function() {\n      delete pendingDeferIds[timeoutId];\n      completeOutstandingRequest(fn);\n    }, delay || 0);\n    pendingDeferIds[timeoutId] = true;\n    return timeoutId;\n  };\n\n\n  /**\n   * @name $browser#defer.cancel\n   *\n   * @description\n   * Cancels a deferred task identified with `deferId`.\n   *\n   * @param {*} deferId Token returned by the `$browser.defer` function.\n   * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n   *                    canceled.\n   */\n  self.defer.cancel = function(deferId) {\n    if (pendingDeferIds[deferId]) {\n      delete pendingDeferIds[deferId];\n      clearTimeout(deferId);\n      completeOutstandingRequest(noop);\n      return true;\n    }\n    return false;\n  };\n\n}\n\n/** @this */\nfunction $BrowserProvider() {\n  this.$get = ['$window', '$log', '$sniffer', '$document',\n      function($window, $log, $sniffer, $document) {\n        return new Browser($window, $document, $log, $sniffer);\n      }];\n}\n\n/**\n * @ngdoc service\n * @name $cacheFactory\n * @this\n *\n * @description\n * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to\n * them.\n *\n * ```js\n *\n *  var cache = $cacheFactory('cacheId');\n *  expect($cacheFactory.get('cacheId')).toBe(cache);\n *  expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();\n *\n *  cache.put(\"key\", \"value\");\n *  cache.put(\"another key\", \"another value\");\n *\n *  // We've specified no options on creation\n *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});\n *\n * ```\n *\n *\n * @param {string} cacheId Name or id of the newly created cache.\n * @param {object=} options Options object that specifies the cache behavior. Properties:\n *\n *   - `{number=}` `capacity` — turns the cache into LRU cache.\n *\n * @returns {object} Newly created cache object with the following set of methods:\n *\n * - `{object}` `info()` — Returns id, size, and options of cache.\n * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns\n *   it.\n * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.\n * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.\n * - `{void}` `removeAll()` — Removes all cached values.\n * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.\n *\n * @example\n   <example module=\"cacheExampleApp\" name=\"cache-factory\">\n     <file name=\"index.html\">\n       <div ng-controller=\"CacheController\">\n         <input ng-model=\"newCacheKey\" placeholder=\"Key\">\n         <input ng-model=\"newCacheValue\" placeholder=\"Value\">\n         <button ng-click=\"put(newCacheKey, newCacheValue)\">Cache</button>\n\n         <p ng-if=\"keys.length\">Cached Values</p>\n         <div ng-repeat=\"key in keys\">\n           <span ng-bind=\"key\"></span>\n           <span>: </span>\n           <b ng-bind=\"cache.get(key)\"></b>\n         </div>\n\n         <p>Cache Info</p>\n         <div ng-repeat=\"(key, value) in cache.info()\">\n           <span ng-bind=\"key\"></span>\n           <span>: </span>\n           <b ng-bind=\"value\"></b>\n         </div>\n       </div>\n     </file>\n     <file name=\"script.js\">\n       angular.module('cacheExampleApp', []).\n         controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {\n           $scope.keys = [];\n           $scope.cache = $cacheFactory('cacheId');\n           $scope.put = function(key, value) {\n             if (angular.isUndefined($scope.cache.get(key))) {\n               $scope.keys.push(key);\n             }\n             $scope.cache.put(key, angular.isUndefined(value) ? null : value);\n           };\n         }]);\n     </file>\n     <file name=\"style.css\">\n       p {\n         margin: 10px 0 3px;\n       }\n     </file>\n   </example>\n */\nfunction $CacheFactoryProvider() {\n\n  this.$get = function() {\n    var caches = {};\n\n    function cacheFactory(cacheId, options) {\n      if (cacheId in caches) {\n        throw minErr('$cacheFactory')('iid', 'CacheId \\'{0}\\' is already taken!', cacheId);\n      }\n\n      var size = 0,\n          stats = extend({}, options, {id: cacheId}),\n          data = createMap(),\n          capacity = (options && options.capacity) || Number.MAX_VALUE,\n          lruHash = createMap(),\n          freshEnd = null,\n          staleEnd = null;\n\n      /**\n       * @ngdoc type\n       * @name $cacheFactory.Cache\n       *\n       * @description\n       * A cache object used to store and retrieve data, primarily used by\n       * {@link $http $http} and the {@link ng.directive:script script} directive to cache\n       * templates and other data.\n       *\n       * ```js\n       *  angular.module('superCache')\n       *    .factory('superCache', ['$cacheFactory', function($cacheFactory) {\n       *      return $cacheFactory('super-cache');\n       *    }]);\n       * ```\n       *\n       * Example test:\n       *\n       * ```js\n       *  it('should behave like a cache', inject(function(superCache) {\n       *    superCache.put('key', 'value');\n       *    superCache.put('another key', 'another value');\n       *\n       *    expect(superCache.info()).toEqual({\n       *      id: 'super-cache',\n       *      size: 2\n       *    });\n       *\n       *    superCache.remove('another key');\n       *    expect(superCache.get('another key')).toBeUndefined();\n       *\n       *    superCache.removeAll();\n       *    expect(superCache.info()).toEqual({\n       *      id: 'super-cache',\n       *      size: 0\n       *    });\n       *  }));\n       * ```\n       */\n      return (caches[cacheId] = {\n\n        /**\n         * @ngdoc method\n         * @name $cacheFactory.Cache#put\n         * @kind function\n         *\n         * @description\n         * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be\n         * retrieved later, and incrementing the size of the cache if the key was not already\n         * present in the cache. If behaving like an LRU cache, it will also remove stale\n         * entries from the set.\n         *\n         * It will not insert undefined values into the cache.\n         *\n         * @param {string} key the key under which the cached data is stored.\n         * @param {*} value the value to store alongside the key. If it is undefined, the key\n         *    will not be stored.\n         * @returns {*} the value stored.\n         */\n        put: function(key, value) {\n          if (isUndefined(value)) return;\n          if (capacity < Number.MAX_VALUE) {\n            var lruEntry = lruHash[key] || (lruHash[key] = {key: key});\n\n            refresh(lruEntry);\n          }\n\n          if (!(key in data)) size++;\n          data[key] = value;\n\n          if (size > capacity) {\n            this.remove(staleEnd.key);\n          }\n\n          return value;\n        },\n\n        /**\n         * @ngdoc method\n         * @name $cacheFactory.Cache#get\n         * @kind function\n         *\n         * @description\n         * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.\n         *\n         * @param {string} key the key of the data to be retrieved\n         * @returns {*} the value stored.\n         */\n        get: function(key) {\n          if (capacity < Number.MAX_VALUE) {\n            var lruEntry = lruHash[key];\n\n            if (!lruEntry) return;\n\n            refresh(lruEntry);\n          }\n\n          return data[key];\n        },\n\n\n        /**\n         * @ngdoc method\n         * @name $cacheFactory.Cache#remove\n         * @kind function\n         *\n         * @description\n         * Removes an entry from the {@link $cacheFactory.Cache Cache} object.\n         *\n         * @param {string} key the key of the entry to be removed\n         */\n        remove: function(key) {\n          if (capacity < Number.MAX_VALUE) {\n            var lruEntry = lruHash[key];\n\n            if (!lruEntry) return;\n\n            if (lruEntry === freshEnd) freshEnd = lruEntry.p;\n            if (lruEntry === staleEnd) staleEnd = lruEntry.n;\n            link(lruEntry.n,lruEntry.p);\n\n            delete lruHash[key];\n          }\n\n          if (!(key in data)) return;\n\n          delete data[key];\n          size--;\n        },\n\n\n        /**\n         * @ngdoc method\n         * @name $cacheFactory.Cache#removeAll\n         * @kind function\n         *\n         * @description\n         * Clears the cache object of any entries.\n         */\n        removeAll: function() {\n          data = createMap();\n          size = 0;\n          lruHash = createMap();\n          freshEnd = staleEnd = null;\n        },\n\n\n        /**\n         * @ngdoc method\n         * @name $cacheFactory.Cache#destroy\n         * @kind function\n         *\n         * @description\n         * Destroys the {@link $cacheFactory.Cache Cache} object entirely,\n         * removing it from the {@link $cacheFactory $cacheFactory} set.\n         */\n        destroy: function() {\n          data = null;\n          stats = null;\n          lruHash = null;\n          delete caches[cacheId];\n        },\n\n\n        /**\n         * @ngdoc method\n         * @name $cacheFactory.Cache#info\n         * @kind function\n         *\n         * @description\n         * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.\n         *\n         * @returns {object} an object with the following properties:\n         *   <ul>\n         *     <li>**id**: the id of the cache instance</li>\n         *     <li>**size**: the number of entries kept in the cache instance</li>\n         *     <li>**...**: any additional properties from the options object when creating the\n         *       cache.</li>\n         *   </ul>\n         */\n        info: function() {\n          return extend({}, stats, {size: size});\n        }\n      });\n\n\n      /**\n       * makes the `entry` the freshEnd of the LRU linked list\n       */\n      function refresh(entry) {\n        if (entry !== freshEnd) {\n          if (!staleEnd) {\n            staleEnd = entry;\n          } else if (staleEnd === entry) {\n            staleEnd = entry.n;\n          }\n\n          link(entry.n, entry.p);\n          link(entry, freshEnd);\n          freshEnd = entry;\n          freshEnd.n = null;\n        }\n      }\n\n\n      /**\n       * bidirectionally links two entries of the LRU linked list\n       */\n      function link(nextEntry, prevEntry) {\n        if (nextEntry !== prevEntry) {\n          if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify\n          if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify\n        }\n      }\n    }\n\n\n  /**\n   * @ngdoc method\n   * @name $cacheFactory#info\n   *\n   * @description\n   * Get information about all the caches that have been created\n   *\n   * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`\n   */\n    cacheFactory.info = function() {\n      var info = {};\n      forEach(caches, function(cache, cacheId) {\n        info[cacheId] = cache.info();\n      });\n      return info;\n    };\n\n\n  /**\n   * @ngdoc method\n   * @name $cacheFactory#get\n   *\n   * @description\n   * Get access to a cache object by the `cacheId` used when it was created.\n   *\n   * @param {string} cacheId Name or id of a cache to access.\n   * @returns {object} Cache object identified by the cacheId or undefined if no such cache.\n   */\n    cacheFactory.get = function(cacheId) {\n      return caches[cacheId];\n    };\n\n\n    return cacheFactory;\n  };\n}\n\n/**\n * @ngdoc service\n * @name $templateCache\n * @this\n *\n * @description\n * The first time a template is used, it is loaded in the template cache for quick retrieval. You\n * can load templates directly into the cache in a `script` tag, or by consuming the\n * `$templateCache` service directly.\n *\n * Adding via the `script` tag:\n *\n * ```html\n *   <script type=\"text/ng-template\" id=\"templateId.html\">\n *     <p>This is the content of the template</p>\n *   </script>\n * ```\n *\n * **Note:** the `script` tag containing the template does not need to be included in the `head` of\n * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,\n * element with ng-app attribute), otherwise the template will be ignored.\n *\n * Adding via the `$templateCache` service:\n *\n * ```js\n * var myApp = angular.module('myApp', []);\n * myApp.run(function($templateCache) {\n *   $templateCache.put('templateId.html', 'This is the content of the template');\n * });\n * ```\n *\n * To retrieve the template later, simply use it in your component:\n * ```js\n * myApp.component('myComponent', {\n *    templateUrl: 'templateId.html'\n * });\n * ```\n *\n * or get it via the `$templateCache` service:\n * ```js\n * $templateCache.get('templateId.html')\n * ```\n *\n * See {@link ng.$cacheFactory $cacheFactory}.\n *\n */\nfunction $TemplateCacheProvider() {\n  this.$get = ['$cacheFactory', function($cacheFactory) {\n    return $cacheFactory('templates');\n  }];\n}\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n *     Any commits to this file should be reviewed with security in mind.  *\n *   Changes to this file can potentially create security vulnerabilities. *\n *          An approval from 2 Core members with history of modifying      *\n *                         this file is required.                          *\n *                                                                         *\n *  Does the change somehow allow for arbitrary javascript to be executed? *\n *    Or allows for someone to change the prototype of built-in objects?   *\n *     Or gives undesired access to variables like document or window?    *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!\n *\n * DOM-related variables:\n *\n * - \"node\" - DOM Node\n * - \"element\" - DOM Element or Node\n * - \"$node\" or \"$element\" - jqLite-wrapped node or element\n *\n *\n * Compiler related stuff:\n *\n * - \"linkFn\" - linking fn of a single directive\n * - \"nodeLinkFn\" - function that aggregates all linking fns for a particular node\n * - \"childLinkFn\" -  function that aggregates all linking fns for child nodes of a particular node\n * - \"compositeLinkFn\" - function that aggregates all linking fns for a compilation root (nodeList)\n */\n\n\n/**\n * @ngdoc service\n * @name $compile\n * @kind function\n *\n * @description\n * Compiles an HTML string or DOM into a template and produces a template function, which\n * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.\n *\n * The compilation is a process of walking the DOM tree and matching DOM elements to\n * {@link ng.$compileProvider#directive directives}.\n *\n * <div class=\"alert alert-warning\">\n * **Note:** This document is an in-depth reference of all directive options.\n * For a gentle introduction to directives with examples of common use cases,\n * see the {@link guide/directive directive guide}.\n * </div>\n *\n * ## Comprehensive Directive API\n *\n * There are many different options for a directive.\n *\n * The difference resides in the return value of the factory function.\n * You can either return a {@link $compile#directive-definition-object Directive Definition Object (see below)}\n * that defines the directive properties, or just the `postLink` function (all other properties will have\n * the default values).\n *\n * <div class=\"alert alert-success\">\n * **Best Practice:** It's recommended to use the \"directive definition object\" form.\n * </div>\n *\n * Here's an example directive declared with a Directive Definition Object:\n *\n * ```js\n *   var myModule = angular.module(...);\n *\n *   myModule.directive('directiveName', function factory(injectables) {\n *     var directiveDefinitionObject = {\n *       {@link $compile#-priority- priority}: 0,\n *       {@link $compile#-template- template}: '<div></div>', // or // function(tElement, tAttrs) { ... },\n *       // or\n *       // {@link $compile#-templateurl- templateUrl}: 'directive.html', // or // function(tElement, tAttrs) { ... },\n *       {@link $compile#-transclude- transclude}: false,\n *       {@link $compile#-restrict- restrict}: 'A',\n *       {@link $compile#-templatenamespace- templateNamespace}: 'html',\n *       {@link $compile#-scope- scope}: false,\n *       {@link $compile#-controller- controller}: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },\n *       {@link $compile#-controlleras- controllerAs}: 'stringIdentifier',\n *       {@link $compile#-bindtocontroller- bindToController}: false,\n *       {@link $compile#-require- require}: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],\n *       {@link $compile#-multielement- multiElement}: false,\n *       {@link $compile#-compile- compile}: function compile(tElement, tAttrs, transclude) {\n *         return {\n *            {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },\n *            {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }\n *         }\n *         // or\n *         // return function postLink( ... ) { ... }\n *       },\n *       // or\n *       // {@link $compile#-link- link}: {\n *       //  {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },\n *       //  {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }\n *       // }\n *       // or\n *       // {@link $compile#-link- link}: function postLink( ... ) { ... }\n *     };\n *     return directiveDefinitionObject;\n *   });\n * ```\n *\n * <div class=\"alert alert-warning\">\n * **Note:** Any unspecified options will use the default value. You can see the default values below.\n * </div>\n *\n * Therefore the above can be simplified as:\n *\n * ```js\n *   var myModule = angular.module(...);\n *\n *   myModule.directive('directiveName', function factory(injectables) {\n *     var directiveDefinitionObject = {\n *       link: function postLink(scope, iElement, iAttrs) { ... }\n *     };\n *     return directiveDefinitionObject;\n *     // or\n *     // return function postLink(scope, iElement, iAttrs) { ... }\n *   });\n * ```\n *\n * ### Life-cycle hooks\n * Directive controllers can provide the following methods that are called by Angular at points in the life-cycle of the\n * directive:\n * * `$onInit()` - Called on each controller after all the controllers on an element have been constructed and\n *   had their bindings initialized (and before the pre &amp; post linking functions for the directives on\n *   this element). This is a good place to put initialization code for your controller.\n * * `$onChanges(changesObj)` - Called whenever one-way (`<`) or interpolation (`@`) bindings are updated. The\n *   `changesObj` is a hash whose keys are the names of the bound properties that have changed, and the values are an\n *   object of the form `{ currentValue, previousValue, isFirstChange() }`. Use this hook to trigger updates within a\n *   component such as cloning the bound value to prevent accidental mutation of the outer value.\n * * `$doCheck()` - Called on each turn of the digest cycle. Provides an opportunity to detect and act on\n *   changes. Any actions that you wish to take in response to the changes that you detect must be\n *   invoked from this hook; implementing this has no effect on when `$onChanges` is called. For example, this hook\n *   could be useful if you wish to perform a deep equality check, or to check a Date object, changes to which would not\n *   be detected by Angular's change detector and thus not trigger `$onChanges`. This hook is invoked with no arguments;\n *   if detecting changes, you must store the previous value(s) for comparison to the current values.\n * * `$onDestroy()` - Called on a controller when its containing scope is destroyed. Use this hook for releasing\n *   external resources, watches and event handlers. Note that components have their `$onDestroy()` hooks called in\n *   the same order as the `$scope.$broadcast` events are triggered, which is top down. This means that parent\n *   components will have their `$onDestroy()` hook called before child components.\n * * `$postLink()` - Called after this controller's element and its children have been linked. Similar to the post-link\n *   function this hook can be used to set up DOM event handlers and do direct DOM manipulation.\n *   Note that child elements that contain `templateUrl` directives will not have been compiled and linked since\n *   they are waiting for their template to load asynchronously and their own compilation and linking has been\n *   suspended until that occurs.\n *\n * #### Comparison with Angular 2 life-cycle hooks\n * Angular 2 also uses life-cycle hooks for its components. While the Angular 1 life-cycle hooks are similar there are\n * some differences that you should be aware of, especially when it comes to moving your code from Angular 1 to Angular 2:\n *\n * * Angular 1 hooks are prefixed with `$`, such as `$onInit`. Angular 2 hooks are prefixed with `ng`, such as `ngOnInit`.\n * * Angular 1 hooks can be defined on the controller prototype or added to the controller inside its constructor.\n *   In Angular 2 you can only define hooks on the prototype of the Component class.\n * * Due to the differences in change-detection, you may get many more calls to `$doCheck` in Angular 1 than you would to\n *   `ngDoCheck` in Angular 2\n * * Changes to the model inside `$doCheck` will trigger new turns of the digest loop, which will cause the changes to be\n *   propagated throughout the application.\n *   Angular 2 does not allow the `ngDoCheck` hook to trigger a change outside of the component. It will either throw an\n *   error or do nothing depending upon the state of `enableProdMode()`.\n *\n * #### Life-cycle hook examples\n *\n * This example shows how you can check for mutations to a Date object even though the identity of the object\n * has not changed.\n *\n * <example name=\"doCheckDateExample\" module=\"do-check-module\">\n *   <file name=\"app.js\">\n *     angular.module('do-check-module', [])\n *       .component('app', {\n *         template:\n *           'Month: <input ng-model=\"$ctrl.month\" ng-change=\"$ctrl.updateDate()\">' +\n *           'Date: {{ $ctrl.date }}' +\n *           '<test date=\"$ctrl.date\"></test>',\n *         controller: function() {\n *           this.date = new Date();\n *           this.month = this.date.getMonth();\n *           this.updateDate = function() {\n *             this.date.setMonth(this.month);\n *           };\n *         }\n *       })\n *       .component('test', {\n *         bindings: { date: '<' },\n *         template:\n *           '<pre>{{ $ctrl.log | json }}</pre>',\n *         controller: function() {\n *           var previousValue;\n *           this.log = [];\n *           this.$doCheck = function() {\n *             var currentValue = this.date && this.date.valueOf();\n *             if (previousValue !== currentValue) {\n *               this.log.push('doCheck: date mutated: ' + this.date);\n *               previousValue = currentValue;\n *             }\n *           };\n *         }\n *       });\n *   </file>\n *   <file name=\"index.html\">\n *     <app></app>\n *   </file>\n * </example>\n *\n * This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the\n * actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large\n * arrays or objects can have a negative impact on your application performance)\n *\n * <example name=\"doCheckArrayExample\" module=\"do-check-module\">\n *   <file name=\"index.html\">\n *     <div ng-init=\"items = []\">\n *       <button ng-click=\"items.push(items.length)\">Add Item</button>\n *       <button ng-click=\"items = []\">Reset Items</button>\n *       <pre>{{ items }}</pre>\n *       <test items=\"items\"></test>\n *     </div>\n *   </file>\n *   <file name=\"app.js\">\n *      angular.module('do-check-module', [])\n *        .component('test', {\n *          bindings: { items: '<' },\n *          template:\n *            '<pre>{{ $ctrl.log | json }}</pre>',\n *          controller: function() {\n *            this.log = [];\n *\n *            this.$doCheck = function() {\n *              if (this.items_ref !== this.items) {\n *                this.log.push('doCheck: items changed');\n *                this.items_ref = this.items;\n *              }\n *              if (!angular.equals(this.items_clone, this.items)) {\n *                this.log.push('doCheck: items mutated');\n *                this.items_clone = angular.copy(this.items);\n *              }\n *            };\n *          }\n *        });\n *   </file>\n * </example>\n *\n *\n * ### Directive Definition Object\n *\n * The directive definition object provides instructions to the {@link ng.$compile\n * compiler}. The attributes are:\n *\n * #### `multiElement`\n * When this property is set to true (default is `false`), the HTML compiler will collect DOM nodes between\n * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them\n * together as the directive elements. It is recommended that this feature be used on directives\n * which are not strictly behavioral (such as {@link ngClick}), and which\n * do not manipulate or replace child nodes (such as {@link ngInclude}).\n *\n * #### `priority`\n * When there are multiple directives defined on a single DOM element, sometimes it\n * is necessary to specify the order in which the directives are applied. The `priority` is used\n * to sort the directives before their `compile` functions get called. Priority is defined as a\n * number. Directives with greater numerical `priority` are compiled first. Pre-link functions\n * are also run in priority order, but post-link functions are run in reverse order. The order\n * of directives with the same priority is undefined. The default priority is `0`.\n *\n * #### `terminal`\n * If set to true then the current `priority` will be the last set of directives\n * which will execute (any directives at the current priority will still execute\n * as the order of execution on same `priority` is undefined). Note that expressions\n * and other directives used in the directive's template will also be excluded from execution.\n *\n * #### `scope`\n * The scope property can be `false`, `true`, or an object:\n *\n * * **`false` (default):** No scope will be created for the directive. The directive will use its\n * parent's scope.\n *\n * * **`true`:** A new child scope that prototypically inherits from its parent will be created for\n * the directive's element. If multiple directives on the same element request a new scope,\n * only one new scope is created.\n *\n * * **`{...}` (an object hash):** A new \"isolate\" scope is created for the directive's element. The\n * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent\n * scope. This is useful when creating reusable components, which should not accidentally read or modify\n * data in the parent scope.\n *\n * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the\n * directive's element. These local properties are useful for aliasing values for templates. The keys in\n * the object hash map to the name of the property on the isolate scope; the values define how the property\n * is bound to the parent scope, via matching attributes on the directive's element:\n *\n * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is\n *   always a string since DOM attributes are strings. If no `attr` name is specified then the\n *   attribute name is assumed to be the same as the local name. Given `<my-component\n *   my-attr=\"hello {{name}}\">` and the isolate scope definition `scope: { localName:'@myAttr' }`,\n *   the directive's scope property `localName` will reflect the interpolated value of `hello\n *   {{name}}`. As the `name` attribute changes so will the `localName` property on the directive's\n *   scope. The `name` is read from the parent scope (not the directive's scope).\n *\n * * `=` or `=attr` - set up a bidirectional binding between a local scope property and an expression\n *   passed via the attribute `attr`. The expression is evaluated in the context of the parent scope.\n *   If no `attr` name is specified then the attribute name is assumed to be the same as the local\n *   name. Given `<my-component my-attr=\"parentModel\">` and the isolate scope definition `scope: {\n *   localModel: '=myAttr' }`, the property `localModel` on the directive's scope will reflect the\n *   value of `parentModel` on the parent scope. Changes to `parentModel` will be reflected in\n *   `localModel` and vice versa. Optional attributes should be marked as such with a question mark:\n *   `=?` or `=?attr`. If the binding expression is non-assignable, or if the attribute isn't\n *   optional and doesn't exist, an exception ({@link error/$compile/nonassign `$compile:nonassign`})\n *   will be thrown upon discovering changes to the local value, since it will be impossible to sync\n *   them back to the parent scope. By default, the {@link ng.$rootScope.Scope#$watch `$watch`}\n *   method is used for tracking changes, and the equality check is based on object identity.\n *   However, if an object literal or an array literal is passed as the binding expression, the\n *   equality check is done by value (using the {@link angular.equals} function). It's also possible\n *   to watch the evaluated value shallowly with {@link ng.$rootScope.Scope#$watchCollection\n *   `$watchCollection`}: use `=*` or `=*attr` (`=*?` or `=*?attr` if the attribute is optional).\n *\n  * * `<` or `<attr` - set up a one-way (one-directional) binding between a local scope property and an\n *   expression passed via the attribute `attr`. The expression is evaluated in the context of the\n *   parent scope. If no `attr` name is specified then the attribute name is assumed to be the same as the\n *   local name. You can also make the binding optional by adding `?`: `<?` or `<?attr`.\n *\n *   For example, given `<my-component my-attr=\"parentModel\">` and directive definition of\n *   `scope: { localModel:'<myAttr' }`, then the isolated scope property `localModel` will reflect the\n *   value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected\n *   in `localModel`, but changes in `localModel` will not reflect in `parentModel`. There are however\n *   two caveats:\n *     1. one-way binding does not copy the value from the parent to the isolate scope, it simply\n *     sets the same value. That means if your bound value is an object, changes to its properties\n *     in the isolated scope will be reflected in the parent scope (because both reference the same object).\n *     2. one-way binding watches changes to the **identity** of the parent value. That means the\n *     {@link ng.$rootScope.Scope#$watch `$watch`} on the parent value only fires if the reference\n *     to the value has changed. In most cases, this should not be of concern, but can be important\n *     to know if you one-way bind to an object, and then replace that object in the isolated scope.\n *     If you now change a property of the object in your parent scope, the change will not be\n *     propagated to the isolated scope, because the identity of the object on the parent scope\n *     has not changed. Instead you must assign a new object.\n *\n *   One-way binding is useful if you do not plan to propagate changes to your isolated scope bindings\n *   back to the parent. However, it does not make this completely impossible.\n *\n * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. If\n *   no `attr` name is specified then the attribute name is assumed to be the same as the local name.\n *   Given `<my-component my-attr=\"count = count + value\">` and the isolate scope definition `scope: {\n *   localFn:'&myAttr' }`, the isolate scope property `localFn` will point to a function wrapper for\n *   the `count = count + value` expression. Often it's desirable to pass data from the isolated scope\n *   via an expression to the parent scope. This can be done by passing a map of local variable names\n *   and values into the expression wrapper fn. For example, if the expression is `increment(amount)`\n *   then we can specify the amount value by calling the `localFn` as `localFn({amount: 22})`.\n *\n * In general it's possible to apply more than one directive to one element, but there might be limitations\n * depending on the type of scope required by the directives. The following points will help explain these limitations.\n * For simplicity only two directives are taken into account, but it is also applicable for several directives:\n *\n * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope\n * * **child scope** + **no scope** =>  Both directives will share one single child scope\n * * **child scope** + **child scope** =>  Both directives will share one single child scope\n * * **isolated scope** + **no scope** =>  The isolated directive will use it's own created isolated scope. The other directive will use\n * its parent's scope\n * * **isolated scope** + **child scope** =>  **Won't work!** Only one scope can be related to one element. Therefore these directives cannot\n * be applied to the same element.\n * * **isolated scope** + **isolated scope**  =>  **Won't work!** Only one scope can be related to one element. Therefore these directives\n * cannot be applied to the same element.\n *\n *\n * #### `bindToController`\n * This property is used to bind scope properties directly to the controller. It can be either\n * `true` or an object hash with the same format as the `scope` property.\n *\n * When an isolate scope is used for a directive (see above), `bindToController: true` will\n * allow a component to have its properties bound to the controller, rather than to scope.\n *\n * After the controller is instantiated, the initial values of the isolate scope bindings will be bound to the controller\n * properties. You can access these bindings once they have been initialized by providing a controller method called\n * `$onInit`, which is called after all the controllers on an element have been constructed and had their bindings\n * initialized.\n *\n * <div class=\"alert alert-warning\">\n * **Deprecation warning:** although bindings for non-ES6 class controllers are currently\n * bound to `this` before the controller constructor is called, this use is now deprecated. Please place initialization\n * code that relies upon bindings inside a `$onInit` method on the controller, instead.\n * </div>\n *\n * It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.\n * This will set up the scope bindings to the controller directly. Note that `scope` can still be used\n * to define which kind of scope is created. By default, no scope is created. Use `scope: {}` to create an isolate\n * scope (useful for component directives).\n *\n * If both `bindToController` and `scope` are defined and have object hashes, `bindToController` overrides `scope`.\n *\n *\n * #### `controller`\n * Controller constructor function. The controller is instantiated before the\n * pre-linking phase and can be accessed by other directives (see\n * `require` attribute). This allows the directives to communicate with each other and augment\n * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:\n *\n * * `$scope` - Current scope associated with the element\n * * `$element` - Current element\n * * `$attrs` - Current attributes object for the element\n * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:\n *   `function([scope], cloneLinkingFn, futureParentElement, slotName)`:\n *    * `scope`: (optional) override the scope.\n *    * `cloneLinkingFn`: (optional) argument to create clones of the original transcluded content.\n *    * `futureParentElement` (optional):\n *        * defines the parent to which the `cloneLinkingFn` will add the cloned elements.\n *        * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.\n *        * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)\n *          and when the `cloneLinkingFn` is passed,\n *          as those elements need to created and cloned in a special way when they are defined outside their\n *          usual containers (e.g. like `<svg>`).\n *        * See also the `directive.templateNamespace` property.\n *    * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)\n *      then the default transclusion is provided.\n *    The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns\n *    `true` if the specified slot contains content (i.e. one or more DOM nodes).\n *\n * #### `require`\n * Require another directive and inject its controller as the fourth argument to the linking function. The\n * `require` property can be a string, an array or an object:\n * * a **string** containing the name of the directive to pass to the linking function\n * * an **array** containing the names of directives to pass to the linking function. The argument passed to the\n * linking function will be an array of controllers in the same order as the names in the `require` property\n * * an **object** whose property values are the names of the directives to pass to the linking function. The argument\n * passed to the linking function will also be an object with matching keys, whose values will hold the corresponding\n * controllers.\n *\n * If the `require` property is an object and `bindToController` is truthy, then the required controllers are\n * bound to the controller using the keys of the `require` property. This binding occurs after all the controllers\n * have been constructed but before `$onInit` is called.\n * If the name of the required controller is the same as the local name (the key), the name can be\n * omitted. For example, `{parentDir: '^^'}` is equivalent to `{parentDir: '^^parentDir'}`.\n * See the {@link $compileProvider#component} helper for an example of how this can be used.\n * If no such required directive(s) can be found, or if the directive does not have a controller, then an error is\n * raised (unless no link function is specified and the required controllers are not being bound to the directive\n * controller, in which case error checking is skipped). The name can be prefixed with:\n *\n * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.\n * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.\n * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.\n * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.\n * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass\n *   `null` to the `link` fn if not found.\n * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass\n *   `null` to the `link` fn if not found.\n *\n *\n * #### `controllerAs`\n * Identifier name for a reference to the controller in the directive's scope.\n * This allows the controller to be referenced from the directive template. This is especially\n * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible\n * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the\n * `controllerAs` reference might overwrite a property that already exists on the parent scope.\n *\n *\n * #### `restrict`\n * String of subset of `EACM` which restricts the directive to a specific directive\n * declaration style. If omitted, the defaults (elements and attributes) are used.\n *\n * * `E` - Element name (default): `<my-directive></my-directive>`\n * * `A` - Attribute (default): `<div my-directive=\"exp\"></div>`\n * * `C` - Class: `<div class=\"my-directive: exp;\"></div>`\n * * `M` - Comment: `<!-- directive: my-directive exp -->`\n *\n *\n * #### `templateNamespace`\n * String representing the document type used by the markup in the template.\n * AngularJS needs this information as those elements need to be created and cloned\n * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.\n *\n * * `html` - All root nodes in the template are HTML. Root nodes may also be\n *   top-level elements such as `<svg>` or `<math>`.\n * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).\n * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).\n *\n * If no `templateNamespace` is specified, then the namespace is considered to be `html`.\n *\n * #### `template`\n * HTML markup that may:\n * * Replace the contents of the directive's element (default).\n * * Replace the directive's element itself (if `replace` is true - DEPRECATED).\n * * Wrap the contents of the directive's element (if `transclude` is true).\n *\n * Value may be:\n *\n * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.\n * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`\n *   function api below) and returns a string value.\n *\n *\n * #### `templateUrl`\n * This is similar to `template` but the template is loaded from the specified URL, asynchronously.\n *\n * Because template loading is asynchronous the compiler will suspend compilation of directives on that element\n * for later when the template has been resolved.  In the meantime it will continue to compile and link\n * sibling and parent elements as though this element had not contained any directives.\n *\n * The compiler does not suspend the entire compilation to wait for templates to be loaded because this\n * would result in the whole app \"stalling\" until all templates are loaded asynchronously - even in the\n * case when only one deeply nested directive has `templateUrl`.\n *\n * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}\n *\n * You can specify `templateUrl` as a string representing the URL or as a function which takes two\n * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns\n * a string value representing the url.  In either case, the template URL is passed through {@link\n * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.\n *\n *\n * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)\n * specify what the template should replace. Defaults to `false`.\n *\n * * `true` - the template will replace the directive's element.\n * * `false` - the template will replace the contents of the directive's element.\n *\n * The replacement process migrates all of the attributes / classes from the old element to the new\n * one. See the {@link guide/directive#template-expanding-directive\n * Directives Guide} for an example.\n *\n * There are very few scenarios where element replacement is required for the application function,\n * the main one being reusable custom components that are used within SVG contexts\n * (because SVG doesn't work with custom elements in the DOM tree).\n *\n * #### `transclude`\n * Extract the contents of the element where the directive appears and make it available to the directive.\n * The contents are compiled and provided to the directive as a **transclusion function**. See the\n * {@link $compile#transclusion Transclusion} section below.\n *\n *\n * #### `compile`\n *\n * ```js\n *   function compile(tElement, tAttrs, transclude) { ... }\n * ```\n *\n * The compile function deals with transforming the template DOM. Since most directives do not do\n * template transformation, it is not used often. The compile function takes the following arguments:\n *\n *   * `tElement` - template element - The element where the directive has been declared. It is\n *     safe to do template transformation on the element and child elements only.\n *\n *   * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared\n *     between all directive compile functions.\n *\n *   * `transclude` -  [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`\n *\n * <div class=\"alert alert-warning\">\n * **Note:** The template instance and the link instance may be different objects if the template has\n * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that\n * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration\n * should be done in a linking function rather than in a compile function.\n * </div>\n\n * <div class=\"alert alert-warning\">\n * **Note:** The compile function cannot handle directives that recursively use themselves in their\n * own templates or compile functions. Compiling these directives results in an infinite loop and\n * stack overflow errors.\n *\n * This can be avoided by manually using $compile in the postLink function to imperatively compile\n * a directive's template instead of relying on automatic template compilation via `template` or\n * `templateUrl` declaration or manual compilation inside the compile function.\n * </div>\n *\n * <div class=\"alert alert-danger\">\n * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it\n *   e.g. does not know about the right outer scope. Please use the transclude function that is passed\n *   to the link function instead.\n * </div>\n\n * A compile function can have a return value which can be either a function or an object.\n *\n * * returning a (post-link) function - is equivalent to registering the linking function via the\n *   `link` property of the config object when the compile function is empty.\n *\n * * returning an object with function(s) registered via `pre` and `post` properties - allows you to\n *   control when a linking function should be called during the linking phase. See info about\n *   pre-linking and post-linking functions below.\n *\n *\n * #### `link`\n * This property is used only if the `compile` property is not defined.\n *\n * ```js\n *   function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }\n * ```\n *\n * The link function is responsible for registering DOM listeners as well as updating the DOM. It is\n * executed after the template has been cloned. This is where most of the directive logic will be\n * put.\n *\n *   * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the\n *     directive for registering {@link ng.$rootScope.Scope#$watch watches}.\n *\n *   * `iElement` - instance element - The element where the directive is to be used. It is safe to\n *     manipulate the children of the element only in `postLink` function since the children have\n *     already been linked.\n *\n *   * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared\n *     between all directive linking functions.\n *\n *   * `controller` - the directive's required controller instance(s) - Instances are shared\n *     among all directives, which allows the directives to use the controllers as a communication\n *     channel. The exact value depends on the directive's `require` property:\n *       * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one\n *       * `string`: the controller instance\n *       * `array`: array of controller instances\n *\n *     If a required controller cannot be found, and it is optional, the instance is `null`,\n *     otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.\n *\n *     Note that you can also require the directive's own controller - it will be made available like\n *     any other controller.\n *\n *   * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.\n *     This is the same as the `$transclude` parameter of directive controllers,\n *     see {@link ng.$compile#-controller- the controller section for details}.\n *     `function([scope], cloneLinkingFn, futureParentElement)`.\n *\n * #### Pre-linking function\n *\n * Executed before the child elements are linked. Not safe to do DOM transformation since the\n * compiler linking function will fail to locate the correct elements for linking.\n *\n * #### Post-linking function\n *\n * Executed after the child elements are linked.\n *\n * Note that child elements that contain `templateUrl` directives will not have been compiled\n * and linked since they are waiting for their template to load asynchronously and their own\n * compilation and linking has been suspended until that occurs.\n *\n * It is safe to do DOM transformation in the post-linking function on elements that are not waiting\n * for their async templates to be resolved.\n *\n *\n * ### Transclusion\n *\n * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and\n * copying them to another part of the DOM, while maintaining their connection to the original AngularJS\n * scope from where they were taken.\n *\n * Transclusion is used (often with {@link ngTransclude}) to insert the\n * original contents of a directive's element into a specified place in the template of the directive.\n * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded\n * content has access to the properties on the scope from which it was taken, even if the directive\n * has isolated scope.\n * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.\n *\n * This makes it possible for the widget to have private state for its template, while the transcluded\n * content has access to its originating scope.\n *\n * <div class=\"alert alert-warning\">\n * **Note:** When testing an element transclude directive you must not place the directive at the root of the\n * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives\n * Testing Transclusion Directives}.\n * </div>\n *\n * There are three kinds of transclusion depending upon whether you want to transclude just the contents of the\n * directive's element, the entire element or multiple parts of the element contents:\n *\n * * `true` - transclude the content (i.e. the child nodes) of the directive's element.\n * * `'element'` - transclude the whole of the directive's element including any directives on this\n *   element that defined at a lower priority than this directive. When used, the `template`\n *   property is ignored.\n * * **`{...}` (an object hash):** - map elements of the content onto transclusion \"slots\" in the template.\n *\n * **Mult-slot transclusion** is declared by providing an object for the `transclude` property.\n *\n * This object is a map where the keys are the name of the slot to fill and the value is an element selector\n * used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`)\n * and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc).\n *\n * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}\n *\n * If the element selector is prefixed with a `?` then that slot is optional.\n *\n * For example, the transclude object `{ slotA: '?myCustomElement' }` maps `<my-custom-element>` elements to\n * the `slotA` slot, which can be accessed via the `$transclude` function or via the {@link ngTransclude} directive.\n *\n * Slots that are not marked as optional (`?`) will trigger a compile time error if there are no matching elements\n * in the transclude content. If you wish to know if an optional slot was filled with content, then you can call\n * `$transclude.isSlotFilled(slotName)` on the transclude function passed to the directive's link function and\n * injectable into the directive's controller.\n *\n *\n * #### Transclusion Functions\n *\n * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion\n * function** to the directive's `link` function and `controller`. This transclusion function is a special\n * **linking function** that will return the compiled contents linked to a new transclusion scope.\n *\n * <div class=\"alert alert-info\">\n * If you are just using {@link ngTransclude} then you don't need to worry about this function, since\n * ngTransclude will deal with it for us.\n * </div>\n *\n * If you want to manually control the insertion and removal of the transcluded content in your directive\n * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery\n * object that contains the compiled DOM, which is linked to the correct transclusion scope.\n *\n * When you call a transclusion function you can pass in a **clone attach function**. This function accepts\n * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded\n * content and the `scope` is the newly created transclusion scope, which the clone will be linked to.\n *\n * <div class=\"alert alert-info\">\n * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a transclude function\n * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.\n * </div>\n *\n * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone\n * attach function**:\n *\n * ```js\n * var transcludedContent, transclusionScope;\n *\n * $transclude(function(clone, scope) {\n *   element.append(clone);\n *   transcludedContent = clone;\n *   transclusionScope = scope;\n * });\n * ```\n *\n * Later, if you want to remove the transcluded content from your DOM then you should also destroy the\n * associated transclusion scope:\n *\n * ```js\n * transcludedContent.remove();\n * transclusionScope.$destroy();\n * ```\n *\n * <div class=\"alert alert-info\">\n * **Best Practice**: if you intend to add and remove transcluded content manually in your directive\n * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),\n * then you are also responsible for calling `$destroy` on the transclusion scope.\n * </div>\n *\n * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}\n * automatically destroy their transcluded clones as necessary so you do not need to worry about this if\n * you are simply using {@link ngTransclude} to inject the transclusion into your directive.\n *\n *\n * #### Transclusion Scopes\n *\n * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion\n * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed\n * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it\n * was taken.\n *\n * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look\n * like this:\n *\n * ```html\n * <div ng-app>\n *   <div isolate>\n *     <div transclusion>\n *     </div>\n *   </div>\n * </div>\n * ```\n *\n * The `$parent` scope hierarchy will look like this:\n *\n   ```\n   - $rootScope\n     - isolate\n       - transclusion\n   ```\n *\n * but the scopes will inherit prototypically from different scopes to their `$parent`.\n *\n   ```\n   - $rootScope\n     - transclusion\n   - isolate\n   ```\n *\n *\n * ### Attributes\n *\n * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the\n * `link()` or `compile()` functions. It has a variety of uses.\n *\n * * *Accessing normalized attribute names:* Directives like 'ngBind' can be expressed in many ways:\n *   'ng:bind', `data-ng-bind`, or 'x-ng-bind'. The attributes object allows for normalized access\n *   to the attributes.\n *\n * * *Directive inter-communication:* All directives share the same instance of the attributes\n *   object which allows the directives to use the attributes object as inter directive\n *   communication.\n *\n * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object\n *   allowing other directives to read the interpolated value.\n *\n * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes\n *   that contain interpolation (e.g. `src=\"{{bar}}\"`). Not only is this very efficient but it's also\n *   the only way to easily get the actual value because during the linking phase the interpolation\n *   hasn't been evaluated yet and so the value is at this time set to `undefined`.\n *\n * ```js\n * function linkingFn(scope, elm, attrs, ctrl) {\n *   // get the attribute value\n *   console.log(attrs.ngModel);\n *\n *   // change the attribute\n *   attrs.$set('ngModel', 'new value');\n *\n *   // observe changes to interpolated attribute\n *   attrs.$observe('ngModel', function(value) {\n *     console.log('ngModel has changed value to ' + value);\n *   });\n * }\n * ```\n *\n * ## Example\n *\n * <div class=\"alert alert-warning\">\n * **Note**: Typically directives are registered with `module.directive`. The example below is\n * to illustrate how `$compile` works.\n * </div>\n *\n <example module=\"compileExample\" name=\"compile\">\n   <file name=\"index.html\">\n    <script>\n      angular.module('compileExample', [], function($compileProvider) {\n        // configure new 'compile' directive by passing a directive\n        // factory function. The factory function injects the '$compile'\n        $compileProvider.directive('compile', function($compile) {\n          // directive factory creates a link function\n          return function(scope, element, attrs) {\n            scope.$watch(\n              function(scope) {\n                 // watch the 'compile' expression for changes\n                return scope.$eval(attrs.compile);\n              },\n              function(value) {\n                // when the 'compile' expression changes\n                // assign it into the current DOM\n                element.html(value);\n\n                // compile the new DOM and link it to the current\n                // scope.\n                // NOTE: we only compile .childNodes so that\n                // we don't get into infinite loop compiling ourselves\n                $compile(element.contents())(scope);\n              }\n            );\n          };\n        });\n      })\n      .controller('GreeterController', ['$scope', function($scope) {\n        $scope.name = 'Angular';\n        $scope.html = 'Hello {{name}}';\n      }]);\n    </script>\n    <div ng-controller=\"GreeterController\">\n      <input ng-model=\"name\"> <br/>\n      <textarea ng-model=\"html\"></textarea> <br/>\n      <div compile=\"html\"></div>\n    </div>\n   </file>\n   <file name=\"protractor.js\" type=\"protractor\">\n     it('should auto compile', function() {\n       var textarea = $('textarea');\n       var output = $('div[compile]');\n       // The initial state reads 'Hello Angular'.\n       expect(output.getText()).toBe('Hello Angular');\n       textarea.clear();\n       textarea.sendKeys('{{name}}!');\n       expect(output.getText()).toBe('Angular!');\n     });\n   </file>\n </example>\n\n *\n *\n * @param {string|DOMElement} element Element or HTML string to compile into a template function.\n * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.\n *\n * <div class=\"alert alert-danger\">\n * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it\n *   e.g. will not use the right outer scope. Please pass the transclude function as a\n *   `parentBoundTranscludeFn` to the link function instead.\n * </div>\n *\n * @param {number} maxPriority only apply directives lower than given priority (Only effects the\n *                 root element(s), not their children)\n * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template\n * (a DOM element/tree) to a scope. Where:\n *\n *  * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.\n *  * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the\n *  `template` and call the `cloneAttachFn` function allowing the caller to attach the\n *  cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is\n *  called as: <br/> `cloneAttachFn(clonedElement, scope)` where:\n *\n *      * `clonedElement` - is a clone of the original `element` passed into the compiler.\n *      * `scope` - is the current scope with which the linking function is working with.\n *\n *  * `options` - An optional object hash with linking options. If `options` is provided, then the following\n *  keys may be used to control linking behavior:\n *\n *      * `parentBoundTranscludeFn` - the transclude function made available to\n *        directives; if given, it will be passed through to the link functions of\n *        directives found in `element` during compilation.\n *      * `transcludeControllers` - an object hash with keys that map controller names\n *        to a hash with the key `instance`, which maps to the controller instance;\n *        if given, it will make the controllers available to directives on the compileNode:\n *        ```\n *        {\n *          parent: {\n *            instance: parentControllerInstance\n *          }\n *        }\n *        ```\n *      * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add\n *        the cloned elements; only needed for transcludes that are allowed to contain non html\n *        elements (e.g. SVG elements). See also the directive.controller property.\n *\n * Calling the linking function returns the element of the template. It is either the original\n * element passed in, or the clone of the element if the `cloneAttachFn` is provided.\n *\n * After linking the view is not updated until after a call to $digest which typically is done by\n * Angular automatically.\n *\n * If you need access to the bound view, there are two ways to do it:\n *\n * - If you are not asking the linking function to clone the template, create the DOM element(s)\n *   before you send them to the compiler and keep this reference around.\n *   ```js\n *     var element = $compile('<p>{{total}}</p>')(scope);\n *   ```\n *\n * - if on the other hand, you need the element to be cloned, the view reference from the original\n *   example would not point to the clone, but rather to the original template that was cloned. In\n *   this case, you can access the clone via the cloneAttachFn:\n *   ```js\n *     var templateElement = angular.element('<p>{{total}}</p>'),\n *         scope = ....;\n *\n *     var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {\n *       //attach the clone to DOM document at the right place\n *     });\n *\n *     //now we have reference to the cloned DOM via `clonedElement`\n *   ```\n *\n *\n * For information on how the compiler works, see the\n * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.\n *\n * @knownIssue\n *\n * ### Double Compilation\n *\n   Double compilation occurs when an already compiled part of the DOM gets\n   compiled again. This is an undesired effect and can lead to misbehaving directives, performance issues,\n   and memory leaks. Refer to the Compiler Guide {@link guide/compiler#double-compilation-and-how-to-avoid-it\n   section on double compilation} for an in-depth explanation and ways to avoid it.\n *\n */\n\nvar $compileMinErr = minErr('$compile');\n\nfunction UNINITIALIZED_VALUE() {}\nvar _UNINITIALIZED_VALUE = new UNINITIALIZED_VALUE();\n\n/**\n * @ngdoc provider\n * @name $compileProvider\n *\n * @description\n */\n$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];\n/** @this */\nfunction $CompileProvider($provide, $$sanitizeUriProvider) {\n  var hasDirectives = {},\n      Suffix = 'Directive',\n      COMMENT_DIRECTIVE_REGEXP = /^\\s*directive:\\s*([\\w-]+)\\s+(.*)$/,\n      CLASS_DIRECTIVE_REGEXP = /(([\\w-]+)(?::([^;]+))?;?)/,\n      ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),\n      REQUIRE_PREFIX_REGEXP = /^(?:(\\^\\^?)?(\\?)?(\\^\\^?)?)?/;\n\n  // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes\n  // The assumption is that future DOM event attribute names will begin with\n  // 'on' and be composed of only English letters.\n  var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;\n  var bindingCache = createMap();\n\n  function parseIsolateBindings(scope, directiveName, isController) {\n    var LOCAL_REGEXP = /^\\s*([@&<]|=(\\*?))(\\??)\\s*(\\w*)\\s*$/;\n\n    var bindings = createMap();\n\n    forEach(scope, function(definition, scopeName) {\n      if (definition in bindingCache) {\n        bindings[scopeName] = bindingCache[definition];\n        return;\n      }\n      var match = definition.match(LOCAL_REGEXP);\n\n      if (!match) {\n        throw $compileMinErr('iscp',\n            'Invalid {3} for directive \\'{0}\\'.' +\n            ' Definition: {... {1}: \\'{2}\\' ...}',\n            directiveName, scopeName, definition,\n            (isController ? 'controller bindings definition' :\n            'isolate scope definition'));\n      }\n\n      bindings[scopeName] = {\n        mode: match[1][0],\n        collection: match[2] === '*',\n        optional: match[3] === '?',\n        attrName: match[4] || scopeName\n      };\n      if (match[4]) {\n        bindingCache[definition] = bindings[scopeName];\n      }\n    });\n\n    return bindings;\n  }\n\n  function parseDirectiveBindings(directive, directiveName) {\n    var bindings = {\n      isolateScope: null,\n      bindToController: null\n    };\n    if (isObject(directive.scope)) {\n      if (directive.bindToController === true) {\n        bindings.bindToController = parseIsolateBindings(directive.scope,\n                                                         directiveName, true);\n        bindings.isolateScope = {};\n      } else {\n        bindings.isolateScope = parseIsolateBindings(directive.scope,\n                                                     directiveName, false);\n      }\n    }\n    if (isObject(directive.bindToController)) {\n      bindings.bindToController =\n          parseIsolateBindings(directive.bindToController, directiveName, true);\n    }\n    if (bindings.bindToController && !directive.controller) {\n      // There is no controller\n      throw $compileMinErr('noctrl',\n            'Cannot bind to controller without directive \\'{0}\\'s controller.',\n            directiveName);\n    }\n    return bindings;\n  }\n\n  function assertValidDirectiveName(name) {\n    var letter = name.charAt(0);\n    if (!letter || letter !== lowercase(letter)) {\n      throw $compileMinErr('baddir', 'Directive/Component name \\'{0}\\' is invalid. The first character must be a lowercase letter', name);\n    }\n    if (name !== name.trim()) {\n      throw $compileMinErr('baddir',\n            'Directive/Component name \\'{0}\\' is invalid. The name should not contain leading or trailing whitespaces',\n            name);\n    }\n  }\n\n  function getDirectiveRequire(directive) {\n    var require = directive.require || (directive.controller && directive.name);\n\n    if (!isArray(require) && isObject(require)) {\n      forEach(require, function(value, key) {\n        var match = value.match(REQUIRE_PREFIX_REGEXP);\n        var name = value.substring(match[0].length);\n        if (!name) require[key] = match[0] + key;\n      });\n    }\n\n    return require;\n  }\n\n  function getDirectiveRestrict(restrict, name) {\n    if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {\n      throw $compileMinErr('badrestrict',\n          'Restrict property \\'{0}\\' of directive \\'{1}\\' is invalid',\n          restrict,\n          name);\n    }\n\n    return restrict || 'EA';\n  }\n\n  /**\n   * @ngdoc method\n   * @name $compileProvider#directive\n   * @kind function\n   *\n   * @description\n   * Register a new directive with the compiler.\n   *\n   * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which\n   *    will match as <code>ng-bind</code>), or an object map of directives where the keys are the\n   *    names and the values are the factories.\n   * @param {Function|Array} directiveFactory An injectable directive factory function. See the\n   *    {@link guide/directive directive guide} and the {@link $compile compile API} for more info.\n   * @returns {ng.$compileProvider} Self for chaining.\n   */\n  this.directive = function registerDirective(name, directiveFactory) {\n    assertArg(name, 'name');\n    assertNotHasOwnProperty(name, 'directive');\n    if (isString(name)) {\n      assertValidDirectiveName(name);\n      assertArg(directiveFactory, 'directiveFactory');\n      if (!hasDirectives.hasOwnProperty(name)) {\n        hasDirectives[name] = [];\n        $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',\n          function($injector, $exceptionHandler) {\n            var directives = [];\n            forEach(hasDirectives[name], function(directiveFactory, index) {\n              try {\n                var directive = $injector.invoke(directiveFactory);\n                if (isFunction(directive)) {\n                  directive = { compile: valueFn(directive) };\n                } else if (!directive.compile && directive.link) {\n                  directive.compile = valueFn(directive.link);\n                }\n                directive.priority = directive.priority || 0;\n                directive.index = index;\n                directive.name = directive.name || name;\n                directive.require = getDirectiveRequire(directive);\n                directive.restrict = getDirectiveRestrict(directive.restrict, name);\n                directive.$$moduleName = directiveFactory.$$moduleName;\n                directives.push(directive);\n              } catch (e) {\n                $exceptionHandler(e);\n              }\n            });\n            return directives;\n          }]);\n      }\n      hasDirectives[name].push(directiveFactory);\n    } else {\n      forEach(name, reverseParams(registerDirective));\n    }\n    return this;\n  };\n\n  /**\n   * @ngdoc method\n   * @name $compileProvider#component\n   * @module ng\n   * @param {string} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`)\n   * @param {Object} options Component definition object (a simplified\n   *    {@link ng.$compile#directive-definition-object directive definition object}),\n   *    with the following properties (all optional):\n   *\n   *    - `controller` – `{(string|function()=}` – controller constructor function that should be\n   *      associated with newly created scope or the name of a {@link ng.$compile#-controller-\n   *      registered controller} if passed as a string. An empty `noop` function by default.\n   *    - `controllerAs` – `{string=}` – identifier name for to reference the controller in the component's scope.\n   *      If present, the controller will be published to scope under the `controllerAs` name.\n   *      If not present, this will default to be `$ctrl`.\n   *    - `template` – `{string=|function()=}` – html template as a string or a function that\n   *      returns an html template as a string which should be used as the contents of this component.\n   *      Empty string by default.\n   *\n   *      If `template` is a function, then it is {@link auto.$injector#invoke injected} with\n   *      the following locals:\n   *\n   *      - `$element` - Current element\n   *      - `$attrs` - Current attributes object for the element\n   *\n   *    - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html\n   *      template that should be used  as the contents of this component.\n   *\n   *      If `templateUrl` is a function, then it is {@link auto.$injector#invoke injected} with\n   *      the following locals:\n   *\n   *      - `$element` - Current element\n   *      - `$attrs` - Current attributes object for the element\n   *\n   *    - `bindings` – `{object=}` – defines bindings between DOM attributes and component properties.\n   *      Component properties are always bound to the component controller and not to the scope.\n   *      See {@link ng.$compile#-bindtocontroller- `bindToController`}.\n   *    - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.\n   *      Disabled by default.\n   *    - `require` - `{Object<string, string>=}` - requires the controllers of other directives and binds them to\n   *      this component's controller. The object keys specify the property names under which the required\n   *      controllers (object values) will be bound. See {@link ng.$compile#-require- `require`}.\n   *    - `$...` – additional properties to attach to the directive factory function and the controller\n   *      constructor function. (This is used by the component router to annotate)\n   *\n   * @returns {ng.$compileProvider} the compile provider itself, for chaining of function calls.\n   * @description\n   * Register a **component definition** with the compiler. This is a shorthand for registering a special\n   * type of directive, which represents a self-contained UI component in your application. Such components\n   * are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).\n   *\n   * Component definitions are very simple and do not require as much configuration as defining general\n   * directives. Component definitions usually consist only of a template and a controller backing it.\n   *\n   * In order to make the definition easier, components enforce best practices like use of `controllerAs`,\n   * `bindToController`. They always have **isolate scope** and are restricted to elements.\n   *\n   * Here are a few examples of how you would usually define components:\n   *\n   * ```js\n   *   var myMod = angular.module(...);\n   *   myMod.component('myComp', {\n   *     template: '<div>My name is {{$ctrl.name}}</div>',\n   *     controller: function() {\n   *       this.name = 'shahar';\n   *     }\n   *   });\n   *\n   *   myMod.component('myComp', {\n   *     template: '<div>My name is {{$ctrl.name}}</div>',\n   *     bindings: {name: '@'}\n   *   });\n   *\n   *   myMod.component('myComp', {\n   *     templateUrl: 'views/my-comp.html',\n   *     controller: 'MyCtrl',\n   *     controllerAs: 'ctrl',\n   *     bindings: {name: '@'}\n   *   });\n   *\n   * ```\n   * For more examples, and an in-depth guide, see the {@link guide/component component guide}.\n   *\n   * <br />\n   * See also {@link ng.$compileProvider#directive $compileProvider.directive()}.\n   */\n  this.component = function registerComponent(name, options) {\n    var controller = options.controller || function() {};\n\n    function factory($injector) {\n      function makeInjectable(fn) {\n        if (isFunction(fn) || isArray(fn)) {\n          return /** @this */ function(tElement, tAttrs) {\n            return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});\n          };\n        } else {\n          return fn;\n        }\n      }\n\n      var template = (!options.template && !options.templateUrl ? '' : options.template);\n      var ddo = {\n        controller: controller,\n        controllerAs: identifierForController(options.controller) || options.controllerAs || '$ctrl',\n        template: makeInjectable(template),\n        templateUrl: makeInjectable(options.templateUrl),\n        transclude: options.transclude,\n        scope: {},\n        bindToController: options.bindings || {},\n        restrict: 'E',\n        require: options.require\n      };\n\n      // Copy annotations (starting with $) over to the DDO\n      forEach(options, function(val, key) {\n        if (key.charAt(0) === '$') ddo[key] = val;\n      });\n\n      return ddo;\n    }\n\n    // TODO(pete) remove the following `forEach` before we release 1.6.0\n    // The component-router@0.2.0 looks for the annotations on the controller constructor\n    // Nothing in Angular looks for annotations on the factory function but we can't remove\n    // it from 1.5.x yet.\n\n    // Copy any annotation properties (starting with $) over to the factory and controller constructor functions\n    // These could be used by libraries such as the new component router\n    forEach(options, function(val, key) {\n      if (key.charAt(0) === '$') {\n        factory[key] = val;\n        // Don't try to copy over annotations to named controller\n        if (isFunction(controller)) controller[key] = val;\n      }\n    });\n\n    factory.$inject = ['$injector'];\n\n    return this.directive(name, factory);\n  };\n\n\n  /**\n   * @ngdoc method\n   * @name $compileProvider#aHrefSanitizationWhitelist\n   * @kind function\n   *\n   * @description\n   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n   * urls during a[href] sanitization.\n   *\n   * The sanitization is a security measure aimed at preventing XSS attacks via html links.\n   *\n   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n   *\n   * @param {RegExp=} regexp New regexp to whitelist urls with.\n   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n   *    chaining otherwise.\n   */\n  this.aHrefSanitizationWhitelist = function(regexp) {\n    if (isDefined(regexp)) {\n      $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);\n      return this;\n    } else {\n      return $$sanitizeUriProvider.aHrefSanitizationWhitelist();\n    }\n  };\n\n\n  /**\n   * @ngdoc method\n   * @name $compileProvider#imgSrcSanitizationWhitelist\n   * @kind function\n   *\n   * @description\n   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n   * urls during img[src] sanitization.\n   *\n   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n   *\n   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n   *\n   * @param {RegExp=} regexp New regexp to whitelist urls with.\n   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n   *    chaining otherwise.\n   */\n  this.imgSrcSanitizationWhitelist = function(regexp) {\n    if (isDefined(regexp)) {\n      $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);\n      return this;\n    } else {\n      return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();\n    }\n  };\n\n  /**\n   * @ngdoc method\n   * @name  $compileProvider#debugInfoEnabled\n   *\n   * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the\n   * current debugInfoEnabled state\n   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n   *\n   * @kind function\n   *\n   * @description\n   * Call this method to enable/disable various debug runtime information in the compiler such as adding\n   * binding information and a reference to the current scope on to DOM elements.\n   * If enabled, the compiler will add the following to DOM elements that have been bound to the scope\n   * * `ng-binding` CSS class\n   * * `$binding` data property containing an array of the binding expressions\n   *\n   * You may want to disable this in production for a significant performance boost. See\n   * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.\n   *\n   * The default value is true.\n   */\n  var debugInfoEnabled = true;\n  this.debugInfoEnabled = function(enabled) {\n    if (isDefined(enabled)) {\n      debugInfoEnabled = enabled;\n      return this;\n    }\n    return debugInfoEnabled;\n  };\n\n  /**\n   * @ngdoc method\n   * @name  $compileProvider#preAssignBindingsEnabled\n   *\n   * @param {boolean=} enabled update the preAssignBindingsEnabled state if provided, otherwise just return the\n   * current preAssignBindingsEnabled state\n   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n   *\n   * @kind function\n   *\n   * @description\n   * Call this method to enable/disable whether directive controllers are assigned bindings before\n   * calling the controller's constructor.\n   * If enabled (true), the compiler assigns the value of each of the bindings to the\n   * properties of the controller object before the constructor of this object is called.\n   *\n   * If disabled (false), the compiler calls the constructor first before assigning bindings.\n   *\n   * The default value is true in Angular 1.5.x but will switch to false in Angular 1.6.x.\n   */\n  var preAssignBindingsEnabled = false;\n  this.preAssignBindingsEnabled = function(enabled) {\n    if (isDefined(enabled)) {\n      preAssignBindingsEnabled = enabled;\n      return this;\n    }\n    return preAssignBindingsEnabled;\n  };\n\n\n  var TTL = 10;\n  /**\n   * @ngdoc method\n   * @name $compileProvider#onChangesTtl\n   * @description\n   *\n   * Sets the number of times `$onChanges` hooks can trigger new changes before giving up and\n   * assuming that the model is unstable.\n   *\n   * The current default is 10 iterations.\n   *\n   * In complex applications it's possible that dependencies between `$onChanges` hooks and bindings will result\n   * in several iterations of calls to these hooks. However if an application needs more than the default 10\n   * iterations to stabilize then you should investigate what is causing the model to continuously change during\n   * the `$onChanges` hook execution.\n   *\n   * Increasing the TTL could have performance implications, so you should not change it without proper justification.\n   *\n   * @param {number} limit The number of `$onChanges` hook iterations.\n   * @returns {number|object} the current limit (or `this` if called as a setter for chaining)\n   */\n  this.onChangesTtl = function(value) {\n    if (arguments.length) {\n      TTL = value;\n      return this;\n    }\n    return TTL;\n  };\n\n  var commentDirectivesEnabledConfig = true;\n  /**\n   * @ngdoc method\n   * @name $compileProvider#commentDirectivesEnabled\n   * @description\n   *\n   * It indicates to the compiler\n   * whether or not directives on comments should be compiled.\n   * Defaults to `true`.\n   *\n   * Calling this function with false disables the compilation of directives\n   * on comments for the whole application.\n   * This results in a compilation performance gain,\n   * as the compiler doesn't have to check comments when looking for directives.\n   * This should however only be used if you are sure that no comment directives are used in\n   * the application (including any 3rd party directives).\n   *\n   * @param {boolean} enabled `false` if the compiler may ignore directives on comments\n   * @returns {boolean|object} the current value (or `this` if called as a setter for chaining)\n   */\n  this.commentDirectivesEnabled = function(value) {\n    if (arguments.length) {\n      commentDirectivesEnabledConfig = value;\n      return this;\n    }\n    return commentDirectivesEnabledConfig;\n  };\n\n\n  var cssClassDirectivesEnabledConfig = true;\n  /**\n   * @ngdoc method\n   * @name $compileProvider#cssClassDirectivesEnabled\n   * @description\n   *\n   * It indicates to the compiler\n   * whether or not directives on element classes should be compiled.\n   * Defaults to `true`.\n   *\n   * Calling this function with false disables the compilation of directives\n   * on element classes for the whole application.\n   * This results in a compilation performance gain,\n   * as the compiler doesn't have to check element classes when looking for directives.\n   * This should however only be used if you are sure that no class directives are used in\n   * the application (including any 3rd party directives).\n   *\n   * @param {boolean} enabled `false` if the compiler may ignore directives on element classes\n   * @returns {boolean|object} the current value (or `this` if called as a setter for chaining)\n   */\n  this.cssClassDirectivesEnabled = function(value) {\n    if (arguments.length) {\n      cssClassDirectivesEnabledConfig = value;\n      return this;\n    }\n    return cssClassDirectivesEnabledConfig;\n  };\n\n  this.$get = [\n            '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',\n            '$controller', '$rootScope', '$sce', '$animate', '$$sanitizeUri',\n    function($injector,   $interpolate,   $exceptionHandler,   $templateRequest,   $parse,\n             $controller,   $rootScope,   $sce,   $animate,   $$sanitizeUri) {\n\n    var SIMPLE_ATTR_NAME = /^\\w/;\n    var specialAttrHolder = window.document.createElement('div');\n\n\n    var commentDirectivesEnabled = commentDirectivesEnabledConfig;\n    var cssClassDirectivesEnabled = cssClassDirectivesEnabledConfig;\n\n\n    var onChangesTtl = TTL;\n    // The onChanges hooks should all be run together in a single digest\n    // When changes occur, the call to trigger their hooks will be added to this queue\n    var onChangesQueue;\n\n    // This function is called in a $$postDigest to trigger all the onChanges hooks in a single digest\n    function flushOnChangesQueue() {\n      try {\n        if (!(--onChangesTtl)) {\n          // We have hit the TTL limit so reset everything\n          onChangesQueue = undefined;\n          throw $compileMinErr('infchng', '{0} $onChanges() iterations reached. Aborting!\\n', TTL);\n        }\n        // We must run this hook in an apply since the $$postDigest runs outside apply\n        $rootScope.$apply(function() {\n          var errors = [];\n          for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) {\n            try {\n              onChangesQueue[i]();\n            } catch (e) {\n              errors.push(e);\n            }\n          }\n          // Reset the queue to trigger a new schedule next time there is a change\n          onChangesQueue = undefined;\n          if (errors.length) {\n            throw errors;\n          }\n        });\n      } finally {\n        onChangesTtl++;\n      }\n    }\n\n\n    function Attributes(element, attributesToCopy) {\n      if (attributesToCopy) {\n        var keys = Object.keys(attributesToCopy);\n        var i, l, key;\n\n        for (i = 0, l = keys.length; i < l; i++) {\n          key = keys[i];\n          this[key] = attributesToCopy[key];\n        }\n      } else {\n        this.$attr = {};\n      }\n\n      this.$$element = element;\n    }\n\n    Attributes.prototype = {\n      /**\n       * @ngdoc method\n       * @name $compile.directive.Attributes#$normalize\n       * @kind function\n       *\n       * @description\n       * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or\n       * `data-`) to its normalized, camelCase form.\n       *\n       * Also there is special case for Moz prefix starting with upper case letter.\n       *\n       * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}\n       *\n       * @param {string} name Name to normalize\n       */\n      $normalize: directiveNormalize,\n\n\n      /**\n       * @ngdoc method\n       * @name $compile.directive.Attributes#$addClass\n       * @kind function\n       *\n       * @description\n       * Adds the CSS class value specified by the classVal parameter to the element. If animations\n       * are enabled then an animation will be triggered for the class addition.\n       *\n       * @param {string} classVal The className value that will be added to the element\n       */\n      $addClass: function(classVal) {\n        if (classVal && classVal.length > 0) {\n          $animate.addClass(this.$$element, classVal);\n        }\n      },\n\n      /**\n       * @ngdoc method\n       * @name $compile.directive.Attributes#$removeClass\n       * @kind function\n       *\n       * @description\n       * Removes the CSS class value specified by the classVal parameter from the element. If\n       * animations are enabled then an animation will be triggered for the class removal.\n       *\n       * @param {string} classVal The className value that will be removed from the element\n       */\n      $removeClass: function(classVal) {\n        if (classVal && classVal.length > 0) {\n          $animate.removeClass(this.$$element, classVal);\n        }\n      },\n\n      /**\n       * @ngdoc method\n       * @name $compile.directive.Attributes#$updateClass\n       * @kind function\n       *\n       * @description\n       * Adds and removes the appropriate CSS class values to the element based on the difference\n       * between the new and old CSS class values (specified as newClasses and oldClasses).\n       *\n       * @param {string} newClasses The current CSS className value\n       * @param {string} oldClasses The former CSS className value\n       */\n      $updateClass: function(newClasses, oldClasses) {\n        var toAdd = tokenDifference(newClasses, oldClasses);\n        if (toAdd && toAdd.length) {\n          $animate.addClass(this.$$element, toAdd);\n        }\n\n        var toRemove = tokenDifference(oldClasses, newClasses);\n        if (toRemove && toRemove.length) {\n          $animate.removeClass(this.$$element, toRemove);\n        }\n      },\n\n      /**\n       * Set a normalized attribute on the element in a way such that all directives\n       * can share the attribute. This function properly handles boolean attributes.\n       * @param {string} key Normalized key. (ie ngAttribute)\n       * @param {string|boolean} value The value to set. If `null` attribute will be deleted.\n       * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.\n       *     Defaults to true.\n       * @param {string=} attrName Optional none normalized name. Defaults to key.\n       */\n      $set: function(key, value, writeAttr, attrName) {\n        // TODO: decide whether or not to throw an error if \"class\"\n        //is set through this function since it may cause $updateClass to\n        //become unstable.\n\n        var node = this.$$element[0],\n            booleanKey = getBooleanAttrName(node, key),\n            aliasedKey = getAliasedAttrName(key),\n            observer = key,\n            nodeName;\n\n        if (booleanKey) {\n          this.$$element.prop(key, value);\n          attrName = booleanKey;\n        } else if (aliasedKey) {\n          this[aliasedKey] = value;\n          observer = aliasedKey;\n        }\n\n        this[key] = value;\n\n        // translate normalized key to actual key\n        if (attrName) {\n          this.$attr[key] = attrName;\n        } else {\n          attrName = this.$attr[key];\n          if (!attrName) {\n            this.$attr[key] = attrName = snake_case(key, '-');\n          }\n        }\n\n        nodeName = nodeName_(this.$$element);\n\n        if ((nodeName === 'a' && (key === 'href' || key === 'xlinkHref')) ||\n            (nodeName === 'img' && key === 'src')) {\n          // sanitize a[href] and img[src] values\n          this[key] = value = $$sanitizeUri(value, key === 'src');\n        } else if (nodeName === 'img' && key === 'srcset' && isDefined(value)) {\n          // sanitize img[srcset] values\n          var result = '';\n\n          // first check if there are spaces because it's not the same pattern\n          var trimmedSrcset = trim(value);\n          //                (   999x   ,|   999w   ,|   ,|,   )\n          var srcPattern = /(\\s+\\d+x\\s*,|\\s+\\d+w\\s*,|\\s+,|,\\s+)/;\n          var pattern = /\\s/.test(trimmedSrcset) ? srcPattern : /(,)/;\n\n          // split srcset into tuple of uri and descriptor except for the last item\n          var rawUris = trimmedSrcset.split(pattern);\n\n          // for each tuples\n          var nbrUrisWith2parts = Math.floor(rawUris.length / 2);\n          for (var i = 0; i < nbrUrisWith2parts; i++) {\n            var innerIdx = i * 2;\n            // sanitize the uri\n            result += $$sanitizeUri(trim(rawUris[innerIdx]), true);\n            // add the descriptor\n            result += (' ' + trim(rawUris[innerIdx + 1]));\n          }\n\n          // split the last item into uri and descriptor\n          var lastTuple = trim(rawUris[i * 2]).split(/\\s/);\n\n          // sanitize the last uri\n          result += $$sanitizeUri(trim(lastTuple[0]), true);\n\n          // and add the last descriptor if any\n          if (lastTuple.length === 2) {\n            result += (' ' + trim(lastTuple[1]));\n          }\n          this[key] = value = result;\n        }\n\n        if (writeAttr !== false) {\n          if (value === null || isUndefined(value)) {\n            this.$$element.removeAttr(attrName);\n          } else {\n            if (SIMPLE_ATTR_NAME.test(attrName)) {\n              this.$$element.attr(attrName, value);\n            } else {\n              setSpecialAttr(this.$$element[0], attrName, value);\n            }\n          }\n        }\n\n        // fire observers\n        var $$observers = this.$$observers;\n        if ($$observers) {\n          forEach($$observers[observer], function(fn) {\n            try {\n              fn(value);\n            } catch (e) {\n              $exceptionHandler(e);\n            }\n          });\n        }\n      },\n\n\n      /**\n       * @ngdoc method\n       * @name $compile.directive.Attributes#$observe\n       * @kind function\n       *\n       * @description\n       * Observes an interpolated attribute.\n       *\n       * The observer function will be invoked once during the next `$digest` following\n       * compilation. The observer is then invoked whenever the interpolated value\n       * changes.\n       *\n       * @param {string} key Normalized key. (ie ngAttribute) .\n       * @param {function(interpolatedValue)} fn Function that will be called whenever\n                the interpolated value of the attribute changes.\n       *        See the {@link guide/interpolation#how-text-and-attribute-bindings-work Interpolation\n       *        guide} for more info.\n       * @returns {function()} Returns a deregistration function for this observer.\n       */\n      $observe: function(key, fn) {\n        var attrs = this,\n            $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),\n            listeners = ($$observers[key] || ($$observers[key] = []));\n\n        listeners.push(fn);\n        $rootScope.$evalAsync(function() {\n          if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {\n            // no one registered attribute interpolation function, so lets call it manually\n            fn(attrs[key]);\n          }\n        });\n\n        return function() {\n          arrayRemove(listeners, fn);\n        };\n      }\n    };\n\n    function setSpecialAttr(element, attrName, value) {\n      // Attributes names that do not start with letters (such as `(click)`) cannot be set using `setAttribute`\n      // so we have to jump through some hoops to get such an attribute\n      // https://github.com/angular/angular.js/pull/13318\n      specialAttrHolder.innerHTML = '<span ' + attrName + '>';\n      var attributes = specialAttrHolder.firstChild.attributes;\n      var attribute = attributes[0];\n      // We have to remove the attribute from its container element before we can add it to the destination element\n      attributes.removeNamedItem(attribute.name);\n      attribute.value = value;\n      element.attributes.setNamedItem(attribute);\n    }\n\n    function safeAddClass($element, className) {\n      try {\n        $element.addClass(className);\n      } catch (e) {\n        // ignore, since it means that we are trying to set class on\n        // SVG element, where class name is read-only.\n      }\n    }\n\n\n    var startSymbol = $interpolate.startSymbol(),\n        endSymbol = $interpolate.endSymbol(),\n        denormalizeTemplate = (startSymbol === '{{' && endSymbol  === '}}')\n            ? identity\n            : function denormalizeTemplate(template) {\n              return template.replace(/\\{\\{/g, startSymbol).replace(/}}/g, endSymbol);\n        },\n        NG_ATTR_BINDING = /^ngAttr[A-Z]/;\n    var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;\n\n    compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {\n      var bindings = $element.data('$binding') || [];\n\n      if (isArray(binding)) {\n        bindings = bindings.concat(binding);\n      } else {\n        bindings.push(binding);\n      }\n\n      $element.data('$binding', bindings);\n    } : noop;\n\n    compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {\n      safeAddClass($element, 'ng-binding');\n    } : noop;\n\n    compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {\n      var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';\n      $element.data(dataName, scope);\n    } : noop;\n\n    compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {\n      safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');\n    } : noop;\n\n    compile.$$createComment = function(directiveName, comment) {\n      var content = '';\n      if (debugInfoEnabled) {\n        content = ' ' + (directiveName || '') + ': ';\n        if (comment) content += comment + ' ';\n      }\n      return window.document.createComment(content);\n    };\n\n    return compile;\n\n    //================================\n\n    function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,\n                        previousCompileContext) {\n      if (!($compileNodes instanceof jqLite)) {\n        // jquery always rewraps, whereas we need to preserve the original selector so that we can\n        // modify it.\n        $compileNodes = jqLite($compileNodes);\n      }\n      var compositeLinkFn =\n              compileNodes($compileNodes, transcludeFn, $compileNodes,\n                           maxPriority, ignoreDirective, previousCompileContext);\n      compile.$$addScopeClass($compileNodes);\n      var namespace = null;\n      return function publicLinkFn(scope, cloneConnectFn, options) {\n        if (!$compileNodes) {\n          throw $compileMinErr('multilink', 'This element has already been linked.');\n        }\n        assertArg(scope, 'scope');\n\n        if (previousCompileContext && previousCompileContext.needsNewScope) {\n          // A parent directive did a replace and a directive on this element asked\n          // for transclusion, which caused us to lose a layer of element on which\n          // we could hold the new transclusion scope, so we will create it manually\n          // here.\n          scope = scope.$parent.$new();\n        }\n\n        options = options || {};\n        var parentBoundTranscludeFn = options.parentBoundTranscludeFn,\n          transcludeControllers = options.transcludeControllers,\n          futureParentElement = options.futureParentElement;\n\n        // When `parentBoundTranscludeFn` is passed, it is a\n        // `controllersBoundTransclude` function (it was previously passed\n        // as `transclude` to directive.link) so we must unwrap it to get\n        // its `boundTranscludeFn`\n        if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {\n          parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;\n        }\n\n        if (!namespace) {\n          namespace = detectNamespaceForChildElements(futureParentElement);\n        }\n        var $linkNode;\n        if (namespace !== 'html') {\n          // When using a directive with replace:true and templateUrl the $compileNodes\n          // (or a child element inside of them)\n          // might change, so we need to recreate the namespace adapted compileNodes\n          // for call to the link function.\n          // Note: This will already clone the nodes...\n          $linkNode = jqLite(\n            wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html())\n          );\n        } else if (cloneConnectFn) {\n          // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart\n          // and sometimes changes the structure of the DOM.\n          $linkNode = JQLitePrototype.clone.call($compileNodes);\n        } else {\n          $linkNode = $compileNodes;\n        }\n\n        if (transcludeControllers) {\n          for (var controllerName in transcludeControllers) {\n            $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);\n          }\n        }\n\n        compile.$$addScopeInfo($linkNode, scope);\n\n        if (cloneConnectFn) cloneConnectFn($linkNode, scope);\n        if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);\n\n        if (!cloneConnectFn) {\n          $compileNodes = compositeLinkFn = null;\n        }\n        return $linkNode;\n      };\n    }\n\n    function detectNamespaceForChildElements(parentElement) {\n      // TODO: Make this detect MathML as well...\n      var node = parentElement && parentElement[0];\n      if (!node) {\n        return 'html';\n      } else {\n        return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';\n      }\n    }\n\n    /**\n     * Compile function matches each node in nodeList against the directives. Once all directives\n     * for a particular node are collected their compile functions are executed. The compile\n     * functions return values - the linking functions - are combined into a composite linking\n     * function, which is the a linking function for the node.\n     *\n     * @param {NodeList} nodeList an array of nodes or NodeList to compile\n     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n     *        scope argument is auto-generated to the new child of the transcluded parent scope.\n     * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then\n     *        the rootElement must be set the jqLite collection of the compile root. This is\n     *        needed so that the jqLite collection items can be replaced with widgets.\n     * @param {number=} maxPriority Max directive priority.\n     * @returns {Function} A composite linking function of all of the matched directives or null.\n     */\n    function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,\n                            previousCompileContext) {\n      var linkFns = [],\n          // `nodeList` can be either an element's `.childNodes` (live NodeList)\n          // or a jqLite/jQuery collection or an array\n          notLiveList = isArray(nodeList) || (nodeList instanceof jqLite),\n          attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;\n\n\n      for (var i = 0; i < nodeList.length; i++) {\n        attrs = new Attributes();\n\n        // Support: IE 11 only\n        // Workaround for #11781 and #14924\n        if (msie === 11) {\n          mergeConsecutiveTextNodes(nodeList, i, notLiveList);\n        }\n\n        // We must always refer to `nodeList[i]` hereafter,\n        // since the nodes can be replaced underneath us.\n        directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,\n                                        ignoreDirective);\n\n        nodeLinkFn = (directives.length)\n            ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,\n                                      null, [], [], previousCompileContext)\n            : null;\n\n        if (nodeLinkFn && nodeLinkFn.scope) {\n          compile.$$addScopeClass(attrs.$$element);\n        }\n\n        childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||\n                      !(childNodes = nodeList[i].childNodes) ||\n                      !childNodes.length)\n            ? null\n            : compileNodes(childNodes,\n                 nodeLinkFn ? (\n                  (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)\n                     && nodeLinkFn.transclude) : transcludeFn);\n\n        if (nodeLinkFn || childLinkFn) {\n          linkFns.push(i, nodeLinkFn, childLinkFn);\n          linkFnFound = true;\n          nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;\n        }\n\n        //use the previous context only for the first element in the virtual group\n        previousCompileContext = null;\n      }\n\n      // return a linking function if we have found anything, null otherwise\n      return linkFnFound ? compositeLinkFn : null;\n\n      function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {\n        var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;\n        var stableNodeList;\n\n\n        if (nodeLinkFnFound) {\n          // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our\n          // offsets don't get screwed up\n          var nodeListLength = nodeList.length;\n          stableNodeList = new Array(nodeListLength);\n\n          // create a sparse array by only copying the elements which have a linkFn\n          for (i = 0; i < linkFns.length; i += 3) {\n            idx = linkFns[i];\n            stableNodeList[idx] = nodeList[idx];\n          }\n        } else {\n          stableNodeList = nodeList;\n        }\n\n        for (i = 0, ii = linkFns.length; i < ii;) {\n          node = stableNodeList[linkFns[i++]];\n          nodeLinkFn = linkFns[i++];\n          childLinkFn = linkFns[i++];\n\n          if (nodeLinkFn) {\n            if (nodeLinkFn.scope) {\n              childScope = scope.$new();\n              compile.$$addScopeInfo(jqLite(node), childScope);\n            } else {\n              childScope = scope;\n            }\n\n            if (nodeLinkFn.transcludeOnThisElement) {\n              childBoundTranscludeFn = createBoundTranscludeFn(\n                  scope, nodeLinkFn.transclude, parentBoundTranscludeFn);\n\n            } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {\n              childBoundTranscludeFn = parentBoundTranscludeFn;\n\n            } else if (!parentBoundTranscludeFn && transcludeFn) {\n              childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);\n\n            } else {\n              childBoundTranscludeFn = null;\n            }\n\n            nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);\n\n          } else if (childLinkFn) {\n            childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);\n          }\n        }\n      }\n    }\n\n    function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) {\n      var node = nodeList[idx];\n      var parent = node.parentNode;\n      var sibling;\n\n      if (node.nodeType !== NODE_TYPE_TEXT) {\n        return;\n      }\n\n      while (true) {\n        sibling = parent ? node.nextSibling : nodeList[idx + 1];\n        if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) {\n          break;\n        }\n\n        node.nodeValue = node.nodeValue + sibling.nodeValue;\n\n        if (sibling.parentNode) {\n          sibling.parentNode.removeChild(sibling);\n        }\n        if (notLiveList && sibling === nodeList[idx + 1]) {\n          nodeList.splice(idx + 1, 1);\n        }\n      }\n    }\n\n    function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {\n      function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {\n\n        if (!transcludedScope) {\n          transcludedScope = scope.$new(false, containingScope);\n          transcludedScope.$$transcluded = true;\n        }\n\n        return transcludeFn(transcludedScope, cloneFn, {\n          parentBoundTranscludeFn: previousBoundTranscludeFn,\n          transcludeControllers: controllers,\n          futureParentElement: futureParentElement\n        });\n      }\n\n      // We need  to attach the transclusion slots onto the `boundTranscludeFn`\n      // so that they are available inside the `controllersBoundTransclude` function\n      var boundSlots = boundTranscludeFn.$$slots = createMap();\n      for (var slotName in transcludeFn.$$slots) {\n        if (transcludeFn.$$slots[slotName]) {\n          boundSlots[slotName] = createBoundTranscludeFn(scope, transcludeFn.$$slots[slotName], previousBoundTranscludeFn);\n        } else {\n          boundSlots[slotName] = null;\n        }\n      }\n\n      return boundTranscludeFn;\n    }\n\n    /**\n     * Looks for directives on the given node and adds them to the directive collection which is\n     * sorted.\n     *\n     * @param node Node to search.\n     * @param directives An array to which the directives are added to. This array is sorted before\n     *        the function returns.\n     * @param attrs The shared attrs object which is used to populate the normalized attributes.\n     * @param {number=} maxPriority Max directive priority.\n     */\n    function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {\n      var nodeType = node.nodeType,\n          attrsMap = attrs.$attr,\n          match,\n          nodeName,\n          className;\n\n      switch (nodeType) {\n        case NODE_TYPE_ELEMENT: /* Element */\n\n          nodeName = nodeName_(node);\n\n          // use the node name: <directive>\n          addDirective(directives,\n              directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective);\n\n          // iterate over the attributes\n          for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,\n                   j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {\n            var attrStartName = false;\n            var attrEndName = false;\n\n            attr = nAttrs[j];\n            name = attr.name;\n            value = attr.value;\n\n            // support ngAttr attribute binding\n            ngAttrName = directiveNormalize(name);\n            isNgAttr = NG_ATTR_BINDING.test(ngAttrName);\n            if (isNgAttr) {\n              name = name.replace(PREFIX_REGEXP, '')\n                .substr(8).replace(/_(.)/g, function(match, letter) {\n                  return letter.toUpperCase();\n                });\n            }\n\n            var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);\n            if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {\n              attrStartName = name;\n              attrEndName = name.substr(0, name.length - 5) + 'end';\n              name = name.substr(0, name.length - 6);\n            }\n\n            nName = directiveNormalize(name.toLowerCase());\n            attrsMap[nName] = name;\n            if (isNgAttr || !attrs.hasOwnProperty(nName)) {\n                attrs[nName] = value;\n                if (getBooleanAttrName(node, nName)) {\n                  attrs[nName] = true; // presence means true\n                }\n            }\n            addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);\n            addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,\n                          attrEndName);\n          }\n\n          if (nodeName === 'input' && node.getAttribute('type') === 'hidden') {\n            // Hidden input elements can have strange behaviour when navigating back to the page\n            // This tells the browser not to try to cache and reinstate previous values\n            node.setAttribute('autocomplete', 'off');\n          }\n\n          // use class as directive\n          if (!cssClassDirectivesEnabled) break;\n          className = node.className;\n          if (isObject(className)) {\n              // Maybe SVGAnimatedString\n              className = className.animVal;\n          }\n          if (isString(className) && className !== '') {\n            while ((match = CLASS_DIRECTIVE_REGEXP.exec(className))) {\n              nName = directiveNormalize(match[2]);\n              if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {\n                attrs[nName] = trim(match[3]);\n              }\n              className = className.substr(match.index + match[0].length);\n            }\n          }\n          break;\n        case NODE_TYPE_TEXT: /* Text Node */\n          addTextInterpolateDirective(directives, node.nodeValue);\n          break;\n        case NODE_TYPE_COMMENT: /* Comment */\n          if (!commentDirectivesEnabled) break;\n          collectCommentDirectives(node, directives, attrs, maxPriority, ignoreDirective);\n          break;\n      }\n\n      directives.sort(byPriority);\n      return directives;\n    }\n\n    function collectCommentDirectives(node, directives, attrs, maxPriority, ignoreDirective) {\n      // function created because of performance, try/catch disables\n      // the optimization of the whole function #14848\n      try {\n        var match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);\n        if (match) {\n          var nName = directiveNormalize(match[1]);\n          if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {\n            attrs[nName] = trim(match[2]);\n          }\n        }\n      } catch (e) {\n        // turns out that under some circumstances IE9 throws errors when one attempts to read\n        // comment's node value.\n        // Just ignore it and continue. (Can't seem to reproduce in test case.)\n      }\n    }\n\n    /**\n     * Given a node with a directive-start it collects all of the siblings until it finds\n     * directive-end.\n     * @param node\n     * @param attrStart\n     * @param attrEnd\n     * @returns {*}\n     */\n    function groupScan(node, attrStart, attrEnd) {\n      var nodes = [];\n      var depth = 0;\n      if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {\n        do {\n          if (!node) {\n            throw $compileMinErr('uterdir',\n                      'Unterminated attribute, found \\'{0}\\' but no matching \\'{1}\\' found.',\n                      attrStart, attrEnd);\n          }\n          if (node.nodeType === NODE_TYPE_ELEMENT) {\n            if (node.hasAttribute(attrStart)) depth++;\n            if (node.hasAttribute(attrEnd)) depth--;\n          }\n          nodes.push(node);\n          node = node.nextSibling;\n        } while (depth > 0);\n      } else {\n        nodes.push(node);\n      }\n\n      return jqLite(nodes);\n    }\n\n    /**\n     * Wrapper for linking function which converts normal linking function into a grouped\n     * linking function.\n     * @param linkFn\n     * @param attrStart\n     * @param attrEnd\n     * @returns {Function}\n     */\n    function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {\n      return function groupedElementsLink(scope, element, attrs, controllers, transcludeFn) {\n        element = groupScan(element[0], attrStart, attrEnd);\n        return linkFn(scope, element, attrs, controllers, transcludeFn);\n      };\n    }\n\n    /**\n     * A function generator that is used to support both eager and lazy compilation\n     * linking function.\n     * @param eager\n     * @param $compileNodes\n     * @param transcludeFn\n     * @param maxPriority\n     * @param ignoreDirective\n     * @param previousCompileContext\n     * @returns {Function}\n     */\n    function compilationGenerator(eager, $compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext) {\n      var compiled;\n\n      if (eager) {\n        return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);\n      }\n      return /** @this */ function lazyCompilation() {\n        if (!compiled) {\n          compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);\n\n          // Null out all of these references in order to make them eligible for garbage collection\n          // since this is a potentially long lived closure\n          $compileNodes = transcludeFn = previousCompileContext = null;\n        }\n        return compiled.apply(this, arguments);\n      };\n    }\n\n    /**\n     * Once the directives have been collected, their compile functions are executed. This method\n     * is responsible for inlining directive templates as well as terminating the application\n     * of the directives if the terminal directive has been reached.\n     *\n     * @param {Array} directives Array of collected directives to execute their compile function.\n     *        this needs to be pre-sorted by priority order.\n     * @param {Node} compileNode The raw DOM node to apply the compile functions to\n     * @param {Object} templateAttrs The shared attribute function\n     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n     *                                                  scope argument is auto-generated to the new\n     *                                                  child of the transcluded parent scope.\n     * @param {JQLite} jqCollection If we are working on the root of the compile tree then this\n     *                              argument has the root jqLite array so that we can replace nodes\n     *                              on it.\n     * @param {Object=} originalReplaceDirective An optional directive that will be ignored when\n     *                                           compiling the transclusion.\n     * @param {Array.<Function>} preLinkFns\n     * @param {Array.<Function>} postLinkFns\n     * @param {Object} previousCompileContext Context used for previous compilation of the current\n     *                                        node\n     * @returns {Function} linkFn\n     */\n    function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,\n                                   jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,\n                                   previousCompileContext) {\n      previousCompileContext = previousCompileContext || {};\n\n      var terminalPriority = -Number.MAX_VALUE,\n          newScopeDirective = previousCompileContext.newScopeDirective,\n          controllerDirectives = previousCompileContext.controllerDirectives,\n          newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,\n          templateDirective = previousCompileContext.templateDirective,\n          nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,\n          hasTranscludeDirective = false,\n          hasTemplate = false,\n          hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,\n          $compileNode = templateAttrs.$$element = jqLite(compileNode),\n          directive,\n          directiveName,\n          $template,\n          replaceDirective = originalReplaceDirective,\n          childTranscludeFn = transcludeFn,\n          linkFn,\n          didScanForMultipleTransclusion = false,\n          mightHaveMultipleTransclusionError = false,\n          directiveValue;\n\n      // executes all directives on the current element\n      for (var i = 0, ii = directives.length; i < ii; i++) {\n        directive = directives[i];\n        var attrStart = directive.$$start;\n        var attrEnd = directive.$$end;\n\n        // collect multiblock sections\n        if (attrStart) {\n          $compileNode = groupScan(compileNode, attrStart, attrEnd);\n        }\n        $template = undefined;\n\n        if (terminalPriority > directive.priority) {\n          break; // prevent further processing of directives\n        }\n\n        directiveValue = directive.scope;\n\n        if (directiveValue) {\n\n          // skip the check for directives with async templates, we'll check the derived sync\n          // directive when the template arrives\n          if (!directive.templateUrl) {\n            if (isObject(directiveValue)) {\n              // This directive is trying to add an isolated scope.\n              // Check that there is no scope of any kind already\n              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,\n                                directive, $compileNode);\n              newIsolateScopeDirective = directive;\n            } else {\n              // This directive is trying to add a child scope.\n              // Check that there is no isolated scope already\n              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,\n                                $compileNode);\n            }\n          }\n\n          newScopeDirective = newScopeDirective || directive;\n        }\n\n        directiveName = directive.name;\n\n        // If we encounter a condition that can result in transclusion on the directive,\n        // then scan ahead in the remaining directives for others that may cause a multiple\n        // transclusion error to be thrown during the compilation process.  If a matching directive\n        // is found, then we know that when we encounter a transcluded directive, we need to eagerly\n        // compile the `transclude` function rather than doing it lazily in order to throw\n        // exceptions at the correct time\n        if (!didScanForMultipleTransclusion && ((directive.replace && (directive.templateUrl || directive.template))\n            || (directive.transclude && !directive.$$tlb))) {\n                var candidateDirective;\n\n                for (var scanningIndex = i + 1; (candidateDirective = directives[scanningIndex++]);) {\n                    if ((candidateDirective.transclude && !candidateDirective.$$tlb)\n                        || (candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template))) {\n                        mightHaveMultipleTransclusionError = true;\n                        break;\n                    }\n                }\n\n                didScanForMultipleTransclusion = true;\n        }\n\n        if (!directive.templateUrl && directive.controller) {\n          controllerDirectives = controllerDirectives || createMap();\n          assertNoDuplicate('\\'' + directiveName + '\\' controller',\n              controllerDirectives[directiveName], directive, $compileNode);\n          controllerDirectives[directiveName] = directive;\n        }\n\n        directiveValue = directive.transclude;\n\n        if (directiveValue) {\n          hasTranscludeDirective = true;\n\n          // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.\n          // This option should only be used by directives that know how to safely handle element transclusion,\n          // where the transcluded nodes are added or replaced after linking.\n          if (!directive.$$tlb) {\n            assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);\n            nonTlbTranscludeDirective = directive;\n          }\n\n          if (directiveValue === 'element') {\n            hasElementTranscludeDirective = true;\n            terminalPriority = directive.priority;\n            $template = $compileNode;\n            $compileNode = templateAttrs.$$element =\n                jqLite(compile.$$createComment(directiveName, templateAttrs[directiveName]));\n            compileNode = $compileNode[0];\n            replaceWith(jqCollection, sliceArgs($template), compileNode);\n\n            // Support: Chrome < 50\n            // https://github.com/angular/angular.js/issues/14041\n\n            // In the versions of V8 prior to Chrome 50, the document fragment that is created\n            // in the `replaceWith` function is improperly garbage collected despite still\n            // being referenced by the `parentNode` property of all of the child nodes.  By adding\n            // a reference to the fragment via a different property, we can avoid that incorrect\n            // behavior.\n            // TODO: remove this line after Chrome 50 has been released\n            $template[0].$$parentNode = $template[0].parentNode;\n\n            childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority,\n                                        replaceDirective && replaceDirective.name, {\n                                          // Don't pass in:\n                                          // - controllerDirectives - otherwise we'll create duplicates controllers\n                                          // - newIsolateScopeDirective or templateDirective - combining templates with\n                                          //   element transclusion doesn't make sense.\n                                          //\n                                          // We need only nonTlbTranscludeDirective so that we prevent putting transclusion\n                                          // on the same element more than once.\n                                          nonTlbTranscludeDirective: nonTlbTranscludeDirective\n                                        });\n          } else {\n\n            var slots = createMap();\n\n            if (!isObject(directiveValue)) {\n              $template = jqLite(jqLiteClone(compileNode)).contents();\n            } else {\n\n              // We have transclusion slots,\n              // collect them up, compile them and store their transclusion functions\n              $template = [];\n\n              var slotMap = createMap();\n              var filledSlots = createMap();\n\n              // Parse the element selectors\n              forEach(directiveValue, function(elementSelector, slotName) {\n                // If an element selector starts with a ? then it is optional\n                var optional = (elementSelector.charAt(0) === '?');\n                elementSelector = optional ? elementSelector.substring(1) : elementSelector;\n\n                slotMap[elementSelector] = slotName;\n\n                // We explicitly assign `null` since this implies that a slot was defined but not filled.\n                // Later when calling boundTransclusion functions with a slot name we only error if the\n                // slot is `undefined`\n                slots[slotName] = null;\n\n                // filledSlots contains `true` for all slots that are either optional or have been\n                // filled. This is used to check that we have not missed any required slots\n                filledSlots[slotName] = optional;\n              });\n\n              // Add the matching elements into their slot\n              forEach($compileNode.contents(), function(node) {\n                var slotName = slotMap[directiveNormalize(nodeName_(node))];\n                if (slotName) {\n                  filledSlots[slotName] = true;\n                  slots[slotName] = slots[slotName] || [];\n                  slots[slotName].push(node);\n                } else {\n                  $template.push(node);\n                }\n              });\n\n              // Check for required slots that were not filled\n              forEach(filledSlots, function(filled, slotName) {\n                if (!filled) {\n                  throw $compileMinErr('reqslot', 'Required transclusion slot `{0}` was not filled.', slotName);\n                }\n              });\n\n              for (var slotName in slots) {\n                if (slots[slotName]) {\n                  // Only define a transclusion function if the slot was filled\n                  slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slots[slotName], transcludeFn);\n                }\n              }\n            }\n\n            $compileNode.empty(); // clear contents\n            childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined,\n                undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope});\n            childTranscludeFn.$$slots = slots;\n          }\n        }\n\n        if (directive.template) {\n          hasTemplate = true;\n          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n          templateDirective = directive;\n\n          directiveValue = (isFunction(directive.template))\n              ? directive.template($compileNode, templateAttrs)\n              : directive.template;\n\n          directiveValue = denormalizeTemplate(directiveValue);\n\n          if (directive.replace) {\n            replaceDirective = directive;\n            if (jqLiteIsTextNode(directiveValue)) {\n              $template = [];\n            } else {\n              $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));\n            }\n            compileNode = $template[0];\n\n            if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n              throw $compileMinErr('tplrt',\n                  'Template for directive \\'{0}\\' must have exactly one root element. {1}',\n                  directiveName, '');\n            }\n\n            replaceWith(jqCollection, $compileNode, compileNode);\n\n            var newTemplateAttrs = {$attr: {}};\n\n            // combine directives from the original node and from the template:\n            // - take the array of directives for this element\n            // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)\n            // - collect directives from the template and sort them by priority\n            // - combine directives as: processed + template + unprocessed\n            var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);\n            var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));\n\n            if (newIsolateScopeDirective || newScopeDirective) {\n              // The original directive caused the current element to be replaced but this element\n              // also needs to have a new scope, so we need to tell the template directives\n              // that they would need to get their scope from further up, if they require transclusion\n              markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);\n            }\n            directives = directives.concat(templateDirectives).concat(unprocessedDirectives);\n            mergeTemplateAttributes(templateAttrs, newTemplateAttrs);\n\n            ii = directives.length;\n          } else {\n            $compileNode.html(directiveValue);\n          }\n        }\n\n        if (directive.templateUrl) {\n          hasTemplate = true;\n          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n          templateDirective = directive;\n\n          if (directive.replace) {\n            replaceDirective = directive;\n          }\n\n          // eslint-disable-next-line no-func-assign\n          nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,\n              templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {\n                controllerDirectives: controllerDirectives,\n                newScopeDirective: (newScopeDirective !== directive) && newScopeDirective,\n                newIsolateScopeDirective: newIsolateScopeDirective,\n                templateDirective: templateDirective,\n                nonTlbTranscludeDirective: nonTlbTranscludeDirective\n              });\n          ii = directives.length;\n        } else if (directive.compile) {\n          try {\n            linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);\n            var context = directive.$$originalDirective || directive;\n            if (isFunction(linkFn)) {\n              addLinkFns(null, bind(context, linkFn), attrStart, attrEnd);\n            } else if (linkFn) {\n              addLinkFns(bind(context, linkFn.pre), bind(context, linkFn.post), attrStart, attrEnd);\n            }\n          } catch (e) {\n            $exceptionHandler(e, startingTag($compileNode));\n          }\n        }\n\n        if (directive.terminal) {\n          nodeLinkFn.terminal = true;\n          terminalPriority = Math.max(terminalPriority, directive.priority);\n        }\n\n      }\n\n      nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;\n      nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;\n      nodeLinkFn.templateOnThisElement = hasTemplate;\n      nodeLinkFn.transclude = childTranscludeFn;\n\n      previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;\n\n      // might be normal or delayed nodeLinkFn depending on if templateUrl is present\n      return nodeLinkFn;\n\n      ////////////////////\n\n      function addLinkFns(pre, post, attrStart, attrEnd) {\n        if (pre) {\n          if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);\n          pre.require = directive.require;\n          pre.directiveName = directiveName;\n          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n            pre = cloneAndAnnotateFn(pre, {isolateScope: true});\n          }\n          preLinkFns.push(pre);\n        }\n        if (post) {\n          if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);\n          post.require = directive.require;\n          post.directiveName = directiveName;\n          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n            post = cloneAndAnnotateFn(post, {isolateScope: true});\n          }\n          postLinkFns.push(post);\n        }\n      }\n\n      function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {\n        var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,\n            attrs, scopeBindingInfo;\n\n        if (compileNode === linkNode) {\n          attrs = templateAttrs;\n          $element = templateAttrs.$$element;\n        } else {\n          $element = jqLite(linkNode);\n          attrs = new Attributes($element, templateAttrs);\n        }\n\n        controllerScope = scope;\n        if (newIsolateScopeDirective) {\n          isolateScope = scope.$new(true);\n        } else if (newScopeDirective) {\n          controllerScope = scope.$parent;\n        }\n\n        if (boundTranscludeFn) {\n          // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`\n          // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`\n          transcludeFn = controllersBoundTransclude;\n          transcludeFn.$$boundTransclude = boundTranscludeFn;\n          // expose the slots on the `$transclude` function\n          transcludeFn.isSlotFilled = function(slotName) {\n            return !!boundTranscludeFn.$$slots[slotName];\n          };\n        }\n\n        if (controllerDirectives) {\n          elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective);\n        }\n\n        if (newIsolateScopeDirective) {\n          // Initialize isolate scope bindings for new isolate scope directive.\n          compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||\n              templateDirective === newIsolateScopeDirective.$$originalDirective)));\n          compile.$$addScopeClass($element, true);\n          isolateScope.$$isolateBindings =\n              newIsolateScopeDirective.$$isolateBindings;\n          scopeBindingInfo = initializeDirectiveBindings(scope, attrs, isolateScope,\n                                        isolateScope.$$isolateBindings,\n                                        newIsolateScopeDirective);\n          if (scopeBindingInfo.removeWatches) {\n            isolateScope.$on('$destroy', scopeBindingInfo.removeWatches);\n          }\n        }\n\n        // Initialize bindToController bindings\n        for (var name in elementControllers) {\n          var controllerDirective = controllerDirectives[name];\n          var controller = elementControllers[name];\n          var bindings = controllerDirective.$$bindings.bindToController;\n\n          if (preAssignBindingsEnabled) {\n            if (bindings) {\n              controller.bindingInfo =\n                initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n            } else {\n              controller.bindingInfo = {};\n            }\n\n            var controllerResult = controller();\n            if (controllerResult !== controller.instance) {\n              // If the controller constructor has a return value, overwrite the instance\n              // from setupControllers\n              controller.instance = controllerResult;\n              $element.data('$' + controllerDirective.name + 'Controller', controllerResult);\n              if (controller.bindingInfo.removeWatches) {\n                controller.bindingInfo.removeWatches();\n              }\n              controller.bindingInfo =\n                initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n            }\n          } else {\n            controller.instance = controller();\n            $element.data('$' + controllerDirective.name + 'Controller', controller.instance);\n            controller.bindingInfo =\n              initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n          }\n        }\n\n        // Bind the required controllers to the controller, if `require` is an object and `bindToController` is truthy\n        forEach(controllerDirectives, function(controllerDirective, name) {\n          var require = controllerDirective.require;\n          if (controllerDirective.bindToController && !isArray(require) && isObject(require)) {\n            extend(elementControllers[name].instance, getControllers(name, require, $element, elementControllers));\n          }\n        });\n\n        // Handle the init and destroy lifecycle hooks on all controllers that have them\n        forEach(elementControllers, function(controller) {\n          var controllerInstance = controller.instance;\n          if (isFunction(controllerInstance.$onChanges)) {\n            try {\n              controllerInstance.$onChanges(controller.bindingInfo.initialChanges);\n            } catch (e) {\n              $exceptionHandler(e);\n            }\n          }\n          if (isFunction(controllerInstance.$onInit)) {\n            try {\n              controllerInstance.$onInit();\n            } catch (e) {\n              $exceptionHandler(e);\n            }\n          }\n          if (isFunction(controllerInstance.$doCheck)) {\n            controllerScope.$watch(function() { controllerInstance.$doCheck(); });\n            controllerInstance.$doCheck();\n          }\n          if (isFunction(controllerInstance.$onDestroy)) {\n            controllerScope.$on('$destroy', function callOnDestroyHook() {\n              controllerInstance.$onDestroy();\n            });\n          }\n        });\n\n        // PRELINKING\n        for (i = 0, ii = preLinkFns.length; i < ii; i++) {\n          linkFn = preLinkFns[i];\n          invokeLinkFn(linkFn,\n              linkFn.isolateScope ? isolateScope : scope,\n              $element,\n              attrs,\n              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n              transcludeFn\n          );\n        }\n\n        // RECURSION\n        // We only pass the isolate scope, if the isolate directive has a template,\n        // otherwise the child elements do not belong to the isolate directive.\n        var scopeToChild = scope;\n        if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {\n          scopeToChild = isolateScope;\n        }\n        if (childLinkFn) {\n          childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);\n        }\n\n        // POSTLINKING\n        for (i = postLinkFns.length - 1; i >= 0; i--) {\n          linkFn = postLinkFns[i];\n          invokeLinkFn(linkFn,\n              linkFn.isolateScope ? isolateScope : scope,\n              $element,\n              attrs,\n              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n              transcludeFn\n          );\n        }\n\n        // Trigger $postLink lifecycle hooks\n        forEach(elementControllers, function(controller) {\n          var controllerInstance = controller.instance;\n          if (isFunction(controllerInstance.$postLink)) {\n            controllerInstance.$postLink();\n          }\n        });\n\n        // This is the function that is injected as `$transclude`.\n        // Note: all arguments are optional!\n        function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement, slotName) {\n          var transcludeControllers;\n          // No scope passed in:\n          if (!isScope(scope)) {\n            slotName = futureParentElement;\n            futureParentElement = cloneAttachFn;\n            cloneAttachFn = scope;\n            scope = undefined;\n          }\n\n          if (hasElementTranscludeDirective) {\n            transcludeControllers = elementControllers;\n          }\n          if (!futureParentElement) {\n            futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;\n          }\n          if (slotName) {\n            // slotTranscludeFn can be one of three things:\n            //  * a transclude function - a filled slot\n            //  * `null` - an optional slot that was not filled\n            //  * `undefined` - a slot that was not declared (i.e. invalid)\n            var slotTranscludeFn = boundTranscludeFn.$$slots[slotName];\n            if (slotTranscludeFn) {\n              return slotTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);\n            } else if (isUndefined(slotTranscludeFn)) {\n              throw $compileMinErr('noslot',\n               'No parent directive that requires a transclusion with slot name \"{0}\". ' +\n               'Element: {1}',\n               slotName, startingTag($element));\n            }\n          } else {\n            return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);\n          }\n        }\n      }\n    }\n\n    function getControllers(directiveName, require, $element, elementControllers) {\n      var value;\n\n      if (isString(require)) {\n        var match = require.match(REQUIRE_PREFIX_REGEXP);\n        var name = require.substring(match[0].length);\n        var inheritType = match[1] || match[3];\n        var optional = match[2] === '?';\n\n        //If only parents then start at the parent element\n        if (inheritType === '^^') {\n          $element = $element.parent();\n        //Otherwise attempt getting the controller from elementControllers in case\n        //the element is transcluded (and has no data) and to avoid .data if possible\n        } else {\n          value = elementControllers && elementControllers[name];\n          value = value && value.instance;\n        }\n\n        if (!value) {\n          var dataName = '$' + name + 'Controller';\n          value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);\n        }\n\n        if (!value && !optional) {\n          throw $compileMinErr('ctreq',\n              'Controller \\'{0}\\', required by directive \\'{1}\\', can\\'t be found!',\n              name, directiveName);\n        }\n      } else if (isArray(require)) {\n        value = [];\n        for (var i = 0, ii = require.length; i < ii; i++) {\n          value[i] = getControllers(directiveName, require[i], $element, elementControllers);\n        }\n      } else if (isObject(require)) {\n        value = {};\n        forEach(require, function(controller, property) {\n          value[property] = getControllers(directiveName, controller, $element, elementControllers);\n        });\n      }\n\n      return value || null;\n    }\n\n    function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective) {\n      var elementControllers = createMap();\n      for (var controllerKey in controllerDirectives) {\n        var directive = controllerDirectives[controllerKey];\n        var locals = {\n          $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,\n          $element: $element,\n          $attrs: attrs,\n          $transclude: transcludeFn\n        };\n\n        var controller = directive.controller;\n        if (controller === '@') {\n          controller = attrs[directive.name];\n        }\n\n        var controllerInstance = $controller(controller, locals, true, directive.controllerAs);\n\n        // For directives with element transclusion the element is a comment.\n        // In this case .data will not attach any data.\n        // Instead, we save the controllers for the element in a local hash and attach to .data\n        // later, once we have the actual element.\n        elementControllers[directive.name] = controllerInstance;\n        $element.data('$' + directive.name + 'Controller', controllerInstance.instance);\n      }\n      return elementControllers;\n    }\n\n    // Depending upon the context in which a directive finds itself it might need to have a new isolated\n    // or child scope created. For instance:\n    // * if the directive has been pulled into a template because another directive with a higher priority\n    // asked for element transclusion\n    // * if the directive itself asks for transclusion but it is at the root of a template and the original\n    // element was replaced. See https://github.com/angular/angular.js/issues/12936\n    function markDirectiveScope(directives, isolateScope, newScope) {\n      for (var j = 0, jj = directives.length; j < jj; j++) {\n        directives[j] = inherit(directives[j], {$$isolateScope: isolateScope, $$newScope: newScope});\n      }\n    }\n\n    /**\n     * looks up the directive and decorates it with exception handling and proper parameters. We\n     * call this the boundDirective.\n     *\n     * @param {string} name name of the directive to look up.\n     * @param {string} location The directive must be found in specific format.\n     *   String containing any of theses characters:\n     *\n     *   * `E`: element name\n     *   * `A': attribute\n     *   * `C`: class\n     *   * `M`: comment\n     * @returns {boolean} true if directive was added.\n     */\n    function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,\n                          endAttrName) {\n      if (name === ignoreDirective) return null;\n      var match = null;\n      if (hasDirectives.hasOwnProperty(name)) {\n        for (var directive, directives = $injector.get(name + Suffix),\n            i = 0, ii = directives.length; i < ii; i++) {\n          directive = directives[i];\n          if ((isUndefined(maxPriority) || maxPriority > directive.priority) &&\n               directive.restrict.indexOf(location) !== -1) {\n            if (startAttrName) {\n              directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});\n            }\n            if (!directive.$$bindings) {\n              var bindings = directive.$$bindings =\n                  parseDirectiveBindings(directive, directive.name);\n              if (isObject(bindings.isolateScope)) {\n                directive.$$isolateBindings = bindings.isolateScope;\n              }\n            }\n            tDirectives.push(directive);\n            match = directive;\n          }\n        }\n      }\n      return match;\n    }\n\n\n    /**\n     * looks up the directive and returns true if it is a multi-element directive,\n     * and therefore requires DOM nodes between -start and -end markers to be grouped\n     * together.\n     *\n     * @param {string} name name of the directive to look up.\n     * @returns true if directive was registered as multi-element.\n     */\n    function directiveIsMultiElement(name) {\n      if (hasDirectives.hasOwnProperty(name)) {\n        for (var directive, directives = $injector.get(name + Suffix),\n            i = 0, ii = directives.length; i < ii; i++) {\n          directive = directives[i];\n          if (directive.multiElement) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n\n    /**\n     * When the element is replaced with HTML template then the new attributes\n     * on the template need to be merged with the existing attributes in the DOM.\n     * The desired effect is to have both of the attributes present.\n     *\n     * @param {object} dst destination attributes (original DOM)\n     * @param {object} src source attributes (from the directive template)\n     */\n    function mergeTemplateAttributes(dst, src) {\n      var srcAttr = src.$attr,\n          dstAttr = dst.$attr;\n\n      // reapply the old attributes to the new element\n      forEach(dst, function(value, key) {\n        if (key.charAt(0) !== '$') {\n          if (src[key] && src[key] !== value) {\n            if (value.length) {\n              value += (key === 'style' ? ';' : ' ') + src[key];\n            } else {\n              value = src[key];\n            }\n          }\n          dst.$set(key, value, true, srcAttr[key]);\n        }\n      });\n\n      // copy the new attributes on the old attrs object\n      forEach(src, function(value, key) {\n        // Check if we already set this attribute in the loop above.\n        // `dst` will never contain hasOwnProperty as DOM parser won't let it.\n        // You will get an \"InvalidCharacterError: DOM Exception 5\" error if you\n        // have an attribute like \"has-own-property\" or \"data-has-own-property\", etc.\n        if (!dst.hasOwnProperty(key) && key.charAt(0) !== '$') {\n          dst[key] = value;\n\n          if (key !== 'class' && key !== 'style') {\n            dstAttr[key] = srcAttr[key];\n          }\n        }\n      });\n    }\n\n\n    function compileTemplateUrl(directives, $compileNode, tAttrs,\n        $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {\n      var linkQueue = [],\n          afterTemplateNodeLinkFn,\n          afterTemplateChildLinkFn,\n          beforeTemplateCompileNode = $compileNode[0],\n          origAsyncDirective = directives.shift(),\n          derivedSyncDirective = inherit(origAsyncDirective, {\n            templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective\n          }),\n          templateUrl = (isFunction(origAsyncDirective.templateUrl))\n              ? origAsyncDirective.templateUrl($compileNode, tAttrs)\n              : origAsyncDirective.templateUrl,\n          templateNamespace = origAsyncDirective.templateNamespace;\n\n      $compileNode.empty();\n\n      $templateRequest(templateUrl)\n        .then(function(content) {\n          var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;\n\n          content = denormalizeTemplate(content);\n\n          if (origAsyncDirective.replace) {\n            if (jqLiteIsTextNode(content)) {\n              $template = [];\n            } else {\n              $template = removeComments(wrapTemplate(templateNamespace, trim(content)));\n            }\n            compileNode = $template[0];\n\n            if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n              throw $compileMinErr('tplrt',\n                  'Template for directive \\'{0}\\' must have exactly one root element. {1}',\n                  origAsyncDirective.name, templateUrl);\n            }\n\n            tempTemplateAttrs = {$attr: {}};\n            replaceWith($rootElement, $compileNode, compileNode);\n            var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);\n\n            if (isObject(origAsyncDirective.scope)) {\n              // the original directive that caused the template to be loaded async required\n              // an isolate scope\n              markDirectiveScope(templateDirectives, true);\n            }\n            directives = templateDirectives.concat(directives);\n            mergeTemplateAttributes(tAttrs, tempTemplateAttrs);\n          } else {\n            compileNode = beforeTemplateCompileNode;\n            $compileNode.html(content);\n          }\n\n          directives.unshift(derivedSyncDirective);\n\n          afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,\n              childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,\n              previousCompileContext);\n          forEach($rootElement, function(node, i) {\n            if (node === compileNode) {\n              $rootElement[i] = $compileNode[0];\n            }\n          });\n          afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);\n\n          while (linkQueue.length) {\n            var scope = linkQueue.shift(),\n                beforeTemplateLinkNode = linkQueue.shift(),\n                linkRootElement = linkQueue.shift(),\n                boundTranscludeFn = linkQueue.shift(),\n                linkNode = $compileNode[0];\n\n            if (scope.$$destroyed) continue;\n\n            if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {\n              var oldClasses = beforeTemplateLinkNode.className;\n\n              if (!(previousCompileContext.hasElementTranscludeDirective &&\n                  origAsyncDirective.replace)) {\n                // it was cloned therefore we have to clone as well.\n                linkNode = jqLiteClone(compileNode);\n              }\n              replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);\n\n              // Copy in CSS classes from original node\n              safeAddClass(jqLite(linkNode), oldClasses);\n            }\n            if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n              childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n            } else {\n              childBoundTranscludeFn = boundTranscludeFn;\n            }\n            afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,\n              childBoundTranscludeFn);\n          }\n          linkQueue = null;\n        }).catch(function(error) {\n          if (error instanceof Error) {\n            $exceptionHandler(error);\n          }\n        }).catch(noop);\n\n      return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {\n        var childBoundTranscludeFn = boundTranscludeFn;\n        if (scope.$$destroyed) return;\n        if (linkQueue) {\n          linkQueue.push(scope,\n                         node,\n                         rootElement,\n                         childBoundTranscludeFn);\n        } else {\n          if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n            childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n          }\n          afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);\n        }\n      };\n    }\n\n\n    /**\n     * Sorting function for bound directives.\n     */\n    function byPriority(a, b) {\n      var diff = b.priority - a.priority;\n      if (diff !== 0) return diff;\n      if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;\n      return a.index - b.index;\n    }\n\n    function assertNoDuplicate(what, previousDirective, directive, element) {\n\n      function wrapModuleNameIfDefined(moduleName) {\n        return moduleName ?\n          (' (module: ' + moduleName + ')') :\n          '';\n      }\n\n      if (previousDirective) {\n        throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',\n            previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),\n            directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));\n      }\n    }\n\n\n    function addTextInterpolateDirective(directives, text) {\n      var interpolateFn = $interpolate(text, true);\n      if (interpolateFn) {\n        directives.push({\n          priority: 0,\n          compile: function textInterpolateCompileFn(templateNode) {\n            var templateNodeParent = templateNode.parent(),\n                hasCompileParent = !!templateNodeParent.length;\n\n            // When transcluding a template that has bindings in the root\n            // we don't have a parent and thus need to add the class during linking fn.\n            if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);\n\n            return function textInterpolateLinkFn(scope, node) {\n              var parent = node.parent();\n              if (!hasCompileParent) compile.$$addBindingClass(parent);\n              compile.$$addBindingInfo(parent, interpolateFn.expressions);\n              scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {\n                node[0].nodeValue = value;\n              });\n            };\n          }\n        });\n      }\n    }\n\n\n    function wrapTemplate(type, template) {\n      type = lowercase(type || 'html');\n      switch (type) {\n      case 'svg':\n      case 'math':\n        var wrapper = window.document.createElement('div');\n        wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';\n        return wrapper.childNodes[0].childNodes;\n      default:\n        return template;\n      }\n    }\n\n\n    function getTrustedContext(node, attrNormalizedName) {\n      if (attrNormalizedName === 'srcdoc') {\n        return $sce.HTML;\n      }\n      var tag = nodeName_(node);\n      // All tags with src attributes require a RESOURCE_URL value, except for\n      // img and various html5 media tags.\n      if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') {\n        if (['img', 'video', 'audio', 'source', 'track'].indexOf(tag) === -1) {\n          return $sce.RESOURCE_URL;\n        }\n      // maction[xlink:href] can source SVG.  It's not limited to <maction>.\n      } else if (attrNormalizedName === 'xlinkHref' ||\n          (tag === 'form' && attrNormalizedName === 'action') ||\n          // links can be stylesheets or imports, which can run script in the current origin\n          (tag === 'link' && attrNormalizedName === 'href')\n      ) {\n        return $sce.RESOURCE_URL;\n      }\n    }\n\n\n    function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) {\n      var trustedContext = getTrustedContext(node, name);\n      var mustHaveExpression = !isNgAttr;\n      var allOrNothing = ALL_OR_NOTHING_ATTRS[name] || isNgAttr;\n\n      var interpolateFn = $interpolate(value, mustHaveExpression, trustedContext, allOrNothing);\n\n      // no interpolation found -> ignore\n      if (!interpolateFn) return;\n\n      if (name === 'multiple' && nodeName_(node) === 'select') {\n        throw $compileMinErr('selmulti',\n            'Binding to the \\'multiple\\' attribute is not supported. Element: {0}',\n            startingTag(node));\n      }\n\n      if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {\n        throw $compileMinErr('nodomevents',\n            'Interpolations for HTML DOM event attributes are disallowed.  Please use the ' +\n                'ng- versions (such as ng-click instead of onclick) instead.');\n      }\n\n      directives.push({\n        priority: 100,\n        compile: function() {\n            return {\n              pre: function attrInterpolatePreLinkFn(scope, element, attr) {\n                var $$observers = (attr.$$observers || (attr.$$observers = createMap()));\n\n                // If the attribute has changed since last $interpolate()ed\n                var newValue = attr[name];\n                if (newValue !== value) {\n                  // we need to interpolate again since the attribute value has been updated\n                  // (e.g. by another directive's compile function)\n                  // ensure unset/empty values make interpolateFn falsy\n                  interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);\n                  value = newValue;\n                }\n\n                // if attribute was updated so that there is no interpolation going on we don't want to\n                // register any observers\n                if (!interpolateFn) return;\n\n                // initialize attr object so that it's ready in case we need the value for isolate\n                // scope initialization, otherwise the value would not be available from isolate\n                // directive's linking fn during linking phase\n                attr[name] = interpolateFn(scope);\n\n                ($$observers[name] || ($$observers[name] = [])).$$inter = true;\n                (attr.$$observers && attr.$$observers[name].$$scope || scope).\n                  $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {\n                    //special case for class attribute addition + removal\n                    //so that class changes can tap into the animation\n                    //hooks provided by the $animate service. Be sure to\n                    //skip animations when the first digest occurs (when\n                    //both the new and the old values are the same) since\n                    //the CSS classes are the non-interpolated values\n                    if (name === 'class' && newValue !== oldValue) {\n                      attr.$updateClass(newValue, oldValue);\n                    } else {\n                      attr.$set(name, newValue);\n                    }\n                  });\n              }\n            };\n          }\n      });\n    }\n\n\n    /**\n     * This is a special jqLite.replaceWith, which can replace items which\n     * have no parents, provided that the containing jqLite collection is provided.\n     *\n     * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes\n     *                               in the root of the tree.\n     * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep\n     *                                  the shell, but replace its DOM node reference.\n     * @param {Node} newNode The new DOM node.\n     */\n    function replaceWith($rootElement, elementsToRemove, newNode) {\n      var firstElementToRemove = elementsToRemove[0],\n          removeCount = elementsToRemove.length,\n          parent = firstElementToRemove.parentNode,\n          i, ii;\n\n      if ($rootElement) {\n        for (i = 0, ii = $rootElement.length; i < ii; i++) {\n          if ($rootElement[i] === firstElementToRemove) {\n            $rootElement[i++] = newNode;\n            for (var j = i, j2 = j + removeCount - 1,\n                     jj = $rootElement.length;\n                 j < jj; j++, j2++) {\n              if (j2 < jj) {\n                $rootElement[j] = $rootElement[j2];\n              } else {\n                delete $rootElement[j];\n              }\n            }\n            $rootElement.length -= removeCount - 1;\n\n            // If the replaced element is also the jQuery .context then replace it\n            // .context is a deprecated jQuery api, so we should set it only when jQuery set it\n            // http://api.jquery.com/context/\n            if ($rootElement.context === firstElementToRemove) {\n              $rootElement.context = newNode;\n            }\n            break;\n          }\n        }\n      }\n\n      if (parent) {\n        parent.replaceChild(newNode, firstElementToRemove);\n      }\n\n      // Append all the `elementsToRemove` to a fragment. This will...\n      // - remove them from the DOM\n      // - allow them to still be traversed with .nextSibling\n      // - allow a single fragment.qSA to fetch all elements being removed\n      var fragment = window.document.createDocumentFragment();\n      for (i = 0; i < removeCount; i++) {\n        fragment.appendChild(elementsToRemove[i]);\n      }\n\n      if (jqLite.hasData(firstElementToRemove)) {\n        // Copy over user data (that includes Angular's $scope etc.). Don't copy private\n        // data here because there's no public interface in jQuery to do that and copying over\n        // event listeners (which is the main use of private data) wouldn't work anyway.\n        jqLite.data(newNode, jqLite.data(firstElementToRemove));\n\n        // Remove $destroy event listeners from `firstElementToRemove`\n        jqLite(firstElementToRemove).off('$destroy');\n      }\n\n      // Cleanup any data/listeners on the elements and children.\n      // This includes invoking the $destroy event on any elements with listeners.\n      jqLite.cleanData(fragment.querySelectorAll('*'));\n\n      // Update the jqLite collection to only contain the `newNode`\n      for (i = 1; i < removeCount; i++) {\n        delete elementsToRemove[i];\n      }\n      elementsToRemove[0] = newNode;\n      elementsToRemove.length = 1;\n    }\n\n\n    function cloneAndAnnotateFn(fn, annotation) {\n      return extend(function() { return fn.apply(null, arguments); }, fn, annotation);\n    }\n\n\n    function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {\n      try {\n        linkFn(scope, $element, attrs, controllers, transcludeFn);\n      } catch (e) {\n        $exceptionHandler(e, startingTag($element));\n      }\n    }\n\n\n    // Set up $watches for isolate scope and controller bindings.\n    function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {\n      var removeWatchCollection = [];\n      var initialChanges = {};\n      var changes;\n      forEach(bindings, function initializeBinding(definition, scopeName) {\n        var attrName = definition.attrName,\n        optional = definition.optional,\n        mode = definition.mode, // @, =, <, or &\n        lastValue,\n        parentGet, parentSet, compare, removeWatch;\n\n        switch (mode) {\n\n          case '@':\n            if (!optional && !hasOwnProperty.call(attrs, attrName)) {\n              destination[scopeName] = attrs[attrName] = undefined;\n            }\n            removeWatch = attrs.$observe(attrName, function(value) {\n              if (isString(value) || isBoolean(value)) {\n                var oldValue = destination[scopeName];\n                recordChanges(scopeName, value, oldValue);\n                destination[scopeName] = value;\n              }\n            });\n            attrs.$$observers[attrName].$$scope = scope;\n            lastValue = attrs[attrName];\n            if (isString(lastValue)) {\n              // If the attribute has been provided then we trigger an interpolation to ensure\n              // the value is there for use in the link fn\n              destination[scopeName] = $interpolate(lastValue)(scope);\n            } else if (isBoolean(lastValue)) {\n              // If the attributes is one of the BOOLEAN_ATTR then Angular will have converted\n              // the value to boolean rather than a string, so we special case this situation\n              destination[scopeName] = lastValue;\n            }\n            initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);\n            removeWatchCollection.push(removeWatch);\n            break;\n\n          case '=':\n            if (!hasOwnProperty.call(attrs, attrName)) {\n              if (optional) break;\n              attrs[attrName] = undefined;\n            }\n            if (optional && !attrs[attrName]) break;\n\n            parentGet = $parse(attrs[attrName]);\n            if (parentGet.literal) {\n              compare = equals;\n            } else {\n              // eslint-disable-next-line no-self-compare\n              compare = function simpleCompare(a, b) { return a === b || (a !== a && b !== b); };\n            }\n            parentSet = parentGet.assign || function() {\n              // reset the change, or we will throw this exception on every $digest\n              lastValue = destination[scopeName] = parentGet(scope);\n              throw $compileMinErr('nonassign',\n                  'Expression \\'{0}\\' in attribute \\'{1}\\' used with directive \\'{2}\\' is non-assignable!',\n                  attrs[attrName], attrName, directive.name);\n            };\n            lastValue = destination[scopeName] = parentGet(scope);\n            var parentValueWatch = function parentValueWatch(parentValue) {\n              if (!compare(parentValue, destination[scopeName])) {\n                // we are out of sync and need to copy\n                if (!compare(parentValue, lastValue)) {\n                  // parent changed and it has precedence\n                  destination[scopeName] = parentValue;\n                } else {\n                  // if the parent can be assigned then do so\n                  parentSet(scope, parentValue = destination[scopeName]);\n                }\n              }\n              lastValue = parentValue;\n              return lastValue;\n            };\n            parentValueWatch.$stateful = true;\n            if (definition.collection) {\n              removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);\n            } else {\n              removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);\n            }\n            removeWatchCollection.push(removeWatch);\n            break;\n\n          case '<':\n            if (!hasOwnProperty.call(attrs, attrName)) {\n              if (optional) break;\n              attrs[attrName] = undefined;\n            }\n            if (optional && !attrs[attrName]) break;\n\n            parentGet = $parse(attrs[attrName]);\n            var deepWatch = parentGet.literal;\n\n            var initialValue = destination[scopeName] = parentGet(scope);\n            initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);\n\n            removeWatch = scope.$watch(parentGet, function parentValueWatchAction(newValue, oldValue) {\n              if (oldValue === newValue) {\n                if (oldValue === initialValue || (deepWatch && equals(oldValue, initialValue))) {\n                  return;\n                }\n                oldValue = initialValue;\n              }\n              recordChanges(scopeName, newValue, oldValue);\n              destination[scopeName] = newValue;\n            }, deepWatch);\n\n            removeWatchCollection.push(removeWatch);\n            break;\n\n          case '&':\n            // Don't assign Object.prototype method to scope\n            parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;\n\n            // Don't assign noop to destination if expression is not valid\n            if (parentGet === noop && optional) break;\n\n            destination[scopeName] = function(locals) {\n              return parentGet(scope, locals);\n            };\n            break;\n        }\n      });\n\n      function recordChanges(key, currentValue, previousValue) {\n        if (isFunction(destination.$onChanges) && currentValue !== previousValue &&\n            // eslint-disable-next-line no-self-compare\n            (currentValue === currentValue || previousValue === previousValue)) {\n          // If we have not already scheduled the top level onChangesQueue handler then do so now\n          if (!onChangesQueue) {\n            scope.$$postDigest(flushOnChangesQueue);\n            onChangesQueue = [];\n          }\n          // If we have not already queued a trigger of onChanges for this controller then do so now\n          if (!changes) {\n            changes = {};\n            onChangesQueue.push(triggerOnChangesHook);\n          }\n          // If the has been a change on this property already then we need to reuse the previous value\n          if (changes[key]) {\n            previousValue = changes[key].previousValue;\n          }\n          // Store this change\n          changes[key] = new SimpleChange(previousValue, currentValue);\n        }\n      }\n\n      function triggerOnChangesHook() {\n        destination.$onChanges(changes);\n        // Now clear the changes so that we schedule onChanges when more changes arrive\n        changes = undefined;\n      }\n\n      return {\n        initialChanges: initialChanges,\n        removeWatches: removeWatchCollection.length && function removeWatches() {\n          for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {\n            removeWatchCollection[i]();\n          }\n        }\n      };\n    }\n  }];\n}\n\nfunction SimpleChange(previous, current) {\n  this.previousValue = previous;\n  this.currentValue = current;\n}\nSimpleChange.prototype.isFirstChange = function() { return this.previousValue === _UNINITIALIZED_VALUE; };\n\n\nvar PREFIX_REGEXP = /^((?:x|data)[:\\-_])/i;\nvar SPECIAL_CHARS_REGEXP = /[:\\-_]+(.)/g;\n\n/**\n * Converts all accepted directives format into proper directive name.\n * @param name Name to normalize\n */\nfunction directiveNormalize(name) {\n  return name\n    .replace(PREFIX_REGEXP, '')\n    .replace(SPECIAL_CHARS_REGEXP, fnCamelCaseReplace);\n}\n\n/**\n * @ngdoc type\n * @name $compile.directive.Attributes\n *\n * @description\n * A shared object between directive compile / linking functions which contains normalized DOM\n * element attributes. The values reflect current binding state `{{ }}`. The normalization is\n * needed since all of these are treated as equivalent in Angular:\n *\n * ```\n *    <span ng:bind=\"a\" ng-bind=\"a\" data-ng-bind=\"a\" x-ng-bind=\"a\">\n * ```\n */\n\n/**\n * @ngdoc property\n * @name $compile.directive.Attributes#$attr\n *\n * @description\n * A map of DOM element attribute names to the normalized name. This is\n * needed to do reverse lookup from normalized name back to actual name.\n */\n\n\n/**\n * @ngdoc method\n * @name $compile.directive.Attributes#$set\n * @kind function\n *\n * @description\n * Set DOM element attribute value.\n *\n *\n * @param {string} name Normalized element attribute name of the property to modify. The name is\n *          reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}\n *          property to the original name.\n * @param {string} value Value to set the attribute to. The value can be an interpolated string.\n */\n\n\n\n/**\n * Closure compiler type information\n */\n\nfunction nodesetLinkingFn(\n  /* angular.Scope */ scope,\n  /* NodeList */ nodeList,\n  /* Element */ rootElement,\n  /* function(Function) */ boundTranscludeFn\n) {}\n\nfunction directiveLinkingFn(\n  /* nodesetLinkingFn */ nodesetLinkingFn,\n  /* angular.Scope */ scope,\n  /* Node */ node,\n  /* Element */ rootElement,\n  /* function(Function) */ boundTranscludeFn\n) {}\n\nfunction tokenDifference(str1, str2) {\n  var values = '',\n      tokens1 = str1.split(/\\s+/),\n      tokens2 = str2.split(/\\s+/);\n\n  outer:\n  for (var i = 0; i < tokens1.length; i++) {\n    var token = tokens1[i];\n    for (var j = 0; j < tokens2.length; j++) {\n      if (token === tokens2[j]) continue outer;\n    }\n    values += (values.length > 0 ? ' ' : '') + token;\n  }\n  return values;\n}\n\nfunction removeComments(jqNodes) {\n  jqNodes = jqLite(jqNodes);\n  var i = jqNodes.length;\n\n  if (i <= 1) {\n    return jqNodes;\n  }\n\n  while (i--) {\n    var node = jqNodes[i];\n    if (node.nodeType === NODE_TYPE_COMMENT ||\n       (node.nodeType === NODE_TYPE_TEXT && node.nodeValue.trim() === '')) {\n         splice.call(jqNodes, i, 1);\n    }\n  }\n  return jqNodes;\n}\n\nvar $controllerMinErr = minErr('$controller');\n\n\nvar CNTRL_REG = /^(\\S+)(\\s+as\\s+([\\w$]+))?$/;\nfunction identifierForController(controller, ident) {\n  if (ident && isString(ident)) return ident;\n  if (isString(controller)) {\n    var match = CNTRL_REG.exec(controller);\n    if (match) return match[3];\n  }\n}\n\n\n/**\n * @ngdoc provider\n * @name $controllerProvider\n * @this\n *\n * @description\n * The {@link ng.$controller $controller service} is used by Angular to create new\n * controllers.\n *\n * This provider allows controller registration via the\n * {@link ng.$controllerProvider#register register} method.\n */\nfunction $ControllerProvider() {\n  var controllers = {},\n      globals = false;\n\n  /**\n   * @ngdoc method\n   * @name $controllerProvider#has\n   * @param {string} name Controller name to check.\n   */\n  this.has = function(name) {\n    return controllers.hasOwnProperty(name);\n  };\n\n  /**\n   * @ngdoc method\n   * @name $controllerProvider#register\n   * @param {string|Object} name Controller name, or an object map of controllers where the keys are\n   *    the names and the values are the constructors.\n   * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI\n   *    annotations in the array notation).\n   */\n  this.register = function(name, constructor) {\n    assertNotHasOwnProperty(name, 'controller');\n    if (isObject(name)) {\n      extend(controllers, name);\n    } else {\n      controllers[name] = constructor;\n    }\n  };\n\n  /**\n   * @ngdoc method\n   * @name $controllerProvider#allowGlobals\n   * @description If called, allows `$controller` to find controller constructors on `window`\n   *\n   * @deprecated\n   * sinceVersion=\"v1.3.0\"\n   * removeVersion=\"v1.7.0\"\n   * This method of finding controllers has been deprecated.\n   */\n  this.allowGlobals = function() {\n    globals = true;\n  };\n\n\n  this.$get = ['$injector', '$window', function($injector, $window) {\n\n    /**\n     * @ngdoc service\n     * @name $controller\n     * @requires $injector\n     *\n     * @param {Function|string} constructor If called with a function then it's considered to be the\n     *    controller constructor function. Otherwise it's considered to be a string which is used\n     *    to retrieve the controller constructor using the following steps:\n     *\n     *    * check if a controller with given name is registered via `$controllerProvider`\n     *    * check if evaluating the string on the current scope returns a constructor\n     *    * if $controllerProvider#allowGlobals, check `window[constructor]` on the global\n     *      `window` object (deprecated, not recommended)\n     *\n     *    The string can use the `controller as property` syntax, where the controller instance is published\n     *    as the specified property on the `scope`; the `scope` must be injected into `locals` param for this\n     *    to work correctly.\n     *\n     * @param {Object} locals Injection locals for Controller.\n     * @return {Object} Instance of given controller.\n     *\n     * @description\n     * `$controller` service is responsible for instantiating controllers.\n     *\n     * It's just a simple call to {@link auto.$injector $injector}, but extracted into\n     * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).\n     */\n    return function $controller(expression, locals, later, ident) {\n      // PRIVATE API:\n      //   param `later` --- indicates that the controller's constructor is invoked at a later time.\n      //                     If true, $controller will allocate the object with the correct\n      //                     prototype chain, but will not invoke the controller until a returned\n      //                     callback is invoked.\n      //   param `ident` --- An optional label which overrides the label parsed from the controller\n      //                     expression, if any.\n      var instance, match, constructor, identifier;\n      later = later === true;\n      if (ident && isString(ident)) {\n        identifier = ident;\n      }\n\n      if (isString(expression)) {\n        match = expression.match(CNTRL_REG);\n        if (!match) {\n          throw $controllerMinErr('ctrlfmt',\n            'Badly formed controller string \\'{0}\\'. ' +\n            'Must match `__name__ as __id__` or `__name__`.', expression);\n        }\n        constructor = match[1];\n        identifier = identifier || match[3];\n        expression = controllers.hasOwnProperty(constructor)\n            ? controllers[constructor]\n            : getter(locals.$scope, constructor, true) ||\n                (globals ? getter($window, constructor, true) : undefined);\n\n        if (!expression) {\n          throw $controllerMinErr('ctrlreg',\n            'The controller with the name \\'{0}\\' is not registered.', constructor);\n        }\n\n        assertArgFn(expression, constructor, true);\n      }\n\n      if (later) {\n        // Instantiate controller later:\n        // This machinery is used to create an instance of the object before calling the\n        // controller's constructor itself.\n        //\n        // This allows properties to be added to the controller before the constructor is\n        // invoked. Primarily, this is used for isolate scope bindings in $compile.\n        //\n        // This feature is not intended for use by applications, and is thus not documented\n        // publicly.\n        // Object creation: http://jsperf.com/create-constructor/2\n        var controllerPrototype = (isArray(expression) ?\n          expression[expression.length - 1] : expression).prototype;\n        instance = Object.create(controllerPrototype || null);\n\n        if (identifier) {\n          addIdentifier(locals, identifier, instance, constructor || expression.name);\n        }\n\n        return extend(function $controllerInit() {\n          var result = $injector.invoke(expression, instance, locals, constructor);\n          if (result !== instance && (isObject(result) || isFunction(result))) {\n            instance = result;\n            if (identifier) {\n              // If result changed, re-assign controllerAs value to scope.\n              addIdentifier(locals, identifier, instance, constructor || expression.name);\n            }\n          }\n          return instance;\n        }, {\n          instance: instance,\n          identifier: identifier\n        });\n      }\n\n      instance = $injector.instantiate(expression, locals, constructor);\n\n      if (identifier) {\n        addIdentifier(locals, identifier, instance, constructor || expression.name);\n      }\n\n      return instance;\n    };\n\n    function addIdentifier(locals, identifier, instance, name) {\n      if (!(locals && isObject(locals.$scope))) {\n        throw minErr('$controller')('noscp',\n          'Cannot export controller \\'{0}\\' as \\'{1}\\'! No $scope object provided via `locals`.',\n          name, identifier);\n      }\n\n      locals.$scope[identifier] = instance;\n    }\n  }];\n}\n\n/**\n * @ngdoc service\n * @name $document\n * @requires $window\n * @this\n *\n * @description\n * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.\n *\n * @example\n   <example module=\"documentExample\" name=\"document\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n         <p>$document title: <b ng-bind=\"title\"></b></p>\n         <p>window.document title: <b ng-bind=\"windowTitle\"></b></p>\n       </div>\n     </file>\n     <file name=\"script.js\">\n       angular.module('documentExample', [])\n         .controller('ExampleController', ['$scope', '$document', function($scope, $document) {\n           $scope.title = $document[0].title;\n           $scope.windowTitle = angular.element(window.document)[0].title;\n         }]);\n     </file>\n   </example>\n */\nfunction $DocumentProvider() {\n  this.$get = ['$window', function(window) {\n    return jqLite(window.document);\n  }];\n}\n\n\n/**\n * @private\n * @this\n * Listens for document visibility change and makes the current status accessible.\n */\nfunction $$IsDocumentHiddenProvider() {\n  this.$get = ['$document', '$rootScope', function($document, $rootScope) {\n    var doc = $document[0];\n    var hidden = doc && doc.hidden;\n\n    $document.on('visibilitychange', changeListener);\n\n    $rootScope.$on('$destroy', function() {\n      $document.off('visibilitychange', changeListener);\n    });\n\n    function changeListener() {\n      hidden = doc.hidden;\n    }\n\n    return function() {\n      return hidden;\n    };\n  }];\n}\n\n/**\n * @ngdoc service\n * @name $exceptionHandler\n * @requires ng.$log\n * @this\n *\n * @description\n * Any uncaught exception in angular expressions is delegated to this service.\n * The default implementation simply delegates to `$log.error` which logs it into\n * the browser console.\n *\n * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by\n * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.\n *\n * ## Example:\n *\n * The example below will overwrite the default `$exceptionHandler` in order to (a) log uncaught\n * errors to the backend for later inspection by the developers and (b) to use `$log.warn()` instead\n * of `$log.error()`.\n *\n * ```js\n *   angular.\n *     module('exceptionOverwrite', []).\n *     factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {\n *       return function myExceptionHandler(exception, cause) {\n *         logErrorsToBackend(exception, cause);\n *         $log.warn(exception, cause);\n *       };\n *     }]);\n * ```\n *\n * <hr />\n * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`\n * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}\n * (unless executed during a digest).\n *\n * If you wish, you can manually delegate exceptions, e.g.\n * `try { ... } catch(e) { $exceptionHandler(e); }`\n *\n * @param {Error} exception Exception associated with the error.\n * @param {string=} cause Optional information about the context in which\n *       the error was thrown.\n *\n */\nfunction $ExceptionHandlerProvider() {\n  this.$get = ['$log', function($log) {\n    return function(exception, cause) {\n      $log.error.apply($log, arguments);\n    };\n  }];\n}\n\nvar $$ForceReflowProvider = /** @this */ function() {\n  this.$get = ['$document', function($document) {\n    return function(domNode) {\n      //the line below will force the browser to perform a repaint so\n      //that all the animated elements within the animation frame will\n      //be properly updated and drawn on screen. This is required to\n      //ensure that the preparation animation is properly flushed so that\n      //the active state picks up from there. DO NOT REMOVE THIS LINE.\n      //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH\n      //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND\n      //WILL TAKE YEARS AWAY FROM YOUR LIFE.\n      if (domNode) {\n        if (!domNode.nodeType && domNode instanceof jqLite) {\n          domNode = domNode[0];\n        }\n      } else {\n        domNode = $document[0].body;\n      }\n      return domNode.offsetWidth + 1;\n    };\n  }];\n};\n\nvar APPLICATION_JSON = 'application/json';\nvar CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};\nvar JSON_START = /^\\[|^\\{(?!\\{)/;\nvar JSON_ENDS = {\n  '[': /]$/,\n  '{': /}$/\n};\nvar JSON_PROTECTION_PREFIX = /^\\)]\\}',?\\n/;\nvar $httpMinErr = minErr('$http');\n\nfunction serializeValue(v) {\n  if (isObject(v)) {\n    return isDate(v) ? v.toISOString() : toJson(v);\n  }\n  return v;\n}\n\n\n/** @this */\nfunction $HttpParamSerializerProvider() {\n  /**\n   * @ngdoc service\n   * @name $httpParamSerializer\n   * @description\n   *\n   * Default {@link $http `$http`} params serializer that converts objects to strings\n   * according to the following rules:\n   *\n   * * `{'foo': 'bar'}` results in `foo=bar`\n   * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)\n   * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)\n   * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D` (stringified and encoded representation of an object)\n   *\n   * Note that serializer will sort the request parameters alphabetically.\n   * */\n\n  this.$get = function() {\n    return function ngParamSerializer(params) {\n      if (!params) return '';\n      var parts = [];\n      forEachSorted(params, function(value, key) {\n        if (value === null || isUndefined(value)) return;\n        if (isArray(value)) {\n          forEach(value, function(v) {\n            parts.push(encodeUriQuery(key)  + '=' + encodeUriQuery(serializeValue(v)));\n          });\n        } else {\n          parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));\n        }\n      });\n\n      return parts.join('&');\n    };\n  };\n}\n\n/** @this */\nfunction $HttpParamSerializerJQLikeProvider() {\n  /**\n   * @ngdoc service\n   * @name $httpParamSerializerJQLike\n   *\n   * @description\n   *\n   * Alternative {@link $http `$http`} params serializer that follows\n   * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.\n   * The serializer will also sort the params alphabetically.\n   *\n   * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:\n   *\n   * ```js\n   * $http({\n   *   url: myUrl,\n   *   method: 'GET',\n   *   params: myParams,\n   *   paramSerializer: '$httpParamSerializerJQLike'\n   * });\n   * ```\n   *\n   * It is also possible to set it as the default `paramSerializer` in the\n   * {@link $httpProvider#defaults `$httpProvider`}.\n   *\n   * Additionally, you can inject the serializer and use it explicitly, for example to serialize\n   * form data for submission:\n   *\n   * ```js\n   * .controller(function($http, $httpParamSerializerJQLike) {\n   *   //...\n   *\n   *   $http({\n   *     url: myUrl,\n   *     method: 'POST',\n   *     data: $httpParamSerializerJQLike(myData),\n   *     headers: {\n   *       'Content-Type': 'application/x-www-form-urlencoded'\n   *     }\n   *   });\n   *\n   * });\n   * ```\n   *\n   * */\n  this.$get = function() {\n    return function jQueryLikeParamSerializer(params) {\n      if (!params) return '';\n      var parts = [];\n      serialize(params, '', true);\n      return parts.join('&');\n\n      function serialize(toSerialize, prefix, topLevel) {\n        if (toSerialize === null || isUndefined(toSerialize)) return;\n        if (isArray(toSerialize)) {\n          forEach(toSerialize, function(value, index) {\n            serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');\n          });\n        } else if (isObject(toSerialize) && !isDate(toSerialize)) {\n          forEachSorted(toSerialize, function(value, key) {\n            serialize(value, prefix +\n                (topLevel ? '' : '[') +\n                key +\n                (topLevel ? '' : ']'));\n          });\n        } else {\n          parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));\n        }\n      }\n    };\n  };\n}\n\nfunction defaultHttpResponseTransform(data, headers) {\n  if (isString(data)) {\n    // Strip json vulnerability protection prefix and trim whitespace\n    var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();\n\n    if (tempData) {\n      var contentType = headers('Content-Type');\n      if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {\n        data = fromJson(tempData);\n      }\n    }\n  }\n\n  return data;\n}\n\nfunction isJsonLike(str) {\n    var jsonStart = str.match(JSON_START);\n    return jsonStart && JSON_ENDS[jsonStart[0]].test(str);\n}\n\n/**\n * Parse headers into key value object\n *\n * @param {string} headers Raw headers as a string\n * @returns {Object} Parsed headers as key value object\n */\nfunction parseHeaders(headers) {\n  var parsed = createMap(), i;\n\n  function fillInParsed(key, val) {\n    if (key) {\n      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n    }\n  }\n\n  if (isString(headers)) {\n    forEach(headers.split('\\n'), function(line) {\n      i = line.indexOf(':');\n      fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));\n    });\n  } else if (isObject(headers)) {\n    forEach(headers, function(headerVal, headerKey) {\n      fillInParsed(lowercase(headerKey), trim(headerVal));\n    });\n  }\n\n  return parsed;\n}\n\n\n/**\n * Returns a function that provides access to parsed headers.\n *\n * Headers are lazy parsed when first requested.\n * @see parseHeaders\n *\n * @param {(string|Object)} headers Headers to provide access to.\n * @returns {function(string=)} Returns a getter function which if called with:\n *\n *   - if called with an argument returns a single header value or null\n *   - if called with no arguments returns an object containing all headers.\n */\nfunction headersGetter(headers) {\n  var headersObj;\n\n  return function(name) {\n    if (!headersObj) headersObj =  parseHeaders(headers);\n\n    if (name) {\n      var value = headersObj[lowercase(name)];\n      if (value === undefined) {\n        value = null;\n      }\n      return value;\n    }\n\n    return headersObj;\n  };\n}\n\n\n/**\n * Chain all given functions\n *\n * This function is used for both request and response transforming\n *\n * @param {*} data Data to transform.\n * @param {function(string=)} headers HTTP headers getter fn.\n * @param {number} status HTTP status code of the response.\n * @param {(Function|Array.<Function>)} fns Function or an array of functions.\n * @returns {*} Transformed data.\n */\nfunction transformData(data, headers, status, fns) {\n  if (isFunction(fns)) {\n    return fns(data, headers, status);\n  }\n\n  forEach(fns, function(fn) {\n    data = fn(data, headers, status);\n  });\n\n  return data;\n}\n\n\nfunction isSuccess(status) {\n  return 200 <= status && status < 300;\n}\n\n\n/**\n * @ngdoc provider\n * @name $httpProvider\n * @this\n *\n * @description\n * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.\n * */\nfunction $HttpProvider() {\n  /**\n   * @ngdoc property\n   * @name $httpProvider#defaults\n   * @description\n   *\n   * Object containing default values for all {@link ng.$http $http} requests.\n   *\n   * - **`defaults.cache`** - {boolean|Object} - A boolean value or object created with\n   * {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of HTTP responses\n   * by default. See {@link $http#caching $http Caching} for more information.\n   *\n   * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.\n   * Defaults value is `'XSRF-TOKEN'`.\n   *\n   * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the\n   * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.\n   *\n   * - **`defaults.headers`** - {Object} - Default headers for all $http requests.\n   * Refer to {@link ng.$http#setting-http-headers $http} for documentation on\n   * setting default headers.\n   *     - **`defaults.headers.common`**\n   *     - **`defaults.headers.post`**\n   *     - **`defaults.headers.put`**\n   *     - **`defaults.headers.patch`**\n   *\n   *\n   * - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function\n   *  used to the prepare string representation of request parameters (specified as an object).\n   *  If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.\n   *  Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.\n   *\n   * - **`defaults.jsonpCallbackParam`** - `{string}` - the name of the query parameter that passes the name of the\n   * callback in a JSONP request. The value of this parameter will be replaced with the expression generated by the\n   * {@link $jsonpCallbacks} service. Defaults to `'callback'`.\n   *\n   **/\n  var defaults = this.defaults = {\n    // transform incoming response data\n    transformResponse: [defaultHttpResponseTransform],\n\n    // transform outgoing request data\n    transformRequest: [function(d) {\n      return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;\n    }],\n\n    // default headers\n    headers: {\n      common: {\n        'Accept': 'application/json, text/plain, */*'\n      },\n      post:   shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n      put:    shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n      patch:  shallowCopy(CONTENT_TYPE_APPLICATION_JSON)\n    },\n\n    xsrfCookieName: 'XSRF-TOKEN',\n    xsrfHeaderName: 'X-XSRF-TOKEN',\n\n    paramSerializer: '$httpParamSerializer',\n\n    jsonpCallbackParam: 'callback'\n  };\n\n  var useApplyAsync = false;\n  /**\n   * @ngdoc method\n   * @name $httpProvider#useApplyAsync\n   * @description\n   *\n   * Configure $http service to combine processing of multiple http responses received at around\n   * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in\n   * significant performance improvement for bigger applications that make many HTTP requests\n   * concurrently (common during application bootstrap).\n   *\n   * Defaults to false. If no value is specified, returns the current configured value.\n   *\n   * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred\n   *    \"apply\" on the next tick, giving time for subsequent requests in a roughly ~10ms window\n   *    to load and share the same digest cycle.\n   *\n   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n   *    otherwise, returns the current configured value.\n   **/\n  this.useApplyAsync = function(value) {\n    if (isDefined(value)) {\n      useApplyAsync = !!value;\n      return this;\n    }\n    return useApplyAsync;\n  };\n\n  /**\n   * @ngdoc property\n   * @name $httpProvider#interceptors\n   * @description\n   *\n   * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}\n   * pre-processing of request or postprocessing of responses.\n   *\n   * These service factories are ordered by request, i.e. they are applied in the same order as the\n   * array, on request, but reverse order, on response.\n   *\n   * {@link ng.$http#interceptors Interceptors detailed info}\n   **/\n  var interceptorFactories = this.interceptors = [];\n\n  this.$get = ['$browser', '$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', '$sce',\n      function($browser, $httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector, $sce) {\n\n    var defaultCache = $cacheFactory('$http');\n\n    /**\n     * Make sure that default param serializer is exposed as a function\n     */\n    defaults.paramSerializer = isString(defaults.paramSerializer) ?\n      $injector.get(defaults.paramSerializer) : defaults.paramSerializer;\n\n    /**\n     * Interceptors stored in reverse order. Inner interceptors before outer interceptors.\n     * The reversal is needed so that we can build up the interception chain around the\n     * server request.\n     */\n    var reversedInterceptors = [];\n\n    forEach(interceptorFactories, function(interceptorFactory) {\n      reversedInterceptors.unshift(isString(interceptorFactory)\n          ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));\n    });\n\n    /**\n     * @ngdoc service\n     * @kind function\n     * @name $http\n     * @requires ng.$httpBackend\n     * @requires $cacheFactory\n     * @requires $rootScope\n     * @requires $q\n     * @requires $injector\n     *\n     * @description\n     * The `$http` service is a core Angular service that facilitates communication with the remote\n     * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)\n     * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).\n     *\n     * For unit testing applications that use `$http` service, see\n     * {@link ngMock.$httpBackend $httpBackend mock}.\n     *\n     * For a higher level of abstraction, please check out the {@link ngResource.$resource\n     * $resource} service.\n     *\n     * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by\n     * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage\n     * it is important to familiarize yourself with these APIs and the guarantees they provide.\n     *\n     *\n     * ## General usage\n     * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —\n     * that is used to generate an HTTP request and returns  a {@link ng.$q promise}.\n     *\n     * ```js\n     *   // Simple GET request example:\n     *   $http({\n     *     method: 'GET',\n     *     url: '/someUrl'\n     *   }).then(function successCallback(response) {\n     *       // this callback will be called asynchronously\n     *       // when the response is available\n     *     }, function errorCallback(response) {\n     *       // called asynchronously if an error occurs\n     *       // or server returns response with an error status.\n     *     });\n     * ```\n     *\n     * The response object has these properties:\n     *\n     *   - **data** – `{string|Object}` – The response body transformed with the transform\n     *     functions.\n     *   - **status** – `{number}` – HTTP status code of the response.\n     *   - **headers** – `{function([headerName])}` – Header getter function.\n     *   - **config** – `{Object}` – The configuration object that was used to generate the request.\n     *   - **statusText** – `{string}` – HTTP status text of the response.\n     *\n     * A response status code between 200 and 299 is considered a success status and will result in\n     * the success callback being called. Any response status code outside of that range is\n     * considered an error status and will result in the error callback being called.\n     * Also, status codes less than -1 are normalized to zero. -1 usually means the request was\n     * aborted, e.g. using a `config.timeout`.\n     * Note that if the response is a redirect, XMLHttpRequest will transparently follow it, meaning\n     * that the outcome (success or error) will be determined by the final response status code.\n     *\n     *\n     * ## Shortcut methods\n     *\n     * Shortcut methods are also available. All shortcut methods require passing in the URL, and\n     * request data must be passed in for POST/PUT requests. An optional config can be passed as the\n     * last argument.\n     *\n     * ```js\n     *   $http.get('/someUrl', config).then(successCallback, errorCallback);\n     *   $http.post('/someUrl', data, config).then(successCallback, errorCallback);\n     * ```\n     *\n     * Complete list of shortcut methods:\n     *\n     * - {@link ng.$http#get $http.get}\n     * - {@link ng.$http#head $http.head}\n     * - {@link ng.$http#post $http.post}\n     * - {@link ng.$http#put $http.put}\n     * - {@link ng.$http#delete $http.delete}\n     * - {@link ng.$http#jsonp $http.jsonp}\n     * - {@link ng.$http#patch $http.patch}\n     *\n     *\n     * ## Writing Unit Tests that use $http\n     * When unit testing (using {@link ngMock ngMock}), it is necessary to call\n     * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending\n     * request using trained responses.\n     *\n     * ```\n     * $httpBackend.expectGET(...);\n     * $http.get(...);\n     * $httpBackend.flush();\n     * ```\n     *\n     * ## Setting HTTP Headers\n     *\n     * The $http service will automatically add certain HTTP headers to all requests. These defaults\n     * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration\n     * object, which currently contains this default configuration:\n     *\n     * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):\n     *   - <code>Accept: application/json, text/plain, \\*&#65279;/&#65279;\\*</code>\n     * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)\n     *   - `Content-Type: application/json`\n     * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)\n     *   - `Content-Type: application/json`\n     *\n     * To add or overwrite these defaults, simply add or remove a property from these configuration\n     * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object\n     * with the lowercased HTTP method name as the key, e.g.\n     * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.\n     *\n     * The defaults can also be set at runtime via the `$http.defaults` object in the same\n     * fashion. For example:\n     *\n     * ```\n     * module.run(function($http) {\n     *   $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w';\n     * });\n     * ```\n     *\n     * In addition, you can supply a `headers` property in the config object passed when\n     * calling `$http(config)`, which overrides the defaults without changing them globally.\n     *\n     * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,\n     * Use the `headers` property, setting the desired header to `undefined`. For example:\n     *\n     * ```js\n     * var req = {\n     *  method: 'POST',\n     *  url: 'http://example.com',\n     *  headers: {\n     *    'Content-Type': undefined\n     *  },\n     *  data: { test: 'test' }\n     * }\n     *\n     * $http(req).then(function(){...}, function(){...});\n     * ```\n     *\n     * ## Transforming Requests and Responses\n     *\n     * Both requests and responses can be transformed using transformation functions: `transformRequest`\n     * and `transformResponse`. These properties can be a single function that returns\n     * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,\n     * which allows you to `push` or `unshift` a new transformation function into the transformation chain.\n     *\n     * <div class=\"alert alert-warning\">\n     * **Note:** Angular does not make a copy of the `data` parameter before it is passed into the `transformRequest` pipeline.\n     * That means changes to the properties of `data` are not local to the transform function (since Javascript passes objects by reference).\n     * For example, when calling `$http.get(url, $scope.myObject)`, modifications to the object's properties in a transformRequest\n     * function will be reflected on the scope and in any templates where the object is data-bound.\n     * To prevent this, transform functions should have no side-effects.\n     * If you need to modify properties, it is recommended to make a copy of the data, or create new object to return.\n     * </div>\n     *\n     * ### Default Transformations\n     *\n     * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and\n     * `defaults.transformResponse` properties. If a request does not provide its own transformations\n     * then these will be applied.\n     *\n     * You can augment or replace the default transformations by modifying these properties by adding to or\n     * replacing the array.\n     *\n     * Angular provides the following default transformations:\n     *\n     * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):\n     *\n     * - If the `data` property of the request configuration object contains an object, serialize it\n     *   into JSON format.\n     *\n     * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):\n     *\n     *  - If XSRF prefix is detected, strip it (see Security Considerations section below).\n     *  - If JSON response is detected, deserialize it using a JSON parser.\n     *\n     *\n     * ### Overriding the Default Transformations Per Request\n     *\n     * If you wish to override the request/response transformations only for a single request then provide\n     * `transformRequest` and/or `transformResponse` properties on the configuration object passed\n     * into `$http`.\n     *\n     * Note that if you provide these properties on the config object the default transformations will be\n     * overwritten. If you wish to augment the default transformations then you must include them in your\n     * local transformation array.\n     *\n     * The following code demonstrates adding a new response transformation to be run after the default response\n     * transformations have been run.\n     *\n     * ```js\n     * function appendTransform(defaults, transform) {\n     *\n     *   // We can't guarantee that the default transformation is an array\n     *   defaults = angular.isArray(defaults) ? defaults : [defaults];\n     *\n     *   // Append the new transformation to the defaults\n     *   return defaults.concat(transform);\n     * }\n     *\n     * $http({\n     *   url: '...',\n     *   method: 'GET',\n     *   transformResponse: appendTransform($http.defaults.transformResponse, function(value) {\n     *     return doTransform(value);\n     *   })\n     * });\n     * ```\n     *\n     *\n     * ## Caching\n     *\n     * {@link ng.$http `$http`} responses are not cached by default. To enable caching, you must\n     * set the config.cache value or the default cache value to TRUE or to a cache object (created\n     * with {@link ng.$cacheFactory `$cacheFactory`}). If defined, the value of config.cache takes\n     * precedence over the default cache value.\n     *\n     * In order to:\n     *   * cache all responses - set the default cache value to TRUE or to a cache object\n     *   * cache a specific response - set config.cache value to TRUE or to a cache object\n     *\n     * If caching is enabled, but neither the default cache nor config.cache are set to a cache object,\n     * then the default `$cacheFactory(\"$http\")` object is used.\n     *\n     * The default cache value can be set by updating the\n     * {@link ng.$http#defaults `$http.defaults.cache`} property or the\n     * {@link $httpProvider#defaults `$httpProvider.defaults.cache`} property.\n     *\n     * When caching is enabled, {@link ng.$http `$http`} stores the response from the server using\n     * the relevant cache object. The next time the same request is made, the response is returned\n     * from the cache without sending a request to the server.\n     *\n     * Take note that:\n     *\n     *   * Only GET and JSONP requests are cached.\n     *   * The cache key is the request URL including search parameters; headers are not considered.\n     *   * Cached responses are returned asynchronously, in the same way as responses from the server.\n     *   * If multiple identical requests are made using the same cache, which is not yet populated,\n     *     one request will be made to the server and remaining requests will return the same response.\n     *   * A cache-control header on the response does not affect if or how responses are cached.\n     *\n     *\n     * ## Interceptors\n     *\n     * Before you start creating interceptors, be sure to understand the\n     * {@link ng.$q $q and deferred/promise APIs}.\n     *\n     * For purposes of global error handling, authentication, or any kind of synchronous or\n     * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be\n     * able to intercept requests before they are handed to the server and\n     * responses before they are handed over to the application code that\n     * initiated these requests. The interceptors leverage the {@link ng.$q\n     * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.\n     *\n     * The interceptors are service factories that are registered with the `$httpProvider` by\n     * adding them to the `$httpProvider.interceptors` array. The factory is called and\n     * injected with dependencies (if specified) and returns the interceptor.\n     *\n     * There are two kinds of interceptors (and two kinds of rejection interceptors):\n     *\n     *   * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to\n     *     modify the `config` object or create a new one. The function needs to return the `config`\n     *     object directly, or a promise containing the `config` or a new `config` object.\n     *   * `requestError`: interceptor gets called when a previous interceptor threw an error or\n     *     resolved with a rejection.\n     *   * `response`: interceptors get called with http `response` object. The function is free to\n     *     modify the `response` object or create a new one. The function needs to return the `response`\n     *     object directly, or as a promise containing the `response` or a new `response` object.\n     *   * `responseError`: interceptor gets called when a previous interceptor threw an error or\n     *     resolved with a rejection.\n     *\n     *\n     * ```js\n     *   // register the interceptor as a service\n     *   $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {\n     *     return {\n     *       // optional method\n     *       'request': function(config) {\n     *         // do something on success\n     *         return config;\n     *       },\n     *\n     *       // optional method\n     *      'requestError': function(rejection) {\n     *         // do something on error\n     *         if (canRecover(rejection)) {\n     *           return responseOrNewPromise\n     *         }\n     *         return $q.reject(rejection);\n     *       },\n     *\n     *\n     *\n     *       // optional method\n     *       'response': function(response) {\n     *         // do something on success\n     *         return response;\n     *       },\n     *\n     *       // optional method\n     *      'responseError': function(rejection) {\n     *         // do something on error\n     *         if (canRecover(rejection)) {\n     *           return responseOrNewPromise\n     *         }\n     *         return $q.reject(rejection);\n     *       }\n     *     };\n     *   });\n     *\n     *   $httpProvider.interceptors.push('myHttpInterceptor');\n     *\n     *\n     *   // alternatively, register the interceptor via an anonymous factory\n     *   $httpProvider.interceptors.push(function($q, dependency1, dependency2) {\n     *     return {\n     *      'request': function(config) {\n     *          // same as above\n     *       },\n     *\n     *       'response': function(response) {\n     *          // same as above\n     *       }\n     *     };\n     *   });\n     * ```\n     *\n     * ## Security Considerations\n     *\n     * When designing web applications, consider security threats from:\n     *\n     * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n     * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)\n     *\n     * Both server and the client must cooperate in order to eliminate these threats. Angular comes\n     * pre-configured with strategies that address these issues, but for this to work backend server\n     * cooperation is required.\n     *\n     * ### JSON Vulnerability Protection\n     *\n     * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n     * allows third party website to turn your JSON resource URL into\n     * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To\n     * counter this your server can prefix all JSON requests with following string `\")]}',\\n\"`.\n     * Angular will automatically strip the prefix before processing it as JSON.\n     *\n     * For example if your server needs to return:\n     * ```js\n     * ['one','two']\n     * ```\n     *\n     * which is vulnerable to attack, your server can return:\n     * ```js\n     * )]}',\n     * ['one','two']\n     * ```\n     *\n     * Angular will strip the prefix, before processing the JSON.\n     *\n     *\n     * ### Cross Site Request Forgery (XSRF) Protection\n     *\n     * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is an attack technique by\n     * which the attacker can trick an authenticated user into unknowingly executing actions on your\n     * website. Angular provides a mechanism to counter XSRF. When performing XHR requests, the\n     * $http service reads a token from a cookie (by default, `XSRF-TOKEN`) and sets it as an HTTP\n     * header (`X-XSRF-TOKEN`). Since only JavaScript that runs on your domain could read the\n     * cookie, your server can be assured that the XHR came from JavaScript running on your domain.\n     * The header will not be set for cross-domain requests.\n     *\n     * To take advantage of this, your server needs to set a token in a JavaScript readable session\n     * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the\n     * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure\n     * that only JavaScript running on your domain could have sent the request. The token must be\n     * unique for each user and must be verifiable by the server (to prevent the JavaScript from\n     * making up its own tokens). We recommend that the token is a digest of your site's\n     * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)\n     * for added security.\n     *\n     * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName\n     * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,\n     * or the per-request config object.\n     *\n     * In order to prevent collisions in environments where multiple Angular apps share the\n     * same domain or subdomain, we recommend that each application uses unique cookie name.\n     *\n     * @param {object} config Object describing the request to be made and how it should be\n     *    processed. The object has following properties:\n     *\n     *    - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)\n     *    - **url** – `{string|TrustedObject}` – Absolute or relative URL of the resource that is being requested;\n     *      or an object created by a call to `$sce.trustAsResourceUrl(url)`.\n     *    - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be serialized\n     *      with the `paramSerializer` and appended as GET parameters.\n     *    - **data** – `{string|Object}` – Data to be sent as the request message data.\n     *    - **headers** – `{Object}` – Map of strings or functions which return strings representing\n     *      HTTP headers to send to the server. If the return value of a function is null, the\n     *      header will not be sent. Functions accept a config object as an argument.\n     *    - **eventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest object.\n     *      To bind events to the XMLHttpRequest upload object, use `uploadEventHandlers`.\n     *      The handler will be called in the context of a `$apply` block.\n     *    - **uploadEventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest upload\n     *      object. To bind events to the XMLHttpRequest object, use `eventHandlers`.\n     *      The handler will be called in the context of a `$apply` block.\n     *    - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.\n     *    - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.\n     *    - **transformRequest** –\n     *      `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –\n     *      transform function or an array of such functions. The transform function takes the http\n     *      request body and headers and returns its transformed (typically serialized) version.\n     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n     *      Overriding the Default Transformations}\n     *    - **transformResponse** –\n     *      `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –\n     *      transform function or an array of such functions. The transform function takes the http\n     *      response body, headers and status and returns its transformed (typically deserialized) version.\n     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n     *      Overriding the Default Transformations}\n     *    - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to\n     *      prepare the string representation of request parameters (specified as an object).\n     *      If specified as string, it is interpreted as function registered with the\n     *      {@link $injector $injector}, which means you can create your own serializer\n     *      by registering it as a {@link auto.$provide#service service}.\n     *      The default serializer is the {@link $httpParamSerializer $httpParamSerializer};\n     *      alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}\n     *    - **cache** – `{boolean|Object}` – A boolean value or object created with\n     *      {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of the HTTP response.\n     *      See {@link $http#caching $http Caching} for more information.\n     *    - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}\n     *      that should abort the request when resolved.\n     *    - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the\n     *      XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)\n     *      for more information.\n     *    - **responseType** - `{string}` - see\n     *      [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).\n     *\n     * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object\n     *                        when the request succeeds or fails.\n     *\n     *\n     * @property {Array.<Object>} pendingRequests Array of config objects for currently pending\n     *   requests. This is primarily meant to be used for debugging purposes.\n     *\n     *\n     * @example\n<example module=\"httpExample\" name=\"http-service\">\n<file name=\"index.html\">\n  <div ng-controller=\"FetchController\">\n    <select ng-model=\"method\" aria-label=\"Request method\">\n      <option>GET</option>\n      <option>JSONP</option>\n    </select>\n    <input type=\"text\" ng-model=\"url\" size=\"80\" aria-label=\"URL\" />\n    <button id=\"fetchbtn\" ng-click=\"fetch()\">fetch</button><br>\n    <button id=\"samplegetbtn\" ng-click=\"updateModel('GET', 'http-hello.html')\">Sample GET</button>\n    <button id=\"samplejsonpbtn\"\n      ng-click=\"updateModel('JSONP',\n                    'https://angularjs.org/greet.php?name=Super%20Hero')\">\n      Sample JSONP\n    </button>\n    <button id=\"invalidjsonpbtn\"\n      ng-click=\"updateModel('JSONP', 'https://angularjs.org/doesntexist')\">\n        Invalid JSONP\n      </button>\n    <pre>http status code: {{status}}</pre>\n    <pre>http response data: {{data}}</pre>\n  </div>\n</file>\n<file name=\"script.js\">\n  angular.module('httpExample', [])\n    .config(['$sceDelegateProvider', function($sceDelegateProvider) {\n      // We must whitelist the JSONP endpoint that we are using to show that we trust it\n      $sceDelegateProvider.resourceUrlWhitelist([\n        'self',\n        'https://angularjs.org/**'\n      ]);\n    }])\n    .controller('FetchController', ['$scope', '$http', '$templateCache',\n      function($scope, $http, $templateCache) {\n        $scope.method = 'GET';\n        $scope.url = 'http-hello.html';\n\n        $scope.fetch = function() {\n          $scope.code = null;\n          $scope.response = null;\n\n          $http({method: $scope.method, url: $scope.url, cache: $templateCache}).\n            then(function(response) {\n              $scope.status = response.status;\n              $scope.data = response.data;\n            }, function(response) {\n              $scope.data = response.data || 'Request failed';\n              $scope.status = response.status;\n          });\n        };\n\n        $scope.updateModel = function(method, url) {\n          $scope.method = method;\n          $scope.url = url;\n        };\n      }]);\n</file>\n<file name=\"http-hello.html\">\n  Hello, $http!\n</file>\n<file name=\"protractor.js\" type=\"protractor\">\n  var status = element(by.binding('status'));\n  var data = element(by.binding('data'));\n  var fetchBtn = element(by.id('fetchbtn'));\n  var sampleGetBtn = element(by.id('samplegetbtn'));\n  var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));\n\n  it('should make an xhr GET request', function() {\n    sampleGetBtn.click();\n    fetchBtn.click();\n    expect(status.getText()).toMatch('200');\n    expect(data.getText()).toMatch(/Hello, \\$http!/);\n  });\n\n// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185\n// it('should make a JSONP request to angularjs.org', function() {\n//   var sampleJsonpBtn = element(by.id('samplejsonpbtn'));\n//   sampleJsonpBtn.click();\n//   fetchBtn.click();\n//   expect(status.getText()).toMatch('200');\n//   expect(data.getText()).toMatch(/Super Hero!/);\n// });\n\n  it('should make JSONP request to invalid URL and invoke the error handler',\n      function() {\n    invalidJsonpBtn.click();\n    fetchBtn.click();\n    expect(status.getText()).toMatch('0');\n    expect(data.getText()).toMatch('Request failed');\n  });\n</file>\n</example>\n     */\n    function $http(requestConfig) {\n\n      if (!isObject(requestConfig)) {\n        throw minErr('$http')('badreq', 'Http request configuration must be an object.  Received: {0}', requestConfig);\n      }\n\n      if (!isString($sce.valueOf(requestConfig.url))) {\n        throw minErr('$http')('badreq', 'Http request configuration url must be a string or a $sce trusted object.  Received: {0}', requestConfig.url);\n      }\n\n      var config = extend({\n        method: 'get',\n        transformRequest: defaults.transformRequest,\n        transformResponse: defaults.transformResponse,\n        paramSerializer: defaults.paramSerializer,\n        jsonpCallbackParam: defaults.jsonpCallbackParam\n      }, requestConfig);\n\n      config.headers = mergeHeaders(requestConfig);\n      config.method = uppercase(config.method);\n      config.paramSerializer = isString(config.paramSerializer) ?\n          $injector.get(config.paramSerializer) : config.paramSerializer;\n\n      $browser.$$incOutstandingRequestCount();\n\n      var requestInterceptors = [];\n      var responseInterceptors = [];\n      var promise = $q.resolve(config);\n\n      // apply interceptors\n      forEach(reversedInterceptors, function(interceptor) {\n        if (interceptor.request || interceptor.requestError) {\n          requestInterceptors.unshift(interceptor.request, interceptor.requestError);\n        }\n        if (interceptor.response || interceptor.responseError) {\n          responseInterceptors.push(interceptor.response, interceptor.responseError);\n        }\n      });\n\n      promise = chainInterceptors(promise, requestInterceptors);\n      promise = promise.then(serverRequest);\n      promise = chainInterceptors(promise, responseInterceptors);\n      promise = promise.finally(completeOutstandingRequest);\n\n      return promise;\n\n\n      function chainInterceptors(promise, interceptors) {\n        for (var i = 0, ii = interceptors.length; i < ii;) {\n          var thenFn = interceptors[i++];\n          var rejectFn = interceptors[i++];\n\n          promise = promise.then(thenFn, rejectFn);\n        }\n\n        interceptors.length = 0;\n\n        return promise;\n      }\n\n      function completeOutstandingRequest() {\n        $browser.$$completeOutstandingRequest(noop);\n      }\n\n      function executeHeaderFns(headers, config) {\n        var headerContent, processedHeaders = {};\n\n        forEach(headers, function(headerFn, header) {\n          if (isFunction(headerFn)) {\n            headerContent = headerFn(config);\n            if (headerContent != null) {\n              processedHeaders[header] = headerContent;\n            }\n          } else {\n            processedHeaders[header] = headerFn;\n          }\n        });\n\n        return processedHeaders;\n      }\n\n      function mergeHeaders(config) {\n        var defHeaders = defaults.headers,\n            reqHeaders = extend({}, config.headers),\n            defHeaderName, lowercaseDefHeaderName, reqHeaderName;\n\n        defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);\n\n        // using for-in instead of forEach to avoid unnecessary iteration after header has been found\n        defaultHeadersIteration:\n        for (defHeaderName in defHeaders) {\n          lowercaseDefHeaderName = lowercase(defHeaderName);\n\n          for (reqHeaderName in reqHeaders) {\n            if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {\n              continue defaultHeadersIteration;\n            }\n          }\n\n          reqHeaders[defHeaderName] = defHeaders[defHeaderName];\n        }\n\n        // execute if header value is a function for merged headers\n        return executeHeaderFns(reqHeaders, shallowCopy(config));\n      }\n\n      function serverRequest(config) {\n        var headers = config.headers;\n        var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);\n\n        // strip content-type if data is undefined\n        if (isUndefined(reqData)) {\n          forEach(headers, function(value, header) {\n            if (lowercase(header) === 'content-type') {\n              delete headers[header];\n            }\n          });\n        }\n\n        if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {\n          config.withCredentials = defaults.withCredentials;\n        }\n\n        // send request\n        return sendReq(config, reqData).then(transformResponse, transformResponse);\n      }\n\n      function transformResponse(response) {\n        // make a copy since the response must be cacheable\n        var resp = extend({}, response);\n        resp.data = transformData(response.data, response.headers, response.status,\n                                  config.transformResponse);\n        return (isSuccess(response.status))\n          ? resp\n          : $q.reject(resp);\n      }\n    }\n\n    $http.pendingRequests = [];\n\n    /**\n     * @ngdoc method\n     * @name $http#get\n     *\n     * @description\n     * Shortcut method to perform `GET` request.\n     *\n     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;\n     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.\n     * @param {Object=} config Optional configuration object\n     * @returns {HttpPromise} Future object\n     */\n\n    /**\n     * @ngdoc method\n     * @name $http#delete\n     *\n     * @description\n     * Shortcut method to perform `DELETE` request.\n     *\n     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;\n     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.\n     * @param {Object=} config Optional configuration object\n     * @returns {HttpPromise} Future object\n     */\n\n    /**\n     * @ngdoc method\n     * @name $http#head\n     *\n     * @description\n     * Shortcut method to perform `HEAD` request.\n     *\n     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;\n     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.\n     * @param {Object=} config Optional configuration object\n     * @returns {HttpPromise} Future object\n     */\n\n    /**\n     * @ngdoc method\n     * @name $http#jsonp\n     *\n     * @description\n     * Shortcut method to perform `JSONP` request.\n     *\n     * Note that, since JSONP requests are sensitive because the response is given full access to the browser,\n     * the url must be declared, via {@link $sce} as a trusted resource URL.\n     * You can trust a URL by adding it to the whitelist via\n     * {@link $sceDelegateProvider#resourceUrlWhitelist  `$sceDelegateProvider.resourceUrlWhitelist`} or\n     * by explicitly trusting the URL via {@link $sce#trustAsResourceUrl `$sce.trustAsResourceUrl(url)`}.\n     *\n     * JSONP requests must specify a callback to be used in the response from the server. This callback\n     * is passed as a query parameter in the request. You must specify the name of this parameter by\n     * setting the `jsonpCallbackParam` property on the request config object.\n     *\n     * ```\n     * $http.jsonp('some/trusted/url', {jsonpCallbackParam: 'callback'})\n     * ```\n     *\n     * You can also specify a default callback parameter name in `$http.defaults.jsonpCallbackParam`.\n     * Initially this is set to `'callback'`.\n     *\n     * <div class=\"alert alert-danger\">\n     * You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback\n     * parameter value should go.\n     * </div>\n     *\n     * If you would like to customise where and how the callbacks are stored then try overriding\n     * or decorating the {@link $jsonpCallbacks} service.\n     *\n     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;\n     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.\n     * @param {Object=} config Optional configuration object\n     * @returns {HttpPromise} Future object\n     */\n    createShortMethods('get', 'delete', 'head', 'jsonp');\n\n    /**\n     * @ngdoc method\n     * @name $http#post\n     *\n     * @description\n     * Shortcut method to perform `POST` request.\n     *\n     * @param {string} url Relative or absolute URL specifying the destination of the request\n     * @param {*} data Request content\n     * @param {Object=} config Optional configuration object\n     * @returns {HttpPromise} Future object\n     */\n\n    /**\n     * @ngdoc method\n     * @name $http#put\n     *\n     * @description\n     * Shortcut method to perform `PUT` request.\n     *\n     * @param {string} url Relative or absolute URL specifying the destination of the request\n     * @param {*} data Request content\n     * @param {Object=} config Optional configuration object\n     * @returns {HttpPromise} Future object\n     */\n\n     /**\n      * @ngdoc method\n      * @name $http#patch\n      *\n      * @description\n      * Shortcut method to perform `PATCH` request.\n      *\n      * @param {string} url Relative or absolute URL specifying the destination of the request\n      * @param {*} data Request content\n      * @param {Object=} config Optional configuration object\n      * @returns {HttpPromise} Future object\n      */\n    createShortMethodsWithData('post', 'put', 'patch');\n\n        /**\n         * @ngdoc property\n         * @name $http#defaults\n         *\n         * @description\n         * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of\n         * default headers, withCredentials as well as request and response transformations.\n         *\n         * See \"Setting HTTP Headers\" and \"Transforming Requests and Responses\" sections above.\n         */\n    $http.defaults = defaults;\n\n\n    return $http;\n\n\n    function createShortMethods(names) {\n      forEach(arguments, function(name) {\n        $http[name] = function(url, config) {\n          return $http(extend({}, config || {}, {\n            method: name,\n            url: url\n          }));\n        };\n      });\n    }\n\n\n    function createShortMethodsWithData(name) {\n      forEach(arguments, function(name) {\n        $http[name] = function(url, data, config) {\n          return $http(extend({}, config || {}, {\n            method: name,\n            url: url,\n            data: data\n          }));\n        };\n      });\n    }\n\n\n    /**\n     * Makes the request.\n     *\n     * !!! ACCESSES CLOSURE VARS:\n     * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests\n     */\n    function sendReq(config, reqData) {\n      var deferred = $q.defer(),\n          promise = deferred.promise,\n          cache,\n          cachedResp,\n          reqHeaders = config.headers,\n          isJsonp = lowercase(config.method) === 'jsonp',\n          url = config.url;\n\n      if (isJsonp) {\n        // JSONP is a pretty sensitive operation where we're allowing a script to have full access to\n        // our DOM and JS space.  So we require that the URL satisfies SCE.RESOURCE_URL.\n        url = $sce.getTrustedResourceUrl(url);\n      } else if (!isString(url)) {\n        // If it is not a string then the URL must be a $sce trusted object\n        url = $sce.valueOf(url);\n      }\n\n      url = buildUrl(url, config.paramSerializer(config.params));\n\n      if (isJsonp) {\n        // Check the url and add the JSONP callback placeholder\n        url = sanitizeJsonpCallbackParam(url, config.jsonpCallbackParam);\n      }\n\n      $http.pendingRequests.push(config);\n      promise.then(removePendingReq, removePendingReq);\n\n      if ((config.cache || defaults.cache) && config.cache !== false &&\n          (config.method === 'GET' || config.method === 'JSONP')) {\n        cache = isObject(config.cache) ? config.cache\n              : isObject(defaults.cache) ? defaults.cache\n              : defaultCache;\n      }\n\n      if (cache) {\n        cachedResp = cache.get(url);\n        if (isDefined(cachedResp)) {\n          if (isPromiseLike(cachedResp)) {\n            // cached request has already been sent, but there is no response yet\n            cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);\n          } else {\n            // serving from cache\n            if (isArray(cachedResp)) {\n              resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);\n            } else {\n              resolvePromise(cachedResp, 200, {}, 'OK');\n            }\n          }\n        } else {\n          // put the promise for the non-transformed response into cache as a placeholder\n          cache.put(url, promise);\n        }\n      }\n\n\n      // if we won't have the response in cache, set the xsrf headers and\n      // send the request to the backend\n      if (isUndefined(cachedResp)) {\n        var xsrfValue = urlIsSameOrigin(config.url)\n            ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName]\n            : undefined;\n        if (xsrfValue) {\n          reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;\n        }\n\n        $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,\n            config.withCredentials, config.responseType,\n            createApplyHandlers(config.eventHandlers),\n            createApplyHandlers(config.uploadEventHandlers));\n      }\n\n      return promise;\n\n      function createApplyHandlers(eventHandlers) {\n        if (eventHandlers) {\n          var applyHandlers = {};\n          forEach(eventHandlers, function(eventHandler, key) {\n            applyHandlers[key] = function(event) {\n              if (useApplyAsync) {\n                $rootScope.$applyAsync(callEventHandler);\n              } else if ($rootScope.$$phase) {\n                callEventHandler();\n              } else {\n                $rootScope.$apply(callEventHandler);\n              }\n\n              function callEventHandler() {\n                eventHandler(event);\n              }\n            };\n          });\n          return applyHandlers;\n        }\n      }\n\n\n      /**\n       * Callback registered to $httpBackend():\n       *  - caches the response if desired\n       *  - resolves the raw $http promise\n       *  - calls $apply\n       */\n      function done(status, response, headersString, statusText) {\n        if (cache) {\n          if (isSuccess(status)) {\n            cache.put(url, [status, response, parseHeaders(headersString), statusText]);\n          } else {\n            // remove promise from the cache\n            cache.remove(url);\n          }\n        }\n\n        function resolveHttpPromise() {\n          resolvePromise(response, status, headersString, statusText);\n        }\n\n        if (useApplyAsync) {\n          $rootScope.$applyAsync(resolveHttpPromise);\n        } else {\n          resolveHttpPromise();\n          if (!$rootScope.$$phase) $rootScope.$apply();\n        }\n      }\n\n\n      /**\n       * Resolves the raw $http promise.\n       */\n      function resolvePromise(response, status, headers, statusText) {\n        //status: HTTP response status code, 0, -1 (aborted by timeout / promise)\n        status = status >= -1 ? status : 0;\n\n        (isSuccess(status) ? deferred.resolve : deferred.reject)({\n          data: response,\n          status: status,\n          headers: headersGetter(headers),\n          config: config,\n          statusText: statusText\n        });\n      }\n\n      function resolvePromiseWithResult(result) {\n        resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);\n      }\n\n      function removePendingReq() {\n        var idx = $http.pendingRequests.indexOf(config);\n        if (idx !== -1) $http.pendingRequests.splice(idx, 1);\n      }\n    }\n\n\n    function buildUrl(url, serializedParams) {\n      if (serializedParams.length > 0) {\n        url += ((url.indexOf('?') === -1) ? '?' : '&') + serializedParams;\n      }\n      return url;\n    }\n\n    function sanitizeJsonpCallbackParam(url, key) {\n      if (/[&?][^=]+=JSON_CALLBACK/.test(url)) {\n        // Throw if the url already contains a reference to JSON_CALLBACK\n        throw $httpMinErr('badjsonp', 'Illegal use of JSON_CALLBACK in url, \"{0}\"', url);\n      }\n\n      var callbackParamRegex = new RegExp('[&?]' + key + '=');\n      if (callbackParamRegex.test(url)) {\n        // Throw if the callback param was already provided\n        throw $httpMinErr('badjsonp', 'Illegal use of callback param, \"{0}\", in url, \"{1}\"', key, url);\n      }\n\n      // Add in the JSON_CALLBACK callback param value\n      url += ((url.indexOf('?') === -1) ? '?' : '&') + key + '=JSON_CALLBACK';\n\n      return url;\n    }\n  }];\n}\n\n/**\n * @ngdoc service\n * @name $xhrFactory\n * @this\n *\n * @description\n * Factory function used to create XMLHttpRequest objects.\n *\n * Replace or decorate this service to create your own custom XMLHttpRequest objects.\n *\n * ```\n * angular.module('myApp', [])\n * .factory('$xhrFactory', function() {\n *   return function createXhr(method, url) {\n *     return new window.XMLHttpRequest({mozSystem: true});\n *   };\n * });\n * ```\n *\n * @param {string} method HTTP method of the request (GET, POST, PUT, ..)\n * @param {string} url URL of the request.\n */\nfunction $xhrFactoryProvider() {\n  this.$get = function() {\n    return function createXhr() {\n      return new window.XMLHttpRequest();\n    };\n  };\n}\n\n/**\n * @ngdoc service\n * @name $httpBackend\n * @requires $jsonpCallbacks\n * @requires $document\n * @requires $xhrFactory\n * @this\n *\n * @description\n * HTTP backend used by the {@link ng.$http service} that delegates to\n * XMLHttpRequest object or JSONP and deals with browser incompatibilities.\n *\n * You should never need to use this service directly, instead use the higher-level abstractions:\n * {@link ng.$http $http} or {@link ngResource.$resource $resource}.\n *\n * During testing this implementation is swapped with {@link ngMock.$httpBackend mock\n * $httpBackend} which can be trained with responses.\n */\nfunction $HttpBackendProvider() {\n  this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) {\n    return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]);\n  }];\n}\n\nfunction createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {\n  // TODO(vojta): fix the signature\n  return function(method, url, post, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) {\n    url = url || $browser.url();\n\n    if (lowercase(method) === 'jsonp') {\n      var callbackPath = callbacks.createCallback(url);\n      var jsonpDone = jsonpReq(url, callbackPath, function(status, text) {\n        // jsonpReq only ever sets status to 200 (OK), 404 (ERROR) or -1 (WAITING)\n        var response = (status === 200) && callbacks.getResponse(callbackPath);\n        completeRequest(callback, status, response, '', text);\n        callbacks.removeCallback(callbackPath);\n      });\n    } else {\n\n      var xhr = createXhr(method, url);\n\n      xhr.open(method, url, true);\n      forEach(headers, function(value, key) {\n        if (isDefined(value)) {\n            xhr.setRequestHeader(key, value);\n        }\n      });\n\n      xhr.onload = function requestLoaded() {\n        var statusText = xhr.statusText || '';\n\n        // responseText is the old-school way of retrieving response (supported by IE9)\n        // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)\n        var response = ('response' in xhr) ? xhr.response : xhr.responseText;\n\n        // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n        var status = xhr.status === 1223 ? 204 : xhr.status;\n\n        // fix status code when it is 0 (0 status is undocumented).\n        // Occurs when accessing file resources or on Android 4.1 stock browser\n        // while retrieving files from application cache.\n        if (status === 0) {\n          status = response ? 200 : urlResolve(url).protocol === 'file' ? 404 : 0;\n        }\n\n        completeRequest(callback,\n            status,\n            response,\n            xhr.getAllResponseHeaders(),\n            statusText);\n      };\n\n      var requestError = function() {\n        // The response is always empty\n        // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error\n        completeRequest(callback, -1, null, null, '');\n      };\n\n      xhr.onerror = requestError;\n      xhr.onabort = requestError;\n      xhr.ontimeout = requestError;\n\n      forEach(eventHandlers, function(value, key) {\n          xhr.addEventListener(key, value);\n      });\n\n      forEach(uploadEventHandlers, function(value, key) {\n        xhr.upload.addEventListener(key, value);\n      });\n\n      if (withCredentials) {\n        xhr.withCredentials = true;\n      }\n\n      if (responseType) {\n        try {\n          xhr.responseType = responseType;\n        } catch (e) {\n          // WebKit added support for the json responseType value on 09/03/2013\n          // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are\n          // known to throw when setting the value \"json\" as the response type. Other older\n          // browsers implementing the responseType\n          //\n          // The json response type can be ignored if not supported, because JSON payloads are\n          // parsed on the client-side regardless.\n          if (responseType !== 'json') {\n            throw e;\n          }\n        }\n      }\n\n      xhr.send(isUndefined(post) ? null : post);\n    }\n\n    if (timeout > 0) {\n      var timeoutId = $browserDefer(timeoutRequest, timeout);\n    } else if (isPromiseLike(timeout)) {\n      timeout.then(timeoutRequest);\n    }\n\n\n    function timeoutRequest() {\n      if (jsonpDone) {\n        jsonpDone();\n      }\n      if (xhr) {\n        xhr.abort();\n      }\n    }\n\n    function completeRequest(callback, status, response, headersString, statusText) {\n      // cancel timeout and subsequent timeout promise resolution\n      if (isDefined(timeoutId)) {\n        $browserDefer.cancel(timeoutId);\n      }\n      jsonpDone = xhr = null;\n\n      callback(status, response, headersString, statusText);\n    }\n  };\n\n  function jsonpReq(url, callbackPath, done) {\n    url = url.replace('JSON_CALLBACK', callbackPath);\n    // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:\n    // - fetches local scripts via XHR and evals them\n    // - adds and immediately removes script elements from the document\n    var script = rawDocument.createElement('script'), callback = null;\n    script.type = 'text/javascript';\n    script.src = url;\n    script.async = true;\n\n    callback = function(event) {\n      script.removeEventListener('load', callback);\n      script.removeEventListener('error', callback);\n      rawDocument.body.removeChild(script);\n      script = null;\n      var status = -1;\n      var text = 'unknown';\n\n      if (event) {\n        if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) {\n          event = { type: 'error' };\n        }\n        text = event.type;\n        status = event.type === 'error' ? 404 : 200;\n      }\n\n      if (done) {\n        done(status, text);\n      }\n    };\n\n    script.addEventListener('load', callback);\n    script.addEventListener('error', callback);\n    rawDocument.body.appendChild(script);\n    return callback;\n  }\n}\n\nvar $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');\n$interpolateMinErr.throwNoconcat = function(text) {\n  throw $interpolateMinErr('noconcat',\n      'Error while interpolating: {0}\\nStrict Contextual Escaping disallows ' +\n      'interpolations that concatenate multiple expressions when a trusted value is ' +\n      'required.  See http://docs.angularjs.org/api/ng.$sce', text);\n};\n\n$interpolateMinErr.interr = function(text, err) {\n  return $interpolateMinErr('interr', 'Can\\'t interpolate: {0}\\n{1}', text, err.toString());\n};\n\n/**\n * @ngdoc provider\n * @name $interpolateProvider\n * @this\n *\n * @description\n *\n * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.\n *\n * <div class=\"alert alert-danger\">\n * This feature is sometimes used to mix different markup languages, e.g. to wrap an Angular\n * template within a Python Jinja template (or any other template language). Mixing templating\n * languages is **very dangerous**. The embedding template language will not safely escape Angular\n * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS)\n * security bugs!\n * </div>\n *\n * @example\n<example name=\"custom-interpolation-markup\" module=\"customInterpolationApp\">\n<file name=\"index.html\">\n<script>\n  var customInterpolationApp = angular.module('customInterpolationApp', []);\n\n  customInterpolationApp.config(function($interpolateProvider) {\n    $interpolateProvider.startSymbol('//');\n    $interpolateProvider.endSymbol('//');\n  });\n\n\n  customInterpolationApp.controller('DemoController', function() {\n      this.label = \"This binding is brought you by // interpolation symbols.\";\n  });\n</script>\n<div ng-controller=\"DemoController as demo\">\n    //demo.label//\n</div>\n</file>\n<file name=\"protractor.js\" type=\"protractor\">\n  it('should interpolate binding with custom symbols', function() {\n    expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');\n  });\n</file>\n</example>\n */\nfunction $InterpolateProvider() {\n  var startSymbol = '{{';\n  var endSymbol = '}}';\n\n  /**\n   * @ngdoc method\n   * @name $interpolateProvider#startSymbol\n   * @description\n   * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.\n   *\n   * @param {string=} value new value to set the starting symbol to.\n   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n   */\n  this.startSymbol = function(value) {\n    if (value) {\n      startSymbol = value;\n      return this;\n    } else {\n      return startSymbol;\n    }\n  };\n\n  /**\n   * @ngdoc method\n   * @name $interpolateProvider#endSymbol\n   * @description\n   * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n   *\n   * @param {string=} value new value to set the ending symbol to.\n   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n   */\n  this.endSymbol = function(value) {\n    if (value) {\n      endSymbol = value;\n      return this;\n    } else {\n      return endSymbol;\n    }\n  };\n\n\n  this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {\n    var startSymbolLength = startSymbol.length,\n        endSymbolLength = endSymbol.length,\n        escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),\n        escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');\n\n    function escape(ch) {\n      return '\\\\\\\\\\\\' + ch;\n    }\n\n    function unescapeText(text) {\n      return text.replace(escapedStartRegexp, startSymbol).\n        replace(escapedEndRegexp, endSymbol);\n    }\n\n    // TODO: this is the same as the constantWatchDelegate in parse.js\n    function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {\n      var unwatch = scope.$watch(function constantInterpolateWatch(scope) {\n        unwatch();\n        return constantInterp(scope);\n      }, listener, objectEquality);\n      return unwatch;\n    }\n\n    /**\n     * @ngdoc service\n     * @name $interpolate\n     * @kind function\n     *\n     * @requires $parse\n     * @requires $sce\n     *\n     * @description\n     *\n     * Compiles a string with markup into an interpolation function. This service is used by the\n     * HTML {@link ng.$compile $compile} service for data binding. See\n     * {@link ng.$interpolateProvider $interpolateProvider} for configuring the\n     * interpolation markup.\n     *\n     *\n     * ```js\n     *   var $interpolate = ...; // injected\n     *   var exp = $interpolate('Hello {{name | uppercase}}!');\n     *   expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');\n     * ```\n     *\n     * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is\n     * `true`, the interpolation function will return `undefined` unless all embedded expressions\n     * evaluate to a value other than `undefined`.\n     *\n     * ```js\n     *   var $interpolate = ...; // injected\n     *   var context = {greeting: 'Hello', name: undefined };\n     *\n     *   // default \"forgiving\" mode\n     *   var exp = $interpolate('{{greeting}} {{name}}!');\n     *   expect(exp(context)).toEqual('Hello !');\n     *\n     *   // \"allOrNothing\" mode\n     *   exp = $interpolate('{{greeting}} {{name}}!', false, null, true);\n     *   expect(exp(context)).toBeUndefined();\n     *   context.name = 'Angular';\n     *   expect(exp(context)).toEqual('Hello Angular!');\n     * ```\n     *\n     * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.\n     *\n     * #### Escaped Interpolation\n     * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers\n     * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).\n     * It will be rendered as a regular start/end marker, and will not be interpreted as an expression\n     * or binding.\n     *\n     * This enables web-servers to prevent script injection attacks and defacing attacks, to some\n     * degree, while also enabling code examples to work without relying on the\n     * {@link ng.directive:ngNonBindable ngNonBindable} directive.\n     *\n     * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,\n     * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all\n     * interpolation start/end markers with their escaped counterparts.**\n     *\n     * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered\n     * output when the $interpolate service processes the text. So, for HTML elements interpolated\n     * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter\n     * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,\n     * this is typically useful only when user-data is used in rendering a template from the server, or\n     * when otherwise untrusted data is used by a directive.\n     *\n     * <example name=\"interpolation\">\n     *  <file name=\"index.html\">\n     *    <div ng-init=\"username='A user'\">\n     *      <p ng-init=\"apptitle='Escaping demo'\">{{apptitle}}: \\{\\{ username = \"defaced value\"; \\}\\}\n     *        </p>\n     *      <p><strong>{{username}}</strong> attempts to inject code which will deface the\n     *        application, but fails to accomplish their task, because the server has correctly\n     *        escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)\n     *        characters.</p>\n     *      <p>Instead, the result of the attempted script injection is visible, and can be removed\n     *        from the database by an administrator.</p>\n     *    </div>\n     *  </file>\n     * </example>\n     *\n     * @knownIssue\n     * It is currently not possible for an interpolated expression to contain the interpolation end\n     * symbol. For example, `{{ '}}' }}` will be incorrectly interpreted as `{{ ' }}` + `' }}`, i.e.\n     * an interpolated expression consisting of a single-quote (`'`) and the `' }}` string.\n     *\n     * @knownIssue\n     * All directives and components must use the standard `{{` `}}` interpolation symbols\n     * in their templates. If you change the application interpolation symbols the {@link $compile}\n     * service will attempt to denormalize the standard symbols to the custom symbols.\n     * The denormalization process is not clever enough to know not to replace instances of the standard\n     * symbols where they would not normally be treated as interpolation symbols. For example in the following\n     * code snippet the closing braces of the literal object will get incorrectly denormalized:\n     *\n     * ```\n     * <div data-context='{\"context\":{\"id\":3,\"type\":\"page\"}}\">\n     * ```\n     *\n     * The workaround is to ensure that such instances are separated by whitespace:\n     * ```\n     * <div data-context='{\"context\":{\"id\":3,\"type\":\"page\"} }\">\n     * ```\n     *\n     * See https://github.com/angular/angular.js/pull/14610#issuecomment-219401099 for more information.\n     *\n     * @param {string} text The text with markup to interpolate.\n     * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have\n     *    embedded expression in order to return an interpolation function. Strings with no\n     *    embedded expression will return null for the interpolation function.\n     * @param {string=} trustedContext when provided, the returned function passes the interpolated\n     *    result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,\n     *    trustedContext)} before returning it.  Refer to the {@link ng.$sce $sce} service that\n     *    provides Strict Contextual Escaping for details.\n     * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined\n     *    unless all embedded expressions evaluate to a value other than `undefined`.\n     * @returns {function(context)} an interpolation function which is used to compute the\n     *    interpolated string. The function has these parameters:\n     *\n     * - `context`: evaluation context for all expressions embedded in the interpolated text\n     */\n    function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {\n      // Provide a quick exit and simplified result function for text with no interpolation\n      if (!text.length || text.indexOf(startSymbol) === -1) {\n        var constantInterp;\n        if (!mustHaveExpression) {\n          var unescapedText = unescapeText(text);\n          constantInterp = valueFn(unescapedText);\n          constantInterp.exp = text;\n          constantInterp.expressions = [];\n          constantInterp.$$watchDelegate = constantWatchDelegate;\n        }\n        return constantInterp;\n      }\n\n      allOrNothing = !!allOrNothing;\n      var startIndex,\n          endIndex,\n          index = 0,\n          expressions = [],\n          parseFns = [],\n          textLength = text.length,\n          exp,\n          concat = [],\n          expressionPositions = [];\n\n      while (index < textLength) {\n        if (((startIndex = text.indexOf(startSymbol, index)) !== -1) &&\n             ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) !== -1)) {\n          if (index !== startIndex) {\n            concat.push(unescapeText(text.substring(index, startIndex)));\n          }\n          exp = text.substring(startIndex + startSymbolLength, endIndex);\n          expressions.push(exp);\n          parseFns.push($parse(exp, parseStringifyInterceptor));\n          index = endIndex + endSymbolLength;\n          expressionPositions.push(concat.length);\n          concat.push('');\n        } else {\n          // we did not find an interpolation, so we have to add the remainder to the separators array\n          if (index !== textLength) {\n            concat.push(unescapeText(text.substring(index)));\n          }\n          break;\n        }\n      }\n\n      // Concatenating expressions makes it hard to reason about whether some combination of\n      // concatenated values are unsafe to use and could easily lead to XSS.  By requiring that a\n      // single expression be used for iframe[src], object[src], etc., we ensure that the value\n      // that's used is assigned or constructed by some JS code somewhere that is more testable or\n      // make it obvious that you bound the value to some user controlled value.  This helps reduce\n      // the load when auditing for XSS issues.\n      if (trustedContext && concat.length > 1) {\n          $interpolateMinErr.throwNoconcat(text);\n      }\n\n      if (!mustHaveExpression || expressions.length) {\n        var compute = function(values) {\n          for (var i = 0, ii = expressions.length; i < ii; i++) {\n            if (allOrNothing && isUndefined(values[i])) return;\n            concat[expressionPositions[i]] = values[i];\n          }\n          return concat.join('');\n        };\n\n        var getValue = function(value) {\n          return trustedContext ?\n            $sce.getTrusted(trustedContext, value) :\n            $sce.valueOf(value);\n        };\n\n        return extend(function interpolationFn(context) {\n            var i = 0;\n            var ii = expressions.length;\n            var values = new Array(ii);\n\n            try {\n              for (; i < ii; i++) {\n                values[i] = parseFns[i](context);\n              }\n\n              return compute(values);\n            } catch (err) {\n              $exceptionHandler($interpolateMinErr.interr(text, err));\n            }\n\n          }, {\n          // all of these properties are undocumented for now\n          exp: text, //just for compatibility with regular watchers created via $watch\n          expressions: expressions,\n          $$watchDelegate: function(scope, listener) {\n            var lastValue;\n            return scope.$watchGroup(parseFns, /** @this */ function interpolateFnWatcher(values, oldValues) {\n              var currValue = compute(values);\n              if (isFunction(listener)) {\n                listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);\n              }\n              lastValue = currValue;\n            });\n          }\n        });\n      }\n\n      function parseStringifyInterceptor(value) {\n        try {\n          value = getValue(value);\n          return allOrNothing && !isDefined(value) ? value : stringify(value);\n        } catch (err) {\n          $exceptionHandler($interpolateMinErr.interr(text, err));\n        }\n      }\n    }\n\n\n    /**\n     * @ngdoc method\n     * @name $interpolate#startSymbol\n     * @description\n     * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.\n     *\n     * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change\n     * the symbol.\n     *\n     * @returns {string} start symbol.\n     */\n    $interpolate.startSymbol = function() {\n      return startSymbol;\n    };\n\n\n    /**\n     * @ngdoc method\n     * @name $interpolate#endSymbol\n     * @description\n     * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n     *\n     * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change\n     * the symbol.\n     *\n     * @returns {string} end symbol.\n     */\n    $interpolate.endSymbol = function() {\n      return endSymbol;\n    };\n\n    return $interpolate;\n  }];\n}\n\n/** @this */\nfunction $IntervalProvider() {\n  this.$get = ['$rootScope', '$window', '$q', '$$q', '$browser',\n       function($rootScope,   $window,   $q,   $$q,   $browser) {\n    var intervals = {};\n\n\n     /**\n      * @ngdoc service\n      * @name $interval\n      *\n      * @description\n      * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`\n      * milliseconds.\n      *\n      * The return value of registering an interval function is a promise. This promise will be\n      * notified upon each tick of the interval, and will be resolved after `count` iterations, or\n      * run indefinitely if `count` is not defined. The value of the notification will be the\n      * number of iterations that have run.\n      * To cancel an interval, call `$interval.cancel(promise)`.\n      *\n      * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to\n      * move forward by `millis` milliseconds and trigger any functions scheduled to run in that\n      * time.\n      *\n      * <div class=\"alert alert-warning\">\n      * **Note**: Intervals created by this service must be explicitly destroyed when you are finished\n      * with them.  In particular they are not automatically destroyed when a controller's scope or a\n      * directive's element are destroyed.\n      * You should take this into consideration and make sure to always cancel the interval at the\n      * appropriate moment.  See the example below for more details on how and when to do this.\n      * </div>\n      *\n      * @param {function()} fn A function that should be called repeatedly. If no additional arguments\n      *   are passed (see below), the function is called with the current iteration count.\n      * @param {number} delay Number of milliseconds between each function call.\n      * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat\n      *   indefinitely.\n      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n      * @param {...*=} Pass additional parameters to the executed function.\n      * @returns {promise} A promise which will be notified on each iteration.\n      *\n      * @example\n      * <example module=\"intervalExample\" name=\"interval-service\">\n      * <file name=\"index.html\">\n      *   <script>\n      *     angular.module('intervalExample', [])\n      *       .controller('ExampleController', ['$scope', '$interval',\n      *         function($scope, $interval) {\n      *           $scope.format = 'M/d/yy h:mm:ss a';\n      *           $scope.blood_1 = 100;\n      *           $scope.blood_2 = 120;\n      *\n      *           var stop;\n      *           $scope.fight = function() {\n      *             // Don't start a new fight if we are already fighting\n      *             if ( angular.isDefined(stop) ) return;\n      *\n      *             stop = $interval(function() {\n      *               if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {\n      *                 $scope.blood_1 = $scope.blood_1 - 3;\n      *                 $scope.blood_2 = $scope.blood_2 - 4;\n      *               } else {\n      *                 $scope.stopFight();\n      *               }\n      *             }, 100);\n      *           };\n      *\n      *           $scope.stopFight = function() {\n      *             if (angular.isDefined(stop)) {\n      *               $interval.cancel(stop);\n      *               stop = undefined;\n      *             }\n      *           };\n      *\n      *           $scope.resetFight = function() {\n      *             $scope.blood_1 = 100;\n      *             $scope.blood_2 = 120;\n      *           };\n      *\n      *           $scope.$on('$destroy', function() {\n      *             // Make sure that the interval is destroyed too\n      *             $scope.stopFight();\n      *           });\n      *         }])\n      *       // Register the 'myCurrentTime' directive factory method.\n      *       // We inject $interval and dateFilter service since the factory method is DI.\n      *       .directive('myCurrentTime', ['$interval', 'dateFilter',\n      *         function($interval, dateFilter) {\n      *           // return the directive link function. (compile function not needed)\n      *           return function(scope, element, attrs) {\n      *             var format,  // date format\n      *                 stopTime; // so that we can cancel the time updates\n      *\n      *             // used to update the UI\n      *             function updateTime() {\n      *               element.text(dateFilter(new Date(), format));\n      *             }\n      *\n      *             // watch the expression, and update the UI on change.\n      *             scope.$watch(attrs.myCurrentTime, function(value) {\n      *               format = value;\n      *               updateTime();\n      *             });\n      *\n      *             stopTime = $interval(updateTime, 1000);\n      *\n      *             // listen on DOM destroy (removal) event, and cancel the next UI update\n      *             // to prevent updating time after the DOM element was removed.\n      *             element.on('$destroy', function() {\n      *               $interval.cancel(stopTime);\n      *             });\n      *           }\n      *         }]);\n      *   </script>\n      *\n      *   <div>\n      *     <div ng-controller=\"ExampleController\">\n      *       <label>Date format: <input ng-model=\"format\"></label> <hr/>\n      *       Current time is: <span my-current-time=\"format\"></span>\n      *       <hr/>\n      *       Blood 1 : <font color='red'>{{blood_1}}</font>\n      *       Blood 2 : <font color='red'>{{blood_2}}</font>\n      *       <button type=\"button\" data-ng-click=\"fight()\">Fight</button>\n      *       <button type=\"button\" data-ng-click=\"stopFight()\">StopFight</button>\n      *       <button type=\"button\" data-ng-click=\"resetFight()\">resetFight</button>\n      *     </div>\n      *   </div>\n      *\n      * </file>\n      * </example>\n      */\n    function interval(fn, delay, count, invokeApply) {\n      var hasParams = arguments.length > 4,\n          args = hasParams ? sliceArgs(arguments, 4) : [],\n          setInterval = $window.setInterval,\n          clearInterval = $window.clearInterval,\n          iteration = 0,\n          skipApply = (isDefined(invokeApply) && !invokeApply),\n          deferred = (skipApply ? $$q : $q).defer(),\n          promise = deferred.promise;\n\n      count = isDefined(count) ? count : 0;\n\n      promise.$$intervalId = setInterval(function tick() {\n        if (skipApply) {\n          $browser.defer(callback);\n        } else {\n          $rootScope.$evalAsync(callback);\n        }\n        deferred.notify(iteration++);\n\n        if (count > 0 && iteration >= count) {\n          deferred.resolve(iteration);\n          clearInterval(promise.$$intervalId);\n          delete intervals[promise.$$intervalId];\n        }\n\n        if (!skipApply) $rootScope.$apply();\n\n      }, delay);\n\n      intervals[promise.$$intervalId] = deferred;\n\n      return promise;\n\n      function callback() {\n        if (!hasParams) {\n          fn(iteration);\n        } else {\n          fn.apply(null, args);\n        }\n      }\n    }\n\n\n     /**\n      * @ngdoc method\n      * @name $interval#cancel\n      *\n      * @description\n      * Cancels a task associated with the `promise`.\n      *\n      * @param {Promise=} promise returned by the `$interval` function.\n      * @returns {boolean} Returns `true` if the task was successfully canceled.\n      */\n    interval.cancel = function(promise) {\n      if (promise && promise.$$intervalId in intervals) {\n        // Interval cancels should not report as unhandled promise.\n        intervals[promise.$$intervalId].promise.catch(noop);\n        intervals[promise.$$intervalId].reject('canceled');\n        $window.clearInterval(promise.$$intervalId);\n        delete intervals[promise.$$intervalId];\n        return true;\n      }\n      return false;\n    };\n\n    return interval;\n  }];\n}\n\n/**\n * @ngdoc service\n * @name $jsonpCallbacks\n * @requires $window\n * @description\n * This service handles the lifecycle of callbacks to handle JSONP requests.\n * Override this service if you wish to customise where the callbacks are stored and\n * how they vary compared to the requested url.\n */\nvar $jsonpCallbacksProvider = /** @this */ function() {\n  this.$get = ['$window', function($window) {\n    var callbacks = $window.angular.callbacks;\n    var callbackMap = {};\n\n    function createCallback(callbackId) {\n      var callback = function(data) {\n        callback.data = data;\n        callback.called = true;\n      };\n      callback.id = callbackId;\n      return callback;\n    }\n\n    return {\n      /**\n       * @ngdoc method\n       * @name $jsonpCallbacks#createCallback\n       * @param {string} url the url of the JSONP request\n       * @returns {string} the callback path to send to the server as part of the JSONP request\n       * @description\n       * {@link $httpBackend} calls this method to create a callback and get hold of the path to the callback\n       * to pass to the server, which will be used to call the callback with its payload in the JSONP response.\n       */\n      createCallback: function(url) {\n        var callbackId = '_' + (callbacks.$$counter++).toString(36);\n        var callbackPath = 'angular.callbacks.' + callbackId;\n        var callback = createCallback(callbackId);\n        callbackMap[callbackPath] = callbacks[callbackId] = callback;\n        return callbackPath;\n      },\n      /**\n       * @ngdoc method\n       * @name $jsonpCallbacks#wasCalled\n       * @param {string} callbackPath the path to the callback that was sent in the JSONP request\n       * @returns {boolean} whether the callback has been called, as a result of the JSONP response\n       * @description\n       * {@link $httpBackend} calls this method to find out whether the JSONP response actually called the\n       * callback that was passed in the request.\n       */\n      wasCalled: function(callbackPath) {\n        return callbackMap[callbackPath].called;\n      },\n      /**\n       * @ngdoc method\n       * @name $jsonpCallbacks#getResponse\n       * @param {string} callbackPath the path to the callback that was sent in the JSONP request\n       * @returns {*} the data received from the response via the registered callback\n       * @description\n       * {@link $httpBackend} calls this method to get hold of the data that was provided to the callback\n       * in the JSONP response.\n       */\n      getResponse: function(callbackPath) {\n        return callbackMap[callbackPath].data;\n      },\n      /**\n       * @ngdoc method\n       * @name $jsonpCallbacks#removeCallback\n       * @param {string} callbackPath the path to the callback that was sent in the JSONP request\n       * @description\n       * {@link $httpBackend} calls this method to remove the callback after the JSONP request has\n       * completed or timed-out.\n       */\n      removeCallback: function(callbackPath) {\n        var callback = callbackMap[callbackPath];\n        delete callbacks[callback.id];\n        delete callbackMap[callbackPath];\n      }\n    };\n  }];\n};\n\n/**\n * @ngdoc service\n * @name $locale\n *\n * @description\n * $locale service provides localization rules for various Angular components. As of right now the\n * only public api is:\n *\n * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)\n */\n\nvar PATH_MATCH = /^([^?#]*)(\\?([^#]*))?(#(.*))?$/,\n    DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};\nvar $locationMinErr = minErr('$location');\n\n\n/**\n * Encode path using encodeUriSegment, ignoring forward slashes\n *\n * @param {string} path Path to encode\n * @returns {string}\n */\nfunction encodePath(path) {\n  var segments = path.split('/'),\n      i = segments.length;\n\n  while (i--) {\n    segments[i] = encodeUriSegment(segments[i]);\n  }\n\n  return segments.join('/');\n}\n\nfunction parseAbsoluteUrl(absoluteUrl, locationObj) {\n  var parsedUrl = urlResolve(absoluteUrl);\n\n  locationObj.$$protocol = parsedUrl.protocol;\n  locationObj.$$host = parsedUrl.hostname;\n  locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n}\n\nvar DOUBLE_SLASH_REGEX = /^\\s*[\\\\/]{2,}/;\nfunction parseAppUrl(url, locationObj) {\n\n  if (DOUBLE_SLASH_REGEX.test(url)) {\n    throw $locationMinErr('badpath', 'Invalid url \"{0}\".', url);\n  }\n\n  var prefixed = (url.charAt(0) !== '/');\n  if (prefixed) {\n    url = '/' + url;\n  }\n  var match = urlResolve(url);\n  locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?\n      match.pathname.substring(1) : match.pathname);\n  locationObj.$$search = parseKeyValue(match.search);\n  locationObj.$$hash = decodeURIComponent(match.hash);\n\n  // make sure path starts with '/';\n  if (locationObj.$$path && locationObj.$$path.charAt(0) !== '/') {\n    locationObj.$$path = '/' + locationObj.$$path;\n  }\n}\n\nfunction startsWith(str, search) {\n  return str.slice(0, search.length) === search;\n}\n\n/**\n *\n * @param {string} base\n * @param {string} url\n * @returns {string} returns text from `url` after `base` or `undefined` if it does not begin with\n *                   the expected string.\n */\nfunction stripBaseUrl(base, url) {\n  if (startsWith(url, base)) {\n    return url.substr(base.length);\n  }\n}\n\n\nfunction stripHash(url) {\n  var index = url.indexOf('#');\n  return index === -1 ? url : url.substr(0, index);\n}\n\nfunction trimEmptyHash(url) {\n  return url.replace(/(#.+)|#$/, '$1');\n}\n\n\nfunction stripFile(url) {\n  return url.substr(0, stripHash(url).lastIndexOf('/') + 1);\n}\n\n/* return the server only (scheme://host:port) */\nfunction serverBase(url) {\n  return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));\n}\n\n\n/**\n * LocationHtml5Url represents a URL\n * This object is exposed as $location service when HTML5 mode is enabled and supported\n *\n * @constructor\n * @param {string} appBase application base URL\n * @param {string} appBaseNoFile application base URL stripped of any filename\n * @param {string} basePrefix URL path prefix\n */\nfunction LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {\n  this.$$html5 = true;\n  basePrefix = basePrefix || '';\n  parseAbsoluteUrl(appBase, this);\n\n\n  /**\n   * Parse given HTML5 (regular) URL string into properties\n   * @param {string} url HTML5 URL\n   * @private\n   */\n  this.$$parse = function(url) {\n    var pathUrl = stripBaseUrl(appBaseNoFile, url);\n    if (!isString(pathUrl)) {\n      throw $locationMinErr('ipthprfx', 'Invalid url \"{0}\", missing path prefix \"{1}\".', url,\n          appBaseNoFile);\n    }\n\n    parseAppUrl(pathUrl, this);\n\n    if (!this.$$path) {\n      this.$$path = '/';\n    }\n\n    this.$$compose();\n  };\n\n  /**\n   * Compose url and update `absUrl` property\n   * @private\n   */\n  this.$$compose = function() {\n    var search = toKeyValue(this.$$search),\n        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n    this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'\n  };\n\n  this.$$parseLinkUrl = function(url, relHref) {\n    if (relHref && relHref[0] === '#') {\n      // special case for links to hash fragments:\n      // keep the old url and only replace the hash fragment\n      this.hash(relHref.slice(1));\n      return true;\n    }\n    var appUrl, prevAppUrl;\n    var rewrittenUrl;\n\n\n    if (isDefined(appUrl = stripBaseUrl(appBase, url))) {\n      prevAppUrl = appUrl;\n      if (basePrefix && isDefined(appUrl = stripBaseUrl(basePrefix, appUrl))) {\n        rewrittenUrl = appBaseNoFile + (stripBaseUrl('/', appUrl) || appUrl);\n      } else {\n        rewrittenUrl = appBase + prevAppUrl;\n      }\n    } else if (isDefined(appUrl = stripBaseUrl(appBaseNoFile, url))) {\n      rewrittenUrl = appBaseNoFile + appUrl;\n    } else if (appBaseNoFile === url + '/') {\n      rewrittenUrl = appBaseNoFile;\n    }\n    if (rewrittenUrl) {\n      this.$$parse(rewrittenUrl);\n    }\n    return !!rewrittenUrl;\n  };\n}\n\n\n/**\n * LocationHashbangUrl represents URL\n * This object is exposed as $location service when developer doesn't opt into html5 mode.\n * It also serves as the base class for html5 mode fallback on legacy browsers.\n *\n * @constructor\n * @param {string} appBase application base URL\n * @param {string} appBaseNoFile application base URL stripped of any filename\n * @param {string} hashPrefix hashbang prefix\n */\nfunction LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {\n\n  parseAbsoluteUrl(appBase, this);\n\n\n  /**\n   * Parse given hashbang URL into properties\n   * @param {string} url Hashbang URL\n   * @private\n   */\n  this.$$parse = function(url) {\n    var withoutBaseUrl = stripBaseUrl(appBase, url) || stripBaseUrl(appBaseNoFile, url);\n    var withoutHashUrl;\n\n    if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {\n\n      // The rest of the URL starts with a hash so we have\n      // got either a hashbang path or a plain hash fragment\n      withoutHashUrl = stripBaseUrl(hashPrefix, withoutBaseUrl);\n      if (isUndefined(withoutHashUrl)) {\n        // There was no hashbang prefix so we just have a hash fragment\n        withoutHashUrl = withoutBaseUrl;\n      }\n\n    } else {\n      // There was no hashbang path nor hash fragment:\n      // If we are in HTML5 mode we use what is left as the path;\n      // Otherwise we ignore what is left\n      if (this.$$html5) {\n        withoutHashUrl = withoutBaseUrl;\n      } else {\n        withoutHashUrl = '';\n        if (isUndefined(withoutBaseUrl)) {\n          appBase = url;\n          this.replace();\n        }\n      }\n    }\n\n    parseAppUrl(withoutHashUrl, this);\n\n    this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);\n\n    this.$$compose();\n\n    /*\n     * In Windows, on an anchor node on documents loaded from\n     * the filesystem, the browser will return a pathname\n     * prefixed with the drive name ('/C:/path') when a\n     * pathname without a drive is set:\n     *  * a.setAttribute('href', '/foo')\n     *   * a.pathname === '/C:/foo' //true\n     *\n     * Inside of Angular, we're always using pathnames that\n     * do not include drive names for routing.\n     */\n    function removeWindowsDriveName(path, url, base) {\n      /*\n      Matches paths for file protocol on windows,\n      such as /C:/foo/bar, and captures only /foo/bar.\n      */\n      var windowsFilePathExp = /^\\/[A-Z]:(\\/.*)/;\n\n      var firstPathSegmentMatch;\n\n      //Get the relative path from the input URL.\n      if (startsWith(url, base)) {\n        url = url.replace(base, '');\n      }\n\n      // The input URL intentionally contains a first path segment that ends with a colon.\n      if (windowsFilePathExp.exec(url)) {\n        return path;\n      }\n\n      firstPathSegmentMatch = windowsFilePathExp.exec(path);\n      return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;\n    }\n  };\n\n  /**\n   * Compose hashbang URL and update `absUrl` property\n   * @private\n   */\n  this.$$compose = function() {\n    var search = toKeyValue(this.$$search),\n        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n    this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');\n  };\n\n  this.$$parseLinkUrl = function(url, relHref) {\n    if (stripHash(appBase) === stripHash(url)) {\n      this.$$parse(url);\n      return true;\n    }\n    return false;\n  };\n}\n\n\n/**\n * LocationHashbangUrl represents URL\n * This object is exposed as $location service when html5 history api is enabled but the browser\n * does not support it.\n *\n * @constructor\n * @param {string} appBase application base URL\n * @param {string} appBaseNoFile application base URL stripped of any filename\n * @param {string} hashPrefix hashbang prefix\n */\nfunction LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {\n  this.$$html5 = true;\n  LocationHashbangUrl.apply(this, arguments);\n\n  this.$$parseLinkUrl = function(url, relHref) {\n    if (relHref && relHref[0] === '#') {\n      // special case for links to hash fragments:\n      // keep the old url and only replace the hash fragment\n      this.hash(relHref.slice(1));\n      return true;\n    }\n\n    var rewrittenUrl;\n    var appUrl;\n\n    if (appBase === stripHash(url)) {\n      rewrittenUrl = url;\n    } else if ((appUrl = stripBaseUrl(appBaseNoFile, url))) {\n      rewrittenUrl = appBase + hashPrefix + appUrl;\n    } else if (appBaseNoFile === url + '/') {\n      rewrittenUrl = appBaseNoFile;\n    }\n    if (rewrittenUrl) {\n      this.$$parse(rewrittenUrl);\n    }\n    return !!rewrittenUrl;\n  };\n\n  this.$$compose = function() {\n    var search = toKeyValue(this.$$search),\n        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n    // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'\n    this.$$absUrl = appBase + hashPrefix + this.$$url;\n  };\n\n}\n\n\nvar locationPrototype = {\n\n  /**\n   * Ensure absolute URL is initialized.\n   * @private\n   */\n  $$absUrl:'',\n\n  /**\n   * Are we in html5 mode?\n   * @private\n   */\n  $$html5: false,\n\n  /**\n   * Has any change been replacing?\n   * @private\n   */\n  $$replace: false,\n\n  /**\n   * @ngdoc method\n   * @name $location#absUrl\n   *\n   * @description\n   * This method is getter only.\n   *\n   * Return full URL representation with all segments encoded according to rules specified in\n   * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var absUrl = $location.absUrl();\n   * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n   * ```\n   *\n   * @return {string} full URL\n   */\n  absUrl: locationGetter('$$absUrl'),\n\n  /**\n   * @ngdoc method\n   * @name $location#url\n   *\n   * @description\n   * This method is getter / setter.\n   *\n   * Return URL (e.g. `/path?a=b#hash`) when called without any parameter.\n   *\n   * Change path, search and hash, when called with parameter and return `$location`.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var url = $location.url();\n   * // => \"/some/path?foo=bar&baz=xoxo\"\n   * ```\n   *\n   * @param {string=} url New URL without base prefix (e.g. `/path?a=b#hash`)\n   * @return {string} url\n   */\n  url: function(url) {\n    if (isUndefined(url)) {\n      return this.$$url;\n    }\n\n    var match = PATH_MATCH.exec(url);\n    if (match[1] || url === '') this.path(decodeURIComponent(match[1]));\n    if (match[2] || match[1] || url === '') this.search(match[3] || '');\n    this.hash(match[5] || '');\n\n    return this;\n  },\n\n  /**\n   * @ngdoc method\n   * @name $location#protocol\n   *\n   * @description\n   * This method is getter only.\n   *\n   * Return protocol of current URL.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var protocol = $location.protocol();\n   * // => \"http\"\n   * ```\n   *\n   * @return {string} protocol of current URL\n   */\n  protocol: locationGetter('$$protocol'),\n\n  /**\n   * @ngdoc method\n   * @name $location#host\n   *\n   * @description\n   * This method is getter only.\n   *\n   * Return host of current URL.\n   *\n   * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var host = $location.host();\n   * // => \"example.com\"\n   *\n   * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n   * host = $location.host();\n   * // => \"example.com\"\n   * host = location.host;\n   * // => \"example.com:8080\"\n   * ```\n   *\n   * @return {string} host of current URL.\n   */\n  host: locationGetter('$$host'),\n\n  /**\n   * @ngdoc method\n   * @name $location#port\n   *\n   * @description\n   * This method is getter only.\n   *\n   * Return port of current URL.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var port = $location.port();\n   * // => 80\n   * ```\n   *\n   * @return {Number} port\n   */\n  port: locationGetter('$$port'),\n\n  /**\n   * @ngdoc method\n   * @name $location#path\n   *\n   * @description\n   * This method is getter / setter.\n   *\n   * Return path of current URL when called without any parameter.\n   *\n   * Change path when called with parameter and return `$location`.\n   *\n   * Note: Path should always begin with forward slash (/), this method will add the forward slash\n   * if it is missing.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var path = $location.path();\n   * // => \"/some/path\"\n   * ```\n   *\n   * @param {(string|number)=} path New path\n   * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter\n   */\n  path: locationGetterSetter('$$path', function(path) {\n    path = path !== null ? path.toString() : '';\n    return path.charAt(0) === '/' ? path : '/' + path;\n  }),\n\n  /**\n   * @ngdoc method\n   * @name $location#search\n   *\n   * @description\n   * This method is getter / setter.\n   *\n   * Return search part (as object) of current URL when called without any parameter.\n   *\n   * Change search part when called with parameter and return `$location`.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n   * var searchObject = $location.search();\n   * // => {foo: 'bar', baz: 'xoxo'}\n   *\n   * // set foo to 'yipee'\n   * $location.search('foo', 'yipee');\n   * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n   * ```\n   *\n   * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n   * hash object.\n   *\n   * When called with a single argument the method acts as a setter, setting the `search` component\n   * of `$location` to the specified value.\n   *\n   * If the argument is a hash object containing an array of values, these values will be encoded\n   * as duplicate search parameters in the URL.\n   *\n   * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`\n   * will override only a single search property.\n   *\n   * If `paramValue` is an array, it will override the property of the `search` component of\n   * `$location` specified via the first argument.\n   *\n   * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n   *\n   * If `paramValue` is `true`, the property specified via the first argument will be added with no\n   * value nor trailing equal sign.\n   *\n   * @return {Object} If called with no arguments returns the parsed `search` object. If called with\n   * one or more arguments returns `$location` object itself.\n   */\n  search: function(search, paramValue) {\n    switch (arguments.length) {\n      case 0:\n        return this.$$search;\n      case 1:\n        if (isString(search) || isNumber(search)) {\n          search = search.toString();\n          this.$$search = parseKeyValue(search);\n        } else if (isObject(search)) {\n          search = copy(search, {});\n          // remove object undefined or null properties\n          forEach(search, function(value, key) {\n            if (value == null) delete search[key];\n          });\n\n          this.$$search = search;\n        } else {\n          throw $locationMinErr('isrcharg',\n              'The first argument of the `$location#search()` call must be a string or an object.');\n        }\n        break;\n      default:\n        if (isUndefined(paramValue) || paramValue === null) {\n          delete this.$$search[search];\n        } else {\n          this.$$search[search] = paramValue;\n        }\n    }\n\n    this.$$compose();\n    return this;\n  },\n\n  /**\n   * @ngdoc method\n   * @name $location#hash\n   *\n   * @description\n   * This method is getter / setter.\n   *\n   * Returns the hash fragment when called without any parameters.\n   *\n   * Changes the hash fragment when called with a parameter and returns `$location`.\n   *\n   *\n   * ```js\n   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n   * var hash = $location.hash();\n   * // => \"hashValue\"\n   * ```\n   *\n   * @param {(string|number)=} hash New hash fragment\n   * @return {string} hash\n   */\n  hash: locationGetterSetter('$$hash', function(hash) {\n    return hash !== null ? hash.toString() : '';\n  }),\n\n  /**\n   * @ngdoc method\n   * @name $location#replace\n   *\n   * @description\n   * If called, all changes to $location during the current `$digest` will replace the current history\n   * record, instead of adding a new one.\n   */\n  replace: function() {\n    this.$$replace = true;\n    return this;\n  }\n};\n\nforEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {\n  Location.prototype = Object.create(locationPrototype);\n\n  /**\n   * @ngdoc method\n   * @name $location#state\n   *\n   * @description\n   * This method is getter / setter.\n   *\n   * Return the history state object when called without any parameter.\n   *\n   * Change the history state object when called with one parameter and return `$location`.\n   * The state object is later passed to `pushState` or `replaceState`.\n   *\n   * NOTE: This method is supported only in HTML5 mode and only in browsers supporting\n   * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support\n   * older browsers (like IE9 or Android < 4.0), don't use this method.\n   *\n   * @param {object=} state State object for pushState or replaceState\n   * @return {object} state\n   */\n  Location.prototype.state = function(state) {\n    if (!arguments.length) {\n      return this.$$state;\n    }\n\n    if (Location !== LocationHtml5Url || !this.$$html5) {\n      throw $locationMinErr('nostate', 'History API state support is available only ' +\n        'in HTML5 mode and only in browsers supporting HTML5 History API');\n    }\n    // The user might modify `stateObject` after invoking `$location.state(stateObject)`\n    // but we're changing the $$state reference to $browser.state() during the $digest\n    // so the modification window is narrow.\n    this.$$state = isUndefined(state) ? null : state;\n\n    return this;\n  };\n});\n\n\nfunction locationGetter(property) {\n  return /** @this */ function() {\n    return this[property];\n  };\n}\n\n\nfunction locationGetterSetter(property, preprocess) {\n  return /** @this */ function(value) {\n    if (isUndefined(value)) {\n      return this[property];\n    }\n\n    this[property] = preprocess(value);\n    this.$$compose();\n\n    return this;\n  };\n}\n\n\n/**\n * @ngdoc service\n * @name $location\n *\n * @requires $rootElement\n *\n * @description\n * The $location service parses the URL in the browser address bar (based on the\n * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL\n * available to your application. Changes to the URL in the address bar are reflected into\n * $location service and changes to $location are reflected into the browser address bar.\n *\n * **The $location service:**\n *\n * - Exposes the current URL in the browser address bar, so you can\n *   - Watch and observe the URL.\n *   - Change the URL.\n * - Synchronizes the URL with the browser when the user\n *   - Changes the address bar.\n *   - Clicks the back or forward button (or clicks a History link).\n *   - Clicks on a link.\n * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).\n *\n * For more information see {@link guide/$location Developer Guide: Using $location}\n */\n\n/**\n * @ngdoc provider\n * @name $locationProvider\n * @this\n *\n * @description\n * Use the `$locationProvider` to configure how the application deep linking paths are stored.\n */\nfunction $LocationProvider() {\n  var hashPrefix = '!',\n      html5Mode = {\n        enabled: false,\n        requireBase: true,\n        rewriteLinks: true\n      };\n\n  /**\n   * @ngdoc method\n   * @name $locationProvider#hashPrefix\n   * @description\n   * The default value for the prefix is `'!'`.\n   * @param {string=} prefix Prefix for hash part (containing path and search)\n   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n   */\n  this.hashPrefix = function(prefix) {\n    if (isDefined(prefix)) {\n      hashPrefix = prefix;\n      return this;\n    } else {\n      return hashPrefix;\n    }\n  };\n\n  /**\n   * @ngdoc method\n   * @name $locationProvider#html5Mode\n   * @description\n   * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.\n   *   If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported\n   *   properties:\n   *   - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to\n   *     change urls where supported. Will fall back to hash-prefixed paths in browsers that do not\n   *     support `pushState`.\n   *   - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies\n   *     whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are\n   *     true, and a base tag is not present, an error will be thrown when `$location` is injected.\n   *     See the {@link guide/$location $location guide for more information}\n   *   - **rewriteLinks** - `{boolean|string}` - (default: `true`) When html5Mode is enabled,\n   *     enables/disables URL rewriting for relative links. If set to a string, URL rewriting will\n   *     only happen on links with an attribute that matches the given string. For example, if set\n   *     to `'internal-link'`, then the URL will only be rewritten for `<a internal-link>` links.\n   *     Note that [attribute name normalization](guide/directive#normalization) does not apply\n   *     here, so `'internalLink'` will **not** match `'internal-link'`.\n   *\n   * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter\n   */\n  this.html5Mode = function(mode) {\n    if (isBoolean(mode)) {\n      html5Mode.enabled = mode;\n      return this;\n    } else if (isObject(mode)) {\n\n      if (isBoolean(mode.enabled)) {\n        html5Mode.enabled = mode.enabled;\n      }\n\n      if (isBoolean(mode.requireBase)) {\n        html5Mode.requireBase = mode.requireBase;\n      }\n\n      if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) {\n        html5Mode.rewriteLinks = mode.rewriteLinks;\n      }\n\n      return this;\n    } else {\n      return html5Mode;\n    }\n  };\n\n  /**\n   * @ngdoc event\n   * @name $location#$locationChangeStart\n   * @eventType broadcast on root scope\n   * @description\n   * Broadcasted before a URL will change.\n   *\n   * This change can be prevented by calling\n   * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more\n   * details about event object. Upon successful change\n   * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.\n   *\n   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n   * the browser supports the HTML5 History API.\n   *\n   * @param {Object} angularEvent Synthetic event object.\n   * @param {string} newUrl New URL\n   * @param {string=} oldUrl URL that was before it was changed.\n   * @param {string=} newState New history state object\n   * @param {string=} oldState History state object that was before it was changed.\n   */\n\n  /**\n   * @ngdoc event\n   * @name $location#$locationChangeSuccess\n   * @eventType broadcast on root scope\n   * @description\n   * Broadcasted after a URL was changed.\n   *\n   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n   * the browser supports the HTML5 History API.\n   *\n   * @param {Object} angularEvent Synthetic event object.\n   * @param {string} newUrl New URL\n   * @param {string=} oldUrl URL that was before it was changed.\n   * @param {string=} newState New history state object\n   * @param {string=} oldState History state object that was before it was changed.\n   */\n\n  this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',\n      function($rootScope, $browser, $sniffer, $rootElement, $window) {\n    var $location,\n        LocationMode,\n        baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''\n        initialUrl = $browser.url(),\n        appBase;\n\n    if (html5Mode.enabled) {\n      if (!baseHref && html5Mode.requireBase) {\n        throw $locationMinErr('nobase',\n          '$location in HTML5 mode requires a <base> tag to be present!');\n      }\n      appBase = serverBase(initialUrl) + (baseHref || '/');\n      LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;\n    } else {\n      appBase = stripHash(initialUrl);\n      LocationMode = LocationHashbangUrl;\n    }\n    var appBaseNoFile = stripFile(appBase);\n\n    $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);\n    $location.$$parseLinkUrl(initialUrl, initialUrl);\n\n    $location.$$state = $browser.state();\n\n    var IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\n\n    function setBrowserUrlWithFallback(url, replace, state) {\n      var oldUrl = $location.url();\n      var oldState = $location.$$state;\n      try {\n        $browser.url(url, replace, state);\n\n        // Make sure $location.state() returns referentially identical (not just deeply equal)\n        // state object; this makes possible quick checking if the state changed in the digest\n        // loop. Checking deep equality would be too expensive.\n        $location.$$state = $browser.state();\n      } catch (e) {\n        // Restore old values if pushState fails\n        $location.url(oldUrl);\n        $location.$$state = oldState;\n\n        throw e;\n      }\n    }\n\n    $rootElement.on('click', function(event) {\n      var rewriteLinks = html5Mode.rewriteLinks;\n      // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)\n      // currently we open nice url link and redirect then\n\n      if (!rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 || event.button === 2) return;\n\n      var elm = jqLite(event.target);\n\n      // traverse the DOM up to find first A tag\n      while (nodeName_(elm[0]) !== 'a') {\n        // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n        if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;\n      }\n\n      if (isString(rewriteLinks) && isUndefined(elm.attr(rewriteLinks))) return;\n\n      var absHref = elm.prop('href');\n      // get the actual href attribute - see\n      // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx\n      var relHref = elm.attr('href') || elm.attr('xlink:href');\n\n      if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {\n        // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during\n        // an animation.\n        absHref = urlResolve(absHref.animVal).href;\n      }\n\n      // Ignore when url is started with javascript: or mailto:\n      if (IGNORE_URI_REGEXP.test(absHref)) return;\n\n      if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {\n        if ($location.$$parseLinkUrl(absHref, relHref)) {\n          // We do a preventDefault for all urls that are part of the angular application,\n          // in html5mode and also without, so that we are able to abort navigation without\n          // getting double entries in the location history.\n          event.preventDefault();\n          // update location manually\n          if ($location.absUrl() !== $browser.url()) {\n            $rootScope.$apply();\n            // hack to work around FF6 bug 684208 when scenario runner clicks on links\n            $window.angular['ff-684208-preventDefault'] = true;\n          }\n        }\n      }\n    });\n\n\n    // rewrite hashbang url <> html5 url\n    if (trimEmptyHash($location.absUrl()) !== trimEmptyHash(initialUrl)) {\n      $browser.url($location.absUrl(), true);\n    }\n\n    var initializing = true;\n\n    // update $location when $browser url changes\n    $browser.onUrlChange(function(newUrl, newState) {\n\n      if (!startsWith(newUrl, appBaseNoFile)) {\n        // If we are navigating outside of the app then force a reload\n        $window.location.href = newUrl;\n        return;\n      }\n\n      $rootScope.$evalAsync(function() {\n        var oldUrl = $location.absUrl();\n        var oldState = $location.$$state;\n        var defaultPrevented;\n        newUrl = trimEmptyHash(newUrl);\n        $location.$$parse(newUrl);\n        $location.$$state = newState;\n\n        defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n            newState, oldState).defaultPrevented;\n\n        // if the location was changed by a `$locationChangeStart` handler then stop\n        // processing this location change\n        if ($location.absUrl() !== newUrl) return;\n\n        if (defaultPrevented) {\n          $location.$$parse(oldUrl);\n          $location.$$state = oldState;\n          setBrowserUrlWithFallback(oldUrl, false, oldState);\n        } else {\n          initializing = false;\n          afterLocationChange(oldUrl, oldState);\n        }\n      });\n      if (!$rootScope.$$phase) $rootScope.$digest();\n    });\n\n    // update browser\n    $rootScope.$watch(function $locationWatch() {\n      var oldUrl = trimEmptyHash($browser.url());\n      var newUrl = trimEmptyHash($location.absUrl());\n      var oldState = $browser.state();\n      var currentReplace = $location.$$replace;\n      var urlOrStateChanged = oldUrl !== newUrl ||\n        ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);\n\n      if (initializing || urlOrStateChanged) {\n        initializing = false;\n\n        $rootScope.$evalAsync(function() {\n          var newUrl = $location.absUrl();\n          var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n              $location.$$state, oldState).defaultPrevented;\n\n          // if the location was changed by a `$locationChangeStart` handler then stop\n          // processing this location change\n          if ($location.absUrl() !== newUrl) return;\n\n          if (defaultPrevented) {\n            $location.$$parse(oldUrl);\n            $location.$$state = oldState;\n          } else {\n            if (urlOrStateChanged) {\n              setBrowserUrlWithFallback(newUrl, currentReplace,\n                                        oldState === $location.$$state ? null : $location.$$state);\n            }\n            afterLocationChange(oldUrl, oldState);\n          }\n        });\n      }\n\n      $location.$$replace = false;\n\n      // we don't need to return anything because $evalAsync will make the digest loop dirty when\n      // there is a change\n    });\n\n    return $location;\n\n    function afterLocationChange(oldUrl, oldState) {\n      $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,\n        $location.$$state, oldState);\n    }\n}];\n}\n\n/**\n * @ngdoc service\n * @name $log\n * @requires $window\n *\n * @description\n * Simple service for logging. Default implementation safely writes the message\n * into the browser's console (if present).\n *\n * The main purpose of this service is to simplify debugging and troubleshooting.\n *\n * The default is to log `debug` messages. You can use\n * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.\n *\n * @example\n   <example module=\"logExample\" name=\"log-service\">\n     <file name=\"script.js\">\n       angular.module('logExample', [])\n         .controller('LogController', ['$scope', '$log', function($scope, $log) {\n           $scope.$log = $log;\n           $scope.message = 'Hello World!';\n         }]);\n     </file>\n     <file name=\"index.html\">\n       <div ng-controller=\"LogController\">\n         <p>Reload this page with open console, enter text and hit the log button...</p>\n         <label>Message:\n         <input type=\"text\" ng-model=\"message\" /></label>\n         <button ng-click=\"$log.log(message)\">log</button>\n         <button ng-click=\"$log.warn(message)\">warn</button>\n         <button ng-click=\"$log.info(message)\">info</button>\n         <button ng-click=\"$log.error(message)\">error</button>\n         <button ng-click=\"$log.debug(message)\">debug</button>\n       </div>\n     </file>\n   </example>\n */\n\n/**\n * @ngdoc provider\n * @name $logProvider\n * @this\n *\n * @description\n * Use the `$logProvider` to configure how the application logs messages\n */\nfunction $LogProvider() {\n  var debug = true,\n      self = this;\n\n  /**\n   * @ngdoc method\n   * @name $logProvider#debugEnabled\n   * @description\n   * @param {boolean=} flag enable or disable debug level messages\n   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n   */\n  this.debugEnabled = function(flag) {\n    if (isDefined(flag)) {\n      debug = flag;\n    return this;\n    } else {\n      return debug;\n    }\n  };\n\n  this.$get = ['$window', function($window) {\n    return {\n      /**\n       * @ngdoc method\n       * @name $log#log\n       *\n       * @description\n       * Write a log message\n       */\n      log: consoleLog('log'),\n\n      /**\n       * @ngdoc method\n       * @name $log#info\n       *\n       * @description\n       * Write an information message\n       */\n      info: consoleLog('info'),\n\n      /**\n       * @ngdoc method\n       * @name $log#warn\n       *\n       * @description\n       * Write a warning message\n       */\n      warn: consoleLog('warn'),\n\n      /**\n       * @ngdoc method\n       * @name $log#error\n       *\n       * @description\n       * Write an error message\n       */\n      error: consoleLog('error'),\n\n      /**\n       * @ngdoc method\n       * @name $log#debug\n       *\n       * @description\n       * Write a debug message\n       */\n      debug: (function() {\n        var fn = consoleLog('debug');\n\n        return function() {\n          if (debug) {\n            fn.apply(self, arguments);\n          }\n        };\n      })()\n    };\n\n    function formatError(arg) {\n      if (arg instanceof Error) {\n        if (arg.stack) {\n          arg = (arg.message && arg.stack.indexOf(arg.message) === -1)\n              ? 'Error: ' + arg.message + '\\n' + arg.stack\n              : arg.stack;\n        } else if (arg.sourceURL) {\n          arg = arg.message + '\\n' + arg.sourceURL + ':' + arg.line;\n        }\n      }\n      return arg;\n    }\n\n    function consoleLog(type) {\n      var console = $window.console || {},\n          logFn = console[type] || console.log || noop,\n          hasApply = false;\n\n      // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.\n      // The reason behind this is that console.log has type \"object\" in IE8...\n      try {\n        hasApply = !!logFn.apply;\n      } catch (e) { /* empty */ }\n\n      if (hasApply) {\n        return function() {\n          var args = [];\n          forEach(arguments, function(arg) {\n            args.push(formatError(arg));\n          });\n          return logFn.apply(console, args);\n        };\n      }\n\n      // we are IE which either doesn't have window.console => this is noop and we do nothing,\n      // or we are IE where console.log doesn't have apply so we log at least first 2 args\n      return function(arg1, arg2) {\n        logFn(arg1, arg2 == null ? '' : arg2);\n      };\n    }\n  }];\n}\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n *     Any commits to this file should be reviewed with security in mind.  *\n *   Changes to this file can potentially create security vulnerabilities. *\n *          An approval from 2 Core members with history of modifying      *\n *                         this file is required.                          *\n *                                                                         *\n *  Does the change somehow allow for arbitrary javascript to be executed? *\n *    Or allows for someone to change the prototype of built-in objects?   *\n *     Or gives undesired access to variables likes document or window?    *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\nvar $parseMinErr = minErr('$parse');\n\nvar objectValueOf = {}.constructor.prototype.valueOf;\n\n// Sandboxing Angular Expressions\n// ------------------------------\n// Angular expressions are no longer sandboxed. So it is now even easier to access arbitrary JS code by\n// various means such as obtaining a reference to native JS functions like the Function constructor.\n//\n// As an example, consider the following Angular expression:\n//\n//   {}.toString.constructor('alert(\"evil JS code\")')\n//\n// It is important to realize that if you create an expression from a string that contains user provided\n// content then it is possible that your application contains a security vulnerability to an XSS style attack.\n//\n// See https://docs.angularjs.org/guide/security\n\n\nfunction getStringValue(name) {\n  // Property names must be strings. This means that non-string objects cannot be used\n  // as keys in an object. Any non-string object, including a number, is typecasted\n  // into a string via the toString method.\n  // -- MDN, https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors#Property_names\n  //\n  // So, to ensure that we are checking the same `name` that JavaScript would use, we cast it\n  // to a string. It's not always possible. If `name` is an object and its `toString` method is\n  // 'broken' (doesn't return a string, isn't a function, etc.), an error will be thrown:\n  //\n  // TypeError: Cannot convert object to primitive value\n  //\n  // For performance reasons, we don't catch this error here and allow it to propagate up the call\n  // stack. Note that you'll get the same error in JavaScript if you try to access a property using\n  // such a 'broken' object as a key.\n  return name + '';\n}\n\n\nvar OPERATORS = createMap();\nforEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });\nvar ESCAPE = {'n':'\\n', 'f':'\\f', 'r':'\\r', 't':'\\t', 'v':'\\v', '\\'':'\\'', '\"':'\"'};\n\n\n/////////////////////////////////////////\n\n\n/**\n * @constructor\n */\nvar Lexer = function Lexer(options) {\n  this.options = options;\n};\n\nLexer.prototype = {\n  constructor: Lexer,\n\n  lex: function(text) {\n    this.text = text;\n    this.index = 0;\n    this.tokens = [];\n\n    while (this.index < this.text.length) {\n      var ch = this.text.charAt(this.index);\n      if (ch === '\"' || ch === '\\'') {\n        this.readString(ch);\n      } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {\n        this.readNumber();\n      } else if (this.isIdentifierStart(this.peekMultichar())) {\n        this.readIdent();\n      } else if (this.is(ch, '(){}[].,;:?')) {\n        this.tokens.push({index: this.index, text: ch});\n        this.index++;\n      } else if (this.isWhitespace(ch)) {\n        this.index++;\n      } else {\n        var ch2 = ch + this.peek();\n        var ch3 = ch2 + this.peek(2);\n        var op1 = OPERATORS[ch];\n        var op2 = OPERATORS[ch2];\n        var op3 = OPERATORS[ch3];\n        if (op1 || op2 || op3) {\n          var token = op3 ? ch3 : (op2 ? ch2 : ch);\n          this.tokens.push({index: this.index, text: token, operator: true});\n          this.index += token.length;\n        } else {\n          this.throwError('Unexpected next character ', this.index, this.index + 1);\n        }\n      }\n    }\n    return this.tokens;\n  },\n\n  is: function(ch, chars) {\n    return chars.indexOf(ch) !== -1;\n  },\n\n  peek: function(i) {\n    var num = i || 1;\n    return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;\n  },\n\n  isNumber: function(ch) {\n    return ('0' <= ch && ch <= '9') && typeof ch === 'string';\n  },\n\n  isWhitespace: function(ch) {\n    // IE treats non-breaking space as \\u00A0\n    return (ch === ' ' || ch === '\\r' || ch === '\\t' ||\n            ch === '\\n' || ch === '\\v' || ch === '\\u00A0');\n  },\n\n  isIdentifierStart: function(ch) {\n    return this.options.isIdentifierStart ?\n        this.options.isIdentifierStart(ch, this.codePointAt(ch)) :\n        this.isValidIdentifierStart(ch);\n  },\n\n  isValidIdentifierStart: function(ch) {\n    return ('a' <= ch && ch <= 'z' ||\n            'A' <= ch && ch <= 'Z' ||\n            '_' === ch || ch === '$');\n  },\n\n  isIdentifierContinue: function(ch) {\n    return this.options.isIdentifierContinue ?\n        this.options.isIdentifierContinue(ch, this.codePointAt(ch)) :\n        this.isValidIdentifierContinue(ch);\n  },\n\n  isValidIdentifierContinue: function(ch, cp) {\n    return this.isValidIdentifierStart(ch, cp) || this.isNumber(ch);\n  },\n\n  codePointAt: function(ch) {\n    if (ch.length === 1) return ch.charCodeAt(0);\n    // eslint-disable-next-line no-bitwise\n    return (ch.charCodeAt(0) << 10) + ch.charCodeAt(1) - 0x35FDC00;\n  },\n\n  peekMultichar: function() {\n    var ch = this.text.charAt(this.index);\n    var peek = this.peek();\n    if (!peek) {\n      return ch;\n    }\n    var cp1 = ch.charCodeAt(0);\n    var cp2 = peek.charCodeAt(0);\n    if (cp1 >= 0xD800 && cp1 <= 0xDBFF && cp2 >= 0xDC00 && cp2 <= 0xDFFF) {\n      return ch + peek;\n    }\n    return ch;\n  },\n\n  isExpOperator: function(ch) {\n    return (ch === '-' || ch === '+' || this.isNumber(ch));\n  },\n\n  throwError: function(error, start, end) {\n    end = end || this.index;\n    var colStr = (isDefined(start)\n            ? 's ' + start +  '-' + this.index + ' [' + this.text.substring(start, end) + ']'\n            : ' ' + end);\n    throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',\n        error, colStr, this.text);\n  },\n\n  readNumber: function() {\n    var number = '';\n    var start = this.index;\n    while (this.index < this.text.length) {\n      var ch = lowercase(this.text.charAt(this.index));\n      if (ch === '.' || this.isNumber(ch)) {\n        number += ch;\n      } else {\n        var peekCh = this.peek();\n        if (ch === 'e' && this.isExpOperator(peekCh)) {\n          number += ch;\n        } else if (this.isExpOperator(ch) &&\n            peekCh && this.isNumber(peekCh) &&\n            number.charAt(number.length - 1) === 'e') {\n          number += ch;\n        } else if (this.isExpOperator(ch) &&\n            (!peekCh || !this.isNumber(peekCh)) &&\n            number.charAt(number.length - 1) === 'e') {\n          this.throwError('Invalid exponent');\n        } else {\n          break;\n        }\n      }\n      this.index++;\n    }\n    this.tokens.push({\n      index: start,\n      text: number,\n      constant: true,\n      value: Number(number)\n    });\n  },\n\n  readIdent: function() {\n    var start = this.index;\n    this.index += this.peekMultichar().length;\n    while (this.index < this.text.length) {\n      var ch = this.peekMultichar();\n      if (!this.isIdentifierContinue(ch)) {\n        break;\n      }\n      this.index += ch.length;\n    }\n    this.tokens.push({\n      index: start,\n      text: this.text.slice(start, this.index),\n      identifier: true\n    });\n  },\n\n  readString: function(quote) {\n    var start = this.index;\n    this.index++;\n    var string = '';\n    var rawString = quote;\n    var escape = false;\n    while (this.index < this.text.length) {\n      var ch = this.text.charAt(this.index);\n      rawString += ch;\n      if (escape) {\n        if (ch === 'u') {\n          var hex = this.text.substring(this.index + 1, this.index + 5);\n          if (!hex.match(/[\\da-f]{4}/i)) {\n            this.throwError('Invalid unicode escape [\\\\u' + hex + ']');\n          }\n          this.index += 4;\n          string += String.fromCharCode(parseInt(hex, 16));\n        } else {\n          var rep = ESCAPE[ch];\n          string = string + (rep || ch);\n        }\n        escape = false;\n      } else if (ch === '\\\\') {\n        escape = true;\n      } else if (ch === quote) {\n        this.index++;\n        this.tokens.push({\n          index: start,\n          text: rawString,\n          constant: true,\n          value: string\n        });\n        return;\n      } else {\n        string += ch;\n      }\n      this.index++;\n    }\n    this.throwError('Unterminated quote', start);\n  }\n};\n\nvar AST = function AST(lexer, options) {\n  this.lexer = lexer;\n  this.options = options;\n};\n\nAST.Program = 'Program';\nAST.ExpressionStatement = 'ExpressionStatement';\nAST.AssignmentExpression = 'AssignmentExpression';\nAST.ConditionalExpression = 'ConditionalExpression';\nAST.LogicalExpression = 'LogicalExpression';\nAST.BinaryExpression = 'BinaryExpression';\nAST.UnaryExpression = 'UnaryExpression';\nAST.CallExpression = 'CallExpression';\nAST.MemberExpression = 'MemberExpression';\nAST.Identifier = 'Identifier';\nAST.Literal = 'Literal';\nAST.ArrayExpression = 'ArrayExpression';\nAST.Property = 'Property';\nAST.ObjectExpression = 'ObjectExpression';\nAST.ThisExpression = 'ThisExpression';\nAST.LocalsExpression = 'LocalsExpression';\n\n// Internal use only\nAST.NGValueParameter = 'NGValueParameter';\n\nAST.prototype = {\n  ast: function(text) {\n    this.text = text;\n    this.tokens = this.lexer.lex(text);\n\n    var value = this.program();\n\n    if (this.tokens.length !== 0) {\n      this.throwError('is an unexpected token', this.tokens[0]);\n    }\n\n    return value;\n  },\n\n  program: function() {\n    var body = [];\n    while (true) {\n      if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))\n        body.push(this.expressionStatement());\n      if (!this.expect(';')) {\n        return { type: AST.Program, body: body};\n      }\n    }\n  },\n\n  expressionStatement: function() {\n    return { type: AST.ExpressionStatement, expression: this.filterChain() };\n  },\n\n  filterChain: function() {\n    var left = this.expression();\n    while (this.expect('|')) {\n      left = this.filter(left);\n    }\n    return left;\n  },\n\n  expression: function() {\n    return this.assignment();\n  },\n\n  assignment: function() {\n    var result = this.ternary();\n    if (this.expect('=')) {\n      if (!isAssignable(result)) {\n        throw $parseMinErr('lval', 'Trying to assign a value to a non l-value');\n      }\n\n      result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='};\n    }\n    return result;\n  },\n\n  ternary: function() {\n    var test = this.logicalOR();\n    var alternate;\n    var consequent;\n    if (this.expect('?')) {\n      alternate = this.expression();\n      if (this.consume(':')) {\n        consequent = this.expression();\n        return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent};\n      }\n    }\n    return test;\n  },\n\n  logicalOR: function() {\n    var left = this.logicalAND();\n    while (this.expect('||')) {\n      left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };\n    }\n    return left;\n  },\n\n  logicalAND: function() {\n    var left = this.equality();\n    while (this.expect('&&')) {\n      left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()};\n    }\n    return left;\n  },\n\n  equality: function() {\n    var left = this.relational();\n    var token;\n    while ((token = this.expect('==','!=','===','!=='))) {\n      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };\n    }\n    return left;\n  },\n\n  relational: function() {\n    var left = this.additive();\n    var token;\n    while ((token = this.expect('<', '>', '<=', '>='))) {\n      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };\n    }\n    return left;\n  },\n\n  additive: function() {\n    var left = this.multiplicative();\n    var token;\n    while ((token = this.expect('+','-'))) {\n      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };\n    }\n    return left;\n  },\n\n  multiplicative: function() {\n    var left = this.unary();\n    var token;\n    while ((token = this.expect('*','/','%'))) {\n      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };\n    }\n    return left;\n  },\n\n  unary: function() {\n    var token;\n    if ((token = this.expect('+', '-', '!'))) {\n      return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };\n    } else {\n      return this.primary();\n    }\n  },\n\n  primary: function() {\n    var primary;\n    if (this.expect('(')) {\n      primary = this.filterChain();\n      this.consume(')');\n    } else if (this.expect('[')) {\n      primary = this.arrayDeclaration();\n    } else if (this.expect('{')) {\n      primary = this.object();\n    } else if (this.selfReferential.hasOwnProperty(this.peek().text)) {\n      primary = copy(this.selfReferential[this.consume().text]);\n    } else if (this.options.literals.hasOwnProperty(this.peek().text)) {\n      primary = { type: AST.Literal, value: this.options.literals[this.consume().text]};\n    } else if (this.peek().identifier) {\n      primary = this.identifier();\n    } else if (this.peek().constant) {\n      primary = this.constant();\n    } else {\n      this.throwError('not a primary expression', this.peek());\n    }\n\n    var next;\n    while ((next = this.expect('(', '[', '.'))) {\n      if (next.text === '(') {\n        primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };\n        this.consume(')');\n      } else if (next.text === '[') {\n        primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };\n        this.consume(']');\n      } else if (next.text === '.') {\n        primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };\n      } else {\n        this.throwError('IMPOSSIBLE');\n      }\n    }\n    return primary;\n  },\n\n  filter: function(baseExpression) {\n    var args = [baseExpression];\n    var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true};\n\n    while (this.expect(':')) {\n      args.push(this.expression());\n    }\n\n    return result;\n  },\n\n  parseArguments: function() {\n    var args = [];\n    if (this.peekToken().text !== ')') {\n      do {\n        args.push(this.filterChain());\n      } while (this.expect(','));\n    }\n    return args;\n  },\n\n  identifier: function() {\n    var token = this.consume();\n    if (!token.identifier) {\n      this.throwError('is not a valid identifier', token);\n    }\n    return { type: AST.Identifier, name: token.text };\n  },\n\n  constant: function() {\n    // TODO check that it is a constant\n    return { type: AST.Literal, value: this.consume().value };\n  },\n\n  arrayDeclaration: function() {\n    var elements = [];\n    if (this.peekToken().text !== ']') {\n      do {\n        if (this.peek(']')) {\n          // Support trailing commas per ES5.1.\n          break;\n        }\n        elements.push(this.expression());\n      } while (this.expect(','));\n    }\n    this.consume(']');\n\n    return { type: AST.ArrayExpression, elements: elements };\n  },\n\n  object: function() {\n    var properties = [], property;\n    if (this.peekToken().text !== '}') {\n      do {\n        if (this.peek('}')) {\n          // Support trailing commas per ES5.1.\n          break;\n        }\n        property = {type: AST.Property, kind: 'init'};\n        if (this.peek().constant) {\n          property.key = this.constant();\n          property.computed = false;\n          this.consume(':');\n          property.value = this.expression();\n        } else if (this.peek().identifier) {\n          property.key = this.identifier();\n          property.computed = false;\n          if (this.peek(':')) {\n            this.consume(':');\n            property.value = this.expression();\n          } else {\n            property.value = property.key;\n          }\n        } else if (this.peek('[')) {\n          this.consume('[');\n          property.key = this.expression();\n          this.consume(']');\n          property.computed = true;\n          this.consume(':');\n          property.value = this.expression();\n        } else {\n          this.throwError('invalid key', this.peek());\n        }\n        properties.push(property);\n      } while (this.expect(','));\n    }\n    this.consume('}');\n\n    return {type: AST.ObjectExpression, properties: properties };\n  },\n\n  throwError: function(msg, token) {\n    throw $parseMinErr('syntax',\n        'Syntax Error: Token \\'{0}\\' {1} at column {2} of the expression [{3}] starting at [{4}].',\n          token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));\n  },\n\n  consume: function(e1) {\n    if (this.tokens.length === 0) {\n      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n    }\n\n    var token = this.expect(e1);\n    if (!token) {\n      this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());\n    }\n    return token;\n  },\n\n  peekToken: function() {\n    if (this.tokens.length === 0) {\n      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n    }\n    return this.tokens[0];\n  },\n\n  peek: function(e1, e2, e3, e4) {\n    return this.peekAhead(0, e1, e2, e3, e4);\n  },\n\n  peekAhead: function(i, e1, e2, e3, e4) {\n    if (this.tokens.length > i) {\n      var token = this.tokens[i];\n      var t = token.text;\n      if (t === e1 || t === e2 || t === e3 || t === e4 ||\n          (!e1 && !e2 && !e3 && !e4)) {\n        return token;\n      }\n    }\n    return false;\n  },\n\n  expect: function(e1, e2, e3, e4) {\n    var token = this.peek(e1, e2, e3, e4);\n    if (token) {\n      this.tokens.shift();\n      return token;\n    }\n    return false;\n  },\n\n  selfReferential: {\n    'this': {type: AST.ThisExpression },\n    '$locals': {type: AST.LocalsExpression }\n  }\n};\n\nfunction ifDefined(v, d) {\n  return typeof v !== 'undefined' ? v : d;\n}\n\nfunction plusFn(l, r) {\n  if (typeof l === 'undefined') return r;\n  if (typeof r === 'undefined') return l;\n  return l + r;\n}\n\nfunction isStateless($filter, filterName) {\n  var fn = $filter(filterName);\n  return !fn.$stateful;\n}\n\nfunction findConstantAndWatchExpressions(ast, $filter) {\n  var allConstants;\n  var argsToWatch;\n  var isStatelessFilter;\n  switch (ast.type) {\n  case AST.Program:\n    allConstants = true;\n    forEach(ast.body, function(expr) {\n      findConstantAndWatchExpressions(expr.expression, $filter);\n      allConstants = allConstants && expr.expression.constant;\n    });\n    ast.constant = allConstants;\n    break;\n  case AST.Literal:\n    ast.constant = true;\n    ast.toWatch = [];\n    break;\n  case AST.UnaryExpression:\n    findConstantAndWatchExpressions(ast.argument, $filter);\n    ast.constant = ast.argument.constant;\n    ast.toWatch = ast.argument.toWatch;\n    break;\n  case AST.BinaryExpression:\n    findConstantAndWatchExpressions(ast.left, $filter);\n    findConstantAndWatchExpressions(ast.right, $filter);\n    ast.constant = ast.left.constant && ast.right.constant;\n    ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);\n    break;\n  case AST.LogicalExpression:\n    findConstantAndWatchExpressions(ast.left, $filter);\n    findConstantAndWatchExpressions(ast.right, $filter);\n    ast.constant = ast.left.constant && ast.right.constant;\n    ast.toWatch = ast.constant ? [] : [ast];\n    break;\n  case AST.ConditionalExpression:\n    findConstantAndWatchExpressions(ast.test, $filter);\n    findConstantAndWatchExpressions(ast.alternate, $filter);\n    findConstantAndWatchExpressions(ast.consequent, $filter);\n    ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;\n    ast.toWatch = ast.constant ? [] : [ast];\n    break;\n  case AST.Identifier:\n    ast.constant = false;\n    ast.toWatch = [ast];\n    break;\n  case AST.MemberExpression:\n    findConstantAndWatchExpressions(ast.object, $filter);\n    if (ast.computed) {\n      findConstantAndWatchExpressions(ast.property, $filter);\n    }\n    ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);\n    ast.toWatch = [ast];\n    break;\n  case AST.CallExpression:\n    isStatelessFilter = ast.filter ? isStateless($filter, ast.callee.name) : false;\n    allConstants = isStatelessFilter;\n    argsToWatch = [];\n    forEach(ast.arguments, function(expr) {\n      findConstantAndWatchExpressions(expr, $filter);\n      allConstants = allConstants && expr.constant;\n      if (!expr.constant) {\n        argsToWatch.push.apply(argsToWatch, expr.toWatch);\n      }\n    });\n    ast.constant = allConstants;\n    ast.toWatch = isStatelessFilter ? argsToWatch : [ast];\n    break;\n  case AST.AssignmentExpression:\n    findConstantAndWatchExpressions(ast.left, $filter);\n    findConstantAndWatchExpressions(ast.right, $filter);\n    ast.constant = ast.left.constant && ast.right.constant;\n    ast.toWatch = [ast];\n    break;\n  case AST.ArrayExpression:\n    allConstants = true;\n    argsToWatch = [];\n    forEach(ast.elements, function(expr) {\n      findConstantAndWatchExpressions(expr, $filter);\n      allConstants = allConstants && expr.constant;\n      if (!expr.constant) {\n        argsToWatch.push.apply(argsToWatch, expr.toWatch);\n      }\n    });\n    ast.constant = allConstants;\n    ast.toWatch = argsToWatch;\n    break;\n  case AST.ObjectExpression:\n    allConstants = true;\n    argsToWatch = [];\n    forEach(ast.properties, function(property) {\n      findConstantAndWatchExpressions(property.value, $filter);\n      allConstants = allConstants && property.value.constant && !property.computed;\n      if (!property.value.constant) {\n        argsToWatch.push.apply(argsToWatch, property.value.toWatch);\n      }\n    });\n    ast.constant = allConstants;\n    ast.toWatch = argsToWatch;\n    break;\n  case AST.ThisExpression:\n    ast.constant = false;\n    ast.toWatch = [];\n    break;\n  case AST.LocalsExpression:\n    ast.constant = false;\n    ast.toWatch = [];\n    break;\n  }\n}\n\nfunction getInputs(body) {\n  if (body.length !== 1) return;\n  var lastExpression = body[0].expression;\n  var candidate = lastExpression.toWatch;\n  if (candidate.length !== 1) return candidate;\n  return candidate[0] !== lastExpression ? candidate : undefined;\n}\n\nfunction isAssignable(ast) {\n  return ast.type === AST.Identifier || ast.type === AST.MemberExpression;\n}\n\nfunction assignableAST(ast) {\n  if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {\n    return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='};\n  }\n}\n\nfunction isLiteral(ast) {\n  return ast.body.length === 0 ||\n      ast.body.length === 1 && (\n      ast.body[0].expression.type === AST.Literal ||\n      ast.body[0].expression.type === AST.ArrayExpression ||\n      ast.body[0].expression.type === AST.ObjectExpression);\n}\n\nfunction isConstant(ast) {\n  return ast.constant;\n}\n\nfunction ASTCompiler(astBuilder, $filter) {\n  this.astBuilder = astBuilder;\n  this.$filter = $filter;\n}\n\nASTCompiler.prototype = {\n  compile: function(expression) {\n    var self = this;\n    var ast = this.astBuilder.ast(expression);\n    this.state = {\n      nextId: 0,\n      filters: {},\n      fn: {vars: [], body: [], own: {}},\n      assign: {vars: [], body: [], own: {}},\n      inputs: []\n    };\n    findConstantAndWatchExpressions(ast, self.$filter);\n    var extra = '';\n    var assignable;\n    this.stage = 'assign';\n    if ((assignable = assignableAST(ast))) {\n      this.state.computing = 'assign';\n      var result = this.nextId();\n      this.recurse(assignable, result);\n      this.return_(result);\n      extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');\n    }\n    var toWatch = getInputs(ast.body);\n    self.stage = 'inputs';\n    forEach(toWatch, function(watch, key) {\n      var fnKey = 'fn' + key;\n      self.state[fnKey] = {vars: [], body: [], own: {}};\n      self.state.computing = fnKey;\n      var intoId = self.nextId();\n      self.recurse(watch, intoId);\n      self.return_(intoId);\n      self.state.inputs.push(fnKey);\n      watch.watchId = key;\n    });\n    this.state.computing = 'fn';\n    this.stage = 'main';\n    this.recurse(ast);\n    var fnString =\n      // The build and minification steps remove the string \"use strict\" from the code, but this is done using a regex.\n      // This is a workaround for this until we do a better job at only removing the prefix only when we should.\n      '\"' + this.USE + ' ' + this.STRICT + '\";\\n' +\n      this.filterPrefix() +\n      'var fn=' + this.generateFunction('fn', 's,l,a,i') +\n      extra +\n      this.watchFns() +\n      'return fn;';\n\n    // eslint-disable-next-line no-new-func\n    var fn = (new Function('$filter',\n        'getStringValue',\n        'ifDefined',\n        'plus',\n        fnString))(\n          this.$filter,\n          getStringValue,\n          ifDefined,\n          plusFn);\n    this.state = this.stage = undefined;\n    fn.literal = isLiteral(ast);\n    fn.constant = isConstant(ast);\n    return fn;\n  },\n\n  USE: 'use',\n\n  STRICT: 'strict',\n\n  watchFns: function() {\n    var result = [];\n    var fns = this.state.inputs;\n    var self = this;\n    forEach(fns, function(name) {\n      result.push('var ' + name + '=' + self.generateFunction(name, 's'));\n    });\n    if (fns.length) {\n      result.push('fn.inputs=[' + fns.join(',') + '];');\n    }\n    return result.join('');\n  },\n\n  generateFunction: function(name, params) {\n    return 'function(' + params + '){' +\n        this.varsPrefix(name) +\n        this.body(name) +\n        '};';\n  },\n\n  filterPrefix: function() {\n    var parts = [];\n    var self = this;\n    forEach(this.state.filters, function(id, filter) {\n      parts.push(id + '=$filter(' + self.escape(filter) + ')');\n    });\n    if (parts.length) return 'var ' + parts.join(',') + ';';\n    return '';\n  },\n\n  varsPrefix: function(section) {\n    return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';\n  },\n\n  body: function(section) {\n    return this.state[section].body.join('');\n  },\n\n  recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n    var left, right, self = this, args, expression, computed;\n    recursionFn = recursionFn || noop;\n    if (!skipWatchIdCheck && isDefined(ast.watchId)) {\n      intoId = intoId || this.nextId();\n      this.if_('i',\n        this.lazyAssign(intoId, this.computedMember('i', ast.watchId)),\n        this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true)\n      );\n      return;\n    }\n    switch (ast.type) {\n    case AST.Program:\n      forEach(ast.body, function(expression, pos) {\n        self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; });\n        if (pos !== ast.body.length - 1) {\n          self.current().body.push(right, ';');\n        } else {\n          self.return_(right);\n        }\n      });\n      break;\n    case AST.Literal:\n      expression = this.escape(ast.value);\n      this.assign(intoId, expression);\n      recursionFn(intoId || expression);\n      break;\n    case AST.UnaryExpression:\n      this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; });\n      expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';\n      this.assign(intoId, expression);\n      recursionFn(expression);\n      break;\n    case AST.BinaryExpression:\n      this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; });\n      this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; });\n      if (ast.operator === '+') {\n        expression = this.plus(left, right);\n      } else if (ast.operator === '-') {\n        expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);\n      } else {\n        expression = '(' + left + ')' + ast.operator + '(' + right + ')';\n      }\n      this.assign(intoId, expression);\n      recursionFn(expression);\n      break;\n    case AST.LogicalExpression:\n      intoId = intoId || this.nextId();\n      self.recurse(ast.left, intoId);\n      self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));\n      recursionFn(intoId);\n      break;\n    case AST.ConditionalExpression:\n      intoId = intoId || this.nextId();\n      self.recurse(ast.test, intoId);\n      self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));\n      recursionFn(intoId);\n      break;\n    case AST.Identifier:\n      intoId = intoId || this.nextId();\n      if (nameId) {\n        nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');\n        nameId.computed = false;\n        nameId.name = ast.name;\n      }\n      self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)),\n        function() {\n          self.if_(self.stage === 'inputs' || 's', function() {\n            if (create && create !== 1) {\n              self.if_(\n                self.isNull(self.nonComputedMember('s', ast.name)),\n                self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));\n            }\n            self.assign(intoId, self.nonComputedMember('s', ast.name));\n          });\n        }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name))\n        );\n      recursionFn(intoId);\n      break;\n    case AST.MemberExpression:\n      left = nameId && (nameId.context = this.nextId()) || this.nextId();\n      intoId = intoId || this.nextId();\n      self.recurse(ast.object, left, undefined, function() {\n        self.if_(self.notNull(left), function() {\n          if (ast.computed) {\n            right = self.nextId();\n            self.recurse(ast.property, right);\n            self.getStringValue(right);\n            if (create && create !== 1) {\n              self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));\n            }\n            expression = self.computedMember(left, right);\n            self.assign(intoId, expression);\n            if (nameId) {\n              nameId.computed = true;\n              nameId.name = right;\n            }\n          } else {\n            if (create && create !== 1) {\n              self.if_(self.isNull(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));\n            }\n            expression = self.nonComputedMember(left, ast.property.name);\n            self.assign(intoId, expression);\n            if (nameId) {\n              nameId.computed = false;\n              nameId.name = ast.property.name;\n            }\n          }\n        }, function() {\n          self.assign(intoId, 'undefined');\n        });\n        recursionFn(intoId);\n      }, !!create);\n      break;\n    case AST.CallExpression:\n      intoId = intoId || this.nextId();\n      if (ast.filter) {\n        right = self.filter(ast.callee.name);\n        args = [];\n        forEach(ast.arguments, function(expr) {\n          var argument = self.nextId();\n          self.recurse(expr, argument);\n          args.push(argument);\n        });\n        expression = right + '(' + args.join(',') + ')';\n        self.assign(intoId, expression);\n        recursionFn(intoId);\n      } else {\n        right = self.nextId();\n        left = {};\n        args = [];\n        self.recurse(ast.callee, right, left, function() {\n          self.if_(self.notNull(right), function() {\n            forEach(ast.arguments, function(expr) {\n              self.recurse(expr, ast.constant ? undefined : self.nextId(), undefined, function(argument) {\n                args.push(argument);\n              });\n            });\n            if (left.name) {\n              expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';\n            } else {\n              expression = right + '(' + args.join(',') + ')';\n            }\n            self.assign(intoId, expression);\n          }, function() {\n            self.assign(intoId, 'undefined');\n          });\n          recursionFn(intoId);\n        });\n      }\n      break;\n    case AST.AssignmentExpression:\n      right = this.nextId();\n      left = {};\n      this.recurse(ast.left, undefined, left, function() {\n        self.if_(self.notNull(left.context), function() {\n          self.recurse(ast.right, right);\n          expression = self.member(left.context, left.name, left.computed) + ast.operator + right;\n          self.assign(intoId, expression);\n          recursionFn(intoId || expression);\n        });\n      }, 1);\n      break;\n    case AST.ArrayExpression:\n      args = [];\n      forEach(ast.elements, function(expr) {\n        self.recurse(expr, ast.constant ? undefined : self.nextId(), undefined, function(argument) {\n          args.push(argument);\n        });\n      });\n      expression = '[' + args.join(',') + ']';\n      this.assign(intoId, expression);\n      recursionFn(intoId || expression);\n      break;\n    case AST.ObjectExpression:\n      args = [];\n      computed = false;\n      forEach(ast.properties, function(property) {\n        if (property.computed) {\n          computed = true;\n        }\n      });\n      if (computed) {\n        intoId = intoId || this.nextId();\n        this.assign(intoId, '{}');\n        forEach(ast.properties, function(property) {\n          if (property.computed) {\n            left = self.nextId();\n            self.recurse(property.key, left);\n          } else {\n            left = property.key.type === AST.Identifier ?\n                       property.key.name :\n                       ('' + property.key.value);\n          }\n          right = self.nextId();\n          self.recurse(property.value, right);\n          self.assign(self.member(intoId, left, property.computed), right);\n        });\n      } else {\n        forEach(ast.properties, function(property) {\n          self.recurse(property.value, ast.constant ? undefined : self.nextId(), undefined, function(expr) {\n            args.push(self.escape(\n                property.key.type === AST.Identifier ? property.key.name :\n                  ('' + property.key.value)) +\n                ':' + expr);\n          });\n        });\n        expression = '{' + args.join(',') + '}';\n        this.assign(intoId, expression);\n      }\n      recursionFn(intoId || expression);\n      break;\n    case AST.ThisExpression:\n      this.assign(intoId, 's');\n      recursionFn(intoId || 's');\n      break;\n    case AST.LocalsExpression:\n      this.assign(intoId, 'l');\n      recursionFn(intoId || 'l');\n      break;\n    case AST.NGValueParameter:\n      this.assign(intoId, 'v');\n      recursionFn(intoId || 'v');\n      break;\n    }\n  },\n\n  getHasOwnProperty: function(element, property) {\n    var key = element + '.' + property;\n    var own = this.current().own;\n    if (!own.hasOwnProperty(key)) {\n      own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');\n    }\n    return own[key];\n  },\n\n  assign: function(id, value) {\n    if (!id) return;\n    this.current().body.push(id, '=', value, ';');\n    return id;\n  },\n\n  filter: function(filterName) {\n    if (!this.state.filters.hasOwnProperty(filterName)) {\n      this.state.filters[filterName] = this.nextId(true);\n    }\n    return this.state.filters[filterName];\n  },\n\n  ifDefined: function(id, defaultValue) {\n    return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';\n  },\n\n  plus: function(left, right) {\n    return 'plus(' + left + ',' + right + ')';\n  },\n\n  return_: function(id) {\n    this.current().body.push('return ', id, ';');\n  },\n\n  if_: function(test, alternate, consequent) {\n    if (test === true) {\n      alternate();\n    } else {\n      var body = this.current().body;\n      body.push('if(', test, '){');\n      alternate();\n      body.push('}');\n      if (consequent) {\n        body.push('else{');\n        consequent();\n        body.push('}');\n      }\n    }\n  },\n\n  not: function(expression) {\n    return '!(' + expression + ')';\n  },\n\n  isNull: function(expression) {\n    return expression + '==null';\n  },\n\n  notNull: function(expression) {\n    return expression + '!=null';\n  },\n\n  nonComputedMember: function(left, right) {\n    var SAFE_IDENTIFIER = /^[$_a-zA-Z][$_a-zA-Z0-9]*$/;\n    var UNSAFE_CHARACTERS = /[^$_a-zA-Z0-9]/g;\n    if (SAFE_IDENTIFIER.test(right)) {\n      return left + '.' + right;\n    } else {\n      return left  + '[\"' + right.replace(UNSAFE_CHARACTERS, this.stringEscapeFn) + '\"]';\n    }\n  },\n\n  computedMember: function(left, right) {\n    return left + '[' + right + ']';\n  },\n\n  member: function(left, right, computed) {\n    if (computed) return this.computedMember(left, right);\n    return this.nonComputedMember(left, right);\n  },\n\n  getStringValue: function(item) {\n    this.assign(item, 'getStringValue(' + item + ')');\n  },\n\n  lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n    var self = this;\n    return function() {\n      self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);\n    };\n  },\n\n  lazyAssign: function(id, value) {\n    var self = this;\n    return function() {\n      self.assign(id, value);\n    };\n  },\n\n  stringEscapeRegex: /[^ a-zA-Z0-9]/g,\n\n  stringEscapeFn: function(c) {\n    return '\\\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);\n  },\n\n  escape: function(value) {\n    if (isString(value)) return '\\'' + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + '\\'';\n    if (isNumber(value)) return value.toString();\n    if (value === true) return 'true';\n    if (value === false) return 'false';\n    if (value === null) return 'null';\n    if (typeof value === 'undefined') return 'undefined';\n\n    throw $parseMinErr('esc', 'IMPOSSIBLE');\n  },\n\n  nextId: function(skip, init) {\n    var id = 'v' + (this.state.nextId++);\n    if (!skip) {\n      this.current().vars.push(id + (init ? '=' + init : ''));\n    }\n    return id;\n  },\n\n  current: function() {\n    return this.state[this.state.computing];\n  }\n};\n\n\nfunction ASTInterpreter(astBuilder, $filter) {\n  this.astBuilder = astBuilder;\n  this.$filter = $filter;\n}\n\nASTInterpreter.prototype = {\n  compile: function(expression) {\n    var self = this;\n    var ast = this.astBuilder.ast(expression);\n    findConstantAndWatchExpressions(ast, self.$filter);\n    var assignable;\n    var assign;\n    if ((assignable = assignableAST(ast))) {\n      assign = this.recurse(assignable);\n    }\n    var toWatch = getInputs(ast.body);\n    var inputs;\n    if (toWatch) {\n      inputs = [];\n      forEach(toWatch, function(watch, key) {\n        var input = self.recurse(watch);\n        watch.input = input;\n        inputs.push(input);\n        watch.watchId = key;\n      });\n    }\n    var expressions = [];\n    forEach(ast.body, function(expression) {\n      expressions.push(self.recurse(expression.expression));\n    });\n    var fn = ast.body.length === 0 ? noop :\n             ast.body.length === 1 ? expressions[0] :\n             function(scope, locals) {\n               var lastValue;\n               forEach(expressions, function(exp) {\n                 lastValue = exp(scope, locals);\n               });\n               return lastValue;\n             };\n    if (assign) {\n      fn.assign = function(scope, value, locals) {\n        return assign(scope, locals, value);\n      };\n    }\n    if (inputs) {\n      fn.inputs = inputs;\n    }\n    fn.literal = isLiteral(ast);\n    fn.constant = isConstant(ast);\n    return fn;\n  },\n\n  recurse: function(ast, context, create) {\n    var left, right, self = this, args;\n    if (ast.input) {\n      return this.inputs(ast.input, ast.watchId);\n    }\n    switch (ast.type) {\n    case AST.Literal:\n      return this.value(ast.value, context);\n    case AST.UnaryExpression:\n      right = this.recurse(ast.argument);\n      return this['unary' + ast.operator](right, context);\n    case AST.BinaryExpression:\n      left = this.recurse(ast.left);\n      right = this.recurse(ast.right);\n      return this['binary' + ast.operator](left, right, context);\n    case AST.LogicalExpression:\n      left = this.recurse(ast.left);\n      right = this.recurse(ast.right);\n      return this['binary' + ast.operator](left, right, context);\n    case AST.ConditionalExpression:\n      return this['ternary?:'](\n        this.recurse(ast.test),\n        this.recurse(ast.alternate),\n        this.recurse(ast.consequent),\n        context\n      );\n    case AST.Identifier:\n      return self.identifier(ast.name, context, create);\n    case AST.MemberExpression:\n      left = this.recurse(ast.object, false, !!create);\n      if (!ast.computed) {\n        right = ast.property.name;\n      }\n      if (ast.computed) right = this.recurse(ast.property);\n      return ast.computed ?\n        this.computedMember(left, right, context, create) :\n        this.nonComputedMember(left, right, context, create);\n    case AST.CallExpression:\n      args = [];\n      forEach(ast.arguments, function(expr) {\n        args.push(self.recurse(expr));\n      });\n      if (ast.filter) right = this.$filter(ast.callee.name);\n      if (!ast.filter) right = this.recurse(ast.callee, true);\n      return ast.filter ?\n        function(scope, locals, assign, inputs) {\n          var values = [];\n          for (var i = 0; i < args.length; ++i) {\n            values.push(args[i](scope, locals, assign, inputs));\n          }\n          var value = right.apply(undefined, values, inputs);\n          return context ? {context: undefined, name: undefined, value: value} : value;\n        } :\n        function(scope, locals, assign, inputs) {\n          var rhs = right(scope, locals, assign, inputs);\n          var value;\n          if (rhs.value != null) {\n            var values = [];\n            for (var i = 0; i < args.length; ++i) {\n              values.push(args[i](scope, locals, assign, inputs));\n            }\n            value = rhs.value.apply(rhs.context, values);\n          }\n          return context ? {value: value} : value;\n        };\n    case AST.AssignmentExpression:\n      left = this.recurse(ast.left, true, 1);\n      right = this.recurse(ast.right);\n      return function(scope, locals, assign, inputs) {\n        var lhs = left(scope, locals, assign, inputs);\n        var rhs = right(scope, locals, assign, inputs);\n        lhs.context[lhs.name] = rhs;\n        return context ? {value: rhs} : rhs;\n      };\n    case AST.ArrayExpression:\n      args = [];\n      forEach(ast.elements, function(expr) {\n        args.push(self.recurse(expr));\n      });\n      return function(scope, locals, assign, inputs) {\n        var value = [];\n        for (var i = 0; i < args.length; ++i) {\n          value.push(args[i](scope, locals, assign, inputs));\n        }\n        return context ? {value: value} : value;\n      };\n    case AST.ObjectExpression:\n      args = [];\n      forEach(ast.properties, function(property) {\n        if (property.computed) {\n          args.push({key: self.recurse(property.key),\n                     computed: true,\n                     value: self.recurse(property.value)\n          });\n        } else {\n          args.push({key: property.key.type === AST.Identifier ?\n                          property.key.name :\n                          ('' + property.key.value),\n                     computed: false,\n                     value: self.recurse(property.value)\n          });\n        }\n      });\n      return function(scope, locals, assign, inputs) {\n        var value = {};\n        for (var i = 0; i < args.length; ++i) {\n          if (args[i].computed) {\n            value[args[i].key(scope, locals, assign, inputs)] = args[i].value(scope, locals, assign, inputs);\n          } else {\n            value[args[i].key] = args[i].value(scope, locals, assign, inputs);\n          }\n        }\n        return context ? {value: value} : value;\n      };\n    case AST.ThisExpression:\n      return function(scope) {\n        return context ? {value: scope} : scope;\n      };\n    case AST.LocalsExpression:\n      return function(scope, locals) {\n        return context ? {value: locals} : locals;\n      };\n    case AST.NGValueParameter:\n      return function(scope, locals, assign) {\n        return context ? {value: assign} : assign;\n      };\n    }\n  },\n\n  'unary+': function(argument, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = argument(scope, locals, assign, inputs);\n      if (isDefined(arg)) {\n        arg = +arg;\n      } else {\n        arg = 0;\n      }\n      return context ? {value: arg} : arg;\n    };\n  },\n  'unary-': function(argument, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = argument(scope, locals, assign, inputs);\n      if (isDefined(arg)) {\n        arg = -arg;\n      } else {\n        arg = -0;\n      }\n      return context ? {value: arg} : arg;\n    };\n  },\n  'unary!': function(argument, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = !argument(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary+': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var lhs = left(scope, locals, assign, inputs);\n      var rhs = right(scope, locals, assign, inputs);\n      var arg = plusFn(lhs, rhs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary-': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var lhs = left(scope, locals, assign, inputs);\n      var rhs = right(scope, locals, assign, inputs);\n      var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary*': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary/': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary%': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary===': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary!==': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary==': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      // eslint-disable-next-line eqeqeq\n      var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary!=': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      // eslint-disable-next-line eqeqeq\n      var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary<': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary>': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary<=': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary>=': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary&&': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'binary||': function(left, right, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  'ternary?:': function(test, alternate, consequent, context) {\n    return function(scope, locals, assign, inputs) {\n      var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);\n      return context ? {value: arg} : arg;\n    };\n  },\n  value: function(value, context) {\n    return function() { return context ? {context: undefined, name: undefined, value: value} : value; };\n  },\n  identifier: function(name, context, create) {\n    return function(scope, locals, assign, inputs) {\n      var base = locals && (name in locals) ? locals : scope;\n      if (create && create !== 1 && base && base[name] == null) {\n        base[name] = {};\n      }\n      var value = base ? base[name] : undefined;\n      if (context) {\n        return {context: base, name: name, value: value};\n      } else {\n        return value;\n      }\n    };\n  },\n  computedMember: function(left, right, context, create) {\n    return function(scope, locals, assign, inputs) {\n      var lhs = left(scope, locals, assign, inputs);\n      var rhs;\n      var value;\n      if (lhs != null) {\n        rhs = right(scope, locals, assign, inputs);\n        rhs = getStringValue(rhs);\n        if (create && create !== 1) {\n          if (lhs && !(lhs[rhs])) {\n            lhs[rhs] = {};\n          }\n        }\n        value = lhs[rhs];\n      }\n      if (context) {\n        return {context: lhs, name: rhs, value: value};\n      } else {\n        return value;\n      }\n    };\n  },\n  nonComputedMember: function(left, right, context, create) {\n    return function(scope, locals, assign, inputs) {\n      var lhs = left(scope, locals, assign, inputs);\n      if (create && create !== 1) {\n        if (lhs && lhs[right] == null) {\n          lhs[right] = {};\n        }\n      }\n      var value = lhs != null ? lhs[right] : undefined;\n      if (context) {\n        return {context: lhs, name: right, value: value};\n      } else {\n        return value;\n      }\n    };\n  },\n  inputs: function(input, watchId) {\n    return function(scope, value, locals, inputs) {\n      if (inputs) return inputs[watchId];\n      return input(scope, value, locals);\n    };\n  }\n};\n\n/**\n * @constructor\n */\nvar Parser = function Parser(lexer, $filter, options) {\n  this.lexer = lexer;\n  this.$filter = $filter;\n  this.options = options;\n  this.ast = new AST(lexer, options);\n  this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) :\n                                   new ASTCompiler(this.ast, $filter);\n};\n\nParser.prototype = {\n  constructor: Parser,\n\n  parse: function(text) {\n    return this.astCompiler.compile(text);\n  }\n};\n\nfunction getValueOf(value) {\n  return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);\n}\n\n///////////////////////////////////\n\n/**\n * @ngdoc service\n * @name $parse\n * @kind function\n *\n * @description\n *\n * Converts Angular {@link guide/expression expression} into a function.\n *\n * ```js\n *   var getter = $parse('user.name');\n *   var setter = getter.assign;\n *   var context = {user:{name:'angular'}};\n *   var locals = {user:{name:'local'}};\n *\n *   expect(getter(context)).toEqual('angular');\n *   setter(context, 'newValue');\n *   expect(context.user.name).toEqual('newValue');\n *   expect(getter(context, locals)).toEqual('local');\n * ```\n *\n *\n * @param {string} expression String expression to compile.\n * @returns {function(context, locals)} a function which represents the compiled expression:\n *\n *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n *      are evaluated against (typically a scope object).\n *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n *      `context`.\n *\n *    The returned function also has the following properties:\n *      * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript\n *        literal.\n *      * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript\n *        constant literals.\n *      * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be\n *        set to a function to change its value on the given context.\n *\n */\n\n\n/**\n * @ngdoc provider\n * @name $parseProvider\n * @this\n *\n * @description\n * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}\n *  service.\n */\nfunction $ParseProvider() {\n  var cache = createMap();\n  var literals = {\n    'true': true,\n    'false': false,\n    'null': null,\n    'undefined': undefined\n  };\n  var identStart, identContinue;\n\n  /**\n   * @ngdoc method\n   * @name $parseProvider#addLiteral\n   * @description\n   *\n   * Configure $parse service to add literal values that will be present as literal at expressions.\n   *\n   * @param {string} literalName Token for the literal value. The literal name value must be a valid literal name.\n   * @param {*} literalValue Value for this literal. All literal values must be primitives or `undefined`.\n   *\n   **/\n  this.addLiteral = function(literalName, literalValue) {\n    literals[literalName] = literalValue;\n  };\n\n /**\n  * @ngdoc method\n  * @name $parseProvider#setIdentifierFns\n  *\n  * @description\n  *\n  * Allows defining the set of characters that are allowed in Angular expressions. The function\n  * `identifierStart` will get called to know if a given character is a valid character to be the\n  * first character for an identifier. The function `identifierContinue` will get called to know if\n  * a given character is a valid character to be a follow-up identifier character. The functions\n  * `identifierStart` and `identifierContinue` will receive as arguments the single character to be\n  * identifier and the character code point. These arguments will be `string` and `numeric`. Keep in\n  * mind that the `string` parameter can be two characters long depending on the character\n  * representation. It is expected for the function to return `true` or `false`, whether that\n  * character is allowed or not.\n  *\n  * Since this function will be called extensively, keep the implementation of these functions fast,\n  * as the performance of these functions have a direct impact on the expressions parsing speed.\n  *\n  * @param {function=} identifierStart The function that will decide whether the given character is\n  *   a valid identifier start character.\n  * @param {function=} identifierContinue The function that will decide whether the given character is\n  *   a valid identifier continue character.\n  */\n  this.setIdentifierFns = function(identifierStart, identifierContinue) {\n    identStart = identifierStart;\n    identContinue = identifierContinue;\n    return this;\n  };\n\n  this.$get = ['$filter', function($filter) {\n    var noUnsafeEval = csp().noUnsafeEval;\n    var $parseOptions = {\n          csp: noUnsafeEval,\n          literals: copy(literals),\n          isIdentifierStart: isFunction(identStart) && identStart,\n          isIdentifierContinue: isFunction(identContinue) && identContinue\n        };\n    return $parse;\n\n    function $parse(exp, interceptorFn) {\n      var parsedExpression, oneTime, cacheKey;\n\n      switch (typeof exp) {\n        case 'string':\n          exp = exp.trim();\n          cacheKey = exp;\n\n          parsedExpression = cache[cacheKey];\n\n          if (!parsedExpression) {\n            if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {\n              oneTime = true;\n              exp = exp.substring(2);\n            }\n            var lexer = new Lexer($parseOptions);\n            var parser = new Parser(lexer, $filter, $parseOptions);\n            parsedExpression = parser.parse(exp);\n            if (parsedExpression.constant) {\n              parsedExpression.$$watchDelegate = constantWatchDelegate;\n            } else if (oneTime) {\n              parsedExpression.$$watchDelegate = parsedExpression.literal ?\n                  oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;\n            } else if (parsedExpression.inputs) {\n              parsedExpression.$$watchDelegate = inputsWatchDelegate;\n            }\n            cache[cacheKey] = parsedExpression;\n          }\n          return addInterceptor(parsedExpression, interceptorFn);\n\n        case 'function':\n          return addInterceptor(exp, interceptorFn);\n\n        default:\n          return addInterceptor(noop, interceptorFn);\n      }\n    }\n\n    function expressionInputDirtyCheck(newValue, oldValueOfValue) {\n\n      if (newValue == null || oldValueOfValue == null) { // null/undefined\n        return newValue === oldValueOfValue;\n      }\n\n      if (typeof newValue === 'object') {\n\n        // attempt to convert the value to a primitive type\n        // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can\n        //             be cheaply dirty-checked\n        newValue = getValueOf(newValue);\n\n        if (typeof newValue === 'object') {\n          // objects/arrays are not supported - deep-watching them would be too expensive\n          return false;\n        }\n\n        // fall-through to the primitive equality check\n      }\n\n      //Primitive or NaN\n      // eslint-disable-next-line no-self-compare\n      return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);\n    }\n\n    function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {\n      var inputExpressions = parsedExpression.inputs;\n      var lastResult;\n\n      if (inputExpressions.length === 1) {\n        var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails\n        inputExpressions = inputExpressions[0];\n        return scope.$watch(function expressionInputWatch(scope) {\n          var newInputValue = inputExpressions(scope);\n          if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) {\n            lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);\n            oldInputValueOf = newInputValue && getValueOf(newInputValue);\n          }\n          return lastResult;\n        }, listener, objectEquality, prettyPrintExpression);\n      }\n\n      var oldInputValueOfValues = [];\n      var oldInputValues = [];\n      for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n        oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails\n        oldInputValues[i] = null;\n      }\n\n      return scope.$watch(function expressionInputsWatch(scope) {\n        var changed = false;\n\n        for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n          var newInputValue = inputExpressions[i](scope);\n          if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {\n            oldInputValues[i] = newInputValue;\n            oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);\n          }\n        }\n\n        if (changed) {\n          lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);\n        }\n\n        return lastResult;\n      }, listener, objectEquality, prettyPrintExpression);\n    }\n\n    function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {\n      var unwatch, lastValue;\n      if (parsedExpression.inputs) {\n        unwatch = inputsWatchDelegate(scope, oneTimeListener, objectEquality, parsedExpression, prettyPrintExpression);\n      } else {\n        unwatch = scope.$watch(oneTimeWatch, oneTimeListener, objectEquality);\n      }\n      return unwatch;\n\n      function oneTimeWatch(scope) {\n        return parsedExpression(scope);\n      }\n      function oneTimeListener(value, old, scope) {\n        lastValue = value;\n        if (isFunction(listener)) {\n          listener(value, old, scope);\n        }\n        if (isDefined(value)) {\n          scope.$$postDigest(function() {\n            if (isDefined(lastValue)) {\n              unwatch();\n            }\n          });\n        }\n      }\n    }\n\n    function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n      var unwatch, lastValue;\n      unwatch = scope.$watch(function oneTimeWatch(scope) {\n        return parsedExpression(scope);\n      }, function oneTimeListener(value, old, scope) {\n        lastValue = value;\n        if (isFunction(listener)) {\n          listener(value, old, scope);\n        }\n        if (isAllDefined(value)) {\n          scope.$$postDigest(function() {\n            if (isAllDefined(lastValue)) unwatch();\n          });\n        }\n      }, objectEquality);\n\n      return unwatch;\n\n      function isAllDefined(value) {\n        var allDefined = true;\n        forEach(value, function(val) {\n          if (!isDefined(val)) allDefined = false;\n        });\n        return allDefined;\n      }\n    }\n\n    function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n      var unwatch = scope.$watch(function constantWatch(scope) {\n        unwatch();\n        return parsedExpression(scope);\n      }, listener, objectEquality);\n      return unwatch;\n    }\n\n    function addInterceptor(parsedExpression, interceptorFn) {\n      if (!interceptorFn) return parsedExpression;\n      var watchDelegate = parsedExpression.$$watchDelegate;\n      var useInputs = false;\n\n      var regularWatch =\n          watchDelegate !== oneTimeLiteralWatchDelegate &&\n          watchDelegate !== oneTimeWatchDelegate;\n\n      var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {\n        var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);\n        return interceptorFn(value, scope, locals);\n      } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {\n        var value = parsedExpression(scope, locals, assign, inputs);\n        var result = interceptorFn(value, scope, locals);\n        // we only return the interceptor's result if the\n        // initial value is defined (for bind-once)\n        return isDefined(value) ? result : value;\n      };\n\n      // Propagate $$watchDelegates other then inputsWatchDelegate\n      useInputs = !parsedExpression.inputs;\n      if (parsedExpression.$$watchDelegate &&\n          parsedExpression.$$watchDelegate !== inputsWatchDelegate) {\n        fn.$$watchDelegate = parsedExpression.$$watchDelegate;\n        fn.inputs = parsedExpression.inputs;\n      } else if (!interceptorFn.$stateful) {\n        // If there is an interceptor, but no watchDelegate then treat the interceptor like\n        // we treat filters - it is assumed to be a pure function unless flagged with $stateful\n        fn.$$watchDelegate = inputsWatchDelegate;\n        fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];\n      }\n\n      return fn;\n    }\n  }];\n}\n\n/**\n * @ngdoc service\n * @name $q\n * @requires $rootScope\n *\n * @description\n * A service that helps you run functions asynchronously, and use their return values (or exceptions)\n * when they are done processing.\n *\n * This is a [Promises/A+](https://promisesaplus.com/)-compliant implementation of promises/deferred\n * objects inspired by [Kris Kowal's Q](https://github.com/kriskowal/q).\n *\n * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred\n * implementations, and the other which resembles ES6 (ES2015) promises to some degree.\n *\n * # $q constructor\n *\n * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`\n * function as the first argument. This is similar to the native Promise implementation from ES6,\n * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n *\n * While the constructor-style use is supported, not all of the supporting methods from ES6 promises are\n * available yet.\n *\n * It can be used like so:\n *\n * ```js\n *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n *   // are available in the current lexical scope (they could have been injected or passed in).\n *\n *   function asyncGreet(name) {\n *     // perform some asynchronous operation, resolve or reject the promise when appropriate.\n *     return $q(function(resolve, reject) {\n *       setTimeout(function() {\n *         if (okToGreet(name)) {\n *           resolve('Hello, ' + name + '!');\n *         } else {\n *           reject('Greeting ' + name + ' is not allowed.');\n *         }\n *       }, 1000);\n *     });\n *   }\n *\n *   var promise = asyncGreet('Robin Hood');\n *   promise.then(function(greeting) {\n *     alert('Success: ' + greeting);\n *   }, function(reason) {\n *     alert('Failed: ' + reason);\n *   });\n * ```\n *\n * Note: progress/notify callbacks are not currently supported via the ES6-style interface.\n *\n * Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.\n *\n * However, the more traditional CommonJS-style usage is still available, and documented below.\n *\n * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an\n * interface for interacting with an object that represents the result of an action that is\n * performed asynchronously, and may or may not be finished at any given point in time.\n *\n * From the perspective of dealing with error handling, deferred and promise APIs are to\n * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.\n *\n * ```js\n *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n *   // are available in the current lexical scope (they could have been injected or passed in).\n *\n *   function asyncGreet(name) {\n *     var deferred = $q.defer();\n *\n *     setTimeout(function() {\n *       deferred.notify('About to greet ' + name + '.');\n *\n *       if (okToGreet(name)) {\n *         deferred.resolve('Hello, ' + name + '!');\n *       } else {\n *         deferred.reject('Greeting ' + name + ' is not allowed.');\n *       }\n *     }, 1000);\n *\n *     return deferred.promise;\n *   }\n *\n *   var promise = asyncGreet('Robin Hood');\n *   promise.then(function(greeting) {\n *     alert('Success: ' + greeting);\n *   }, function(reason) {\n *     alert('Failed: ' + reason);\n *   }, function(update) {\n *     alert('Got notification: ' + update);\n *   });\n * ```\n *\n * At first it might not be obvious why this extra complexity is worth the trouble. The payoff\n * comes in the way of guarantees that promise and deferred APIs make, see\n * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.\n *\n * Additionally the promise api allows for composition that is very hard to do with the\n * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.\n * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the\n * section on serial or parallel joining of promises.\n *\n * # The Deferred API\n *\n * A new instance of deferred is constructed by calling `$q.defer()`.\n *\n * The purpose of the deferred object is to expose the associated Promise instance as well as APIs\n * that can be used for signaling the successful or unsuccessful completion, as well as the status\n * of the task.\n *\n * **Methods**\n *\n * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection\n *   constructed via `$q.reject`, the promise will be rejected instead.\n * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to\n *   resolving it with a rejection constructed via `$q.reject`.\n * - `notify(value)` - provides updates on the status of the promise's execution. This may be called\n *   multiple times before the promise is either resolved or rejected.\n *\n * **Properties**\n *\n * - promise – `{Promise}` – promise object associated with this deferred.\n *\n *\n * # The Promise API\n *\n * A new promise instance is created when a deferred instance is created and can be retrieved by\n * calling `deferred.promise`.\n *\n * The purpose of the promise object is to allow for interested parties to get access to the result\n * of the deferred task when it completes.\n *\n * **Methods**\n *\n * - `then(successCallback, [errorCallback], [notifyCallback])` – regardless of when the promise was or\n *   will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously\n *   as soon as the result is available. The callbacks are called with a single argument: the result\n *   or rejection reason. Additionally, the notify callback may be called zero or more times to\n *   provide a progress indication, before the promise is resolved or rejected.\n *\n *   This method *returns a new promise* which is resolved or rejected via the return value of the\n *   `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved\n *   with the value which is resolved in that promise using\n *   [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).\n *   It also notifies via the return value of the `notifyCallback` method. The promise cannot be\n *   resolved or rejected from the notifyCallback method. The errorCallback and notifyCallback\n *   arguments are optional.\n *\n * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`\n *\n * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,\n *   but to do so without modifying the final value. This is useful to release resources or do some\n *   clean-up that needs to be done whether the promise was rejected or resolved. See the [full\n *   specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for\n *   more information.\n *\n * # Chaining promises\n *\n * Because calling the `then` method of a promise returns a new derived promise, it is easily\n * possible to create a chain of promises:\n *\n * ```js\n *   promiseB = promiseA.then(function(result) {\n *     return result + 1;\n *   });\n *\n *   // promiseB will be resolved immediately after promiseA is resolved and its value\n *   // will be the result of promiseA incremented by 1\n * ```\n *\n * It is possible to create chains of any length and since a promise can be resolved with another\n * promise (which will defer its resolution further), it is possible to pause/defer resolution of\n * the promises at any point in the chain. This makes it possible to implement powerful APIs like\n * $http's response interceptors.\n *\n *\n * # Differences between Kris Kowal's Q and $q\n *\n *  There are two main differences:\n *\n * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation\n *   mechanism in angular, which means faster propagation of resolution or rejection into your\n *   models and avoiding unnecessary browser repaints, which would result in flickering UI.\n * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains\n *   all the important functionality needed for common async tasks.\n *\n * # Testing\n *\n *  ```js\n *    it('should simulate promise', inject(function($q, $rootScope) {\n *      var deferred = $q.defer();\n *      var promise = deferred.promise;\n *      var resolvedValue;\n *\n *      promise.then(function(value) { resolvedValue = value; });\n *      expect(resolvedValue).toBeUndefined();\n *\n *      // Simulate resolving of promise\n *      deferred.resolve(123);\n *      // Note that the 'then' function does not get called synchronously.\n *      // This is because we want the promise API to always be async, whether or not\n *      // it got called synchronously or asynchronously.\n *      expect(resolvedValue).toBeUndefined();\n *\n *      // Propagate promise resolution to 'then' functions using $apply().\n *      $rootScope.$apply();\n *      expect(resolvedValue).toEqual(123);\n *    }));\n *  ```\n *\n * @param {function(function, function)} resolver Function which is responsible for resolving or\n *   rejecting the newly created promise. The first parameter is a function which resolves the\n *   promise, the second parameter is a function which rejects the promise.\n *\n * @returns {Promise} The newly created promise.\n */\n/**\n * @ngdoc provider\n * @name $qProvider\n * @this\n *\n * @description\n */\nfunction $QProvider() {\n  var errorOnUnhandledRejections = true;\n  this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {\n    return qFactory(function(callback) {\n      $rootScope.$evalAsync(callback);\n    }, $exceptionHandler, errorOnUnhandledRejections);\n  }];\n\n  /**\n   * @ngdoc method\n   * @name $qProvider#errorOnUnhandledRejections\n   * @kind function\n   *\n   * @description\n   * Retrieves or overrides whether to generate an error when a rejected promise is not handled.\n   * This feature is enabled by default.\n   *\n   * @param {boolean=} value Whether to generate an error when a rejected promise is not handled.\n   * @returns {boolean|ng.$qProvider} Current value when called without a new value or self for\n   *    chaining otherwise.\n   */\n  this.errorOnUnhandledRejections = function(value) {\n    if (isDefined(value)) {\n      errorOnUnhandledRejections = value;\n      return this;\n    } else {\n      return errorOnUnhandledRejections;\n    }\n  };\n}\n\n/** @this */\nfunction $$QProvider() {\n  var errorOnUnhandledRejections = true;\n  this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {\n    return qFactory(function(callback) {\n      $browser.defer(callback);\n    }, $exceptionHandler, errorOnUnhandledRejections);\n  }];\n\n  this.errorOnUnhandledRejections = function(value) {\n    if (isDefined(value)) {\n      errorOnUnhandledRejections = value;\n      return this;\n    } else {\n      return errorOnUnhandledRejections;\n    }\n  };\n}\n\n/**\n * Constructs a promise manager.\n *\n * @param {function(function)} nextTick Function for executing functions in the next turn.\n * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for\n *     debugging purposes.\n @ param {=boolean} errorOnUnhandledRejections Whether an error should be generated on unhandled\n *     promises rejections.\n * @returns {object} Promise manager.\n */\nfunction qFactory(nextTick, exceptionHandler, errorOnUnhandledRejections) {\n  var $qMinErr = minErr('$q', TypeError);\n  var queueSize = 0;\n  var checkQueue = [];\n\n  /**\n   * @ngdoc method\n   * @name ng.$q#defer\n   * @kind function\n   *\n   * @description\n   * Creates a `Deferred` object which represents a task which will finish in the future.\n   *\n   * @returns {Deferred} Returns a new instance of deferred.\n   */\n  function defer() {\n    return new Deferred();\n  }\n\n  function Deferred() {\n    var promise = this.promise = new Promise();\n    //Non prototype methods necessary to support unbound execution :/\n    this.resolve = function(val) { resolvePromise(promise, val); };\n    this.reject = function(reason) { rejectPromise(promise, reason); };\n    this.notify = function(progress) { notifyPromise(promise, progress); };\n  }\n\n\n  function Promise() {\n    this.$$state = { status: 0 };\n  }\n\n  extend(Promise.prototype, {\n    then: function(onFulfilled, onRejected, progressBack) {\n      if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {\n        return this;\n      }\n      var result = new Promise();\n\n      this.$$state.pending = this.$$state.pending || [];\n      this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);\n      if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);\n\n      return result;\n    },\n\n    'catch': function(callback) {\n      return this.then(null, callback);\n    },\n\n    'finally': function(callback, progressBack) {\n      return this.then(function(value) {\n        return handleCallback(value, resolve, callback);\n      }, function(error) {\n        return handleCallback(error, reject, callback);\n      }, progressBack);\n    }\n  });\n\n  function processQueue(state) {\n    var fn, promise, pending;\n\n    pending = state.pending;\n    state.processScheduled = false;\n    state.pending = undefined;\n    try {\n      for (var i = 0, ii = pending.length; i < ii; ++i) {\n        state.pur = true;\n        promise = pending[i][0];\n        fn = pending[i][state.status];\n        try {\n          if (isFunction(fn)) {\n            resolvePromise(promise, fn(state.value));\n          } else if (state.status === 1) {\n            resolvePromise(promise, state.value);\n          } else {\n            rejectPromise(promise, state.value);\n          }\n        } catch (e) {\n          rejectPromise(promise, e);\n        }\n      }\n    } finally {\n      --queueSize;\n      if (errorOnUnhandledRejections && queueSize === 0) {\n        nextTick(processChecks);\n      }\n    }\n  }\n\n  function processChecks() {\n    // eslint-disable-next-line no-unmodified-loop-condition\n    while (!queueSize && checkQueue.length) {\n      var toCheck = checkQueue.shift();\n      if (!toCheck.pur) {\n        toCheck.pur = true;\n        var errorMessage = 'Possibly unhandled rejection: ' + toDebugString(toCheck.value);\n        if (toCheck.value instanceof Error) {\n          exceptionHandler(toCheck.value, errorMessage);\n        } else {\n          exceptionHandler(errorMessage);\n        }\n      }\n    }\n  }\n\n  function scheduleProcessQueue(state) {\n    if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !state.pur) {\n      if (queueSize === 0 && checkQueue.length === 0) {\n        nextTick(processChecks);\n      }\n      checkQueue.push(state);\n    }\n    if (state.processScheduled || !state.pending) return;\n    state.processScheduled = true;\n    ++queueSize;\n    nextTick(function() { processQueue(state); });\n  }\n\n  function resolvePromise(promise, val) {\n    if (promise.$$state.status) return;\n    if (val === promise) {\n      $$reject(promise, $qMinErr(\n        'qcycle',\n        'Expected promise to be resolved with value other than itself \\'{0}\\'',\n        val));\n    } else {\n      $$resolve(promise, val);\n    }\n\n  }\n\n  function $$resolve(promise, val) {\n    var then;\n    var done = false;\n    try {\n      if (isObject(val) || isFunction(val)) then = val.then;\n      if (isFunction(then)) {\n        promise.$$state.status = -1;\n        then.call(val, doResolve, doReject, doNotify);\n      } else {\n        promise.$$state.value = val;\n        promise.$$state.status = 1;\n        scheduleProcessQueue(promise.$$state);\n      }\n    } catch (e) {\n      doReject(e);\n    }\n\n    function doResolve(val) {\n      if (done) return;\n      done = true;\n      $$resolve(promise, val);\n    }\n    function doReject(val) {\n      if (done) return;\n      done = true;\n      $$reject(promise, val);\n    }\n    function doNotify(progress) {\n      notifyPromise(promise, progress);\n    }\n  }\n\n  function rejectPromise(promise, reason) {\n    if (promise.$$state.status) return;\n    $$reject(promise, reason);\n  }\n\n  function $$reject(promise, reason) {\n    promise.$$state.value = reason;\n    promise.$$state.status = 2;\n    scheduleProcessQueue(promise.$$state);\n  }\n\n  function notifyPromise(promise, progress) {\n    var callbacks = promise.$$state.pending;\n\n    if ((promise.$$state.status <= 0) && callbacks && callbacks.length) {\n      nextTick(function() {\n        var callback, result;\n        for (var i = 0, ii = callbacks.length; i < ii; i++) {\n          result = callbacks[i][0];\n          callback = callbacks[i][3];\n          try {\n            notifyPromise(result, isFunction(callback) ? callback(progress) : progress);\n          } catch (e) {\n            exceptionHandler(e);\n          }\n        }\n      });\n    }\n  }\n\n  /**\n   * @ngdoc method\n   * @name $q#reject\n   * @kind function\n   *\n   * @description\n   * Creates a promise that is resolved as rejected with the specified `reason`. This api should be\n   * used to forward rejection in a chain of promises. If you are dealing with the last promise in\n   * a promise chain, you don't need to worry about it.\n   *\n   * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of\n   * `reject` as the `throw` keyword in JavaScript. This also means that if you \"catch\" an error via\n   * a promise error callback and you want to forward the error to the promise derived from the\n   * current promise, you have to \"rethrow\" the error by returning a rejection constructed via\n   * `reject`.\n   *\n   * ```js\n   *   promiseB = promiseA.then(function(result) {\n   *     // success: do something and resolve promiseB\n   *     //          with the old or a new result\n   *     return result;\n   *   }, function(reason) {\n   *     // error: handle the error if possible and\n   *     //        resolve promiseB with newPromiseOrValue,\n   *     //        otherwise forward the rejection to promiseB\n   *     if (canHandle(reason)) {\n   *      // handle the error and recover\n   *      return newPromiseOrValue;\n   *     }\n   *     return $q.reject(reason);\n   *   });\n   * ```\n   *\n   * @param {*} reason Constant, message, exception or an object representing the rejection reason.\n   * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.\n   */\n  function reject(reason) {\n    var result = new Promise();\n    rejectPromise(result, reason);\n    return result;\n  }\n\n  function handleCallback(value, resolver, callback) {\n    var callbackOutput = null;\n    try {\n      if (isFunction(callback)) callbackOutput = callback();\n    } catch (e) {\n      return reject(e);\n    }\n    if (isPromiseLike(callbackOutput)) {\n      return callbackOutput.then(function() {\n        return resolver(value);\n      }, reject);\n    } else {\n      return resolver(value);\n    }\n  }\n\n  /**\n   * @ngdoc method\n   * @name $q#when\n   * @kind function\n   *\n   * @description\n   * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.\n   * This is useful when you are dealing with an object that might or might not be a promise, or if\n   * the promise comes from a source that can't be trusted.\n   *\n   * @param {*} value Value or a promise\n   * @param {Function=} successCallback\n   * @param {Function=} errorCallback\n   * @param {Function=} progressCallback\n   * @returns {Promise} Returns a promise of the passed value or promise\n   */\n\n\n  function when(value, callback, errback, progressBack) {\n    var result = new Promise();\n    resolvePromise(result, value);\n    return result.then(callback, errback, progressBack);\n  }\n\n  /**\n   * @ngdoc method\n   * @name $q#resolve\n   * @kind function\n   *\n   * @description\n   * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.\n   *\n   * @param {*} value Value or a promise\n   * @param {Function=} successCallback\n   * @param {Function=} errorCallback\n   * @param {Function=} progressCallback\n   * @returns {Promise} Returns a promise of the passed value or promise\n   */\n  var resolve = when;\n\n  /**\n   * @ngdoc method\n   * @name $q#all\n   * @kind function\n   *\n   * @description\n   * Combines multiple promises into a single promise that is resolved when all of the input\n   * promises are resolved.\n   *\n   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.\n   * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,\n   *   each value corresponding to the promise at the same index/key in the `promises` array/hash.\n   *   If any of the promises is resolved with a rejection, this resulting promise will be rejected\n   *   with the same rejection value.\n   */\n\n  function all(promises) {\n    var result = new Promise(),\n        counter = 0,\n        results = isArray(promises) ? [] : {};\n\n    forEach(promises, function(promise, key) {\n      counter++;\n      when(promise).then(function(value) {\n        results[key] = value;\n        if (!(--counter)) resolvePromise(result, results);\n      }, function(reason) {\n        rejectPromise(result, reason);\n      });\n    });\n\n    if (counter === 0) {\n      resolvePromise(result, results);\n    }\n\n    return result;\n  }\n\n  /**\n   * @ngdoc method\n   * @name $q#race\n   * @kind function\n   *\n   * @description\n   * Returns a promise that resolves or rejects as soon as one of those promises\n   * resolves or rejects, with the value or reason from that promise.\n   *\n   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.\n   * @returns {Promise} a promise that resolves or rejects as soon as one of the `promises`\n   * resolves or rejects, with the value or reason from that promise.\n   */\n\n  function race(promises) {\n    var deferred = defer();\n\n    forEach(promises, function(promise) {\n      when(promise).then(deferred.resolve, deferred.reject);\n    });\n\n    return deferred.promise;\n  }\n\n  function $Q(resolver) {\n    if (!isFunction(resolver)) {\n      throw $qMinErr('norslvr', 'Expected resolverFn, got \\'{0}\\'', resolver);\n    }\n\n    var promise = new Promise();\n\n    function resolveFn(value) {\n      resolvePromise(promise, value);\n    }\n\n    function rejectFn(reason) {\n      rejectPromise(promise, reason);\n    }\n\n    resolver(resolveFn, rejectFn);\n\n    return promise;\n  }\n\n  // Let's make the instanceof operator work for promises, so that\n  // `new $q(fn) instanceof $q` would evaluate to true.\n  $Q.prototype = Promise.prototype;\n\n  $Q.defer = defer;\n  $Q.reject = reject;\n  $Q.when = when;\n  $Q.resolve = resolve;\n  $Q.all = all;\n  $Q.race = race;\n\n  return $Q;\n}\n\n/** @this */\nfunction $$RAFProvider() { //rAF\n  this.$get = ['$window', '$timeout', function($window, $timeout) {\n    var requestAnimationFrame = $window.requestAnimationFrame ||\n                                $window.webkitRequestAnimationFrame;\n\n    var cancelAnimationFrame = $window.cancelAnimationFrame ||\n                               $window.webkitCancelAnimationFrame ||\n                               $window.webkitCancelRequestAnimationFrame;\n\n    var rafSupported = !!requestAnimationFrame;\n    var raf = rafSupported\n      ? function(fn) {\n          var id = requestAnimationFrame(fn);\n          return function() {\n            cancelAnimationFrame(id);\n          };\n        }\n      : function(fn) {\n          var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666\n          return function() {\n            $timeout.cancel(timer);\n          };\n        };\n\n    raf.supported = rafSupported;\n\n    return raf;\n  }];\n}\n\n/**\n * DESIGN NOTES\n *\n * The design decisions behind the scope are heavily favored for speed and memory consumption.\n *\n * The typical use of scope is to watch the expressions, which most of the time return the same\n * value as last time so we optimize the operation.\n *\n * Closures construction is expensive in terms of speed as well as memory:\n *   - No closures, instead use prototypical inheritance for API\n *   - Internal state needs to be stored on scope directly, which means that private state is\n *     exposed as $$____ properties\n *\n * Loop operations are optimized by using while(count--) { ... }\n *   - This means that in order to keep the same order of execution as addition we have to add\n *     items to the array at the beginning (unshift) instead of at the end (push)\n *\n * Child scopes are created and removed often\n *   - Using an array would be slow since inserts in the middle are expensive; so we use linked lists\n *\n * There are fewer watches than observers. This is why you don't want the observer to be implemented\n * in the same way as watch. Watch requires return of the initialization function which is expensive\n * to construct.\n */\n\n\n/**\n * @ngdoc provider\n * @name $rootScopeProvider\n * @description\n *\n * Provider for the $rootScope service.\n */\n\n/**\n * @ngdoc method\n * @name $rootScopeProvider#digestTtl\n * @description\n *\n * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and\n * assuming that the model is unstable.\n *\n * The current default is 10 iterations.\n *\n * In complex applications it's possible that the dependencies between `$watch`s will result in\n * several digest iterations. However if an application needs more than the default 10 digest\n * iterations for its model to stabilize then you should investigate what is causing the model to\n * continuously change during the digest.\n *\n * Increasing the TTL could have performance implications, so you should not change it without\n * proper justification.\n *\n * @param {number} limit The number of digest iterations.\n */\n\n\n/**\n * @ngdoc service\n * @name $rootScope\n * @this\n *\n * @description\n *\n * Every application has a single root {@link ng.$rootScope.Scope scope}.\n * All other scopes are descendant scopes of the root scope. Scopes provide separation\n * between the model and the view, via a mechanism for watching the model for changes.\n * They also provide event emission/broadcast and subscription facility. See the\n * {@link guide/scope developer guide on scopes}.\n */\nfunction $RootScopeProvider() {\n  var TTL = 10;\n  var $rootScopeMinErr = minErr('$rootScope');\n  var lastDirtyWatch = null;\n  var applyAsyncId = null;\n\n  this.digestTtl = function(value) {\n    if (arguments.length) {\n      TTL = value;\n    }\n    return TTL;\n  };\n\n  function createChildScopeClass(parent) {\n    function ChildScope() {\n      this.$$watchers = this.$$nextSibling =\n          this.$$childHead = this.$$childTail = null;\n      this.$$listeners = {};\n      this.$$listenerCount = {};\n      this.$$watchersCount = 0;\n      this.$id = nextUid();\n      this.$$ChildScope = null;\n    }\n    ChildScope.prototype = parent;\n    return ChildScope;\n  }\n\n  this.$get = ['$exceptionHandler', '$parse', '$browser',\n      function($exceptionHandler, $parse, $browser) {\n\n    function destroyChildScope($event) {\n        $event.currentScope.$$destroyed = true;\n    }\n\n    function cleanUpScope($scope) {\n\n      // Support: IE 9 only\n      if (msie === 9) {\n        // There is a memory leak in IE9 if all child scopes are not disconnected\n        // completely when a scope is destroyed. So this code will recurse up through\n        // all this scopes children\n        //\n        // See issue https://github.com/angular/angular.js/issues/10706\n        if ($scope.$$childHead) {\n          cleanUpScope($scope.$$childHead);\n        }\n        if ($scope.$$nextSibling) {\n          cleanUpScope($scope.$$nextSibling);\n        }\n      }\n\n      // The code below works around IE9 and V8's memory leaks\n      //\n      // See:\n      // - https://code.google.com/p/v8/issues/detail?id=2073#c26\n      // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909\n      // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451\n\n      $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead =\n          $scope.$$childTail = $scope.$root = $scope.$$watchers = null;\n    }\n\n    /**\n     * @ngdoc type\n     * @name $rootScope.Scope\n     *\n     * @description\n     * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the\n     * {@link auto.$injector $injector}. Child scopes are created using the\n     * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when\n     * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for\n     * an in-depth introduction and usage examples.\n     *\n     *\n     * # Inheritance\n     * A scope can inherit from a parent scope, as in this example:\n     * ```js\n         var parent = $rootScope;\n         var child = parent.$new();\n\n         parent.salutation = \"Hello\";\n         expect(child.salutation).toEqual('Hello');\n\n         child.salutation = \"Welcome\";\n         expect(child.salutation).toEqual('Welcome');\n         expect(parent.salutation).toEqual('Hello');\n     * ```\n     *\n     * When interacting with `Scope` in tests, additional helper methods are available on the\n     * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional\n     * details.\n     *\n     *\n     * @param {Object.<string, function()>=} providers Map of service factory which need to be\n     *                                       provided for the current scope. Defaults to {@link ng}.\n     * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should\n     *                              append/override services provided by `providers`. This is handy\n     *                              when unit-testing and having the need to override a default\n     *                              service.\n     * @returns {Object} Newly created scope.\n     *\n     */\n    function Scope() {\n      this.$id = nextUid();\n      this.$$phase = this.$parent = this.$$watchers =\n                     this.$$nextSibling = this.$$prevSibling =\n                     this.$$childHead = this.$$childTail = null;\n      this.$root = this;\n      this.$$destroyed = false;\n      this.$$listeners = {};\n      this.$$listenerCount = {};\n      this.$$watchersCount = 0;\n      this.$$isolateBindings = null;\n    }\n\n    /**\n     * @ngdoc property\n     * @name $rootScope.Scope#$id\n     *\n     * @description\n     * Unique scope ID (monotonically increasing) useful for debugging.\n     */\n\n     /**\n      * @ngdoc property\n      * @name $rootScope.Scope#$parent\n      *\n      * @description\n      * Reference to the parent scope.\n      */\n\n      /**\n       * @ngdoc property\n       * @name $rootScope.Scope#$root\n       *\n       * @description\n       * Reference to the root scope.\n       */\n\n    Scope.prototype = {\n      constructor: Scope,\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$new\n       * @kind function\n       *\n       * @description\n       * Creates a new child {@link ng.$rootScope.Scope scope}.\n       *\n       * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.\n       * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.\n       *\n       * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is\n       * desired for the scope and its child scopes to be permanently detached from the parent and\n       * thus stop participating in model change detection and listener notification by invoking.\n       *\n       * @param {boolean} isolate If true, then the scope does not prototypically inherit from the\n       *         parent scope. The scope is isolated, as it can not see parent scope properties.\n       *         When creating widgets, it is useful for the widget to not accidentally read parent\n       *         state.\n       *\n       * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`\n       *                              of the newly created scope. Defaults to `this` scope if not provided.\n       *                              This is used when creating a transclude scope to correctly place it\n       *                              in the scope hierarchy while maintaining the correct prototypical\n       *                              inheritance.\n       *\n       * @returns {Object} The newly created child scope.\n       *\n       */\n      $new: function(isolate, parent) {\n        var child;\n\n        parent = parent || this;\n\n        if (isolate) {\n          child = new Scope();\n          child.$root = this.$root;\n        } else {\n          // Only create a child scope class if somebody asks for one,\n          // but cache it to allow the VM to optimize lookups.\n          if (!this.$$ChildScope) {\n            this.$$ChildScope = createChildScopeClass(this);\n          }\n          child = new this.$$ChildScope();\n        }\n        child.$parent = parent;\n        child.$$prevSibling = parent.$$childTail;\n        if (parent.$$childHead) {\n          parent.$$childTail.$$nextSibling = child;\n          parent.$$childTail = child;\n        } else {\n          parent.$$childHead = parent.$$childTail = child;\n        }\n\n        // When the new scope is not isolated or we inherit from `this`, and\n        // the parent scope is destroyed, the property `$$destroyed` is inherited\n        // prototypically. In all other cases, this property needs to be set\n        // when the parent scope is destroyed.\n        // The listener needs to be added after the parent is set\n        if (isolate || parent !== this) child.$on('$destroy', destroyChildScope);\n\n        return child;\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$watch\n       * @kind function\n       *\n       * @description\n       * Registers a `listener` callback to be executed whenever the `watchExpression` changes.\n       *\n       * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest\n       *   $digest()} and should return the value that will be watched. (`watchExpression` should not change\n       *   its value when executed multiple times with the same input because it may be executed multiple\n       *   times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be\n       *   [idempotent](http://en.wikipedia.org/wiki/Idempotence).)\n       * - The `listener` is called only when the value from the current `watchExpression` and the\n       *   previous call to `watchExpression` are not equal (with the exception of the initial run,\n       *   see below). Inequality is determined according to reference inequality,\n       *   [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)\n       *    via the `!==` Javascript operator, unless `objectEquality == true`\n       *   (see next point)\n       * - When `objectEquality == true`, inequality of the `watchExpression` is determined\n       *   according to the {@link angular.equals} function. To save the value of the object for\n       *   later comparison, the {@link angular.copy} function is used. This therefore means that\n       *   watching complex objects will have adverse memory and performance implications.\n       * - This should not be used to watch for changes in objects that are\n       *   or contain [File](https://developer.mozilla.org/docs/Web/API/File) objects due to limitations with {@link angular.copy `angular.copy`}.\n       * - The watch `listener` may change the model, which may trigger other `listener`s to fire.\n       *   This is achieved by rerunning the watchers until no changes are detected. The rerun\n       *   iteration limit is 10 to prevent an infinite loop deadlock.\n       *\n       *\n       * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,\n       * you can register a `watchExpression` function with no `listener`. (Be prepared for\n       * multiple calls to your `watchExpression` because it will execute multiple times in a\n       * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)\n       *\n       * After a watcher is registered with the scope, the `listener` fn is called asynchronously\n       * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the\n       * watcher. In rare cases, this is undesirable because the listener is called when the result\n       * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you\n       * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the\n       * listener was called due to initialization.\n       *\n       *\n       *\n       * # Example\n       * ```js\n           // let's assume that scope was dependency injected as the $rootScope\n           var scope = $rootScope;\n           scope.name = 'misko';\n           scope.counter = 0;\n\n           expect(scope.counter).toEqual(0);\n           scope.$watch('name', function(newValue, oldValue) {\n             scope.counter = scope.counter + 1;\n           });\n           expect(scope.counter).toEqual(0);\n\n           scope.$digest();\n           // the listener is always called during the first $digest loop after it was registered\n           expect(scope.counter).toEqual(1);\n\n           scope.$digest();\n           // but now it will not be called unless the value changes\n           expect(scope.counter).toEqual(1);\n\n           scope.name = 'adam';\n           scope.$digest();\n           expect(scope.counter).toEqual(2);\n\n\n\n           // Using a function as a watchExpression\n           var food;\n           scope.foodCounter = 0;\n           expect(scope.foodCounter).toEqual(0);\n           scope.$watch(\n             // This function returns the value being watched. It is called for each turn of the $digest loop\n             function() { return food; },\n             // This is the change listener, called when the value returned from the above function changes\n             function(newValue, oldValue) {\n               if ( newValue !== oldValue ) {\n                 // Only increment the counter if the value changed\n                 scope.foodCounter = scope.foodCounter + 1;\n               }\n             }\n           );\n           // No digest has been run so the counter will be zero\n           expect(scope.foodCounter).toEqual(0);\n\n           // Run the digest but since food has not changed count will still be zero\n           scope.$digest();\n           expect(scope.foodCounter).toEqual(0);\n\n           // Update food and run digest.  Now the counter will increment\n           food = 'cheeseburger';\n           scope.$digest();\n           expect(scope.foodCounter).toEqual(1);\n\n       * ```\n       *\n       *\n       *\n       * @param {(function()|string)} watchExpression Expression that is evaluated on each\n       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers\n       *    a call to the `listener`.\n       *\n       *    - `string`: Evaluated as {@link guide/expression expression}\n       *    - `function(scope)`: called with current `scope` as a parameter.\n       * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value\n       *    of `watchExpression` changes.\n       *\n       *    - `newVal` contains the current value of the `watchExpression`\n       *    - `oldVal` contains the previous value of the `watchExpression`\n       *    - `scope` refers to the current scope\n       * @param {boolean=} [objectEquality=false] Compare for object equality using {@link angular.equals} instead of\n       *     comparing for reference equality.\n       * @returns {function()} Returns a deregistration function for this listener.\n       */\n      $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) {\n        var get = $parse(watchExp);\n\n        if (get.$$watchDelegate) {\n          return get.$$watchDelegate(this, listener, objectEquality, get, watchExp);\n        }\n        var scope = this,\n            array = scope.$$watchers,\n            watcher = {\n              fn: listener,\n              last: initWatchVal,\n              get: get,\n              exp: prettyPrintExpression || watchExp,\n              eq: !!objectEquality\n            };\n\n        lastDirtyWatch = null;\n\n        if (!isFunction(listener)) {\n          watcher.fn = noop;\n        }\n\n        if (!array) {\n          array = scope.$$watchers = [];\n          array.$$digestWatchIndex = -1;\n        }\n        // we use unshift since we use a while loop in $digest for speed.\n        // the while loop reads in reverse order.\n        array.unshift(watcher);\n        array.$$digestWatchIndex++;\n        incrementWatchersCount(this, 1);\n\n        return function deregisterWatch() {\n          var index = arrayRemove(array, watcher);\n          if (index >= 0) {\n            incrementWatchersCount(scope, -1);\n            if (index < array.$$digestWatchIndex) {\n              array.$$digestWatchIndex--;\n            }\n          }\n          lastDirtyWatch = null;\n        };\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$watchGroup\n       * @kind function\n       *\n       * @description\n       * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.\n       * If any one expression in the collection changes the `listener` is executed.\n       *\n       * - The items in the `watchExpressions` array are observed via the standard `$watch` operation. Their return\n       *   values are examined for changes on every call to `$digest`.\n       * - The `listener` is called whenever any expression in the `watchExpressions` array changes.\n       *\n       * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually\n       * watched using {@link ng.$rootScope.Scope#$watch $watch()}\n       *\n       * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any\n       *    expression in `watchExpressions` changes\n       *    The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching\n       *    those of `watchExpression`\n       *    and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching\n       *    those of `watchExpression`\n       *    The `scope` refers to the current scope.\n       * @returns {function()} Returns a de-registration function for all listeners.\n       */\n      $watchGroup: function(watchExpressions, listener) {\n        var oldValues = new Array(watchExpressions.length);\n        var newValues = new Array(watchExpressions.length);\n        var deregisterFns = [];\n        var self = this;\n        var changeReactionScheduled = false;\n        var firstRun = true;\n\n        if (!watchExpressions.length) {\n          // No expressions means we call the listener ASAP\n          var shouldCall = true;\n          self.$evalAsync(function() {\n            if (shouldCall) listener(newValues, newValues, self);\n          });\n          return function deregisterWatchGroup() {\n            shouldCall = false;\n          };\n        }\n\n        if (watchExpressions.length === 1) {\n          // Special case size of one\n          return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {\n            newValues[0] = value;\n            oldValues[0] = oldValue;\n            listener(newValues, (value === oldValue) ? newValues : oldValues, scope);\n          });\n        }\n\n        forEach(watchExpressions, function(expr, i) {\n          var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {\n            newValues[i] = value;\n            oldValues[i] = oldValue;\n            if (!changeReactionScheduled) {\n              changeReactionScheduled = true;\n              self.$evalAsync(watchGroupAction);\n            }\n          });\n          deregisterFns.push(unwatchFn);\n        });\n\n        function watchGroupAction() {\n          changeReactionScheduled = false;\n\n          if (firstRun) {\n            firstRun = false;\n            listener(newValues, newValues, self);\n          } else {\n            listener(newValues, oldValues, self);\n          }\n        }\n\n        return function deregisterWatchGroup() {\n          while (deregisterFns.length) {\n            deregisterFns.shift()();\n          }\n        };\n      },\n\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$watchCollection\n       * @kind function\n       *\n       * @description\n       * Shallow watches the properties of an object and fires whenever any of the properties change\n       * (for arrays, this implies watching the array items; for object maps, this implies watching\n       * the properties). If a change is detected, the `listener` callback is fired.\n       *\n       * - The `obj` collection is observed via standard $watch operation and is examined on every\n       *   call to $digest() to see if any items have been added, removed, or moved.\n       * - The `listener` is called whenever anything within the `obj` has changed. Examples include\n       *   adding, removing, and moving items belonging to an object or array.\n       *\n       *\n       * # Example\n       * ```js\n          $scope.names = ['igor', 'matias', 'misko', 'james'];\n          $scope.dataCount = 4;\n\n          $scope.$watchCollection('names', function(newNames, oldNames) {\n            $scope.dataCount = newNames.length;\n          });\n\n          expect($scope.dataCount).toEqual(4);\n          $scope.$digest();\n\n          //still at 4 ... no changes\n          expect($scope.dataCount).toEqual(4);\n\n          $scope.names.pop();\n          $scope.$digest();\n\n          //now there's been a change\n          expect($scope.dataCount).toEqual(3);\n       * ```\n       *\n       *\n       * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The\n       *    expression value should evaluate to an object or an array which is observed on each\n       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the\n       *    collection will trigger a call to the `listener`.\n       *\n       * @param {function(newCollection, oldCollection, scope)} listener a callback function called\n       *    when a change is detected.\n       *    - The `newCollection` object is the newly modified data obtained from the `obj` expression\n       *    - The `oldCollection` object is a copy of the former collection data.\n       *      Due to performance considerations, the`oldCollection` value is computed only if the\n       *      `listener` function declares two or more arguments.\n       *    - The `scope` argument refers to the current scope.\n       *\n       * @returns {function()} Returns a de-registration function for this listener. When the\n       *    de-registration function is executed, the internal watch operation is terminated.\n       */\n      $watchCollection: function(obj, listener) {\n        $watchCollectionInterceptor.$stateful = true;\n\n        var self = this;\n        // the current value, updated on each dirty-check run\n        var newValue;\n        // a shallow copy of the newValue from the last dirty-check run,\n        // updated to match newValue during dirty-check run\n        var oldValue;\n        // a shallow copy of the newValue from when the last change happened\n        var veryOldValue;\n        // only track veryOldValue if the listener is asking for it\n        var trackVeryOldValue = (listener.length > 1);\n        var changeDetected = 0;\n        var changeDetector = $parse(obj, $watchCollectionInterceptor);\n        var internalArray = [];\n        var internalObject = {};\n        var initRun = true;\n        var oldLength = 0;\n\n        function $watchCollectionInterceptor(_value) {\n          newValue = _value;\n          var newLength, key, bothNaN, newItem, oldItem;\n\n          // If the new value is undefined, then return undefined as the watch may be a one-time watch\n          if (isUndefined(newValue)) return;\n\n          if (!isObject(newValue)) { // if primitive\n            if (oldValue !== newValue) {\n              oldValue = newValue;\n              changeDetected++;\n            }\n          } else if (isArrayLike(newValue)) {\n            if (oldValue !== internalArray) {\n              // we are transitioning from something which was not an array into array.\n              oldValue = internalArray;\n              oldLength = oldValue.length = 0;\n              changeDetected++;\n            }\n\n            newLength = newValue.length;\n\n            if (oldLength !== newLength) {\n              // if lengths do not match we need to trigger change notification\n              changeDetected++;\n              oldValue.length = oldLength = newLength;\n            }\n            // copy the items to oldValue and look for changes.\n            for (var i = 0; i < newLength; i++) {\n              oldItem = oldValue[i];\n              newItem = newValue[i];\n\n              // eslint-disable-next-line no-self-compare\n              bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n              if (!bothNaN && (oldItem !== newItem)) {\n                changeDetected++;\n                oldValue[i] = newItem;\n              }\n            }\n          } else {\n            if (oldValue !== internalObject) {\n              // we are transitioning from something which was not an object into object.\n              oldValue = internalObject = {};\n              oldLength = 0;\n              changeDetected++;\n            }\n            // copy the items to oldValue and look for changes.\n            newLength = 0;\n            for (key in newValue) {\n              if (hasOwnProperty.call(newValue, key)) {\n                newLength++;\n                newItem = newValue[key];\n                oldItem = oldValue[key];\n\n                if (key in oldValue) {\n                  // eslint-disable-next-line no-self-compare\n                  bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n                  if (!bothNaN && (oldItem !== newItem)) {\n                    changeDetected++;\n                    oldValue[key] = newItem;\n                  }\n                } else {\n                  oldLength++;\n                  oldValue[key] = newItem;\n                  changeDetected++;\n                }\n              }\n            }\n            if (oldLength > newLength) {\n              // we used to have more keys, need to find them and destroy them.\n              changeDetected++;\n              for (key in oldValue) {\n                if (!hasOwnProperty.call(newValue, key)) {\n                  oldLength--;\n                  delete oldValue[key];\n                }\n              }\n            }\n          }\n          return changeDetected;\n        }\n\n        function $watchCollectionAction() {\n          if (initRun) {\n            initRun = false;\n            listener(newValue, newValue, self);\n          } else {\n            listener(newValue, veryOldValue, self);\n          }\n\n          // make a copy for the next time a collection is changed\n          if (trackVeryOldValue) {\n            if (!isObject(newValue)) {\n              //primitive\n              veryOldValue = newValue;\n            } else if (isArrayLike(newValue)) {\n              veryOldValue = new Array(newValue.length);\n              for (var i = 0; i < newValue.length; i++) {\n                veryOldValue[i] = newValue[i];\n              }\n            } else { // if object\n              veryOldValue = {};\n              for (var key in newValue) {\n                if (hasOwnProperty.call(newValue, key)) {\n                  veryOldValue[key] = newValue[key];\n                }\n              }\n            }\n          }\n        }\n\n        return this.$watch(changeDetector, $watchCollectionAction);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$digest\n       * @kind function\n       *\n       * @description\n       * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and\n       * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change\n       * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}\n       * until no more listeners are firing. This means that it is possible to get into an infinite\n       * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of\n       * iterations exceeds 10.\n       *\n       * Usually, you don't call `$digest()` directly in\n       * {@link ng.directive:ngController controllers} or in\n       * {@link ng.$compileProvider#directive directives}.\n       * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within\n       * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.\n       *\n       * If you want to be notified whenever `$digest()` is called,\n       * you can register a `watchExpression` function with\n       * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.\n       *\n       * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.\n       *\n       * # Example\n       * ```js\n           var scope = ...;\n           scope.name = 'misko';\n           scope.counter = 0;\n\n           expect(scope.counter).toEqual(0);\n           scope.$watch('name', function(newValue, oldValue) {\n             scope.counter = scope.counter + 1;\n           });\n           expect(scope.counter).toEqual(0);\n\n           scope.$digest();\n           // the listener is always called during the first $digest loop after it was registered\n           expect(scope.counter).toEqual(1);\n\n           scope.$digest();\n           // but now it will not be called unless the value changes\n           expect(scope.counter).toEqual(1);\n\n           scope.name = 'adam';\n           scope.$digest();\n           expect(scope.counter).toEqual(2);\n       * ```\n       *\n       */\n      $digest: function() {\n        var watch, value, last, fn, get,\n            watchers,\n            dirty, ttl = TTL,\n            next, current, target = this,\n            watchLog = [],\n            logIdx, asyncTask;\n\n        beginPhase('$digest');\n        // Check for changes to browser url that happened in sync before the call to $digest\n        $browser.$$checkUrlChange();\n\n        if (this === $rootScope && applyAsyncId !== null) {\n          // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then\n          // cancel the scheduled $apply and flush the queue of expressions to be evaluated.\n          $browser.defer.cancel(applyAsyncId);\n          flushApplyAsync();\n        }\n\n        lastDirtyWatch = null;\n\n        do { // \"while dirty\" loop\n          dirty = false;\n          current = target;\n\n          // It's safe for asyncQueuePosition to be a local variable here because this loop can't\n          // be reentered recursively. Calling $digest from a function passed to $applyAsync would\n          // lead to a '$digest already in progress' error.\n          for (var asyncQueuePosition = 0; asyncQueuePosition < asyncQueue.length; asyncQueuePosition++) {\n            try {\n              asyncTask = asyncQueue[asyncQueuePosition];\n              asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);\n            } catch (e) {\n              $exceptionHandler(e);\n            }\n            lastDirtyWatch = null;\n          }\n          asyncQueue.length = 0;\n\n          traverseScopesLoop:\n          do { // \"traverse the scopes\" loop\n            if ((watchers = current.$$watchers)) {\n              // process our watches\n              watchers.$$digestWatchIndex = watchers.length;\n              while (watchers.$$digestWatchIndex--) {\n                try {\n                  watch = watchers[watchers.$$digestWatchIndex];\n                  // Most common watches are on primitives, in which case we can short\n                  // circuit it with === operator, only when === fails do we use .equals\n                  if (watch) {\n                    get = watch.get;\n                    if ((value = get(current)) !== (last = watch.last) &&\n                        !(watch.eq\n                            ? equals(value, last)\n                            : (isNumberNaN(value) && isNumberNaN(last)))) {\n                      dirty = true;\n                      lastDirtyWatch = watch;\n                      watch.last = watch.eq ? copy(value, null) : value;\n                      fn = watch.fn;\n                      fn(value, ((last === initWatchVal) ? value : last), current);\n                      if (ttl < 5) {\n                        logIdx = 4 - ttl;\n                        if (!watchLog[logIdx]) watchLog[logIdx] = [];\n                        watchLog[logIdx].push({\n                          msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,\n                          newVal: value,\n                          oldVal: last\n                        });\n                      }\n                    } else if (watch === lastDirtyWatch) {\n                      // If the most recently dirty watcher is now clean, short circuit since the remaining watchers\n                      // have already been tested.\n                      dirty = false;\n                      break traverseScopesLoop;\n                    }\n                  }\n                } catch (e) {\n                  $exceptionHandler(e);\n                }\n              }\n            }\n\n            // Insanity Warning: scope depth-first traversal\n            // yes, this code is a bit crazy, but it works and we have tests to prove it!\n            // this piece should be kept in sync with the traversal in $broadcast\n            if (!(next = ((current.$$watchersCount && current.$$childHead) ||\n                (current !== target && current.$$nextSibling)))) {\n              while (current !== target && !(next = current.$$nextSibling)) {\n                current = current.$parent;\n              }\n            }\n          } while ((current = next));\n\n          // `break traverseScopesLoop;` takes us to here\n\n          if ((dirty || asyncQueue.length) && !(ttl--)) {\n            clearPhase();\n            throw $rootScopeMinErr('infdig',\n                '{0} $digest() iterations reached. Aborting!\\n' +\n                'Watchers fired in the last 5 iterations: {1}',\n                TTL, watchLog);\n          }\n\n        } while (dirty || asyncQueue.length);\n\n        clearPhase();\n\n        // postDigestQueuePosition isn't local here because this loop can be reentered recursively.\n        while (postDigestQueuePosition < postDigestQueue.length) {\n          try {\n            postDigestQueue[postDigestQueuePosition++]();\n          } catch (e) {\n            $exceptionHandler(e);\n          }\n        }\n        postDigestQueue.length = postDigestQueuePosition = 0;\n      },\n\n\n      /**\n       * @ngdoc event\n       * @name $rootScope.Scope#$destroy\n       * @eventType broadcast on scope being destroyed\n       *\n       * @description\n       * Broadcasted when a scope and its children are being destroyed.\n       *\n       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n       * clean up DOM bindings before an element is removed from the DOM.\n       */\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$destroy\n       * @kind function\n       *\n       * @description\n       * Removes the current scope (and all of its children) from the parent scope. Removal implies\n       * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer\n       * propagate to the current scope and its children. Removal also implies that the current\n       * scope is eligible for garbage collection.\n       *\n       * The `$destroy()` is usually used by directives such as\n       * {@link ng.directive:ngRepeat ngRepeat} for managing the\n       * unrolling of the loop.\n       *\n       * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.\n       * Application code can register a `$destroy` event handler that will give it a chance to\n       * perform any necessary cleanup.\n       *\n       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n       * clean up DOM bindings before an element is removed from the DOM.\n       */\n      $destroy: function() {\n        // We can't destroy a scope that has been already destroyed.\n        if (this.$$destroyed) return;\n        var parent = this.$parent;\n\n        this.$broadcast('$destroy');\n        this.$$destroyed = true;\n\n        if (this === $rootScope) {\n          //Remove handlers attached to window when $rootScope is removed\n          $browser.$$applicationDestroyed();\n        }\n\n        incrementWatchersCount(this, -this.$$watchersCount);\n        for (var eventName in this.$$listenerCount) {\n          decrementListenerCount(this, this.$$listenerCount[eventName], eventName);\n        }\n\n        // sever all the references to parent scopes (after this cleanup, the current scope should\n        // not be retained by any of our references and should be eligible for garbage collection)\n        if (parent && parent.$$childHead === this) parent.$$childHead = this.$$nextSibling;\n        if (parent && parent.$$childTail === this) parent.$$childTail = this.$$prevSibling;\n        if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;\n        if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;\n\n        // Disable listeners, watchers and apply/digest methods\n        this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;\n        this.$on = this.$watch = this.$watchGroup = function() { return noop; };\n        this.$$listeners = {};\n\n        // Disconnect the next sibling to prevent `cleanUpScope` destroying those too\n        this.$$nextSibling = null;\n        cleanUpScope(this);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$eval\n       * @kind function\n       *\n       * @description\n       * Executes the `expression` on the current scope and returns the result. Any exceptions in\n       * the expression are propagated (uncaught). This is useful when evaluating Angular\n       * expressions.\n       *\n       * # Example\n       * ```js\n           var scope = ng.$rootScope.Scope();\n           scope.a = 1;\n           scope.b = 2;\n\n           expect(scope.$eval('a+b')).toEqual(3);\n           expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);\n       * ```\n       *\n       * @param {(string|function())=} expression An angular expression to be executed.\n       *\n       *    - `string`: execute using the rules as defined in  {@link guide/expression expression}.\n       *    - `function(scope)`: execute the function with the current `scope` parameter.\n       *\n       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n       * @returns {*} The result of evaluating the expression.\n       */\n      $eval: function(expr, locals) {\n        return $parse(expr)(this, locals);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$evalAsync\n       * @kind function\n       *\n       * @description\n       * Executes the expression on the current scope at a later point in time.\n       *\n       * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only\n       * that:\n       *\n       *   - it will execute after the function that scheduled the evaluation (preferably before DOM\n       *     rendering).\n       *   - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after\n       *     `expression` execution.\n       *\n       * Any exceptions from the execution of the expression are forwarded to the\n       * {@link ng.$exceptionHandler $exceptionHandler} service.\n       *\n       * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle\n       * will be scheduled. However, it is encouraged to always call code that changes the model\n       * from within an `$apply` call. That includes code evaluated via `$evalAsync`.\n       *\n       * @param {(string|function())=} expression An angular expression to be executed.\n       *\n       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n       *    - `function(scope)`: execute the function with the current `scope` parameter.\n       *\n       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n       */\n      $evalAsync: function(expr, locals) {\n        // if we are outside of an $digest loop and this is the first time we are scheduling async\n        // task also schedule async auto-flush\n        if (!$rootScope.$$phase && !asyncQueue.length) {\n          $browser.defer(function() {\n            if (asyncQueue.length) {\n              $rootScope.$digest();\n            }\n          });\n        }\n\n        asyncQueue.push({scope: this, expression: $parse(expr), locals: locals});\n      },\n\n      $$postDigest: function(fn) {\n        postDigestQueue.push(fn);\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$apply\n       * @kind function\n       *\n       * @description\n       * `$apply()` is used to execute an expression in angular from outside of the angular\n       * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).\n       * Because we are calling into the angular framework we need to perform proper scope life\n       * cycle of {@link ng.$exceptionHandler exception handling},\n       * {@link ng.$rootScope.Scope#$digest executing watches}.\n       *\n       * ## Life cycle\n       *\n       * # Pseudo-Code of `$apply()`\n       * ```js\n           function $apply(expr) {\n             try {\n               return $eval(expr);\n             } catch (e) {\n               $exceptionHandler(e);\n             } finally {\n               $root.$digest();\n             }\n           }\n       * ```\n       *\n       *\n       * Scope's `$apply()` method transitions through the following stages:\n       *\n       * 1. The {@link guide/expression expression} is executed using the\n       *    {@link ng.$rootScope.Scope#$eval $eval()} method.\n       * 2. Any exceptions from the execution of the expression are forwarded to the\n       *    {@link ng.$exceptionHandler $exceptionHandler} service.\n       * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the\n       *    expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.\n       *\n       *\n       * @param {(string|function())=} exp An angular expression to be executed.\n       *\n       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n       *    - `function(scope)`: execute the function with current `scope` parameter.\n       *\n       * @returns {*} The result of evaluating the expression.\n       */\n      $apply: function(expr) {\n        try {\n          beginPhase('$apply');\n          try {\n            return this.$eval(expr);\n          } finally {\n            clearPhase();\n          }\n        } catch (e) {\n          $exceptionHandler(e);\n        } finally {\n          try {\n            $rootScope.$digest();\n          } catch (e) {\n            $exceptionHandler(e);\n            // eslint-disable-next-line no-unsafe-finally\n            throw e;\n          }\n        }\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$applyAsync\n       * @kind function\n       *\n       * @description\n       * Schedule the invocation of $apply to occur at a later time. The actual time difference\n       * varies across browsers, but is typically around ~10 milliseconds.\n       *\n       * This can be used to queue up multiple expressions which need to be evaluated in the same\n       * digest.\n       *\n       * @param {(string|function())=} exp An angular expression to be executed.\n       *\n       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n       *    - `function(scope)`: execute the function with current `scope` parameter.\n       */\n      $applyAsync: function(expr) {\n        var scope = this;\n        if (expr) {\n          applyAsyncQueue.push($applyAsyncExpression);\n        }\n        expr = $parse(expr);\n        scheduleApplyAsync();\n\n        function $applyAsyncExpression() {\n          scope.$eval(expr);\n        }\n      },\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$on\n       * @kind function\n       *\n       * @description\n       * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for\n       * discussion of event life cycle.\n       *\n       * The event listener function format is: `function(event, args...)`. The `event` object\n       * passed into the listener has the following attributes:\n       *\n       *   - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or\n       *     `$broadcast`-ed.\n       *   - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the\n       *     event propagates through the scope hierarchy, this property is set to null.\n       *   - `name` - `{string}`: name of the event.\n       *   - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel\n       *     further event propagation (available only for events that were `$emit`-ed).\n       *   - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag\n       *     to true.\n       *   - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.\n       *\n       * @param {string} name Event name to listen on.\n       * @param {function(event, ...args)} listener Function to call when the event is emitted.\n       * @returns {function()} Returns a deregistration function for this listener.\n       */\n      $on: function(name, listener) {\n        var namedListeners = this.$$listeners[name];\n        if (!namedListeners) {\n          this.$$listeners[name] = namedListeners = [];\n        }\n        namedListeners.push(listener);\n\n        var current = this;\n        do {\n          if (!current.$$listenerCount[name]) {\n            current.$$listenerCount[name] = 0;\n          }\n          current.$$listenerCount[name]++;\n        } while ((current = current.$parent));\n\n        var self = this;\n        return function() {\n          var indexOfListener = namedListeners.indexOf(listener);\n          if (indexOfListener !== -1) {\n            namedListeners[indexOfListener] = null;\n            decrementListenerCount(self, 1, name);\n          }\n        };\n      },\n\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$emit\n       * @kind function\n       *\n       * @description\n       * Dispatches an event `name` upwards through the scope hierarchy notifying the\n       * registered {@link ng.$rootScope.Scope#$on} listeners.\n       *\n       * The event life cycle starts at the scope on which `$emit` was called. All\n       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n       * notified. Afterwards, the event traverses upwards toward the root scope and calls all\n       * registered listeners along the way. The event will stop propagating if one of the listeners\n       * cancels it.\n       *\n       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n       *\n       * @param {string} name Event name to emit.\n       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n       * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).\n       */\n      $emit: function(name, args) {\n        var empty = [],\n            namedListeners,\n            scope = this,\n            stopPropagation = false,\n            event = {\n              name: name,\n              targetScope: scope,\n              stopPropagation: function() {stopPropagation = true;},\n              preventDefault: function() {\n                event.defaultPrevented = true;\n              },\n              defaultPrevented: false\n            },\n            listenerArgs = concat([event], arguments, 1),\n            i, length;\n\n        do {\n          namedListeners = scope.$$listeners[name] || empty;\n          event.currentScope = scope;\n          for (i = 0, length = namedListeners.length; i < length; i++) {\n\n            // if listeners were deregistered, defragment the array\n            if (!namedListeners[i]) {\n              namedListeners.splice(i, 1);\n              i--;\n              length--;\n              continue;\n            }\n            try {\n              //allow all listeners attached to the current scope to run\n              namedListeners[i].apply(null, listenerArgs);\n            } catch (e) {\n              $exceptionHandler(e);\n            }\n          }\n          //if any listener on the current scope stops propagation, prevent bubbling\n          if (stopPropagation) {\n            event.currentScope = null;\n            return event;\n          }\n          //traverse upwards\n          scope = scope.$parent;\n        } while (scope);\n\n        event.currentScope = null;\n\n        return event;\n      },\n\n\n      /**\n       * @ngdoc method\n       * @name $rootScope.Scope#$broadcast\n       * @kind function\n       *\n       * @description\n       * Dispatches an event `name` downwards to all child scopes (and their children) notifying the\n       * registered {@link ng.$rootScope.Scope#$on} listeners.\n       *\n       * The event life cycle starts at the scope on which `$broadcast` was called. All\n       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n       * notified. Afterwards, the event propagates to all direct and indirect scopes of the current\n       * scope and calls all registered listeners along the way. The event cannot be canceled.\n       *\n       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n       *\n       * @param {string} name Event name to broadcast.\n       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n       * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}\n       */\n      $broadcast: function(name, args) {\n        var target = this,\n            current = target,\n            next = target,\n            event = {\n              name: name,\n              targetScope: target,\n              preventDefault: function() {\n                event.defaultPrevented = true;\n              },\n              defaultPrevented: false\n            };\n\n        if (!target.$$listenerCount[name]) return event;\n\n        var listenerArgs = concat([event], arguments, 1),\n            listeners, i, length;\n\n        //down while you can, then up and next sibling or up and next sibling until back at root\n        while ((current = next)) {\n          event.currentScope = current;\n          listeners = current.$$listeners[name] || [];\n          for (i = 0, length = listeners.length; i < length; i++) {\n            // if listeners were deregistered, defragment the array\n            if (!listeners[i]) {\n              listeners.splice(i, 1);\n              i--;\n              length--;\n              continue;\n            }\n\n            try {\n              listeners[i].apply(null, listenerArgs);\n            } catch (e) {\n              $exceptionHandler(e);\n            }\n          }\n\n          // Insanity Warning: scope depth-first traversal\n          // yes, this code is a bit crazy, but it works and we have tests to prove it!\n          // this piece should be kept in sync with the traversal in $digest\n          // (though it differs due to having the extra check for $$listenerCount)\n          if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||\n              (current !== target && current.$$nextSibling)))) {\n            while (current !== target && !(next = current.$$nextSibling)) {\n              current = current.$parent;\n            }\n          }\n        }\n\n        event.currentScope = null;\n        return event;\n      }\n    };\n\n    var $rootScope = new Scope();\n\n    //The internal queues. Expose them on the $rootScope for debugging/testing purposes.\n    var asyncQueue = $rootScope.$$asyncQueue = [];\n    var postDigestQueue = $rootScope.$$postDigestQueue = [];\n    var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];\n\n    var postDigestQueuePosition = 0;\n\n    return $rootScope;\n\n\n    function beginPhase(phase) {\n      if ($rootScope.$$phase) {\n        throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);\n      }\n\n      $rootScope.$$phase = phase;\n    }\n\n    function clearPhase() {\n      $rootScope.$$phase = null;\n    }\n\n    function incrementWatchersCount(current, count) {\n      do {\n        current.$$watchersCount += count;\n      } while ((current = current.$parent));\n    }\n\n    function decrementListenerCount(current, count, name) {\n      do {\n        current.$$listenerCount[name] -= count;\n\n        if (current.$$listenerCount[name] === 0) {\n          delete current.$$listenerCount[name];\n        }\n      } while ((current = current.$parent));\n    }\n\n    /**\n     * function used as an initial value for watchers.\n     * because it's unique we can easily tell it apart from other values\n     */\n    function initWatchVal() {}\n\n    function flushApplyAsync() {\n      while (applyAsyncQueue.length) {\n        try {\n          applyAsyncQueue.shift()();\n        } catch (e) {\n          $exceptionHandler(e);\n        }\n      }\n      applyAsyncId = null;\n    }\n\n    function scheduleApplyAsync() {\n      if (applyAsyncId === null) {\n        applyAsyncId = $browser.defer(function() {\n          $rootScope.$apply(flushApplyAsync);\n        });\n      }\n    }\n  }];\n}\n\n/**\n * @ngdoc service\n * @name $rootElement\n *\n * @description\n * The root element of Angular application. This is either the element where {@link\n * ng.directive:ngApp ngApp} was declared or the element passed into\n * {@link angular.bootstrap}. The element represents the root element of application. It is also the\n * location where the application's {@link auto.$injector $injector} service gets\n * published, and can be retrieved using `$rootElement.injector()`.\n */\n\n\n// the implementation is in angular.bootstrap\n\n/**\n * @this\n * @description\n * Private service to sanitize uris for links and images. Used by $compile and $sanitize.\n */\nfunction $$SanitizeUriProvider() {\n  var aHrefSanitizationWhitelist = /^\\s*(https?|ftp|mailto|tel|file):/,\n    imgSrcSanitizationWhitelist = /^\\s*((https?|ftp|file|blob):|data:image\\/)/;\n\n  /**\n   * @description\n   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n   * urls during a[href] sanitization.\n   *\n   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n   *\n   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n   *\n   * @param {RegExp=} regexp New regexp to whitelist urls with.\n   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n   *    chaining otherwise.\n   */\n  this.aHrefSanitizationWhitelist = function(regexp) {\n    if (isDefined(regexp)) {\n      aHrefSanitizationWhitelist = regexp;\n      return this;\n    }\n    return aHrefSanitizationWhitelist;\n  };\n\n\n  /**\n   * @description\n   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n   * urls during img[src] sanitization.\n   *\n   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n   *\n   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n   *\n   * @param {RegExp=} regexp New regexp to whitelist urls with.\n   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n   *    chaining otherwise.\n   */\n  this.imgSrcSanitizationWhitelist = function(regexp) {\n    if (isDefined(regexp)) {\n      imgSrcSanitizationWhitelist = regexp;\n      return this;\n    }\n    return imgSrcSanitizationWhitelist;\n  };\n\n  this.$get = function() {\n    return function sanitizeUri(uri, isImage) {\n      var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;\n      var normalizedVal;\n      normalizedVal = urlResolve(uri).href;\n      if (normalizedVal !== '' && !normalizedVal.match(regex)) {\n        return 'unsafe:' + normalizedVal;\n      }\n      return uri;\n    };\n  };\n}\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n *     Any commits to this file should be reviewed with security in mind.  *\n *   Changes to this file can potentially create security vulnerabilities. *\n *          An approval from 2 Core members with history of modifying      *\n *                         this file is required.                          *\n *                                                                         *\n *  Does the change somehow allow for arbitrary javascript to be executed? *\n *    Or allows for someone to change the prototype of built-in objects?   *\n *     Or gives undesired access to variables likes document or window?    *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n/* exported $SceProvider, $SceDelegateProvider */\n\nvar $sceMinErr = minErr('$sce');\n\nvar SCE_CONTEXTS = {\n  HTML: 'html',\n  CSS: 'css',\n  URL: 'url',\n  // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a\n  // url.  (e.g. ng-include, script src, templateUrl)\n  RESOURCE_URL: 'resourceUrl',\n  JS: 'js'\n};\n\n// Helper functions follow.\n\nvar UNDERSCORE_LOWERCASE_REGEXP = /_([a-z])/g;\n\nfunction snakeToCamel(name) {\n  return name\n    .replace(UNDERSCORE_LOWERCASE_REGEXP, fnCamelCaseReplace);\n}\n\nfunction adjustMatcher(matcher) {\n  if (matcher === 'self') {\n    return matcher;\n  } else if (isString(matcher)) {\n    // Strings match exactly except for 2 wildcards - '*' and '**'.\n    // '*' matches any character except those from the set ':/.?&'.\n    // '**' matches any character (like .* in a RegExp).\n    // More than 2 *'s raises an error as it's ill defined.\n    if (matcher.indexOf('***') > -1) {\n      throw $sceMinErr('iwcard',\n          'Illegal sequence *** in string matcher.  String: {0}', matcher);\n    }\n    matcher = escapeForRegexp(matcher).\n                  replace(/\\\\\\*\\\\\\*/g, '.*').\n                  replace(/\\\\\\*/g, '[^:/.?&;]*');\n    return new RegExp('^' + matcher + '$');\n  } else if (isRegExp(matcher)) {\n    // The only other type of matcher allowed is a Regexp.\n    // Match entire URL / disallow partial matches.\n    // Flags are reset (i.e. no global, ignoreCase or multiline)\n    return new RegExp('^' + matcher.source + '$');\n  } else {\n    throw $sceMinErr('imatcher',\n        'Matchers may only be \"self\", string patterns or RegExp objects');\n  }\n}\n\n\nfunction adjustMatchers(matchers) {\n  var adjustedMatchers = [];\n  if (isDefined(matchers)) {\n    forEach(matchers, function(matcher) {\n      adjustedMatchers.push(adjustMatcher(matcher));\n    });\n  }\n  return adjustedMatchers;\n}\n\n\n/**\n * @ngdoc service\n * @name $sceDelegate\n * @kind function\n *\n * @description\n *\n * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict\n * Contextual Escaping (SCE)} services to AngularJS.\n *\n * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of\n * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS.  This is\n * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to\n * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things\n * work because `$sce` delegates to `$sceDelegate` for these operations.\n *\n * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.\n *\n * The default instance of `$sceDelegate` should work out of the box with little pain.  While you\n * can override it completely to change the behavior of `$sce`, the common case would\n * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting\n * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as\n * templates.  Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist\n * $sceDelegateProvider.resourceUrlWhitelist} and {@link\n * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n */\n\n/**\n * @ngdoc provider\n * @name $sceDelegateProvider\n * @this\n *\n * @description\n *\n * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate\n * $sceDelegate} service.  This allows one to get/set the whitelists and blacklists used to ensure\n * that the URLs used for sourcing Angular templates are safe.  Refer {@link\n * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and\n * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n *\n * For the general details about this service in Angular, read the main page for {@link ng.$sce\n * Strict Contextual Escaping (SCE)}.\n *\n * **Example**:  Consider the following case. <a name=\"example\"></a>\n *\n * - your app is hosted at url `http://myapp.example.com/`\n * - but some of your templates are hosted on other domains you control such as\n *   `http://srv01.assets.example.com/`, `http://srv02.assets.example.com/`, etc.\n * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.\n *\n * Here is what a secure configuration for this scenario might look like:\n *\n * ```\n *  angular.module('myApp', []).config(function($sceDelegateProvider) {\n *    $sceDelegateProvider.resourceUrlWhitelist([\n *      // Allow same origin resource loads.\n *      'self',\n *      // Allow loading from our assets domain.  Notice the difference between * and **.\n *      'http://srv*.assets.example.com/**'\n *    ]);\n *\n *    // The blacklist overrides the whitelist so the open redirect here is blocked.\n *    $sceDelegateProvider.resourceUrlBlacklist([\n *      'http://myapp.example.com/clickThru**'\n *    ]);\n *  });\n * ```\n */\n\nfunction $SceDelegateProvider() {\n  this.SCE_CONTEXTS = SCE_CONTEXTS;\n\n  // Resource URLs can also be trusted by policy.\n  var resourceUrlWhitelist = ['self'],\n      resourceUrlBlacklist = [];\n\n  /**\n   * @ngdoc method\n   * @name $sceDelegateProvider#resourceUrlWhitelist\n   * @kind function\n   *\n   * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value\n   *    provided.  This must be an array or null.  A snapshot of this array is used so further\n   *    changes to the array are ignored.\n   *\n   *    Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n   *    allowed in this array.\n   *\n   *    <div class=\"alert alert-warning\">\n   *    **Note:** an empty whitelist array will block all URLs!\n   *    </div>\n   *\n   * @return {Array} the currently set whitelist array.\n   *\n   * The **default value** when no whitelist has been explicitly set is `['self']` allowing only\n   * same origin resource requests.\n   *\n   * @description\n   * Sets/Gets the whitelist of trusted resource URLs.\n   */\n  this.resourceUrlWhitelist = function(value) {\n    if (arguments.length) {\n      resourceUrlWhitelist = adjustMatchers(value);\n    }\n    return resourceUrlWhitelist;\n  };\n\n  /**\n   * @ngdoc method\n   * @name $sceDelegateProvider#resourceUrlBlacklist\n   * @kind function\n   *\n   * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value\n   *    provided.  This must be an array or null.  A snapshot of this array is used so further\n   *    changes to the array are ignored.\n   *\n   *    Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n   *    allowed in this array.\n   *\n   *    The typical usage for the blacklist is to **block\n   *    [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as\n   *    these would otherwise be trusted but actually return content from the redirected domain.\n   *\n   *    Finally, **the blacklist overrides the whitelist** and has the final say.\n   *\n   * @return {Array} the currently set blacklist array.\n   *\n   * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there\n   * is no blacklist.)\n   *\n   * @description\n   * Sets/Gets the blacklist of trusted resource URLs.\n   */\n\n  this.resourceUrlBlacklist = function(value) {\n    if (arguments.length) {\n      resourceUrlBlacklist = adjustMatchers(value);\n    }\n    return resourceUrlBlacklist;\n  };\n\n  this.$get = ['$injector', function($injector) {\n\n    var htmlSanitizer = function htmlSanitizer(html) {\n      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n    };\n\n    if ($injector.has('$sanitize')) {\n      htmlSanitizer = $injector.get('$sanitize');\n    }\n\n\n    function matchUrl(matcher, parsedUrl) {\n      if (matcher === 'self') {\n        return urlIsSameOrigin(parsedUrl);\n      } else {\n        // definitely a regex.  See adjustMatchers()\n        return !!matcher.exec(parsedUrl.href);\n      }\n    }\n\n    function isResourceUrlAllowedByPolicy(url) {\n      var parsedUrl = urlResolve(url.toString());\n      var i, n, allowed = false;\n      // Ensure that at least one item from the whitelist allows this url.\n      for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {\n        if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {\n          allowed = true;\n          break;\n        }\n      }\n      if (allowed) {\n        // Ensure that no item from the blacklist blocked this url.\n        for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {\n          if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {\n            allowed = false;\n            break;\n          }\n        }\n      }\n      return allowed;\n    }\n\n    function generateHolderType(Base) {\n      var holderType = function TrustedValueHolderType(trustedValue) {\n        this.$$unwrapTrustedValue = function() {\n          return trustedValue;\n        };\n      };\n      if (Base) {\n        holderType.prototype = new Base();\n      }\n      holderType.prototype.valueOf = function sceValueOf() {\n        return this.$$unwrapTrustedValue();\n      };\n      holderType.prototype.toString = function sceToString() {\n        return this.$$unwrapTrustedValue().toString();\n      };\n      return holderType;\n    }\n\n    var trustedValueHolderBase = generateHolderType(),\n        byType = {};\n\n    byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);\n    byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);\n    byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);\n    byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);\n    byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);\n\n    /**\n     * @ngdoc method\n     * @name $sceDelegate#trustAs\n     *\n     * @description\n     * Returns an object that is trusted by angular for use in specified strict\n     * contextual escaping contexts (such as ng-bind-html, ng-include, any src\n     * attribute interpolation, any dom event binding attribute interpolation\n     * such as for onclick,  etc.) that uses the provided value.\n     * See {@link ng.$sce $sce} for enabling strict contextual escaping.\n     *\n     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n     *   resourceUrl, html, js and css.\n     * @param {*} value The value that that should be considered trusted/safe.\n     * @returns {*} A value that can be used to stand in for the provided `value` in places\n     * where Angular expects a $sce.trustAs() return value.\n     */\n    function trustAs(type, trustedValue) {\n      var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n      if (!Constructor) {\n        throw $sceMinErr('icontext',\n            'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',\n            type, trustedValue);\n      }\n      if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {\n        return trustedValue;\n      }\n      // All the current contexts in SCE_CONTEXTS happen to be strings.  In order to avoid trusting\n      // mutable objects, we ensure here that the value passed in is actually a string.\n      if (typeof trustedValue !== 'string') {\n        throw $sceMinErr('itype',\n            'Attempted to trust a non-string value in a content requiring a string: Context: {0}',\n            type);\n      }\n      return new Constructor(trustedValue);\n    }\n\n    /**\n     * @ngdoc method\n     * @name $sceDelegate#valueOf\n     *\n     * @description\n     * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs\n     * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link\n     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.\n     *\n     * If the passed parameter is not a value that had been returned by {@link\n     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.\n     *\n     * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}\n     *      call or anything else.\n     * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs\n     *     `$sceDelegate.trustAs`} if `value` is the result of such a call.  Otherwise, returns\n     *     `value` unchanged.\n     */\n    function valueOf(maybeTrusted) {\n      if (maybeTrusted instanceof trustedValueHolderBase) {\n        return maybeTrusted.$$unwrapTrustedValue();\n      } else {\n        return maybeTrusted;\n      }\n    }\n\n    /**\n     * @ngdoc method\n     * @name $sceDelegate#getTrusted\n     *\n     * @description\n     * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and\n     * returns the originally supplied value if the queried context type is a supertype of the\n     * created type.  If this condition isn't satisfied, throws an exception.\n     *\n     * <div class=\"alert alert-danger\">\n     * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting\n     * (XSS) vulnerability in your application.\n     * </div>\n     *\n     * @param {string} type The kind of context in which this value is to be used.\n     * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs\n     *     `$sceDelegate.trustAs`} call.\n     * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs\n     *     `$sceDelegate.trustAs`} if valid in this context.  Otherwise, throws an exception.\n     */\n    function getTrusted(type, maybeTrusted) {\n      if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {\n        return maybeTrusted;\n      }\n      var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n      if (constructor && maybeTrusted instanceof constructor) {\n        return maybeTrusted.$$unwrapTrustedValue();\n      }\n      // If we get here, then we may only take one of two actions.\n      // 1. sanitize the value for the requested type, or\n      // 2. throw an exception.\n      if (type === SCE_CONTEXTS.RESOURCE_URL) {\n        if (isResourceUrlAllowedByPolicy(maybeTrusted)) {\n          return maybeTrusted;\n        } else {\n          throw $sceMinErr('insecurl',\n              'Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}',\n              maybeTrusted.toString());\n        }\n      } else if (type === SCE_CONTEXTS.HTML) {\n        return htmlSanitizer(maybeTrusted);\n      }\n      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n    }\n\n    return { trustAs: trustAs,\n             getTrusted: getTrusted,\n             valueOf: valueOf };\n  }];\n}\n\n\n/**\n * @ngdoc provider\n * @name $sceProvider\n * @this\n *\n * @description\n *\n * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.\n * -   enable/disable Strict Contextual Escaping (SCE) in a module\n * -   override the default implementation with a custom delegate\n *\n * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.\n */\n\n/**\n * @ngdoc service\n * @name $sce\n * @kind function\n *\n * @description\n *\n * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.\n *\n * # Strict Contextual Escaping\n *\n * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain\n * contexts to result in a value that is marked as safe to use for that context.  One example of\n * such a context is binding arbitrary html controlled by the user via `ng-bind-html`.  We refer\n * to these contexts as privileged or SCE contexts.\n *\n * As of version 1.2, Angular ships with SCE enabled by default.\n *\n * Note:  When enabled (the default), IE<11 in quirks mode is not supported.  In this mode, IE<11 allow\n * one to execute arbitrary javascript by the use of the expression() syntax.  Refer\n * <http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx> to learn more about them.\n * You can ensure your document is in standards mode and not quirks mode by adding `<!doctype html>`\n * to the top of your HTML document.\n *\n * SCE assists in writing code in a way that (a) is secure by default and (b) makes auditing for\n * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.\n *\n * Here's an example of a binding in a privileged context:\n *\n * ```\n * <input ng-model=\"userHtml\" aria-label=\"User input\">\n * <div ng-bind-html=\"userHtml\"></div>\n * ```\n *\n * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user.  With SCE\n * disabled, this application allows the user to render arbitrary HTML into the DIV.\n * In a more realistic example, one may be rendering user comments, blog articles, etc. via\n * bindings.  (HTML is just one example of a context where rendering user controlled input creates\n * security vulnerabilities.)\n *\n * For the case of HTML, you might use a library, either on the client side, or on the server side,\n * to sanitize unsafe HTML before binding to the value and rendering it in the document.\n *\n * How would you ensure that every place that used these types of bindings was bound to a value that\n * was sanitized by your library (or returned as safe for rendering by your server?)  How can you\n * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some\n * properties/fields and forgot to update the binding to the sanitized value?\n *\n * To be secure by default, you want to ensure that any such bindings are disallowed unless you can\n * determine that something explicitly says it's safe to use a value for binding in that\n * context.  You can then audit your code (a simple grep would do) to ensure that this is only done\n * for those values that you can easily tell are safe - because they were received from your server,\n * sanitized by your library, etc.  You can organize your codebase to help with this - perhaps\n * allowing only the files in a specific directory to do this.  Ensuring that the internal API\n * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.\n *\n * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}\n * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to\n * obtain values that will be accepted by SCE / privileged contexts.\n *\n *\n * ## How does it work?\n *\n * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted\n * $sce.getTrusted(context, value)} rather than to the value directly.  Directives use {@link\n * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the\n * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.\n *\n * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link\n * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}.  Here's the actual code (slightly\n * simplified):\n *\n * ```\n * var ngBindHtmlDirective = ['$sce', function($sce) {\n *   return function(scope, element, attr) {\n *     scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {\n *       element.html(value || '');\n *     });\n *   };\n * }];\n * ```\n *\n * ## Impact on loading templates\n *\n * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as\n * `templateUrl`'s specified by {@link guide/directive directives}.\n *\n * By default, Angular only loads templates from the same domain and protocol as the application\n * document.  This is done by calling {@link ng.$sce#getTrustedResourceUrl\n * $sce.getTrustedResourceUrl} on the template URL.  To load templates from other domains and/or\n * protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist\n * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.\n *\n * *Please note*:\n * The browser's\n * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n * policy apply in addition to this and may further restrict whether the template is successfully\n * loaded.  This means that without the right CORS policy, loading templates from a different domain\n * won't work on all browsers.  Also, loading templates from `file://` URL does not work on some\n * browsers.\n *\n * ## This feels like too much overhead\n *\n * It's important to remember that SCE only applies to interpolation expressions.\n *\n * If your expressions are constant literals, they're automatically trusted and you don't need to\n * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.\n * `<div ng-bind-html=\"'<b>implicitly trusted</b>'\"></div>`) just works.\n *\n * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them\n * through {@link ng.$sce#getTrusted $sce.getTrusted}.  SCE doesn't play a role here.\n *\n * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load\n * templates in `ng-include` from your application's domain without having to even know about SCE.\n * It blocks loading templates from other domains or loading templates over http from an https\n * served document.  You can change these by setting your own custom {@link\n * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link\n * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.\n *\n * This significantly reduces the overhead.  It is far easier to pay the small overhead and have an\n * application that's secure and can be audited to verify that with much more ease than bolting\n * security onto an application later.\n *\n * <a name=\"contexts\"></a>\n * ## What trusted context types are supported?\n *\n * | Context             | Notes          |\n * |---------------------|----------------|\n * | `$sce.HTML`         | For HTML that's safe to source into the application.  The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |\n * | `$sce.CSS`          | For CSS that's safe to source into the application.  Currently unused.  Feel free to use it in your own directives. |\n * | `$sce.URL`          | For URLs that are safe to follow as links.  Currently unused (`<a href=` and `<img src=` sanitize their urls and don't constitute an SCE context. |\n * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application.  Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG`, `VIDEO`, `AUDIO`, `SOURCE`, and `TRACK` (e.g. `IFRAME`, `OBJECT`, etc.)  <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |\n * | `$sce.JS`           | For JavaScript that is safe to execute in your application's context.  Currently unused.  Feel free to use it in your own directives. |\n *\n * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name=\"resourceUrlPatternItem\"></a>\n *\n *  Each element in these arrays must be one of the following:\n *\n *  - **'self'**\n *    - The special **string**, `'self'`, can be used to match against all URLs of the **same\n *      domain** as the application document using the **same protocol**.\n *  - **String** (except the special value `'self'`)\n *    - The string is matched against the full *normalized / absolute URL* of the resource\n *      being tested (substring matches are not good enough.)\n *    - There are exactly **two wildcard sequences** - `*` and `**`.  All other characters\n *      match themselves.\n *    - `*`: matches zero or more occurrences of any character other than one of the following 6\n *      characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'.  It's a useful wildcard for use\n *      in a whitelist.\n *    - `**`: matches zero or more occurrences of *any* character.  As such, it's not\n *      appropriate for use in a scheme, domain, etc. as it would match too much.  (e.g.\n *      http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might\n *      not have been the intention.)  Its usage at the very end of the path is ok.  (e.g.\n *      http://foo.example.com/templates/**).\n *  - **RegExp** (*see caveat below*)\n *    - *Caveat*:  While regular expressions are powerful and offer great flexibility,  their syntax\n *      (and all the inevitable escaping) makes them *harder to maintain*.  It's easy to\n *      accidentally introduce a bug when one updates a complex expression (imho, all regexes should\n *      have good test coverage).  For instance, the use of `.` in the regex is correct only in a\n *      small number of cases.  A `.` character in the regex used when matching the scheme or a\n *      subdomain could be matched against a `:` or literal `.` that was likely not intended.   It\n *      is highly recommended to use the string patterns and only fall back to regular expressions\n *      as a last resort.\n *    - The regular expression must be an instance of RegExp (i.e. not a string.)  It is\n *      matched against the **entire** *normalized / absolute URL* of the resource being tested\n *      (even when the RegExp did not have the `^` and `$` codes.)  In addition, any flags\n *      present on the RegExp (such as multiline, global, ignoreCase) are ignored.\n *    - If you are generating your JavaScript from some other templating engine (not\n *      recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),\n *      remember to escape your regular expression (and be aware that you might need more than\n *      one level of escaping depending on your templating engine and the way you interpolated\n *      the value.)  Do make use of your platform's escaping mechanism as it might be good\n *      enough before coding your own.  E.g. Ruby has\n *      [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)\n *      and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).\n *      Javascript lacks a similar built in function for escaping.  Take a look at Google\n *      Closure library's [goog.string.regExpEscape(s)](\n *      http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).\n *\n * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.\n *\n * ## Show me an example using SCE.\n *\n * <example module=\"mySceApp\" deps=\"angular-sanitize.js\" name=\"sce-service\">\n * <file name=\"index.html\">\n *   <div ng-controller=\"AppController as myCtrl\">\n *     <i ng-bind-html=\"myCtrl.explicitlyTrustedHtml\" id=\"explicitlyTrustedHtml\"></i><br><br>\n *     <b>User comments</b><br>\n *     By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when\n *     $sanitize is available.  If $sanitize isn't available, this results in an error instead of an\n *     exploit.\n *     <div class=\"well\">\n *       <div ng-repeat=\"userComment in myCtrl.userComments\">\n *         <b>{{userComment.name}}</b>:\n *         <span ng-bind-html=\"userComment.htmlComment\" class=\"htmlComment\"></span>\n *         <br>\n *       </div>\n *     </div>\n *   </div>\n * </file>\n *\n * <file name=\"script.js\">\n *   angular.module('mySceApp', ['ngSanitize'])\n *     .controller('AppController', ['$http', '$templateCache', '$sce',\n *       function AppController($http, $templateCache, $sce) {\n *         var self = this;\n *         $http.get('test_data.json', {cache: $templateCache}).then(function(response) {\n *           self.userComments = response.data;\n *         });\n *         self.explicitlyTrustedHtml = $sce.trustAsHtml(\n *             '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n *             'sanitization.&quot;\">Hover over this text.</span>');\n *       }]);\n * </file>\n *\n * <file name=\"test_data.json\">\n * [\n *   { \"name\": \"Alice\",\n *     \"htmlComment\":\n *         \"<span onmouseover='this.textContent=\\\"PWN3D!\\\"'>Is <i>anyone</i> reading this?</span>\"\n *   },\n *   { \"name\": \"Bob\",\n *     \"htmlComment\": \"<i>Yes!</i>  Am I the only other one?\"\n *   }\n * ]\n * </file>\n *\n * <file name=\"protractor.js\" type=\"protractor\">\n *   describe('SCE doc demo', function() {\n *     it('should sanitize untrusted values', function() {\n *       expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML'))\n *           .toBe('<span>Is <i>anyone</i> reading this?</span>');\n *     });\n *\n *     it('should NOT sanitize explicitly trusted values', function() {\n *       expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe(\n *           '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n *           'sanitization.&quot;\">Hover over this text.</span>');\n *     });\n *   });\n * </file>\n * </example>\n *\n *\n *\n * ## Can I disable SCE completely?\n *\n * Yes, you can.  However, this is strongly discouraged.  SCE gives you a lot of security benefits\n * for little coding overhead.  It will be much harder to take an SCE disabled application and\n * either secure it on your own or enable SCE at a later stage.  It might make sense to disable SCE\n * for cases where you have a lot of existing code that was written before SCE was introduced and\n * you're migrating them a module at a time.\n *\n * That said, here's how you can completely disable SCE:\n *\n * ```\n * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {\n *   // Completely disable SCE.  For demonstration purposes only!\n *   // Do not use in new projects.\n *   $sceProvider.enabled(false);\n * });\n * ```\n *\n */\n\nfunction $SceProvider() {\n  var enabled = true;\n\n  /**\n   * @ngdoc method\n   * @name $sceProvider#enabled\n   * @kind function\n   *\n   * @param {boolean=} value If provided, then enables/disables SCE.\n   * @return {boolean} true if SCE is enabled, false otherwise.\n   *\n   * @description\n   * Enables/disables SCE and returns the current value.\n   */\n  this.enabled = function(value) {\n    if (arguments.length) {\n      enabled = !!value;\n    }\n    return enabled;\n  };\n\n\n  /* Design notes on the default implementation for SCE.\n   *\n   * The API contract for the SCE delegate\n   * -------------------------------------\n   * The SCE delegate object must provide the following 3 methods:\n   *\n   * - trustAs(contextEnum, value)\n   *     This method is used to tell the SCE service that the provided value is OK to use in the\n   *     contexts specified by contextEnum.  It must return an object that will be accepted by\n   *     getTrusted() for a compatible contextEnum and return this value.\n   *\n   * - valueOf(value)\n   *     For values that were not produced by trustAs(), return them as is.  For values that were\n   *     produced by trustAs(), return the corresponding input value to trustAs.  Basically, if\n   *     trustAs is wrapping the given values into some type, this operation unwraps it when given\n   *     such a value.\n   *\n   * - getTrusted(contextEnum, value)\n   *     This function should return the a value that is safe to use in the context specified by\n   *     contextEnum or throw and exception otherwise.\n   *\n   * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be\n   * opaque or wrapped in some holder object.  That happens to be an implementation detail.  For\n   * instance, an implementation could maintain a registry of all trusted objects by context.  In\n   * such a case, trustAs() would return the same object that was passed in.  getTrusted() would\n   * return the same object passed in if it was found in the registry under a compatible context or\n   * throw an exception otherwise.  An implementation might only wrap values some of the time based\n   * on some criteria.  getTrusted() might return a value and not throw an exception for special\n   * constants or objects even if not wrapped.  All such implementations fulfill this contract.\n   *\n   *\n   * A note on the inheritance model for SCE contexts\n   * ------------------------------------------------\n   * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types.  This\n   * is purely an implementation details.\n   *\n   * The contract is simply this:\n   *\n   *     getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)\n   *     will also succeed.\n   *\n   * Inheritance happens to capture this in a natural way.  In some future, we\n   * may not use inheritance anymore.  That is OK because no code outside of\n   * sce.js and sceSpecs.js would need to be aware of this detail.\n   */\n\n  this.$get = ['$parse', '$sceDelegate', function(\n                $parse,   $sceDelegate) {\n    // Support: IE 9-11 only\n    // Prereq: Ensure that we're not running in IE<11 quirks mode.  In that mode, IE < 11 allow\n    // the \"expression(javascript expression)\" syntax which is insecure.\n    if (enabled && msie < 8) {\n      throw $sceMinErr('iequirks',\n        'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +\n        'mode.  You can fix this by adding the text <!doctype html> to the top of your HTML ' +\n        'document.  See http://docs.angularjs.org/api/ng.$sce for more information.');\n    }\n\n    var sce = shallowCopy(SCE_CONTEXTS);\n\n    /**\n     * @ngdoc method\n     * @name $sce#isEnabled\n     * @kind function\n     *\n     * @return {Boolean} true if SCE is enabled, false otherwise.  If you want to set the value, you\n     * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.\n     *\n     * @description\n     * Returns a boolean indicating if SCE is enabled.\n     */\n    sce.isEnabled = function() {\n      return enabled;\n    };\n    sce.trustAs = $sceDelegate.trustAs;\n    sce.getTrusted = $sceDelegate.getTrusted;\n    sce.valueOf = $sceDelegate.valueOf;\n\n    if (!enabled) {\n      sce.trustAs = sce.getTrusted = function(type, value) { return value; };\n      sce.valueOf = identity;\n    }\n\n    /**\n     * @ngdoc method\n     * @name $sce#parseAs\n     *\n     * @description\n     * Converts Angular {@link guide/expression expression} into a function.  This is like {@link\n     * ng.$parse $parse} and is identical when the expression is a literal constant.  Otherwise, it\n     * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,\n     * *result*)}\n     *\n     * @param {string} type The kind of SCE context in which this result will be used.\n     * @param {string} expression String expression to compile.\n     * @returns {function(context, locals)} a function which represents the compiled expression:\n     *\n     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n     *      are evaluated against (typically a scope object).\n     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n     *      `context`.\n     */\n    sce.parseAs = function sceParseAs(type, expr) {\n      var parsed = $parse(expr);\n      if (parsed.literal && parsed.constant) {\n        return parsed;\n      } else {\n        return $parse(expr, function(value) {\n          return sce.getTrusted(type, value);\n        });\n      }\n    };\n\n    /**\n     * @ngdoc method\n     * @name $sce#trustAs\n     *\n     * @description\n     * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.  As such,\n     * returns an object that is trusted by angular for use in specified strict contextual\n     * escaping contexts (such as ng-bind-html, ng-include, any src attribute\n     * interpolation, any dom event binding attribute interpolation such as for onclick,  etc.)\n     * that uses the provided value.  See * {@link ng.$sce $sce} for enabling strict contextual\n     * escaping.\n     *\n     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n     *   resourceUrl, html, js and css.\n     * @param {*} value The value that that should be considered trusted/safe.\n     * @returns {*} A value that can be used to stand in for the provided `value` in places\n     * where Angular expects a $sce.trustAs() return value.\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#trustAsHtml\n     *\n     * @description\n     * Shorthand method.  `$sce.trustAsHtml(value)` →\n     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}\n     *\n     * @param {*} value The value to trustAs.\n     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml\n     *     $sce.getTrustedHtml(value)} to obtain the original value.  (privileged directives\n     *     only accept expressions that are either literal constants or are the\n     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#trustAsUrl\n     *\n     * @description\n     * Shorthand method.  `$sce.trustAsUrl(value)` →\n     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}\n     *\n     * @param {*} value The value to trustAs.\n     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl\n     *     $sce.getTrustedUrl(value)} to obtain the original value.  (privileged directives\n     *     only accept expressions that are either literal constants or are the\n     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#trustAsResourceUrl\n     *\n     * @description\n     * Shorthand method.  `$sce.trustAsResourceUrl(value)` →\n     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}\n     *\n     * @param {*} value The value to trustAs.\n     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl\n     *     $sce.getTrustedResourceUrl(value)} to obtain the original value.  (privileged directives\n     *     only accept expressions that are either literal constants or are the return\n     *     value of {@link ng.$sce#trustAs $sce.trustAs}.)\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#trustAsJs\n     *\n     * @description\n     * Shorthand method.  `$sce.trustAsJs(value)` →\n     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}\n     *\n     * @param {*} value The value to trustAs.\n     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs\n     *     $sce.getTrustedJs(value)} to obtain the original value.  (privileged directives\n     *     only accept expressions that are either literal constants or are the\n     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#getTrusted\n     *\n     * @description\n     * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}.  As such,\n     * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the\n     * originally supplied value if the queried context type is a supertype of the created type.\n     * If this condition isn't satisfied, throws an exception.\n     *\n     * @param {string} type The kind of context in which this value is to be used.\n     * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}\n     *                         call.\n     * @returns {*} The value the was originally provided to\n     *              {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.\n     *              Otherwise, throws an exception.\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#getTrustedHtml\n     *\n     * @description\n     * Shorthand method.  `$sce.getTrustedHtml(value)` →\n     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}\n     *\n     * @param {*} value The value to pass to `$sce.getTrusted`.\n     * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#getTrustedCss\n     *\n     * @description\n     * Shorthand method.  `$sce.getTrustedCss(value)` →\n     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}\n     *\n     * @param {*} value The value to pass to `$sce.getTrusted`.\n     * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#getTrustedUrl\n     *\n     * @description\n     * Shorthand method.  `$sce.getTrustedUrl(value)` →\n     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}\n     *\n     * @param {*} value The value to pass to `$sce.getTrusted`.\n     * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#getTrustedResourceUrl\n     *\n     * @description\n     * Shorthand method.  `$sce.getTrustedResourceUrl(value)` →\n     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}\n     *\n     * @param {*} value The value to pass to `$sceDelegate.getTrusted`.\n     * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#getTrustedJs\n     *\n     * @description\n     * Shorthand method.  `$sce.getTrustedJs(value)` →\n     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}\n     *\n     * @param {*} value The value to pass to `$sce.getTrusted`.\n     * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#parseAsHtml\n     *\n     * @description\n     * Shorthand method.  `$sce.parseAsHtml(expression string)` →\n     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}\n     *\n     * @param {string} expression String expression to compile.\n     * @returns {function(context, locals)} a function which represents the compiled expression:\n     *\n     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n     *      are evaluated against (typically a scope object).\n     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n     *      `context`.\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#parseAsCss\n     *\n     * @description\n     * Shorthand method.  `$sce.parseAsCss(value)` →\n     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}\n     *\n     * @param {string} expression String expression to compile.\n     * @returns {function(context, locals)} a function which represents the compiled expression:\n     *\n     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n     *      are evaluated against (typically a scope object).\n     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n     *      `context`.\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#parseAsUrl\n     *\n     * @description\n     * Shorthand method.  `$sce.parseAsUrl(value)` →\n     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}\n     *\n     * @param {string} expression String expression to compile.\n     * @returns {function(context, locals)} a function which represents the compiled expression:\n     *\n     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n     *      are evaluated against (typically a scope object).\n     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n     *      `context`.\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#parseAsResourceUrl\n     *\n     * @description\n     * Shorthand method.  `$sce.parseAsResourceUrl(value)` →\n     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}\n     *\n     * @param {string} expression String expression to compile.\n     * @returns {function(context, locals)} a function which represents the compiled expression:\n     *\n     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n     *      are evaluated against (typically a scope object).\n     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n     *      `context`.\n     */\n\n    /**\n     * @ngdoc method\n     * @name $sce#parseAsJs\n     *\n     * @description\n     * Shorthand method.  `$sce.parseAsJs(value)` →\n     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}\n     *\n     * @param {string} expression String expression to compile.\n     * @returns {function(context, locals)} a function which represents the compiled expression:\n     *\n     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n     *      are evaluated against (typically a scope object).\n     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n     *      `context`.\n     */\n\n    // Shorthand delegations.\n    var parse = sce.parseAs,\n        getTrusted = sce.getTrusted,\n        trustAs = sce.trustAs;\n\n    forEach(SCE_CONTEXTS, function(enumValue, name) {\n      var lName = lowercase(name);\n      sce[snakeToCamel('parse_as_' + lName)] = function(expr) {\n        return parse(enumValue, expr);\n      };\n      sce[snakeToCamel('get_trusted_' + lName)] = function(value) {\n        return getTrusted(enumValue, value);\n      };\n      sce[snakeToCamel('trust_as_' + lName)] = function(value) {\n        return trustAs(enumValue, value);\n      };\n    });\n\n    return sce;\n  }];\n}\n\n/* exported $SnifferProvider */\n\n/**\n * !!! This is an undocumented \"private\" service !!!\n *\n * @name $sniffer\n * @requires $window\n * @requires $document\n * @this\n *\n * @property {boolean} history Does the browser support html5 history api ?\n * @property {boolean} transitions Does the browser support CSS transition events ?\n * @property {boolean} animations Does the browser support CSS animation events ?\n *\n * @description\n * This is very simple implementation of testing browser's features.\n */\nfunction $SnifferProvider() {\n  this.$get = ['$window', '$document', function($window, $document) {\n    var eventSupport = {},\n        // Chrome Packaged Apps are not allowed to access `history.pushState`.\n        // If not sandboxed, they can be detected by the presence of `chrome.app.runtime`\n        // (see https://developer.chrome.com/apps/api_index). If sandboxed, they can be detected by\n        // the presence of an extension runtime ID and the absence of other Chrome runtime APIs\n        // (see https://developer.chrome.com/apps/manifest/sandbox).\n        isChromePackagedApp =\n            $window.chrome &&\n            ($window.chrome.app && $window.chrome.app.runtime ||\n                !$window.chrome.app && $window.chrome.runtime && $window.chrome.runtime.id),\n        hasHistoryPushState = !isChromePackagedApp && $window.history && $window.history.pushState,\n        android =\n          toInt((/android (\\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),\n        boxee = /Boxee/i.test(($window.navigator || {}).userAgent),\n        document = $document[0] || {},\n        bodyStyle = document.body && document.body.style,\n        transitions = false,\n        animations = false;\n\n    if (bodyStyle) {\n      // Support: Android <5, Blackberry Browser 10, default Chrome in Android 4.4.x\n      // Mentioned browsers need a -webkit- prefix for transitions & animations.\n      transitions = !!('transition' in bodyStyle || 'webkitTransition' in bodyStyle);\n      animations = !!('animation' in bodyStyle || 'webkitAnimation' in bodyStyle);\n    }\n\n\n    return {\n      // Android has history.pushState, but it does not update location correctly\n      // so let's not use the history API at all.\n      // http://code.google.com/p/android/issues/detail?id=17471\n      // https://github.com/angular/angular.js/issues/904\n\n      // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has\n      // so let's not use the history API also\n      // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined\n      history: !!(hasHistoryPushState && !(android < 4) && !boxee),\n      hasEvent: function(event) {\n        // Support: IE 9-11 only\n        // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have\n        // it. In particular the event is not fired when backspace or delete key are pressed or\n        // when cut operation is performed.\n        // IE10+ implements 'input' event but it erroneously fires under various situations,\n        // e.g. when placeholder changes, or a form is focused.\n        if (event === 'input' && msie) return false;\n\n        if (isUndefined(eventSupport[event])) {\n          var divElm = document.createElement('div');\n          eventSupport[event] = 'on' + event in divElm;\n        }\n\n        return eventSupport[event];\n      },\n      csp: csp(),\n      transitions: transitions,\n      animations: animations,\n      android: android\n    };\n  }];\n}\n\nvar $templateRequestMinErr = minErr('$compile');\n\n/**\n * @ngdoc provider\n * @name $templateRequestProvider\n * @this\n *\n * @description\n * Used to configure the options passed to the {@link $http} service when making a template request.\n *\n * For example, it can be used for specifying the \"Accept\" header that is sent to the server, when\n * requesting a template.\n */\nfunction $TemplateRequestProvider() {\n\n  var httpOptions;\n\n  /**\n   * @ngdoc method\n   * @name $templateRequestProvider#httpOptions\n   * @description\n   * The options to be passed to the {@link $http} service when making the request.\n   * You can use this to override options such as the \"Accept\" header for template requests.\n   *\n   * The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the\n   * options if not overridden here.\n   *\n   * @param {string=} value new value for the {@link $http} options.\n   * @returns {string|self} Returns the {@link $http} options when used as getter and self if used as setter.\n   */\n  this.httpOptions = function(val) {\n    if (val) {\n      httpOptions = val;\n      return this;\n    }\n    return httpOptions;\n  };\n\n  /**\n   * @ngdoc service\n   * @name $templateRequest\n   *\n   * @description\n   * The `$templateRequest` service runs security checks then downloads the provided template using\n   * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request\n   * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the\n   * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the\n   * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted\n   * when `tpl` is of type string and `$templateCache` has the matching entry.\n   *\n   * If you want to pass custom options to the `$http` service, such as setting the Accept header you\n   * can configure this via {@link $templateRequestProvider#httpOptions}.\n   *\n   * @param {string|TrustedResourceUrl} tpl The HTTP request template URL\n   * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty\n   *\n   * @return {Promise} a promise for the HTTP response data of the given URL.\n   *\n   * @property {number} totalPendingRequests total amount of pending template requests being downloaded.\n   */\n  this.$get = ['$exceptionHandler', '$templateCache', '$http', '$q', '$sce',\n    function($exceptionHandler, $templateCache, $http, $q, $sce) {\n\n      function handleRequestFn(tpl, ignoreRequestError) {\n        handleRequestFn.totalPendingRequests++;\n\n        // We consider the template cache holds only trusted templates, so\n        // there's no need to go through whitelisting again for keys that already\n        // are included in there. This also makes Angular accept any script\n        // directive, no matter its name. However, we still need to unwrap trusted\n        // types.\n        if (!isString(tpl) || isUndefined($templateCache.get(tpl))) {\n          tpl = $sce.getTrustedResourceUrl(tpl);\n        }\n\n        var transformResponse = $http.defaults && $http.defaults.transformResponse;\n\n        if (isArray(transformResponse)) {\n          transformResponse = transformResponse.filter(function(transformer) {\n            return transformer !== defaultHttpResponseTransform;\n          });\n        } else if (transformResponse === defaultHttpResponseTransform) {\n          transformResponse = null;\n        }\n\n        return $http.get(tpl, extend({\n            cache: $templateCache,\n            transformResponse: transformResponse\n          }, httpOptions))\n          .finally(function() {\n            handleRequestFn.totalPendingRequests--;\n          })\n          .then(function(response) {\n            $templateCache.put(tpl, response.data);\n            return response.data;\n          }, handleError);\n\n        function handleError(resp) {\n          if (!ignoreRequestError) {\n            resp = $templateRequestMinErr('tpload',\n                'Failed to load template: {0} (HTTP status: {1} {2})',\n                tpl, resp.status, resp.statusText);\n\n            $exceptionHandler(resp);\n          }\n\n          return $q.reject(resp);\n        }\n      }\n\n      handleRequestFn.totalPendingRequests = 0;\n\n      return handleRequestFn;\n    }\n  ];\n}\n\n/** @this */\nfunction $$TestabilityProvider() {\n  this.$get = ['$rootScope', '$browser', '$location',\n       function($rootScope,   $browser,   $location) {\n\n    /**\n     * @name $testability\n     *\n     * @description\n     * The private $$testability service provides a collection of methods for use when debugging\n     * or by automated test and debugging tools.\n     */\n    var testability = {};\n\n    /**\n     * @name $$testability#findBindings\n     *\n     * @description\n     * Returns an array of elements that are bound (via ng-bind or {{}})\n     * to expressions matching the input.\n     *\n     * @param {Element} element The element root to search from.\n     * @param {string} expression The binding expression to match.\n     * @param {boolean} opt_exactMatch If true, only returns exact matches\n     *     for the expression. Filters and whitespace are ignored.\n     */\n    testability.findBindings = function(element, expression, opt_exactMatch) {\n      var bindings = element.getElementsByClassName('ng-binding');\n      var matches = [];\n      forEach(bindings, function(binding) {\n        var dataBinding = angular.element(binding).data('$binding');\n        if (dataBinding) {\n          forEach(dataBinding, function(bindingName) {\n            if (opt_exactMatch) {\n              var matcher = new RegExp('(^|\\\\s)' + escapeForRegexp(expression) + '(\\\\s|\\\\||$)');\n              if (matcher.test(bindingName)) {\n                matches.push(binding);\n              }\n            } else {\n              if (bindingName.indexOf(expression) !== -1) {\n                matches.push(binding);\n              }\n            }\n          });\n        }\n      });\n      return matches;\n    };\n\n    /**\n     * @name $$testability#findModels\n     *\n     * @description\n     * Returns an array of elements that are two-way found via ng-model to\n     * expressions matching the input.\n     *\n     * @param {Element} element The element root to search from.\n     * @param {string} expression The model expression to match.\n     * @param {boolean} opt_exactMatch If true, only returns exact matches\n     *     for the expression.\n     */\n    testability.findModels = function(element, expression, opt_exactMatch) {\n      var prefixes = ['ng-', 'data-ng-', 'ng\\\\:'];\n      for (var p = 0; p < prefixes.length; ++p) {\n        var attributeEquals = opt_exactMatch ? '=' : '*=';\n        var selector = '[' + prefixes[p] + 'model' + attributeEquals + '\"' + expression + '\"]';\n        var elements = element.querySelectorAll(selector);\n        if (elements.length) {\n          return elements;\n        }\n      }\n    };\n\n    /**\n     * @name $$testability#getLocation\n     *\n     * @description\n     * Shortcut for getting the location in a browser agnostic way. Returns\n     *     the path, search, and hash. (e.g. /path?a=b#hash)\n     */\n    testability.getLocation = function() {\n      return $location.url();\n    };\n\n    /**\n     * @name $$testability#setLocation\n     *\n     * @description\n     * Shortcut for navigating to a location without doing a full page reload.\n     *\n     * @param {string} url The location url (path, search and hash,\n     *     e.g. /path?a=b#hash) to go to.\n     */\n    testability.setLocation = function(url) {\n      if (url !== $location.url()) {\n        $location.url(url);\n        $rootScope.$digest();\n      }\n    };\n\n    /**\n     * @name $$testability#whenStable\n     *\n     * @description\n     * Calls the callback when $timeout and $http requests are completed.\n     *\n     * @param {function} callback\n     */\n    testability.whenStable = function(callback) {\n      $browser.notifyWhenNoOutstandingRequests(callback);\n    };\n\n    return testability;\n  }];\n}\n\n/** @this */\nfunction $TimeoutProvider() {\n  this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',\n       function($rootScope,   $browser,   $q,   $$q,   $exceptionHandler) {\n\n    var deferreds = {};\n\n\n     /**\n      * @ngdoc service\n      * @name $timeout\n      *\n      * @description\n      * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch\n      * block and delegates any exceptions to\n      * {@link ng.$exceptionHandler $exceptionHandler} service.\n      *\n      * The return value of calling `$timeout` is a promise, which will be resolved when\n      * the delay has passed and the timeout function, if provided, is executed.\n      *\n      * To cancel a timeout request, call `$timeout.cancel(promise)`.\n      *\n      * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to\n      * synchronously flush the queue of deferred functions.\n      *\n      * If you only want a promise that will be resolved after some specified delay\n      * then you can call `$timeout` without the `fn` function.\n      *\n      * @param {function()=} fn A function, whose execution should be delayed.\n      * @param {number=} [delay=0] Delay in milliseconds.\n      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n      * @param {...*=} Pass additional parameters to the executed function.\n      * @returns {Promise} Promise that will be resolved when the timeout is reached. The promise\n      *   will be resolved with the return value of the `fn` function.\n      *\n      */\n    function timeout(fn, delay, invokeApply) {\n      if (!isFunction(fn)) {\n        invokeApply = delay;\n        delay = fn;\n        fn = noop;\n      }\n\n      var args = sliceArgs(arguments, 3),\n          skipApply = (isDefined(invokeApply) && !invokeApply),\n          deferred = (skipApply ? $$q : $q).defer(),\n          promise = deferred.promise,\n          timeoutId;\n\n      timeoutId = $browser.defer(function() {\n        try {\n          deferred.resolve(fn.apply(null, args));\n        } catch (e) {\n          deferred.reject(e);\n          $exceptionHandler(e);\n        } finally {\n          delete deferreds[promise.$$timeoutId];\n        }\n\n        if (!skipApply) $rootScope.$apply();\n      }, delay);\n\n      promise.$$timeoutId = timeoutId;\n      deferreds[timeoutId] = deferred;\n\n      return promise;\n    }\n\n\n     /**\n      * @ngdoc method\n      * @name $timeout#cancel\n      *\n      * @description\n      * Cancels a task associated with the `promise`. As a result of this, the promise will be\n      * resolved with a rejection.\n      *\n      * @param {Promise=} promise Promise returned by the `$timeout` function.\n      * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n      *   canceled.\n      */\n    timeout.cancel = function(promise) {\n      if (promise && promise.$$timeoutId in deferreds) {\n        // Timeout cancels should not report an unhandled promise.\n        deferreds[promise.$$timeoutId].promise.catch(noop);\n        deferreds[promise.$$timeoutId].reject('canceled');\n        delete deferreds[promise.$$timeoutId];\n        return $browser.defer.cancel(promise.$$timeoutId);\n      }\n      return false;\n    };\n\n    return timeout;\n  }];\n}\n\n// NOTE:  The usage of window and document instead of $window and $document here is\n// deliberate.  This service depends on the specific behavior of anchor nodes created by the\n// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and\n// cause us to break tests.  In addition, when the browser resolves a URL for XHR, it\n// doesn't know about mocked locations and resolves URLs to the real document - which is\n// exactly the behavior needed here.  There is little value is mocking these out for this\n// service.\nvar urlParsingNode = window.document.createElement('a');\nvar originUrl = urlResolve(window.location.href);\n\n\n/**\n *\n * Implementation Notes for non-IE browsers\n * ----------------------------------------\n * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,\n * results both in the normalizing and parsing of the URL.  Normalizing means that a relative\n * URL will be resolved into an absolute URL in the context of the application document.\n * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related\n * properties are all populated to reflect the normalized URL.  This approach has wide\n * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc.  See\n * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n *\n * Implementation Notes for IE\n * ---------------------------\n * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other\n * browsers.  However, the parsed components will not be set if the URL assigned did not specify\n * them.  (e.g. if you assign a.href = \"foo\", then a.protocol, a.host, etc. will be empty.)  We\n * work around that by performing the parsing in a 2nd step by taking a previously normalized\n * URL (e.g. by assigning to a.href) and assigning it a.href again.  This correctly populates the\n * properties such as protocol, hostname, port, etc.\n *\n * References:\n *   http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement\n *   http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n *   http://url.spec.whatwg.org/#urlutils\n *   https://github.com/angular/angular.js/pull/2902\n *   http://james.padolsey.com/javascript/parsing-urls-with-the-dom/\n *\n * @kind function\n * @param {string} url The URL to be parsed.\n * @description Normalizes and parses a URL.\n * @returns {object} Returns the normalized URL as a dictionary.\n *\n *   | member name   | Description    |\n *   |---------------|----------------|\n *   | href          | A normalized version of the provided URL if it was not an absolute URL |\n *   | protocol      | The protocol including the trailing colon                              |\n *   | host          | The host and port (if the port is non-default) of the normalizedUrl    |\n *   | search        | The search params, minus the question mark                             |\n *   | hash          | The hash string, minus the hash symbol\n *   | hostname      | The hostname\n *   | port          | The port, without \":\"\n *   | pathname      | The pathname, beginning with \"/\"\n *\n */\nfunction urlResolve(url) {\n  var href = url;\n\n  // Support: IE 9-11 only\n  if (msie) {\n    // Normalize before parse.  Refer Implementation Notes on why this is\n    // done in two steps on IE.\n    urlParsingNode.setAttribute('href', href);\n    href = urlParsingNode.href;\n  }\n\n  urlParsingNode.setAttribute('href', href);\n\n  // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n  return {\n    href: urlParsingNode.href,\n    protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n    host: urlParsingNode.host,\n    search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n    hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n    hostname: urlParsingNode.hostname,\n    port: urlParsingNode.port,\n    pathname: (urlParsingNode.pathname.charAt(0) === '/')\n      ? urlParsingNode.pathname\n      : '/' + urlParsingNode.pathname\n  };\n}\n\n/**\n * Parse a request URL and determine whether this is a same-origin request as the application document.\n *\n * @param {string|object} requestUrl The url of the request as a string that will be resolved\n * or a parsed URL object.\n * @returns {boolean} Whether the request is for the same origin as the application document.\n */\nfunction urlIsSameOrigin(requestUrl) {\n  var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n  return (parsed.protocol === originUrl.protocol &&\n          parsed.host === originUrl.host);\n}\n\n/**\n * @ngdoc service\n * @name $window\n * @this\n *\n * @description\n * A reference to the browser's `window` object. While `window`\n * is globally available in JavaScript, it causes testability problems, because\n * it is a global variable. In angular we always refer to it through the\n * `$window` service, so it may be overridden, removed or mocked for testing.\n *\n * Expressions, like the one defined for the `ngClick` directive in the example\n * below, are evaluated with respect to the current scope.  Therefore, there is\n * no risk of inadvertently coding in a dependency on a global value in such an\n * expression.\n *\n * @example\n   <example module=\"windowExample\" name=\"window-service\">\n     <file name=\"index.html\">\n       <script>\n         angular.module('windowExample', [])\n           .controller('ExampleController', ['$scope', '$window', function($scope, $window) {\n             $scope.greeting = 'Hello, World!';\n             $scope.doGreeting = function(greeting) {\n               $window.alert(greeting);\n             };\n           }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n         <input type=\"text\" ng-model=\"greeting\" aria-label=\"greeting\" />\n         <button ng-click=\"doGreeting(greeting)\">ALERT</button>\n       </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n      it('should display the greeting in the input box', function() {\n       element(by.model('greeting')).sendKeys('Hello, E2E Tests');\n       // If we click the button it will block the test runner\n       // element(':button').click();\n      });\n     </file>\n   </example>\n */\nfunction $WindowProvider() {\n  this.$get = valueFn(window);\n}\n\n/**\n * @name $$cookieReader\n * @requires $document\n *\n * @description\n * This is a private service for reading cookies used by $http and ngCookies\n *\n * @return {Object} a key/value map of the current cookies\n */\nfunction $$CookieReader($document) {\n  var rawDocument = $document[0] || {};\n  var lastCookies = {};\n  var lastCookieString = '';\n\n  function safeGetCookie(rawDocument) {\n    try {\n      return rawDocument.cookie || '';\n    } catch (e) {\n      return '';\n    }\n  }\n\n  function safeDecodeURIComponent(str) {\n    try {\n      return decodeURIComponent(str);\n    } catch (e) {\n      return str;\n    }\n  }\n\n  return function() {\n    var cookieArray, cookie, i, index, name;\n    var currentCookieString = safeGetCookie(rawDocument);\n\n    if (currentCookieString !== lastCookieString) {\n      lastCookieString = currentCookieString;\n      cookieArray = lastCookieString.split('; ');\n      lastCookies = {};\n\n      for (i = 0; i < cookieArray.length; i++) {\n        cookie = cookieArray[i];\n        index = cookie.indexOf('=');\n        if (index > 0) { //ignore nameless cookies\n          name = safeDecodeURIComponent(cookie.substring(0, index));\n          // the first value that is seen for a cookie is the most\n          // specific one.  values for the same cookie name that\n          // follow are for less specific paths.\n          if (isUndefined(lastCookies[name])) {\n            lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));\n          }\n        }\n      }\n    }\n    return lastCookies;\n  };\n}\n\n$$CookieReader.$inject = ['$document'];\n\n/** @this */\nfunction $$CookieReaderProvider() {\n  this.$get = $$CookieReader;\n}\n\n/* global currencyFilter: true,\n dateFilter: true,\n filterFilter: true,\n jsonFilter: true,\n limitToFilter: true,\n lowercaseFilter: true,\n numberFilter: true,\n orderByFilter: true,\n uppercaseFilter: true,\n */\n\n/**\n * @ngdoc provider\n * @name $filterProvider\n * @description\n *\n * Filters are just functions which transform input to an output. However filters need to be\n * Dependency Injected. To achieve this a filter definition consists of a factory function which is\n * annotated with dependencies and is responsible for creating a filter function.\n *\n * <div class=\"alert alert-warning\">\n * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n * (`myapp_subsection_filterx`).\n * </div>\n *\n * ```js\n *   // Filter registration\n *   function MyModule($provide, $filterProvider) {\n *     // create a service to demonstrate injection (not always needed)\n *     $provide.value('greet', function(name){\n *       return 'Hello ' + name + '!';\n *     });\n *\n *     // register a filter factory which uses the\n *     // greet service to demonstrate DI.\n *     $filterProvider.register('greet', function(greet){\n *       // return the filter function which uses the greet service\n *       // to generate salutation\n *       return function(text) {\n *         // filters need to be forgiving so check input validity\n *         return text && greet(text) || text;\n *       };\n *     });\n *   }\n * ```\n *\n * The filter function is registered with the `$injector` under the filter name suffix with\n * `Filter`.\n *\n * ```js\n *   it('should be the same instance', inject(\n *     function($filterProvider) {\n *       $filterProvider.register('reverse', function(){\n *         return ...;\n *       });\n *     },\n *     function($filter, reverseFilter) {\n *       expect($filter('reverse')).toBe(reverseFilter);\n *     });\n * ```\n *\n *\n * For more information about how angular filters work, and how to create your own filters, see\n * {@link guide/filter Filters} in the Angular Developer Guide.\n */\n\n/**\n * @ngdoc service\n * @name $filter\n * @kind function\n * @description\n * Filters are used for formatting data displayed to the user.\n *\n * They can be used in view templates, controllers or services.Angular comes\n * with a collection of [built-in filters](api/ng/filter), but it is easy to\n * define your own as well.\n *\n * The general syntax in templates is as follows:\n *\n * ```html\n * {{ expression [| filter_name[:parameter_value] ... ] }}\n * ```\n *\n * @param {String} name Name of the filter function to retrieve\n * @return {Function} the filter function\n * @example\n   <example name=\"$filter\" module=\"filterExample\">\n     <file name=\"index.html\">\n       <div ng-controller=\"MainCtrl\">\n        <h3>{{ originalText }}</h3>\n        <h3>{{ filteredText }}</h3>\n       </div>\n     </file>\n\n     <file name=\"script.js\">\n      angular.module('filterExample', [])\n      .controller('MainCtrl', function($scope, $filter) {\n        $scope.originalText = 'hello';\n        $scope.filteredText = $filter('uppercase')($scope.originalText);\n      });\n     </file>\n   </example>\n  */\n$FilterProvider.$inject = ['$provide'];\n/** @this */\nfunction $FilterProvider($provide) {\n  var suffix = 'Filter';\n\n  /**\n   * @ngdoc method\n   * @name $filterProvider#register\n   * @param {string|Object} name Name of the filter function, or an object map of filters where\n   *    the keys are the filter names and the values are the filter factories.\n   *\n   *    <div class=\"alert alert-warning\">\n   *    **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n   *    Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n   *    your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n   *    (`myapp_subsection_filterx`).\n   *    </div>\n    * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.\n   * @returns {Object} Registered filter instance, or if a map of filters was provided then a map\n   *    of the registered filter instances.\n   */\n  function register(name, factory) {\n    if (isObject(name)) {\n      var filters = {};\n      forEach(name, function(filter, key) {\n        filters[key] = register(key, filter);\n      });\n      return filters;\n    } else {\n      return $provide.factory(name + suffix, factory);\n    }\n  }\n  this.register = register;\n\n  this.$get = ['$injector', function($injector) {\n    return function(name) {\n      return $injector.get(name + suffix);\n    };\n  }];\n\n  ////////////////////////////////////////\n\n  /* global\n    currencyFilter: false,\n    dateFilter: false,\n    filterFilter: false,\n    jsonFilter: false,\n    limitToFilter: false,\n    lowercaseFilter: false,\n    numberFilter: false,\n    orderByFilter: false,\n    uppercaseFilter: false\n  */\n\n  register('currency', currencyFilter);\n  register('date', dateFilter);\n  register('filter', filterFilter);\n  register('json', jsonFilter);\n  register('limitTo', limitToFilter);\n  register('lowercase', lowercaseFilter);\n  register('number', numberFilter);\n  register('orderBy', orderByFilter);\n  register('uppercase', uppercaseFilter);\n}\n\n/**\n * @ngdoc filter\n * @name filter\n * @kind function\n *\n * @description\n * Selects a subset of items from `array` and returns it as a new array.\n *\n * @param {Array} array The source array.\n * @param {string|Object|function()} expression The predicate to be used for selecting items from\n *   `array`.\n *\n *   Can be one of:\n *\n *   - `string`: The string is used for matching against the contents of the `array`. All strings or\n *     objects with string properties in `array` that match this string will be returned. This also\n *     applies to nested object properties.\n *     The predicate can be negated by prefixing the string with `!`.\n *\n *   - `Object`: A pattern object can be used to filter specific properties on objects contained\n *     by `array`. For example `{name:\"M\", phone:\"1\"}` predicate will return an array of items\n *     which have property `name` containing \"M\" and property `phone` containing \"1\". A special\n *     property name (`$` by default) can be used (e.g. as in `{$: \"text\"}`) to accept a match\n *     against any property of the object or its nested object properties. That's equivalent to the\n *     simple substring match with a `string` as described above. The special property name can be\n *     overwritten, using the `anyPropertyKey` parameter.\n *     The predicate can be negated by prefixing the string with `!`.\n *     For example `{name: \"!M\"}` predicate will return an array of items which have property `name`\n *     not containing \"M\".\n *\n *     Note that a named property will match properties on the same level only, while the special\n *     `$` property will match properties on the same level or deeper. E.g. an array item like\n *     `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but\n *     **will** be matched by `{$: 'John'}`.\n *\n *   - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.\n *     The function is called for each element of the array, with the element, its index, and\n *     the entire array itself as arguments.\n *\n *     The final result is an array of those elements that the predicate returned true for.\n *\n * @param {function(actual, expected)|true|false} [comparator] Comparator which is used in\n *     determining if the expected value (from the filter expression) and actual value (from\n *     the object in the array) should be considered a match.\n *\n *   Can be one of:\n *\n *   - `function(actual, expected)`:\n *     The function will be given the object value and the predicate value to compare and\n *     should return true if both values should be considered equal.\n *\n *   - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.\n *     This is essentially strict comparison of expected and actual.\n *\n *   - `false`: A short hand for a function which will look for a substring match in a case\n *     insensitive way. Primitive values are converted to strings. Objects are not compared against\n *     primitives, unless they have a custom `toString` method (e.g. `Date` objects).\n *\n *\n *   Defaults to `false`.\n *\n * @param {string} [anyPropertyKey] The special property name that matches against any property.\n *     By default `$`.\n *\n * @example\n   <example name=\"filter-filter\">\n     <file name=\"index.html\">\n       <div ng-init=\"friends = [{name:'John', phone:'555-1276'},\n                                {name:'Mary', phone:'800-BIG-MARY'},\n                                {name:'Mike', phone:'555-4321'},\n                                {name:'Adam', phone:'555-5678'},\n                                {name:'Julie', phone:'555-8765'},\n                                {name:'Juliette', phone:'555-5678'}]\"></div>\n\n       <label>Search: <input ng-model=\"searchText\"></label>\n       <table id=\"searchTextResults\">\n         <tr><th>Name</th><th>Phone</th></tr>\n         <tr ng-repeat=\"friend in friends | filter:searchText\">\n           <td>{{friend.name}}</td>\n           <td>{{friend.phone}}</td>\n         </tr>\n       </table>\n       <hr>\n       <label>Any: <input ng-model=\"search.$\"></label> <br>\n       <label>Name only <input ng-model=\"search.name\"></label><br>\n       <label>Phone only <input ng-model=\"search.phone\"></label><br>\n       <label>Equality <input type=\"checkbox\" ng-model=\"strict\"></label><br>\n       <table id=\"searchObjResults\">\n         <tr><th>Name</th><th>Phone</th></tr>\n         <tr ng-repeat=\"friendObj in friends | filter:search:strict\">\n           <td>{{friendObj.name}}</td>\n           <td>{{friendObj.phone}}</td>\n         </tr>\n       </table>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       var expectFriendNames = function(expectedNames, key) {\n         element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {\n           arr.forEach(function(wd, i) {\n             expect(wd.getText()).toMatch(expectedNames[i]);\n           });\n         });\n       };\n\n       it('should search across all fields when filtering with a string', function() {\n         var searchText = element(by.model('searchText'));\n         searchText.clear();\n         searchText.sendKeys('m');\n         expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');\n\n         searchText.clear();\n         searchText.sendKeys('76');\n         expectFriendNames(['John', 'Julie'], 'friend');\n       });\n\n       it('should search in specific fields when filtering with a predicate object', function() {\n         var searchAny = element(by.model('search.$'));\n         searchAny.clear();\n         searchAny.sendKeys('i');\n         expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');\n       });\n       it('should use a equal comparison when comparator is true', function() {\n         var searchName = element(by.model('search.name'));\n         var strict = element(by.model('strict'));\n         searchName.clear();\n         searchName.sendKeys('Julie');\n         strict.click();\n         expectFriendNames(['Julie'], 'friendObj');\n       });\n     </file>\n   </example>\n */\n\nfunction filterFilter() {\n  return function(array, expression, comparator, anyPropertyKey) {\n    if (!isArrayLike(array)) {\n      if (array == null) {\n        return array;\n      } else {\n        throw minErr('filter')('notarray', 'Expected array but received: {0}', array);\n      }\n    }\n\n    anyPropertyKey = anyPropertyKey || '$';\n    var expressionType = getTypeForFilter(expression);\n    var predicateFn;\n    var matchAgainstAnyProp;\n\n    switch (expressionType) {\n      case 'function':\n        predicateFn = expression;\n        break;\n      case 'boolean':\n      case 'null':\n      case 'number':\n      case 'string':\n        matchAgainstAnyProp = true;\n        // falls through\n      case 'object':\n        predicateFn = createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp);\n        break;\n      default:\n        return array;\n    }\n\n    return Array.prototype.filter.call(array, predicateFn);\n  };\n}\n\n// Helper functions for `filterFilter`\nfunction createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp) {\n  var shouldMatchPrimitives = isObject(expression) && (anyPropertyKey in expression);\n  var predicateFn;\n\n  if (comparator === true) {\n    comparator = equals;\n  } else if (!isFunction(comparator)) {\n    comparator = function(actual, expected) {\n      if (isUndefined(actual)) {\n        // No substring matching against `undefined`\n        return false;\n      }\n      if ((actual === null) || (expected === null)) {\n        // No substring matching against `null`; only match against `null`\n        return actual === expected;\n      }\n      if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) {\n        // Should not compare primitives against objects, unless they have custom `toString` method\n        return false;\n      }\n\n      actual = lowercase('' + actual);\n      expected = lowercase('' + expected);\n      return actual.indexOf(expected) !== -1;\n    };\n  }\n\n  predicateFn = function(item) {\n    if (shouldMatchPrimitives && !isObject(item)) {\n      return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false);\n    }\n    return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp);\n  };\n\n  return predicateFn;\n}\n\nfunction deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) {\n  var actualType = getTypeForFilter(actual);\n  var expectedType = getTypeForFilter(expected);\n\n  if ((expectedType === 'string') && (expected.charAt(0) === '!')) {\n    return !deepCompare(actual, expected.substring(1), comparator, anyPropertyKey, matchAgainstAnyProp);\n  } else if (isArray(actual)) {\n    // In case `actual` is an array, consider it a match\n    // if ANY of it's items matches `expected`\n    return actual.some(function(item) {\n      return deepCompare(item, expected, comparator, anyPropertyKey, matchAgainstAnyProp);\n    });\n  }\n\n  switch (actualType) {\n    case 'object':\n      var key;\n      if (matchAgainstAnyProp) {\n        for (key in actual) {\n          if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, anyPropertyKey, true)) {\n            return true;\n          }\n        }\n        return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, anyPropertyKey, false);\n      } else if (expectedType === 'object') {\n        for (key in expected) {\n          var expectedVal = expected[key];\n          if (isFunction(expectedVal) || isUndefined(expectedVal)) {\n            continue;\n          }\n\n          var matchAnyProperty = key === anyPropertyKey;\n          var actualVal = matchAnyProperty ? actual : actual[key];\n          if (!deepCompare(actualVal, expectedVal, comparator, anyPropertyKey, matchAnyProperty, matchAnyProperty)) {\n            return false;\n          }\n        }\n        return true;\n      } else {\n        return comparator(actual, expected);\n      }\n    case 'function':\n      return false;\n    default:\n      return comparator(actual, expected);\n  }\n}\n\n// Used for easily differentiating between `null` and actual `object`\nfunction getTypeForFilter(val) {\n  return (val === null) ? 'null' : typeof val;\n}\n\nvar MAX_DIGITS = 22;\nvar DECIMAL_SEP = '.';\nvar ZERO_CHAR = '0';\n\n/**\n * @ngdoc filter\n * @name currency\n * @kind function\n *\n * @description\n * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default\n * symbol for current locale is used.\n *\n * @param {number} amount Input to filter.\n * @param {string=} symbol Currency symbol or identifier to be displayed.\n * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale\n * @returns {string} Formatted number.\n *\n *\n * @example\n   <example module=\"currencyExample\" name=\"currency-filter\">\n     <file name=\"index.html\">\n       <script>\n         angular.module('currencyExample', [])\n           .controller('ExampleController', ['$scope', function($scope) {\n             $scope.amount = 1234.56;\n           }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n         <input type=\"number\" ng-model=\"amount\" aria-label=\"amount\"> <br>\n         default currency symbol ($): <span id=\"currency-default\">{{amount | currency}}</span><br>\n         custom currency identifier (USD$): <span id=\"currency-custom\">{{amount | currency:\"USD$\"}}</span><br>\n         no fractions (0): <span id=\"currency-no-fractions\">{{amount | currency:\"USD$\":0}}</span>\n       </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should init with 1234.56', function() {\n         expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');\n         expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');\n         expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');\n       });\n       it('should update', function() {\n         if (browser.params.browser === 'safari') {\n           // Safari does not understand the minus key. See\n           // https://github.com/angular/protractor/issues/481\n           return;\n         }\n         element(by.model('amount')).clear();\n         element(by.model('amount')).sendKeys('-1234');\n         expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');\n         expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');\n         expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');\n       });\n     </file>\n   </example>\n */\ncurrencyFilter.$inject = ['$locale'];\nfunction currencyFilter($locale) {\n  var formats = $locale.NUMBER_FORMATS;\n  return function(amount, currencySymbol, fractionSize) {\n    if (isUndefined(currencySymbol)) {\n      currencySymbol = formats.CURRENCY_SYM;\n    }\n\n    if (isUndefined(fractionSize)) {\n      fractionSize = formats.PATTERNS[1].maxFrac;\n    }\n\n    // if null or undefined pass it through\n    return (amount == null)\n        ? amount\n        : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).\n            replace(/\\u00A4/g, currencySymbol);\n  };\n}\n\n/**\n * @ngdoc filter\n * @name number\n * @kind function\n *\n * @description\n * Formats a number as text.\n *\n * If the input is null or undefined, it will just be returned.\n * If the input is infinite (Infinity or -Infinity), the Infinity symbol '∞' or '-∞' is returned, respectively.\n * If the input is not a number an empty string is returned.\n *\n *\n * @param {number|string} number Number to format.\n * @param {(number|string)=} fractionSize Number of decimal places to round the number to.\n * If this is not provided then the fraction size is computed from the current locale's number\n * formatting pattern. In the case of the default locale, it will be 3.\n * @returns {string} Number rounded to `fractionSize` appropriately formatted based on the current\n *                   locale (e.g., in the en_US locale it will have \".\" as the decimal separator and\n *                   include \",\" group separators after each third digit).\n *\n * @example\n   <example module=\"numberFilterExample\" name=\"number-filter\">\n     <file name=\"index.html\">\n       <script>\n         angular.module('numberFilterExample', [])\n           .controller('ExampleController', ['$scope', function($scope) {\n             $scope.val = 1234.56789;\n           }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n         <label>Enter number: <input ng-model='val'></label><br>\n         Default formatting: <span id='number-default'>{{val | number}}</span><br>\n         No fractions: <span>{{val | number:0}}</span><br>\n         Negative number: <span>{{-val | number:4}}</span>\n       </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should format numbers', function() {\n         expect(element(by.id('number-default')).getText()).toBe('1,234.568');\n         expect(element(by.binding('val | number:0')).getText()).toBe('1,235');\n         expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');\n       });\n\n       it('should update', function() {\n         element(by.model('val')).clear();\n         element(by.model('val')).sendKeys('3374.333');\n         expect(element(by.id('number-default')).getText()).toBe('3,374.333');\n         expect(element(by.binding('val | number:0')).getText()).toBe('3,374');\n         expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');\n      });\n     </file>\n   </example>\n */\nnumberFilter.$inject = ['$locale'];\nfunction numberFilter($locale) {\n  var formats = $locale.NUMBER_FORMATS;\n  return function(number, fractionSize) {\n\n    // if null or undefined pass it through\n    return (number == null)\n        ? number\n        : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,\n                       fractionSize);\n  };\n}\n\n/**\n * Parse a number (as a string) into three components that can be used\n * for formatting the number.\n *\n * (Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/)\n *\n * @param  {string} numStr The number to parse\n * @return {object} An object describing this number, containing the following keys:\n *  - d : an array of digits containing leading zeros as necessary\n *  - i : the number of the digits in `d` that are to the left of the decimal point\n *  - e : the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`\n *\n */\nfunction parse(numStr) {\n  var exponent = 0, digits, numberOfIntegerDigits;\n  var i, j, zeros;\n\n  // Decimal point?\n  if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) {\n    numStr = numStr.replace(DECIMAL_SEP, '');\n  }\n\n  // Exponential form?\n  if ((i = numStr.search(/e/i)) > 0) {\n    // Work out the exponent.\n    if (numberOfIntegerDigits < 0) numberOfIntegerDigits = i;\n    numberOfIntegerDigits += +numStr.slice(i + 1);\n    numStr = numStr.substring(0, i);\n  } else if (numberOfIntegerDigits < 0) {\n    // There was no decimal point or exponent so it is an integer.\n    numberOfIntegerDigits = numStr.length;\n  }\n\n  // Count the number of leading zeros.\n  for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */ }\n\n  if (i === (zeros = numStr.length)) {\n    // The digits are all zero.\n    digits = [0];\n    numberOfIntegerDigits = 1;\n  } else {\n    // Count the number of trailing zeros\n    zeros--;\n    while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;\n\n    // Trailing zeros are insignificant so ignore them\n    numberOfIntegerDigits -= i;\n    digits = [];\n    // Convert string to array of digits without leading/trailing zeros.\n    for (j = 0; i <= zeros; i++, j++) {\n      digits[j] = +numStr.charAt(i);\n    }\n  }\n\n  // If the number overflows the maximum allowed digits then use an exponent.\n  if (numberOfIntegerDigits > MAX_DIGITS) {\n    digits = digits.splice(0, MAX_DIGITS - 1);\n    exponent = numberOfIntegerDigits - 1;\n    numberOfIntegerDigits = 1;\n  }\n\n  return { d: digits, e: exponent, i: numberOfIntegerDigits };\n}\n\n/**\n * Round the parsed number to the specified number of decimal places\n * This function changed the parsedNumber in-place\n */\nfunction roundNumber(parsedNumber, fractionSize, minFrac, maxFrac) {\n    var digits = parsedNumber.d;\n    var fractionLen = digits.length - parsedNumber.i;\n\n    // determine fractionSize if it is not specified; `+fractionSize` converts it to a number\n    fractionSize = (isUndefined(fractionSize)) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize;\n\n    // The index of the digit to where rounding is to occur\n    var roundAt = fractionSize + parsedNumber.i;\n    var digit = digits[roundAt];\n\n    if (roundAt > 0) {\n      // Drop fractional digits beyond `roundAt`\n      digits.splice(Math.max(parsedNumber.i, roundAt));\n\n      // Set non-fractional digits beyond `roundAt` to 0\n      for (var j = roundAt; j < digits.length; j++) {\n        digits[j] = 0;\n      }\n    } else {\n      // We rounded to zero so reset the parsedNumber\n      fractionLen = Math.max(0, fractionLen);\n      parsedNumber.i = 1;\n      digits.length = Math.max(1, roundAt = fractionSize + 1);\n      digits[0] = 0;\n      for (var i = 1; i < roundAt; i++) digits[i] = 0;\n    }\n\n    if (digit >= 5) {\n      if (roundAt - 1 < 0) {\n        for (var k = 0; k > roundAt; k--) {\n          digits.unshift(0);\n          parsedNumber.i++;\n        }\n        digits.unshift(1);\n        parsedNumber.i++;\n      } else {\n        digits[roundAt - 1]++;\n      }\n    }\n\n    // Pad out with zeros to get the required fraction length\n    for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);\n\n\n    // Do any carrying, e.g. a digit was rounded up to 10\n    var carry = digits.reduceRight(function(carry, d, i, digits) {\n      d = d + carry;\n      digits[i] = d % 10;\n      return Math.floor(d / 10);\n    }, 0);\n    if (carry) {\n      digits.unshift(carry);\n      parsedNumber.i++;\n    }\n}\n\n/**\n * Format a number into a string\n * @param  {number} number       The number to format\n * @param  {{\n *           minFrac, // the minimum number of digits required in the fraction part of the number\n *           maxFrac, // the maximum number of digits required in the fraction part of the number\n *           gSize,   // number of digits in each group of separated digits\n *           lgSize,  // number of digits in the last group of digits before the decimal separator\n *           negPre,  // the string to go in front of a negative number (e.g. `-` or `(`))\n *           posPre,  // the string to go in front of a positive number\n *           negSuf,  // the string to go after a negative number (e.g. `)`)\n *           posSuf   // the string to go after a positive number\n *         }} pattern\n * @param  {string} groupSep     The string to separate groups of number (e.g. `,`)\n * @param  {string} decimalSep   The string to act as the decimal separator (e.g. `.`)\n * @param  {[type]} fractionSize The size of the fractional part of the number\n * @return {string}              The number formatted as a string\n */\nfunction formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {\n\n  if (!(isString(number) || isNumber(number)) || isNaN(number)) return '';\n\n  var isInfinity = !isFinite(number);\n  var isZero = false;\n  var numStr = Math.abs(number) + '',\n      formattedText = '',\n      parsedNumber;\n\n  if (isInfinity) {\n    formattedText = '\\u221e';\n  } else {\n    parsedNumber = parse(numStr);\n\n    roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac);\n\n    var digits = parsedNumber.d;\n    var integerLen = parsedNumber.i;\n    var exponent = parsedNumber.e;\n    var decimals = [];\n    isZero = digits.reduce(function(isZero, d) { return isZero && !d; }, true);\n\n    // pad zeros for small numbers\n    while (integerLen < 0) {\n      digits.unshift(0);\n      integerLen++;\n    }\n\n    // extract decimals digits\n    if (integerLen > 0) {\n      decimals = digits.splice(integerLen, digits.length);\n    } else {\n      decimals = digits;\n      digits = [0];\n    }\n\n    // format the integer digits with grouping separators\n    var groups = [];\n    if (digits.length >= pattern.lgSize) {\n      groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));\n    }\n    while (digits.length > pattern.gSize) {\n      groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));\n    }\n    if (digits.length) {\n      groups.unshift(digits.join(''));\n    }\n    formattedText = groups.join(groupSep);\n\n    // append the decimal digits\n    if (decimals.length) {\n      formattedText += decimalSep + decimals.join('');\n    }\n\n    if (exponent) {\n      formattedText += 'e+' + exponent;\n    }\n  }\n  if (number < 0 && !isZero) {\n    return pattern.negPre + formattedText + pattern.negSuf;\n  } else {\n    return pattern.posPre + formattedText + pattern.posSuf;\n  }\n}\n\nfunction padNumber(num, digits, trim, negWrap) {\n  var neg = '';\n  if (num < 0 || (negWrap && num <= 0)) {\n    if (negWrap) {\n      num = -num + 1;\n    } else {\n      num = -num;\n      neg = '-';\n    }\n  }\n  num = '' + num;\n  while (num.length < digits) num = ZERO_CHAR + num;\n  if (trim) {\n    num = num.substr(num.length - digits);\n  }\n  return neg + num;\n}\n\n\nfunction dateGetter(name, size, offset, trim, negWrap) {\n  offset = offset || 0;\n  return function(date) {\n    var value = date['get' + name]();\n    if (offset > 0 || value > -offset) {\n      value += offset;\n    }\n    if (value === 0 && offset === -12) value = 12;\n    return padNumber(value, size, trim, negWrap);\n  };\n}\n\nfunction dateStrGetter(name, shortForm, standAlone) {\n  return function(date, formats) {\n    var value = date['get' + name]();\n    var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');\n    var get = uppercase(propPrefix + name);\n\n    return formats[get][value];\n  };\n}\n\nfunction timeZoneGetter(date, formats, offset) {\n  var zone = -1 * offset;\n  var paddedZone = (zone >= 0) ? '+' : '';\n\n  paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +\n                padNumber(Math.abs(zone % 60), 2);\n\n  return paddedZone;\n}\n\nfunction getFirstThursdayOfYear(year) {\n    // 0 = index of January\n    var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();\n    // 4 = index of Thursday (+1 to account for 1st = 5)\n    // 11 = index of *next* Thursday (+1 account for 1st = 12)\n    return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);\n}\n\nfunction getThursdayThisWeek(datetime) {\n    return new Date(datetime.getFullYear(), datetime.getMonth(),\n      // 4 = index of Thursday\n      datetime.getDate() + (4 - datetime.getDay()));\n}\n\nfunction weekGetter(size) {\n   return function(date) {\n      var firstThurs = getFirstThursdayOfYear(date.getFullYear()),\n         thisThurs = getThursdayThisWeek(date);\n\n      var diff = +thisThurs - +firstThurs,\n         result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n\n      return padNumber(result, size);\n   };\n}\n\nfunction ampmGetter(date, formats) {\n  return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];\n}\n\nfunction eraGetter(date, formats) {\n  return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];\n}\n\nfunction longEraGetter(date, formats) {\n  return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];\n}\n\nvar DATE_FORMATS = {\n  yyyy: dateGetter('FullYear', 4, 0, false, true),\n    yy: dateGetter('FullYear', 2, 0, true, true),\n     y: dateGetter('FullYear', 1, 0, false, true),\n  MMMM: dateStrGetter('Month'),\n   MMM: dateStrGetter('Month', true),\n    MM: dateGetter('Month', 2, 1),\n     M: dateGetter('Month', 1, 1),\n  LLLL: dateStrGetter('Month', false, true),\n    dd: dateGetter('Date', 2),\n     d: dateGetter('Date', 1),\n    HH: dateGetter('Hours', 2),\n     H: dateGetter('Hours', 1),\n    hh: dateGetter('Hours', 2, -12),\n     h: dateGetter('Hours', 1, -12),\n    mm: dateGetter('Minutes', 2),\n     m: dateGetter('Minutes', 1),\n    ss: dateGetter('Seconds', 2),\n     s: dateGetter('Seconds', 1),\n     // while ISO 8601 requires fractions to be prefixed with `.` or `,`\n     // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions\n   sss: dateGetter('Milliseconds', 3),\n  EEEE: dateStrGetter('Day'),\n   EEE: dateStrGetter('Day', true),\n     a: ampmGetter,\n     Z: timeZoneGetter,\n    ww: weekGetter(2),\n     w: weekGetter(1),\n     G: eraGetter,\n     GG: eraGetter,\n     GGG: eraGetter,\n     GGGG: longEraGetter\n};\n\nvar DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,\n    NUMBER_STRING = /^-?\\d+$/;\n\n/**\n * @ngdoc filter\n * @name date\n * @kind function\n *\n * @description\n *   Formats `date` to a string based on the requested `format`.\n *\n *   `format` string can be composed of the following elements:\n *\n *   * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)\n *   * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n *   * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)\n *   * `'MMMM'`: Month in year (January-December)\n *   * `'MMM'`: Month in year (Jan-Dec)\n *   * `'MM'`: Month in year, padded (01-12)\n *   * `'M'`: Month in year (1-12)\n *   * `'LLLL'`: Stand-alone month in year (January-December)\n *   * `'dd'`: Day in month, padded (01-31)\n *   * `'d'`: Day in month (1-31)\n *   * `'EEEE'`: Day in Week,(Sunday-Saturday)\n *   * `'EEE'`: Day in Week, (Sun-Sat)\n *   * `'HH'`: Hour in day, padded (00-23)\n *   * `'H'`: Hour in day (0-23)\n *   * `'hh'`: Hour in AM/PM, padded (01-12)\n *   * `'h'`: Hour in AM/PM, (1-12)\n *   * `'mm'`: Minute in hour, padded (00-59)\n *   * `'m'`: Minute in hour (0-59)\n *   * `'ss'`: Second in minute, padded (00-59)\n *   * `'s'`: Second in minute (0-59)\n *   * `'sss'`: Millisecond in second, padded (000-999)\n *   * `'a'`: AM/PM marker\n *   * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)\n *   * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year\n *   * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year\n *   * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')\n *   * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')\n *\n *   `format` string can also be one of the following predefined\n *   {@link guide/i18n localizable formats}:\n *\n *   * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale\n *     (e.g. Sep 3, 2010 12:05:08 PM)\n *   * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US  locale (e.g. 9/3/10 12:05 PM)\n *   * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US  locale\n *     (e.g. Friday, September 3, 2010)\n *   * `'longDate'`: equivalent to `'MMMM d, y'` for en_US  locale (e.g. September 3, 2010)\n *   * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US  locale (e.g. Sep 3, 2010)\n *   * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)\n *   * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)\n *   * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)\n *\n *   `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.\n *   `\"h 'in the morning'\"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence\n *   (e.g. `\"h 'o''clock'\"`).\n *\n * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or\n *    number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its\n *    shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is\n *    specified in the string input, the time is considered to be in the local timezone.\n * @param {string=} format Formatting rules (see Description). If not specified,\n *    `mediumDate` is used.\n * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the\n *    continental US time zone abbreviations, but for general use, use a time zone offset, for\n *    example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n *    If not specified, the timezone of the browser will be used.\n * @returns {string} Formatted string or the input if input is not recognized as date/millis.\n *\n * @example\n   <example name=\"filter-date\">\n     <file name=\"index.html\">\n       <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:\n           <span>{{1288323623006 | date:'medium'}}</span><br>\n       <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:\n          <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>\n       <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:\n          <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>\n       <span ng-non-bindable>{{1288323623006 | date:\"MM/dd/yyyy 'at' h:mma\"}}</span>:\n          <span>{{'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"}}</span><br>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should format date', function() {\n         expect(element(by.binding(\"1288323623006 | date:'medium'\")).getText()).\n            toMatch(/Oct 2\\d, 2010 \\d{1,2}:\\d{2}:\\d{2} (AM|PM)/);\n         expect(element(by.binding(\"1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'\")).getText()).\n            toMatch(/2010-10-2\\d \\d{2}:\\d{2}:\\d{2} (-|\\+)?\\d{4}/);\n         expect(element(by.binding(\"'1288323623006' | date:'MM/dd/yyyy @ h:mma'\")).getText()).\n            toMatch(/10\\/2\\d\\/2010 @ \\d{1,2}:\\d{2}(AM|PM)/);\n         expect(element(by.binding(\"'1288323623006' | date:\\\"MM/dd/yyyy 'at' h:mma\\\"\")).getText()).\n            toMatch(/10\\/2\\d\\/2010 at \\d{1,2}:\\d{2}(AM|PM)/);\n       });\n     </file>\n   </example>\n */\ndateFilter.$inject = ['$locale'];\nfunction dateFilter($locale) {\n\n\n  var R_ISO8601_STR = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n                     // 1        2       3         4          5          6          7          8  9     10      11\n  function jsonStringToDate(string) {\n    var match;\n    if ((match = string.match(R_ISO8601_STR))) {\n      var date = new Date(0),\n          tzHour = 0,\n          tzMin  = 0,\n          dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,\n          timeSetter = match[8] ? date.setUTCHours : date.setHours;\n\n      if (match[9]) {\n        tzHour = toInt(match[9] + match[10]);\n        tzMin = toInt(match[9] + match[11]);\n      }\n      dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));\n      var h = toInt(match[4] || 0) - tzHour;\n      var m = toInt(match[5] || 0) - tzMin;\n      var s = toInt(match[6] || 0);\n      var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n      timeSetter.call(date, h, m, s, ms);\n      return date;\n    }\n    return string;\n  }\n\n\n  return function(date, format, timezone) {\n    var text = '',\n        parts = [],\n        fn, match;\n\n    format = format || 'mediumDate';\n    format = $locale.DATETIME_FORMATS[format] || format;\n    if (isString(date)) {\n      date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);\n    }\n\n    if (isNumber(date)) {\n      date = new Date(date);\n    }\n\n    if (!isDate(date) || !isFinite(date.getTime())) {\n      return date;\n    }\n\n    while (format) {\n      match = DATE_FORMATS_SPLIT.exec(format);\n      if (match) {\n        parts = concat(parts, match, 1);\n        format = parts.pop();\n      } else {\n        parts.push(format);\n        format = null;\n      }\n    }\n\n    var dateTimezoneOffset = date.getTimezoneOffset();\n    if (timezone) {\n      dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n      date = convertTimezoneToLocal(date, timezone, true);\n    }\n    forEach(parts, function(value) {\n      fn = DATE_FORMATS[value];\n      text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset)\n                 : value === '\\'\\'' ? '\\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\\'');\n    });\n\n    return text;\n  };\n}\n\n\n/**\n * @ngdoc filter\n * @name json\n * @kind function\n *\n * @description\n *   Allows you to convert a JavaScript object into JSON string.\n *\n *   This filter is mostly useful for debugging. When using the double curly {{value}} notation\n *   the binding is automatically converted to JSON.\n *\n * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.\n * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.\n * @returns {string} JSON string.\n *\n *\n * @example\n   <example name=\"filter-json\">\n     <file name=\"index.html\">\n       <pre id=\"default-spacing\">{{ {'name':'value'} | json }}</pre>\n       <pre id=\"custom-spacing\">{{ {'name':'value'} | json:4 }}</pre>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should jsonify filtered objects', function() {\n         expect(element(by.id('default-spacing')).getText()).toMatch(/\\{\\n {2}\"name\": ?\"value\"\\n}/);\n         expect(element(by.id('custom-spacing')).getText()).toMatch(/\\{\\n {4}\"name\": ?\"value\"\\n}/);\n       });\n     </file>\n   </example>\n *\n */\nfunction jsonFilter() {\n  return function(object, spacing) {\n    if (isUndefined(spacing)) {\n        spacing = 2;\n    }\n    return toJson(object, spacing);\n  };\n}\n\n\n/**\n * @ngdoc filter\n * @name lowercase\n * @kind function\n * @description\n * Converts string to lowercase.\n * @see angular.lowercase\n */\nvar lowercaseFilter = valueFn(lowercase);\n\n\n/**\n * @ngdoc filter\n * @name uppercase\n * @kind function\n * @description\n * Converts string to uppercase.\n * @see angular.uppercase\n */\nvar uppercaseFilter = valueFn(uppercase);\n\n/**\n * @ngdoc filter\n * @name limitTo\n * @kind function\n *\n * @description\n * Creates a new array or string containing only a specified number of elements. The elements are\n * taken from either the beginning or the end of the source array, string or number, as specified by\n * the value and sign (positive or negative) of `limit`. Other array-like objects are also supported\n * (e.g. array subclasses, NodeLists, jqLite/jQuery collections etc). If a number is used as input,\n * it is converted to a string.\n *\n * @param {Array|ArrayLike|string|number} input - Array/array-like, string or number to be limited.\n * @param {string|number} limit - The length of the returned array or string. If the `limit` number\n *     is positive, `limit` number of items from the beginning of the source array/string are copied.\n *     If the number is negative, `limit` number  of items from the end of the source array/string\n *     are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,\n *     the input will be returned unchanged.\n * @param {(string|number)=} begin - Index at which to begin limitation. As a negative index,\n *     `begin` indicates an offset from the end of `input`. Defaults to `0`.\n * @returns {Array|string} A new sub-array or substring of length `limit` or less if the input had\n *     less than `limit` elements.\n *\n * @example\n   <example module=\"limitToExample\" name=\"limit-to-filter\">\n     <file name=\"index.html\">\n       <script>\n         angular.module('limitToExample', [])\n           .controller('ExampleController', ['$scope', function($scope) {\n             $scope.numbers = [1,2,3,4,5,6,7,8,9];\n             $scope.letters = \"abcdefghi\";\n             $scope.longNumber = 2345432342;\n             $scope.numLimit = 3;\n             $scope.letterLimit = 3;\n             $scope.longNumberLimit = 3;\n           }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n         <label>\n            Limit {{numbers}} to:\n            <input type=\"number\" step=\"1\" ng-model=\"numLimit\">\n         </label>\n         <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>\n         <label>\n            Limit {{letters}} to:\n            <input type=\"number\" step=\"1\" ng-model=\"letterLimit\">\n         </label>\n         <p>Output letters: {{ letters | limitTo:letterLimit }}</p>\n         <label>\n            Limit {{longNumber}} to:\n            <input type=\"number\" step=\"1\" ng-model=\"longNumberLimit\">\n         </label>\n         <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>\n       </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       var numLimitInput = element(by.model('numLimit'));\n       var letterLimitInput = element(by.model('letterLimit'));\n       var longNumberLimitInput = element(by.model('longNumberLimit'));\n       var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));\n       var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));\n       var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));\n\n       it('should limit the number array to first three items', function() {\n         expect(numLimitInput.getAttribute('value')).toBe('3');\n         expect(letterLimitInput.getAttribute('value')).toBe('3');\n         expect(longNumberLimitInput.getAttribute('value')).toBe('3');\n         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');\n         expect(limitedLetters.getText()).toEqual('Output letters: abc');\n         expect(limitedLongNumber.getText()).toEqual('Output long number: 234');\n       });\n\n       // There is a bug in safari and protractor that doesn't like the minus key\n       // it('should update the output when -3 is entered', function() {\n       //   numLimitInput.clear();\n       //   numLimitInput.sendKeys('-3');\n       //   letterLimitInput.clear();\n       //   letterLimitInput.sendKeys('-3');\n       //   longNumberLimitInput.clear();\n       //   longNumberLimitInput.sendKeys('-3');\n       //   expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');\n       //   expect(limitedLetters.getText()).toEqual('Output letters: ghi');\n       //   expect(limitedLongNumber.getText()).toEqual('Output long number: 342');\n       // });\n\n       it('should not exceed the maximum size of input array', function() {\n         numLimitInput.clear();\n         numLimitInput.sendKeys('100');\n         letterLimitInput.clear();\n         letterLimitInput.sendKeys('100');\n         longNumberLimitInput.clear();\n         longNumberLimitInput.sendKeys('100');\n         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');\n         expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');\n         expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');\n       });\n     </file>\n   </example>\n*/\nfunction limitToFilter() {\n  return function(input, limit, begin) {\n    if (Math.abs(Number(limit)) === Infinity) {\n      limit = Number(limit);\n    } else {\n      limit = toInt(limit);\n    }\n    if (isNumberNaN(limit)) return input;\n\n    if (isNumber(input)) input = input.toString();\n    if (!isArrayLike(input)) return input;\n\n    begin = (!begin || isNaN(begin)) ? 0 : toInt(begin);\n    begin = (begin < 0) ? Math.max(0, input.length + begin) : begin;\n\n    if (limit >= 0) {\n      return sliceFn(input, begin, begin + limit);\n    } else {\n      if (begin === 0) {\n        return sliceFn(input, limit, input.length);\n      } else {\n        return sliceFn(input, Math.max(0, begin + limit), begin);\n      }\n    }\n  };\n}\n\nfunction sliceFn(input, begin, end) {\n  if (isString(input)) return input.slice(begin, end);\n\n  return slice.call(input, begin, end);\n}\n\n/**\n * @ngdoc filter\n * @name orderBy\n * @kind function\n *\n * @description\n * Returns an array containing the items from the specified `collection`, ordered by a `comparator`\n * function based on the values computed using the `expression` predicate.\n *\n * For example, `[{id: 'foo'}, {id: 'bar'}] | orderBy:'id'` would result in\n * `[{id: 'bar'}, {id: 'foo'}]`.\n *\n * The `collection` can be an Array or array-like object (e.g. NodeList, jQuery object, TypedArray,\n * String, etc).\n *\n * The `expression` can be a single predicate, or a list of predicates each serving as a tie-breaker\n * for the preceding one. The `expression` is evaluated against each item and the output is used\n * for comparing with other items.\n *\n * You can change the sorting order by setting `reverse` to `true`. By default, items are sorted in\n * ascending order.\n *\n * The comparison is done using the `comparator` function. If none is specified, a default, built-in\n * comparator is used (see below for details - in a nutshell, it compares numbers numerically and\n * strings alphabetically).\n *\n * ### Under the hood\n *\n * Ordering the specified `collection` happens in two phases:\n *\n * 1. All items are passed through the predicate (or predicates), and the returned values are saved\n *    along with their type (`string`, `number` etc). For example, an item `{label: 'foo'}`, passed\n *    through a predicate that extracts the value of the `label` property, would be transformed to:\n *    ```\n *    {\n *      value: 'foo',\n *      type: 'string',\n *      index: ...\n *    }\n *    ```\n * 2. The comparator function is used to sort the items, based on the derived values, types and\n *    indices.\n *\n * If you use a custom comparator, it will be called with pairs of objects of the form\n * `{value: ..., type: '...', index: ...}` and is expected to return `0` if the objects are equal\n * (as far as the comparator is concerned), `-1` if the 1st one should be ranked higher than the\n * second, or `1` otherwise.\n *\n * In order to ensure that the sorting will be deterministic across platforms, if none of the\n * specified predicates can distinguish between two items, `orderBy` will automatically introduce a\n * dummy predicate that returns the item's index as `value`.\n * (If you are using a custom comparator, make sure it can handle this predicate as well.)\n *\n * Finally, in an attempt to simplify things, if a predicate returns an object as the extracted\n * value for an item, `orderBy` will try to convert that object to a primitive value, before passing\n * it to the comparator. The following rules govern the conversion:\n *\n * 1. If the object has a `valueOf()` method that returns a primitive, its return value will be\n *    used instead.<br />\n *    (If the object has a `valueOf()` method that returns another object, then the returned object\n *    will be used in subsequent steps.)\n * 2. If the object has a custom `toString()` method (i.e. not the one inherited from `Object`) that\n *    returns a primitive, its return value will be used instead.<br />\n *    (If the object has a `toString()` method that returns another object, then the returned object\n *    will be used in subsequent steps.)\n * 3. No conversion; the object itself is used.\n *\n * ### The default comparator\n *\n * The default, built-in comparator should be sufficient for most usecases. In short, it compares\n * numbers numerically, strings alphabetically (and case-insensitively), for objects falls back to\n * using their index in the original collection, and sorts values of different types by type.\n *\n * More specifically, it follows these steps to determine the relative order of items:\n *\n * 1. If the compared values are of different types, compare the types themselves alphabetically.\n * 2. If both values are of type `string`, compare them alphabetically in a case- and\n *    locale-insensitive way.\n * 3. If both values are objects, compare their indices instead.\n * 4. Otherwise, return:\n *    -  `0`, if the values are equal (by strict equality comparison, i.e. using `===`).\n *    - `-1`, if the 1st value is \"less than\" the 2nd value (compared using the `<` operator).\n *    -  `1`, otherwise.\n *\n * **Note:** If you notice numbers not being sorted as expected, make sure they are actually being\n *           saved as numbers and not strings.\n * **Note:** For the purpose of sorting, `null` values are treated as the string `'null'` (i.e.\n *           `type: 'string'`, `value: 'null'`). This may cause unexpected sort order relative to\n *           other values.\n *\n * @param {Array|ArrayLike} collection - The collection (array or array-like object) to sort.\n * @param {(Function|string|Array.<Function|string>)=} expression - A predicate (or list of\n *    predicates) to be used by the comparator to determine the order of elements.\n *\n *    Can be one of:\n *\n *    - `Function`: A getter function. This function will be called with each item as argument and\n *      the return value will be used for sorting.\n *    - `string`: An Angular expression. This expression will be evaluated against each item and the\n *      result will be used for sorting. For example, use `'label'` to sort by a property called\n *      `label` or `'label.substring(0, 3)'` to sort by the first 3 characters of the `label`\n *      property.<br />\n *      (The result of a constant expression is interpreted as a property name to be used for\n *      comparison. For example, use `'\"special name\"'` (note the extra pair of quotes) to sort by a\n *      property called `special name`.)<br />\n *      An expression can be optionally prefixed with `+` or `-` to control the sorting direction,\n *      ascending or descending. For example, `'+label'` or `'-label'`. If no property is provided,\n *      (e.g. `'+'` or `'-'`), the collection element itself is used in comparisons.\n *    - `Array`: An array of function and/or string predicates. If a predicate cannot determine the\n *      relative order of two items, the next predicate is used as a tie-breaker.\n *\n * **Note:** If the predicate is missing or empty then it defaults to `'+'`.\n *\n * @param {boolean=} reverse - If `true`, reverse the sorting order.\n * @param {(Function)=} comparator - The comparator function used to determine the relative order of\n *    value pairs. If omitted, the built-in comparator will be used.\n *\n * @returns {Array} - The sorted array.\n *\n *\n * @example\n * ### Ordering a table with `ngRepeat`\n *\n * The example below demonstrates a simple {@link ngRepeat ngRepeat}, where the data is sorted by\n * age in descending order (expression is set to `'-age'`). The `comparator` is not set, which means\n * it defaults to the built-in comparator.\n *\n   <example name=\"orderBy-static\" module=\"orderByExample1\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n         <table class=\"friends\">\n           <tr>\n             <th>Name</th>\n             <th>Phone Number</th>\n             <th>Age</th>\n           </tr>\n           <tr ng-repeat=\"friend in friends | orderBy:'-age'\">\n             <td>{{friend.name}}</td>\n             <td>{{friend.phone}}</td>\n             <td>{{friend.age}}</td>\n           </tr>\n         </table>\n       </div>\n     </file>\n     <file name=\"script.js\">\n       angular.module('orderByExample1', [])\n         .controller('ExampleController', ['$scope', function($scope) {\n           $scope.friends = [\n             {name: 'John',   phone: '555-1212',  age: 10},\n             {name: 'Mary',   phone: '555-9876',  age: 19},\n             {name: 'Mike',   phone: '555-4321',  age: 21},\n             {name: 'Adam',   phone: '555-5678',  age: 35},\n             {name: 'Julie',  phone: '555-8765',  age: 29}\n           ];\n         }]);\n     </file>\n     <file name=\"style.css\">\n       .friends {\n         border-collapse: collapse;\n       }\n\n       .friends th {\n         border-bottom: 1px solid;\n       }\n       .friends td, .friends th {\n         border-left: 1px solid;\n         padding: 5px 10px;\n       }\n       .friends td:first-child, .friends th:first-child {\n         border-left: none;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       // Element locators\n       var names = element.all(by.repeater('friends').column('friend.name'));\n\n       it('should sort friends by age in reverse order', function() {\n         expect(names.get(0).getText()).toBe('Adam');\n         expect(names.get(1).getText()).toBe('Julie');\n         expect(names.get(2).getText()).toBe('Mike');\n         expect(names.get(3).getText()).toBe('Mary');\n         expect(names.get(4).getText()).toBe('John');\n       });\n     </file>\n   </example>\n * <hr />\n *\n * @example\n * ### Changing parameters dynamically\n *\n * All parameters can be changed dynamically. The next example shows how you can make the columns of\n * a table sortable, by binding the `expression` and `reverse` parameters to scope properties.\n *\n   <example name=\"orderBy-dynamic\" module=\"orderByExample2\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n         <pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>\n         <hr/>\n         <button ng-click=\"propertyName = null; reverse = false\">Set to unsorted</button>\n         <hr/>\n         <table class=\"friends\">\n           <tr>\n             <th>\n               <button ng-click=\"sortBy('name')\">Name</button>\n               <span class=\"sortorder\" ng-show=\"propertyName === 'name'\" ng-class=\"{reverse: reverse}\"></span>\n             </th>\n             <th>\n               <button ng-click=\"sortBy('phone')\">Phone Number</button>\n               <span class=\"sortorder\" ng-show=\"propertyName === 'phone'\" ng-class=\"{reverse: reverse}\"></span>\n             </th>\n             <th>\n               <button ng-click=\"sortBy('age')\">Age</button>\n               <span class=\"sortorder\" ng-show=\"propertyName === 'age'\" ng-class=\"{reverse: reverse}\"></span>\n             </th>\n           </tr>\n           <tr ng-repeat=\"friend in friends | orderBy:propertyName:reverse\">\n             <td>{{friend.name}}</td>\n             <td>{{friend.phone}}</td>\n             <td>{{friend.age}}</td>\n           </tr>\n         </table>\n       </div>\n     </file>\n     <file name=\"script.js\">\n       angular.module('orderByExample2', [])\n         .controller('ExampleController', ['$scope', function($scope) {\n           var friends = [\n             {name: 'John',   phone: '555-1212',  age: 10},\n             {name: 'Mary',   phone: '555-9876',  age: 19},\n             {name: 'Mike',   phone: '555-4321',  age: 21},\n             {name: 'Adam',   phone: '555-5678',  age: 35},\n             {name: 'Julie',  phone: '555-8765',  age: 29}\n           ];\n\n           $scope.propertyName = 'age';\n           $scope.reverse = true;\n           $scope.friends = friends;\n\n           $scope.sortBy = function(propertyName) {\n             $scope.reverse = ($scope.propertyName === propertyName) ? !$scope.reverse : false;\n             $scope.propertyName = propertyName;\n           };\n         }]);\n     </file>\n     <file name=\"style.css\">\n       .friends {\n         border-collapse: collapse;\n       }\n\n       .friends th {\n         border-bottom: 1px solid;\n       }\n       .friends td, .friends th {\n         border-left: 1px solid;\n         padding: 5px 10px;\n       }\n       .friends td:first-child, .friends th:first-child {\n         border-left: none;\n       }\n\n       .sortorder:after {\n         content: '\\25b2';   // BLACK UP-POINTING TRIANGLE\n       }\n       .sortorder.reverse:after {\n         content: '\\25bc';   // BLACK DOWN-POINTING TRIANGLE\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       // Element locators\n       var unsortButton = element(by.partialButtonText('unsorted'));\n       var nameHeader = element(by.partialButtonText('Name'));\n       var phoneHeader = element(by.partialButtonText('Phone'));\n       var ageHeader = element(by.partialButtonText('Age'));\n       var firstName = element(by.repeater('friends').column('friend.name').row(0));\n       var lastName = element(by.repeater('friends').column('friend.name').row(4));\n\n       it('should sort friends by some property, when clicking on the column header', function() {\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n\n         phoneHeader.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Mary');\n\n         nameHeader.click();\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('Mike');\n\n         ageHeader.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Adam');\n       });\n\n       it('should sort friends in reverse order, when clicking on the same column', function() {\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n\n         ageHeader.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Adam');\n\n         ageHeader.click();\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n       });\n\n       it('should restore the original order, when clicking \"Set to unsorted\"', function() {\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n\n         unsortButton.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Julie');\n       });\n     </file>\n   </example>\n * <hr />\n *\n * @example\n * ### Using `orderBy` inside a controller\n *\n * It is also possible to call the `orderBy` filter manually, by injecting `orderByFilter`, and\n * calling it with the desired parameters. (Alternatively, you could inject the `$filter` factory\n * and retrieve the `orderBy` filter with `$filter('orderBy')`.)\n *\n   <example name=\"orderBy-call-manually\" module=\"orderByExample3\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n         <pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>\n         <hr/>\n         <button ng-click=\"sortBy(null)\">Set to unsorted</button>\n         <hr/>\n         <table class=\"friends\">\n           <tr>\n             <th>\n               <button ng-click=\"sortBy('name')\">Name</button>\n               <span class=\"sortorder\" ng-show=\"propertyName === 'name'\" ng-class=\"{reverse: reverse}\"></span>\n             </th>\n             <th>\n               <button ng-click=\"sortBy('phone')\">Phone Number</button>\n               <span class=\"sortorder\" ng-show=\"propertyName === 'phone'\" ng-class=\"{reverse: reverse}\"></span>\n             </th>\n             <th>\n               <button ng-click=\"sortBy('age')\">Age</button>\n               <span class=\"sortorder\" ng-show=\"propertyName === 'age'\" ng-class=\"{reverse: reverse}\"></span>\n             </th>\n           </tr>\n           <tr ng-repeat=\"friend in friends\">\n             <td>{{friend.name}}</td>\n             <td>{{friend.phone}}</td>\n             <td>{{friend.age}}</td>\n           </tr>\n         </table>\n       </div>\n     </file>\n     <file name=\"script.js\">\n       angular.module('orderByExample3', [])\n         .controller('ExampleController', ['$scope', 'orderByFilter', function($scope, orderBy) {\n           var friends = [\n             {name: 'John',   phone: '555-1212',  age: 10},\n             {name: 'Mary',   phone: '555-9876',  age: 19},\n             {name: 'Mike',   phone: '555-4321',  age: 21},\n             {name: 'Adam',   phone: '555-5678',  age: 35},\n             {name: 'Julie',  phone: '555-8765',  age: 29}\n           ];\n\n           $scope.propertyName = 'age';\n           $scope.reverse = true;\n           $scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);\n\n           $scope.sortBy = function(propertyName) {\n             $scope.reverse = (propertyName !== null && $scope.propertyName === propertyName)\n                 ? !$scope.reverse : false;\n             $scope.propertyName = propertyName;\n             $scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);\n           };\n         }]);\n     </file>\n     <file name=\"style.css\">\n       .friends {\n         border-collapse: collapse;\n       }\n\n       .friends th {\n         border-bottom: 1px solid;\n       }\n       .friends td, .friends th {\n         border-left: 1px solid;\n         padding: 5px 10px;\n       }\n       .friends td:first-child, .friends th:first-child {\n         border-left: none;\n       }\n\n       .sortorder:after {\n         content: '\\25b2';   // BLACK UP-POINTING TRIANGLE\n       }\n       .sortorder.reverse:after {\n         content: '\\25bc';   // BLACK DOWN-POINTING TRIANGLE\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       // Element locators\n       var unsortButton = element(by.partialButtonText('unsorted'));\n       var nameHeader = element(by.partialButtonText('Name'));\n       var phoneHeader = element(by.partialButtonText('Phone'));\n       var ageHeader = element(by.partialButtonText('Age'));\n       var firstName = element(by.repeater('friends').column('friend.name').row(0));\n       var lastName = element(by.repeater('friends').column('friend.name').row(4));\n\n       it('should sort friends by some property, when clicking on the column header', function() {\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n\n         phoneHeader.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Mary');\n\n         nameHeader.click();\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('Mike');\n\n         ageHeader.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Adam');\n       });\n\n       it('should sort friends in reverse order, when clicking on the same column', function() {\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n\n         ageHeader.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Adam');\n\n         ageHeader.click();\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n       });\n\n       it('should restore the original order, when clicking \"Set to unsorted\"', function() {\n         expect(firstName.getText()).toBe('Adam');\n         expect(lastName.getText()).toBe('John');\n\n         unsortButton.click();\n         expect(firstName.getText()).toBe('John');\n         expect(lastName.getText()).toBe('Julie');\n       });\n     </file>\n   </example>\n * <hr />\n *\n * @example\n * ### Using a custom comparator\n *\n * If you have very specific requirements about the way items are sorted, you can pass your own\n * comparator function. For example, you might need to compare some strings in a locale-sensitive\n * way. (When specifying a custom comparator, you also need to pass a value for the `reverse`\n * argument - passing `false` retains the default sorting order, i.e. ascending.)\n *\n   <example name=\"orderBy-custom-comparator\" module=\"orderByExample4\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n         <div class=\"friends-container custom-comparator\">\n           <h3>Locale-sensitive Comparator</h3>\n           <table class=\"friends\">\n             <tr>\n               <th>Name</th>\n               <th>Favorite Letter</th>\n             </tr>\n             <tr ng-repeat=\"friend in friends | orderBy:'favoriteLetter':false:localeSensitiveComparator\">\n               <td>{{friend.name}}</td>\n               <td>{{friend.favoriteLetter}}</td>\n             </tr>\n           </table>\n         </div>\n         <div class=\"friends-container default-comparator\">\n           <h3>Default Comparator</h3>\n           <table class=\"friends\">\n             <tr>\n               <th>Name</th>\n               <th>Favorite Letter</th>\n             </tr>\n             <tr ng-repeat=\"friend in friends | orderBy:'favoriteLetter'\">\n               <td>{{friend.name}}</td>\n               <td>{{friend.favoriteLetter}}</td>\n             </tr>\n           </table>\n         </div>\n       </div>\n     </file>\n     <file name=\"script.js\">\n       angular.module('orderByExample4', [])\n         .controller('ExampleController', ['$scope', function($scope) {\n           $scope.friends = [\n             {name: 'John',   favoriteLetter: 'Ä'},\n             {name: 'Mary',   favoriteLetter: 'Ü'},\n             {name: 'Mike',   favoriteLetter: 'Ö'},\n             {name: 'Adam',   favoriteLetter: 'H'},\n             {name: 'Julie',  favoriteLetter: 'Z'}\n           ];\n\n           $scope.localeSensitiveComparator = function(v1, v2) {\n             // If we don't get strings, just compare by index\n             if (v1.type !== 'string' || v2.type !== 'string') {\n               return (v1.index < v2.index) ? -1 : 1;\n             }\n\n             // Compare strings alphabetically, taking locale into account\n             return v1.value.localeCompare(v2.value);\n           };\n         }]);\n     </file>\n     <file name=\"style.css\">\n       .friends-container {\n         display: inline-block;\n         margin: 0 30px;\n       }\n\n       .friends {\n         border-collapse: collapse;\n       }\n\n       .friends th {\n         border-bottom: 1px solid;\n       }\n       .friends td, .friends th {\n         border-left: 1px solid;\n         padding: 5px 10px;\n       }\n       .friends td:first-child, .friends th:first-child {\n         border-left: none;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       // Element locators\n       var container = element(by.css('.custom-comparator'));\n       var names = container.all(by.repeater('friends').column('friend.name'));\n\n       it('should sort friends by favorite letter (in correct alphabetical order)', function() {\n         expect(names.get(0).getText()).toBe('John');\n         expect(names.get(1).getText()).toBe('Adam');\n         expect(names.get(2).getText()).toBe('Mike');\n         expect(names.get(3).getText()).toBe('Mary');\n         expect(names.get(4).getText()).toBe('Julie');\n       });\n     </file>\n   </example>\n *\n */\norderByFilter.$inject = ['$parse'];\nfunction orderByFilter($parse) {\n  return function(array, sortPredicate, reverseOrder, compareFn) {\n\n    if (array == null) return array;\n    if (!isArrayLike(array)) {\n      throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array);\n    }\n\n    if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }\n    if (sortPredicate.length === 0) { sortPredicate = ['+']; }\n\n    var predicates = processPredicates(sortPredicate);\n\n    var descending = reverseOrder ? -1 : 1;\n\n    // Define the `compare()` function. Use a default comparator if none is specified.\n    var compare = isFunction(compareFn) ? compareFn : defaultCompare;\n\n    // The next three lines are a version of a Swartzian Transform idiom from Perl\n    // (sometimes called the Decorate-Sort-Undecorate idiom)\n    // See https://en.wikipedia.org/wiki/Schwartzian_transform\n    var compareValues = Array.prototype.map.call(array, getComparisonObject);\n    compareValues.sort(doComparison);\n    array = compareValues.map(function(item) { return item.value; });\n\n    return array;\n\n    function getComparisonObject(value, index) {\n      // NOTE: We are adding an extra `tieBreaker` value based on the element's index.\n      // This will be used to keep the sort stable when none of the input predicates can\n      // distinguish between two elements.\n      return {\n        value: value,\n        tieBreaker: {value: index, type: 'number', index: index},\n        predicateValues: predicates.map(function(predicate) {\n          return getPredicateValue(predicate.get(value), index);\n        })\n      };\n    }\n\n    function doComparison(v1, v2) {\n      for (var i = 0, ii = predicates.length; i < ii; i++) {\n        var result = compare(v1.predicateValues[i], v2.predicateValues[i]);\n        if (result) {\n          return result * predicates[i].descending * descending;\n        }\n      }\n\n      return compare(v1.tieBreaker, v2.tieBreaker) * descending;\n    }\n  };\n\n  function processPredicates(sortPredicates) {\n    return sortPredicates.map(function(predicate) {\n      var descending = 1, get = identity;\n\n      if (isFunction(predicate)) {\n        get = predicate;\n      } else if (isString(predicate)) {\n        if ((predicate.charAt(0) === '+' || predicate.charAt(0) === '-')) {\n          descending = predicate.charAt(0) === '-' ? -1 : 1;\n          predicate = predicate.substring(1);\n        }\n        if (predicate !== '') {\n          get = $parse(predicate);\n          if (get.constant) {\n            var key = get();\n            get = function(value) { return value[key]; };\n          }\n        }\n      }\n      return {get: get, descending: descending};\n    });\n  }\n\n  function isPrimitive(value) {\n    switch (typeof value) {\n      case 'number': /* falls through */\n      case 'boolean': /* falls through */\n      case 'string':\n        return true;\n      default:\n        return false;\n    }\n  }\n\n  function objectValue(value) {\n    // If `valueOf` is a valid function use that\n    if (isFunction(value.valueOf)) {\n      value = value.valueOf();\n      if (isPrimitive(value)) return value;\n    }\n    // If `toString` is a valid function and not the one from `Object.prototype` use that\n    if (hasCustomToString(value)) {\n      value = value.toString();\n      if (isPrimitive(value)) return value;\n    }\n\n    return value;\n  }\n\n  function getPredicateValue(value, index) {\n    var type = typeof value;\n    if (value === null) {\n      type = 'string';\n      value = 'null';\n    } else if (type === 'object') {\n      value = objectValue(value);\n    }\n    return {value: value, type: type, index: index};\n  }\n\n  function defaultCompare(v1, v2) {\n    var result = 0;\n    var type1 = v1.type;\n    var type2 = v2.type;\n\n    if (type1 === type2) {\n      var value1 = v1.value;\n      var value2 = v2.value;\n\n      if (type1 === 'string') {\n        // Compare strings case-insensitively\n        value1 = value1.toLowerCase();\n        value2 = value2.toLowerCase();\n      } else if (type1 === 'object') {\n        // For basic objects, use the position of the object\n        // in the collection instead of the value\n        if (isObject(value1)) value1 = v1.index;\n        if (isObject(value2)) value2 = v2.index;\n      }\n\n      if (value1 !== value2) {\n        result = value1 < value2 ? -1 : 1;\n      }\n    } else {\n      result = type1 < type2 ? -1 : 1;\n    }\n\n    return result;\n  }\n}\n\nfunction ngDirective(directive) {\n  if (isFunction(directive)) {\n    directive = {\n      link: directive\n    };\n  }\n  directive.restrict = directive.restrict || 'AC';\n  return valueFn(directive);\n}\n\n/**\n * @ngdoc directive\n * @name a\n * @restrict E\n *\n * @description\n * Modifies the default behavior of the html a tag so that the default action is prevented when\n * the href attribute is empty.\n *\n * For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.\n */\nvar htmlAnchorDirective = valueFn({\n  restrict: 'E',\n  compile: function(element, attr) {\n    if (!attr.href && !attr.xlinkHref) {\n      return function(scope, element) {\n        // If the linked element is not an anchor tag anymore, do nothing\n        if (element[0].nodeName.toLowerCase() !== 'a') return;\n\n        // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.\n        var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?\n                   'xlink:href' : 'href';\n        element.on('click', function(event) {\n          // if we have no href url, then don't navigate anywhere.\n          if (!element.attr(href)) {\n            event.preventDefault();\n          }\n        });\n      };\n    }\n  }\n});\n\n/**\n * @ngdoc directive\n * @name ngHref\n * @restrict A\n * @priority 99\n *\n * @description\n * Using Angular markup like `{{hash}}` in an href attribute will\n * make the link go to the wrong URL if the user clicks it before\n * Angular has a chance to replace the `{{hash}}` markup with its\n * value. Until Angular replaces the markup the link will be broken\n * and will most likely return a 404 error. The `ngHref` directive\n * solves this problem.\n *\n * The wrong way to write it:\n * ```html\n * <a href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n * ```\n *\n * The correct way to write it:\n * ```html\n * <a ng-href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n * ```\n *\n * @element A\n * @param {template} ngHref any string which can contain `{{}}` markup.\n *\n * @example\n * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes\n * in links and their different behaviors:\n    <example name=\"ng-href\">\n      <file name=\"index.html\">\n        <input ng-model=\"value\" /><br />\n        <a id=\"link-1\" href ng-click=\"value = 1\">link 1</a> (link, don't reload)<br />\n        <a id=\"link-2\" href=\"\" ng-click=\"value = 2\">link 2</a> (link, don't reload)<br />\n        <a id=\"link-3\" ng-href=\"/{{'123'}}\">link 3</a> (link, reload!)<br />\n        <a id=\"link-4\" href=\"\" name=\"xx\" ng-click=\"value = 4\">anchor</a> (link, don't reload)<br />\n        <a id=\"link-5\" name=\"xxx\" ng-click=\"value = 5\">anchor</a> (no link)<br />\n        <a id=\"link-6\" ng-href=\"{{value}}\">link</a> (link, change location)\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should execute ng-click but not reload when href without value', function() {\n          element(by.id('link-1')).click();\n          expect(element(by.model('value')).getAttribute('value')).toEqual('1');\n          expect(element(by.id('link-1')).getAttribute('href')).toBe('');\n        });\n\n        it('should execute ng-click but not reload when href empty string', function() {\n          element(by.id('link-2')).click();\n          expect(element(by.model('value')).getAttribute('value')).toEqual('2');\n          expect(element(by.id('link-2')).getAttribute('href')).toBe('');\n        });\n\n        it('should execute ng-click and change url when ng-href specified', function() {\n          expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\\/123$/);\n\n          element(by.id('link-3')).click();\n\n          // At this point, we navigate away from an Angular page, so we need\n          // to use browser.driver to get the base webdriver.\n\n          browser.wait(function() {\n            return browser.driver.getCurrentUrl().then(function(url) {\n              return url.match(/\\/123$/);\n            });\n          }, 5000, 'page should navigate to /123');\n        });\n\n        it('should execute ng-click but not reload when href empty string and name specified', function() {\n          element(by.id('link-4')).click();\n          expect(element(by.model('value')).getAttribute('value')).toEqual('4');\n          expect(element(by.id('link-4')).getAttribute('href')).toBe('');\n        });\n\n        it('should execute ng-click but not reload when no href but name specified', function() {\n          element(by.id('link-5')).click();\n          expect(element(by.model('value')).getAttribute('value')).toEqual('5');\n          expect(element(by.id('link-5')).getAttribute('href')).toBe(null);\n        });\n\n        it('should only change url when only ng-href', function() {\n          element(by.model('value')).clear();\n          element(by.model('value')).sendKeys('6');\n          expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\\/6$/);\n\n          element(by.id('link-6')).click();\n\n          // At this point, we navigate away from an Angular page, so we need\n          // to use browser.driver to get the base webdriver.\n          browser.wait(function() {\n            return browser.driver.getCurrentUrl().then(function(url) {\n              return url.match(/\\/6$/);\n            });\n          }, 5000, 'page should navigate to /6');\n        });\n      </file>\n    </example>\n */\n\n/**\n * @ngdoc directive\n * @name ngSrc\n * @restrict A\n * @priority 99\n *\n * @description\n * Using Angular markup like `{{hash}}` in a `src` attribute doesn't\n * work right: The browser will fetch from the URL with the literal\n * text `{{hash}}` until Angular replaces the expression inside\n * `{{hash}}`. The `ngSrc` directive solves this problem.\n *\n * The buggy way to write it:\n * ```html\n * <img src=\"http://www.gravatar.com/avatar/{{hash}}\" alt=\"Description\"/>\n * ```\n *\n * The correct way to write it:\n * ```html\n * <img ng-src=\"http://www.gravatar.com/avatar/{{hash}}\" alt=\"Description\" />\n * ```\n *\n * @element IMG\n * @param {template} ngSrc any string which can contain `{{}}` markup.\n */\n\n/**\n * @ngdoc directive\n * @name ngSrcset\n * @restrict A\n * @priority 99\n *\n * @description\n * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't\n * work right: The browser will fetch from the URL with the literal\n * text `{{hash}}` until Angular replaces the expression inside\n * `{{hash}}`. The `ngSrcset` directive solves this problem.\n *\n * The buggy way to write it:\n * ```html\n * <img srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\" alt=\"Description\"/>\n * ```\n *\n * The correct way to write it:\n * ```html\n * <img ng-srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\" alt=\"Description\" />\n * ```\n *\n * @element IMG\n * @param {template} ngSrcset any string which can contain `{{}}` markup.\n */\n\n/**\n * @ngdoc directive\n * @name ngDisabled\n * @restrict A\n * @priority 100\n *\n * @description\n *\n * This directive sets the `disabled` attribute on the element if the\n * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.\n *\n * A special directive is necessary because we cannot use interpolation inside the `disabled`\n * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n *\n * @example\n    <example name=\"ng-disabled\">\n      <file name=\"index.html\">\n        <label>Click me to toggle: <input type=\"checkbox\" ng-model=\"checked\"></label><br/>\n        <button ng-model=\"button\" ng-disabled=\"checked\">Button</button>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should toggle button', function() {\n          expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();\n          element(by.model('checked')).click();\n          expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();\n        });\n      </file>\n    </example>\n *\n * @element INPUT\n * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,\n *     then the `disabled` attribute will be set on the element\n */\n\n\n/**\n * @ngdoc directive\n * @name ngChecked\n * @restrict A\n * @priority 100\n *\n * @description\n * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.\n *\n * Note that this directive should not be used together with {@link ngModel `ngModel`},\n * as this can lead to unexpected behavior.\n *\n * A special directive is necessary because we cannot use interpolation inside the `checked`\n * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n *\n * @example\n    <example name=\"ng-checked\">\n      <file name=\"index.html\">\n        <label>Check me to check both: <input type=\"checkbox\" ng-model=\"master\"></label><br/>\n        <input id=\"checkSlave\" type=\"checkbox\" ng-checked=\"master\" aria-label=\"Slave input\">\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should check both checkBoxes', function() {\n          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();\n          element(by.model('master')).click();\n          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();\n        });\n      </file>\n    </example>\n *\n * @element INPUT\n * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,\n *     then the `checked` attribute will be set on the element\n */\n\n\n/**\n * @ngdoc directive\n * @name ngReadonly\n * @restrict A\n * @priority 100\n *\n * @description\n *\n * Sets the `readonly` attribute on the element, if the expression inside `ngReadonly` is truthy.\n * Note that `readonly` applies only to `input` elements with specific types. [See the input docs on\n * MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) for more information.\n *\n * A special directive is necessary because we cannot use interpolation inside the `readonly`\n * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n *\n * @example\n    <example name=\"ng-readonly\">\n      <file name=\"index.html\">\n        <label>Check me to make text readonly: <input type=\"checkbox\" ng-model=\"checked\"></label><br/>\n        <input type=\"text\" ng-readonly=\"checked\" value=\"I'm Angular\" aria-label=\"Readonly field\" />\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should toggle readonly attr', function() {\n          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeFalsy();\n          element(by.model('checked')).click();\n          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeTruthy();\n        });\n      </file>\n    </example>\n *\n * @element INPUT\n * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,\n *     then special attribute \"readonly\" will be set on the element\n */\n\n\n/**\n * @ngdoc directive\n * @name ngSelected\n * @restrict A\n * @priority 100\n *\n * @description\n *\n * Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.\n *\n * A special directive is necessary because we cannot use interpolation inside the `selected`\n * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n *\n * <div class=\"alert alert-warning\">\n *   **Note:** `ngSelected` does not interact with the `select` and `ngModel` directives, it only\n *   sets the `selected` attribute on the element. If you are using `ngModel` on the select, you\n *   should not use `ngSelected` on the options, as `ngModel` will set the select value and\n *   selected options.\n * </div>\n *\n * @example\n    <example name=\"ng-selected\">\n      <file name=\"index.html\">\n        <label>Check me to select: <input type=\"checkbox\" ng-model=\"selected\"></label><br/>\n        <select aria-label=\"ngSelected demo\">\n          <option>Hello!</option>\n          <option id=\"greet\" ng-selected=\"selected\">Greetings!</option>\n        </select>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should select Greetings!', function() {\n          expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();\n          element(by.model('selected')).click();\n          expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();\n        });\n      </file>\n    </example>\n *\n * @element OPTION\n * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,\n *     then special attribute \"selected\" will be set on the element\n */\n\n/**\n * @ngdoc directive\n * @name ngOpen\n * @restrict A\n * @priority 100\n *\n * @description\n *\n * Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.\n *\n * A special directive is necessary because we cannot use interpolation inside the `open`\n * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n *\n * ## A note about browser compatibility\n *\n * Edge, Firefox, and Internet Explorer do not support the `details` element, it is\n * recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.\n *\n * @example\n     <example name=\"ng-open\">\n       <file name=\"index.html\">\n         <label>Check me check multiple: <input type=\"checkbox\" ng-model=\"open\"></label><br/>\n         <details id=\"details\" ng-open=\"open\">\n            <summary>Show/Hide me</summary>\n         </details>\n       </file>\n       <file name=\"protractor.js\" type=\"protractor\">\n         it('should toggle open', function() {\n           expect(element(by.id('details')).getAttribute('open')).toBeFalsy();\n           element(by.model('open')).click();\n           expect(element(by.id('details')).getAttribute('open')).toBeTruthy();\n         });\n       </file>\n     </example>\n *\n * @element DETAILS\n * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,\n *     then special attribute \"open\" will be set on the element\n */\n\nvar ngAttributeAliasDirectives = {};\n\n// boolean attrs are evaluated\nforEach(BOOLEAN_ATTR, function(propName, attrName) {\n  // binding to multiple is not supported\n  if (propName === 'multiple') return;\n\n  function defaultLinkFn(scope, element, attr) {\n    scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {\n      attr.$set(attrName, !!value);\n    });\n  }\n\n  var normalized = directiveNormalize('ng-' + attrName);\n  var linkFn = defaultLinkFn;\n\n  if (propName === 'checked') {\n    linkFn = function(scope, element, attr) {\n      // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input\n      if (attr.ngModel !== attr[normalized]) {\n        defaultLinkFn(scope, element, attr);\n      }\n    };\n  }\n\n  ngAttributeAliasDirectives[normalized] = function() {\n    return {\n      restrict: 'A',\n      priority: 100,\n      link: linkFn\n    };\n  };\n});\n\n// aliased input attrs are evaluated\nforEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {\n  ngAttributeAliasDirectives[ngAttr] = function() {\n    return {\n      priority: 100,\n      link: function(scope, element, attr) {\n        //special case ngPattern when a literal regular expression value\n        //is used as the expression (this way we don't have to watch anything).\n        if (ngAttr === 'ngPattern' && attr.ngPattern.charAt(0) === '/') {\n          var match = attr.ngPattern.match(REGEX_STRING_REGEXP);\n          if (match) {\n            attr.$set('ngPattern', new RegExp(match[1], match[2]));\n            return;\n          }\n        }\n\n        scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {\n          attr.$set(ngAttr, value);\n        });\n      }\n    };\n  };\n});\n\n// ng-src, ng-srcset, ng-href are interpolated\nforEach(['src', 'srcset', 'href'], function(attrName) {\n  var normalized = directiveNormalize('ng-' + attrName);\n  ngAttributeAliasDirectives[normalized] = function() {\n    return {\n      priority: 99, // it needs to run after the attributes are interpolated\n      link: function(scope, element, attr) {\n        var propName = attrName,\n            name = attrName;\n\n        if (attrName === 'href' &&\n            toString.call(element.prop('href')) === '[object SVGAnimatedString]') {\n          name = 'xlinkHref';\n          attr.$attr[name] = 'xlink:href';\n          propName = null;\n        }\n\n        attr.$observe(normalized, function(value) {\n          if (!value) {\n            if (attrName === 'href') {\n              attr.$set(name, null);\n            }\n            return;\n          }\n\n          attr.$set(name, value);\n\n          // Support: IE 9-11 only\n          // On IE, if \"ng:src\" directive declaration is used and \"src\" attribute doesn't exist\n          // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need\n          // to set the property as well to achieve the desired effect.\n          // We use attr[attrName] value since $set can sanitize the url.\n          if (msie && propName) element.prop(propName, attr[name]);\n        });\n      }\n    };\n  };\n});\n\n/* global -nullFormCtrl, -PENDING_CLASS, -SUBMITTED_CLASS\n */\nvar nullFormCtrl = {\n  $addControl: noop,\n  $$renameControl: nullFormRenameControl,\n  $removeControl: noop,\n  $setValidity: noop,\n  $setDirty: noop,\n  $setPristine: noop,\n  $setSubmitted: noop\n},\nPENDING_CLASS = 'ng-pending',\nSUBMITTED_CLASS = 'ng-submitted';\n\nfunction nullFormRenameControl(control, name) {\n  control.$name = name;\n}\n\n/**\n * @ngdoc type\n * @name form.FormController\n *\n * @property {boolean} $pristine True if user has not interacted with the form yet.\n * @property {boolean} $dirty True if user has already interacted with the form.\n * @property {boolean} $valid True if all of the containing forms and controls are valid.\n * @property {boolean} $invalid True if at least one containing control or form is invalid.\n * @property {boolean} $pending True if at least one containing control or form is pending.\n * @property {boolean} $submitted True if user has submitted the form even if its invalid.\n *\n * @property {Object} $error Is an object hash, containing references to controls or\n *  forms with failing validators, where:\n *\n *  - keys are validation tokens (error names),\n *  - values are arrays of controls or forms that have a failing validator for given error name.\n *\n *  Built-in validation tokens:\n *\n *  - `email`\n *  - `max`\n *  - `maxlength`\n *  - `min`\n *  - `minlength`\n *  - `number`\n *  - `pattern`\n *  - `required`\n *  - `url`\n *  - `date`\n *  - `datetimelocal`\n *  - `time`\n *  - `week`\n *  - `month`\n *\n * @description\n * `FormController` keeps track of all its controls and nested forms as well as the state of them,\n * such as being valid/invalid or dirty/pristine.\n *\n * Each {@link ng.directive:form form} directive creates an instance\n * of `FormController`.\n *\n */\n//asks for $scope to fool the BC controller module\nFormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];\nfunction FormController($element, $attrs, $scope, $animate, $interpolate) {\n  this.$$controls = [];\n\n  // init state\n  this.$error = {};\n  this.$$success = {};\n  this.$pending = undefined;\n  this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope);\n  this.$dirty = false;\n  this.$pristine = true;\n  this.$valid = true;\n  this.$invalid = false;\n  this.$submitted = false;\n  this.$$parentForm = nullFormCtrl;\n\n  this.$$element = $element;\n  this.$$animate = $animate;\n\n  setupValidity(this);\n}\n\nFormController.prototype = {\n  /**\n   * @ngdoc method\n   * @name form.FormController#$rollbackViewValue\n   *\n   * @description\n   * Rollback all form controls pending updates to the `$modelValue`.\n   *\n   * Updates may be pending by a debounced event or because the input is waiting for a some future\n   * event defined in `ng-model-options`. This method is typically needed by the reset button of\n   * a form that uses `ng-model-options` to pend updates.\n   */\n  $rollbackViewValue: function() {\n    forEach(this.$$controls, function(control) {\n      control.$rollbackViewValue();\n    });\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$commitViewValue\n   *\n   * @description\n   * Commit all form controls pending updates to the `$modelValue`.\n   *\n   * Updates may be pending by a debounced event or because the input is waiting for a some future\n   * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`\n   * usually handles calling this in response to input events.\n   */\n  $commitViewValue: function() {\n    forEach(this.$$controls, function(control) {\n      control.$commitViewValue();\n    });\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$addControl\n   * @param {object} control control object, either a {@link form.FormController} or an\n   * {@link ngModel.NgModelController}\n   *\n   * @description\n   * Register a control with the form. Input elements using ngModelController do this automatically\n   * when they are linked.\n   *\n   * Note that the current state of the control will not be reflected on the new parent form. This\n   * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`\n   * state.\n   *\n   * However, if the method is used programmatically, for example by adding dynamically created controls,\n   * or controls that have been previously removed without destroying their corresponding DOM element,\n   * it's the developers responsibility to make sure the current state propagates to the parent form.\n   *\n   * For example, if an input control is added that is already `$dirty` and has `$error` properties,\n   * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.\n   */\n  $addControl: function(control) {\n    // Breaking change - before, inputs whose name was \"hasOwnProperty\" were quietly ignored\n    // and not added to the scope.  Now we throw an error.\n    assertNotHasOwnProperty(control.$name, 'input');\n    this.$$controls.push(control);\n\n    if (control.$name) {\n      this[control.$name] = control;\n    }\n\n    control.$$parentForm = this;\n  },\n\n  // Private API: rename a form control\n  $$renameControl: function(control, newName) {\n    var oldName = control.$name;\n\n    if (this[oldName] === control) {\n      delete this[oldName];\n    }\n    this[newName] = control;\n    control.$name = newName;\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$removeControl\n   * @param {object} control control object, either a {@link form.FormController} or an\n   * {@link ngModel.NgModelController}\n   *\n   * @description\n   * Deregister a control from the form.\n   *\n   * Input elements using ngModelController do this automatically when they are destroyed.\n   *\n   * Note that only the removed control's validation state (`$errors`etc.) will be removed from the\n   * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be\n   * different from case to case. For example, removing the only `$dirty` control from a form may or\n   * may not mean that the form is still `$dirty`.\n   */\n  $removeControl: function(control) {\n    if (control.$name && this[control.$name] === control) {\n      delete this[control.$name];\n    }\n    forEach(this.$pending, function(value, name) {\n      // eslint-disable-next-line no-invalid-this\n      this.$setValidity(name, null, control);\n    }, this);\n    forEach(this.$error, function(value, name) {\n      // eslint-disable-next-line no-invalid-this\n      this.$setValidity(name, null, control);\n    }, this);\n    forEach(this.$$success, function(value, name) {\n      // eslint-disable-next-line no-invalid-this\n      this.$setValidity(name, null, control);\n    }, this);\n\n    arrayRemove(this.$$controls, control);\n    control.$$parentForm = nullFormCtrl;\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$setDirty\n   *\n   * @description\n   * Sets the form to a dirty state.\n   *\n   * This method can be called to add the 'ng-dirty' class and set the form to a dirty\n   * state (ng-dirty class). This method will also propagate to parent forms.\n   */\n  $setDirty: function() {\n    this.$$animate.removeClass(this.$$element, PRISTINE_CLASS);\n    this.$$animate.addClass(this.$$element, DIRTY_CLASS);\n    this.$dirty = true;\n    this.$pristine = false;\n    this.$$parentForm.$setDirty();\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$setPristine\n   *\n   * @description\n   * Sets the form to its pristine state.\n   *\n   * This method sets the form's `$pristine` state to true, the `$dirty` state to false, removes\n   * the `ng-dirty` class and adds the `ng-pristine` class. Additionally, it sets the `$submitted`\n   * state to false.\n   *\n   * This method will also propagate to all the controls contained in this form.\n   *\n   * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after\n   * saving or resetting it.\n   */\n  $setPristine: function() {\n    this.$$animate.setClass(this.$$element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);\n    this.$dirty = false;\n    this.$pristine = true;\n    this.$submitted = false;\n    forEach(this.$$controls, function(control) {\n      control.$setPristine();\n    });\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$setUntouched\n   *\n   * @description\n   * Sets the form to its untouched state.\n   *\n   * This method can be called to remove the 'ng-touched' class and set the form controls to their\n   * untouched state (ng-untouched class).\n   *\n   * Setting a form controls back to their untouched state is often useful when setting the form\n   * back to its pristine state.\n   */\n  $setUntouched: function() {\n    forEach(this.$$controls, function(control) {\n      control.$setUntouched();\n    });\n  },\n\n  /**\n   * @ngdoc method\n   * @name form.FormController#$setSubmitted\n   *\n   * @description\n   * Sets the form to its submitted state.\n   */\n  $setSubmitted: function() {\n    this.$$animate.addClass(this.$$element, SUBMITTED_CLASS);\n    this.$submitted = true;\n    this.$$parentForm.$setSubmitted();\n  }\n};\n\n/**\n * @ngdoc method\n * @name form.FormController#$setValidity\n *\n * @description\n * Sets the validity of a form control.\n *\n * This method will also propagate to parent forms.\n */\naddSetValidityMethod({\n  clazz: FormController,\n  set: function(object, property, controller) {\n    var list = object[property];\n    if (!list) {\n      object[property] = [controller];\n    } else {\n      var index = list.indexOf(controller);\n      if (index === -1) {\n        list.push(controller);\n      }\n    }\n  },\n  unset: function(object, property, controller) {\n    var list = object[property];\n    if (!list) {\n      return;\n    }\n    arrayRemove(list, controller);\n    if (list.length === 0) {\n      delete object[property];\n    }\n  }\n});\n\n/**\n * @ngdoc directive\n * @name ngForm\n * @restrict EAC\n *\n * @description\n * Nestable alias of {@link ng.directive:form `form`} directive. HTML\n * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a\n * sub-group of controls needs to be determined.\n *\n * Note: the purpose of `ngForm` is to group controls,\n * but not to be a replacement for the `<form>` tag with all of its capabilities\n * (e.g. posting to the server, ...).\n *\n * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into\n *                       related scope, under this name.\n *\n */\n\n /**\n * @ngdoc directive\n * @name form\n * @restrict E\n *\n * @description\n * Directive that instantiates\n * {@link form.FormController FormController}.\n *\n * If the `name` attribute is specified, the form controller is published onto the current scope under\n * this name.\n *\n * # Alias: {@link ng.directive:ngForm `ngForm`}\n *\n * In Angular, forms can be nested. This means that the outer form is valid when all of the child\n * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so\n * Angular provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to\n * `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group\n * of controls needs to be determined.\n *\n * # CSS classes\n *  - `ng-valid` is set if the form is valid.\n *  - `ng-invalid` is set if the form is invalid.\n *  - `ng-pending` is set if the form is pending.\n *  - `ng-pristine` is set if the form is pristine.\n *  - `ng-dirty` is set if the form is dirty.\n *  - `ng-submitted` is set if the form was submitted.\n *\n * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n *\n *\n * # Submitting a form and preventing the default action\n *\n * Since the role of forms in client-side Angular applications is different than in classical\n * roundtrip apps, it is desirable for the browser not to translate the form submission into a full\n * page reload that sends the data to the server. Instead some javascript logic should be triggered\n * to handle the form submission in an application-specific way.\n *\n * For this reason, Angular prevents the default action (form submission to the server) unless the\n * `<form>` element has an `action` attribute specified.\n *\n * You can use one of the following two ways to specify what javascript method should be called when\n * a form is submitted:\n *\n * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element\n * - {@link ng.directive:ngClick ngClick} directive on the first\n  *  button or input field of type submit (input[type=submit])\n *\n * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}\n * or {@link ng.directive:ngClick ngClick} directives.\n * This is because of the following form submission rules in the HTML specification:\n *\n * - If a form has only one input field then hitting enter in this field triggers form submit\n * (`ngSubmit`)\n * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter\n * doesn't trigger submit\n * - if a form has one or more input fields and one or more buttons or input[type=submit] then\n * hitting enter in any of the input fields will trigger the click handler on the *first* button or\n * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)\n *\n * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is\n * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n * to have access to the updated model.\n *\n * ## Animation Hooks\n *\n * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.\n * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any\n * other validations that are performed within the form. Animations in ngForm are similar to how\n * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well\n * as JS animations.\n *\n * The following example shows a simple way to utilize CSS transitions to style a form element\n * that has been rendered as invalid after it has been validated:\n *\n * <pre>\n * //be sure to include ngAnimate as a module to hook into more\n * //advanced animations\n * .my-form {\n *   transition:0.5s linear all;\n *   background: white;\n * }\n * .my-form.ng-invalid {\n *   background: red;\n *   color:white;\n * }\n * </pre>\n *\n * @example\n    <example name=\"ng-form\" deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"formExample\">\n      <file name=\"index.html\">\n       <script>\n         angular.module('formExample', [])\n           .controller('FormController', ['$scope', function($scope) {\n             $scope.userType = 'guest';\n           }]);\n       </script>\n       <style>\n        .my-form {\n          transition:all linear 0.5s;\n          background: transparent;\n        }\n        .my-form.ng-invalid {\n          background: red;\n        }\n       </style>\n       <form name=\"myForm\" ng-controller=\"FormController\" class=\"my-form\">\n         userType: <input name=\"input\" ng-model=\"userType\" required>\n         <span class=\"error\" ng-show=\"myForm.input.$error.required\">Required!</span><br>\n         <code>userType = {{userType}}</code><br>\n         <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>\n         <code>myForm.input.$error = {{myForm.input.$error}}</code><br>\n         <code>myForm.$valid = {{myForm.$valid}}</code><br>\n         <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>\n        </form>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should initialize to model', function() {\n          var userType = element(by.binding('userType'));\n          var valid = element(by.binding('myForm.input.$valid'));\n\n          expect(userType.getText()).toContain('guest');\n          expect(valid.getText()).toContain('true');\n        });\n\n        it('should be invalid if empty', function() {\n          var userType = element(by.binding('userType'));\n          var valid = element(by.binding('myForm.input.$valid'));\n          var userInput = element(by.model('userType'));\n\n          userInput.clear();\n          userInput.sendKeys('');\n\n          expect(userType.getText()).toEqual('userType =');\n          expect(valid.getText()).toContain('false');\n        });\n      </file>\n    </example>\n *\n * @param {string=} name Name of the form. If specified, the form controller will be published into\n *                       related scope, under this name.\n */\nvar formDirectiveFactory = function(isNgForm) {\n  return ['$timeout', '$parse', function($timeout, $parse) {\n    var formDirective = {\n      name: 'form',\n      restrict: isNgForm ? 'EAC' : 'E',\n      require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form\n      controller: FormController,\n      compile: function ngFormCompile(formElement, attr) {\n        // Setup initial state of the control\n        formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);\n\n        var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);\n\n        return {\n          pre: function ngFormPreLink(scope, formElement, attr, ctrls) {\n            var controller = ctrls[0];\n\n            // if `action` attr is not present on the form, prevent the default action (submission)\n            if (!('action' in attr)) {\n              // we can't use jq events because if a form is destroyed during submission the default\n              // action is not prevented. see #1238\n              //\n              // IE 9 is not affected because it doesn't fire a submit event and try to do a full\n              // page reload if the form was destroyed by submission of the form via a click handler\n              // on a button in the form. Looks like an IE9 specific bug.\n              var handleFormSubmission = function(event) {\n                scope.$apply(function() {\n                  controller.$commitViewValue();\n                  controller.$setSubmitted();\n                });\n\n                event.preventDefault();\n              };\n\n              formElement[0].addEventListener('submit', handleFormSubmission);\n\n              // unregister the preventDefault listener so that we don't not leak memory but in a\n              // way that will achieve the prevention of the default action.\n              formElement.on('$destroy', function() {\n                $timeout(function() {\n                  formElement[0].removeEventListener('submit', handleFormSubmission);\n                }, 0, false);\n              });\n            }\n\n            var parentFormCtrl = ctrls[1] || controller.$$parentForm;\n            parentFormCtrl.$addControl(controller);\n\n            var setter = nameAttr ? getSetter(controller.$name) : noop;\n\n            if (nameAttr) {\n              setter(scope, controller);\n              attr.$observe(nameAttr, function(newValue) {\n                if (controller.$name === newValue) return;\n                setter(scope, undefined);\n                controller.$$parentForm.$$renameControl(controller, newValue);\n                setter = getSetter(controller.$name);\n                setter(scope, controller);\n              });\n            }\n            formElement.on('$destroy', function() {\n              controller.$$parentForm.$removeControl(controller);\n              setter(scope, undefined);\n              extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards\n            });\n          }\n        };\n      }\n    };\n\n    return formDirective;\n\n    function getSetter(expression) {\n      if (expression === '') {\n        //create an assignable expression, so forms with an empty name can be renamed later\n        return $parse('this[\"\"]').assign;\n      }\n      return $parse(expression).assign || noop;\n    }\n  }];\n};\n\nvar formDirective = formDirectiveFactory();\nvar ngFormDirective = formDirectiveFactory(true);\n\n\n\n// helper methods\nfunction setupValidity(instance) {\n  instance.$$classCache = {};\n  instance.$$classCache[INVALID_CLASS] = !(instance.$$classCache[VALID_CLASS] = instance.$$element.hasClass(VALID_CLASS));\n}\nfunction addSetValidityMethod(context) {\n  var clazz = context.clazz,\n      set = context.set,\n      unset = context.unset;\n\n  clazz.prototype.$setValidity = function(validationErrorKey, state, controller) {\n    if (isUndefined(state)) {\n      createAndSet(this, '$pending', validationErrorKey, controller);\n    } else {\n      unsetAndCleanup(this, '$pending', validationErrorKey, controller);\n    }\n    if (!isBoolean(state)) {\n      unset(this.$error, validationErrorKey, controller);\n      unset(this.$$success, validationErrorKey, controller);\n    } else {\n      if (state) {\n        unset(this.$error, validationErrorKey, controller);\n        set(this.$$success, validationErrorKey, controller);\n      } else {\n        set(this.$error, validationErrorKey, controller);\n        unset(this.$$success, validationErrorKey, controller);\n      }\n    }\n    if (this.$pending) {\n      cachedToggleClass(this, PENDING_CLASS, true);\n      this.$valid = this.$invalid = undefined;\n      toggleValidationCss(this, '', null);\n    } else {\n      cachedToggleClass(this, PENDING_CLASS, false);\n      this.$valid = isObjectEmpty(this.$error);\n      this.$invalid = !this.$valid;\n      toggleValidationCss(this, '', this.$valid);\n    }\n\n    // re-read the state as the set/unset methods could have\n    // combined state in this.$error[validationError] (used for forms),\n    // where setting/unsetting only increments/decrements the value,\n    // and does not replace it.\n    var combinedState;\n    if (this.$pending && this.$pending[validationErrorKey]) {\n      combinedState = undefined;\n    } else if (this.$error[validationErrorKey]) {\n      combinedState = false;\n    } else if (this.$$success[validationErrorKey]) {\n      combinedState = true;\n    } else {\n      combinedState = null;\n    }\n\n    toggleValidationCss(this, validationErrorKey, combinedState);\n    this.$$parentForm.$setValidity(validationErrorKey, combinedState, this);\n  };\n\n  function createAndSet(ctrl, name, value, controller) {\n    if (!ctrl[name]) {\n      ctrl[name] = {};\n    }\n    set(ctrl[name], value, controller);\n  }\n\n  function unsetAndCleanup(ctrl, name, value, controller) {\n    if (ctrl[name]) {\n      unset(ctrl[name], value, controller);\n    }\n    if (isObjectEmpty(ctrl[name])) {\n      ctrl[name] = undefined;\n    }\n  }\n\n  function cachedToggleClass(ctrl, className, switchValue) {\n    if (switchValue && !ctrl.$$classCache[className]) {\n      ctrl.$$animate.addClass(ctrl.$$element, className);\n      ctrl.$$classCache[className] = true;\n    } else if (!switchValue && ctrl.$$classCache[className]) {\n      ctrl.$$animate.removeClass(ctrl.$$element, className);\n      ctrl.$$classCache[className] = false;\n    }\n  }\n\n  function toggleValidationCss(ctrl, validationErrorKey, isValid) {\n    validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';\n\n    cachedToggleClass(ctrl, VALID_CLASS + validationErrorKey, isValid === true);\n    cachedToggleClass(ctrl, INVALID_CLASS + validationErrorKey, isValid === false);\n  }\n}\n\nfunction isObjectEmpty(obj) {\n  if (obj) {\n    for (var prop in obj) {\n      if (obj.hasOwnProperty(prop)) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\n/* global\n  VALID_CLASS: false,\n  INVALID_CLASS: false,\n  PRISTINE_CLASS: false,\n  DIRTY_CLASS: false,\n  ngModelMinErr: false\n*/\n\n// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231\nvar ISO_DATE_REGEXP = /^\\d{4,}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+(?:[+-][0-2]\\d:[0-5]\\d|Z)$/;\n// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)\n// Note: We are being more lenient, because browsers are too.\n//   1. Scheme\n//   2. Slashes\n//   3. Username\n//   4. Password\n//   5. Hostname\n//   6. Port\n//   7. Path\n//   8. Query\n//   9. Fragment\n//                 1111111111111111 222   333333    44444        55555555555555555555555     666     77777777     8888888     999\nvar URL_REGEXP = /^[a-z][a-z\\d.+-]*:\\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\\s:/?#]+|\\[[a-f\\d:]+])(?::\\d+)?(?:\\/[^?#]*)?(?:\\?[^#]*)?(?:#.*)?$/i;\n// eslint-disable-next-line max-len\nvar EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;\nvar NUMBER_REGEXP = /^\\s*(-|\\+)?(\\d+|(\\d*(\\.\\d*)))([eE][+-]?\\d+)?\\s*$/;\nvar DATE_REGEXP = /^(\\d{4,})-(\\d{2})-(\\d{2})$/;\nvar DATETIMELOCAL_REGEXP = /^(\\d{4,})-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\nvar WEEK_REGEXP = /^(\\d{4,})-W(\\d\\d)$/;\nvar MONTH_REGEXP = /^(\\d{4,})-(\\d\\d)$/;\nvar TIME_REGEXP = /^(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\nvar PARTIAL_VALIDATION_EVENTS = 'keydown wheel mousedown';\nvar PARTIAL_VALIDATION_TYPES = createMap();\nforEach('date,datetime-local,month,time,week'.split(','), function(type) {\n  PARTIAL_VALIDATION_TYPES[type] = true;\n});\n\nvar inputType = {\n\n  /**\n   * @ngdoc input\n   * @name input[text]\n   *\n   * @description\n   * Standard HTML text input with angular data binding, inherited by most of the `input` elements.\n   *\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} required Adds `required` validation error key if the value is not entered.\n   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n   *    `required` when you want to data-bind to the `required` attribute.\n   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n   *    minlength.\n   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n   *    any length.\n   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n   *    that contains the regular expression body that will be converted to a regular expression\n   *    as in the ngPattern directive.\n   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}\n   *    does not match a RegExp found by evaluating the Angular expression given in the attribute value.\n   *    If the expression evaluates to a RegExp object, then this is used directly.\n   *    If the expression evaluates to a string, then it will be converted to a RegExp\n   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n   *    `new RegExp('^abc$')`.<br />\n   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n   *    start at the index of the last search's match, thus not taking the whole input value into\n   *    account.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n   *    This parameter is ignored for input[type=password] controls, which will never trim the\n   *    input.\n   *\n   * @example\n      <example name=\"text-input-directive\" module=\"textInputExample\">\n        <file name=\"index.html\">\n         <script>\n           angular.module('textInputExample', [])\n             .controller('ExampleController', ['$scope', function($scope) {\n               $scope.example = {\n                 text: 'guest',\n                 word: /^\\s*\\w*\\s*$/\n               };\n             }]);\n         </script>\n         <form name=\"myForm\" ng-controller=\"ExampleController\">\n           <label>Single word:\n             <input type=\"text\" name=\"input\" ng-model=\"example.text\"\n                    ng-pattern=\"example.word\" required ng-trim=\"false\">\n           </label>\n           <div role=\"alert\">\n             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n               Required!</span>\n             <span class=\"error\" ng-show=\"myForm.input.$error.pattern\">\n               Single word only!</span>\n           </div>\n           <code>text = {{example.text}}</code><br/>\n           <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br/>\n           <code>myForm.input.$error = {{myForm.input.$error}}</code><br/>\n           <code>myForm.$valid = {{myForm.$valid}}</code><br/>\n           <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br/>\n          </form>\n        </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          var text = element(by.binding('example.text'));\n          var valid = element(by.binding('myForm.input.$valid'));\n          var input = element(by.model('example.text'));\n\n          it('should initialize to model', function() {\n            expect(text.getText()).toContain('guest');\n            expect(valid.getText()).toContain('true');\n          });\n\n          it('should be invalid if empty', function() {\n            input.clear();\n            input.sendKeys('');\n\n            expect(text.getText()).toEqual('text =');\n            expect(valid.getText()).toContain('false');\n          });\n\n          it('should be invalid if multi word', function() {\n            input.clear();\n            input.sendKeys('hello world');\n\n            expect(valid.getText()).toContain('false');\n          });\n        </file>\n      </example>\n   */\n  'text': textInputType,\n\n    /**\n     * @ngdoc input\n     * @name input[date]\n     *\n     * @description\n     * Input with date validation and transformation. In browsers that do not yet support\n     * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601\n     * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many\n     * modern browsers do not yet support this input type, it is important to provide cues to users on the\n     * expected input format via a placeholder or label.\n     *\n     * The model must always be a Date object, otherwise Angular will throw an error.\n     * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n     *\n     * The timezone to be used to read/write the `Date` instance in the model can be defined using\n     * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n     *\n     * @param {string} ngModel Assignable angular expression to data-bind to.\n     * @param {string=} name Property name of the form under which the control is published.\n     * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n     *   valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n     *   (e.g. `min=\"{{minDate | date:'yyyy-MM-dd'}}\"`). Note that `min` will also add native HTML5\n     *   constraint validation.\n     * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n     *   a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n     *   (e.g. `max=\"{{maxDate | date:'yyyy-MM-dd'}}\"`). Note that `max` will also add native HTML5\n     *   constraint validation.\n     * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string\n     *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n     * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string\n     *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n     * @param {string=} required Sets `required` validation error key if the value is not entered.\n     * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n     *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n     *    `required` when you want to data-bind to the `required` attribute.\n     * @param {string=} ngChange Angular expression to be executed when input changes due to user\n     *    interaction with the input element.\n     *\n     * @example\n     <example name=\"date-input-directive\" module=\"dateInputExample\">\n     <file name=\"index.html\">\n       <script>\n          angular.module('dateInputExample', [])\n            .controller('DateController', ['$scope', function($scope) {\n              $scope.example = {\n                value: new Date(2013, 9, 22)\n              };\n            }]);\n       </script>\n       <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n          <label for=\"exampleInput\">Pick a date in 2013:</label>\n          <input type=\"date\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n              placeholder=\"yyyy-MM-dd\" min=\"2013-01-01\" max=\"2013-12-31\" required />\n          <div role=\"alert\">\n            <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n                Required!</span>\n            <span class=\"error\" ng-show=\"myForm.input.$error.date\">\n                Not a valid date!</span>\n           </div>\n           <tt>value = {{example.value | date: \"yyyy-MM-dd\"}}</tt><br/>\n           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n       </form>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n        var value = element(by.binding('example.value | date: \"yyyy-MM-dd\"'));\n        var valid = element(by.binding('myForm.input.$valid'));\n\n        // currently protractor/webdriver does not support\n        // sending keys to all known HTML5 input controls\n        // for various browsers (see https://github.com/angular/protractor/issues/562).\n        function setInput(val) {\n          // set the value of the element and force validation.\n          var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n          \"ipt.value = '\" + val + \"';\" +\n          \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n          browser.executeScript(scr);\n        }\n\n        it('should initialize to model', function() {\n          expect(value.getText()).toContain('2013-10-22');\n          expect(valid.getText()).toContain('myForm.input.$valid = true');\n        });\n\n        it('should be invalid if empty', function() {\n          setInput('');\n          expect(value.getText()).toEqual('value =');\n          expect(valid.getText()).toContain('myForm.input.$valid = false');\n        });\n\n        it('should be invalid if over max', function() {\n          setInput('2015-01-01');\n          expect(value.getText()).toContain('');\n          expect(valid.getText()).toContain('myForm.input.$valid = false');\n        });\n     </file>\n     </example>\n     */\n  'date': createDateInputType('date', DATE_REGEXP,\n         createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),\n         'yyyy-MM-dd'),\n\n   /**\n    * @ngdoc input\n    * @name input[datetime-local]\n    *\n    * @description\n    * Input with datetime validation and transformation. In browsers that do not yet support\n    * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n    * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.\n    *\n    * The model must always be a Date object, otherwise Angular will throw an error.\n    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n    *\n    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n    *\n    * @param {string} ngModel Assignable angular expression to data-bind to.\n    * @param {string=} name Property name of the form under which the control is published.\n    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n    *   inside this attribute (e.g. `min=\"{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n    *   Note that `min` will also add native HTML5 constraint validation.\n    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n    *   inside this attribute (e.g. `max=\"{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n    *   Note that `max` will also add native HTML5 constraint validation.\n    * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string\n    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n    * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string\n    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n    * @param {string=} required Sets `required` validation error key if the value is not entered.\n    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n    *    `required` when you want to data-bind to the `required` attribute.\n    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n    *    interaction with the input element.\n    *\n    * @example\n    <example name=\"datetimelocal-input-directive\" module=\"dateExample\">\n    <file name=\"index.html\">\n      <script>\n        angular.module('dateExample', [])\n          .controller('DateController', ['$scope', function($scope) {\n            $scope.example = {\n              value: new Date(2010, 11, 28, 14, 57)\n            };\n          }]);\n      </script>\n      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n        <label for=\"exampleInput\">Pick a date between in 2013:</label>\n        <input type=\"datetime-local\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n            placeholder=\"yyyy-MM-ddTHH:mm:ss\" min=\"2001-01-01T00:00:00\" max=\"2013-12-31T00:00:00\" required />\n        <div role=\"alert\">\n          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n              Required!</span>\n          <span class=\"error\" ng-show=\"myForm.input.$error.datetimelocal\">\n              Not a valid date!</span>\n        </div>\n        <tt>value = {{example.value | date: \"yyyy-MM-ddTHH:mm:ss\"}}</tt><br/>\n        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n      </form>\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var value = element(by.binding('example.value | date: \"yyyy-MM-ddTHH:mm:ss\"'));\n      var valid = element(by.binding('myForm.input.$valid'));\n\n      // currently protractor/webdriver does not support\n      // sending keys to all known HTML5 input controls\n      // for various browsers (https://github.com/angular/protractor/issues/562).\n      function setInput(val) {\n        // set the value of the element and force validation.\n        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n        \"ipt.value = '\" + val + \"';\" +\n        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n        browser.executeScript(scr);\n      }\n\n      it('should initialize to model', function() {\n        expect(value.getText()).toContain('2010-12-28T14:57:00');\n        expect(valid.getText()).toContain('myForm.input.$valid = true');\n      });\n\n      it('should be invalid if empty', function() {\n        setInput('');\n        expect(value.getText()).toEqual('value =');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n\n      it('should be invalid if over max', function() {\n        setInput('2015-01-01T23:59:00');\n        expect(value.getText()).toContain('');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n    </file>\n    </example>\n    */\n  'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,\n      createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),\n      'yyyy-MM-ddTHH:mm:ss.sss'),\n\n  /**\n   * @ngdoc input\n   * @name input[time]\n   *\n   * @description\n   * Input with time validation and transformation. In browsers that do not yet support\n   * the HTML5 time input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n   * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a\n   * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.\n   *\n   * The model must always be a Date object, otherwise Angular will throw an error.\n   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n   *\n   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n   *   attribute (e.g. `min=\"{{minTime | date:'HH:mm:ss'}}\"`). Note that `min` will also add\n   *   native HTML5 constraint validation.\n   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n   *   attribute (e.g. `max=\"{{maxTime | date:'HH:mm:ss'}}\"`). Note that `max` will also add\n   *   native HTML5 constraint validation.\n   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the\n   *   `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the\n   *   `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n   * @param {string=} required Sets `required` validation error key if the value is not entered.\n   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n   *    `required` when you want to data-bind to the `required` attribute.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   *\n   * @example\n   <example name=\"time-input-directive\" module=\"timeExample\">\n   <file name=\"index.html\">\n     <script>\n      angular.module('timeExample', [])\n        .controller('DateController', ['$scope', function($scope) {\n          $scope.example = {\n            value: new Date(1970, 0, 1, 14, 57, 0)\n          };\n        }]);\n     </script>\n     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n        <label for=\"exampleInput\">Pick a time between 8am and 5pm:</label>\n        <input type=\"time\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n            placeholder=\"HH:mm:ss\" min=\"08:00:00\" max=\"17:00:00\" required />\n        <div role=\"alert\">\n          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n              Required!</span>\n          <span class=\"error\" ng-show=\"myForm.input.$error.time\">\n              Not a valid date!</span>\n        </div>\n        <tt>value = {{example.value | date: \"HH:mm:ss\"}}</tt><br/>\n        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n     </form>\n   </file>\n   <file name=\"protractor.js\" type=\"protractor\">\n      var value = element(by.binding('example.value | date: \"HH:mm:ss\"'));\n      var valid = element(by.binding('myForm.input.$valid'));\n\n      // currently protractor/webdriver does not support\n      // sending keys to all known HTML5 input controls\n      // for various browsers (https://github.com/angular/protractor/issues/562).\n      function setInput(val) {\n        // set the value of the element and force validation.\n        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n        \"ipt.value = '\" + val + \"';\" +\n        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n        browser.executeScript(scr);\n      }\n\n      it('should initialize to model', function() {\n        expect(value.getText()).toContain('14:57:00');\n        expect(valid.getText()).toContain('myForm.input.$valid = true');\n      });\n\n      it('should be invalid if empty', function() {\n        setInput('');\n        expect(value.getText()).toEqual('value =');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n\n      it('should be invalid if over max', function() {\n        setInput('23:59:00');\n        expect(value.getText()).toContain('');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n   </file>\n   </example>\n   */\n  'time': createDateInputType('time', TIME_REGEXP,\n      createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),\n     'HH:mm:ss.sss'),\n\n   /**\n    * @ngdoc input\n    * @name input[week]\n    *\n    * @description\n    * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support\n    * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n    * week format (yyyy-W##), for example: `2013-W02`.\n    *\n    * The model must always be a Date object, otherwise Angular will throw an error.\n    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n    *\n    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n    *\n    * @param {string} ngModel Assignable angular expression to data-bind to.\n    * @param {string=} name Property name of the form under which the control is published.\n    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n    *   attribute (e.g. `min=\"{{minWeek | date:'yyyy-Www'}}\"`). Note that `min` will also add\n    *   native HTML5 constraint validation.\n    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n    *   attribute (e.g. `max=\"{{maxWeek | date:'yyyy-Www'}}\"`). Note that `max` will also add\n    *   native HTML5 constraint validation.\n    * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n    * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n    * @param {string=} required Sets `required` validation error key if the value is not entered.\n    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n    *    `required` when you want to data-bind to the `required` attribute.\n    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n    *    interaction with the input element.\n    *\n    * @example\n    <example name=\"week-input-directive\" module=\"weekExample\">\n    <file name=\"index.html\">\n      <script>\n      angular.module('weekExample', [])\n        .controller('DateController', ['$scope', function($scope) {\n          $scope.example = {\n            value: new Date(2013, 0, 3)\n          };\n        }]);\n      </script>\n      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n        <label>Pick a date between in 2013:\n          <input id=\"exampleInput\" type=\"week\" name=\"input\" ng-model=\"example.value\"\n                 placeholder=\"YYYY-W##\" min=\"2012-W32\"\n                 max=\"2013-W52\" required />\n        </label>\n        <div role=\"alert\">\n          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n              Required!</span>\n          <span class=\"error\" ng-show=\"myForm.input.$error.week\">\n              Not a valid date!</span>\n        </div>\n        <tt>value = {{example.value | date: \"yyyy-Www\"}}</tt><br/>\n        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n      </form>\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var value = element(by.binding('example.value | date: \"yyyy-Www\"'));\n      var valid = element(by.binding('myForm.input.$valid'));\n\n      // currently protractor/webdriver does not support\n      // sending keys to all known HTML5 input controls\n      // for various browsers (https://github.com/angular/protractor/issues/562).\n      function setInput(val) {\n        // set the value of the element and force validation.\n        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n        \"ipt.value = '\" + val + \"';\" +\n        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n        browser.executeScript(scr);\n      }\n\n      it('should initialize to model', function() {\n        expect(value.getText()).toContain('2013-W01');\n        expect(valid.getText()).toContain('myForm.input.$valid = true');\n      });\n\n      it('should be invalid if empty', function() {\n        setInput('');\n        expect(value.getText()).toEqual('value =');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n\n      it('should be invalid if over max', function() {\n        setInput('2015-W01');\n        expect(value.getText()).toContain('');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n    </file>\n    </example>\n    */\n  'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),\n\n  /**\n   * @ngdoc input\n   * @name input[month]\n   *\n   * @description\n   * Input with month validation and transformation. In browsers that do not yet support\n   * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n   * month format (yyyy-MM), for example: `2009-01`.\n   *\n   * The model must always be a Date object, otherwise Angular will throw an error.\n   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n   * If the model is not set to the first of the month, the next view to model update will set it\n   * to the first of the month.\n   *\n   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n   *   attribute (e.g. `min=\"{{minMonth | date:'yyyy-MM'}}\"`). Note that `min` will also add\n   *   native HTML5 constraint validation.\n   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n   *   attribute (e.g. `max=\"{{maxMonth | date:'yyyy-MM'}}\"`). Note that `max` will also add\n   *   native HTML5 constraint validation.\n   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n   *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n   *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\n   * @param {string=} required Sets `required` validation error key if the value is not entered.\n   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n   *    `required` when you want to data-bind to the `required` attribute.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   *\n   * @example\n   <example name=\"month-input-directive\" module=\"monthExample\">\n   <file name=\"index.html\">\n     <script>\n      angular.module('monthExample', [])\n        .controller('DateController', ['$scope', function($scope) {\n          $scope.example = {\n            value: new Date(2013, 9, 1)\n          };\n        }]);\n     </script>\n     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n       <label for=\"exampleInput\">Pick a month in 2013:</label>\n       <input id=\"exampleInput\" type=\"month\" name=\"input\" ng-model=\"example.value\"\n          placeholder=\"yyyy-MM\" min=\"2013-01\" max=\"2013-12\" required />\n       <div role=\"alert\">\n         <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n            Required!</span>\n         <span class=\"error\" ng-show=\"myForm.input.$error.month\">\n            Not a valid month!</span>\n       </div>\n       <tt>value = {{example.value | date: \"yyyy-MM\"}}</tt><br/>\n       <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n       <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n       <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n       <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n     </form>\n   </file>\n   <file name=\"protractor.js\" type=\"protractor\">\n      var value = element(by.binding('example.value | date: \"yyyy-MM\"'));\n      var valid = element(by.binding('myForm.input.$valid'));\n\n      // currently protractor/webdriver does not support\n      // sending keys to all known HTML5 input controls\n      // for various browsers (https://github.com/angular/protractor/issues/562).\n      function setInput(val) {\n        // set the value of the element and force validation.\n        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n        \"ipt.value = '\" + val + \"';\" +\n        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n        browser.executeScript(scr);\n      }\n\n      it('should initialize to model', function() {\n        expect(value.getText()).toContain('2013-10');\n        expect(valid.getText()).toContain('myForm.input.$valid = true');\n      });\n\n      it('should be invalid if empty', function() {\n        setInput('');\n        expect(value.getText()).toEqual('value =');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n\n      it('should be invalid if over max', function() {\n        setInput('2015-01');\n        expect(value.getText()).toContain('');\n        expect(valid.getText()).toContain('myForm.input.$valid = false');\n      });\n   </file>\n   </example>\n   */\n  'month': createDateInputType('month', MONTH_REGEXP,\n     createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),\n     'yyyy-MM'),\n\n  /**\n   * @ngdoc input\n   * @name input[number]\n   *\n   * @description\n   * Text input with number validation and transformation. Sets the `number` validation\n   * error if not a valid number.\n   *\n   * <div class=\"alert alert-warning\">\n   * The model must always be of type `number` otherwise Angular will throw an error.\n   * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}\n   * error docs for more information and an example of how to convert your model if necessary.\n   * </div>\n   *\n   * ## Issues with HTML5 constraint validation\n   *\n   * In browsers that follow the\n   * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),\n   * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.\n   * If a non-number is entered in the input, the browser will report the value as an empty string,\n   * which means the view / model values in `ngModel` and subsequently the scope value\n   * will also be an empty string.\n   *\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n   *    Can be interpolated.\n   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n   *    Can be interpolated.\n   * @param {string=} ngMin Like `min`, sets the `min` validation error key if the value entered is less than `ngMin`,\n   *    but does not trigger HTML5 native validation. Takes an expression.\n   * @param {string=} ngMax Like `max`, sets the `max` validation error key if the value entered is greater than `ngMax`,\n   *    but does not trigger HTML5 native validation. Takes an expression.\n   * @param {string=} step Sets the `step` validation error key if the value entered does not fit the `step` constraint.\n   *    Can be interpolated.\n   * @param {string=} ngStep Like `step`, sets the `step` validation error key if the value entered does not fit the `ngStep` constraint,\n   *    but does not trigger HTML5 native validation. Takes an expression.\n   * @param {string=} required Sets `required` validation error key if the value is not entered.\n   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n   *    `required` when you want to data-bind to the `required` attribute.\n   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n   *    minlength.\n   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n   *    any length.\n   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n   *    that contains the regular expression body that will be converted to a regular expression\n   *    as in the ngPattern directive.\n   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}\n   *    does not match a RegExp found by evaluating the Angular expression given in the attribute value.\n   *    If the expression evaluates to a RegExp object, then this is used directly.\n   *    If the expression evaluates to a string, then it will be converted to a RegExp\n   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n   *    `new RegExp('^abc$')`.<br />\n   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n   *    start at the index of the last search's match, thus not taking the whole input value into\n   *    account.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   *\n   * @example\n      <example name=\"number-input-directive\" module=\"numberExample\">\n        <file name=\"index.html\">\n         <script>\n           angular.module('numberExample', [])\n             .controller('ExampleController', ['$scope', function($scope) {\n               $scope.example = {\n                 value: 12\n               };\n             }]);\n         </script>\n         <form name=\"myForm\" ng-controller=\"ExampleController\">\n           <label>Number:\n             <input type=\"number\" name=\"input\" ng-model=\"example.value\"\n                    min=\"0\" max=\"99\" required>\n          </label>\n           <div role=\"alert\">\n             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n               Required!</span>\n             <span class=\"error\" ng-show=\"myForm.input.$error.number\">\n               Not valid number!</span>\n           </div>\n           <tt>value = {{example.value}}</tt><br/>\n           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n          </form>\n        </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          var value = element(by.binding('example.value'));\n          var valid = element(by.binding('myForm.input.$valid'));\n          var input = element(by.model('example.value'));\n\n          it('should initialize to model', function() {\n            expect(value.getText()).toContain('12');\n            expect(valid.getText()).toContain('true');\n          });\n\n          it('should be invalid if empty', function() {\n            input.clear();\n            input.sendKeys('');\n            expect(value.getText()).toEqual('value =');\n            expect(valid.getText()).toContain('false');\n          });\n\n          it('should be invalid if over max', function() {\n            input.clear();\n            input.sendKeys('123');\n            expect(value.getText()).toEqual('value =');\n            expect(valid.getText()).toContain('false');\n          });\n        </file>\n      </example>\n   */\n  'number': numberInputType,\n\n\n  /**\n   * @ngdoc input\n   * @name input[url]\n   *\n   * @description\n   * Text input with URL validation. Sets the `url` validation error key if the content is not a\n   * valid URL.\n   *\n   * <div class=\"alert alert-warning\">\n   * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex\n   * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify\n   * the built-in validators (see the {@link guide/forms Forms guide})\n   * </div>\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} required Sets `required` validation error key if the value is not entered.\n   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n   *    `required` when you want to data-bind to the `required` attribute.\n   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n   *    minlength.\n   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n   *    any length.\n   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n   *    that contains the regular expression body that will be converted to a regular expression\n   *    as in the ngPattern directive.\n   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}\n   *    does not match a RegExp found by evaluating the Angular expression given in the attribute value.\n   *    If the expression evaluates to a RegExp object, then this is used directly.\n   *    If the expression evaluates to a string, then it will be converted to a RegExp\n   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n   *    `new RegExp('^abc$')`.<br />\n   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n   *    start at the index of the last search's match, thus not taking the whole input value into\n   *    account.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   *\n   * @example\n      <example name=\"url-input-directive\" module=\"urlExample\">\n        <file name=\"index.html\">\n         <script>\n           angular.module('urlExample', [])\n             .controller('ExampleController', ['$scope', function($scope) {\n               $scope.url = {\n                 text: 'http://google.com'\n               };\n             }]);\n         </script>\n         <form name=\"myForm\" ng-controller=\"ExampleController\">\n           <label>URL:\n             <input type=\"url\" name=\"input\" ng-model=\"url.text\" required>\n           <label>\n           <div role=\"alert\">\n             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n               Required!</span>\n             <span class=\"error\" ng-show=\"myForm.input.$error.url\">\n               Not valid url!</span>\n           </div>\n           <tt>text = {{url.text}}</tt><br/>\n           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n           <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>\n          </form>\n        </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          var text = element(by.binding('url.text'));\n          var valid = element(by.binding('myForm.input.$valid'));\n          var input = element(by.model('url.text'));\n\n          it('should initialize to model', function() {\n            expect(text.getText()).toContain('http://google.com');\n            expect(valid.getText()).toContain('true');\n          });\n\n          it('should be invalid if empty', function() {\n            input.clear();\n            input.sendKeys('');\n\n            expect(text.getText()).toEqual('text =');\n            expect(valid.getText()).toContain('false');\n          });\n\n          it('should be invalid if not url', function() {\n            input.clear();\n            input.sendKeys('box');\n\n            expect(valid.getText()).toContain('false');\n          });\n        </file>\n      </example>\n   */\n  'url': urlInputType,\n\n\n  /**\n   * @ngdoc input\n   * @name input[email]\n   *\n   * @description\n   * Text input with email validation. Sets the `email` validation error key if not a valid email\n   * address.\n   *\n   * <div class=\"alert alert-warning\">\n   * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex\n   * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can\n   * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})\n   * </div>\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} required Sets `required` validation error key if the value is not entered.\n   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n   *    `required` when you want to data-bind to the `required` attribute.\n   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n   *    minlength.\n   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n   *    any length.\n   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n   *    that contains the regular expression body that will be converted to a regular expression\n   *    as in the ngPattern directive.\n   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}\n   *    does not match a RegExp found by evaluating the Angular expression given in the attribute value.\n   *    If the expression evaluates to a RegExp object, then this is used directly.\n   *    If the expression evaluates to a string, then it will be converted to a RegExp\n   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n   *    `new RegExp('^abc$')`.<br />\n   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n   *    start at the index of the last search's match, thus not taking the whole input value into\n   *    account.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   *\n   * @example\n      <example name=\"email-input-directive\" module=\"emailExample\">\n        <file name=\"index.html\">\n         <script>\n           angular.module('emailExample', [])\n             .controller('ExampleController', ['$scope', function($scope) {\n               $scope.email = {\n                 text: 'me@example.com'\n               };\n             }]);\n         </script>\n           <form name=\"myForm\" ng-controller=\"ExampleController\">\n             <label>Email:\n               <input type=\"email\" name=\"input\" ng-model=\"email.text\" required>\n             </label>\n             <div role=\"alert\">\n               <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n                 Required!</span>\n               <span class=\"error\" ng-show=\"myForm.input.$error.email\">\n                 Not valid email!</span>\n             </div>\n             <tt>text = {{email.text}}</tt><br/>\n             <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n             <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n             <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n             <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n             <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>\n           </form>\n         </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          var text = element(by.binding('email.text'));\n          var valid = element(by.binding('myForm.input.$valid'));\n          var input = element(by.model('email.text'));\n\n          it('should initialize to model', function() {\n            expect(text.getText()).toContain('me@example.com');\n            expect(valid.getText()).toContain('true');\n          });\n\n          it('should be invalid if empty', function() {\n            input.clear();\n            input.sendKeys('');\n            expect(text.getText()).toEqual('text =');\n            expect(valid.getText()).toContain('false');\n          });\n\n          it('should be invalid if not email', function() {\n            input.clear();\n            input.sendKeys('xxx');\n\n            expect(valid.getText()).toContain('false');\n          });\n        </file>\n      </example>\n   */\n  'email': emailInputType,\n\n\n  /**\n   * @ngdoc input\n   * @name input[radio]\n   *\n   * @description\n   * HTML radio button.\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string} value The value to which the `ngModel` expression should be set when selected.\n   *    Note that `value` only supports `string` values, i.e. the scope model needs to be a string,\n   *    too. Use `ngValue` if you need complex models (`number`, `object`, ...).\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio\n   *    is selected. Should be used instead of the `value` attribute if you need\n   *    a non-string `ngModel` (`boolean`, `array`, ...).\n   *\n   * @example\n      <example name=\"radio-input-directive\" module=\"radioExample\">\n        <file name=\"index.html\">\n         <script>\n           angular.module('radioExample', [])\n             .controller('ExampleController', ['$scope', function($scope) {\n               $scope.color = {\n                 name: 'blue'\n               };\n               $scope.specialValue = {\n                 \"id\": \"12345\",\n                 \"value\": \"green\"\n               };\n             }]);\n         </script>\n         <form name=\"myForm\" ng-controller=\"ExampleController\">\n           <label>\n             <input type=\"radio\" ng-model=\"color.name\" value=\"red\">\n             Red\n           </label><br/>\n           <label>\n             <input type=\"radio\" ng-model=\"color.name\" ng-value=\"specialValue\">\n             Green\n           </label><br/>\n           <label>\n             <input type=\"radio\" ng-model=\"color.name\" value=\"blue\">\n             Blue\n           </label><br/>\n           <tt>color = {{color.name | json}}</tt><br/>\n          </form>\n          Note that `ng-value=\"specialValue\"` sets radio item's value to be the value of `$scope.specialValue`.\n        </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          it('should change state', function() {\n            var inputs = element.all(by.model('color.name'));\n            var color = element(by.binding('color.name'));\n\n            expect(color.getText()).toContain('blue');\n\n            inputs.get(0).click();\n            expect(color.getText()).toContain('red');\n\n            inputs.get(1).click();\n            expect(color.getText()).toContain('green');\n          });\n        </file>\n      </example>\n   */\n  'radio': radioInputType,\n\n  /**\n   * @ngdoc input\n   * @name input[range]\n   *\n   * @description\n   * Native range input with validation and transformation.\n   *\n   * The model for the range input must always be a `Number`.\n   *\n   * IE9 and other browsers that do not support the `range` type fall back\n   * to a text input without any default values for `min`, `max` and `step`. Model binding,\n   * validation and number parsing are nevertheless supported.\n   *\n   * Browsers that support range (latest Chrome, Safari, Firefox, Edge) treat `input[range]`\n   * in a way that never allows the input to hold an invalid value. That means:\n   * - any non-numerical value is set to `(max + min) / 2`.\n   * - any numerical value that is less than the current min val, or greater than the current max val\n   * is set to the min / max val respectively.\n   * - additionally, the current `step` is respected, so the nearest value that satisfies a step\n   * is used.\n   *\n   * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range))\n   * for more info.\n   *\n   * This has the following consequences for Angular:\n   *\n   * Since the element value should always reflect the current model value, a range input\n   * will set the bound ngModel expression to the value that the browser has set for the\n   * input element. For example, in the following input `<input type=\"range\" ng-model=\"model.value\">`,\n   * if the application sets `model.value = null`, the browser will set the input to `'50'`.\n   * Angular will then set the model to `50`, to prevent input and model value being out of sync.\n   *\n   * That means the model for range will immediately be set to `50` after `ngModel` has been\n   * initialized. It also means a range input can never have the required error.\n   *\n   * This does not only affect changes to the model value, but also to the values of the `min`,\n   * `max`, and `step` attributes. When these change in a way that will cause the browser to modify\n   * the input value, Angular will also update the model value.\n   *\n   * Automatic value adjustment also means that a range input element can never have the `required`,\n   * `min`, or `max` errors.\n   *\n   * However, `step` is currently only fully implemented by Firefox. Other browsers have problems\n   * when the step value changes dynamically - they do not adjust the element value correctly, but\n   * instead may set the `stepMismatch` error. If that's the case, the Angular will set the `step`\n   * error on the input, and set the model to `undefined`.\n   *\n   * Note that `input[range]` is not compatible with`ngMax`, `ngMin`, and `ngStep`, because they do\n   * not set the `min` and `max` attributes, which means that the browser won't automatically adjust\n   * the input value based on their values, and will always assume min = 0, max = 100, and step = 1.\n   *\n   * @param {string}  ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {string=} min Sets the `min` validation to ensure that the value entered is greater\n   *                  than `min`. Can be interpolated.\n   * @param {string=} max Sets the `max` validation to ensure that the value entered is less than `max`.\n   *                  Can be interpolated.\n   * @param {string=} step Sets the `step` validation to ensure that the value entered matches the `step`\n   *                  Can be interpolated.\n   * @param {string=} ngChange Angular expression to be executed when the ngModel value changes due\n   *                  to user interaction with the input element.\n   * @param {expression=} ngChecked If the expression is truthy, then the `checked` attribute will be set on the\n   *                      element. **Note** : `ngChecked` should not be used alongside `ngModel`.\n   *                      Checkout {@link ng.directive:ngChecked ngChecked} for usage.\n   *\n   * @example\n      <example name=\"range-input-directive\" module=\"rangeExample\">\n        <file name=\"index.html\">\n          <script>\n            angular.module('rangeExample', [])\n              .controller('ExampleController', ['$scope', function($scope) {\n                $scope.value = 75;\n                $scope.min = 10;\n                $scope.max = 90;\n              }]);\n          </script>\n          <form name=\"myForm\" ng-controller=\"ExampleController\">\n\n            Model as range: <input type=\"range\" name=\"range\" ng-model=\"value\" min=\"{{min}}\"  max=\"{{max}}\">\n            <hr>\n            Model as number: <input type=\"number\" ng-model=\"value\"><br>\n            Min: <input type=\"number\" ng-model=\"min\"><br>\n            Max: <input type=\"number\" ng-model=\"max\"><br>\n            value = <code>{{value}}</code><br/>\n            myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>\n            myForm.range.$error = <code>{{myForm.range.$error}}</code>\n          </form>\n        </file>\n      </example>\n\n   * ## Range Input with ngMin & ngMax attributes\n\n   * @example\n      <example name=\"range-input-directive-ng\" module=\"rangeExample\">\n        <file name=\"index.html\">\n          <script>\n            angular.module('rangeExample', [])\n              .controller('ExampleController', ['$scope', function($scope) {\n                $scope.value = 75;\n                $scope.min = 10;\n                $scope.max = 90;\n              }]);\n          </script>\n          <form name=\"myForm\" ng-controller=\"ExampleController\">\n            Model as range: <input type=\"range\" name=\"range\" ng-model=\"value\" ng-min=\"min\" ng-max=\"max\">\n            <hr>\n            Model as number: <input type=\"number\" ng-model=\"value\"><br>\n            Min: <input type=\"number\" ng-model=\"min\"><br>\n            Max: <input type=\"number\" ng-model=\"max\"><br>\n            value = <code>{{value}}</code><br/>\n            myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>\n            myForm.range.$error = <code>{{myForm.range.$error}}</code>\n          </form>\n        </file>\n      </example>\n\n   */\n  'range': rangeInputType,\n\n  /**\n   * @ngdoc input\n   * @name input[checkbox]\n   *\n   * @description\n   * HTML checkbox.\n   *\n   * @param {string} ngModel Assignable angular expression to data-bind to.\n   * @param {string=} name Property name of the form under which the control is published.\n   * @param {expression=} ngTrueValue The value to which the expression should be set when selected.\n   * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.\n   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n   *    interaction with the input element.\n   *\n   * @example\n      <example name=\"checkbox-input-directive\" module=\"checkboxExample\">\n        <file name=\"index.html\">\n         <script>\n           angular.module('checkboxExample', [])\n             .controller('ExampleController', ['$scope', function($scope) {\n               $scope.checkboxModel = {\n                value1 : true,\n                value2 : 'YES'\n              };\n             }]);\n         </script>\n         <form name=\"myForm\" ng-controller=\"ExampleController\">\n           <label>Value1:\n             <input type=\"checkbox\" ng-model=\"checkboxModel.value1\">\n           </label><br/>\n           <label>Value2:\n             <input type=\"checkbox\" ng-model=\"checkboxModel.value2\"\n                    ng-true-value=\"'YES'\" ng-false-value=\"'NO'\">\n            </label><br/>\n           <tt>value1 = {{checkboxModel.value1}}</tt><br/>\n           <tt>value2 = {{checkboxModel.value2}}</tt><br/>\n          </form>\n        </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          it('should change state', function() {\n            var value1 = element(by.binding('checkboxModel.value1'));\n            var value2 = element(by.binding('checkboxModel.value2'));\n\n            expect(value1.getText()).toContain('true');\n            expect(value2.getText()).toContain('YES');\n\n            element(by.model('checkboxModel.value1')).click();\n            element(by.model('checkboxModel.value2')).click();\n\n            expect(value1.getText()).toContain('false');\n            expect(value2.getText()).toContain('NO');\n          });\n        </file>\n      </example>\n   */\n  'checkbox': checkboxInputType,\n\n  'hidden': noop,\n  'button': noop,\n  'submit': noop,\n  'reset': noop,\n  'file': noop\n};\n\nfunction stringBasedInputType(ctrl) {\n  ctrl.$formatters.push(function(value) {\n    return ctrl.$isEmpty(value) ? value : value.toString();\n  });\n}\n\nfunction textInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n  stringBasedInputType(ctrl);\n}\n\nfunction baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n  var type = lowercase(element[0].type);\n\n  // In composition mode, users are still inputting intermediate text buffer,\n  // hold the listener until composition is done.\n  // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent\n  if (!$sniffer.android) {\n    var composing = false;\n\n    element.on('compositionstart', function() {\n      composing = true;\n    });\n\n    element.on('compositionend', function() {\n      composing = false;\n      listener();\n    });\n  }\n\n  var timeout;\n\n  var listener = function(ev) {\n    if (timeout) {\n      $browser.defer.cancel(timeout);\n      timeout = null;\n    }\n    if (composing) return;\n    var value = element.val(),\n        event = ev && ev.type;\n\n    // By default we will trim the value\n    // If the attribute ng-trim exists we will avoid trimming\n    // If input type is 'password', the value is never trimmed\n    if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {\n      value = trim(value);\n    }\n\n    // If a control is suffering from bad input (due to native validators), browsers discard its\n    // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the\n    // control's value is the same empty value twice in a row.\n    if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {\n      ctrl.$setViewValue(value, event);\n    }\n  };\n\n  // if the browser does support \"input\" event, we are fine - except on IE9 which doesn't fire the\n  // input event on backspace, delete or cut\n  if ($sniffer.hasEvent('input')) {\n    element.on('input', listener);\n  } else {\n    var deferListener = function(ev, input, origValue) {\n      if (!timeout) {\n        timeout = $browser.defer(function() {\n          timeout = null;\n          if (!input || input.value !== origValue) {\n            listener(ev);\n          }\n        });\n      }\n    };\n\n    element.on('keydown', /** @this */ function(event) {\n      var key = event.keyCode;\n\n      // ignore\n      //    command            modifiers                   arrows\n      if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;\n\n      deferListener(event, this, this.value);\n    });\n\n    // if user modifies input value using context menu in IE, we need \"paste\" and \"cut\" events to catch it\n    if ($sniffer.hasEvent('paste')) {\n      element.on('paste cut', deferListener);\n    }\n  }\n\n  // if user paste into input using mouse on older browser\n  // or form autocomplete on newer browser, we need \"change\" event to catch it\n  element.on('change', listener);\n\n  // Some native input types (date-family) have the ability to change validity without\n  // firing any input/change events.\n  // For these event types, when native validators are present and the browser supports the type,\n  // check for validity changes on various DOM events.\n  if (PARTIAL_VALIDATION_TYPES[type] && ctrl.$$hasNativeValidators && type === attr.type) {\n    element.on(PARTIAL_VALIDATION_EVENTS, /** @this */ function(ev) {\n      if (!timeout) {\n        var validity = this[VALIDITY_STATE_PROPERTY];\n        var origBadInput = validity.badInput;\n        var origTypeMismatch = validity.typeMismatch;\n        timeout = $browser.defer(function() {\n          timeout = null;\n          if (validity.badInput !== origBadInput || validity.typeMismatch !== origTypeMismatch) {\n            listener(ev);\n          }\n        });\n      }\n    });\n  }\n\n  ctrl.$render = function() {\n    // Workaround for Firefox validation #12102.\n    var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;\n    if (element.val() !== value) {\n      element.val(value);\n    }\n  };\n}\n\nfunction weekParser(isoWeek, existingDate) {\n  if (isDate(isoWeek)) {\n    return isoWeek;\n  }\n\n  if (isString(isoWeek)) {\n    WEEK_REGEXP.lastIndex = 0;\n    var parts = WEEK_REGEXP.exec(isoWeek);\n    if (parts) {\n      var year = +parts[1],\n          week = +parts[2],\n          hours = 0,\n          minutes = 0,\n          seconds = 0,\n          milliseconds = 0,\n          firstThurs = getFirstThursdayOfYear(year),\n          addDays = (week - 1) * 7;\n\n      if (existingDate) {\n        hours = existingDate.getHours();\n        minutes = existingDate.getMinutes();\n        seconds = existingDate.getSeconds();\n        milliseconds = existingDate.getMilliseconds();\n      }\n\n      return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);\n    }\n  }\n\n  return NaN;\n}\n\nfunction createDateParser(regexp, mapping) {\n  return function(iso, date) {\n    var parts, map;\n\n    if (isDate(iso)) {\n      return iso;\n    }\n\n    if (isString(iso)) {\n      // When a date is JSON'ified to wraps itself inside of an extra\n      // set of double quotes. This makes the date parsing code unable\n      // to match the date string and parse it as a date.\n      if (iso.charAt(0) === '\"' && iso.charAt(iso.length - 1) === '\"') {\n        iso = iso.substring(1, iso.length - 1);\n      }\n      if (ISO_DATE_REGEXP.test(iso)) {\n        return new Date(iso);\n      }\n      regexp.lastIndex = 0;\n      parts = regexp.exec(iso);\n\n      if (parts) {\n        parts.shift();\n        if (date) {\n          map = {\n            yyyy: date.getFullYear(),\n            MM: date.getMonth() + 1,\n            dd: date.getDate(),\n            HH: date.getHours(),\n            mm: date.getMinutes(),\n            ss: date.getSeconds(),\n            sss: date.getMilliseconds() / 1000\n          };\n        } else {\n          map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };\n        }\n\n        forEach(parts, function(part, index) {\n          if (index < mapping.length) {\n            map[mapping[index]] = +part;\n          }\n        });\n        return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);\n      }\n    }\n\n    return NaN;\n  };\n}\n\nfunction createDateInputType(type, regexp, parseDate, format) {\n  return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {\n    badInputChecker(scope, element, attr, ctrl);\n    baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n    var timezone = ctrl && ctrl.$options.getOption('timezone');\n    var previousDate;\n\n    ctrl.$$parserName = type;\n    ctrl.$parsers.push(function(value) {\n      if (ctrl.$isEmpty(value)) return null;\n      if (regexp.test(value)) {\n        // Note: We cannot read ctrl.$modelValue, as there might be a different\n        // parser/formatter in the processing chain so that the model\n        // contains some different data format!\n        var parsedDate = parseDate(value, previousDate);\n        if (timezone) {\n          parsedDate = convertTimezoneToLocal(parsedDate, timezone);\n        }\n        return parsedDate;\n      }\n      return undefined;\n    });\n\n    ctrl.$formatters.push(function(value) {\n      if (value && !isDate(value)) {\n        throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);\n      }\n      if (isValidDate(value)) {\n        previousDate = value;\n        if (previousDate && timezone) {\n          previousDate = convertTimezoneToLocal(previousDate, timezone, true);\n        }\n        return $filter('date')(value, format, timezone);\n      } else {\n        previousDate = null;\n        return '';\n      }\n    });\n\n    if (isDefined(attr.min) || attr.ngMin) {\n      var minVal;\n      ctrl.$validators.min = function(value) {\n        return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;\n      };\n      attr.$observe('min', function(val) {\n        minVal = parseObservedDateValue(val);\n        ctrl.$validate();\n      });\n    }\n\n    if (isDefined(attr.max) || attr.ngMax) {\n      var maxVal;\n      ctrl.$validators.max = function(value) {\n        return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;\n      };\n      attr.$observe('max', function(val) {\n        maxVal = parseObservedDateValue(val);\n        ctrl.$validate();\n      });\n    }\n\n    function isValidDate(value) {\n      // Invalid Date: getTime() returns NaN\n      return value && !(value.getTime && value.getTime() !== value.getTime());\n    }\n\n    function parseObservedDateValue(val) {\n      return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;\n    }\n  };\n}\n\nfunction badInputChecker(scope, element, attr, ctrl) {\n  var node = element[0];\n  var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);\n  if (nativeValidation) {\n    ctrl.$parsers.push(function(value) {\n      var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};\n      return validity.badInput || validity.typeMismatch ? undefined : value;\n    });\n  }\n}\n\nfunction numberFormatterParser(ctrl) {\n  ctrl.$$parserName = 'number';\n  ctrl.$parsers.push(function(value) {\n    if (ctrl.$isEmpty(value))      return null;\n    if (NUMBER_REGEXP.test(value)) return parseFloat(value);\n    return undefined;\n  });\n\n  ctrl.$formatters.push(function(value) {\n    if (!ctrl.$isEmpty(value)) {\n      if (!isNumber(value)) {\n        throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);\n      }\n      value = value.toString();\n    }\n    return value;\n  });\n}\n\nfunction parseNumberAttrVal(val) {\n  if (isDefined(val) && !isNumber(val)) {\n    val = parseFloat(val);\n  }\n  return !isNumberNaN(val) ? val : undefined;\n}\n\nfunction isNumberInteger(num) {\n  // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066\n  // (minus the assumption that `num` is a number)\n\n  // eslint-disable-next-line no-bitwise\n  return (num | 0) === num;\n}\n\nfunction countDecimals(num) {\n  var numString = num.toString();\n  var decimalSymbolIndex = numString.indexOf('.');\n\n  if (decimalSymbolIndex === -1) {\n    if (-1 < num && num < 1) {\n      // It may be in the exponential notation format (`1e-X`)\n      var match = /e-(\\d+)$/.exec(numString);\n\n      if (match) {\n        return Number(match[1]);\n      }\n    }\n\n    return 0;\n  }\n\n  return numString.length - decimalSymbolIndex - 1;\n}\n\nfunction isValidForStep(viewValue, stepBase, step) {\n  // At this point `stepBase` and `step` are expected to be non-NaN values\n  // and `viewValue` is expected to be a valid stringified number.\n  var value = Number(viewValue);\n\n  // Due to limitations in Floating Point Arithmetic (e.g. `0.3 - 0.2 !== 0.1` or\n  // `0.5 % 0.1 !== 0`), we need to convert all numbers to integers.\n  if (!isNumberInteger(value) || !isNumberInteger(stepBase) || !isNumberInteger(step)) {\n    var decimalCount = Math.max(countDecimals(value), countDecimals(stepBase), countDecimals(step));\n    var multiplier = Math.pow(10, decimalCount);\n\n    value = value * multiplier;\n    stepBase = stepBase * multiplier;\n    step = step * multiplier;\n  }\n\n  return (value - stepBase) % step === 0;\n}\n\nfunction numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n  badInputChecker(scope, element, attr, ctrl);\n  numberFormatterParser(ctrl);\n  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\n  var minVal;\n  var maxVal;\n\n  if (isDefined(attr.min) || attr.ngMin) {\n    ctrl.$validators.min = function(value) {\n      return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;\n    };\n\n    attr.$observe('min', function(val) {\n      minVal = parseNumberAttrVal(val);\n      // TODO(matsko): implement validateLater to reduce number of validations\n      ctrl.$validate();\n    });\n  }\n\n  if (isDefined(attr.max) || attr.ngMax) {\n    ctrl.$validators.max = function(value) {\n      return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;\n    };\n\n    attr.$observe('max', function(val) {\n      maxVal = parseNumberAttrVal(val);\n      // TODO(matsko): implement validateLater to reduce number of validations\n      ctrl.$validate();\n    });\n  }\n\n  if (isDefined(attr.step) || attr.ngStep) {\n    var stepVal;\n    ctrl.$validators.step = function(modelValue, viewValue) {\n      return ctrl.$isEmpty(viewValue) || isUndefined(stepVal) ||\n             isValidForStep(viewValue, minVal || 0, stepVal);\n    };\n\n    attr.$observe('step', function(val) {\n      stepVal = parseNumberAttrVal(val);\n      // TODO(matsko): implement validateLater to reduce number of validations\n      ctrl.$validate();\n    });\n  }\n}\n\nfunction rangeInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n  badInputChecker(scope, element, attr, ctrl);\n  numberFormatterParser(ctrl);\n  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\n  var supportsRange = ctrl.$$hasNativeValidators && element[0].type === 'range',\n      minVal = supportsRange ? 0 : undefined,\n      maxVal = supportsRange ? 100 : undefined,\n      stepVal = supportsRange ? 1 : undefined,\n      validity = element[0].validity,\n      hasMinAttr = isDefined(attr.min),\n      hasMaxAttr = isDefined(attr.max),\n      hasStepAttr = isDefined(attr.step);\n\n  var originalRender = ctrl.$render;\n\n  ctrl.$render = supportsRange && isDefined(validity.rangeUnderflow) && isDefined(validity.rangeOverflow) ?\n    //Browsers that implement range will set these values automatically, but reading the adjusted values after\n    //$render would cause the min / max validators to be applied with the wrong value\n    function rangeRender() {\n      originalRender();\n      ctrl.$setViewValue(element.val());\n    } :\n    originalRender;\n\n  if (hasMinAttr) {\n    ctrl.$validators.min = supportsRange ?\n      // Since all browsers set the input to a valid value, we don't need to check validity\n      function noopMinValidator() { return true; } :\n      // non-support browsers validate the min val\n      function minValidator(modelValue, viewValue) {\n        return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= minVal;\n      };\n\n    setInitialValueAndObserver('min', minChange);\n  }\n\n  if (hasMaxAttr) {\n    ctrl.$validators.max = supportsRange ?\n      // Since all browsers set the input to a valid value, we don't need to check validity\n      function noopMaxValidator() { return true; } :\n      // non-support browsers validate the max val\n      function maxValidator(modelValue, viewValue) {\n        return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= maxVal;\n      };\n\n    setInitialValueAndObserver('max', maxChange);\n  }\n\n  if (hasStepAttr) {\n    ctrl.$validators.step = supportsRange ?\n      function nativeStepValidator() {\n        // Currently, only FF implements the spec on step change correctly (i.e. adjusting the\n        // input element value to a valid value). It's possible that other browsers set the stepMismatch\n        // validity error instead, so we can at least report an error in that case.\n        return !validity.stepMismatch;\n      } :\n      // ngStep doesn't set the setp attr, so the browser doesn't adjust the input value as setting step would\n      function stepValidator(modelValue, viewValue) {\n        return ctrl.$isEmpty(viewValue) || isUndefined(stepVal) ||\n               isValidForStep(viewValue, minVal || 0, stepVal);\n      };\n\n    setInitialValueAndObserver('step', stepChange);\n  }\n\n  function setInitialValueAndObserver(htmlAttrName, changeFn) {\n    // interpolated attributes set the attribute value only after a digest, but we need the\n    // attribute value when the input is first rendered, so that the browser can adjust the\n    // input value based on the min/max value\n    element.attr(htmlAttrName, attr[htmlAttrName]);\n    attr.$observe(htmlAttrName, changeFn);\n  }\n\n  function minChange(val) {\n    minVal = parseNumberAttrVal(val);\n    // ignore changes before model is initialized\n    if (isNumberNaN(ctrl.$modelValue)) {\n      return;\n    }\n\n    if (supportsRange) {\n      var elVal = element.val();\n      // IE11 doesn't set the el val correctly if the minVal is greater than the element value\n      if (minVal > elVal) {\n        elVal = minVal;\n        element.val(elVal);\n      }\n      ctrl.$setViewValue(elVal);\n    } else {\n      // TODO(matsko): implement validateLater to reduce number of validations\n      ctrl.$validate();\n    }\n  }\n\n  function maxChange(val) {\n    maxVal = parseNumberAttrVal(val);\n    // ignore changes before model is initialized\n    if (isNumberNaN(ctrl.$modelValue)) {\n      return;\n    }\n\n    if (supportsRange) {\n      var elVal = element.val();\n      // IE11 doesn't set the el val correctly if the maxVal is less than the element value\n      if (maxVal < elVal) {\n        element.val(maxVal);\n        // IE11 and Chrome don't set the value to the minVal when max < min\n        elVal = maxVal < minVal ? minVal : maxVal;\n      }\n      ctrl.$setViewValue(elVal);\n    } else {\n      // TODO(matsko): implement validateLater to reduce number of validations\n      ctrl.$validate();\n    }\n  }\n\n  function stepChange(val) {\n    stepVal = parseNumberAttrVal(val);\n    // ignore changes before model is initialized\n    if (isNumberNaN(ctrl.$modelValue)) {\n      return;\n    }\n\n    // Some browsers don't adjust the input value correctly, but set the stepMismatch error\n    if (supportsRange && ctrl.$viewValue !== element.val()) {\n      ctrl.$setViewValue(element.val());\n    } else {\n      // TODO(matsko): implement validateLater to reduce number of validations\n      ctrl.$validate();\n    }\n  }\n}\n\nfunction urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n  // Note: no badInputChecker here by purpose as `url` is only a validation\n  // in browsers, i.e. we can always read out input.value even if it is not valid!\n  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n  stringBasedInputType(ctrl);\n\n  ctrl.$$parserName = 'url';\n  ctrl.$validators.url = function(modelValue, viewValue) {\n    var value = modelValue || viewValue;\n    return ctrl.$isEmpty(value) || URL_REGEXP.test(value);\n  };\n}\n\nfunction emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n  // Note: no badInputChecker here by purpose as `url` is only a validation\n  // in browsers, i.e. we can always read out input.value even if it is not valid!\n  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n  stringBasedInputType(ctrl);\n\n  ctrl.$$parserName = 'email';\n  ctrl.$validators.email = function(modelValue, viewValue) {\n    var value = modelValue || viewValue;\n    return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);\n  };\n}\n\nfunction radioInputType(scope, element, attr, ctrl) {\n  var doTrim = !attr.ngTrim || trim(attr.ngTrim) !== 'false';\n  // make the name unique, if not defined\n  if (isUndefined(attr.name)) {\n    element.attr('name', nextUid());\n  }\n\n  var listener = function(ev) {\n    var value;\n    if (element[0].checked) {\n      value = attr.value;\n      if (doTrim) {\n        value = trim(value);\n      }\n      ctrl.$setViewValue(value, ev && ev.type);\n    }\n  };\n\n  element.on('click', listener);\n\n  ctrl.$render = function() {\n    var value = attr.value;\n    if (doTrim) {\n      value = trim(value);\n    }\n    element[0].checked = (value === ctrl.$viewValue);\n  };\n\n  attr.$observe('value', ctrl.$render);\n}\n\nfunction parseConstantExpr($parse, context, name, expression, fallback) {\n  var parseFn;\n  if (isDefined(expression)) {\n    parseFn = $parse(expression);\n    if (!parseFn.constant) {\n      throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +\n                                   '`{1}`.', name, expression);\n    }\n    return parseFn(context);\n  }\n  return fallback;\n}\n\nfunction checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {\n  var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);\n  var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);\n\n  var listener = function(ev) {\n    ctrl.$setViewValue(element[0].checked, ev && ev.type);\n  };\n\n  element.on('click', listener);\n\n  ctrl.$render = function() {\n    element[0].checked = ctrl.$viewValue;\n  };\n\n  // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`\n  // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert\n  // it to a boolean.\n  ctrl.$isEmpty = function(value) {\n    return value === false;\n  };\n\n  ctrl.$formatters.push(function(value) {\n    return equals(value, trueValue);\n  });\n\n  ctrl.$parsers.push(function(value) {\n    return value ? trueValue : falseValue;\n  });\n}\n\n\n/**\n * @ngdoc directive\n * @name textarea\n * @restrict E\n *\n * @description\n * HTML textarea element control with angular data-binding. The data-binding and validation\n * properties of this element are exactly the same as those of the\n * {@link ng.directive:input input element}.\n *\n * @param {string} ngModel Assignable angular expression to data-bind to.\n * @param {string=} name Property name of the form under which the control is published.\n * @param {string=} required Sets `required` validation error key if the value is not entered.\n * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n *    `required` when you want to data-bind to the `required` attribute.\n * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n *    minlength.\n * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n *    length.\n * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}\n *    does not match a RegExp found by evaluating the Angular expression given in the attribute value.\n *    If the expression evaluates to a RegExp object, then this is used directly.\n *    If the expression evaluates to a string, then it will be converted to a RegExp\n *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n *    `new RegExp('^abc$')`.<br />\n *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n *    start at the index of the last search's match, thus not taking the whole input value into\n *    account.\n * @param {string=} ngChange Angular expression to be executed when input changes due to user\n *    interaction with the input element.\n * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n *\n * @knownIssue\n *\n * When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily\n * insert the placeholder value as the textarea's content. If the placeholder value contains\n * interpolation (`{{ ... }}`), an error will be logged in the console when Angular tries to update\n * the value of the by-then-removed text node. This doesn't affect the functionality of the\n * textarea, but can be undesirable.\n *\n * You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of\n * `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can\n * find more details on `ngAttr` in the\n * [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the\n * Developer Guide.\n */\n\n\n/**\n * @ngdoc directive\n * @name input\n * @restrict E\n *\n * @description\n * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,\n * input state control, and validation.\n * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.\n *\n * <div class=\"alert alert-warning\">\n * **Note:** Not every feature offered is available for all input types.\n * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.\n * </div>\n *\n * @param {string} ngModel Assignable angular expression to data-bind to.\n * @param {string=} name Property name of the form under which the control is published.\n * @param {string=} required Sets `required` validation error key if the value is not entered.\n * @param {boolean=} ngRequired Sets `required` attribute if set to true\n * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n *    minlength.\n * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n *    length.\n * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}\n *    value does not match a RegExp found by evaluating the Angular expression given in the attribute value.\n *    If the expression evaluates to a RegExp object, then this is used directly.\n *    If the expression evaluates to a string, then it will be converted to a RegExp\n *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n *    `new RegExp('^abc$')`.<br />\n *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n *    start at the index of the last search's match, thus not taking the whole input value into\n *    account.\n * @param {string=} ngChange Angular expression to be executed when input changes due to user\n *    interaction with the input element.\n * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n *    This parameter is ignored for input[type=password] controls, which will never trim the\n *    input.\n *\n * @example\n    <example name=\"input-directive\" module=\"inputExample\">\n      <file name=\"index.html\">\n       <script>\n          angular.module('inputExample', [])\n            .controller('ExampleController', ['$scope', function($scope) {\n              $scope.user = {name: 'guest', last: 'visitor'};\n            }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n         <form name=\"myForm\">\n           <label>\n              User name:\n              <input type=\"text\" name=\"userName\" ng-model=\"user.name\" required>\n           </label>\n           <div role=\"alert\">\n             <span class=\"error\" ng-show=\"myForm.userName.$error.required\">\n              Required!</span>\n           </div>\n           <label>\n              Last name:\n              <input type=\"text\" name=\"lastName\" ng-model=\"user.last\"\n              ng-minlength=\"3\" ng-maxlength=\"10\">\n           </label>\n           <div role=\"alert\">\n             <span class=\"error\" ng-show=\"myForm.lastName.$error.minlength\">\n               Too short!</span>\n             <span class=\"error\" ng-show=\"myForm.lastName.$error.maxlength\">\n               Too long!</span>\n           </div>\n         </form>\n         <hr>\n         <tt>user = {{user}}</tt><br/>\n         <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>\n         <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>\n         <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>\n         <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>\n         <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n         <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n         <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>\n         <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>\n       </div>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        var user = element(by.exactBinding('user'));\n        var userNameValid = element(by.binding('myForm.userName.$valid'));\n        var lastNameValid = element(by.binding('myForm.lastName.$valid'));\n        var lastNameError = element(by.binding('myForm.lastName.$error'));\n        var formValid = element(by.binding('myForm.$valid'));\n        var userNameInput = element(by.model('user.name'));\n        var userLastInput = element(by.model('user.last'));\n\n        it('should initialize to model', function() {\n          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"visitor\"}');\n          expect(userNameValid.getText()).toContain('true');\n          expect(formValid.getText()).toContain('true');\n        });\n\n        it('should be invalid if empty when required', function() {\n          userNameInput.clear();\n          userNameInput.sendKeys('');\n\n          expect(user.getText()).toContain('{\"last\":\"visitor\"}');\n          expect(userNameValid.getText()).toContain('false');\n          expect(formValid.getText()).toContain('false');\n        });\n\n        it('should be valid if empty when min length is set', function() {\n          userLastInput.clear();\n          userLastInput.sendKeys('');\n\n          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"\"}');\n          expect(lastNameValid.getText()).toContain('true');\n          expect(formValid.getText()).toContain('true');\n        });\n\n        it('should be invalid if less than required min length', function() {\n          userLastInput.clear();\n          userLastInput.sendKeys('xx');\n\n          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n          expect(lastNameValid.getText()).toContain('false');\n          expect(lastNameError.getText()).toContain('minlength');\n          expect(formValid.getText()).toContain('false');\n        });\n\n        it('should be invalid if longer than max length', function() {\n          userLastInput.clear();\n          userLastInput.sendKeys('some ridiculously long name');\n\n          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n          expect(lastNameValid.getText()).toContain('false');\n          expect(lastNameError.getText()).toContain('maxlength');\n          expect(formValid.getText()).toContain('false');\n        });\n      </file>\n    </example>\n */\nvar inputDirective = ['$browser', '$sniffer', '$filter', '$parse',\n    function($browser, $sniffer, $filter, $parse) {\n  return {\n    restrict: 'E',\n    require: ['?ngModel'],\n    link: {\n      pre: function(scope, element, attr, ctrls) {\n        if (ctrls[0]) {\n          (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,\n                                                              $browser, $filter, $parse);\n        }\n      }\n    }\n  };\n}];\n\n\n\nvar CONSTANT_VALUE_REGEXP = /^(true|false|\\d+)$/;\n/**\n * @ngdoc directive\n * @name ngValue\n *\n * @description\n * Binds the given expression to the value of the element.\n *\n * It is mainly used on {@link input[radio] `input[radio]`} and option elements,\n * so that when the element is selected, the {@link ngModel `ngModel`} of that element (or its\n * {@link select `select`} parent element) is set to the bound value. It is especially useful\n * for dynamically generated lists using {@link ngRepeat `ngRepeat`}, as shown below.\n *\n * It can also be used to achieve one-way binding of a given expression to an input element\n * such as an `input[text]` or a `textarea`, when that element does not use ngModel.\n *\n * @element input\n * @param {string=} ngValue angular expression, whose value will be bound to the `value` attribute\n * and `value` property of the element.\n *\n * @example\n    <example name=\"ngValue-directive\" module=\"valueExample\">\n      <file name=\"index.html\">\n       <script>\n          angular.module('valueExample', [])\n            .controller('ExampleController', ['$scope', function($scope) {\n              $scope.names = ['pizza', 'unicorns', 'robots'];\n              $scope.my = { favorite: 'unicorns' };\n            }]);\n       </script>\n        <form ng-controller=\"ExampleController\">\n          <h2>Which is your favorite?</h2>\n            <label ng-repeat=\"name in names\" for=\"{{name}}\">\n              {{name}}\n              <input type=\"radio\"\n                     ng-model=\"my.favorite\"\n                     ng-value=\"name\"\n                     id=\"{{name}}\"\n                     name=\"favorite\">\n            </label>\n          <div>You chose {{my.favorite}}</div>\n        </form>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        var favorite = element(by.binding('my.favorite'));\n\n        it('should initialize to model', function() {\n          expect(favorite.getText()).toContain('unicorns');\n        });\n        it('should bind the values to the inputs', function() {\n          element.all(by.model('my.favorite')).get(0).click();\n          expect(favorite.getText()).toContain('pizza');\n        });\n      </file>\n    </example>\n */\nvar ngValueDirective = function() {\n  /**\n   *  inputs use the value attribute as their default value if the value property is not set.\n   *  Once the value property has been set (by adding input), it will not react to changes to\n   *  the value attribute anymore. Setting both attribute and property fixes this behavior, and\n   *  makes it possible to use ngValue as a sort of one-way bind.\n   */\n  function updateElementValue(element, attr, value) {\n    element.prop('value', value);\n    attr.$set('value', value);\n  }\n\n  return {\n    restrict: 'A',\n    priority: 100,\n    compile: function(tpl, tplAttr) {\n      if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {\n        return function ngValueConstantLink(scope, elm, attr) {\n          var value = scope.$eval(attr.ngValue);\n          updateElementValue(elm, attr, value);\n        };\n      } else {\n        return function ngValueLink(scope, elm, attr) {\n          scope.$watch(attr.ngValue, function valueWatchAction(value) {\n            updateElementValue(elm, attr, value);\n          });\n        };\n      }\n    }\n  };\n};\n\n/**\n * @ngdoc directive\n * @name ngBind\n * @restrict AC\n *\n * @description\n * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element\n * with the value of a given expression, and to update the text content when the value of that\n * expression changes.\n *\n * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like\n * `{{ expression }}` which is similar but less verbose.\n *\n * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily\n * displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an\n * element attribute, it makes the bindings invisible to the user while the page is loading.\n *\n * An alternative solution to this problem would be using the\n * {@link ng.directive:ngCloak ngCloak} directive.\n *\n *\n * @element ANY\n * @param {expression} ngBind {@link guide/expression Expression} to evaluate.\n *\n * @example\n * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.\n   <example module=\"bindExample\" name=\"ng-bind\">\n     <file name=\"index.html\">\n       <script>\n         angular.module('bindExample', [])\n           .controller('ExampleController', ['$scope', function($scope) {\n             $scope.name = 'Whirled';\n           }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n         <label>Enter name: <input type=\"text\" ng-model=\"name\"></label><br>\n         Hello <span ng-bind=\"name\"></span>!\n       </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-bind', function() {\n         var nameInput = element(by.model('name'));\n\n         expect(element(by.binding('name')).getText()).toBe('Whirled');\n         nameInput.clear();\n         nameInput.sendKeys('world');\n         expect(element(by.binding('name')).getText()).toBe('world');\n       });\n     </file>\n   </example>\n */\nvar ngBindDirective = ['$compile', function($compile) {\n  return {\n    restrict: 'AC',\n    compile: function ngBindCompile(templateElement) {\n      $compile.$$addBindingClass(templateElement);\n      return function ngBindLink(scope, element, attr) {\n        $compile.$$addBindingInfo(element, attr.ngBind);\n        element = element[0];\n        scope.$watch(attr.ngBind, function ngBindWatchAction(value) {\n          element.textContent = stringify(value);\n        });\n      };\n    }\n  };\n}];\n\n\n/**\n * @ngdoc directive\n * @name ngBindTemplate\n *\n * @description\n * The `ngBindTemplate` directive specifies that the element\n * text content should be replaced with the interpolation of the template\n * in the `ngBindTemplate` attribute.\n * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`\n * expressions. This directive is needed since some HTML elements\n * (such as TITLE and OPTION) cannot contain SPAN elements.\n *\n * @element ANY\n * @param {string} ngBindTemplate template of form\n *   <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.\n *\n * @example\n * Try it here: enter text in text box and watch the greeting change.\n   <example module=\"bindExample\" name=\"ng-bind-template\">\n     <file name=\"index.html\">\n       <script>\n         angular.module('bindExample', [])\n           .controller('ExampleController', ['$scope', function($scope) {\n             $scope.salutation = 'Hello';\n             $scope.name = 'World';\n           }]);\n       </script>\n       <div ng-controller=\"ExampleController\">\n        <label>Salutation: <input type=\"text\" ng-model=\"salutation\"></label><br>\n        <label>Name: <input type=\"text\" ng-model=\"name\"></label><br>\n        <pre ng-bind-template=\"{{salutation}} {{name}}!\"></pre>\n       </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-bind', function() {\n         var salutationElem = element(by.binding('salutation'));\n         var salutationInput = element(by.model('salutation'));\n         var nameInput = element(by.model('name'));\n\n         expect(salutationElem.getText()).toBe('Hello World!');\n\n         salutationInput.clear();\n         salutationInput.sendKeys('Greetings');\n         nameInput.clear();\n         nameInput.sendKeys('user');\n\n         expect(salutationElem.getText()).toBe('Greetings user!');\n       });\n     </file>\n   </example>\n */\nvar ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate, $compile) {\n  return {\n    compile: function ngBindTemplateCompile(templateElement) {\n      $compile.$$addBindingClass(templateElement);\n      return function ngBindTemplateLink(scope, element, attr) {\n        var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));\n        $compile.$$addBindingInfo(element, interpolateFn.expressions);\n        element = element[0];\n        attr.$observe('ngBindTemplate', function(value) {\n          element.textContent = isUndefined(value) ? '' : value;\n        });\n      };\n    }\n  };\n}];\n\n\n/**\n * @ngdoc directive\n * @name ngBindHtml\n *\n * @description\n * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,\n * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.\n * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link\n * ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}\n * in your module's dependencies, you need to include \"angular-sanitize.js\" in your application.\n *\n * You may also bypass sanitization for values you know are safe. To do so, bind to\n * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}.  See the example\n * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.\n *\n * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you\n * will have an exception (instead of an exploit.)\n *\n * @element ANY\n * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.\n *\n * @example\n\n   <example module=\"bindHtmlExample\" deps=\"angular-sanitize.js\" name=\"ng-bind-html\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n        <p ng-bind-html=\"myHTML\"></p>\n       </div>\n     </file>\n\n     <file name=\"script.js\">\n       angular.module('bindHtmlExample', ['ngSanitize'])\n         .controller('ExampleController', ['$scope', function($scope) {\n           $scope.myHTML =\n              'I am an <code>HTML</code>string with ' +\n              '<a href=\"#\">links!</a> and other <em>stuff</em>';\n         }]);\n     </file>\n\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-bind-html', function() {\n         expect(element(by.binding('myHTML')).getText()).toBe(\n             'I am an HTMLstring with links! and other stuff');\n       });\n     </file>\n   </example>\n */\nvar ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse, $compile) {\n  return {\n    restrict: 'A',\n    compile: function ngBindHtmlCompile(tElement, tAttrs) {\n      var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);\n      var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function sceValueOf(val) {\n        // Unwrap the value to compare the actual inner safe value, not the wrapper object.\n        return $sce.valueOf(val);\n      });\n      $compile.$$addBindingClass(tElement);\n\n      return function ngBindHtmlLink(scope, element, attr) {\n        $compile.$$addBindingInfo(element, attr.ngBindHtml);\n\n        scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {\n          // The watched value is the unwrapped value. To avoid re-escaping, use the direct getter.\n          var value = ngBindHtmlGetter(scope);\n          element.html($sce.getTrustedHtml(value) || '');\n        });\n      };\n    }\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name ngChange\n *\n * @description\n * Evaluate the given expression when the user changes the input.\n * The expression is evaluated immediately, unlike the JavaScript onchange event\n * which only triggers at the end of a change (usually, when the user leaves the\n * form element or presses the return key).\n *\n * The `ngChange` expression is only evaluated when a change in the input value causes\n * a new value to be committed to the model.\n *\n * It will not be evaluated:\n * * if the value returned from the `$parsers` transformation pipeline has not changed\n * * if the input has continued to be invalid since the model will stay `null`\n * * if the model is changed programmatically and not by a change to the input value\n *\n *\n * Note, this directive requires `ngModel` to be present.\n *\n * @element input\n * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change\n * in input value.\n *\n * @example\n * <example name=\"ngChange-directive\" module=\"changeExample\">\n *   <file name=\"index.html\">\n *     <script>\n *       angular.module('changeExample', [])\n *         .controller('ExampleController', ['$scope', function($scope) {\n *           $scope.counter = 0;\n *           $scope.change = function() {\n *             $scope.counter++;\n *           };\n *         }]);\n *     </script>\n *     <div ng-controller=\"ExampleController\">\n *       <input type=\"checkbox\" ng-model=\"confirmed\" ng-change=\"change()\" id=\"ng-change-example1\" />\n *       <input type=\"checkbox\" ng-model=\"confirmed\" id=\"ng-change-example2\" />\n *       <label for=\"ng-change-example2\">Confirmed</label><br />\n *       <tt>debug = {{confirmed}}</tt><br/>\n *       <tt>counter = {{counter}}</tt><br/>\n *     </div>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *     var counter = element(by.binding('counter'));\n *     var debug = element(by.binding('confirmed'));\n *\n *     it('should evaluate the expression if changing from view', function() {\n *       expect(counter.getText()).toContain('0');\n *\n *       element(by.id('ng-change-example1')).click();\n *\n *       expect(counter.getText()).toContain('1');\n *       expect(debug.getText()).toContain('true');\n *     });\n *\n *     it('should not evaluate the expression if changing from model', function() {\n *       element(by.id('ng-change-example2')).click();\n\n *       expect(counter.getText()).toContain('0');\n *       expect(debug.getText()).toContain('true');\n *     });\n *   </file>\n * </example>\n */\nvar ngChangeDirective = valueFn({\n  restrict: 'A',\n  require: 'ngModel',\n  link: function(scope, element, attr, ctrl) {\n    ctrl.$viewChangeListeners.push(function() {\n      scope.$eval(attr.ngChange);\n    });\n  }\n});\n\n/* exported\n  ngClassDirective,\n  ngClassEvenDirective,\n  ngClassOddDirective\n*/\n\nfunction classDirective(name, selector) {\n  name = 'ngClass' + name;\n  var indexWatchExpression;\n\n  return ['$parse', function($parse) {\n    return {\n      restrict: 'AC',\n      link: function(scope, element, attr) {\n        var expression = attr[name].trim();\n        var isOneTime = (expression.charAt(0) === ':') && (expression.charAt(1) === ':');\n\n        var watchInterceptor = isOneTime ? toFlatValue : toClassString;\n        var watchExpression = $parse(expression, watchInterceptor);\n        var watchAction = isOneTime ? ngClassOneTimeWatchAction : ngClassWatchAction;\n\n        var classCounts = element.data('$classCounts');\n        var oldModulo = true;\n        var oldClassString;\n\n        if (!classCounts) {\n          // Use createMap() to prevent class assumptions involving property\n          // names in Object.prototype\n          classCounts = createMap();\n          element.data('$classCounts', classCounts);\n        }\n\n        if (name !== 'ngClass') {\n          if (!indexWatchExpression) {\n            indexWatchExpression = $parse('$index', function moduloTwo($index) {\n              // eslint-disable-next-line no-bitwise\n              return $index & 1;\n            });\n          }\n\n          scope.$watch(indexWatchExpression, ngClassIndexWatchAction);\n        }\n\n        scope.$watch(watchExpression, watchAction, isOneTime);\n\n        function addClasses(classString) {\n          classString = digestClassCounts(split(classString), 1);\n          attr.$addClass(classString);\n        }\n\n        function removeClasses(classString) {\n          classString = digestClassCounts(split(classString), -1);\n          attr.$removeClass(classString);\n        }\n\n        function updateClasses(oldClassString, newClassString) {\n          var oldClassArray = split(oldClassString);\n          var newClassArray = split(newClassString);\n\n          var toRemoveArray = arrayDifference(oldClassArray, newClassArray);\n          var toAddArray = arrayDifference(newClassArray, oldClassArray);\n\n          var toRemoveString = digestClassCounts(toRemoveArray, -1);\n          var toAddString = digestClassCounts(toAddArray, 1);\n\n          attr.$addClass(toAddString);\n          attr.$removeClass(toRemoveString);\n        }\n\n        function digestClassCounts(classArray, count) {\n          var classesToUpdate = [];\n\n          forEach(classArray, function(className) {\n            if (count > 0 || classCounts[className]) {\n              classCounts[className] = (classCounts[className] || 0) + count;\n              if (classCounts[className] === +(count > 0)) {\n                classesToUpdate.push(className);\n              }\n            }\n          });\n\n          return classesToUpdate.join(' ');\n        }\n\n        function ngClassIndexWatchAction(newModulo) {\n          // This watch-action should run before the `ngClass[OneTime]WatchAction()`, thus it\n          // adds/removes `oldClassString`. If the `ngClass` expression has changed as well, the\n          // `ngClass[OneTime]WatchAction()` will update the classes.\n          if (newModulo === selector) {\n            addClasses(oldClassString);\n          } else {\n            removeClasses(oldClassString);\n          }\n\n          oldModulo = newModulo;\n        }\n\n        function ngClassOneTimeWatchAction(newClassValue) {\n          var newClassString = toClassString(newClassValue);\n\n          if (newClassString !== oldClassString) {\n            ngClassWatchAction(newClassString);\n          }\n        }\n\n        function ngClassWatchAction(newClassString) {\n          if (oldModulo === selector) {\n            updateClasses(oldClassString, newClassString);\n          }\n\n          oldClassString = newClassString;\n        }\n      }\n    };\n  }];\n\n  // Helpers\n  function arrayDifference(tokens1, tokens2) {\n    if (!tokens1 || !tokens1.length) return [];\n    if (!tokens2 || !tokens2.length) return tokens1;\n\n    var values = [];\n\n    outer:\n    for (var i = 0; i < tokens1.length; i++) {\n      var token = tokens1[i];\n      for (var j = 0; j < tokens2.length; j++) {\n        if (token === tokens2[j]) continue outer;\n      }\n      values.push(token);\n    }\n\n    return values;\n  }\n\n  function split(classString) {\n    return classString && classString.split(' ');\n  }\n\n  function toClassString(classValue) {\n    var classString = classValue;\n\n    if (isArray(classValue)) {\n      classString = classValue.map(toClassString).join(' ');\n    } else if (isObject(classValue)) {\n      classString = Object.keys(classValue).\n        filter(function(key) { return classValue[key]; }).\n        join(' ');\n    }\n\n    return classString;\n  }\n\n  function toFlatValue(classValue) {\n    var flatValue = classValue;\n\n    if (isArray(classValue)) {\n      flatValue = classValue.map(toFlatValue);\n    } else if (isObject(classValue)) {\n      var hasUndefined = false;\n\n      flatValue = Object.keys(classValue).filter(function(key) {\n        var value = classValue[key];\n\n        if (!hasUndefined && isUndefined(value)) {\n          hasUndefined = true;\n        }\n\n        return value;\n      });\n\n      if (hasUndefined) {\n        // Prevent the `oneTimeLiteralWatchInterceptor` from unregistering\n        // the watcher, by including at least one `undefined` value.\n        flatValue.push(undefined);\n      }\n    }\n\n    return flatValue;\n  }\n}\n\n/**\n * @ngdoc directive\n * @name ngClass\n * @restrict AC\n *\n * @description\n * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding\n * an expression that represents all classes to be added.\n *\n * The directive operates in three different ways, depending on which of three types the expression\n * evaluates to:\n *\n * 1. If the expression evaluates to a string, the string should be one or more space-delimited class\n * names.\n *\n * 2. If the expression evaluates to an object, then for each key-value pair of the\n * object with a truthy value the corresponding key is used as a class name.\n *\n * 3. If the expression evaluates to an array, each element of the array should either be a string as in\n * type 1 or an object as in type 2. This means that you can mix strings and objects together in an array\n * to give you more control over what CSS classes appear. See the code below for an example of this.\n *\n *\n * The directive won't add duplicate classes if a particular class was already set.\n *\n * When the expression changes, the previously added classes are removed and only then are the\n * new classes added.\n *\n * @knownIssue\n * You should not use {@link guide/interpolation interpolation} in the value of the `class`\n * attribute, when using the `ngClass` directive on the same element.\n * See {@link guide/interpolation#known-issues here} for more info.\n *\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link ng.$animate#addClass addClass}       | just before the class is applied to the element   |\n * | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |\n *\n * @element ANY\n * @param {expression} ngClass {@link guide/expression Expression} to eval. The result\n *   of the evaluation can be a string representing space delimited class\n *   names, an array, or a map of class names to boolean values. In the case of a map, the\n *   names of the properties whose values are truthy will be added as css classes to the\n *   element.\n *\n * @example Example that demonstrates basic bindings via ngClass directive.\n   <example name=\"ng-class\">\n     <file name=\"index.html\">\n       <p ng-class=\"{strike: deleted, bold: important, 'has-error': error}\">Map Syntax Example</p>\n       <label>\n          <input type=\"checkbox\" ng-model=\"deleted\">\n          deleted (apply \"strike\" class)\n       </label><br>\n       <label>\n          <input type=\"checkbox\" ng-model=\"important\">\n          important (apply \"bold\" class)\n       </label><br>\n       <label>\n          <input type=\"checkbox\" ng-model=\"error\">\n          error (apply \"has-error\" class)\n       </label>\n       <hr>\n       <p ng-class=\"style\">Using String Syntax</p>\n       <input type=\"text\" ng-model=\"style\"\n              placeholder=\"Type: bold strike red\" aria-label=\"Type: bold strike red\">\n       <hr>\n       <p ng-class=\"[style1, style2, style3]\">Using Array Syntax</p>\n       <input ng-model=\"style1\"\n              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red\"><br>\n       <input ng-model=\"style2\"\n              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red 2\"><br>\n       <input ng-model=\"style3\"\n              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red 3\"><br>\n       <hr>\n       <p ng-class=\"[style4, {orange: warning}]\">Using Array and Map Syntax</p>\n       <input ng-model=\"style4\" placeholder=\"Type: bold, strike\" aria-label=\"Type: bold, strike\"><br>\n       <label><input type=\"checkbox\" ng-model=\"warning\"> warning (apply \"orange\" class)</label>\n     </file>\n     <file name=\"style.css\">\n       .strike {\n           text-decoration: line-through;\n       }\n       .bold {\n           font-weight: bold;\n       }\n       .red {\n           color: red;\n       }\n       .has-error {\n           color: red;\n           background-color: yellow;\n       }\n       .orange {\n           color: orange;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       var ps = element.all(by.css('p'));\n\n       it('should let you toggle the class', function() {\n\n         expect(ps.first().getAttribute('class')).not.toMatch(/bold/);\n         expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);\n\n         element(by.model('important')).click();\n         expect(ps.first().getAttribute('class')).toMatch(/bold/);\n\n         element(by.model('error')).click();\n         expect(ps.first().getAttribute('class')).toMatch(/has-error/);\n       });\n\n       it('should let you toggle string example', function() {\n         expect(ps.get(1).getAttribute('class')).toBe('');\n         element(by.model('style')).clear();\n         element(by.model('style')).sendKeys('red');\n         expect(ps.get(1).getAttribute('class')).toBe('red');\n       });\n\n       it('array example should have 3 classes', function() {\n         expect(ps.get(2).getAttribute('class')).toBe('');\n         element(by.model('style1')).sendKeys('bold');\n         element(by.model('style2')).sendKeys('strike');\n         element(by.model('style3')).sendKeys('red');\n         expect(ps.get(2).getAttribute('class')).toBe('bold strike red');\n       });\n\n       it('array with map example should have 2 classes', function() {\n         expect(ps.last().getAttribute('class')).toBe('');\n         element(by.model('style4')).sendKeys('bold');\n         element(by.model('warning')).click();\n         expect(ps.last().getAttribute('class')).toBe('bold orange');\n       });\n     </file>\n   </example>\n\n   ## Animations\n\n   The example below demonstrates how to perform animations using ngClass.\n\n   <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-class\">\n     <file name=\"index.html\">\n      <input id=\"setbtn\" type=\"button\" value=\"set\" ng-click=\"myVar='my-class'\">\n      <input id=\"clearbtn\" type=\"button\" value=\"clear\" ng-click=\"myVar=''\">\n      <br>\n      <span class=\"base-class\" ng-class=\"myVar\">Sample Text</span>\n     </file>\n     <file name=\"style.css\">\n       .base-class {\n         transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n       }\n\n       .base-class.my-class {\n         color: red;\n         font-size:3em;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-class', function() {\n         expect(element(by.css('.base-class')).getAttribute('class')).not.\n           toMatch(/my-class/);\n\n         element(by.id('setbtn')).click();\n\n         expect(element(by.css('.base-class')).getAttribute('class')).\n           toMatch(/my-class/);\n\n         element(by.id('clearbtn')).click();\n\n         expect(element(by.css('.base-class')).getAttribute('class')).not.\n           toMatch(/my-class/);\n       });\n     </file>\n   </example>\n\n\n   ## ngClass and pre-existing CSS3 Transitions/Animations\n   The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.\n   Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder\n   any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure\n   to view the step by step details of {@link $animate#addClass $animate.addClass} and\n   {@link $animate#removeClass $animate.removeClass}.\n */\nvar ngClassDirective = classDirective('', true);\n\n/**\n * @ngdoc directive\n * @name ngClassOdd\n * @restrict AC\n *\n * @description\n * The `ngClassOdd` and `ngClassEven` directives work exactly as\n * {@link ng.directive:ngClass ngClass}, except they work in\n * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n *\n * This directive can be applied only within the scope of an\n * {@link ng.directive:ngRepeat ngRepeat}.\n *\n * @element ANY\n * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result\n *   of the evaluation can be a string representing space delimited class names or an array.\n *\n * @example\n   <example name=\"ng-class-odd\">\n     <file name=\"index.html\">\n        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n          <li ng-repeat=\"name in names\">\n           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n             {{name}}\n           </span>\n          </li>\n        </ol>\n     </file>\n     <file name=\"style.css\">\n       .odd {\n         color: red;\n       }\n       .even {\n         color: blue;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-class-odd and ng-class-even', function() {\n         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n           toMatch(/odd/);\n         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n           toMatch(/even/);\n       });\n     </file>\n   </example>\n */\nvar ngClassOddDirective = classDirective('Odd', 0);\n\n/**\n * @ngdoc directive\n * @name ngClassEven\n * @restrict AC\n *\n * @description\n * The `ngClassOdd` and `ngClassEven` directives work exactly as\n * {@link ng.directive:ngClass ngClass}, except they work in\n * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n *\n * This directive can be applied only within the scope of an\n * {@link ng.directive:ngRepeat ngRepeat}.\n *\n * @element ANY\n * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The\n *   result of the evaluation can be a string representing space delimited class names or an array.\n *\n * @example\n   <example name=\"ng-class-even\">\n     <file name=\"index.html\">\n        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n          <li ng-repeat=\"name in names\">\n           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n             {{name}} &nbsp; &nbsp; &nbsp;\n           </span>\n          </li>\n        </ol>\n     </file>\n     <file name=\"style.css\">\n       .odd {\n         color: red;\n       }\n       .even {\n         color: blue;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-class-odd and ng-class-even', function() {\n         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n           toMatch(/odd/);\n         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n           toMatch(/even/);\n       });\n     </file>\n   </example>\n */\nvar ngClassEvenDirective = classDirective('Even', 1);\n\n/**\n * @ngdoc directive\n * @name ngCloak\n * @restrict AC\n *\n * @description\n * The `ngCloak` directive is used to prevent the Angular html template from being briefly\n * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this\n * directive to avoid the undesirable flicker effect caused by the html template display.\n *\n * The directive can be applied to the `<body>` element, but the preferred usage is to apply\n * multiple `ngCloak` directives to small portions of the page to permit progressive rendering\n * of the browser view.\n *\n * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and\n * `angular.min.js`.\n * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n *\n * ```css\n * [ng\\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {\n *   display: none !important;\n * }\n * ```\n *\n * When this css rule is loaded by the browser, all html elements (including their children) that\n * are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive\n * during the compilation of the template it deletes the `ngCloak` element attribute, making\n * the compiled element visible.\n *\n * For the best result, the `angular.js` script must be loaded in the head section of the html\n * document; alternatively, the css rule above must be included in the external stylesheet of the\n * application.\n *\n * @element ANY\n *\n * @example\n   <example name=\"ng-cloak\">\n     <file name=\"index.html\">\n        <div id=\"template1\" ng-cloak>{{ 'hello' }}</div>\n        <div id=\"template2\" class=\"ng-cloak\">{{ 'world' }}</div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should remove the template directive and css class', function() {\n         expect($('#template1').getAttribute('ng-cloak')).\n           toBeNull();\n         expect($('#template2').getAttribute('ng-cloak')).\n           toBeNull();\n       });\n     </file>\n   </example>\n *\n */\nvar ngCloakDirective = ngDirective({\n  compile: function(element, attr) {\n    attr.$set('ngCloak', undefined);\n    element.removeClass('ng-cloak');\n  }\n});\n\n/**\n * @ngdoc directive\n * @name ngController\n *\n * @description\n * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular\n * supports the principles behind the Model-View-Controller design pattern.\n *\n * MVC components in angular:\n *\n * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties\n *   are accessed through bindings.\n * * View — The template (HTML with data bindings) that is rendered into the View.\n * * Controller — The `ngController` directive specifies a Controller class; the class contains business\n *   logic behind the application to decorate the scope with functions and values\n *\n * Note that you can also attach controllers to the DOM by declaring it in a route definition\n * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller\n * again using `ng-controller` in the template itself.  This will cause the controller to be attached\n * and executed twice.\n *\n * @element ANY\n * @scope\n * @priority 500\n * @param {expression} ngController Name of a constructor function registered with the current\n * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}\n * that on the current scope evaluates to a constructor function.\n *\n * The controller instance can be published into a scope property by specifying\n * `ng-controller=\"as propertyName\"`.\n *\n * If the current `$controllerProvider` is configured to use globals (via\n * {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may\n * also be the name of a globally accessible constructor function (deprecated, not recommended).\n *\n * @example\n * Here is a simple form for editing user contact information. Adding, removing, clearing, and\n * greeting are methods declared on the controller (see source tab). These methods can\n * easily be called from the angular markup. Any changes to the data are automatically reflected\n * in the View without the need for a manual update.\n *\n * Two different declaration styles are included below:\n *\n * * one binds methods and properties directly onto the controller using `this`:\n * `ng-controller=\"SettingsController1 as settings\"`\n * * one injects `$scope` into the controller:\n * `ng-controller=\"SettingsController2\"`\n *\n * The second option is more common in the Angular community, and is generally used in boilerplates\n * and in this guide. However, there are advantages to binding properties directly to the controller\n * and avoiding scope.\n *\n * * Using `controller as` makes it obvious which controller you are accessing in the template when\n * multiple controllers apply to an element.\n * * If you are writing your controllers as classes you have easier access to the properties and\n * methods, which will appear on the scope, from inside the controller code.\n * * Since there is always a `.` in the bindings, you don't have to worry about prototypal\n * inheritance masking primitives.\n *\n * This example demonstrates the `controller as` syntax.\n *\n * <example name=\"ngControllerAs\" module=\"controllerAsExample\">\n *   <file name=\"index.html\">\n *    <div id=\"ctrl-as-exmpl\" ng-controller=\"SettingsController1 as settings\">\n *      <label>Name: <input type=\"text\" ng-model=\"settings.name\"/></label>\n *      <button ng-click=\"settings.greet()\">greet</button><br/>\n *      Contact:\n *      <ul>\n *        <li ng-repeat=\"contact in settings.contacts\">\n *          <select ng-model=\"contact.type\" aria-label=\"Contact method\" id=\"select_{{$index}}\">\n *             <option>phone</option>\n *             <option>email</option>\n *          </select>\n *          <input type=\"text\" ng-model=\"contact.value\" aria-labelledby=\"select_{{$index}}\" />\n *          <button ng-click=\"settings.clearContact(contact)\">clear</button>\n *          <button ng-click=\"settings.removeContact(contact)\" aria-label=\"Remove\">X</button>\n *        </li>\n *        <li><button ng-click=\"settings.addContact()\">add</button></li>\n *     </ul>\n *    </div>\n *   </file>\n *   <file name=\"app.js\">\n *    angular.module('controllerAsExample', [])\n *      .controller('SettingsController1', SettingsController1);\n *\n *    function SettingsController1() {\n *      this.name = 'John Smith';\n *      this.contacts = [\n *        {type: 'phone', value: '408 555 1212'},\n *        {type: 'email', value: 'john.smith@example.org'}\n *      ];\n *    }\n *\n *    SettingsController1.prototype.greet = function() {\n *      alert(this.name);\n *    };\n *\n *    SettingsController1.prototype.addContact = function() {\n *      this.contacts.push({type: 'email', value: 'yourname@example.org'});\n *    };\n *\n *    SettingsController1.prototype.removeContact = function(contactToRemove) {\n *     var index = this.contacts.indexOf(contactToRemove);\n *      this.contacts.splice(index, 1);\n *    };\n *\n *    SettingsController1.prototype.clearContact = function(contact) {\n *      contact.type = 'phone';\n *      contact.value = '';\n *    };\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *     it('should check controller as', function() {\n *       var container = element(by.id('ctrl-as-exmpl'));\n *         expect(container.element(by.model('settings.name'))\n *           .getAttribute('value')).toBe('John Smith');\n *\n *       var firstRepeat =\n *           container.element(by.repeater('contact in settings.contacts').row(0));\n *       var secondRepeat =\n *           container.element(by.repeater('contact in settings.contacts').row(1));\n *\n *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n *           .toBe('408 555 1212');\n *\n *       expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n *           .toBe('john.smith@example.org');\n *\n *       firstRepeat.element(by.buttonText('clear')).click();\n *\n *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n *           .toBe('');\n *\n *       container.element(by.buttonText('add')).click();\n *\n *       expect(container.element(by.repeater('contact in settings.contacts').row(2))\n *           .element(by.model('contact.value'))\n *           .getAttribute('value'))\n *           .toBe('yourname@example.org');\n *     });\n *   </file>\n * </example>\n *\n * This example demonstrates the \"attach to `$scope`\" style of controller.\n *\n * <example name=\"ngController\" module=\"controllerExample\">\n *  <file name=\"index.html\">\n *   <div id=\"ctrl-exmpl\" ng-controller=\"SettingsController2\">\n *     <label>Name: <input type=\"text\" ng-model=\"name\"/></label>\n *     <button ng-click=\"greet()\">greet</button><br/>\n *     Contact:\n *     <ul>\n *       <li ng-repeat=\"contact in contacts\">\n *         <select ng-model=\"contact.type\" id=\"select_{{$index}}\">\n *            <option>phone</option>\n *            <option>email</option>\n *         </select>\n *         <input type=\"text\" ng-model=\"contact.value\" aria-labelledby=\"select_{{$index}}\" />\n *         <button ng-click=\"clearContact(contact)\">clear</button>\n *         <button ng-click=\"removeContact(contact)\">X</button>\n *       </li>\n *       <li>[ <button ng-click=\"addContact()\">add</button> ]</li>\n *    </ul>\n *   </div>\n *  </file>\n *  <file name=\"app.js\">\n *   angular.module('controllerExample', [])\n *     .controller('SettingsController2', ['$scope', SettingsController2]);\n *\n *   function SettingsController2($scope) {\n *     $scope.name = 'John Smith';\n *     $scope.contacts = [\n *       {type:'phone', value:'408 555 1212'},\n *       {type:'email', value:'john.smith@example.org'}\n *     ];\n *\n *     $scope.greet = function() {\n *       alert($scope.name);\n *     };\n *\n *     $scope.addContact = function() {\n *       $scope.contacts.push({type:'email', value:'yourname@example.org'});\n *     };\n *\n *     $scope.removeContact = function(contactToRemove) {\n *       var index = $scope.contacts.indexOf(contactToRemove);\n *       $scope.contacts.splice(index, 1);\n *     };\n *\n *     $scope.clearContact = function(contact) {\n *       contact.type = 'phone';\n *       contact.value = '';\n *     };\n *   }\n *  </file>\n *  <file name=\"protractor.js\" type=\"protractor\">\n *    it('should check controller', function() {\n *      var container = element(by.id('ctrl-exmpl'));\n *\n *      expect(container.element(by.model('name'))\n *          .getAttribute('value')).toBe('John Smith');\n *\n *      var firstRepeat =\n *          container.element(by.repeater('contact in contacts').row(0));\n *      var secondRepeat =\n *          container.element(by.repeater('contact in contacts').row(1));\n *\n *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n *          .toBe('408 555 1212');\n *      expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n *          .toBe('john.smith@example.org');\n *\n *      firstRepeat.element(by.buttonText('clear')).click();\n *\n *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n *          .toBe('');\n *\n *      container.element(by.buttonText('add')).click();\n *\n *      expect(container.element(by.repeater('contact in contacts').row(2))\n *          .element(by.model('contact.value'))\n *          .getAttribute('value'))\n *          .toBe('yourname@example.org');\n *    });\n *  </file>\n *</example>\n\n */\nvar ngControllerDirective = [function() {\n  return {\n    restrict: 'A',\n    scope: true,\n    controller: '@',\n    priority: 500\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name ngCsp\n *\n * @restrict A\n * @element ANY\n * @description\n *\n * Angular has some features that can conflict with certain restrictions that are applied when using\n * [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.\n *\n * If you intend to implement CSP with these rules then you must tell Angular not to use these\n * features.\n *\n * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.\n *\n *\n * The following default rules in CSP affect Angular:\n *\n * * The use of `eval()`, `Function(string)` and similar functions to dynamically create and execute\n * code from strings is forbidden. Angular makes use of this in the {@link $parse} service to\n * provide a 30% increase in the speed of evaluating Angular expressions. (This CSP rule can be\n * disabled with the CSP keyword `unsafe-eval`, but it is generally not recommended as it would\n * weaken the protections offered by CSP.)\n *\n * * The use of inline resources, such as inline `<script>` and `<style>` elements, are forbidden.\n * This prevents apps from injecting custom styles directly into the document. Angular makes use of\n * this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}). To make these\n * directives work when a CSP rule is blocking inline styles, you must link to the `angular-csp.css`\n * in your HTML manually. (This CSP rule can be disabled with the CSP keyword `unsafe-inline`, but\n * it is generally not recommended as it would weaken the protections offered by CSP.)\n *\n * If you do not provide `ngCsp` then Angular tries to autodetect if CSP is blocking dynamic code\n * creation from strings (e.g., `unsafe-eval` not specified in CSP header) and automatically\n * deactivates this feature in the {@link $parse} service. This autodetection, however, triggers a\n * CSP error to be logged in the console:\n *\n * ```\n * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of\n * script in the following Content Security Policy directive: \"default-src 'self'\". Note that\n * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.\n * ```\n *\n * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`\n * directive on an element of the HTML document that appears before the `<script>` tag that loads\n * the `angular.js` file.\n *\n * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*\n *\n * You can specify which of the CSP related Angular features should be deactivated by providing\n * a value for the `ng-csp` attribute. The options are as follows:\n *\n * * no-inline-style: this stops Angular from injecting CSS styles into the DOM\n *\n * * no-unsafe-eval: this stops Angular from optimizing $parse with unsafe eval of strings\n *\n * You can use these values in the following combinations:\n *\n *\n * * No declaration means that Angular will assume that you can do inline styles, but it will do\n * a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous\n * versions of Angular.\n *\n * * A simple `ng-csp` (or `data-ng-csp`) attribute will tell Angular to deactivate both inline\n * styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous\n * versions of Angular.\n *\n * * Specifying only `no-unsafe-eval` tells Angular that we must not use eval, but that we can\n * inject inline styles. E.g. `<body ng-csp=\"no-unsafe-eval\">`.\n *\n * * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can\n * run eval - no automatic check for unsafe eval will occur. E.g. `<body ng-csp=\"no-inline-style\">`\n *\n * * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject\n * styles nor use eval, which is the same as an empty: ng-csp.\n * E.g.`<body ng-csp=\"no-inline-style;no-unsafe-eval\">`\n *\n * @example\n * This example shows how to apply the `ngCsp` directive to the `html` tag.\n   ```html\n     <!doctype html>\n     <html ng-app ng-csp>\n     ...\n     ...\n     </html>\n   ```\n  * @example\n      <!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! -->\n      <example name=\"example.csp\" module=\"cspExample\" ng-csp=\"true\">\n        <file name=\"index.html\">\n          <div ng-controller=\"MainController as ctrl\">\n            <div>\n              <button ng-click=\"ctrl.inc()\" id=\"inc\">Increment</button>\n              <span id=\"counter\">\n                {{ctrl.counter}}\n              </span>\n            </div>\n\n            <div>\n              <button ng-click=\"ctrl.evil()\" id=\"evil\">Evil</button>\n              <span id=\"evilError\">\n                {{ctrl.evilError}}\n              </span>\n            </div>\n          </div>\n        </file>\n        <file name=\"script.js\">\n           angular.module('cspExample', [])\n             .controller('MainController', function MainController() {\n                this.counter = 0;\n                this.inc = function() {\n                  this.counter++;\n                };\n                this.evil = function() {\n                  try {\n                    eval('1+2'); // eslint-disable-line no-eval\n                  } catch (e) {\n                    this.evilError = e.message;\n                  }\n                };\n              });\n        </file>\n        <file name=\"protractor.js\" type=\"protractor\">\n          var util, webdriver;\n\n          var incBtn = element(by.id('inc'));\n          var counter = element(by.id('counter'));\n          var evilBtn = element(by.id('evil'));\n          var evilError = element(by.id('evilError'));\n\n          function getAndClearSevereErrors() {\n            return browser.manage().logs().get('browser').then(function(browserLog) {\n              return browserLog.filter(function(logEntry) {\n                return logEntry.level.value > webdriver.logging.Level.WARNING.value;\n              });\n            });\n          }\n\n          function clearErrors() {\n            getAndClearSevereErrors();\n          }\n\n          function expectNoErrors() {\n            getAndClearSevereErrors().then(function(filteredLog) {\n              expect(filteredLog.length).toEqual(0);\n              if (filteredLog.length) {\n                console.log('browser console errors: ' + util.inspect(filteredLog));\n              }\n            });\n          }\n\n          function expectError(regex) {\n            getAndClearSevereErrors().then(function(filteredLog) {\n              var found = false;\n              filteredLog.forEach(function(log) {\n                if (log.message.match(regex)) {\n                  found = true;\n                }\n              });\n              if (!found) {\n                throw new Error('expected an error that matches ' + regex);\n              }\n            });\n          }\n\n          beforeEach(function() {\n            util = require('util');\n            webdriver = require('selenium-webdriver');\n          });\n\n          // For now, we only test on Chrome,\n          // as Safari does not load the page with Protractor's injected scripts,\n          // and Firefox webdriver always disables content security policy (#6358)\n          if (browser.params.browser !== 'chrome') {\n            return;\n          }\n\n          it('should not report errors when the page is loaded', function() {\n            // clear errors so we are not dependent on previous tests\n            clearErrors();\n            // Need to reload the page as the page is already loaded when\n            // we come here\n            browser.driver.getCurrentUrl().then(function(url) {\n              browser.get(url);\n            });\n            expectNoErrors();\n          });\n\n          it('should evaluate expressions', function() {\n            expect(counter.getText()).toEqual('0');\n            incBtn.click();\n            expect(counter.getText()).toEqual('1');\n            expectNoErrors();\n          });\n\n          it('should throw and report an error when using \"eval\"', function() {\n            evilBtn.click();\n            expect(evilError.getText()).toMatch(/Content Security Policy/);\n            expectError(/Content Security Policy/);\n          });\n        </file>\n      </example>\n  */\n\n// `ngCsp` is not implemented as a proper directive any more, because we need it be processed while\n// we bootstrap the app (before `$parse` is instantiated). For this reason, we just have the `csp()`\n// fn that looks for the `ng-csp` attribute anywhere in the current doc.\n\n/**\n * @ngdoc directive\n * @name ngClick\n *\n * @description\n * The ngClick directive allows you to specify custom behavior when\n * an element is clicked.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon\n * click. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-click\">\n     <file name=\"index.html\">\n      <button ng-click=\"count = count + 1\" ng-init=\"count=0\">\n        Increment\n      </button>\n      <span>\n        count: {{count}}\n      </span>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-click', function() {\n         expect(element(by.binding('count')).getText()).toMatch('0');\n         element(by.css('button')).click();\n         expect(element(by.binding('count')).getText()).toMatch('1');\n       });\n     </file>\n   </example>\n */\n/*\n * A collection of directives that allows creation of custom event handlers that are defined as\n * angular expressions and are compiled and executed within the current scope.\n */\nvar ngEventDirectives = {};\n\n// For events that might fire synchronously during DOM manipulation\n// we need to execute their event handlers asynchronously using $evalAsync,\n// so that they are not executed in an inconsistent state.\nvar forceAsyncEvents = {\n  'blur': true,\n  'focus': true\n};\nforEach(\n  'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),\n  function(eventName) {\n    var directiveName = directiveNormalize('ng-' + eventName);\n    ngEventDirectives[directiveName] = ['$parse', '$rootScope', function($parse, $rootScope) {\n      return {\n        restrict: 'A',\n        compile: function($element, attr) {\n          // We expose the powerful $event object on the scope that provides access to the Window,\n          // etc. that isn't protected by the fast paths in $parse.  We explicitly request better\n          // checks at the cost of speed since event handler expressions are not executed as\n          // frequently as regular change detection.\n          var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true);\n          return function ngEventHandler(scope, element) {\n            element.on(eventName, function(event) {\n              var callback = function() {\n                fn(scope, {$event:event});\n              };\n              if (forceAsyncEvents[eventName] && $rootScope.$$phase) {\n                scope.$evalAsync(callback);\n              } else {\n                scope.$apply(callback);\n              }\n            });\n          };\n        }\n      };\n    }];\n  }\n);\n\n/**\n * @ngdoc directive\n * @name ngDblclick\n *\n * @description\n * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon\n * a dblclick. (The Event object is available as `$event`)\n *\n * @example\n   <example name=\"ng-dblclick\">\n     <file name=\"index.html\">\n      <button ng-dblclick=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (on double click)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngMousedown\n *\n * @description\n * The ngMousedown directive allows you to specify custom behavior on mousedown event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon\n * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-mousedown\">\n     <file name=\"index.html\">\n      <button ng-mousedown=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (on mouse down)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngMouseup\n *\n * @description\n * Specify custom behavior on mouseup event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon\n * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-mouseup\">\n     <file name=\"index.html\">\n      <button ng-mouseup=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (on mouse up)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n/**\n * @ngdoc directive\n * @name ngMouseover\n *\n * @description\n * Specify custom behavior on mouseover event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon\n * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-mouseover\">\n     <file name=\"index.html\">\n      <button ng-mouseover=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (when mouse is over)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngMouseenter\n *\n * @description\n * Specify custom behavior on mouseenter event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon\n * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-mouseenter\">\n     <file name=\"index.html\">\n      <button ng-mouseenter=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (when mouse enters)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngMouseleave\n *\n * @description\n * Specify custom behavior on mouseleave event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon\n * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-mouseleave\">\n     <file name=\"index.html\">\n      <button ng-mouseleave=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (when mouse leaves)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngMousemove\n *\n * @description\n * Specify custom behavior on mousemove event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon\n * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-mousemove\">\n     <file name=\"index.html\">\n      <button ng-mousemove=\"count = count + 1\" ng-init=\"count=0\">\n        Increment (when mouse moves)\n      </button>\n      count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngKeydown\n *\n * @description\n * Specify custom behavior on keydown event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon\n * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n *\n * @example\n   <example name=\"ng-keydown\">\n     <file name=\"index.html\">\n      <input ng-keydown=\"count = count + 1\" ng-init=\"count=0\">\n      key down count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngKeyup\n *\n * @description\n * Specify custom behavior on keyup event.\n *\n * @element ANY\n * @priority 0\n * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon\n * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n *\n * @example\n   <example name=\"ng-keyup\">\n     <file name=\"index.html\">\n       <p>Typing in the input box below updates the key count</p>\n       <input ng-keyup=\"count = count + 1\" ng-init=\"count=0\"> key up count: {{count}}\n\n       <p>Typing in the input box below updates the keycode</p>\n       <input ng-keyup=\"event=$event\">\n       <p>event keyCode: {{ event.keyCode }}</p>\n       <p>event altKey: {{ event.altKey }}</p>\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngKeypress\n *\n * @description\n * Specify custom behavior on keypress event.\n *\n * @element ANY\n * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon\n * keypress. ({@link guide/expression#-event- Event object is available as `$event`}\n * and can be interrogated for keyCode, altKey, etc.)\n *\n * @example\n   <example name=\"ng-keypress\">\n     <file name=\"index.html\">\n      <input ng-keypress=\"count = count + 1\" ng-init=\"count=0\">\n      key press count: {{count}}\n     </file>\n   </example>\n */\n\n\n/**\n * @ngdoc directive\n * @name ngSubmit\n *\n * @description\n * Enables binding angular expressions to onsubmit events.\n *\n * Additionally it prevents the default action (which for form means sending the request to the\n * server and reloading the current page), but only if the form does not contain `action`,\n * `data-action`, or `x-action` attributes.\n *\n * <div class=\"alert alert-warning\">\n * **Warning:** Be careful not to cause \"double-submission\" by using both the `ngClick` and\n * `ngSubmit` handlers together. See the\n * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}\n * for a detailed discussion of when `ngSubmit` may be triggered.\n * </div>\n *\n * @element form\n * @priority 0\n * @param {expression} ngSubmit {@link guide/expression Expression} to eval.\n * ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example module=\"submitExample\" name=\"ng-submit\">\n     <file name=\"index.html\">\n      <script>\n        angular.module('submitExample', [])\n          .controller('ExampleController', ['$scope', function($scope) {\n            $scope.list = [];\n            $scope.text = 'hello';\n            $scope.submit = function() {\n              if ($scope.text) {\n                $scope.list.push(this.text);\n                $scope.text = '';\n              }\n            };\n          }]);\n      </script>\n      <form ng-submit=\"submit()\" ng-controller=\"ExampleController\">\n        Enter text and hit enter:\n        <input type=\"text\" ng-model=\"text\" name=\"text\" />\n        <input type=\"submit\" id=\"submit\" value=\"Submit\" />\n        <pre>list={{list}}</pre>\n      </form>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-submit', function() {\n         expect(element(by.binding('list')).getText()).toBe('list=[]');\n         element(by.css('#submit')).click();\n         expect(element(by.binding('list')).getText()).toContain('hello');\n         expect(element(by.model('text')).getAttribute('value')).toBe('');\n       });\n       it('should ignore empty strings', function() {\n         expect(element(by.binding('list')).getText()).toBe('list=[]');\n         element(by.css('#submit')).click();\n         element(by.css('#submit')).click();\n         expect(element(by.binding('list')).getText()).toContain('hello');\n        });\n     </file>\n   </example>\n */\n\n/**\n * @ngdoc directive\n * @name ngFocus\n *\n * @description\n * Specify custom behavior on focus event.\n *\n * Note: As the `focus` event is executed synchronously when calling `input.focus()`\n * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n * during an `$apply` to ensure a consistent state.\n *\n * @element window, input, select, textarea, a\n * @priority 0\n * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon\n * focus. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n * See {@link ng.directive:ngClick ngClick}\n */\n\n/**\n * @ngdoc directive\n * @name ngBlur\n *\n * @description\n * Specify custom behavior on blur event.\n *\n * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when\n * an element has lost focus.\n *\n * Note: As the `blur` event is executed synchronously also during DOM manipulations\n * (e.g. removing a focussed input),\n * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n * during an `$apply` to ensure a consistent state.\n *\n * @element window, input, select, textarea, a\n * @priority 0\n * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon\n * blur. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n * See {@link ng.directive:ngClick ngClick}\n */\n\n/**\n * @ngdoc directive\n * @name ngCopy\n *\n * @description\n * Specify custom behavior on copy event.\n *\n * @element window, input, select, textarea, a\n * @priority 0\n * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon\n * copy. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-copy\">\n     <file name=\"index.html\">\n      <input ng-copy=\"copied=true\" ng-init=\"copied=false; value='copy me'\" ng-model=\"value\">\n      copied: {{copied}}\n     </file>\n   </example>\n */\n\n/**\n * @ngdoc directive\n * @name ngCut\n *\n * @description\n * Specify custom behavior on cut event.\n *\n * @element window, input, select, textarea, a\n * @priority 0\n * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon\n * cut. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-cut\">\n     <file name=\"index.html\">\n      <input ng-cut=\"cut=true\" ng-init=\"cut=false; value='cut me'\" ng-model=\"value\">\n      cut: {{cut}}\n     </file>\n   </example>\n */\n\n/**\n * @ngdoc directive\n * @name ngPaste\n *\n * @description\n * Specify custom behavior on paste event.\n *\n * @element window, input, select, textarea, a\n * @priority 0\n * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon\n * paste. ({@link guide/expression#-event- Event object is available as `$event`})\n *\n * @example\n   <example name=\"ng-paste\">\n     <file name=\"index.html\">\n      <input ng-paste=\"paste=true\" ng-init=\"paste=false\" placeholder='paste here'>\n      pasted: {{paste}}\n     </file>\n   </example>\n */\n\n/**\n * @ngdoc directive\n * @name ngIf\n * @restrict A\n * @multiElement\n *\n * @description\n * The `ngIf` directive removes or recreates a portion of the DOM tree based on an\n * {expression}. If the expression assigned to `ngIf` evaluates to a false\n * value then the element is removed from the DOM, otherwise a clone of the\n * element is reinserted into the DOM.\n *\n * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the\n * element in the DOM rather than changing its visibility via the `display` css property.  A common\n * case when this difference is significant is when using css selectors that rely on an element's\n * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.\n *\n * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope\n * is created when the element is restored.  The scope created within `ngIf` inherits from\n * its parent scope using\n * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).\n * An important implication of this is if `ngModel` is used within `ngIf` to bind to\n * a javascript primitive defined in the parent scope. In this case any modifications made to the\n * variable within the child scope will override (hide) the value in the parent scope.\n *\n * Also, `ngIf` recreates elements using their compiled state. An example of this behavior\n * is if an element's class attribute is directly modified after it's compiled, using something like\n * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element\n * the added class will be lost because the original compiled state is used to regenerate the element.\n *\n * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`\n * and `leave` effects.\n *\n * @animations\n * | Animation                        | Occurs                               |\n * |----------------------------------|-------------------------------------|\n * | {@link ng.$animate#enter enter}  | just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container |\n * | {@link ng.$animate#leave leave}  | just before the `ngIf` contents are removed from the DOM |\n *\n * @element ANY\n * @scope\n * @priority 600\n * @param {expression} ngIf If the {@link guide/expression expression} is falsy then\n *     the element is removed from the DOM tree. If it is truthy a copy of the compiled\n *     element is added to the DOM tree.\n *\n * @example\n  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-if\">\n    <file name=\"index.html\">\n      <label>Click me: <input type=\"checkbox\" ng-model=\"checked\" ng-init=\"checked=true\" /></label><br/>\n      Show when checked:\n      <span ng-if=\"checked\" class=\"animate-if\">\n        This is removed when the checkbox is unchecked.\n      </span>\n    </file>\n    <file name=\"animations.css\">\n      .animate-if {\n        background:white;\n        border:1px solid black;\n        padding:10px;\n      }\n\n      .animate-if.ng-enter, .animate-if.ng-leave {\n        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n      }\n\n      .animate-if.ng-enter,\n      .animate-if.ng-leave.ng-leave-active {\n        opacity:0;\n      }\n\n      .animate-if.ng-leave,\n      .animate-if.ng-enter.ng-enter-active {\n        opacity:1;\n      }\n    </file>\n  </example>\n */\nvar ngIfDirective = ['$animate', '$compile', function($animate, $compile) {\n  return {\n    multiElement: true,\n    transclude: 'element',\n    priority: 600,\n    terminal: true,\n    restrict: 'A',\n    $$tlb: true,\n    link: function($scope, $element, $attr, ctrl, $transclude) {\n        var block, childScope, previousElements;\n        $scope.$watch($attr.ngIf, function ngIfWatchAction(value) {\n\n          if (value) {\n            if (!childScope) {\n              $transclude(function(clone, newScope) {\n                childScope = newScope;\n                clone[clone.length++] = $compile.$$createComment('end ngIf', $attr.ngIf);\n                // Note: We only need the first/last node of the cloned nodes.\n                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n                // by a directive with templateUrl when its template arrives.\n                block = {\n                  clone: clone\n                };\n                $animate.enter(clone, $element.parent(), $element);\n              });\n            }\n          } else {\n            if (previousElements) {\n              previousElements.remove();\n              previousElements = null;\n            }\n            if (childScope) {\n              childScope.$destroy();\n              childScope = null;\n            }\n            if (block) {\n              previousElements = getBlockNodes(block.clone);\n              $animate.leave(previousElements).done(function(response) {\n                if (response !== false) previousElements = null;\n              });\n              block = null;\n            }\n          }\n        });\n    }\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name ngInclude\n * @restrict ECA\n *\n * @description\n * Fetches, compiles and includes an external HTML fragment.\n *\n * By default, the template URL is restricted to the same domain and protocol as the\n * application document. This is done by calling {@link $sce#getTrustedResourceUrl\n * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols\n * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or\n * {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link\n * ng.$sce Strict Contextual Escaping}.\n *\n * In addition, the browser's\n * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n * policy may further restrict whether the template is successfully loaded.\n * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`\n * access on some browsers.\n *\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link ng.$animate#enter enter}  | when the expression changes, on the new include |\n * | {@link ng.$animate#leave leave}  | when the expression changes, on the old include |\n *\n * The enter and leave animation occur concurrently.\n *\n * @scope\n * @priority 400\n *\n * @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,\n *                 make sure you wrap it in **single** quotes, e.g. `src=\"'myPartialTemplate.html'\"`.\n * @param {string=} onload Expression to evaluate when a new partial is loaded.\n *                  <div class=\"alert alert-warning\">\n *                  **Note:** When using onload on SVG elements in IE11, the browser will try to call\n *                  a function with the name on the window element, which will usually throw a\n *                  \"function is undefined\" error. To fix this, you can instead use `data-onload` or a\n *                  different form that {@link guide/directive#normalization matches} `onload`.\n *                  </div>\n   *\n * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll\n *                  $anchorScroll} to scroll the viewport after the content is loaded.\n *\n *                  - If the attribute is not set, disable scrolling.\n *                  - If the attribute is set without value, enable scrolling.\n *                  - Otherwise enable scrolling only if the expression evaluates to truthy value.\n *\n * @example\n  <example module=\"includeExample\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-include\">\n    <file name=\"index.html\">\n     <div ng-controller=\"ExampleController\">\n       <select ng-model=\"template\" ng-options=\"t.name for t in templates\">\n        <option value=\"\">(blank)</option>\n       </select>\n       url of the template: <code>{{template.url}}</code>\n       <hr/>\n       <div class=\"slide-animate-container\">\n         <div class=\"slide-animate\" ng-include=\"template.url\"></div>\n       </div>\n     </div>\n    </file>\n    <file name=\"script.js\">\n      angular.module('includeExample', ['ngAnimate'])\n        .controller('ExampleController', ['$scope', function($scope) {\n          $scope.templates =\n            [{ name: 'template1.html', url: 'template1.html'},\n             { name: 'template2.html', url: 'template2.html'}];\n          $scope.template = $scope.templates[0];\n        }]);\n     </file>\n    <file name=\"template1.html\">\n      Content of template1.html\n    </file>\n    <file name=\"template2.html\">\n      Content of template2.html\n    </file>\n    <file name=\"animations.css\">\n      .slide-animate-container {\n        position:relative;\n        background:white;\n        border:1px solid black;\n        height:40px;\n        overflow:hidden;\n      }\n\n      .slide-animate {\n        padding:10px;\n      }\n\n      .slide-animate.ng-enter, .slide-animate.ng-leave {\n        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n        position:absolute;\n        top:0;\n        left:0;\n        right:0;\n        bottom:0;\n        display:block;\n        padding:10px;\n      }\n\n      .slide-animate.ng-enter {\n        top:-50px;\n      }\n      .slide-animate.ng-enter.ng-enter-active {\n        top:0;\n      }\n\n      .slide-animate.ng-leave {\n        top:0;\n      }\n      .slide-animate.ng-leave.ng-leave-active {\n        top:50px;\n      }\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var templateSelect = element(by.model('template'));\n      var includeElem = element(by.css('[ng-include]'));\n\n      it('should load template1.html', function() {\n        expect(includeElem.getText()).toMatch(/Content of template1.html/);\n      });\n\n      it('should load template2.html', function() {\n        if (browser.params.browser === 'firefox') {\n          // Firefox can't handle using selects\n          // See https://github.com/angular/protractor/issues/480\n          return;\n        }\n        templateSelect.click();\n        templateSelect.all(by.css('option')).get(2).click();\n        expect(includeElem.getText()).toMatch(/Content of template2.html/);\n      });\n\n      it('should change to blank', function() {\n        if (browser.params.browser === 'firefox') {\n          // Firefox can't handle using selects\n          return;\n        }\n        templateSelect.click();\n        templateSelect.all(by.css('option')).get(0).click();\n        expect(includeElem.isPresent()).toBe(false);\n      });\n    </file>\n  </example>\n */\n\n\n/**\n * @ngdoc event\n * @name ngInclude#$includeContentRequested\n * @eventType emit on the scope ngInclude was declared in\n * @description\n * Emitted every time the ngInclude content is requested.\n *\n * @param {Object} angularEvent Synthetic event object.\n * @param {String} src URL of content to load.\n */\n\n\n/**\n * @ngdoc event\n * @name ngInclude#$includeContentLoaded\n * @eventType emit on the current ngInclude scope\n * @description\n * Emitted every time the ngInclude content is reloaded.\n *\n * @param {Object} angularEvent Synthetic event object.\n * @param {String} src URL of content to load.\n */\n\n\n/**\n * @ngdoc event\n * @name ngInclude#$includeContentError\n * @eventType emit on the scope ngInclude was declared in\n * @description\n * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)\n *\n * @param {Object} angularEvent Synthetic event object.\n * @param {String} src URL of content to load.\n */\nvar ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate',\n                  function($templateRequest,   $anchorScroll,   $animate) {\n  return {\n    restrict: 'ECA',\n    priority: 400,\n    terminal: true,\n    transclude: 'element',\n    controller: angular.noop,\n    compile: function(element, attr) {\n      var srcExp = attr.ngInclude || attr.src,\n          onloadExp = attr.onload || '',\n          autoScrollExp = attr.autoscroll;\n\n      return function(scope, $element, $attr, ctrl, $transclude) {\n        var changeCounter = 0,\n            currentScope,\n            previousElement,\n            currentElement;\n\n        var cleanupLastIncludeContent = function() {\n          if (previousElement) {\n            previousElement.remove();\n            previousElement = null;\n          }\n          if (currentScope) {\n            currentScope.$destroy();\n            currentScope = null;\n          }\n          if (currentElement) {\n            $animate.leave(currentElement).done(function(response) {\n              if (response !== false) previousElement = null;\n            });\n            previousElement = currentElement;\n            currentElement = null;\n          }\n        };\n\n        scope.$watch(srcExp, function ngIncludeWatchAction(src) {\n          var afterAnimation = function(response) {\n            if (response !== false && isDefined(autoScrollExp) &&\n              (!autoScrollExp || scope.$eval(autoScrollExp))) {\n                $anchorScroll();\n            }\n          };\n          var thisChangeId = ++changeCounter;\n\n          if (src) {\n            //set the 2nd param to true to ignore the template request error so that the inner\n            //contents and scope can be cleaned up.\n            $templateRequest(src, true).then(function(response) {\n              if (scope.$$destroyed) return;\n\n              if (thisChangeId !== changeCounter) return;\n              var newScope = scope.$new();\n              ctrl.template = response;\n\n              // Note: This will also link all children of ng-include that were contained in the original\n              // html. If that content contains controllers, ... they could pollute/change the scope.\n              // However, using ng-include on an element with additional content does not make sense...\n              // Note: We can't remove them in the cloneAttchFn of $transclude as that\n              // function is called before linking the content, which would apply child\n              // directives to non existing elements.\n              var clone = $transclude(newScope, function(clone) {\n                cleanupLastIncludeContent();\n                $animate.enter(clone, null, $element).done(afterAnimation);\n              });\n\n              currentScope = newScope;\n              currentElement = clone;\n\n              currentScope.$emit('$includeContentLoaded', src);\n              scope.$eval(onloadExp);\n            }, function() {\n              if (scope.$$destroyed) return;\n\n              if (thisChangeId === changeCounter) {\n                cleanupLastIncludeContent();\n                scope.$emit('$includeContentError', src);\n              }\n            });\n            scope.$emit('$includeContentRequested', src);\n          } else {\n            cleanupLastIncludeContent();\n            ctrl.template = null;\n          }\n        });\n      };\n    }\n  };\n}];\n\n// This directive is called during the $transclude call of the first `ngInclude` directive.\n// It will replace and compile the content of the element with the loaded template.\n// We need this directive so that the element content is already filled when\n// the link function of another directive on the same element as ngInclude\n// is called.\nvar ngIncludeFillContentDirective = ['$compile',\n  function($compile) {\n    return {\n      restrict: 'ECA',\n      priority: -400,\n      require: 'ngInclude',\n      link: function(scope, $element, $attr, ctrl) {\n        if (toString.call($element[0]).match(/SVG/)) {\n          // WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not\n          // support innerHTML, so detect this here and try to generate the contents\n          // specially.\n          $element.empty();\n          $compile(jqLiteBuildFragment(ctrl.template, window.document).childNodes)(scope,\n              function namespaceAdaptedClone(clone) {\n            $element.append(clone);\n          }, {futureParentElement: $element});\n          return;\n        }\n\n        $element.html(ctrl.template);\n        $compile($element.contents())(scope);\n      }\n    };\n  }];\n\n/**\n * @ngdoc directive\n * @name ngInit\n * @restrict AC\n *\n * @description\n * The `ngInit` directive allows you to evaluate an expression in the\n * current scope.\n *\n * <div class=\"alert alert-danger\">\n * This directive can be abused to add unnecessary amounts of logic into your templates.\n * There are only a few appropriate uses of `ngInit`, such as for aliasing special properties of\n * {@link ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below; and for injecting data via\n * server side scripting. Besides these few cases, you should use {@link guide/controller controllers}\n * rather than `ngInit` to initialize values on a scope.\n * </div>\n *\n * <div class=\"alert alert-warning\">\n * **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make\n * sure you have parentheses to ensure correct operator precedence:\n * <pre class=\"prettyprint\">\n * `<div ng-init=\"test1 = ($index | toString)\"></div>`\n * </pre>\n * </div>\n *\n * @priority 450\n *\n * @element ANY\n * @param {expression} ngInit {@link guide/expression Expression} to eval.\n *\n * @example\n   <example module=\"initExample\" name=\"ng-init\">\n     <file name=\"index.html\">\n   <script>\n     angular.module('initExample', [])\n       .controller('ExampleController', ['$scope', function($scope) {\n         $scope.list = [['a', 'b'], ['c', 'd']];\n       }]);\n   </script>\n   <div ng-controller=\"ExampleController\">\n     <div ng-repeat=\"innerList in list\" ng-init=\"outerIndex = $index\">\n       <div ng-repeat=\"value in innerList\" ng-init=\"innerIndex = $index\">\n          <span class=\"example-init\">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>\n       </div>\n     </div>\n   </div>\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       it('should alias index positions', function() {\n         var elements = element.all(by.css('.example-init'));\n         expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');\n         expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');\n         expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');\n         expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');\n       });\n     </file>\n   </example>\n */\nvar ngInitDirective = ngDirective({\n  priority: 450,\n  compile: function() {\n    return {\n      pre: function(scope, element, attrs) {\n        scope.$eval(attrs.ngInit);\n      }\n    };\n  }\n});\n\n/**\n * @ngdoc directive\n * @name ngList\n *\n * @description\n * Text input that converts between a delimited string and an array of strings. The default\n * delimiter is a comma followed by a space - equivalent to `ng-list=\", \"`. You can specify a custom\n * delimiter as the value of the `ngList` attribute - for example, `ng-list=\" | \"`.\n *\n * The behaviour of the directive is affected by the use of the `ngTrim` attribute.\n * * If `ngTrim` is set to `\"false\"` then whitespace around both the separator and each\n *   list item is respected. This implies that the user of the directive is responsible for\n *   dealing with whitespace but also allows you to use whitespace as a delimiter, such as a\n *   tab or newline character.\n * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected\n *   when joining the list items back together) and whitespace around each list item is stripped\n *   before it is added to the model.\n *\n * ### Example with Validation\n *\n * <example name=\"ngList-directive\" module=\"listExample\">\n *   <file name=\"app.js\">\n *      angular.module('listExample', [])\n *        .controller('ExampleController', ['$scope', function($scope) {\n *          $scope.names = ['morpheus', 'neo', 'trinity'];\n *        }]);\n *   </file>\n *   <file name=\"index.html\">\n *    <form name=\"myForm\" ng-controller=\"ExampleController\">\n *      <label>List: <input name=\"namesInput\" ng-model=\"names\" ng-list required></label>\n *      <span role=\"alert\">\n *        <span class=\"error\" ng-show=\"myForm.namesInput.$error.required\">\n *        Required!</span>\n *      </span>\n *      <br>\n *      <tt>names = {{names}}</tt><br/>\n *      <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>\n *      <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>\n *      <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n *      <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n *     </form>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *     var listInput = element(by.model('names'));\n *     var names = element(by.exactBinding('names'));\n *     var valid = element(by.binding('myForm.namesInput.$valid'));\n *     var error = element(by.css('span.error'));\n *\n *     it('should initialize to model', function() {\n *       expect(names.getText()).toContain('[\"morpheus\",\"neo\",\"trinity\"]');\n *       expect(valid.getText()).toContain('true');\n *       expect(error.getCssValue('display')).toBe('none');\n *     });\n *\n *     it('should be invalid if empty', function() {\n *       listInput.clear();\n *       listInput.sendKeys('');\n *\n *       expect(names.getText()).toContain('');\n *       expect(valid.getText()).toContain('false');\n *       expect(error.getCssValue('display')).not.toBe('none');\n *     });\n *   </file>\n * </example>\n *\n * ### Example - splitting on newline\n * <example name=\"ngList-directive-newlines\">\n *   <file name=\"index.html\">\n *    <textarea ng-model=\"list\" ng-list=\"&#10;\" ng-trim=\"false\"></textarea>\n *    <pre>{{ list | json }}</pre>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *     it(\"should split the text by newlines\", function() {\n *       var listInput = element(by.model('list'));\n *       var output = element(by.binding('list | json'));\n *       listInput.sendKeys('abc\\ndef\\nghi');\n *       expect(output.getText()).toContain('[\\n  \"abc\",\\n  \"def\",\\n  \"ghi\"\\n]');\n *     });\n *   </file>\n * </example>\n *\n * @element input\n * @param {string=} ngList optional delimiter that should be used to split the value.\n */\nvar ngListDirective = function() {\n  return {\n    restrict: 'A',\n    priority: 100,\n    require: 'ngModel',\n    link: function(scope, element, attr, ctrl) {\n      var ngList = attr.ngList || ', ';\n      var trimValues = attr.ngTrim !== 'false';\n      var separator = trimValues ? trim(ngList) : ngList;\n\n      var parse = function(viewValue) {\n        // If the viewValue is invalid (say required but empty) it will be `undefined`\n        if (isUndefined(viewValue)) return;\n\n        var list = [];\n\n        if (viewValue) {\n          forEach(viewValue.split(separator), function(value) {\n            if (value) list.push(trimValues ? trim(value) : value);\n          });\n        }\n\n        return list;\n      };\n\n      ctrl.$parsers.push(parse);\n      ctrl.$formatters.push(function(value) {\n        if (isArray(value)) {\n          return value.join(ngList);\n        }\n\n        return undefined;\n      });\n\n      // Override the standard $isEmpty because an empty array means the input is empty.\n      ctrl.$isEmpty = function(value) {\n        return !value || !value.length;\n      };\n    }\n  };\n};\n\n/* global VALID_CLASS: true,\n  INVALID_CLASS: true,\n  PRISTINE_CLASS: true,\n  DIRTY_CLASS: true,\n  UNTOUCHED_CLASS: true,\n  TOUCHED_CLASS: true,\n  PENDING_CLASS: true,\n  addSetValidityMethod: true,\n  setupValidity: true,\n  defaultModelOptions: false\n*/\n\n\nvar VALID_CLASS = 'ng-valid',\n    INVALID_CLASS = 'ng-invalid',\n    PRISTINE_CLASS = 'ng-pristine',\n    DIRTY_CLASS = 'ng-dirty',\n    UNTOUCHED_CLASS = 'ng-untouched',\n    TOUCHED_CLASS = 'ng-touched',\n    EMPTY_CLASS = 'ng-empty',\n    NOT_EMPTY_CLASS = 'ng-not-empty';\n\nvar ngModelMinErr = minErr('ngModel');\n\n/**\n * @ngdoc type\n * @name ngModel.NgModelController\n *\n * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a\n * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue\n * is set.\n * @property {*} $modelValue The value in the model that the control is bound to.\n * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever\n       the control reads value from the DOM. The functions are called in array order, each passing\n       its return value through to the next. The last return value is forwarded to the\n       {@link ngModel.NgModelController#$validators `$validators`} collection.\n\nParsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue\n`$viewValue`}.\n\nReturning `undefined` from a parser means a parse error occurred. In that case,\nno {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`\nwill be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}\nis set to `true`. The parse error is stored in `ngModel.$error.parse`.\n\n *\n * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever\n       the model value changes. The functions are called in reverse array order, each passing the value through to the\n       next. The last return value is used as the actual DOM value.\n       Used to format / convert values for display in the control.\n * ```js\n * function formatter(value) {\n *   if (value) {\n *     return value.toUpperCase();\n *   }\n * }\n * ngModel.$formatters.push(formatter);\n * ```\n *\n * @property {Object.<string, function>} $validators A collection of validators that are applied\n *      whenever the model value changes. The key value within the object refers to the name of the\n *      validator while the function refers to the validation operation. The validation operation is\n *      provided with the model value as an argument and must return a true or false value depending\n *      on the response of that validation.\n *\n * ```js\n * ngModel.$validators.validCharacters = function(modelValue, viewValue) {\n *   var value = modelValue || viewValue;\n *   return /[0-9]+/.test(value) &&\n *          /[a-z]+/.test(value) &&\n *          /[A-Z]+/.test(value) &&\n *          /\\W+/.test(value);\n * };\n * ```\n *\n * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to\n *      perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided\n *      is expected to return a promise when it is run during the model validation process. Once the promise\n *      is delivered then the validation status will be set to true when fulfilled and false when rejected.\n *      When the asynchronous validators are triggered, each of the validators will run in parallel and the model\n *      value will only be updated once all validators have been fulfilled. As long as an asynchronous validator\n *      is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators\n *      will only run once all synchronous validators have passed.\n *\n * Please note that if $http is used then it is important that the server returns a success HTTP response code\n * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.\n *\n * ```js\n * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {\n *   var value = modelValue || viewValue;\n *\n *   // Lookup user by username\n *   return $http.get('/api/users/' + value).\n *      then(function resolved() {\n *        //username exists, this means validation fails\n *        return $q.reject('exists');\n *      }, function rejected() {\n *        //username does not exist, therefore this validation passes\n *        return true;\n *      });\n * };\n * ```\n *\n * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the\n *     view value has changed. It is called with no arguments, and its return value is ignored.\n *     This can be used in place of additional $watches against the model value.\n *\n * @property {Object} $error An object hash with all failing validator ids as keys.\n * @property {Object} $pending An object hash with all pending validator ids as keys.\n *\n * @property {boolean} $untouched True if control has not lost focus yet.\n * @property {boolean} $touched True if control has lost focus.\n * @property {boolean} $pristine True if user has not interacted with the control yet.\n * @property {boolean} $dirty True if user has already interacted with the control.\n * @property {boolean} $valid True if there is no error.\n * @property {boolean} $invalid True if at least one error on the control.\n * @property {string} $name The name attribute of the control.\n *\n * @description\n *\n * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.\n * The controller contains services for data-binding, validation, CSS updates, and value formatting\n * and parsing. It purposefully does not contain any logic which deals with DOM rendering or\n * listening to DOM events.\n * Such DOM related logic should be provided by other directives which make use of\n * `NgModelController` for data-binding to control elements.\n * Angular provides this DOM logic for most {@link input `input`} elements.\n * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example\n * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.\n *\n * @example\n * ### Custom Control Example\n * This example shows how to use `NgModelController` with a custom control to achieve\n * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)\n * collaborate together to achieve the desired result.\n *\n * `contenteditable` is an HTML5 attribute, which tells the browser to let the element\n * contents be edited in place by the user.\n *\n * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}\n * module to automatically remove \"bad\" content like inline event listener (e.g. `<span onclick=\"...\">`).\n * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks\n * that content using the `$sce` service.\n *\n * <example name=\"NgModelController\" module=\"customControl\" deps=\"angular-sanitize.js\">\n    <file name=\"style.css\">\n      [contenteditable] {\n        border: 1px solid black;\n        background-color: white;\n        min-height: 20px;\n      }\n\n      .ng-invalid {\n        border: 1px solid red;\n      }\n\n    </file>\n    <file name=\"script.js\">\n      angular.module('customControl', ['ngSanitize']).\n        directive('contenteditable', ['$sce', function($sce) {\n          return {\n            restrict: 'A', // only activate on element attribute\n            require: '?ngModel', // get a hold of NgModelController\n            link: function(scope, element, attrs, ngModel) {\n              if (!ngModel) return; // do nothing if no ng-model\n\n              // Specify how UI should be updated\n              ngModel.$render = function() {\n                element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));\n              };\n\n              // Listen for change events to enable binding\n              element.on('blur keyup change', function() {\n                scope.$evalAsync(read);\n              });\n              read(); // initialize\n\n              // Write data to the model\n              function read() {\n                var html = element.html();\n                // When we clear the content editable the browser leaves a <br> behind\n                // If strip-br attribute is provided then we strip this out\n                if (attrs.stripBr && html === '<br>') {\n                  html = '';\n                }\n                ngModel.$setViewValue(html);\n              }\n            }\n          };\n        }]);\n    </file>\n    <file name=\"index.html\">\n      <form name=\"myForm\">\n       <div contenteditable\n            name=\"myWidget\" ng-model=\"userContent\"\n            strip-br=\"true\"\n            required>Change me!</div>\n        <span ng-show=\"myForm.myWidget.$error.required\">Required!</span>\n       <hr>\n       <textarea ng-model=\"userContent\" aria-label=\"Dynamic textarea\"></textarea>\n      </form>\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n    it('should data-bind and become invalid', function() {\n      if (browser.params.browser === 'safari' || browser.params.browser === 'firefox') {\n        // SafariDriver can't handle contenteditable\n        // and Firefox driver can't clear contenteditables very well\n        return;\n      }\n      var contentEditable = element(by.css('[contenteditable]'));\n      var content = 'Change me!';\n\n      expect(contentEditable.getText()).toEqual(content);\n\n      contentEditable.clear();\n      contentEditable.sendKeys(protractor.Key.BACK_SPACE);\n      expect(contentEditable.getText()).toEqual('');\n      expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);\n    });\n    </file>\n * </example>\n *\n *\n */\nNgModelController.$inject = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$q', '$interpolate'];\nfunction NgModelController($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $q, $interpolate) {\n  this.$viewValue = Number.NaN;\n  this.$modelValue = Number.NaN;\n  this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.\n  this.$validators = {};\n  this.$asyncValidators = {};\n  this.$parsers = [];\n  this.$formatters = [];\n  this.$viewChangeListeners = [];\n  this.$untouched = true;\n  this.$touched = false;\n  this.$pristine = true;\n  this.$dirty = false;\n  this.$valid = true;\n  this.$invalid = false;\n  this.$error = {}; // keep invalid keys here\n  this.$$success = {}; // keep valid keys here\n  this.$pending = undefined; // keep pending keys here\n  this.$name = $interpolate($attr.name || '', false)($scope);\n  this.$$parentForm = nullFormCtrl;\n  this.$options = defaultModelOptions;\n\n  this.$$parsedNgModel = $parse($attr.ngModel);\n  this.$$parsedNgModelAssign = this.$$parsedNgModel.assign;\n  this.$$ngModelGet = this.$$parsedNgModel;\n  this.$$ngModelSet = this.$$parsedNgModelAssign;\n  this.$$pendingDebounce = null;\n  this.$$parserValid = undefined;\n\n  this.$$currentValidationRunId = 0;\n\n  this.$$scope = $scope;\n  this.$$attr = $attr;\n  this.$$element = $element;\n  this.$$animate = $animate;\n  this.$$timeout = $timeout;\n  this.$$parse = $parse;\n  this.$$q = $q;\n  this.$$exceptionHandler = $exceptionHandler;\n\n  setupValidity(this);\n  setupModelWatcher(this);\n}\n\nNgModelController.prototype = {\n  $$initGetterSetters: function() {\n    if (this.$options.getOption('getterSetter')) {\n      var invokeModelGetter = this.$$parse(this.$$attr.ngModel + '()'),\n          invokeModelSetter = this.$$parse(this.$$attr.ngModel + '($$$p)');\n\n      this.$$ngModelGet = function($scope) {\n        var modelValue = this.$$parsedNgModel($scope);\n        if (isFunction(modelValue)) {\n          modelValue = invokeModelGetter($scope);\n        }\n        return modelValue;\n      };\n      this.$$ngModelSet = function($scope, newValue) {\n        if (isFunction(this.$$parsedNgModel($scope))) {\n          invokeModelSetter($scope, {$$$p: newValue});\n        } else {\n          this.$$parsedNgModelAssign($scope, newValue);\n        }\n      };\n    } else if (!this.$$parsedNgModel.assign) {\n      throw ngModelMinErr('nonassign', 'Expression \\'{0}\\' is non-assignable. Element: {1}',\n          this.$$attr.ngModel, startingTag(this.$$element));\n    }\n  },\n\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$render\n   *\n   * @description\n   * Called when the view needs to be updated. It is expected that the user of the ng-model\n   * directive will implement this method.\n   *\n   * The `$render()` method is invoked in the following situations:\n   *\n   * * `$rollbackViewValue()` is called.  If we are rolling back the view value to the last\n   *   committed value then `$render()` is called to update the input control.\n   * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and\n   *   the `$viewValue` are different from last time.\n   *\n   * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of\n   * `$modelValue` and `$viewValue` are actually different from their previous values. If `$modelValue`\n   * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be\n   * invoked if you only change a property on the objects.\n   */\n  $render: noop,\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$isEmpty\n   *\n   * @description\n   * This is called when we need to determine if the value of an input is empty.\n   *\n   * For instance, the required directive does this to work out if the input has data or not.\n   *\n   * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.\n   *\n   * You can override this for input directives whose concept of being empty is different from the\n   * default. The `checkboxInputType` directive does this because in its case a value of `false`\n   * implies empty.\n   *\n   * @param {*} value The value of the input to check for emptiness.\n   * @returns {boolean} True if `value` is \"empty\".\n   */\n  $isEmpty: function(value) {\n    // eslint-disable-next-line no-self-compare\n    return isUndefined(value) || value === '' || value === null || value !== value;\n  },\n\n  $$updateEmptyClasses: function(value) {\n    if (this.$isEmpty(value)) {\n      this.$$animate.removeClass(this.$$element, NOT_EMPTY_CLASS);\n      this.$$animate.addClass(this.$$element, EMPTY_CLASS);\n    } else {\n      this.$$animate.removeClass(this.$$element, EMPTY_CLASS);\n      this.$$animate.addClass(this.$$element, NOT_EMPTY_CLASS);\n    }\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$setPristine\n   *\n   * @description\n   * Sets the control to its pristine state.\n   *\n   * This method can be called to remove the `ng-dirty` class and set the control to its pristine\n   * state (`ng-pristine` class). A model is considered to be pristine when the control\n   * has not been changed from when first compiled.\n   */\n  $setPristine: function() {\n    this.$dirty = false;\n    this.$pristine = true;\n    this.$$animate.removeClass(this.$$element, DIRTY_CLASS);\n    this.$$animate.addClass(this.$$element, PRISTINE_CLASS);\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$setDirty\n   *\n   * @description\n   * Sets the control to its dirty state.\n   *\n   * This method can be called to remove the `ng-pristine` class and set the control to its dirty\n   * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed\n   * from when first compiled.\n   */\n  $setDirty: function() {\n    this.$dirty = true;\n    this.$pristine = false;\n    this.$$animate.removeClass(this.$$element, PRISTINE_CLASS);\n    this.$$animate.addClass(this.$$element, DIRTY_CLASS);\n    this.$$parentForm.$setDirty();\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$setUntouched\n   *\n   * @description\n   * Sets the control to its untouched state.\n   *\n   * This method can be called to remove the `ng-touched` class and set the control to its\n   * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched\n   * by default, however this function can be used to restore that state if the model has\n   * already been touched by the user.\n   */\n  $setUntouched: function() {\n    this.$touched = false;\n    this.$untouched = true;\n    this.$$animate.setClass(this.$$element, UNTOUCHED_CLASS, TOUCHED_CLASS);\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$setTouched\n   *\n   * @description\n   * Sets the control to its touched state.\n   *\n   * This method can be called to remove the `ng-untouched` class and set the control to its\n   * touched state (`ng-touched` class). A model is considered to be touched when the user has\n   * first focused the control element and then shifted focus away from the control (blur event).\n   */\n  $setTouched: function() {\n    this.$touched = true;\n    this.$untouched = false;\n    this.$$animate.setClass(this.$$element, TOUCHED_CLASS, UNTOUCHED_CLASS);\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$rollbackViewValue\n   *\n   * @description\n   * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,\n   * which may be caused by a pending debounced event or because the input is waiting for some\n   * future event.\n   *\n   * If you have an input that uses `ng-model-options` to set up debounced updates or updates that\n   * depend on special events such as `blur`, there can be a period when the `$viewValue` is out of\n   * sync with the ngModel's `$modelValue`.\n   *\n   * In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update\n   * and reset the input to the last committed view value.\n   *\n   * It is also possible that you run into difficulties if you try to update the ngModel's `$modelValue`\n   * programmatically before these debounced/future events have resolved/occurred, because Angular's\n   * dirty checking mechanism is not able to tell whether the model has actually changed or not.\n   *\n   * The `$rollbackViewValue()` method should be called before programmatically changing the model of an\n   * input which may have such events pending. This is important in order to make sure that the\n   * input field will be updated with the new model value and any pending operations are cancelled.\n   *\n   * <example name=\"ng-model-cancel-update\" module=\"cancel-update-example\">\n   *   <file name=\"app.js\">\n   *     angular.module('cancel-update-example', [])\n   *\n   *     .controller('CancelUpdateController', ['$scope', function($scope) {\n   *       $scope.model = {value1: '', value2: ''};\n   *\n   *       $scope.setEmpty = function(e, value, rollback) {\n   *         if (e.keyCode === 27) {\n   *           e.preventDefault();\n   *           if (rollback) {\n   *             $scope.myForm[value].$rollbackViewValue();\n   *           }\n   *           $scope.model[value] = '';\n   *         }\n   *       };\n   *     }]);\n   *   </file>\n   *   <file name=\"index.html\">\n   *     <div ng-controller=\"CancelUpdateController\">\n   *       <p>Both of these inputs are only updated if they are blurred. Hitting escape should\n   *       empty them. Follow these steps and observe the difference:</p>\n   *       <ol>\n   *         <li>Type something in the input. You will see that the model is not yet updated</li>\n   *         <li>Press the Escape key.\n   *           <ol>\n   *             <li> In the first example, nothing happens, because the model is already '', and no\n   *             update is detected. If you blur the input, the model will be set to the current view.\n   *             </li>\n   *             <li> In the second example, the pending update is cancelled, and the input is set back\n   *             to the last committed view value (''). Blurring the input does nothing.\n   *             </li>\n   *           </ol>\n   *         </li>\n   *       </ol>\n   *\n   *       <form name=\"myForm\" ng-model-options=\"{ updateOn: 'blur' }\">\n   *         <div>\n   *           <p id=\"inputDescription1\">Without $rollbackViewValue():</p>\n   *           <input name=\"value1\" aria-describedby=\"inputDescription1\" ng-model=\"model.value1\"\n   *                  ng-keydown=\"setEmpty($event, 'value1')\">\n   *           value1: \"{{ model.value1 }}\"\n   *         </div>\n   *\n   *         <div>\n   *           <p id=\"inputDescription2\">With $rollbackViewValue():</p>\n   *           <input name=\"value2\" aria-describedby=\"inputDescription2\" ng-model=\"model.value2\"\n   *                  ng-keydown=\"setEmpty($event, 'value2', true)\">\n   *           value2: \"{{ model.value2 }}\"\n   *         </div>\n   *       </form>\n   *     </div>\n   *   </file>\n       <file name=\"style.css\">\n          div {\n            display: table-cell;\n          }\n          div:nth-child(1) {\n            padding-right: 30px;\n          }\n\n        </file>\n   * </example>\n   */\n  $rollbackViewValue: function() {\n    this.$$timeout.cancel(this.$$pendingDebounce);\n    this.$viewValue = this.$$lastCommittedViewValue;\n    this.$render();\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$validate\n   *\n   * @description\n   * Runs each of the registered validators (first synchronous validators and then\n   * asynchronous validators).\n   * If the validity changes to invalid, the model will be set to `undefined`,\n   * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.\n   * If the validity changes to valid, it will set the model to the last available valid\n   * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.\n   */\n  $validate: function() {\n    // ignore $validate before model is initialized\n    if (isNumberNaN(this.$modelValue)) {\n      return;\n    }\n\n    var viewValue = this.$$lastCommittedViewValue;\n    // Note: we use the $$rawModelValue as $modelValue might have been\n    // set to undefined during a view -> model update that found validation\n    // errors. We can't parse the view here, since that could change\n    // the model although neither viewValue nor the model on the scope changed\n    var modelValue = this.$$rawModelValue;\n\n    var prevValid = this.$valid;\n    var prevModelValue = this.$modelValue;\n\n    var allowInvalid = this.$options.getOption('allowInvalid');\n\n    var that = this;\n    this.$$runValidators(modelValue, viewValue, function(allValid) {\n      // If there was no change in validity, don't update the model\n      // This prevents changing an invalid modelValue to undefined\n      if (!allowInvalid && prevValid !== allValid) {\n        // Note: Don't check this.$valid here, as we could have\n        // external validators (e.g. calculated on the server),\n        // that just call $setValidity and need the model value\n        // to calculate their validity.\n        that.$modelValue = allValid ? modelValue : undefined;\n\n        if (that.$modelValue !== prevModelValue) {\n          that.$$writeModelToScope();\n        }\n      }\n    });\n  },\n\n  $$runValidators: function(modelValue, viewValue, doneCallback) {\n    this.$$currentValidationRunId++;\n    var localValidationRunId = this.$$currentValidationRunId;\n    var that = this;\n\n    // check parser error\n    if (!processParseErrors()) {\n      validationDone(false);\n      return;\n    }\n    if (!processSyncValidators()) {\n      validationDone(false);\n      return;\n    }\n    processAsyncValidators();\n\n    function processParseErrors() {\n      var errorKey = that.$$parserName || 'parse';\n      if (isUndefined(that.$$parserValid)) {\n        setValidity(errorKey, null);\n      } else {\n        if (!that.$$parserValid) {\n          forEach(that.$validators, function(v, name) {\n            setValidity(name, null);\n          });\n          forEach(that.$asyncValidators, function(v, name) {\n            setValidity(name, null);\n          });\n        }\n        // Set the parse error last, to prevent unsetting it, should a $validators key == parserName\n        setValidity(errorKey, that.$$parserValid);\n        return that.$$parserValid;\n      }\n      return true;\n    }\n\n    function processSyncValidators() {\n      var syncValidatorsValid = true;\n      forEach(that.$validators, function(validator, name) {\n        var result = Boolean(validator(modelValue, viewValue));\n        syncValidatorsValid = syncValidatorsValid && result;\n        setValidity(name, result);\n      });\n      if (!syncValidatorsValid) {\n        forEach(that.$asyncValidators, function(v, name) {\n          setValidity(name, null);\n        });\n        return false;\n      }\n      return true;\n    }\n\n    function processAsyncValidators() {\n      var validatorPromises = [];\n      var allValid = true;\n      forEach(that.$asyncValidators, function(validator, name) {\n        var promise = validator(modelValue, viewValue);\n        if (!isPromiseLike(promise)) {\n          throw ngModelMinErr('nopromise',\n            'Expected asynchronous validator to return a promise but got \\'{0}\\' instead.', promise);\n        }\n        setValidity(name, undefined);\n        validatorPromises.push(promise.then(function() {\n          setValidity(name, true);\n        }, function() {\n          allValid = false;\n          setValidity(name, false);\n        }));\n      });\n      if (!validatorPromises.length) {\n        validationDone(true);\n      } else {\n        that.$$q.all(validatorPromises).then(function() {\n          validationDone(allValid);\n        }, noop);\n      }\n    }\n\n    function setValidity(name, isValid) {\n      if (localValidationRunId === that.$$currentValidationRunId) {\n        that.$setValidity(name, isValid);\n      }\n    }\n\n    function validationDone(allValid) {\n      if (localValidationRunId === that.$$currentValidationRunId) {\n\n        doneCallback(allValid);\n      }\n    }\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$commitViewValue\n   *\n   * @description\n   * Commit a pending update to the `$modelValue`.\n   *\n   * Updates may be pending by a debounced event or because the input is waiting for a some future\n   * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`\n   * usually handles calling this in response to input events.\n   */\n  $commitViewValue: function() {\n    var viewValue = this.$viewValue;\n\n    this.$$timeout.cancel(this.$$pendingDebounce);\n\n    // If the view value has not changed then we should just exit, except in the case where there is\n    // a native validator on the element. In this case the validation state may have changed even though\n    // the viewValue has stayed empty.\n    if (this.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !this.$$hasNativeValidators)) {\n      return;\n    }\n    this.$$updateEmptyClasses(viewValue);\n    this.$$lastCommittedViewValue = viewValue;\n\n    // change to dirty\n    if (this.$pristine) {\n      this.$setDirty();\n    }\n    this.$$parseAndValidate();\n  },\n\n  $$parseAndValidate: function() {\n    var viewValue = this.$$lastCommittedViewValue;\n    var modelValue = viewValue;\n    var that = this;\n\n    this.$$parserValid = isUndefined(modelValue) ? undefined : true;\n\n    if (this.$$parserValid) {\n      for (var i = 0; i < this.$parsers.length; i++) {\n        modelValue = this.$parsers[i](modelValue);\n        if (isUndefined(modelValue)) {\n          this.$$parserValid = false;\n          break;\n        }\n      }\n    }\n    if (isNumberNaN(this.$modelValue)) {\n      // this.$modelValue has not been touched yet...\n      this.$modelValue = this.$$ngModelGet(this.$$scope);\n    }\n    var prevModelValue = this.$modelValue;\n    var allowInvalid = this.$options.getOption('allowInvalid');\n    this.$$rawModelValue = modelValue;\n\n    if (allowInvalid) {\n      this.$modelValue = modelValue;\n      writeToModelIfNeeded();\n    }\n\n    // Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.\n    // This can happen if e.g. $setViewValue is called from inside a parser\n    this.$$runValidators(modelValue, this.$$lastCommittedViewValue, function(allValid) {\n      if (!allowInvalid) {\n        // Note: Don't check this.$valid here, as we could have\n        // external validators (e.g. calculated on the server),\n        // that just call $setValidity and need the model value\n        // to calculate their validity.\n        that.$modelValue = allValid ? modelValue : undefined;\n        writeToModelIfNeeded();\n      }\n    });\n\n    function writeToModelIfNeeded() {\n      if (that.$modelValue !== prevModelValue) {\n        that.$$writeModelToScope();\n      }\n    }\n  },\n\n  $$writeModelToScope: function() {\n    this.$$ngModelSet(this.$$scope, this.$modelValue);\n    forEach(this.$viewChangeListeners, function(listener) {\n      try {\n        listener();\n      } catch (e) {\n        // eslint-disable-next-line no-invalid-this\n        this.$$exceptionHandler(e);\n      }\n    }, this);\n  },\n\n  /**\n   * @ngdoc method\n   * @name ngModel.NgModelController#$setViewValue\n   *\n   * @description\n   * Update the view value.\n   *\n   * This method should be called when a control wants to change the view value; typically,\n   * this is done from within a DOM event handler. For example, the {@link ng.directive:input input}\n   * directive calls it when the value of the input changes and {@link ng.directive:select select}\n   * calls it when an option is selected.\n   *\n   * When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`\n   * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged\n   * value sent directly for processing, finally to be applied to `$modelValue` and then the\n   * **expression** specified in the `ng-model` attribute. Lastly, all the registered change listeners,\n   * in the `$viewChangeListeners` list, are called.\n   *\n   * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`\n   * and the `default` trigger is not listed, all those actions will remain pending until one of the\n   * `updateOn` events is triggered on the DOM element.\n   * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}\n   * directive is used with a custom debounce for this particular event.\n   * Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`\n   * is specified, once the timer runs out.\n   *\n   * When used with standard inputs, the view value will always be a string (which is in some cases\n   * parsed into another type, such as a `Date` object for `input[date]`.)\n   * However, custom controls might also pass objects to this method. In this case, we should make\n   * a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not\n   * perform a deep watch of objects, it only looks for a change of identity. If you only change\n   * the property of the object then ngModel will not realize that the object has changed and\n   * will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should\n   * not change properties of the copy once it has been passed to `$setViewValue`.\n   * Otherwise you may cause the model value on the scope to change incorrectly.\n   *\n   * <div class=\"alert alert-info\">\n   * In any case, the value passed to the method should always reflect the current value\n   * of the control. For example, if you are calling `$setViewValue` for an input element,\n   * you should pass the input DOM value. Otherwise, the control and the scope model become\n   * out of sync. It's also important to note that `$setViewValue` does not call `$render` or change\n   * the control's DOM value in any way. If we want to change the control's DOM value\n   * programmatically, we should update the `ngModel` scope expression. Its new value will be\n   * picked up by the model controller, which will run it through the `$formatters`, `$render` it\n   * to update the DOM, and finally call `$validate` on it.\n   * </div>\n   *\n   * @param {*} value value from the view.\n   * @param {string} trigger Event that triggered the update.\n   */\n  $setViewValue: function(value, trigger) {\n    this.$viewValue = value;\n    if (this.$options.getOption('updateOnDefault')) {\n      this.$$debounceViewValueCommit(trigger);\n    }\n  },\n\n  $$debounceViewValueCommit: function(trigger) {\n    var debounceDelay = this.$options.getOption('debounce');\n\n    if (isNumber(debounceDelay[trigger])) {\n      debounceDelay = debounceDelay[trigger];\n    } else if (isNumber(debounceDelay['default'])) {\n      debounceDelay = debounceDelay['default'];\n    }\n\n    this.$$timeout.cancel(this.$$pendingDebounce);\n    var that = this;\n    if (debounceDelay > 0) { // this fails if debounceDelay is an object\n      this.$$pendingDebounce = this.$$timeout(function() {\n        that.$commitViewValue();\n      }, debounceDelay);\n    } else if (this.$$scope.$root.$$phase) {\n      this.$commitViewValue();\n    } else {\n      this.$$scope.$apply(function() {\n        that.$commitViewValue();\n      });\n    }\n  }\n};\n\nfunction setupModelWatcher(ctrl) {\n  // model -> value\n  // Note: we cannot use a normal scope.$watch as we want to detect the following:\n  // 1. scope value is 'a'\n  // 2. user enters 'b'\n  // 3. ng-change kicks in and reverts scope value to 'a'\n  //    -> scope value did not change since the last digest as\n  //       ng-change executes in apply phase\n  // 4. view should be changed back to 'a'\n  ctrl.$$scope.$watch(function ngModelWatch() {\n    var modelValue = ctrl.$$ngModelGet(ctrl.$$scope);\n\n    // if scope model value and ngModel value are out of sync\n    // TODO(perf): why not move this to the action fn?\n    if (modelValue !== ctrl.$modelValue &&\n       // checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator\n        // eslint-disable-next-line no-self-compare\n       (ctrl.$modelValue === ctrl.$modelValue || modelValue === modelValue)\n    ) {\n      ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;\n      ctrl.$$parserValid = undefined;\n\n      var formatters = ctrl.$formatters,\n          idx = formatters.length;\n\n      var viewValue = modelValue;\n      while (idx--) {\n        viewValue = formatters[idx](viewValue);\n      }\n      if (ctrl.$viewValue !== viewValue) {\n        ctrl.$$updateEmptyClasses(viewValue);\n        ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;\n        ctrl.$render();\n\n        // It is possible that model and view value have been updated during render\n        ctrl.$$runValidators(ctrl.$modelValue, ctrl.$viewValue, noop);\n      }\n    }\n\n    return modelValue;\n  });\n}\n\n/**\n * @ngdoc method\n * @name ngModel.NgModelController#$setValidity\n *\n * @description\n * Change the validity state, and notify the form.\n *\n * This method can be called within $parsers/$formatters or a custom validation implementation.\n * However, in most cases it should be sufficient to use the `ngModel.$validators` and\n * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.\n *\n * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned\n *        to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`\n *        (for unfulfilled `$asyncValidators`), so that it is available for data-binding.\n *        The `validationErrorKey` should be in camelCase and will get converted into dash-case\n *        for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`\n *        class and can be bound to as  `{{someForm.someControl.$error.myError}}` .\n * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),\n *                          or skipped (null). Pending is used for unfulfilled `$asyncValidators`.\n *                          Skipped is used by Angular when validators do not run because of parse errors and\n *                          when `$asyncValidators` do not run because any of the `$validators` failed.\n */\naddSetValidityMethod({\n  clazz: NgModelController,\n  set: function(object, property) {\n    object[property] = true;\n  },\n  unset: function(object, property) {\n    delete object[property];\n  }\n});\n\n\n/**\n * @ngdoc directive\n * @name ngModel\n *\n * @element input\n * @priority 1\n *\n * @description\n * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a\n * property on the scope using {@link ngModel.NgModelController NgModelController},\n * which is created and exposed by this directive.\n *\n * `ngModel` is responsible for:\n *\n * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`\n *   require.\n * - Providing validation behavior (i.e. required, number, email, url).\n * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).\n * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,\n *   `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.\n * - Registering the control with its parent {@link ng.directive:form form}.\n *\n * Note: `ngModel` will try to bind to the property given by evaluating the expression on the\n * current scope. If the property doesn't already exist on this scope, it will be created\n * implicitly and added to the scope.\n *\n * For best practices on using `ngModel`, see:\n *\n *  - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)\n *\n * For basic examples, how to use `ngModel`, see:\n *\n *  - {@link ng.directive:input input}\n *    - {@link input[text] text}\n *    - {@link input[checkbox] checkbox}\n *    - {@link input[radio] radio}\n *    - {@link input[number] number}\n *    - {@link input[email] email}\n *    - {@link input[url] url}\n *    - {@link input[date] date}\n *    - {@link input[datetime-local] datetime-local}\n *    - {@link input[time] time}\n *    - {@link input[month] month}\n *    - {@link input[week] week}\n *  - {@link ng.directive:select select}\n *  - {@link ng.directive:textarea textarea}\n *\n * # Complex Models (objects or collections)\n *\n * By default, `ngModel` watches the model by reference, not value. This is important to know when\n * binding inputs to models that are objects (e.g. `Date`) or collections (e.g. arrays). If only properties of the\n * object or collection change, `ngModel` will not be notified and so the input will not be  re-rendered.\n *\n * The model must be assigned an entirely new object or collection before a re-rendering will occur.\n *\n * Some directives have options that will cause them to use a custom `$watchCollection` on the model expression\n * - for example, `ngOptions` will do so when a `track by` clause is included in the comprehension expression or\n * if the select is given the `multiple` attribute.\n *\n * The `$watchCollection()` method only does a shallow comparison, meaning that changing properties deeper than the\n * first level of the object (or only changing the properties of an item in the collection if it's an array) will still\n * not trigger a re-rendering of the model.\n *\n * # CSS classes\n * The following CSS classes are added and removed on the associated input/select/textarea element\n * depending on the validity of the model.\n *\n *  - `ng-valid`: the model is valid\n *  - `ng-invalid`: the model is invalid\n *  - `ng-valid-[key]`: for each valid key added by `$setValidity`\n *  - `ng-invalid-[key]`: for each invalid key added by `$setValidity`\n *  - `ng-pristine`: the control hasn't been interacted with yet\n *  - `ng-dirty`: the control has been interacted with\n *  - `ng-touched`: the control has been blurred\n *  - `ng-untouched`: the control hasn't been blurred\n *  - `ng-pending`: any `$asyncValidators` are unfulfilled\n *  - `ng-empty`: the view does not contain a value or the value is deemed \"empty\", as defined\n *     by the {@link ngModel.NgModelController#$isEmpty} method\n *  - `ng-not-empty`: the view contains a non-empty value\n *\n * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n *\n * ## Animation Hooks\n *\n * Animations within models are triggered when any of the associated CSS classes are added and removed\n * on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,\n * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.\n * The animations that are triggered within ngModel are similar to how they work in ngClass and\n * animations can be hooked into using CSS transitions, keyframes as well as JS animations.\n *\n * The following example shows a simple way to utilize CSS transitions to style an input element\n * that has been rendered as invalid after it has been validated:\n *\n * <pre>\n * //be sure to include ngAnimate as a module to hook into more\n * //advanced animations\n * .my-input {\n *   transition:0.5s linear all;\n *   background: white;\n * }\n * .my-input.ng-invalid {\n *   background: red;\n *   color:white;\n * }\n * </pre>\n *\n * @example\n * <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"inputExample\" name=\"ng-model\">\n     <file name=\"index.html\">\n       <script>\n        angular.module('inputExample', [])\n          .controller('ExampleController', ['$scope', function($scope) {\n            $scope.val = '1';\n          }]);\n       </script>\n       <style>\n         .my-input {\n           transition:all linear 0.5s;\n           background: transparent;\n         }\n         .my-input.ng-invalid {\n           color:white;\n           background: red;\n         }\n       </style>\n       <p id=\"inputDescription\">\n        Update input to see transitions when valid/invalid.\n        Integer is a valid value.\n       </p>\n       <form name=\"testForm\" ng-controller=\"ExampleController\">\n         <input ng-model=\"val\" ng-pattern=\"/^\\d+$/\" name=\"anim\" class=\"my-input\"\n                aria-describedby=\"inputDescription\" />\n       </form>\n     </file>\n * </example>\n *\n * ## Binding to a getter/setter\n *\n * Sometimes it's helpful to bind `ngModel` to a getter/setter function.  A getter/setter is a\n * function that returns a representation of the model when called with zero arguments, and sets\n * the internal state of a model when called with an argument. It's sometimes useful to use this\n * for models that have an internal representation that's different from what the model exposes\n * to the view.\n *\n * <div class=\"alert alert-success\">\n * **Best Practice:** It's best to keep getters fast because Angular is likely to call them more\n * frequently than other parts of your code.\n * </div>\n *\n * You use this behavior by adding `ng-model-options=\"{ getterSetter: true }\"` to an element that\n * has `ng-model` attached to it. You can also add `ng-model-options=\"{ getterSetter: true }\"` to\n * a `<form>`, which will enable this behavior for all `<input>`s within it. See\n * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.\n *\n * The following example shows how to use `ngModel` with a getter/setter:\n *\n * @example\n * <example name=\"ngModel-getter-setter\" module=\"getterSetterExample\">\n     <file name=\"index.html\">\n       <div ng-controller=\"ExampleController\">\n         <form name=\"userForm\">\n           <label>Name:\n             <input type=\"text\" name=\"userName\"\n                    ng-model=\"user.name\"\n                    ng-model-options=\"{ getterSetter: true }\" />\n           </label>\n         </form>\n         <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n       </div>\n     </file>\n     <file name=\"app.js\">\n       angular.module('getterSetterExample', [])\n         .controller('ExampleController', ['$scope', function($scope) {\n           var _name = 'Brian';\n           $scope.user = {\n             name: function(newName) {\n              // Note that newName can be undefined for two reasons:\n              // 1. Because it is called as a getter and thus called with no arguments\n              // 2. Because the property should actually be set to undefined. This happens e.g. if the\n              //    input is invalid\n              return arguments.length ? (_name = newName) : _name;\n             }\n           };\n         }]);\n     </file>\n * </example>\n */\nvar ngModelDirective = ['$rootScope', function($rootScope) {\n  return {\n    restrict: 'A',\n    require: ['ngModel', '^?form', '^?ngModelOptions'],\n    controller: NgModelController,\n    // Prelink needs to run before any input directive\n    // so that we can set the NgModelOptions in NgModelController\n    // before anyone else uses it.\n    priority: 1,\n    compile: function ngModelCompile(element) {\n      // Setup initial state of the control\n      element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);\n\n      return {\n        pre: function ngModelPreLink(scope, element, attr, ctrls) {\n          var modelCtrl = ctrls[0],\n              formCtrl = ctrls[1] || modelCtrl.$$parentForm,\n              optionsCtrl = ctrls[2];\n\n          if (optionsCtrl) {\n            modelCtrl.$options = optionsCtrl.$options;\n          }\n\n          modelCtrl.$$initGetterSetters();\n\n          // notify others, especially parent forms\n          formCtrl.$addControl(modelCtrl);\n\n          attr.$observe('name', function(newValue) {\n            if (modelCtrl.$name !== newValue) {\n              modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue);\n            }\n          });\n\n          scope.$on('$destroy', function() {\n            modelCtrl.$$parentForm.$removeControl(modelCtrl);\n          });\n        },\n        post: function ngModelPostLink(scope, element, attr, ctrls) {\n          var modelCtrl = ctrls[0];\n          if (modelCtrl.$options.getOption('updateOn')) {\n            element.on(modelCtrl.$options.getOption('updateOn'), function(ev) {\n              modelCtrl.$$debounceViewValueCommit(ev && ev.type);\n            });\n          }\n\n          function setTouched() {\n            modelCtrl.$setTouched();\n          }\n\n          element.on('blur', function() {\n            if (modelCtrl.$touched) return;\n\n            if ($rootScope.$$phase) {\n              scope.$evalAsync(setTouched);\n            } else {\n              scope.$apply(setTouched);\n            }\n          });\n        }\n      };\n    }\n  };\n}];\n\n/* exported defaultModelOptions */\nvar defaultModelOptions;\nvar DEFAULT_REGEXP = /(\\s+|^)default(\\s+|$)/;\n\n/**\n * @ngdoc type\n * @name ModelOptions\n * @description\n * A container for the options set by the {@link ngModelOptions} directive\n */\nfunction ModelOptions(options) {\n  this.$$options = options;\n}\n\nModelOptions.prototype = {\n\n  /**\n   * @ngdoc method\n   * @name ModelOptions#getOption\n   * @param {string} name the name of the option to retrieve\n   * @returns {*} the value of the option\n   * @description\n   * Returns the value of the given option\n   */\n  getOption: function(name) {\n    return this.$$options[name];\n  },\n\n  /**\n   * @ngdoc method\n   * @name ModelOptions#createChild\n   * @param {Object} options a hash of options for the new child that will override the parent's options\n   * @return {ModelOptions} a new `ModelOptions` object initialized with the given options.\n   */\n  createChild: function(options) {\n    var inheritAll = false;\n\n    // make a shallow copy\n    options = extend({}, options);\n\n    // Inherit options from the parent if specified by the value `\"$inherit\"`\n    forEach(options, /* @this */ function(option, key) {\n      if (option === '$inherit') {\n        if (key === '*') {\n          inheritAll = true;\n        } else {\n          options[key] = this.$$options[key];\n          // `updateOn` is special so we must also inherit the `updateOnDefault` option\n          if (key === 'updateOn') {\n            options.updateOnDefault = this.$$options.updateOnDefault;\n          }\n        }\n      } else {\n        if (key === 'updateOn') {\n          // If the `updateOn` property contains the `default` event then we have to remove\n          // it from the event list and set the `updateOnDefault` flag.\n          options.updateOnDefault = false;\n          options[key] = trim(option.replace(DEFAULT_REGEXP, function() {\n            options.updateOnDefault = true;\n            return ' ';\n          }));\n        }\n      }\n    }, this);\n\n    if (inheritAll) {\n      // We have a property of the form: `\"*\": \"$inherit\"`\n      delete options['*'];\n      defaults(options, this.$$options);\n    }\n\n    // Finally add in any missing defaults\n    defaults(options, defaultModelOptions.$$options);\n\n    return new ModelOptions(options);\n  }\n};\n\n\ndefaultModelOptions = new ModelOptions({\n  updateOn: '',\n  updateOnDefault: true,\n  debounce: 0,\n  getterSetter: false,\n  allowInvalid: false,\n  timezone: null\n});\n\n\n/**\n * @ngdoc directive\n * @name ngModelOptions\n *\n * @description\n * This directive allows you to modify the behaviour of {@link ngModel} directives within your\n * application. You can specify an `ngModelOptions` directive on any element. All {@link ngModel}\n * directives will use the options of their nearest `ngModelOptions` ancestor.\n *\n * The `ngModelOptions` settings are found by evaluating the value of the attribute directive as\n * an Angular expression. This expression should evaluate to an object, whose properties contain\n * the settings. For example: `<div \"ng-model-options\"=\"{ debounce: 100 }\"`.\n *\n * ## Inheriting Options\n *\n * You can specify that an `ngModelOptions` setting should be inherited from a parent `ngModelOptions`\n * directive by giving it the value of `\"$inherit\"`.\n * Then it will inherit that setting from the first `ngModelOptions` directive found by traversing up the\n * DOM tree. If there is no ancestor element containing an `ngModelOptions` directive then default settings\n * will be used.\n *\n * For example given the following fragment of HTML\n *\n *\n * ```html\n * <div ng-model-options=\"{ allowInvalid: true, debounce: 200 }\">\n *   <form ng-model-options=\"{ updateOn: 'blur', allowInvalid: '$inherit' }\">\n *     <input ng-model-options=\"{ updateOn: 'default', allowInvalid: '$inherit' }\" />\n *   </form>\n * </div>\n * ```\n *\n * the `input` element will have the following settings\n *\n * ```js\n * { allowInvalid: true, updateOn: 'default', debounce: 0 }\n * ```\n *\n * Notice that the `debounce` setting was not inherited and used the default value instead.\n *\n * You can specify that all undefined settings are automatically inherited from an ancestor by\n * including a property with key of `\"*\"` and value of `\"$inherit\"`.\n *\n * For example given the following fragment of HTML\n *\n *\n * ```html\n * <div ng-model-options=\"{ allowInvalid: true, debounce: 200 }\">\n *   <form ng-model-options=\"{ updateOn: 'blur', \"*\": '$inherit' }\">\n *     <input ng-model-options=\"{ updateOn: 'default', \"*\": '$inherit' }\" />\n *   </form>\n * </div>\n * ```\n *\n * the `input` element will have the following settings\n *\n * ```js\n * { allowInvalid: true, updateOn: 'default', debounce: 200 }\n * ```\n *\n * Notice that the `debounce` setting now inherits the value from the outer `<div>` element.\n *\n * If you are creating a reusable component then you should be careful when using `\"*\": \"$inherit\"`\n * since you may inadvertently inherit a setting in the future that changes the behavior of your component.\n *\n *\n * ## Triggering and debouncing model updates\n *\n * The `updateOn` and `debounce` properties allow you to specify a custom list of events that will\n * trigger a model update and/or a debouncing delay so that the actual update only takes place when\n * a timer expires; this timer will be reset after another change takes place.\n *\n * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might\n * be different from the value in the actual model. This means that if you update the model you\n * should also invoke {@link ngModel.NgModelController#$rollbackViewValue} on the relevant input field in\n * order to make sure it is synchronized with the model and that any debounced action is canceled.\n *\n * The easiest way to reference the control's {@link ngModel.NgModelController#$rollbackViewValue}\n * method is by making sure the input is placed inside a form that has a `name` attribute. This is\n * important because `form` controllers are published to the related scope under the name in their\n * `name` attribute.\n *\n * Any pending changes will take place immediately when an enclosing form is submitted via the\n * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n * to have access to the updated model.\n *\n * The following example shows how to override immediate updates. Changes on the inputs within the\n * form will update the model only when the control loses focus (blur event). If `escape` key is\n * pressed while the input field is focused, the value is reset to the value in the current model.\n *\n * <example name=\"ngModelOptions-directive-blur\" module=\"optionsExample\">\n *   <file name=\"index.html\">\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"userForm\">\n *         <label>\n *           Name:\n *           <input type=\"text\" name=\"userName\"\n *                  ng-model=\"user.name\"\n *                  ng-model-options=\"{ updateOn: 'blur' }\"\n *                  ng-keyup=\"cancel($event)\" />\n *         </label><br />\n *         <label>\n *           Other data:\n *           <input type=\"text\" ng-model=\"user.data\" />\n *         </label><br />\n *       </form>\n *       <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n *     </div>\n *   </file>\n *   <file name=\"app.js\">\n *     angular.module('optionsExample', [])\n *       .controller('ExampleController', ['$scope', function($scope) {\n *         $scope.user = { name: 'say', data: '' };\n *\n *         $scope.cancel = function(e) {\n *           if (e.keyCode === 27) {\n *             $scope.userForm.userName.$rollbackViewValue();\n *           }\n *         };\n *       }]);\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *     var model = element(by.binding('user.name'));\n *     var input = element(by.model('user.name'));\n *     var other = element(by.model('user.data'));\n *\n *     it('should allow custom events', function() {\n *       input.sendKeys(' hello');\n *       input.click();\n *       expect(model.getText()).toEqual('say');\n *       other.click();\n *       expect(model.getText()).toEqual('say hello');\n *     });\n *\n *     it('should $rollbackViewValue when model changes', function() {\n *       input.sendKeys(' hello');\n *       expect(input.getAttribute('value')).toEqual('say hello');\n *       input.sendKeys(protractor.Key.ESCAPE);\n *       expect(input.getAttribute('value')).toEqual('say');\n *       other.click();\n *       expect(model.getText()).toEqual('say');\n *     });\n *   </file>\n * </example>\n *\n * The next example shows how to debounce model changes. Model will be updated only 1 sec after last change.\n * If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.\n *\n * <example name=\"ngModelOptions-directive-debounce\" module=\"optionsExample\">\n *   <file name=\"index.html\">\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"userForm\">\n *         Name:\n *         <input type=\"text\" name=\"userName\"\n *                ng-model=\"user.name\"\n *                ng-model-options=\"{ debounce: 1000 }\" />\n *         <button ng-click=\"userForm.userName.$rollbackViewValue(); user.name=''\">Clear</button><br />\n *       </form>\n *       <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n *     </div>\n *   </file>\n *   <file name=\"app.js\">\n *     angular.module('optionsExample', [])\n *       .controller('ExampleController', ['$scope', function($scope) {\n *         $scope.user = { name: 'say' };\n *       }]);\n *   </file>\n * </example>\n *\n * ## Model updates and validation\n *\n * The default behaviour in `ngModel` is that the model value is set to `undefined` when the\n * validation determines that the value is invalid. By setting the `allowInvalid` property to true,\n * the model will still be updated even if the value is invalid.\n *\n *\n * ## Connecting to the scope\n *\n * By setting the `getterSetter` property to true you are telling ngModel that the `ngModel` expression\n * on the scope refers to a \"getter/setter\" function rather than the value itself.\n *\n * The following example shows how to bind to getter/setters:\n *\n * <example name=\"ngModelOptions-directive-getter-setter\" module=\"getterSetterExample\">\n *   <file name=\"index.html\">\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"userForm\">\n *         <label>\n *           Name:\n *           <input type=\"text\" name=\"userName\"\n *                  ng-model=\"user.name\"\n *                  ng-model-options=\"{ getterSetter: true }\" />\n *         </label>\n *       </form>\n *       <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n *     </div>\n *   </file>\n *   <file name=\"app.js\">\n *     angular.module('getterSetterExample', [])\n *       .controller('ExampleController', ['$scope', function($scope) {\n *         var _name = 'Brian';\n *         $scope.user = {\n *           name: function(newName) {\n *             return angular.isDefined(newName) ? (_name = newName) : _name;\n *           }\n *         };\n *       }]);\n *   </file>\n * </example>\n *\n *\n * ## Specifying timezones\n *\n * You can specify the timezone that date/time input directives expect by providing its name in the\n * `timezone` property.\n *\n * @param {Object} ngModelOptions options to apply to {@link ngModel} directives on this element and\n *   and its descendents. Valid keys are:\n *   - `updateOn`: string specifying which event should the input be bound to. You can set several\n *     events using an space delimited list. There is a special event called `default` that\n *     matches the default events belonging to the control.\n *   - `debounce`: integer value which contains the debounce model update value in milliseconds. A\n *     value of 0 triggers an immediate update. If an object is supplied instead, you can specify a\n *     custom value for each event. For example:\n *     ```\n *     ng-model-options=\"{\n *       updateOn: 'default blur',\n *       debounce: { 'default': 500, 'blur': 0 }\n *     }\"\n *     ```\n *   - `allowInvalid`: boolean value which indicates that the model can be set with values that did\n *     not validate correctly instead of the default behavior of setting the model to undefined.\n *   - `getterSetter`: boolean value which determines whether or not to treat functions bound to\n *     `ngModel` as getters/setters.\n *   - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for\n *     `<input type=\"date\" />`, `<input type=\"time\" />`, ... . It understands UTC/GMT and the\n *     continental US time zone abbreviations, but for general use, use a time zone offset, for\n *     example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n *     If not specified, the timezone of the browser will be used.\n *\n */\nvar ngModelOptionsDirective = function() {\n  NgModelOptionsController.$inject = ['$attrs', '$scope'];\n  function NgModelOptionsController($attrs, $scope) {\n    this.$$attrs = $attrs;\n    this.$$scope = $scope;\n  }\n  NgModelOptionsController.prototype = {\n    $onInit: function() {\n      var parentOptions = this.parentCtrl ? this.parentCtrl.$options : defaultModelOptions;\n      var modelOptionsDefinition = this.$$scope.$eval(this.$$attrs.ngModelOptions);\n\n      this.$options = parentOptions.createChild(modelOptionsDefinition);\n    }\n  };\n\n  return {\n    restrict: 'A',\n    // ngModelOptions needs to run before ngModel and input directives\n    priority: 10,\n    require: {parentCtrl: '?^^ngModelOptions'},\n    bindToController: true,\n    controller: NgModelOptionsController\n  };\n};\n\n\n// shallow copy over values from `src` that are not already specified on `dst`\nfunction defaults(dst, src) {\n  forEach(src, function(value, key) {\n    if (!isDefined(dst[key])) {\n      dst[key] = value;\n    }\n  });\n}\n\n/**\n * @ngdoc directive\n * @name ngNonBindable\n * @restrict AC\n * @priority 1000\n *\n * @description\n * The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current\n * DOM element. This is useful if the element contains what appears to be Angular directives and\n * bindings but which should be ignored by Angular. This could be the case if you have a site that\n * displays snippets of code, for instance.\n *\n * @element ANY\n *\n * @example\n * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,\n * but the one wrapped in `ngNonBindable` is left alone.\n *\n * @example\n    <example name=\"ng-non-bindable\">\n      <file name=\"index.html\">\n        <div>Normal: {{1 + 2}}</div>\n        <div ng-non-bindable>Ignored: {{1 + 2}}</div>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n       it('should check ng-non-bindable', function() {\n         expect(element(by.binding('1 + 2')).getText()).toContain('3');\n         expect(element.all(by.css('div')).last().getText()).toMatch(/1 \\+ 2/);\n       });\n      </file>\n    </example>\n */\nvar ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });\n\n/* exported ngOptionsDirective */\n\n/* global jqLiteRemove */\n\nvar ngOptionsMinErr = minErr('ngOptions');\n\n/**\n * @ngdoc directive\n * @name ngOptions\n * @restrict A\n *\n * @description\n *\n * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`\n * elements for the `<select>` element using the array or object obtained by evaluating the\n * `ngOptions` comprehension expression.\n *\n * In many cases, {@link ng.directive:ngRepeat ngRepeat} can be used on `<option>` elements instead of\n * `ngOptions` to achieve a similar result. However, `ngOptions` provides some benefits:\n * - more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n * comprehension expression\n * - reduced memory consumption by not creating a new scope for each repeated instance\n * - increased render speed by creating the options in a documentFragment instead of individually\n *\n * When an item in the `<select>` menu is selected, the array element or object property\n * represented by the selected option will be bound to the model identified by the `ngModel`\n * directive.\n *\n * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n * option. See example below for demonstration.\n *\n * ## Complex Models (objects or collections)\n *\n * By default, `ngModel` watches the model by reference, not value. This is important to know when\n * binding the select to a model that is an object or a collection.\n *\n * One issue occurs if you want to preselect an option. For example, if you set\n * the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,\n * because the objects are not identical. So by default, you should always reference the item in your collection\n * for preselections, e.g.: `$scope.selected = $scope.collection[3]`.\n *\n * Another solution is to use a `track by` clause, because then `ngOptions` will track the identity\n * of the item not by reference, but by the result of the `track by` expression. For example, if your\n * collection items have an id property, you would `track by item.id`.\n *\n * A different issue with objects or collections is that ngModel won't detect if an object property or\n * a collection item changes. For that reason, `ngOptions` additionally watches the model using\n * `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.\n * This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection\n * has not changed identity, but only a property on the object or an item in the collection changes.\n *\n * Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection\n * if the model is an array). This means that changing a property deeper than the first level inside the\n * object/collection will not trigger a re-rendering.\n *\n * ## `select` **`as`**\n *\n * Using `select` **`as`** will bind the result of the `select` expression to the model, but\n * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)\n * or property name (for object data sources) of the value within the collection. If a **`track by`** expression\n * is used, the result of that expression will be set as the value of the `option` and `select` elements.\n *\n *\n * ### `select` **`as`** and **`track by`**\n *\n * <div class=\"alert alert-warning\">\n * Be careful when using `select` **`as`** and **`track by`** in the same expression.\n * </div>\n *\n * Given this array of items on the $scope:\n *\n * ```js\n * $scope.items = [{\n *   id: 1,\n *   label: 'aLabel',\n *   subItem: { name: 'aSubItem' }\n * }, {\n *   id: 2,\n *   label: 'bLabel',\n *   subItem: { name: 'bSubItem' }\n * }];\n * ```\n *\n * This will work:\n *\n * ```html\n * <select ng-options=\"item as item.label for item in items track by item.id\" ng-model=\"selected\"></select>\n * ```\n * ```js\n * $scope.selected = $scope.items[0];\n * ```\n *\n * but this will not work:\n *\n * ```html\n * <select ng-options=\"item.subItem as item.label for item in items track by item.id\" ng-model=\"selected\"></select>\n * ```\n * ```js\n * $scope.selected = $scope.items[0].subItem;\n * ```\n *\n * In both examples, the **`track by`** expression is applied successfully to each `item` in the\n * `items` array. Because the selected option has been set programmatically in the controller, the\n * **`track by`** expression is also applied to the `ngModel` value. In the first example, the\n * `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with\n * no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**\n * expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value\n * is not matched against any `<option>` and the `<select>` appears as having no selected value.\n *\n *\n * @param {string} ngModel Assignable angular expression to data-bind to.\n * @param {string=} name Property name of the form under which the control is published.\n * @param {string=} required The control is considered valid only if value is entered.\n * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n *    `required` when you want to data-bind to the `required` attribute.\n * @param {comprehension_expression=} ngOptions in one of the following forms:\n *\n *   * for array data sources:\n *     * `label` **`for`** `value` **`in`** `array`\n *     * `select` **`as`** `label` **`for`** `value` **`in`** `array`\n *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array`\n *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`\n *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n *     * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`\n *        (for including a filter with `track by`)\n *   * for object data sources:\n *     * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n *     * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n *     * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`\n *     * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`\n *     * `select` **`as`** `label` **`group by`** `group`\n *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n *     * `select` **`as`** `label` **`disable when`** `disable`\n *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n *\n * Where:\n *\n *   * `array` / `object`: an expression which evaluates to an array / object to iterate over.\n *   * `value`: local variable which will refer to each item in the `array` or each property value\n *      of `object` during iteration.\n *   * `key`: local variable which will refer to a property name in `object` during iteration.\n *   * `label`: The result of this expression will be the label for `<option>` element. The\n *     `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).\n *   * `select`: The result of this expression will be bound to the model of the parent `<select>`\n *      element. If not specified, `select` expression will default to `value`.\n *   * `group`: The result of this expression will be used to group options using the `<optgroup>`\n *      DOM element.\n *   * `disable`: The result of this expression will be used to disable the rendered `<option>`\n *      element. Return `true` to disable.\n *   * `trackexpr`: Used when working with an array of objects. The result of this expression will be\n *      used to identify the objects in the array. The `trackexpr` will most likely refer to the\n *     `value` variable (e.g. `value.propertyName`). With this the selection is preserved\n *      even when the options are recreated (e.g. reloaded from the server).\n *\n * @example\n    <example module=\"selectExample\" name=\"select\">\n      <file name=\"index.html\">\n        <script>\n        angular.module('selectExample', [])\n          .controller('ExampleController', ['$scope', function($scope) {\n            $scope.colors = [\n              {name:'black', shade:'dark'},\n              {name:'white', shade:'light', notAnOption: true},\n              {name:'red', shade:'dark'},\n              {name:'blue', shade:'dark', notAnOption: true},\n              {name:'yellow', shade:'light', notAnOption: false}\n            ];\n            $scope.myColor = $scope.colors[2]; // red\n          }]);\n        </script>\n        <div ng-controller=\"ExampleController\">\n          <ul>\n            <li ng-repeat=\"color in colors\">\n              <label>Name: <input ng-model=\"color.name\"></label>\n              <label><input type=\"checkbox\" ng-model=\"color.notAnOption\"> Disabled?</label>\n              <button ng-click=\"colors.splice($index, 1)\" aria-label=\"Remove\">X</button>\n            </li>\n            <li>\n              <button ng-click=\"colors.push({})\">add</button>\n            </li>\n          </ul>\n          <hr/>\n          <label>Color (null not allowed):\n            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\"></select>\n          </label><br/>\n          <label>Color (null allowed):\n          <span  class=\"nullable\">\n            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\">\n              <option value=\"\">-- choose color --</option>\n            </select>\n          </span></label><br/>\n\n          <label>Color grouped by shade:\n            <select ng-model=\"myColor\" ng-options=\"color.name group by color.shade for color in colors\">\n            </select>\n          </label><br/>\n\n          <label>Color grouped by shade, with some disabled:\n            <select ng-model=\"myColor\"\n                  ng-options=\"color.name group by color.shade disable when color.notAnOption for color in colors\">\n            </select>\n          </label><br/>\n\n\n\n          Select <button ng-click=\"myColor = { name:'not in list', shade: 'other' }\">bogus</button>.\n          <br/>\n          <hr/>\n          Currently selected: {{ {selected_color:myColor} }}\n          <div style=\"border:solid 1px black; height:20px\"\n               ng-style=\"{'background-color':myColor.name}\">\n          </div>\n        </div>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n         it('should check ng-options', function() {\n           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');\n           element.all(by.model('myColor')).first().click();\n           element.all(by.css('select[ng-model=\"myColor\"] option')).first().click();\n           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');\n           element(by.css('.nullable select[ng-model=\"myColor\"]')).click();\n           element.all(by.css('.nullable select[ng-model=\"myColor\"] option')).first().click();\n           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');\n         });\n      </file>\n    </example>\n */\n\n/* eslint-disable max-len */\n//                     //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555000000000666666666666600000007777777777777000000000000000888888888800000000000000000009999999999\nvar NG_OPTIONS_REGEXP = /^\\s*([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+group\\s+by\\s+([\\s\\S]+?))?(?:\\s+disable\\s+when\\s+([\\s\\S]+?))?\\s+for\\s+(?:([$\\w][$\\w]*)|(?:\\(\\s*([$\\w][$\\w]*)\\s*,\\s*([$\\w][$\\w]*)\\s*\\)))\\s+in\\s+([\\s\\S]+?)(?:\\s+track\\s+by\\s+([\\s\\S]+?))?$/;\n                        // 1: value expression (valueFn)\n                        // 2: label expression (displayFn)\n                        // 3: group by expression (groupByFn)\n                        // 4: disable when expression (disableWhenFn)\n                        // 5: array item variable name\n                        // 6: object item key variable name\n                        // 7: object item value variable name\n                        // 8: collection expression\n                        // 9: track by expression\n/* eslint-enable */\n\n\nvar ngOptionsDirective = ['$compile', '$document', '$parse', function($compile, $document, $parse) {\n\n  function parseOptionsExpression(optionsExp, selectElement, scope) {\n\n    var match = optionsExp.match(NG_OPTIONS_REGEXP);\n    if (!(match)) {\n      throw ngOptionsMinErr('iexp',\n        'Expected expression in form of ' +\n        '\\'_select_ (as _label_)? for (_key_,)?_value_ in _collection_\\'' +\n        ' but got \\'{0}\\'. Element: {1}',\n        optionsExp, startingTag(selectElement));\n    }\n\n    // Extract the parts from the ngOptions expression\n\n    // The variable name for the value of the item in the collection\n    var valueName = match[5] || match[7];\n    // The variable name for the key of the item in the collection\n    var keyName = match[6];\n\n    // An expression that generates the viewValue for an option if there is a label expression\n    var selectAs = / as /.test(match[0]) && match[1];\n    // An expression that is used to track the id of each object in the options collection\n    var trackBy = match[9];\n    // An expression that generates the viewValue for an option if there is no label expression\n    var valueFn = $parse(match[2] ? match[1] : valueName);\n    var selectAsFn = selectAs && $parse(selectAs);\n    var viewValueFn = selectAsFn || valueFn;\n    var trackByFn = trackBy && $parse(trackBy);\n\n    // Get the value by which we are going to track the option\n    // if we have a trackFn then use that (passing scope and locals)\n    // otherwise just hash the given viewValue\n    var getTrackByValueFn = trackBy ?\n                              function(value, locals) { return trackByFn(scope, locals); } :\n                              function getHashOfValue(value) { return hashKey(value); };\n    var getTrackByValue = function(value, key) {\n      return getTrackByValueFn(value, getLocals(value, key));\n    };\n\n    var displayFn = $parse(match[2] || match[1]);\n    var groupByFn = $parse(match[3] || '');\n    var disableWhenFn = $parse(match[4] || '');\n    var valuesFn = $parse(match[8]);\n\n    var locals = {};\n    var getLocals = keyName ? function(value, key) {\n      locals[keyName] = key;\n      locals[valueName] = value;\n      return locals;\n    } : function(value) {\n      locals[valueName] = value;\n      return locals;\n    };\n\n\n    function Option(selectValue, viewValue, label, group, disabled) {\n      this.selectValue = selectValue;\n      this.viewValue = viewValue;\n      this.label = label;\n      this.group = group;\n      this.disabled = disabled;\n    }\n\n    function getOptionValuesKeys(optionValues) {\n      var optionValuesKeys;\n\n      if (!keyName && isArrayLike(optionValues)) {\n        optionValuesKeys = optionValues;\n      } else {\n        // if object, extract keys, in enumeration order, unsorted\n        optionValuesKeys = [];\n        for (var itemKey in optionValues) {\n          if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {\n            optionValuesKeys.push(itemKey);\n          }\n        }\n      }\n      return optionValuesKeys;\n    }\n\n    return {\n      trackBy: trackBy,\n      getTrackByValue: getTrackByValue,\n      getWatchables: $parse(valuesFn, function(optionValues) {\n        // Create a collection of things that we would like to watch (watchedArray)\n        // so that they can all be watched using a single $watchCollection\n        // that only runs the handler once if anything changes\n        var watchedArray = [];\n        optionValues = optionValues || [];\n\n        var optionValuesKeys = getOptionValuesKeys(optionValues);\n        var optionValuesLength = optionValuesKeys.length;\n        for (var index = 0; index < optionValuesLength; index++) {\n          var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];\n          var value = optionValues[key];\n\n          var locals = getLocals(value, key);\n          var selectValue = getTrackByValueFn(value, locals);\n          watchedArray.push(selectValue);\n\n          // Only need to watch the displayFn if there is a specific label expression\n          if (match[2] || match[1]) {\n            var label = displayFn(scope, locals);\n            watchedArray.push(label);\n          }\n\n          // Only need to watch the disableWhenFn if there is a specific disable expression\n          if (match[4]) {\n            var disableWhen = disableWhenFn(scope, locals);\n            watchedArray.push(disableWhen);\n          }\n        }\n        return watchedArray;\n      }),\n\n      getOptions: function() {\n\n        var optionItems = [];\n        var selectValueMap = {};\n\n        // The option values were already computed in the `getWatchables` fn,\n        // which must have been called to trigger `getOptions`\n        var optionValues = valuesFn(scope) || [];\n        var optionValuesKeys = getOptionValuesKeys(optionValues);\n        var optionValuesLength = optionValuesKeys.length;\n\n        for (var index = 0; index < optionValuesLength; index++) {\n          var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];\n          var value = optionValues[key];\n          var locals = getLocals(value, key);\n          var viewValue = viewValueFn(scope, locals);\n          var selectValue = getTrackByValueFn(viewValue, locals);\n          var label = displayFn(scope, locals);\n          var group = groupByFn(scope, locals);\n          var disabled = disableWhenFn(scope, locals);\n          var optionItem = new Option(selectValue, viewValue, label, group, disabled);\n\n          optionItems.push(optionItem);\n          selectValueMap[selectValue] = optionItem;\n        }\n\n        return {\n          items: optionItems,\n          selectValueMap: selectValueMap,\n          getOptionFromViewValue: function(value) {\n            return selectValueMap[getTrackByValue(value)];\n          },\n          getViewValueFromOption: function(option) {\n            // If the viewValue could be an object that may be mutated by the application,\n            // we need to make a copy and not return the reference to the value on the option.\n            return trackBy ? copy(option.viewValue) : option.viewValue;\n          }\n        };\n      }\n    };\n  }\n\n\n  // we can't just jqLite('<option>') since jqLite is not smart enough\n  // to create it in <select> and IE barfs otherwise.\n  var optionTemplate = window.document.createElement('option'),\n      optGroupTemplate = window.document.createElement('optgroup');\n\n    function ngOptionsPostLink(scope, selectElement, attr, ctrls) {\n\n      var selectCtrl = ctrls[0];\n      var ngModelCtrl = ctrls[1];\n      var multiple = attr.multiple;\n\n      // The emptyOption allows the application developer to provide their own custom \"empty\"\n      // option when the viewValue does not match any of the option values.\n      for (var i = 0, children = selectElement.children(), ii = children.length; i < ii; i++) {\n        if (children[i].value === '') {\n          selectCtrl.hasEmptyOption = true;\n          selectCtrl.emptyOption = children.eq(i);\n          break;\n        }\n      }\n\n      var providedEmptyOption = !!selectCtrl.emptyOption;\n\n      var unknownOption = jqLite(optionTemplate.cloneNode(false));\n      unknownOption.val('?');\n\n      var options;\n      var ngOptions = parseOptionsExpression(attr.ngOptions, selectElement, scope);\n      // This stores the newly created options before they are appended to the select.\n      // Since the contents are removed from the fragment when it is appended,\n      // we only need to create it once.\n      var listFragment = $document[0].createDocumentFragment();\n\n      // Overwrite the implementation. ngOptions doesn't use hashes\n      selectCtrl.generateUnknownOptionValue = function(val) {\n        return '?';\n      };\n\n      // Update the controller methods for multiple selectable options\n      if (!multiple) {\n\n        selectCtrl.writeValue = function writeNgOptionsValue(value) {\n          var selectedOption = options.selectValueMap[selectElement.val()];\n          var option = options.getOptionFromViewValue(value);\n\n          // Make sure to remove the selected attribute from the previously selected option\n          // Otherwise, screen readers might get confused\n          if (selectedOption) selectedOption.element.removeAttribute('selected');\n\n          if (option) {\n            // Don't update the option when it is already selected.\n            // For example, the browser will select the first option by default. In that case,\n            // most properties are set automatically - except the `selected` attribute, which we\n            // set always\n\n            if (selectElement[0].value !== option.selectValue) {\n              selectCtrl.removeUnknownOption();\n              selectCtrl.unselectEmptyOption();\n\n              selectElement[0].value = option.selectValue;\n              option.element.selected = true;\n            }\n\n            option.element.setAttribute('selected', 'selected');\n          } else {\n\n            if (providedEmptyOption) {\n              selectCtrl.selectEmptyOption();\n            } else if (selectCtrl.unknownOption.parent().length) {\n              selectCtrl.updateUnknownOption(value);\n            } else {\n              selectCtrl.renderUnknownOption(value);\n            }\n          }\n        };\n\n        selectCtrl.readValue = function readNgOptionsValue() {\n\n          var selectedOption = options.selectValueMap[selectElement.val()];\n\n          if (selectedOption && !selectedOption.disabled) {\n            selectCtrl.unselectEmptyOption();\n            selectCtrl.removeUnknownOption();\n            return options.getViewValueFromOption(selectedOption);\n          }\n          return null;\n        };\n\n        // If we are using `track by` then we must watch the tracked value on the model\n        // since ngModel only watches for object identity change\n        // FIXME: When a user selects an option, this watch will fire needlessly\n        if (ngOptions.trackBy) {\n          scope.$watch(\n            function() { return ngOptions.getTrackByValue(ngModelCtrl.$viewValue); },\n            function() { ngModelCtrl.$render(); }\n          );\n        }\n\n      } else {\n\n        selectCtrl.writeValue = function writeNgOptionsMultiple(values) {\n          // Only set `<option>.selected` if necessary, in order to prevent some browsers from\n          // scrolling to `<option>` elements that are outside the `<select>` element's viewport.\n\n          var selectedOptions = values && values.map(getAndUpdateSelectedOption) || [];\n\n          options.items.forEach(function(option) {\n            if (option.element.selected && !includes(selectedOptions, option)) {\n              option.element.selected = false;\n            }\n          });\n        };\n\n\n        selectCtrl.readValue = function readNgOptionsMultiple() {\n          var selectedValues = selectElement.val() || [],\n              selections = [];\n\n          forEach(selectedValues, function(value) {\n            var option = options.selectValueMap[value];\n            if (option && !option.disabled) selections.push(options.getViewValueFromOption(option));\n          });\n\n          return selections;\n        };\n\n        // If we are using `track by` then we must watch these tracked values on the model\n        // since ngModel only watches for object identity change\n        if (ngOptions.trackBy) {\n\n          scope.$watchCollection(function() {\n            if (isArray(ngModelCtrl.$viewValue)) {\n              return ngModelCtrl.$viewValue.map(function(value) {\n                return ngOptions.getTrackByValue(value);\n              });\n            }\n          }, function() {\n            ngModelCtrl.$render();\n          });\n\n        }\n      }\n\n      if (providedEmptyOption) {\n\n        // we need to remove it before calling selectElement.empty() because otherwise IE will\n        // remove the label from the element. wtf?\n        selectCtrl.emptyOption.remove();\n\n        // compile the element since there might be bindings in it\n        $compile(selectCtrl.emptyOption)(scope);\n\n        if (selectCtrl.emptyOption[0].nodeType === NODE_TYPE_COMMENT) {\n          // This means the empty option has currently no actual DOM node, probably because\n          // it has been modified by a transclusion directive.\n          selectCtrl.hasEmptyOption = false;\n\n          // Redefine the registerOption function, which will catch\n          // options that are added by ngIf etc. (rendering of the node is async because of\n          // lazy transclusion)\n          selectCtrl.registerOption = function(optionScope, optionEl) {\n            if (optionEl.val() === '') {\n              selectCtrl.hasEmptyOption = true;\n              selectCtrl.emptyOption = optionEl;\n              selectCtrl.emptyOption.removeClass('ng-scope');\n              // This ensures the new empty option is selected if previously no option was selected\n              ngModelCtrl.$render();\n\n              optionEl.on('$destroy', function() {\n                selectCtrl.hasEmptyOption = false;\n                selectCtrl.emptyOption = undefined;\n              });\n            }\n          };\n\n        } else {\n          // remove the class, which is added automatically because we recompile the element and it\n          // becomes the compilation root\n          selectCtrl.emptyOption.removeClass('ng-scope');\n        }\n\n      }\n\n      selectElement.empty();\n\n      // We need to do this here to ensure that the options object is defined\n      // when we first hit it in writeNgOptionsValue\n      updateOptions();\n\n      // We will re-render the option elements if the option values or labels change\n      scope.$watchCollection(ngOptions.getWatchables, updateOptions);\n\n      // ------------------------------------------------------------------ //\n\n      function addOptionElement(option, parent) {\n        var optionElement = optionTemplate.cloneNode(false);\n        parent.appendChild(optionElement);\n        updateOptionElement(option, optionElement);\n      }\n\n      function getAndUpdateSelectedOption(viewValue) {\n        var option = options.getOptionFromViewValue(viewValue);\n        var element = option && option.element;\n\n        if (element && !element.selected) element.selected = true;\n\n        return option;\n      }\n\n      function updateOptionElement(option, element) {\n        option.element = element;\n        element.disabled = option.disabled;\n        // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive\n        // selects in certain circumstances when multiple selects are next to each other and display\n        // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].\n        // See https://github.com/angular/angular.js/issues/11314 for more info.\n        // This is unfortunately untestable with unit / e2e tests\n        if (option.label !== element.label) {\n          element.label = option.label;\n          element.textContent = option.label;\n        }\n        element.value = option.selectValue;\n      }\n\n      function updateOptions() {\n        var previousValue = options && selectCtrl.readValue();\n\n        // We must remove all current options, but cannot simply set innerHTML = null\n        // since the providedEmptyOption might have an ngIf on it that inserts comments which we\n        // must preserve.\n        // Instead, iterate over the current option elements and remove them or their optgroup\n        // parents\n        if (options) {\n\n          for (var i = options.items.length - 1; i >= 0; i--) {\n            var option = options.items[i];\n            if (isDefined(option.group)) {\n              jqLiteRemove(option.element.parentNode);\n            } else {\n              jqLiteRemove(option.element);\n            }\n          }\n        }\n\n        options = ngOptions.getOptions();\n\n        var groupElementMap = {};\n\n        // Ensure that the empty option is always there if it was explicitly provided\n        if (providedEmptyOption) {\n          selectElement.prepend(selectCtrl.emptyOption);\n        }\n\n        options.items.forEach(function addOption(option) {\n          var groupElement;\n\n          if (isDefined(option.group)) {\n\n            // This option is to live in a group\n            // See if we have already created this group\n            groupElement = groupElementMap[option.group];\n\n            if (!groupElement) {\n\n              groupElement = optGroupTemplate.cloneNode(false);\n              listFragment.appendChild(groupElement);\n\n              // Update the label on the group element\n              // \"null\" is special cased because of Safari\n              groupElement.label = option.group === null ? 'null' : option.group;\n\n              // Store it for use later\n              groupElementMap[option.group] = groupElement;\n            }\n\n            addOptionElement(option, groupElement);\n\n          } else {\n\n            // This option is not in a group\n            addOptionElement(option, listFragment);\n          }\n        });\n\n        selectElement[0].appendChild(listFragment);\n\n        ngModelCtrl.$render();\n\n        // Check to see if the value has changed due to the update to the options\n        if (!ngModelCtrl.$isEmpty(previousValue)) {\n          var nextValue = selectCtrl.readValue();\n          var isNotPrimitive = ngOptions.trackBy || multiple;\n          if (isNotPrimitive ? !equals(previousValue, nextValue) : previousValue !== nextValue) {\n            ngModelCtrl.$setViewValue(nextValue);\n            ngModelCtrl.$render();\n          }\n        }\n\n      }\n  }\n\n  return {\n    restrict: 'A',\n    terminal: true,\n    require: ['select', 'ngModel'],\n    link: {\n      pre: function ngOptionsPreLink(scope, selectElement, attr, ctrls) {\n        // Deactivate the SelectController.register method to prevent\n        // option directives from accidentally registering themselves\n        // (and unwanted $destroy handlers etc.)\n        ctrls[0].registerOption = noop;\n      },\n      post: ngOptionsPostLink\n    }\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name ngPluralize\n * @restrict EA\n *\n * @description\n * `ngPluralize` is a directive that displays messages according to en-US localization rules.\n * These rules are bundled with angular.js, but can be overridden\n * (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive\n * by specifying the mappings between\n * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n * and the strings to be displayed.\n *\n * # Plural categories and explicit number rules\n * There are two\n * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n * in Angular's default en-US locale: \"one\" and \"other\".\n *\n * While a plural category may match many numbers (for example, in en-US locale, \"other\" can match\n * any number that is not 1), an explicit number rule can only match one number. For example, the\n * explicit number rule for \"3\" matches the number 3. There are examples of plural categories\n * and explicit number rules throughout the rest of this documentation.\n *\n * # Configuring ngPluralize\n * You configure ngPluralize by providing 2 attributes: `count` and `when`.\n * You can also provide an optional attribute, `offset`.\n *\n * The value of the `count` attribute can be either a string or an {@link guide/expression\n * Angular expression}; these are evaluated on the current scope for its bound value.\n *\n * The `when` attribute specifies the mappings between plural categories and the actual\n * string to be displayed. The value of the attribute should be a JSON object.\n *\n * The following example shows how to configure ngPluralize:\n *\n * ```html\n * <ng-pluralize count=\"personCount\"\n                 when=\"{'0': 'Nobody is viewing.',\n *                      'one': '1 person is viewing.',\n *                      'other': '{} people are viewing.'}\">\n * </ng-pluralize>\n *```\n *\n * In the example, `\"0: Nobody is viewing.\"` is an explicit number rule. If you did not\n * specify this rule, 0 would be matched to the \"other\" category and \"0 people are viewing\"\n * would be shown instead of \"Nobody is viewing\". You can specify an explicit number rule for\n * other numbers, for example 12, so that instead of showing \"12 people are viewing\", you can\n * show \"a dozen people are viewing\".\n *\n * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted\n * into pluralized strings. In the previous example, Angular will replace `{}` with\n * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder\n * for <span ng-non-bindable>{{numberExpression}}</span>.\n *\n * If no rule is defined for a category, then an empty string is displayed and a warning is generated.\n * Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.\n *\n * # Configuring ngPluralize with offset\n * The `offset` attribute allows further customization of pluralized text, which can result in\n * a better user experience. For example, instead of the message \"4 people are viewing this document\",\n * you might display \"John, Kate and 2 others are viewing this document\".\n * The offset attribute allows you to offset a number by any desired value.\n * Let's take a look at an example:\n *\n * ```html\n * <ng-pluralize count=\"personCount\" offset=2\n *               when=\"{'0': 'Nobody is viewing.',\n *                      '1': '{{person1}} is viewing.',\n *                      '2': '{{person1}} and {{person2}} are viewing.',\n *                      'one': '{{person1}}, {{person2}} and one other person are viewing.',\n *                      'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n * </ng-pluralize>\n * ```\n *\n * Notice that we are still using two plural categories(one, other), but we added\n * three explicit number rules 0, 1 and 2.\n * When one person, perhaps John, views the document, \"John is viewing\" will be shown.\n * When three people view the document, no explicit number rule is found, so\n * an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.\n * In this case, plural category 'one' is matched and \"John, Mary and one other person are viewing\"\n * is shown.\n *\n * Note that when you specify offsets, you must provide explicit number rules for\n * numbers from 0 up to and including the offset. If you use an offset of 3, for example,\n * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for\n * plural categories \"one\" and \"other\".\n *\n * @param {string|expression} count The variable to be bound to.\n * @param {string} when The mapping between plural category to its corresponding strings.\n * @param {number=} offset Offset to deduct from the total number.\n *\n * @example\n    <example module=\"pluralizeExample\" name=\"ng-pluralize\">\n      <file name=\"index.html\">\n        <script>\n          angular.module('pluralizeExample', [])\n            .controller('ExampleController', ['$scope', function($scope) {\n              $scope.person1 = 'Igor';\n              $scope.person2 = 'Misko';\n              $scope.personCount = 1;\n            }]);\n        </script>\n        <div ng-controller=\"ExampleController\">\n          <label>Person 1:<input type=\"text\" ng-model=\"person1\" value=\"Igor\" /></label><br/>\n          <label>Person 2:<input type=\"text\" ng-model=\"person2\" value=\"Misko\" /></label><br/>\n          <label>Number of People:<input type=\"text\" ng-model=\"personCount\" value=\"1\" /></label><br/>\n\n          <!--- Example with simple pluralization rules for en locale --->\n          Without Offset:\n          <ng-pluralize count=\"personCount\"\n                        when=\"{'0': 'Nobody is viewing.',\n                               'one': '1 person is viewing.',\n                               'other': '{} people are viewing.'}\">\n          </ng-pluralize><br>\n\n          <!--- Example with offset --->\n          With Offset(2):\n          <ng-pluralize count=\"personCount\" offset=2\n                        when=\"{'0': 'Nobody is viewing.',\n                               '1': '{{person1}} is viewing.',\n                               '2': '{{person1}} and {{person2}} are viewing.',\n                               'one': '{{person1}}, {{person2}} and one other person are viewing.',\n                               'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n          </ng-pluralize>\n        </div>\n      </file>\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should show correct pluralized string', function() {\n          var withoutOffset = element.all(by.css('ng-pluralize')).get(0);\n          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n          var countInput = element(by.model('personCount'));\n\n          expect(withoutOffset.getText()).toEqual('1 person is viewing.');\n          expect(withOffset.getText()).toEqual('Igor is viewing.');\n\n          countInput.clear();\n          countInput.sendKeys('0');\n\n          expect(withoutOffset.getText()).toEqual('Nobody is viewing.');\n          expect(withOffset.getText()).toEqual('Nobody is viewing.');\n\n          countInput.clear();\n          countInput.sendKeys('2');\n\n          expect(withoutOffset.getText()).toEqual('2 people are viewing.');\n          expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');\n\n          countInput.clear();\n          countInput.sendKeys('3');\n\n          expect(withoutOffset.getText()).toEqual('3 people are viewing.');\n          expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');\n\n          countInput.clear();\n          countInput.sendKeys('4');\n\n          expect(withoutOffset.getText()).toEqual('4 people are viewing.');\n          expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');\n        });\n        it('should show data-bound names', function() {\n          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n          var personCount = element(by.model('personCount'));\n          var person1 = element(by.model('person1'));\n          var person2 = element(by.model('person2'));\n          personCount.clear();\n          personCount.sendKeys('4');\n          person1.clear();\n          person1.sendKeys('Di');\n          person2.clear();\n          person2.sendKeys('Vojta');\n          expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');\n        });\n      </file>\n    </example>\n */\nvar ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) {\n  var BRACE = /{}/g,\n      IS_WHEN = /^when(Minus)?(.+)$/;\n\n  return {\n    link: function(scope, element, attr) {\n      var numberExp = attr.count,\n          whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs\n          offset = attr.offset || 0,\n          whens = scope.$eval(whenExp) || {},\n          whensExpFns = {},\n          startSymbol = $interpolate.startSymbol(),\n          endSymbol = $interpolate.endSymbol(),\n          braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,\n          watchRemover = angular.noop,\n          lastCount;\n\n      forEach(attr, function(expression, attributeName) {\n        var tmpMatch = IS_WHEN.exec(attributeName);\n        if (tmpMatch) {\n          var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);\n          whens[whenKey] = element.attr(attr.$attr[attributeName]);\n        }\n      });\n      forEach(whens, function(expression, key) {\n        whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));\n\n      });\n\n      scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {\n        var count = parseFloat(newVal);\n        var countIsNaN = isNumberNaN(count);\n\n        if (!countIsNaN && !(count in whens)) {\n          // If an explicit number rule such as 1, 2, 3... is defined, just use it.\n          // Otherwise, check it against pluralization rules in $locale service.\n          count = $locale.pluralCat(count - offset);\n        }\n\n        // If both `count` and `lastCount` are NaN, we don't need to re-register a watch.\n        // In JS `NaN !== NaN`, so we have to explicitly check.\n        if ((count !== lastCount) && !(countIsNaN && isNumberNaN(lastCount))) {\n          watchRemover();\n          var whenExpFn = whensExpFns[count];\n          if (isUndefined(whenExpFn)) {\n            if (newVal != null) {\n              $log.debug('ngPluralize: no rule defined for \\'' + count + '\\' in ' + whenExp);\n            }\n            watchRemover = noop;\n            updateElementText();\n          } else {\n            watchRemover = scope.$watch(whenExpFn, updateElementText);\n          }\n          lastCount = count;\n        }\n      });\n\n      function updateElementText(newText) {\n        element.text(newText || '');\n      }\n    }\n  };\n}];\n\n/* exported ngRepeatDirective */\n\n/**\n * @ngdoc directive\n * @name ngRepeat\n * @multiElement\n *\n * @description\n * The `ngRepeat` directive instantiates a template once per item from a collection. Each template\n * instance gets its own scope, where the given loop variable is set to the current collection item,\n * and `$index` is set to the item index or key.\n *\n * Special properties are exposed on the local scope of each template instance, including:\n *\n * | Variable  | Type            | Details                                                                     |\n * |-----------|-----------------|-----------------------------------------------------------------------------|\n * | `$index`  | {@type number}  | iterator offset of the repeated element (0..length-1)                       |\n * | `$first`  | {@type boolean} | true if the repeated element is first in the iterator.                      |\n * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |\n * | `$last`   | {@type boolean} | true if the repeated element is last in the iterator.                       |\n * | `$even`   | {@type boolean} | true if the iterator position `$index` is even (otherwise false).           |\n * | `$odd`    | {@type boolean} | true if the iterator position `$index` is odd (otherwise false).            |\n *\n * <div class=\"alert alert-info\">\n *   Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.\n *   This may be useful when, for instance, nesting ngRepeats.\n * </div>\n *\n *\n * # Iterating over object properties\n *\n * It is possible to get `ngRepeat` to iterate over the properties of an object using the following\n * syntax:\n *\n * ```js\n * <div ng-repeat=\"(key, value) in myObj\"> ... </div>\n * ```\n *\n * However, there are a few limitations compared to array iteration:\n *\n * - The JavaScript specification does not define the order of keys\n *   returned for an object, so Angular relies on the order returned by the browser\n *   when running `for key in myObj`. Browsers generally follow the strategy of providing\n *   keys in the order in which they were defined, although there are exceptions when keys are deleted\n *   and reinstated. See the\n *   [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).\n *\n * - `ngRepeat` will silently *ignore* object keys starting with `$`, because\n *   it's a prefix used by Angular for public (`$`) and private (`$$`) properties.\n *\n * - The built-in filters {@link ng.orderBy orderBy} and {@link ng.filter filter} do not work with\n *   objects, and will throw an error if used with one.\n *\n * If you are hitting any of these limitations, the recommended workaround is to convert your object into an array\n * that is sorted into the order that you prefer before providing it to `ngRepeat`. You could\n * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)\n * or implement a `$watch` on the object yourself.\n *\n *\n * # Tracking and Duplicates\n *\n * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in\n * the collection. When a change happens, `ngRepeat` then makes the corresponding changes to the DOM:\n *\n * * When an item is added, a new instance of the template is added to the DOM.\n * * When an item is removed, its template instance is removed from the DOM.\n * * When items are reordered, their respective templates are reordered in the DOM.\n *\n * To minimize creation of DOM elements, `ngRepeat` uses a function\n * to \"keep track\" of all items in the collection and their corresponding DOM elements.\n * For example, if an item is added to the collection, `ngRepeat` will know that all other items\n * already have DOM elements, and will not re-render them.\n *\n * The default tracking function (which tracks items by their identity) does not allow\n * duplicate items in arrays. This is because when there are duplicates, it is not possible\n * to maintain a one-to-one mapping between collection items and DOM elements.\n *\n * If you do need to repeat duplicate items, you can substitute the default tracking behavior\n * with your own using the `track by` expression.\n *\n * For example, you may track items by the index of each item in the collection, using the\n * special scope property `$index`:\n * ```html\n *    <div ng-repeat=\"n in [42, 42, 43, 43] track by $index\">\n *      {{n}}\n *    </div>\n * ```\n *\n * You may also use arbitrary expressions in `track by`, including references to custom functions\n * on the scope:\n * ```html\n *    <div ng-repeat=\"n in [42, 42, 43, 43] track by myTrackingFunction(n)\">\n *      {{n}}\n *    </div>\n * ```\n *\n * <div class=\"alert alert-success\">\n * If you are working with objects that have a unique identifier property, you should track\n * by this identifier instead of the object instance. Should you reload your data later, `ngRepeat`\n * will not have to rebuild the DOM elements for items it has already rendered, even if the\n * JavaScript objects in the collection have been substituted for new ones. For large collections,\n * this significantly improves rendering performance. If you don't have a unique identifier,\n * `track by $index` can also provide a performance boost.\n * </div>\n *\n * ```html\n *    <div ng-repeat=\"model in collection track by model.id\">\n *      {{model.name}}\n *    </div>\n * ```\n *\n * <br />\n * <div class=\"alert alert-warning\">\n * Avoid using `track by $index` when the repeated template contains\n * {@link guide/expression#one-time-binding one-time bindings}. In such cases, the `nth` DOM\n * element will always be matched with the `nth` item of the array, so the bindings on that element\n * will not be updated even when the corresponding item changes, essentially causing the view to get\n * out-of-sync with the underlying data.\n * </div>\n *\n * When no `track by` expression is provided, it is equivalent to tracking by the built-in\n * `$id` function, which tracks items by their identity:\n * ```html\n *    <div ng-repeat=\"obj in collection track by $id(obj)\">\n *      {{obj.prop}}\n *    </div>\n * ```\n *\n * <br />\n * <div class=\"alert alert-warning\">\n * **Note:** `track by` must always be the last expression:\n * </div>\n * ```\n *    <div ng-repeat=\"model in collection | orderBy: 'id' as filtered_result track by model.id\">\n *      {{model.name}}\n *    </div>\n * ```\n *\n *\n * # Special repeat start and end points\n * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending\n * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.\n * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)\n * up to and including the ending HTML tag where **ng-repeat-end** is placed.\n *\n * The example below makes use of this feature:\n * ```html\n *   <header ng-repeat-start=\"item in items\">\n *     Header {{ item }}\n *   </header>\n *   <div class=\"body\">\n *     Body {{ item }}\n *   </div>\n *   <footer ng-repeat-end>\n *     Footer {{ item }}\n *   </footer>\n * ```\n *\n * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:\n * ```html\n *   <header>\n *     Header A\n *   </header>\n *   <div class=\"body\">\n *     Body A\n *   </div>\n *   <footer>\n *     Footer A\n *   </footer>\n *   <header>\n *     Header B\n *   </header>\n *   <div class=\"body\">\n *     Body B\n *   </div>\n *   <footer>\n *     Footer B\n *   </footer>\n * ```\n *\n * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such\n * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).\n *\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link ng.$animate#enter enter} | when a new item is added to the list or when an item is revealed after a filter |\n * | {@link ng.$animate#leave leave} | when an item is removed from the list or when an item is filtered out |\n * | {@link ng.$animate#move move } | when an adjacent item is filtered out causing a reorder or when the item contents are reordered |\n *\n * See the example below for defining CSS animations with ngRepeat.\n *\n * @element ANY\n * @scope\n * @priority 1000\n * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These\n *   formats are currently supported:\n *\n *   * `variable in expression` – where variable is the user defined loop variable and `expression`\n *     is a scope expression giving the collection to enumerate.\n *\n *     For example: `album in artist.albums`.\n *\n *   * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,\n *     and `expression` is the scope expression giving the collection to enumerate.\n *\n *     For example: `(name, age) in {'adam':10, 'amalie':12}`.\n *\n *   * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression\n *     which can be used to associate the objects in the collection with the DOM elements. If no tracking expression\n *     is specified, ng-repeat associates elements by identity. It is an error to have\n *     more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are\n *     mapped to the same DOM element, which is not possible.)\n *\n *     Note that the tracking expression must come last, after any filters, and the alias expression.\n *\n *     For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements\n *     will be associated by item identity in the array.\n *\n *     For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique\n *     `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements\n *     with the corresponding item in the array by identity. Moving the same object in array would move the DOM\n *     element in the same way in the DOM.\n *\n *     For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this\n *     case the object identity does not matter. Two objects are considered equivalent as long as their `id`\n *     property is same.\n *\n *     For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter\n *     to items in conjunction with a tracking expression.\n *\n *   * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the\n *     intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message\n *     when a filter is active on the repeater, but the filtered result set is empty.\n *\n *     For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after\n *     the items have been processed through the filter.\n *\n *     Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end\n *     (and not as operator, inside an expression).\n *\n *     For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .\n *\n * @example\n * This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed\n * results by name or by age. New (entering) and removed (leaving) items are animated.\n  <example module=\"ngRepeat\" name=\"ngRepeat\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-repeat\">\n    <file name=\"index.html\">\n      <div ng-controller=\"repeatController\">\n        I have {{friends.length}} friends. They are:\n        <input type=\"search\" ng-model=\"q\" placeholder=\"filter friends...\" aria-label=\"filter friends\" />\n        <ul class=\"example-animate-container\">\n          <li class=\"animate-repeat\" ng-repeat=\"friend in friends | filter:q as results\">\n            [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.\n          </li>\n          <li class=\"animate-repeat\" ng-if=\"results.length === 0\">\n            <strong>No results found...</strong>\n          </li>\n        </ul>\n      </div>\n    </file>\n    <file name=\"script.js\">\n      angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) {\n        $scope.friends = [\n          {name:'John', age:25, gender:'boy'},\n          {name:'Jessie', age:30, gender:'girl'},\n          {name:'Johanna', age:28, gender:'girl'},\n          {name:'Joy', age:15, gender:'girl'},\n          {name:'Mary', age:28, gender:'girl'},\n          {name:'Peter', age:95, gender:'boy'},\n          {name:'Sebastian', age:50, gender:'boy'},\n          {name:'Erika', age:27, gender:'girl'},\n          {name:'Patrick', age:40, gender:'boy'},\n          {name:'Samantha', age:60, gender:'girl'}\n        ];\n      });\n    </file>\n    <file name=\"animations.css\">\n      .example-animate-container {\n        background:white;\n        border:1px solid black;\n        list-style:none;\n        margin:0;\n        padding:0 10px;\n      }\n\n      .animate-repeat {\n        line-height:30px;\n        list-style:none;\n        box-sizing:border-box;\n      }\n\n      .animate-repeat.ng-move,\n      .animate-repeat.ng-enter,\n      .animate-repeat.ng-leave {\n        transition:all linear 0.5s;\n      }\n\n      .animate-repeat.ng-leave.ng-leave-active,\n      .animate-repeat.ng-move,\n      .animate-repeat.ng-enter {\n        opacity:0;\n        max-height:0;\n      }\n\n      .animate-repeat.ng-leave,\n      .animate-repeat.ng-move.ng-move-active,\n      .animate-repeat.ng-enter.ng-enter-active {\n        opacity:1;\n        max-height:30px;\n      }\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var friends = element.all(by.repeater('friend in friends'));\n\n      it('should render initial data set', function() {\n        expect(friends.count()).toBe(10);\n        expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');\n        expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');\n        expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');\n        expect(element(by.binding('friends.length')).getText())\n            .toMatch(\"I have 10 friends. They are:\");\n      });\n\n       it('should update repeater when filter predicate changes', function() {\n         expect(friends.count()).toBe(10);\n\n         element(by.model('q')).sendKeys('ma');\n\n         expect(friends.count()).toBe(2);\n         expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');\n         expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');\n       });\n      </file>\n    </example>\n */\nvar ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $animate, $compile) {\n  var NG_REMOVED = '$$NG_REMOVED';\n  var ngRepeatMinErr = minErr('ngRepeat');\n\n  var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {\n    // TODO(perf): generate setters to shave off ~40ms or 1-1.5%\n    scope[valueIdentifier] = value;\n    if (keyIdentifier) scope[keyIdentifier] = key;\n    scope.$index = index;\n    scope.$first = (index === 0);\n    scope.$last = (index === (arrayLength - 1));\n    scope.$middle = !(scope.$first || scope.$last);\n    // eslint-disable-next-line no-bitwise\n    scope.$odd = !(scope.$even = (index & 1) === 0);\n  };\n\n  var getBlockStart = function(block) {\n    return block.clone[0];\n  };\n\n  var getBlockEnd = function(block) {\n    return block.clone[block.clone.length - 1];\n  };\n\n\n  return {\n    restrict: 'A',\n    multiElement: true,\n    transclude: 'element',\n    priority: 1000,\n    terminal: true,\n    $$tlb: true,\n    compile: function ngRepeatCompile($element, $attr) {\n      var expression = $attr.ngRepeat;\n      var ngRepeatEndComment = $compile.$$createComment('end ngRepeat', expression);\n\n      var match = expression.match(/^\\s*([\\s\\S]+?)\\s+in\\s+([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+track\\s+by\\s+([\\s\\S]+?))?\\s*$/);\n\n      if (!match) {\n        throw ngRepeatMinErr('iexp', 'Expected expression in form of \\'_item_ in _collection_[ track by _id_]\\' but got \\'{0}\\'.',\n            expression);\n      }\n\n      var lhs = match[1];\n      var rhs = match[2];\n      var aliasAs = match[3];\n      var trackByExp = match[4];\n\n      match = lhs.match(/^(?:(\\s*[$\\w]+)|\\(\\s*([$\\w]+)\\s*,\\s*([$\\w]+)\\s*\\))$/);\n\n      if (!match) {\n        throw ngRepeatMinErr('iidexp', '\\'_item_\\' in \\'_item_ in _collection_\\' should be an identifier or \\'(_key_, _value_)\\' expression, but got \\'{0}\\'.',\n            lhs);\n      }\n      var valueIdentifier = match[3] || match[1];\n      var keyIdentifier = match[2];\n\n      if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) ||\n          /^(null|undefined|this|\\$index|\\$first|\\$middle|\\$last|\\$even|\\$odd|\\$parent|\\$root|\\$id)$/.test(aliasAs))) {\n        throw ngRepeatMinErr('badident', 'alias \\'{0}\\' is invalid --- must be a valid JS identifier which is not a reserved name.',\n          aliasAs);\n      }\n\n      var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;\n      var hashFnLocals = {$id: hashKey};\n\n      if (trackByExp) {\n        trackByExpGetter = $parse(trackByExp);\n      } else {\n        trackByIdArrayFn = function(key, value) {\n          return hashKey(value);\n        };\n        trackByIdObjFn = function(key) {\n          return key;\n        };\n      }\n\n      return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {\n\n        if (trackByExpGetter) {\n          trackByIdExpFn = function(key, value, index) {\n            // assign key, value, and $index to the locals so that they can be used in hash functions\n            if (keyIdentifier) hashFnLocals[keyIdentifier] = key;\n            hashFnLocals[valueIdentifier] = value;\n            hashFnLocals.$index = index;\n            return trackByExpGetter($scope, hashFnLocals);\n          };\n        }\n\n        // Store a list of elements from previous run. This is a hash where key is the item from the\n        // iterator, and the value is objects with following properties.\n        //   - scope: bound scope\n        //   - element: previous element.\n        //   - index: position\n        //\n        // We are using no-proto object so that we don't need to guard against inherited props via\n        // hasOwnProperty.\n        var lastBlockMap = createMap();\n\n        //watch props\n        $scope.$watchCollection(rhs, function ngRepeatAction(collection) {\n          var index, length,\n              previousNode = $element[0],     // node that cloned nodes should be inserted after\n                                              // initialized to the comment node anchor\n              nextNode,\n              // Same as lastBlockMap but it has the current state. It will become the\n              // lastBlockMap on the next iteration.\n              nextBlockMap = createMap(),\n              collectionLength,\n              key, value, // key/value of iteration\n              trackById,\n              trackByIdFn,\n              collectionKeys,\n              block,       // last object information {scope, element, id}\n              nextBlockOrder,\n              elementsToRemove;\n\n          if (aliasAs) {\n            $scope[aliasAs] = collection;\n          }\n\n          if (isArrayLike(collection)) {\n            collectionKeys = collection;\n            trackByIdFn = trackByIdExpFn || trackByIdArrayFn;\n          } else {\n            trackByIdFn = trackByIdExpFn || trackByIdObjFn;\n            // if object, extract keys, in enumeration order, unsorted\n            collectionKeys = [];\n            for (var itemKey in collection) {\n              if (hasOwnProperty.call(collection, itemKey) && itemKey.charAt(0) !== '$') {\n                collectionKeys.push(itemKey);\n              }\n            }\n          }\n\n          collectionLength = collectionKeys.length;\n          nextBlockOrder = new Array(collectionLength);\n\n          // locate existing items\n          for (index = 0; index < collectionLength; index++) {\n            key = (collection === collectionKeys) ? index : collectionKeys[index];\n            value = collection[key];\n            trackById = trackByIdFn(key, value, index);\n            if (lastBlockMap[trackById]) {\n              // found previously seen block\n              block = lastBlockMap[trackById];\n              delete lastBlockMap[trackById];\n              nextBlockMap[trackById] = block;\n              nextBlockOrder[index] = block;\n            } else if (nextBlockMap[trackById]) {\n              // if collision detected. restore lastBlockMap and throw an error\n              forEach(nextBlockOrder, function(block) {\n                if (block && block.scope) lastBlockMap[block.id] = block;\n              });\n              throw ngRepeatMinErr('dupes',\n                  'Duplicates in a repeater are not allowed. Use \\'track by\\' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}',\n                  expression, trackById, value);\n            } else {\n              // new never before seen block\n              nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};\n              nextBlockMap[trackById] = true;\n            }\n          }\n\n          // remove leftover items\n          for (var blockKey in lastBlockMap) {\n            block = lastBlockMap[blockKey];\n            elementsToRemove = getBlockNodes(block.clone);\n            $animate.leave(elementsToRemove);\n            if (elementsToRemove[0].parentNode) {\n              // if the element was not removed yet because of pending animation, mark it as deleted\n              // so that we can ignore it later\n              for (index = 0, length = elementsToRemove.length; index < length; index++) {\n                elementsToRemove[index][NG_REMOVED] = true;\n              }\n            }\n            block.scope.$destroy();\n          }\n\n          // we are not using forEach for perf reasons (trying to avoid #call)\n          for (index = 0; index < collectionLength; index++) {\n            key = (collection === collectionKeys) ? index : collectionKeys[index];\n            value = collection[key];\n            block = nextBlockOrder[index];\n\n            if (block.scope) {\n              // if we have already seen this object, then we need to reuse the\n              // associated scope/element\n\n              nextNode = previousNode;\n\n              // skip nodes that are already pending removal via leave animation\n              do {\n                nextNode = nextNode.nextSibling;\n              } while (nextNode && nextNode[NG_REMOVED]);\n\n              if (getBlockStart(block) !== nextNode) {\n                // existing item which got moved\n                $animate.move(getBlockNodes(block.clone), null, previousNode);\n              }\n              previousNode = getBlockEnd(block);\n              updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n            } else {\n              // new item which we don't know about\n              $transclude(function ngRepeatTransclude(clone, scope) {\n                block.scope = scope;\n                // http://jsperf.com/clone-vs-createcomment\n                var endNode = ngRepeatEndComment.cloneNode(false);\n                clone[clone.length++] = endNode;\n\n                $animate.enter(clone, null, previousNode);\n                previousNode = endNode;\n                // Note: We only need the first/last node of the cloned nodes.\n                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n                // by a directive with templateUrl when its template arrives.\n                block.clone = clone;\n                nextBlockMap[block.id] = block;\n                updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n              });\n            }\n          }\n          lastBlockMap = nextBlockMap;\n        });\n      };\n    }\n  };\n}];\n\nvar NG_HIDE_CLASS = 'ng-hide';\nvar NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';\n/**\n * @ngdoc directive\n * @name ngShow\n * @multiElement\n *\n * @description\n * The `ngShow` directive shows or hides the given HTML element based on the expression\n * provided to the `ngShow` attribute. The element is shown or hidden by removing or adding\n * the `.ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n * in AngularJS and sets the display style to none (using an !important flag).\n * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n *\n * ```html\n * <!-- when $scope.myValue is truthy (element is visible) -->\n * <div ng-show=\"myValue\"></div>\n *\n * <!-- when $scope.myValue is falsy (element is hidden) -->\n * <div ng-show=\"myValue\" class=\"ng-hide\"></div>\n * ```\n *\n * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added to the class\n * attribute on the element causing it to become hidden. When truthy, the `.ng-hide` CSS class is removed\n * from the element causing the element not to appear hidden.\n *\n * ## Why is !important used?\n *\n * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n * can be easily overridden by heavier selectors. For example, something as simple\n * as changing the display style on a HTML list item would make hidden elements appear visible.\n * This also becomes a bigger issue when dealing with CSS frameworks.\n *\n * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n *\n * ### Overriding `.ng-hide`\n *\n * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n * class CSS. Note that the selector that needs to be used is actually `.ng-hide:not(.ng-hide-animate)` to cope\n * with extra animation classes that can be added.\n *\n * ```css\n * .ng-hide:not(.ng-hide-animate) {\n *   /&#42; this is just another form of hiding an element &#42;/\n *   display: block!important;\n *   position: absolute;\n *   top: -9999px;\n *   left: -9999px;\n * }\n * ```\n *\n * By default you don't need to override in CSS anything and the animations will work around the display style.\n *\n * ## A note about animations with `ngShow`\n *\n * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n * is true and false. This system works like the animation system present with ngClass except that\n * you must also include the !important flag to override the display property\n * so that you can perform an animation when the element is hidden during the time of the animation.\n *\n * ```css\n * //\n * //a working example can be found at the bottom of this page\n * //\n * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n *   /&#42; this is required as of 1.3x to properly\n *      apply all styling in a show/hide animation &#42;/\n *   transition: 0s linear all;\n * }\n *\n * .my-element.ng-hide-add-active,\n * .my-element.ng-hide-remove-active {\n *   /&#42; the transition is defined in the active class &#42;/\n *   transition: 1s linear all;\n * }\n *\n * .my-element.ng-hide-add { ... }\n * .my-element.ng-hide-add.ng-hide-add-active { ... }\n * .my-element.ng-hide-remove { ... }\n * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n * ```\n *\n * Keep in mind that, as of AngularJS version 1.3, there is no need to change the display\n * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n *\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link $animate#addClass addClass} `.ng-hide`  | after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden |\n * | {@link $animate#removeClass removeClass}  `.ng-hide`  | after the `ngShow` expression evaluates to a truthy value and just before contents are set to visible |\n *\n * @element ANY\n * @param {expression} ngShow If the {@link guide/expression expression} is truthy\n *     then the element is shown or hidden respectively.\n *\n * @example\n  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-show\">\n    <file name=\"index.html\">\n      Click me: <input type=\"checkbox\" ng-model=\"checked\" aria-label=\"Toggle ngHide\"><br/>\n      <div>\n        Show:\n        <div class=\"check-element animate-show\" ng-show=\"checked\">\n          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n        </div>\n      </div>\n      <div>\n        Hide:\n        <div class=\"check-element animate-show\" ng-hide=\"checked\">\n          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n        </div>\n      </div>\n    </file>\n    <file name=\"glyphicons.css\">\n      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n    </file>\n    <file name=\"animations.css\">\n      .animate-show {\n        line-height: 20px;\n        opacity: 1;\n        padding: 10px;\n        border: 1px solid black;\n        background: white;\n      }\n\n      .animate-show.ng-hide-add, .animate-show.ng-hide-remove {\n        transition: all linear 0.5s;\n      }\n\n      .animate-show.ng-hide {\n        line-height: 0;\n        opacity: 0;\n        padding: 0 10px;\n      }\n\n      .check-element {\n        padding: 10px;\n        border: 1px solid black;\n        background: white;\n      }\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n      it('should check ng-show / ng-hide', function() {\n        expect(thumbsUp.isDisplayed()).toBeFalsy();\n        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n        element(by.model('checked')).click();\n\n        expect(thumbsUp.isDisplayed()).toBeTruthy();\n        expect(thumbsDown.isDisplayed()).toBeFalsy();\n      });\n    </file>\n  </example>\n */\nvar ngShowDirective = ['$animate', function($animate) {\n  return {\n    restrict: 'A',\n    multiElement: true,\n    link: function(scope, element, attr) {\n      scope.$watch(attr.ngShow, function ngShowWatchAction(value) {\n        // we're adding a temporary, animation-specific class for ng-hide since this way\n        // we can control when the element is actually displayed on screen without having\n        // to have a global/greedy CSS selector that breaks when other animations are run.\n        // Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845\n        $animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {\n          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n        });\n      });\n    }\n  };\n}];\n\n\n/**\n * @ngdoc directive\n * @name ngHide\n * @multiElement\n *\n * @description\n * The `ngHide` directive shows or hides the given HTML element based on the expression\n * provided to the `ngHide` attribute. The element is shown or hidden by removing or adding\n * the `ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n * in AngularJS and sets the display style to none (using an !important flag).\n * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n *\n * ```html\n * <!-- when $scope.myValue is truthy (element is hidden) -->\n * <div ng-hide=\"myValue\" class=\"ng-hide\"></div>\n *\n * <!-- when $scope.myValue is falsy (element is visible) -->\n * <div ng-hide=\"myValue\"></div>\n * ```\n *\n * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added to the class\n * attribute on the element causing it to become hidden. When falsy, the `.ng-hide` CSS class is removed\n * from the element causing the element not to appear hidden.\n *\n * ## Why is !important used?\n *\n * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n * can be easily overridden by heavier selectors. For example, something as simple\n * as changing the display style on a HTML list item would make hidden elements appear visible.\n * This also becomes a bigger issue when dealing with CSS frameworks.\n *\n * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n *\n * ### Overriding `.ng-hide`\n *\n * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n * class in CSS:\n *\n * ```css\n * .ng-hide {\n *   /&#42; this is just another form of hiding an element &#42;/\n *   display: block!important;\n *   position: absolute;\n *   top: -9999px;\n *   left: -9999px;\n * }\n * ```\n *\n * By default you don't need to override in CSS anything and the animations will work around the display style.\n *\n * ## A note about animations with `ngHide`\n *\n * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n * is true and false. This system works like the animation system present with ngClass, except that the `.ng-hide`\n * CSS class is added and removed for you instead of your own CSS class.\n *\n * ```css\n * //\n * //a working example can be found at the bottom of this page\n * //\n * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n *   transition: 0.5s linear all;\n * }\n *\n * .my-element.ng-hide-add { ... }\n * .my-element.ng-hide-add.ng-hide-add-active { ... }\n * .my-element.ng-hide-remove { ... }\n * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n * ```\n *\n * Keep in mind that, as of AngularJS version 1.3, there is no need to change the display\n * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n *\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link $animate#addClass addClass} `.ng-hide`  | after the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden |\n * | {@link $animate#removeClass removeClass}  `.ng-hide`  | after the `ngHide` expression evaluates to a non truthy value and just before contents are set to visible |\n *\n *\n * @element ANY\n * @param {expression} ngHide If the {@link guide/expression expression} is truthy then\n *     the element is shown or hidden respectively.\n *\n * @example\n  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-hide\">\n    <file name=\"index.html\">\n      Click me: <input type=\"checkbox\" ng-model=\"checked\" aria-label=\"Toggle ngShow\"><br/>\n      <div>\n        Show:\n        <div class=\"check-element animate-hide\" ng-show=\"checked\">\n          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n        </div>\n      </div>\n      <div>\n        Hide:\n        <div class=\"check-element animate-hide\" ng-hide=\"checked\">\n          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n        </div>\n      </div>\n    </file>\n    <file name=\"glyphicons.css\">\n      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n    </file>\n    <file name=\"animations.css\">\n      .animate-hide {\n        transition: all linear 0.5s;\n        line-height: 20px;\n        opacity: 1;\n        padding: 10px;\n        border: 1px solid black;\n        background: white;\n      }\n\n      .animate-hide.ng-hide {\n        line-height: 0;\n        opacity: 0;\n        padding: 0 10px;\n      }\n\n      .check-element {\n        padding: 10px;\n        border: 1px solid black;\n        background: white;\n      }\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n      it('should check ng-show / ng-hide', function() {\n        expect(thumbsUp.isDisplayed()).toBeFalsy();\n        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n        element(by.model('checked')).click();\n\n        expect(thumbsUp.isDisplayed()).toBeTruthy();\n        expect(thumbsDown.isDisplayed()).toBeFalsy();\n      });\n    </file>\n  </example>\n */\nvar ngHideDirective = ['$animate', function($animate) {\n  return {\n    restrict: 'A',\n    multiElement: true,\n    link: function(scope, element, attr) {\n      scope.$watch(attr.ngHide, function ngHideWatchAction(value) {\n        // The comment inside of the ngShowDirective explains why we add and\n        // remove a temporary class for the show/hide animation\n        $animate[value ? 'addClass' : 'removeClass'](element,NG_HIDE_CLASS, {\n          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n        });\n      });\n    }\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name ngStyle\n * @restrict AC\n *\n * @description\n * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.\n *\n * @knownIssue\n * You should not use {@link guide/interpolation interpolation} in the value of the `style`\n * attribute, when using the `ngStyle` directive on the same element.\n * See {@link guide/interpolation#known-issues here} for more info.\n *\n * @element ANY\n * @param {expression} ngStyle\n *\n * {@link guide/expression Expression} which evals to an\n * object whose keys are CSS style names and values are corresponding values for those CSS\n * keys.\n *\n * Since some CSS style names are not valid keys for an object, they must be quoted.\n * See the 'background-color' style in the example below.\n *\n * @example\n   <example name=\"ng-style\">\n     <file name=\"index.html\">\n        <input type=\"button\" value=\"set color\" ng-click=\"myStyle={color:'red'}\">\n        <input type=\"button\" value=\"set background\" ng-click=\"myStyle={'background-color':'blue'}\">\n        <input type=\"button\" value=\"clear\" ng-click=\"myStyle={}\">\n        <br/>\n        <span ng-style=\"myStyle\">Sample Text</span>\n        <pre>myStyle={{myStyle}}</pre>\n     </file>\n     <file name=\"style.css\">\n       span {\n         color: black;\n       }\n     </file>\n     <file name=\"protractor.js\" type=\"protractor\">\n       var colorSpan = element(by.css('span'));\n\n       it('should check ng-style', function() {\n         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n         element(by.css('input[value=\\'set color\\']')).click();\n         expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');\n         element(by.css('input[value=clear]')).click();\n         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n       });\n     </file>\n   </example>\n */\nvar ngStyleDirective = ngDirective(function(scope, element, attr) {\n  scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {\n    if (oldStyles && (newStyles !== oldStyles)) {\n      forEach(oldStyles, function(val, style) { element.css(style, '');});\n    }\n    if (newStyles) element.css(newStyles);\n  }, true);\n});\n\n/**\n * @ngdoc directive\n * @name ngSwitch\n * @restrict EA\n *\n * @description\n * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.\n * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location\n * as specified in the template.\n *\n * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it\n * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element\n * matches the value obtained from the evaluated expression. In other words, you define a container element\n * (where you place the directive), place an expression on the **`on=\"...\"` attribute**\n * (or the **`ng-switch=\"...\"` attribute**), define any inner elements inside of the directive and place\n * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on\n * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default\n * attribute is displayed.\n *\n * <div class=\"alert alert-info\">\n * Be aware that the attribute values to match against cannot be expressions. They are interpreted\n * as literal string values to match against.\n * For example, **`ng-switch-when=\"someVal\"`** will match against the string `\"someVal\"` not against the\n * value of the expression `$scope.someVal`.\n * </div>\n\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link ng.$animate#enter enter}  | after the ngSwitch contents change and the matched child element is placed inside the container |\n * | {@link ng.$animate#leave leave}  | after the ngSwitch contents change and just before the former contents are removed from the DOM |\n *\n * @usage\n *\n * ```\n * <ANY ng-switch=\"expression\">\n *   <ANY ng-switch-when=\"matchValue1\">...</ANY>\n *   <ANY ng-switch-when=\"matchValue2\">...</ANY>\n *   <ANY ng-switch-default>...</ANY>\n * </ANY>\n * ```\n *\n *\n * @scope\n * @priority 1200\n * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.\n * On child elements add:\n *\n * * `ngSwitchWhen`: the case statement to match against. If match then this\n *   case will be displayed. If the same match appears multiple times, all the\n *   elements will be displayed. It is possible to associate multiple values to\n *   the same `ngSwitchWhen` by defining the optional attribute\n *   `ngSwitchWhenSeparator`. The separator will be used to split the value of\n *   the `ngSwitchWhen` attribute into multiple tokens, and the element will show\n *   if any of the `ngSwitch` evaluates to any of these tokens.\n * * `ngSwitchDefault`: the default case when no other case match. If there\n *   are multiple default cases, all of them will be displayed when no other\n *   case match.\n *\n *\n * @example\n  <example module=\"switchExample\" deps=\"angular-animate.js\" animations=\"true\" name=\"ng-switch\">\n    <file name=\"index.html\">\n      <div ng-controller=\"ExampleController\">\n        <select ng-model=\"selection\" ng-options=\"item for item in items\">\n        </select>\n        <code>selection={{selection}}</code>\n        <hr/>\n        <div class=\"animate-switch-container\"\n          ng-switch on=\"selection\">\n            <div class=\"animate-switch\" ng-switch-when=\"settings|options\" ng-switch-when-separator=\"|\">Settings Div</div>\n            <div class=\"animate-switch\" ng-switch-when=\"home\">Home Span</div>\n            <div class=\"animate-switch\" ng-switch-default>default</div>\n        </div>\n      </div>\n    </file>\n    <file name=\"script.js\">\n      angular.module('switchExample', ['ngAnimate'])\n        .controller('ExampleController', ['$scope', function($scope) {\n          $scope.items = ['settings', 'home', 'options', 'other'];\n          $scope.selection = $scope.items[0];\n        }]);\n    </file>\n    <file name=\"animations.css\">\n      .animate-switch-container {\n        position:relative;\n        background:white;\n        border:1px solid black;\n        height:40px;\n        overflow:hidden;\n      }\n\n      .animate-switch {\n        padding:10px;\n      }\n\n      .animate-switch.ng-animate {\n        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n        position:absolute;\n        top:0;\n        left:0;\n        right:0;\n        bottom:0;\n      }\n\n      .animate-switch.ng-leave.ng-leave-active,\n      .animate-switch.ng-enter {\n        top:-50px;\n      }\n      .animate-switch.ng-leave,\n      .animate-switch.ng-enter.ng-enter-active {\n        top:0;\n      }\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      var switchElem = element(by.css('[ng-switch]'));\n      var select = element(by.model('selection'));\n\n      it('should start in settings', function() {\n        expect(switchElem.getText()).toMatch(/Settings Div/);\n      });\n      it('should change to home', function() {\n        select.all(by.css('option')).get(1).click();\n        expect(switchElem.getText()).toMatch(/Home Span/);\n      });\n      it('should change to settings via \"options\"', function() {\n        select.all(by.css('option')).get(2).click();\n        expect(switchElem.getText()).toMatch(/Settings Div/);\n      });\n      it('should select default', function() {\n        select.all(by.css('option')).get(3).click();\n        expect(switchElem.getText()).toMatch(/default/);\n      });\n    </file>\n  </example>\n */\nvar ngSwitchDirective = ['$animate', '$compile', function($animate, $compile) {\n  return {\n    require: 'ngSwitch',\n\n    // asks for $scope to fool the BC controller module\n    controller: ['$scope', function NgSwitchController() {\n     this.cases = {};\n    }],\n    link: function(scope, element, attr, ngSwitchController) {\n      var watchExpr = attr.ngSwitch || attr.on,\n          selectedTranscludes = [],\n          selectedElements = [],\n          previousLeaveAnimations = [],\n          selectedScopes = [];\n\n      var spliceFactory = function(array, index) {\n          return function(response) {\n            if (response !== false) array.splice(index, 1);\n          };\n      };\n\n      scope.$watch(watchExpr, function ngSwitchWatchAction(value) {\n        var i, ii;\n\n        // Start with the last, in case the array is modified during the loop\n        while (previousLeaveAnimations.length) {\n          $animate.cancel(previousLeaveAnimations.pop());\n        }\n\n        for (i = 0, ii = selectedScopes.length; i < ii; ++i) {\n          var selected = getBlockNodes(selectedElements[i].clone);\n          selectedScopes[i].$destroy();\n          var runner = previousLeaveAnimations[i] = $animate.leave(selected);\n          runner.done(spliceFactory(previousLeaveAnimations, i));\n        }\n\n        selectedElements.length = 0;\n        selectedScopes.length = 0;\n\n        if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {\n          forEach(selectedTranscludes, function(selectedTransclude) {\n            selectedTransclude.transclude(function(caseElement, selectedScope) {\n              selectedScopes.push(selectedScope);\n              var anchor = selectedTransclude.element;\n              caseElement[caseElement.length++] = $compile.$$createComment('end ngSwitchWhen');\n              var block = { clone: caseElement };\n\n              selectedElements.push(block);\n              $animate.enter(caseElement, anchor.parent(), anchor);\n            });\n          });\n        }\n      });\n    }\n  };\n}];\n\nvar ngSwitchWhenDirective = ngDirective({\n  transclude: 'element',\n  priority: 1200,\n  require: '^ngSwitch',\n  multiElement: true,\n  link: function(scope, element, attrs, ctrl, $transclude) {\n\n    var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter(\n      // Filter duplicate cases\n      function(element, index, array) { return array[index - 1] !== element; }\n    );\n\n    forEach(cases, function(whenCase) {\n      ctrl.cases['!' + whenCase] = (ctrl.cases['!' + whenCase] || []);\n      ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element });\n    });\n  }\n});\n\nvar ngSwitchDefaultDirective = ngDirective({\n  transclude: 'element',\n  priority: 1200,\n  require: '^ngSwitch',\n  multiElement: true,\n  link: function(scope, element, attr, ctrl, $transclude) {\n    ctrl.cases['?'] = (ctrl.cases['?'] || []);\n    ctrl.cases['?'].push({ transclude: $transclude, element: element });\n   }\n});\n\n/**\n * @ngdoc directive\n * @name ngTransclude\n * @restrict EAC\n *\n * @description\n * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.\n *\n * You can specify that you want to insert a named transclusion slot, instead of the default slot, by providing the slot name\n * as the value of the `ng-transclude` or `ng-transclude-slot` attribute.\n *\n * If the transcluded content is not empty (i.e. contains one or more DOM nodes, including whitespace text nodes), any existing\n * content of this element will be removed before the transcluded content is inserted.\n * If the transcluded content is empty (or only whitespace), the existing content is left intact. This lets you provide fallback\n * content in the case that no transcluded content is provided.\n *\n * @element ANY\n *\n * @param {string} ngTransclude|ngTranscludeSlot the name of the slot to insert at this point. If this is not provided, is empty\n *                                               or its value is the same as the name of the attribute then the default slot is used.\n *\n * @example\n * ### Basic transclusion\n * This example demonstrates basic transclusion of content into a component directive.\n * <example name=\"simpleTranscludeExample\" module=\"transcludeExample\">\n *   <file name=\"index.html\">\n *     <script>\n *       angular.module('transcludeExample', [])\n *        .directive('pane', function(){\n *           return {\n *             restrict: 'E',\n *             transclude: true,\n *             scope: { title:'@' },\n *             template: '<div style=\"border: 1px solid black;\">' +\n *                         '<div style=\"background-color: gray\">{{title}}</div>' +\n *                         '<ng-transclude></ng-transclude>' +\n *                       '</div>'\n *           };\n *       })\n *       .controller('ExampleController', ['$scope', function($scope) {\n *         $scope.title = 'Lorem Ipsum';\n *         $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';\n *       }]);\n *     </script>\n *     <div ng-controller=\"ExampleController\">\n *       <input ng-model=\"title\" aria-label=\"title\"> <br/>\n *       <textarea ng-model=\"text\" aria-label=\"text\"></textarea> <br/>\n *       <pane title=\"{{title}}\"><span>{{text}}</span></pane>\n *     </div>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *      it('should have transcluded', function() {\n *        var titleElement = element(by.model('title'));\n *        titleElement.clear();\n *        titleElement.sendKeys('TITLE');\n *        var textElement = element(by.model('text'));\n *        textElement.clear();\n *        textElement.sendKeys('TEXT');\n *        expect(element(by.binding('title')).getText()).toEqual('TITLE');\n *        expect(element(by.binding('text')).getText()).toEqual('TEXT');\n *      });\n *   </file>\n * </example>\n *\n * @example\n * ### Transclude fallback content\n * This example shows how to use `NgTransclude` with fallback content, that\n * is displayed if no transcluded content is provided.\n *\n * <example module=\"transcludeFallbackContentExample\" name=\"ng-transclude\">\n * <file name=\"index.html\">\n * <script>\n * angular.module('transcludeFallbackContentExample', [])\n * .directive('myButton', function(){\n *             return {\n *               restrict: 'E',\n *               transclude: true,\n *               scope: true,\n *               template: '<button style=\"cursor: pointer;\">' +\n *                           '<ng-transclude>' +\n *                             '<b style=\"color: red;\">Button1</b>' +\n *                           '</ng-transclude>' +\n *                         '</button>'\n *             };\n *         });\n * </script>\n * <!-- fallback button content -->\n * <my-button id=\"fallback\"></my-button>\n * <!-- modified button content -->\n * <my-button id=\"modified\">\n *   <i style=\"color: green;\">Button2</i>\n * </my-button>\n * </file>\n * <file name=\"protractor.js\" type=\"protractor\">\n * it('should have different transclude element content', function() {\n *          expect(element(by.id('fallback')).getText()).toBe('Button1');\n *          expect(element(by.id('modified')).getText()).toBe('Button2');\n *        });\n * </file>\n * </example>\n *\n * @example\n * ### Multi-slot transclusion\n * This example demonstrates using multi-slot transclusion in a component directive.\n * <example name=\"multiSlotTranscludeExample\" module=\"multiSlotTranscludeExample\">\n *   <file name=\"index.html\">\n *    <style>\n *      .title, .footer {\n *        background-color: gray\n *      }\n *    </style>\n *    <div ng-controller=\"ExampleController\">\n *      <input ng-model=\"title\" aria-label=\"title\"> <br/>\n *      <textarea ng-model=\"text\" aria-label=\"text\"></textarea> <br/>\n *      <pane>\n *        <pane-title><a ng-href=\"{{link}}\">{{title}}</a></pane-title>\n *        <pane-body><p>{{text}}</p></pane-body>\n *      </pane>\n *    </div>\n *   </file>\n *   <file name=\"app.js\">\n *    angular.module('multiSlotTranscludeExample', [])\n *     .directive('pane', function() {\n *        return {\n *          restrict: 'E',\n *          transclude: {\n *            'title': '?paneTitle',\n *            'body': 'paneBody',\n *            'footer': '?paneFooter'\n *          },\n *          template: '<div style=\"border: 1px solid black;\">' +\n *                      '<div class=\"title\" ng-transclude=\"title\">Fallback Title</div>' +\n *                      '<div ng-transclude=\"body\"></div>' +\n *                      '<div class=\"footer\" ng-transclude=\"footer\">Fallback Footer</div>' +\n *                    '</div>'\n *        };\n *    })\n *    .controller('ExampleController', ['$scope', function($scope) {\n *      $scope.title = 'Lorem Ipsum';\n *      $scope.link = 'https://google.com';\n *      $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';\n *    }]);\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *      it('should have transcluded the title and the body', function() {\n *        var titleElement = element(by.model('title'));\n *        titleElement.clear();\n *        titleElement.sendKeys('TITLE');\n *        var textElement = element(by.model('text'));\n *        textElement.clear();\n *        textElement.sendKeys('TEXT');\n *        expect(element(by.css('.title')).getText()).toEqual('TITLE');\n *        expect(element(by.binding('text')).getText()).toEqual('TEXT');\n *        expect(element(by.css('.footer')).getText()).toEqual('Fallback Footer');\n *      });\n *   </file>\n * </example>\n */\nvar ngTranscludeMinErr = minErr('ngTransclude');\nvar ngTranscludeDirective = ['$compile', function($compile) {\n  return {\n    restrict: 'EAC',\n    terminal: true,\n    compile: function ngTranscludeCompile(tElement) {\n\n      // Remove and cache any original content to act as a fallback\n      var fallbackLinkFn = $compile(tElement.contents());\n      tElement.empty();\n\n      return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) {\n\n        if (!$transclude) {\n          throw ngTranscludeMinErr('orphan',\n          'Illegal use of ngTransclude directive in the template! ' +\n          'No parent directive that requires a transclusion found. ' +\n          'Element: {0}',\n          startingTag($element));\n        }\n\n\n        // If the attribute is of the form: `ng-transclude=\"ng-transclude\"` then treat it like the default\n        if ($attrs.ngTransclude === $attrs.$attr.ngTransclude) {\n          $attrs.ngTransclude = '';\n        }\n        var slotName = $attrs.ngTransclude || $attrs.ngTranscludeSlot;\n\n        // If the slot is required and no transclusion content is provided then this call will throw an error\n        $transclude(ngTranscludeCloneAttachFn, null, slotName);\n\n        // If the slot is optional and no transclusion content is provided then use the fallback content\n        if (slotName && !$transclude.isSlotFilled(slotName)) {\n          useFallbackContent();\n        }\n\n        function ngTranscludeCloneAttachFn(clone, transcludedScope) {\n          if (clone.length && notWhitespace(clone)) {\n            $element.append(clone);\n          } else {\n            useFallbackContent();\n            // There is nothing linked against the transcluded scope since no content was available,\n            // so it should be safe to clean up the generated scope.\n            transcludedScope.$destroy();\n          }\n        }\n\n        function useFallbackContent() {\n          // Since this is the fallback content rather than the transcluded content,\n          // we link against the scope of this directive rather than the transcluded scope\n          fallbackLinkFn($scope, function(clone) {\n            $element.append(clone);\n          });\n        }\n\n        function notWhitespace(nodes) {\n          for (var i = 0, ii = nodes.length; i < ii; i++) {\n            var node = nodes[i];\n            if (node.nodeType !== NODE_TYPE_TEXT || node.nodeValue.trim()) {\n              return true;\n            }\n          }\n        }\n      };\n    }\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name script\n * @restrict E\n *\n * @description\n * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the\n * template can be used by {@link ng.directive:ngInclude `ngInclude`},\n * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the\n * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be\n * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.\n *\n * @param {string} type Must be set to `'text/ng-template'`.\n * @param {string} id Cache name of the template.\n *\n * @example\n  <example  name=\"script-tag\">\n    <file name=\"index.html\">\n      <script type=\"text/ng-template\" id=\"/tpl.html\">\n        Content of the template.\n      </script>\n\n      <a ng-click=\"currentTpl='/tpl.html'\" id=\"tpl-link\">Load inlined template</a>\n      <div id=\"tpl-content\" ng-include src=\"currentTpl\"></div>\n    </file>\n    <file name=\"protractor.js\" type=\"protractor\">\n      it('should load template defined inside script tag', function() {\n        element(by.css('#tpl-link')).click();\n        expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);\n      });\n    </file>\n  </example>\n */\nvar scriptDirective = ['$templateCache', function($templateCache) {\n  return {\n    restrict: 'E',\n    terminal: true,\n    compile: function(element, attr) {\n      if (attr.type === 'text/ng-template') {\n        var templateUrl = attr.id,\n            text = element[0].text;\n\n        $templateCache.put(templateUrl, text);\n      }\n    }\n  };\n}];\n\n/* exported selectDirective, optionDirective */\n\nvar noopNgModelController = { $setViewValue: noop, $render: noop };\n\n/**\n * @ngdoc type\n * @name  select.SelectController\n * @description\n * The controller for the `<select>` directive. This provides support for reading\n * and writing the selected value(s) of the control and also coordinates dynamically\n * added `<option>` elements, perhaps by an `ngRepeat` directive.\n */\nvar SelectController =\n        ['$element', '$scope', /** @this */ function($element, $scope) {\n\n  var self = this,\n      optionsMap = new HashMap();\n\n  self.selectValueMap = {}; // Keys are the hashed values, values the original values\n\n  // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors\n  self.ngModelCtrl = noopNgModelController;\n  self.multiple = false;\n\n  // The \"unknown\" option is one that is prepended to the list if the viewValue\n  // does not match any of the options. When it is rendered the value of the unknown\n  // option is '? XXX ?' where XXX is the hashKey of the value that is not known.\n  //\n  // We can't just jqLite('<option>') since jqLite is not smart enough\n  // to create it in <select> and IE barfs otherwise.\n  self.unknownOption = jqLite(window.document.createElement('option'));\n\n  // The empty option is an option with the value '' that te application developer can\n  // provide inside the select. When the model changes to a value that doesn't match an option,\n  // it is selected - so if an empty option is provided, no unknown option is generated.\n  // However, the empty option is not removed when the model matches an option. It is always selectable\n  // and indicates that a \"null\" selection has been made.\n  self.hasEmptyOption = false;\n  self.emptyOption = undefined;\n\n  self.renderUnknownOption = function(val) {\n    var unknownVal = self.generateUnknownOptionValue(val);\n    self.unknownOption.val(unknownVal);\n    $element.prepend(self.unknownOption);\n    setOptionAsSelected(self.unknownOption);\n    $element.val(unknownVal);\n  };\n\n  self.updateUnknownOption = function(val) {\n    var unknownVal = self.generateUnknownOptionValue(val);\n    self.unknownOption.val(unknownVal);\n    setOptionAsSelected(self.unknownOption);\n    $element.val(unknownVal);\n  };\n\n  self.generateUnknownOptionValue = function(val) {\n    return '? ' + hashKey(val) + ' ?';\n  };\n\n  self.removeUnknownOption = function() {\n    if (self.unknownOption.parent()) self.unknownOption.remove();\n  };\n\n  self.selectEmptyOption = function() {\n    if (self.emptyOption) {\n      $element.val('');\n      setOptionAsSelected(self.emptyOption);\n    }\n  };\n\n  self.unselectEmptyOption = function() {\n    if (self.hasEmptyOption) {\n      self.emptyOption.removeAttr('selected');\n    }\n  };\n\n  $scope.$on('$destroy', function() {\n    // disable unknown option so that we don't do work when the whole select is being destroyed\n    self.renderUnknownOption = noop;\n  });\n\n  // Read the value of the select control, the implementation of this changes depending\n  // upon whether the select can have multiple values and whether ngOptions is at work.\n  self.readValue = function readSingleValue() {\n    var val = $element.val();\n    // ngValue added option values are stored in the selectValueMap, normal interpolations are not\n    var realVal = val in self.selectValueMap ? self.selectValueMap[val] : val;\n\n    if (self.hasOption(realVal)) {\n      return realVal;\n    }\n\n    return null;\n  };\n\n\n  // Write the value to the select control, the implementation of this changes depending\n  // upon whether the select can have multiple values and whether ngOptions is at work.\n  self.writeValue = function writeSingleValue(value) {\n    // Make sure to remove the selected attribute from the previously selected option\n    // Otherwise, screen readers might get confused\n    var currentlySelectedOption = $element[0].options[$element[0].selectedIndex];\n    if (currentlySelectedOption) currentlySelectedOption.removeAttribute('selected');\n\n    if (self.hasOption(value)) {\n      self.removeUnknownOption();\n\n      var hashedVal = hashKey(value);\n      $element.val(hashedVal in self.selectValueMap ? hashedVal : value);\n\n      // Set selected attribute and property on selected option for screen readers\n      var selectedOption = $element[0].options[$element[0].selectedIndex];\n      setOptionAsSelected(jqLite(selectedOption));\n    } else {\n      if (value == null && self.emptyOption) {\n        self.removeUnknownOption();\n        self.selectEmptyOption();\n      } else if (self.unknownOption.parent().length) {\n        self.updateUnknownOption(value);\n      } else {\n        self.renderUnknownOption(value);\n      }\n    }\n  };\n\n\n  // Tell the select control that an option, with the given value, has been added\n  self.addOption = function(value, element) {\n    // Skip comment nodes, as they only pollute the `optionsMap`\n    if (element[0].nodeType === NODE_TYPE_COMMENT) return;\n\n    assertNotHasOwnProperty(value, '\"option value\"');\n    if (value === '') {\n      self.hasEmptyOption = true;\n      self.emptyOption = element;\n    }\n    var count = optionsMap.get(value) || 0;\n    optionsMap.put(value, count + 1);\n    // Only render at the end of a digest. This improves render performance when many options\n    // are added during a digest and ensures all relevant options are correctly marked as selected\n    scheduleRender();\n  };\n\n  // Tell the select control that an option, with the given value, has been removed\n  self.removeOption = function(value) {\n    var count = optionsMap.get(value);\n    if (count) {\n      if (count === 1) {\n        optionsMap.remove(value);\n        if (value === '') {\n          self.hasEmptyOption = false;\n          self.emptyOption = undefined;\n        }\n      } else {\n        optionsMap.put(value, count - 1);\n      }\n    }\n  };\n\n  // Check whether the select control has an option matching the given value\n  self.hasOption = function(value) {\n    return !!optionsMap.get(value);\n  };\n\n\n  var renderScheduled = false;\n  function scheduleRender() {\n    if (renderScheduled) return;\n    renderScheduled = true;\n    $scope.$$postDigest(function() {\n      renderScheduled = false;\n      self.ngModelCtrl.$render();\n    });\n  }\n\n  var updateScheduled = false;\n  function scheduleViewValueUpdate(renderAfter) {\n    if (updateScheduled) return;\n\n    updateScheduled = true;\n\n    $scope.$$postDigest(function() {\n      if ($scope.$$destroyed) return;\n\n      updateScheduled = false;\n      self.ngModelCtrl.$setViewValue(self.readValue());\n      if (renderAfter) self.ngModelCtrl.$render();\n    });\n  }\n\n\n  self.registerOption = function(optionScope, optionElement, optionAttrs, interpolateValueFn, interpolateTextFn) {\n\n    if (optionAttrs.$attr.ngValue) {\n      // The value attribute is set by ngValue\n      var oldVal, hashedVal = NaN;\n      optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {\n\n        var removal;\n        var previouslySelected = optionElement.prop('selected');\n\n        if (isDefined(hashedVal)) {\n          self.removeOption(oldVal);\n          delete self.selectValueMap[hashedVal];\n          removal = true;\n        }\n\n        hashedVal = hashKey(newVal);\n        oldVal = newVal;\n        self.selectValueMap[hashedVal] = newVal;\n        self.addOption(newVal, optionElement);\n        // Set the attribute directly instead of using optionAttrs.$set - this stops the observer\n        // from firing a second time. Other $observers on value will also get the result of the\n        // ngValue expression, not the hashed value\n        optionElement.attr('value', hashedVal);\n\n        if (removal && previouslySelected) {\n          scheduleViewValueUpdate();\n        }\n\n      });\n    } else if (interpolateValueFn) {\n      // The value attribute is interpolated\n      optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {\n        // This method is overwritten in ngOptions and has side-effects!\n        self.readValue();\n\n        var removal;\n        var previouslySelected = optionElement.prop('selected');\n\n        if (isDefined(oldVal)) {\n          self.removeOption(oldVal);\n          removal = true;\n        }\n        oldVal = newVal;\n        self.addOption(newVal, optionElement);\n\n        if (removal && previouslySelected) {\n          scheduleViewValueUpdate();\n        }\n      });\n    } else if (interpolateTextFn) {\n      // The text content is interpolated\n      optionScope.$watch(interpolateTextFn, function interpolateWatchAction(newVal, oldVal) {\n        optionAttrs.$set('value', newVal);\n        var previouslySelected = optionElement.prop('selected');\n        if (oldVal !== newVal) {\n          self.removeOption(oldVal);\n        }\n        self.addOption(newVal, optionElement);\n\n        if (oldVal && previouslySelected) {\n          scheduleViewValueUpdate();\n        }\n      });\n    } else {\n      // The value attribute is static\n      self.addOption(optionAttrs.value, optionElement);\n    }\n\n\n    optionAttrs.$observe('disabled', function(newVal) {\n\n      // Since model updates will also select disabled options (like ngOptions),\n      // we only have to handle options becoming disabled, not enabled\n\n      if (newVal === 'true' || newVal && optionElement.prop('selected')) {\n        if (self.multiple) {\n          scheduleViewValueUpdate(true);\n        } else {\n          self.ngModelCtrl.$setViewValue(null);\n          self.ngModelCtrl.$render();\n        }\n      }\n    });\n\n    optionElement.on('$destroy', function() {\n      var currentValue = self.readValue();\n      var removeValue = optionAttrs.value;\n\n      self.removeOption(removeValue);\n      self.ngModelCtrl.$render();\n\n      if (self.multiple && currentValue && currentValue.indexOf(removeValue) !== -1 ||\n          currentValue === removeValue\n      ) {\n        // When multiple (selected) options are destroyed at the same time, we don't want\n        // to run a model update for each of them. Instead, run a single update in the $$postDigest\n        scheduleViewValueUpdate(true);\n      }\n    });\n  };\n\n  function setOptionAsSelected(optionEl) {\n    optionEl.prop('selected', true); // needed for IE\n    optionEl.attr('selected', true);\n  }\n}];\n\n/**\n * @ngdoc directive\n * @name select\n * @restrict E\n *\n * @description\n * HTML `select` element with angular data-binding.\n *\n * The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding\n * between the scope and the `<select>` control (including setting default values).\n * It also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or\n * {@link ngOptions `ngOptions`} directives.\n *\n * When an item in the `<select>` menu is selected, the value of the selected option will be bound\n * to the model identified by the `ngModel` directive. With static or repeated options, this is\n * the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.\n * Value and textContent can be interpolated.\n *\n * ## Matching model and option values\n *\n * In general, the match between the model and an option is evaluated by strictly comparing the model\n * value against the value of the available options.\n *\n * If you are setting the option value with the option's `value` attribute, or textContent, the\n * value will always be a `string` which means that the model value must also be a string.\n * Otherwise the `select` directive cannot match them correctly.\n *\n * To bind the model to a non-string value, you can use one of the following strategies:\n * - the {@link ng.ngOptions `ngOptions`} directive\n *   ({@link ng.select#using-select-with-ngoptions-and-setting-a-default-value})\n * - the {@link ng.ngValue `ngValue`} directive, which allows arbitrary expressions to be\n *   option values ({@link ng.select#using-ngvalue-to-bind-the-model-to-an-array-of-objects Example})\n * - model $parsers / $formatters to convert the string value\n *   ({@link ng.select#binding-select-to-a-non-string-value-via-ngmodel-parsing-formatting Example})\n *\n * If the viewValue of `ngModel` does not match any of the options, then the control\n * will automatically add an \"unknown\" option, which it then removes when the mismatch is resolved.\n *\n * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n * option. See example below for demonstration.\n *\n * ## Choosing between `ngRepeat` and `ngOptions`\n *\n * In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions\n * ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits:\n * - more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n * comprehension expression\n * - reduced memory consumption by not creating a new scope for each repeated instance\n * - increased render speed by creating the options in a documentFragment instead of individually\n *\n * Specifically, select with repeated options slows down significantly starting at 2000 options in\n * Chrome and Internet Explorer / Edge.\n *\n *\n * @param {string} ngModel Assignable angular expression to data-bind to.\n * @param {string=} name Property name of the form under which the control is published.\n * @param {string=} multiple Allows multiple options to be selected. The selected values will be\n *     bound to the model as an array.\n * @param {string=} required Sets `required` validation error key if the value is not entered.\n * @param {string=} ngRequired Adds required attribute and required validation constraint to\n * the element when the ngRequired expression evaluates to true. Use ngRequired instead of required\n * when you want to data-bind to the required attribute.\n * @param {string=} ngChange Angular expression to be executed when selected option(s) changes due to user\n *    interaction with the select element.\n * @param {string=} ngOptions sets the options that the select is populated with and defines what is\n * set on the model on selection. See {@link ngOptions `ngOptions`}.\n *\n * @example\n * ### Simple `select` elements with static options\n *\n * <example name=\"static-select\" module=\"staticSelect\">\n * <file name=\"index.html\">\n * <div ng-controller=\"ExampleController\">\n *   <form name=\"myForm\">\n *     <label for=\"singleSelect\"> Single select: </label><br>\n *     <select name=\"singleSelect\" ng-model=\"data.singleSelect\">\n *       <option value=\"option-1\">Option 1</option>\n *       <option value=\"option-2\">Option 2</option>\n *     </select><br>\n *\n *     <label for=\"singleSelect\"> Single select with \"not selected\" option and dynamic option values: </label><br>\n *     <select name=\"singleSelect\" id=\"singleSelect\" ng-model=\"data.singleSelect\">\n *       <option value=\"\">---Please select---</option> <!-- not selected / blank option -->\n *       <option value=\"{{data.option1}}\">Option 1</option> <!-- interpolation -->\n *       <option value=\"option-2\">Option 2</option>\n *     </select><br>\n *     <button ng-click=\"forceUnknownOption()\">Force unknown option</button><br>\n *     <tt>singleSelect = {{data.singleSelect}}</tt>\n *\n *     <hr>\n *     <label for=\"multipleSelect\"> Multiple select: </label><br>\n *     <select name=\"multipleSelect\" id=\"multipleSelect\" ng-model=\"data.multipleSelect\" multiple>\n *       <option value=\"option-1\">Option 1</option>\n *       <option value=\"option-2\">Option 2</option>\n *       <option value=\"option-3\">Option 3</option>\n *     </select><br>\n *     <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>\n *   </form>\n * </div>\n * </file>\n * <file name=\"app.js\">\n *  angular.module('staticSelect', [])\n *    .controller('ExampleController', ['$scope', function($scope) {\n *      $scope.data = {\n *       singleSelect: null,\n *       multipleSelect: [],\n *       option1: 'option-1'\n *      };\n *\n *      $scope.forceUnknownOption = function() {\n *        $scope.data.singleSelect = 'nonsense';\n *      };\n *   }]);\n * </file>\n *</example>\n *\n * ### Using `ngRepeat` to generate `select` options\n * <example name=\"select-ngrepeat\" module=\"ngrepeatSelect\">\n * <file name=\"index.html\">\n * <div ng-controller=\"ExampleController\">\n *   <form name=\"myForm\">\n *     <label for=\"repeatSelect\"> Repeat select: </label>\n *     <select name=\"repeatSelect\" id=\"repeatSelect\" ng-model=\"data.model\">\n *       <option ng-repeat=\"option in data.availableOptions\" value=\"{{option.id}}\">{{option.name}}</option>\n *     </select>\n *   </form>\n *   <hr>\n *   <tt>model = {{data.model}}</tt><br/>\n * </div>\n * </file>\n * <file name=\"app.js\">\n *  angular.module('ngrepeatSelect', [])\n *    .controller('ExampleController', ['$scope', function($scope) {\n *      $scope.data = {\n *       model: null,\n *       availableOptions: [\n *         {id: '1', name: 'Option A'},\n *         {id: '2', name: 'Option B'},\n *         {id: '3', name: 'Option C'}\n *       ]\n *      };\n *   }]);\n * </file>\n *</example>\n *\n * ### Using `ngValue` to bind the model to an array of objects\n * <example name=\"select-ngvalue\" module=\"ngvalueSelect\">\n * <file name=\"index.html\">\n * <div ng-controller=\"ExampleController\">\n *   <form name=\"myForm\">\n *     <label for=\"ngvalueselect\"> ngvalue select: </label>\n *     <select size=\"6\" name=\"ngvalueselect\" ng-model=\"data.model\" multiple>\n *       <option ng-repeat=\"option in data.availableOptions\" ng-value=\"option.value\">{{option.name}}</option>\n *     </select>\n *   </form>\n *   <hr>\n *   <pre>model = {{data.model | json}}</pre><br/>\n * </div>\n * </file>\n * <file name=\"app.js\">\n *  angular.module('ngvalueSelect', [])\n *    .controller('ExampleController', ['$scope', function($scope) {\n *      $scope.data = {\n *       model: null,\n *       availableOptions: [\n           {value: 'myString', name: 'string'},\n           {value: 1, name: 'integer'},\n           {value: true, name: 'boolean'},\n           {value: null, name: 'null'},\n           {value: {prop: 'value'}, name: 'object'},\n           {value: ['a'], name: 'array'}\n *       ]\n *      };\n *   }]);\n * </file>\n *</example>\n *\n * ### Using `select` with `ngOptions` and setting a default value\n * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.\n *\n * <example name=\"select-with-default-values\" module=\"defaultValueSelect\">\n * <file name=\"index.html\">\n * <div ng-controller=\"ExampleController\">\n *   <form name=\"myForm\">\n *     <label for=\"mySelect\">Make a choice:</label>\n *     <select name=\"mySelect\" id=\"mySelect\"\n *       ng-options=\"option.name for option in data.availableOptions track by option.id\"\n *       ng-model=\"data.selectedOption\"></select>\n *   </form>\n *   <hr>\n *   <tt>option = {{data.selectedOption}}</tt><br/>\n * </div>\n * </file>\n * <file name=\"app.js\">\n *  angular.module('defaultValueSelect', [])\n *    .controller('ExampleController', ['$scope', function($scope) {\n *      $scope.data = {\n *       availableOptions: [\n *         {id: '1', name: 'Option A'},\n *         {id: '2', name: 'Option B'},\n *         {id: '3', name: 'Option C'}\n *       ],\n *       selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui\n *       };\n *   }]);\n * </file>\n *</example>\n *\n *\n * ### Binding `select` to a non-string value via `ngModel` parsing / formatting\n *\n * <example name=\"select-with-non-string-options\" module=\"nonStringSelect\">\n *   <file name=\"index.html\">\n *     <select ng-model=\"model.id\" convert-to-number>\n *       <option value=\"0\">Zero</option>\n *       <option value=\"1\">One</option>\n *       <option value=\"2\">Two</option>\n *     </select>\n *     {{ model }}\n *   </file>\n *   <file name=\"app.js\">\n *     angular.module('nonStringSelect', [])\n *       .run(function($rootScope) {\n *         $rootScope.model = { id: 2 };\n *       })\n *       .directive('convertToNumber', function() {\n *         return {\n *           require: 'ngModel',\n *           link: function(scope, element, attrs, ngModel) {\n *             ngModel.$parsers.push(function(val) {\n *               return parseInt(val, 10);\n *             });\n *             ngModel.$formatters.push(function(val) {\n *               return '' + val;\n *             });\n *           }\n *         };\n *       });\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n *     it('should initialize to model', function() {\n *       expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');\n *     });\n *   </file>\n * </example>\n *\n */\nvar selectDirective = function() {\n\n  return {\n    restrict: 'E',\n    require: ['select', '?ngModel'],\n    controller: SelectController,\n    priority: 1,\n    link: {\n      pre: selectPreLink,\n      post: selectPostLink\n    }\n  };\n\n  function selectPreLink(scope, element, attr, ctrls) {\n\n      var selectCtrl = ctrls[0];\n      var ngModelCtrl = ctrls[1];\n\n      // if ngModel is not defined, we don't need to do anything but set the registerOption\n      // function to noop, so options don't get added internally\n      if (!ngModelCtrl) {\n        selectCtrl.registerOption = noop;\n        return;\n      }\n\n\n      selectCtrl.ngModelCtrl = ngModelCtrl;\n\n      // When the selected item(s) changes we delegate getting the value of the select control\n      // to the `readValue` method, which can be changed if the select can have multiple\n      // selected values or if the options are being generated by `ngOptions`\n      element.on('change', function() {\n        selectCtrl.removeUnknownOption();\n        scope.$apply(function() {\n          ngModelCtrl.$setViewValue(selectCtrl.readValue());\n        });\n      });\n\n      // If the select allows multiple values then we need to modify how we read and write\n      // values from and to the control; also what it means for the value to be empty and\n      // we have to add an extra watch since ngModel doesn't work well with arrays - it\n      // doesn't trigger rendering if only an item in the array changes.\n      if (attr.multiple) {\n        selectCtrl.multiple = true;\n\n        // Read value now needs to check each option to see if it is selected\n        selectCtrl.readValue = function readMultipleValue() {\n          var array = [];\n          forEach(element.find('option'), function(option) {\n            if (option.selected && !option.disabled) {\n              var val = option.value;\n              array.push(val in selectCtrl.selectValueMap ? selectCtrl.selectValueMap[val] : val);\n            }\n          });\n          return array;\n        };\n\n        // Write value now needs to set the selected property of each matching option\n        selectCtrl.writeValue = function writeMultipleValue(value) {\n          var items = new HashMap(value);\n          forEach(element.find('option'), function(option) {\n            option.selected = isDefined(items.get(option.value)) || isDefined(items.get(selectCtrl.selectValueMap[option.value]));\n          });\n        };\n\n        // we have to do it on each watch since ngModel watches reference, but\n        // we need to work of an array, so we need to see if anything was inserted/removed\n        var lastView, lastViewRef = NaN;\n        scope.$watch(function selectMultipleWatch() {\n          if (lastViewRef === ngModelCtrl.$viewValue && !equals(lastView, ngModelCtrl.$viewValue)) {\n            lastView = shallowCopy(ngModelCtrl.$viewValue);\n            ngModelCtrl.$render();\n          }\n          lastViewRef = ngModelCtrl.$viewValue;\n        });\n\n        // If we are a multiple select then value is now a collection\n        // so the meaning of $isEmpty changes\n        ngModelCtrl.$isEmpty = function(value) {\n          return !value || value.length === 0;\n        };\n\n      }\n    }\n\n    function selectPostLink(scope, element, attrs, ctrls) {\n      // if ngModel is not defined, we don't need to do anything\n      var ngModelCtrl = ctrls[1];\n      if (!ngModelCtrl) return;\n\n      var selectCtrl = ctrls[0];\n\n      // We delegate rendering to the `writeValue` method, which can be changed\n      // if the select can have multiple selected values or if the options are being\n      // generated by `ngOptions`.\n      // This must be done in the postLink fn to prevent $render to be called before\n      // all nodes have been linked correctly.\n      ngModelCtrl.$render = function() {\n        selectCtrl.writeValue(ngModelCtrl.$viewValue);\n      };\n    }\n};\n\n\n// The option directive is purely designed to communicate the existence (or lack of)\n// of dynamically created (and destroyed) option elements to their containing select\n// directive via its controller.\nvar optionDirective = ['$interpolate', function($interpolate) {\n  return {\n    restrict: 'E',\n    priority: 100,\n    compile: function(element, attr) {\n      var interpolateValueFn, interpolateTextFn;\n\n      if (isDefined(attr.ngValue)) {\n        // Will be handled by registerOption\n      } else if (isDefined(attr.value)) {\n        // If the value attribute is defined, check if it contains an interpolation\n        interpolateValueFn = $interpolate(attr.value, true);\n      } else {\n        // If the value attribute is not defined then we fall back to the\n        // text content of the option element, which may be interpolated\n        interpolateTextFn = $interpolate(element.text(), true);\n        if (!interpolateTextFn) {\n          attr.$set('value', element.text());\n        }\n      }\n\n      return function(scope, element, attr) {\n        // This is an optimization over using ^^ since we don't want to have to search\n        // all the way to the root of the DOM for every single option element\n        var selectCtrlName = '$selectController',\n            parent = element.parent(),\n            selectCtrl = parent.data(selectCtrlName) ||\n              parent.parent().data(selectCtrlName); // in case we are in optgroup\n\n        if (selectCtrl) {\n          selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn);\n        }\n      };\n    }\n  };\n}];\n\n/**\n * @ngdoc directive\n * @name ngRequired\n * @restrict A\n *\n * @description\n *\n * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.\n * It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be\n * applied to custom controls.\n *\n * The directive sets the `required` attribute on the element if the Angular expression inside\n * `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we\n * cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}\n * for more info.\n *\n * The validator will set the `required` error key to true if the `required` attribute is set and\n * calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the\n * {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the\n * `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing\n * custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.\n *\n * @example\n * <example name=\"ngRequiredDirective\" module=\"ngRequiredExample\">\n *   <file name=\"index.html\">\n *     <script>\n *       angular.module('ngRequiredExample', [])\n *         .controller('ExampleController', ['$scope', function($scope) {\n *           $scope.required = true;\n *         }]);\n *     </script>\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"form\">\n *         <label for=\"required\">Toggle required: </label>\n *         <input type=\"checkbox\" ng-model=\"required\" id=\"required\" />\n *         <br>\n *         <label for=\"input\">This input must be filled if `required` is true: </label>\n *         <input type=\"text\" ng-model=\"model\" id=\"input\" name=\"input\" ng-required=\"required\" /><br>\n *         <hr>\n *         required error set? = <code>{{form.input.$error.required}}</code><br>\n *         model = <code>{{model}}</code>\n *       </form>\n *     </div>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n       var required = element(by.binding('form.input.$error.required'));\n       var model = element(by.binding('model'));\n       var input = element(by.id('input'));\n\n       it('should set the required error', function() {\n         expect(required.getText()).toContain('true');\n\n         input.sendKeys('123');\n         expect(required.getText()).not.toContain('true');\n         expect(model.getText()).toContain('123');\n       });\n *   </file>\n * </example>\n */\nvar requiredDirective = function() {\n  return {\n    restrict: 'A',\n    require: '?ngModel',\n    link: function(scope, elm, attr, ctrl) {\n      if (!ctrl) return;\n      attr.required = true; // force truthy in case we are on non input element\n\n      ctrl.$validators.required = function(modelValue, viewValue) {\n        return !attr.required || !ctrl.$isEmpty(viewValue);\n      };\n\n      attr.$observe('required', function() {\n        ctrl.$validate();\n      });\n    }\n  };\n};\n\n/**\n * @ngdoc directive\n * @name ngPattern\n *\n * @description\n *\n * ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.\n * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.\n *\n * The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}\n * does not match a RegExp which is obtained by evaluating the Angular expression given in the\n * `ngPattern` attribute value:\n * * If the expression evaluates to a RegExp object, then this is used directly.\n * * If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it\n * in `^` and `$` characters. For instance, `\"abc\"` will be converted to `new RegExp('^abc$')`.\n *\n * <div class=\"alert alert-info\">\n * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n * start at the index of the last search's match, thus not taking the whole input value into\n * account.\n * </div>\n *\n * <div class=\"alert alert-info\">\n * **Note:** This directive is also added when the plain `pattern` attribute is used, with two\n * differences:\n * <ol>\n *   <li>\n *     `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is\n *     not available.\n *   </li>\n *   <li>\n *     The `ngPattern` attribute must be an expression, while the `pattern` value must be\n *     interpolated.\n *   </li>\n * </ol>\n * </div>\n *\n * @example\n * <example name=\"ngPatternDirective\" module=\"ngPatternExample\">\n *   <file name=\"index.html\">\n *     <script>\n *       angular.module('ngPatternExample', [])\n *         .controller('ExampleController', ['$scope', function($scope) {\n *           $scope.regex = '\\\\d+';\n *         }]);\n *     </script>\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"form\">\n *         <label for=\"regex\">Set a pattern (regex string): </label>\n *         <input type=\"text\" ng-model=\"regex\" id=\"regex\" />\n *         <br>\n *         <label for=\"input\">This input is restricted by the current pattern: </label>\n *         <input type=\"text\" ng-model=\"model\" id=\"input\" name=\"input\" ng-pattern=\"regex\" /><br>\n *         <hr>\n *         input valid? = <code>{{form.input.$valid}}</code><br>\n *         model = <code>{{model}}</code>\n *       </form>\n *     </div>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n       var model = element(by.binding('model'));\n       var input = element(by.id('input'));\n\n       it('should validate the input with the default pattern', function() {\n         input.sendKeys('aaa');\n         expect(model.getText()).not.toContain('aaa');\n\n         input.clear().then(function() {\n           input.sendKeys('123');\n           expect(model.getText()).toContain('123');\n         });\n       });\n *   </file>\n * </example>\n */\nvar patternDirective = function() {\n  return {\n    restrict: 'A',\n    require: '?ngModel',\n    link: function(scope, elm, attr, ctrl) {\n      if (!ctrl) return;\n\n      var regexp, patternExp = attr.ngPattern || attr.pattern;\n      attr.$observe('pattern', function(regex) {\n        if (isString(regex) && regex.length > 0) {\n          regex = new RegExp('^' + regex + '$');\n        }\n\n        if (regex && !regex.test) {\n          throw minErr('ngPattern')('noregexp',\n            'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp,\n            regex, startingTag(elm));\n        }\n\n        regexp = regex || undefined;\n        ctrl.$validate();\n      });\n\n      ctrl.$validators.pattern = function(modelValue, viewValue) {\n        // HTML5 pattern constraint validates the input value, so we validate the viewValue\n        return ctrl.$isEmpty(viewValue) || isUndefined(regexp) || regexp.test(viewValue);\n      };\n    }\n  };\n};\n\n/**\n * @ngdoc directive\n * @name ngMaxlength\n *\n * @description\n *\n * ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.\n * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.\n *\n * The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}\n * is longer than the integer obtained by evaluating the Angular expression given in the\n * `ngMaxlength` attribute value.\n *\n * <div class=\"alert alert-info\">\n * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two\n * differences:\n * <ol>\n *   <li>\n *     `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint\n *     validation is not available.\n *   </li>\n *   <li>\n *     The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be\n *     interpolated.\n *   </li>\n * </ol>\n * </div>\n *\n * @example\n * <example name=\"ngMaxlengthDirective\" module=\"ngMaxlengthExample\">\n *   <file name=\"index.html\">\n *     <script>\n *       angular.module('ngMaxlengthExample', [])\n *         .controller('ExampleController', ['$scope', function($scope) {\n *           $scope.maxlength = 5;\n *         }]);\n *     </script>\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"form\">\n *         <label for=\"maxlength\">Set a maxlength: </label>\n *         <input type=\"number\" ng-model=\"maxlength\" id=\"maxlength\" />\n *         <br>\n *         <label for=\"input\">This input is restricted by the current maxlength: </label>\n *         <input type=\"text\" ng-model=\"model\" id=\"input\" name=\"input\" ng-maxlength=\"maxlength\" /><br>\n *         <hr>\n *         input valid? = <code>{{form.input.$valid}}</code><br>\n *         model = <code>{{model}}</code>\n *       </form>\n *     </div>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n       var model = element(by.binding('model'));\n       var input = element(by.id('input'));\n\n       it('should validate the input with the default maxlength', function() {\n         input.sendKeys('abcdef');\n         expect(model.getText()).not.toContain('abcdef');\n\n         input.clear().then(function() {\n           input.sendKeys('abcde');\n           expect(model.getText()).toContain('abcde');\n         });\n       });\n *   </file>\n * </example>\n */\nvar maxlengthDirective = function() {\n  return {\n    restrict: 'A',\n    require: '?ngModel',\n    link: function(scope, elm, attr, ctrl) {\n      if (!ctrl) return;\n\n      var maxlength = -1;\n      attr.$observe('maxlength', function(value) {\n        var intVal = toInt(value);\n        maxlength = isNumberNaN(intVal) ? -1 : intVal;\n        ctrl.$validate();\n      });\n      ctrl.$validators.maxlength = function(modelValue, viewValue) {\n        return (maxlength < 0) || ctrl.$isEmpty(viewValue) || (viewValue.length <= maxlength);\n      };\n    }\n  };\n};\n\n/**\n * @ngdoc directive\n * @name ngMinlength\n *\n * @description\n *\n * ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.\n * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.\n *\n * The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}\n * is shorter than the integer obtained by evaluating the Angular expression given in the\n * `ngMinlength` attribute value.\n *\n * <div class=\"alert alert-info\">\n * **Note:** This directive is also added when the plain `minlength` attribute is used, with two\n * differences:\n * <ol>\n *   <li>\n *     `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint\n *     validation is not available.\n *   </li>\n *   <li>\n *     The `ngMinlength` value must be an expression, while the `minlength` value must be\n *     interpolated.\n *   </li>\n * </ol>\n * </div>\n *\n * @example\n * <example name=\"ngMinlengthDirective\" module=\"ngMinlengthExample\">\n *   <file name=\"index.html\">\n *     <script>\n *       angular.module('ngMinlengthExample', [])\n *         .controller('ExampleController', ['$scope', function($scope) {\n *           $scope.minlength = 3;\n *         }]);\n *     </script>\n *     <div ng-controller=\"ExampleController\">\n *       <form name=\"form\">\n *         <label for=\"minlength\">Set a minlength: </label>\n *         <input type=\"number\" ng-model=\"minlength\" id=\"minlength\" />\n *         <br>\n *         <label for=\"input\">This input is restricted by the current minlength: </label>\n *         <input type=\"text\" ng-model=\"model\" id=\"input\" name=\"input\" ng-minlength=\"minlength\" /><br>\n *         <hr>\n *         input valid? = <code>{{form.input.$valid}}</code><br>\n *         model = <code>{{model}}</code>\n *       </form>\n *     </div>\n *   </file>\n *   <file name=\"protractor.js\" type=\"protractor\">\n       var model = element(by.binding('model'));\n       var input = element(by.id('input'));\n\n       it('should validate the input with the default minlength', function() {\n         input.sendKeys('ab');\n         expect(model.getText()).not.toContain('ab');\n\n         input.sendKeys('abc');\n         expect(model.getText()).toContain('abc');\n       });\n *   </file>\n * </example>\n */\nvar minlengthDirective = function() {\n  return {\n    restrict: 'A',\n    require: '?ngModel',\n    link: function(scope, elm, attr, ctrl) {\n      if (!ctrl) return;\n\n      var minlength = 0;\n      attr.$observe('minlength', function(value) {\n        minlength = toInt(value) || 0;\n        ctrl.$validate();\n      });\n      ctrl.$validators.minlength = function(modelValue, viewValue) {\n        return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;\n      };\n    }\n  };\n};\n\nif (window.angular.bootstrap) {\n  // AngularJS is already loaded, so we can return here...\n  if (window.console) {\n    console.log('WARNING: Tried to load angular more than once.');\n  }\n  return;\n}\n\n// try to bind to jquery now so that one can write jqLite(fn)\n// but we will rebind on bootstrap again.\nbindJQuery();\n\npublishExternalAPI(angular);\n\nangular.module(\"ngLocale\", [], [\"$provide\", function($provide) {\nvar PLURAL_CATEGORY = {ZERO: \"zero\", ONE: \"one\", TWO: \"two\", FEW: \"few\", MANY: \"many\", OTHER: \"other\"};\nfunction getDecimals(n) {\n  n = n + '';\n  var i = n.indexOf('.');\n  return (i == -1) ? 0 : n.length - i - 1;\n}\n\nfunction getVF(n, opt_precision) {\n  var v = opt_precision;\n\n  if (undefined === v) {\n    v = Math.min(getDecimals(n), 3);\n  }\n\n  var base = Math.pow(10, v);\n  var f = ((n * base) | 0) % base;\n  return {v: v, f: f};\n}\n\n$provide.value(\"$locale\", {\n  \"DATETIME_FORMATS\": {\n    \"AMPMS\": [\n      \"AM\",\n      \"PM\"\n    ],\n    \"DAY\": [\n      \"Sunday\",\n      \"Monday\",\n      \"Tuesday\",\n      \"Wednesday\",\n      \"Thursday\",\n      \"Friday\",\n      \"Saturday\"\n    ],\n    \"ERANAMES\": [\n      \"Before Christ\",\n      \"Anno Domini\"\n    ],\n    \"ERAS\": [\n      \"BC\",\n      \"AD\"\n    ],\n    \"FIRSTDAYOFWEEK\": 6,\n    \"MONTH\": [\n      \"January\",\n      \"February\",\n      \"March\",\n      \"April\",\n      \"May\",\n      \"June\",\n      \"July\",\n      \"August\",\n      \"September\",\n      \"October\",\n      \"November\",\n      \"December\"\n    ],\n    \"SHORTDAY\": [\n      \"Sun\",\n      \"Mon\",\n      \"Tue\",\n      \"Wed\",\n      \"Thu\",\n      \"Fri\",\n      \"Sat\"\n    ],\n    \"SHORTMONTH\": [\n      \"Jan\",\n      \"Feb\",\n      \"Mar\",\n      \"Apr\",\n      \"May\",\n      \"Jun\",\n      \"Jul\",\n      \"Aug\",\n      \"Sep\",\n      \"Oct\",\n      \"Nov\",\n      \"Dec\"\n    ],\n    \"STANDALONEMONTH\": [\n      \"January\",\n      \"February\",\n      \"March\",\n      \"April\",\n      \"May\",\n      \"June\",\n      \"July\",\n      \"August\",\n      \"September\",\n      \"October\",\n      \"November\",\n      \"December\"\n    ],\n    \"WEEKENDRANGE\": [\n      5,\n      6\n    ],\n    \"fullDate\": \"EEEE, MMMM d, y\",\n    \"longDate\": \"MMMM d, y\",\n    \"medium\": \"MMM d, y h:mm:ss a\",\n    \"mediumDate\": \"MMM d, y\",\n    \"mediumTime\": \"h:mm:ss a\",\n    \"short\": \"M/d/yy h:mm a\",\n    \"shortDate\": \"M/d/yy\",\n    \"shortTime\": \"h:mm a\"\n  },\n  \"NUMBER_FORMATS\": {\n    \"CURRENCY_SYM\": \"$\",\n    \"DECIMAL_SEP\": \".\",\n    \"GROUP_SEP\": \",\",\n    \"PATTERNS\": [\n      {\n        \"gSize\": 3,\n        \"lgSize\": 3,\n        \"maxFrac\": 3,\n        \"minFrac\": 0,\n        \"minInt\": 1,\n        \"negPre\": \"-\",\n        \"negSuf\": \"\",\n        \"posPre\": \"\",\n        \"posSuf\": \"\"\n      },\n      {\n        \"gSize\": 3,\n        \"lgSize\": 3,\n        \"maxFrac\": 2,\n        \"minFrac\": 2,\n        \"minInt\": 1,\n        \"negPre\": \"-\\u00a4\",\n        \"negSuf\": \"\",\n        \"posPre\": \"\\u00a4\",\n        \"posSuf\": \"\"\n      }\n    ]\n  },\n  \"id\": \"en-us\",\n  \"localeID\": \"en_US\",\n  \"pluralCat\": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (i == 1 && vf.v == 0) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}\n});\n}]);\n\n  jqLite(function() {\n    angularInit(window.document, bootstrap);\n  });\n\n})(window);\n\n!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type=\"text/css\">@charset \"UTF-8\";[ng\\\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');"
  },
  {
    "path": "test/bench/fixtures/backbone.js",
    "content": "//     Backbone.js 1.3.3\n\n//     (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n//     Backbone may be freely distributed under the MIT license.\n//     For all details and documentation:\n//     http://backbonejs.org\n\n(function(factory) {\n\n  // Establish the root object, `window` (`self`) in the browser, or `global` on the server.\n  // We use `self` instead of `window` for `WebWorker` support.\n  var root = (typeof self == 'object' && self.self === self && self) ||\n            (typeof global == 'object' && global.global === global && global);\n\n  // Set up Backbone appropriately for the environment. Start with AMD.\n  if (typeof define === 'function' && define.amd) {\n    define(['underscore', 'jquery', 'exports'], function(_, $, exports) {\n      // Export global even in AMD case in case this script is loaded with\n      // others that may still expect a global Backbone.\n      root.Backbone = factory(root, exports, _, $);\n    });\n\n  // Next for Node.js or CommonJS. jQuery may not be needed as a module.\n  } else if (typeof exports !== 'undefined') {\n    var _ = require('underscore'), $;\n    try { $ = require('jquery'); } catch (e) {}\n    factory(root, exports, _, $);\n\n  // Finally, as a browser global.\n  } else {\n    root.Backbone = factory(root, {}, root._, (root.jQuery || root.Zepto || root.ender || root.$));\n  }\n\n})(function(root, Backbone, _, $) {\n\n  // Initial Setup\n  // -------------\n\n  // Save the previous value of the `Backbone` variable, so that it can be\n  // restored later on, if `noConflict` is used.\n  var previousBackbone = root.Backbone;\n\n  // Create a local reference to a common array method we'll want to use later.\n  var slice = Array.prototype.slice;\n\n  // Current version of the library. Keep in sync with `package.json`.\n  Backbone.VERSION = '1.3.3';\n\n  // For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns\n  // the `$` variable.\n  Backbone.$ = $;\n\n  // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable\n  // to its previous owner. Returns a reference to this Backbone object.\n  Backbone.noConflict = function() {\n    root.Backbone = previousBackbone;\n    return this;\n  };\n\n  // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option\n  // will fake `\"PATCH\"`, `\"PUT\"` and `\"DELETE\"` requests via the `_method` parameter and\n  // set a `X-Http-Method-Override` header.\n  Backbone.emulateHTTP = false;\n\n  // Turn on `emulateJSON` to support legacy servers that can't deal with direct\n  // `application/json` requests ... this will encode the body as\n  // `application/x-www-form-urlencoded` instead and will send the model in a\n  // form param named `model`.\n  Backbone.emulateJSON = false;\n\n  // Proxy Backbone class methods to Underscore functions, wrapping the model's\n  // `attributes` object or collection's `models` array behind the scenes.\n  //\n  // collection.filter(function(model) { return model.get('age') > 10 });\n  // collection.each(this.addView);\n  //\n  // `Function#apply` can be slow so we use the method's arg count, if we know it.\n  var addMethod = function(length, method, attribute) {\n    switch (length) {\n      case 1: return function() {\n        return _[method](this[attribute]);\n      };\n      case 2: return function(value) {\n        return _[method](this[attribute], value);\n      };\n      case 3: return function(iteratee, context) {\n        return _[method](this[attribute], cb(iteratee, this), context);\n      };\n      case 4: return function(iteratee, defaultVal, context) {\n        return _[method](this[attribute], cb(iteratee, this), defaultVal, context);\n      };\n      default: return function() {\n        var args = slice.call(arguments);\n        args.unshift(this[attribute]);\n        return _[method].apply(_, args);\n      };\n    }\n  };\n  var addUnderscoreMethods = function(Class, methods, attribute) {\n    _.each(methods, function(length, method) {\n      if (_[method]) Class.prototype[method] = addMethod(length, method, attribute);\n    });\n  };\n\n  // Support `collection.sortBy('attr')` and `collection.findWhere({id: 1})`.\n  var cb = function(iteratee, instance) {\n    if (_.isFunction(iteratee)) return iteratee;\n    if (_.isObject(iteratee) && !instance._isModel(iteratee)) return modelMatcher(iteratee);\n    if (_.isString(iteratee)) return function(model) { return model.get(iteratee); };\n    return iteratee;\n  };\n  var modelMatcher = function(attrs) {\n    var matcher = _.matches(attrs);\n    return function(model) {\n      return matcher(model.attributes);\n    };\n  };\n\n  // Backbone.Events\n  // ---------------\n\n  // A module that can be mixed in to *any object* in order to provide it with\n  // a custom event channel. You may bind a callback to an event with `on` or\n  // remove with `off`; `trigger`-ing an event fires all callbacks in\n  // succession.\n  //\n  //     var object = {};\n  //     _.extend(object, Backbone.Events);\n  //     object.on('expand', function(){ alert('expanded'); });\n  //     object.trigger('expand');\n  //\n  var Events = Backbone.Events = {};\n\n  // Regular expression used to split event strings.\n  var eventSplitter = /\\s+/;\n\n  // Iterates over the standard `event, callback` (as well as the fancy multiple\n  // space-separated events `\"change blur\", callback` and jQuery-style event\n  // maps `{event: callback}`).\n  var eventsApi = function(iteratee, events, name, callback, opts) {\n    var i = 0, names;\n    if (name && typeof name === 'object') {\n      // Handle event maps.\n      if (callback !== void 0 && 'context' in opts && opts.context === void 0) opts.context = callback;\n      for (names = _.keys(name); i < names.length ; i++) {\n        events = eventsApi(iteratee, events, names[i], name[names[i]], opts);\n      }\n    } else if (name && eventSplitter.test(name)) {\n      // Handle space-separated event names by delegating them individually.\n      for (names = name.split(eventSplitter); i < names.length; i++) {\n        events = iteratee(events, names[i], callback, opts);\n      }\n    } else {\n      // Finally, standard events.\n      events = iteratee(events, name, callback, opts);\n    }\n    return events;\n  };\n\n  // Bind an event to a `callback` function. Passing `\"all\"` will bind\n  // the callback to all events fired.\n  Events.on = function(name, callback, context) {\n    return internalOn(this, name, callback, context);\n  };\n\n  // Guard the `listening` argument from the public API.\n  var internalOn = function(obj, name, callback, context, listening) {\n    obj._events = eventsApi(onApi, obj._events || {}, name, callback, {\n      context: context,\n      ctx: obj,\n      listening: listening\n    });\n\n    if (listening) {\n      var listeners = obj._listeners || (obj._listeners = {});\n      listeners[listening.id] = listening;\n    }\n\n    return obj;\n  };\n\n  // Inversion-of-control versions of `on`. Tell *this* object to listen to\n  // an event in another object... keeping track of what it's listening to\n  // for easier unbinding later.\n  Events.listenTo = function(obj, name, callback) {\n    if (!obj) return this;\n    var id = obj._listenId || (obj._listenId = _.uniqueId('l'));\n    var listeningTo = this._listeningTo || (this._listeningTo = {});\n    var listening = listeningTo[id];\n\n    // This object is not listening to any other events on `obj` yet.\n    // Setup the necessary references to track the listening callbacks.\n    if (!listening) {\n      var thisId = this._listenId || (this._listenId = _.uniqueId('l'));\n      listening = listeningTo[id] = {obj: obj, objId: id, id: thisId, listeningTo: listeningTo, count: 0};\n    }\n\n    // Bind callbacks on obj, and keep track of them on listening.\n    internalOn(obj, name, callback, this, listening);\n    return this;\n  };\n\n  // The reducing API that adds a callback to the `events` object.\n  var onApi = function(events, name, callback, options) {\n    if (callback) {\n      var handlers = events[name] || (events[name] = []);\n      var context = options.context, ctx = options.ctx, listening = options.listening;\n      if (listening) listening.count++;\n\n      handlers.push({callback: callback, context: context, ctx: context || ctx, listening: listening});\n    }\n    return events;\n  };\n\n  // Remove one or many callbacks. If `context` is null, removes all\n  // callbacks with that function. If `callback` is null, removes all\n  // callbacks for the event. If `name` is null, removes all bound\n  // callbacks for all events.\n  Events.off = function(name, callback, context) {\n    if (!this._events) return this;\n    this._events = eventsApi(offApi, this._events, name, callback, {\n      context: context,\n      listeners: this._listeners\n    });\n    return this;\n  };\n\n  // Tell this object to stop listening to either specific events ... or\n  // to every object it's currently listening to.\n  Events.stopListening = function(obj, name, callback) {\n    var listeningTo = this._listeningTo;\n    if (!listeningTo) return this;\n\n    var ids = obj ? [obj._listenId] : _.keys(listeningTo);\n\n    for (var i = 0; i < ids.length; i++) {\n      var listening = listeningTo[ids[i]];\n\n      // If listening doesn't exist, this object is not currently\n      // listening to obj. Break out early.\n      if (!listening) break;\n\n      listening.obj.off(name, callback, this);\n    }\n\n    return this;\n  };\n\n  // The reducing API that removes a callback from the `events` object.\n  var offApi = function(events, name, callback, options) {\n    if (!events) return;\n\n    var i = 0, listening;\n    var context = options.context, listeners = options.listeners;\n\n    // Delete all events listeners and \"drop\" events.\n    if (!name && !callback && !context) {\n      var ids = _.keys(listeners);\n      for (; i < ids.length; i++) {\n        listening = listeners[ids[i]];\n        delete listeners[listening.id];\n        delete listening.listeningTo[listening.objId];\n      }\n      return;\n    }\n\n    var names = name ? [name] : _.keys(events);\n    for (; i < names.length; i++) {\n      name = names[i];\n      var handlers = events[name];\n\n      // Bail out if there are no events stored.\n      if (!handlers) break;\n\n      // Replace events if there are any remaining.  Otherwise, clean up.\n      var remaining = [];\n      for (var j = 0; j < handlers.length; j++) {\n        var handler = handlers[j];\n        if (\n          callback && callback !== handler.callback &&\n            callback !== handler.callback._callback ||\n              context && context !== handler.context\n        ) {\n          remaining.push(handler);\n        } else {\n          listening = handler.listening;\n          if (listening && --listening.count === 0) {\n            delete listeners[listening.id];\n            delete listening.listeningTo[listening.objId];\n          }\n        }\n      }\n\n      // Update tail event if the list has any events.  Otherwise, clean up.\n      if (remaining.length) {\n        events[name] = remaining;\n      } else {\n        delete events[name];\n      }\n    }\n    return events;\n  };\n\n  // Bind an event to only be triggered a single time. After the first time\n  // the callback is invoked, its listener will be removed. If multiple events\n  // are passed in using the space-separated syntax, the handler will fire\n  // once for each event, not once for a combination of all events.\n  Events.once = function(name, callback, context) {\n    // Map the event into a `{event: once}` object.\n    var events = eventsApi(onceMap, {}, name, callback, _.bind(this.off, this));\n    if (typeof name === 'string' && context == null) callback = void 0;\n    return this.on(events, callback, context);\n  };\n\n  // Inversion-of-control versions of `once`.\n  Events.listenToOnce = function(obj, name, callback) {\n    // Map the event into a `{event: once}` object.\n    var events = eventsApi(onceMap, {}, name, callback, _.bind(this.stopListening, this, obj));\n    return this.listenTo(obj, events);\n  };\n\n  // Reduces the event callbacks into a map of `{event: onceWrapper}`.\n  // `offer` unbinds the `onceWrapper` after it has been called.\n  var onceMap = function(map, name, callback, offer) {\n    if (callback) {\n      var once = map[name] = _.once(function() {\n        offer(name, once);\n        callback.apply(this, arguments);\n      });\n      once._callback = callback;\n    }\n    return map;\n  };\n\n  // Trigger one or many events, firing all bound callbacks. Callbacks are\n  // passed the same arguments as `trigger` is, apart from the event name\n  // (unless you're listening on `\"all\"`, which will cause your callback to\n  // receive the true name of the event as the first argument).\n  Events.trigger = function(name) {\n    if (!this._events) return this;\n\n    var length = Math.max(0, arguments.length - 1);\n    var args = Array(length);\n    for (var i = 0; i < length; i++) args[i] = arguments[i + 1];\n\n    eventsApi(triggerApi, this._events, name, void 0, args);\n    return this;\n  };\n\n  // Handles triggering the appropriate event callbacks.\n  var triggerApi = function(objEvents, name, callback, args) {\n    if (objEvents) {\n      var events = objEvents[name];\n      var allEvents = objEvents.all;\n      if (events && allEvents) allEvents = allEvents.slice();\n      if (events) triggerEvents(events, args);\n      if (allEvents) triggerEvents(allEvents, [name].concat(args));\n    }\n    return objEvents;\n  };\n\n  // A difficult-to-believe, but optimized internal dispatch function for\n  // triggering events. Tries to keep the usual cases speedy (most internal\n  // Backbone events have 3 arguments).\n  var triggerEvents = function(events, args) {\n    var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];\n    switch (args.length) {\n      case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;\n      case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;\n      case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;\n      case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;\n      default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args); return;\n    }\n  };\n\n  // Aliases for backwards compatibility.\n  Events.bind   = Events.on;\n  Events.unbind = Events.off;\n\n  // Allow the `Backbone` object to serve as a global event bus, for folks who\n  // want global \"pubsub\" in a convenient place.\n  _.extend(Backbone, Events);\n\n  // Backbone.Model\n  // --------------\n\n  // Backbone **Models** are the basic data object in the framework --\n  // frequently representing a row in a table in a database on your server.\n  // A discrete chunk of data and a bunch of useful, related methods for\n  // performing computations and transformations on that data.\n\n  // Create a new model with the specified attributes. A client id (`cid`)\n  // is automatically generated and assigned for you.\n  var Model = Backbone.Model = function(attributes, options) {\n    var attrs = attributes || {};\n    options || (options = {});\n    this.cid = _.uniqueId(this.cidPrefix);\n    this.attributes = {};\n    if (options.collection) this.collection = options.collection;\n    if (options.parse) attrs = this.parse(attrs, options) || {};\n    var defaults = _.result(this, 'defaults');\n    attrs = _.defaults(_.extend({}, defaults, attrs), defaults);\n    this.set(attrs, options);\n    this.changed = {};\n    this.initialize.apply(this, arguments);\n  };\n\n  // Attach all inheritable methods to the Model prototype.\n  _.extend(Model.prototype, Events, {\n\n    // A hash of attributes whose current and previous value differ.\n    changed: null,\n\n    // The value returned during the last failed validation.\n    validationError: null,\n\n    // The default name for the JSON `id` attribute is `\"id\"`. MongoDB and\n    // CouchDB users may want to set this to `\"_id\"`.\n    idAttribute: 'id',\n\n    // The prefix is used to create the client id which is used to identify models locally.\n    // You may want to override this if you're experiencing name clashes with model ids.\n    cidPrefix: 'c',\n\n    // Initialize is an empty function by default. Override it with your own\n    // initialization logic.\n    initialize: function(){},\n\n    // Return a copy of the model's `attributes` object.\n    toJSON: function(options) {\n      return _.clone(this.attributes);\n    },\n\n    // Proxy `Backbone.sync` by default -- but override this if you need\n    // custom syncing semantics for *this* particular model.\n    sync: function() {\n      return Backbone.sync.apply(this, arguments);\n    },\n\n    // Get the value of an attribute.\n    get: function(attr) {\n      return this.attributes[attr];\n    },\n\n    // Get the HTML-escaped value of an attribute.\n    escape: function(attr) {\n      return _.escape(this.get(attr));\n    },\n\n    // Returns `true` if the attribute contains a value that is not null\n    // or undefined.\n    has: function(attr) {\n      return this.get(attr) != null;\n    },\n\n    // Special-cased proxy to underscore's `_.matches` method.\n    matches: function(attrs) {\n      return !!_.iteratee(attrs, this)(this.attributes);\n    },\n\n    // Set a hash of model attributes on the object, firing `\"change\"`. This is\n    // the core primitive operation of a model, updating the data and notifying\n    // anyone who needs to know about the change in state. The heart of the beast.\n    set: function(key, val, options) {\n      if (key == null) return this;\n\n      // Handle both `\"key\", value` and `{key: value}` -style arguments.\n      var attrs;\n      if (typeof key === 'object') {\n        attrs = key;\n        options = val;\n      } else {\n        (attrs = {})[key] = val;\n      }\n\n      options || (options = {});\n\n      // Run validation.\n      if (!this._validate(attrs, options)) return false;\n\n      // Extract attributes and options.\n      var unset      = options.unset;\n      var silent     = options.silent;\n      var changes    = [];\n      var changing   = this._changing;\n      this._changing = true;\n\n      if (!changing) {\n        this._previousAttributes = _.clone(this.attributes);\n        this.changed = {};\n      }\n\n      var current = this.attributes;\n      var changed = this.changed;\n      var prev    = this._previousAttributes;\n\n      // For each `set` attribute, update or delete the current value.\n      for (var attr in attrs) {\n        val = attrs[attr];\n        if (!_.isEqual(current[attr], val)) changes.push(attr);\n        if (!_.isEqual(prev[attr], val)) {\n          changed[attr] = val;\n        } else {\n          delete changed[attr];\n        }\n        unset ? delete current[attr] : current[attr] = val;\n      }\n\n      // Update the `id`.\n      if (this.idAttribute in attrs) this.id = this.get(this.idAttribute);\n\n      // Trigger all relevant attribute changes.\n      if (!silent) {\n        if (changes.length) this._pending = options;\n        for (var i = 0; i < changes.length; i++) {\n          this.trigger('change:' + changes[i], this, current[changes[i]], options);\n        }\n      }\n\n      // You might be wondering why there's a `while` loop here. Changes can\n      // be recursively nested within `\"change\"` events.\n      if (changing) return this;\n      if (!silent) {\n        while (this._pending) {\n          options = this._pending;\n          this._pending = false;\n          this.trigger('change', this, options);\n        }\n      }\n      this._pending = false;\n      this._changing = false;\n      return this;\n    },\n\n    // Remove an attribute from the model, firing `\"change\"`. `unset` is a noop\n    // if the attribute doesn't exist.\n    unset: function(attr, options) {\n      return this.set(attr, void 0, _.extend({}, options, {unset: true}));\n    },\n\n    // Clear all attributes on the model, firing `\"change\"`.\n    clear: function(options) {\n      var attrs = {};\n      for (var key in this.attributes) attrs[key] = void 0;\n      return this.set(attrs, _.extend({}, options, {unset: true}));\n    },\n\n    // Determine if the model has changed since the last `\"change\"` event.\n    // If you specify an attribute name, determine if that attribute has changed.\n    hasChanged: function(attr) {\n      if (attr == null) return !_.isEmpty(this.changed);\n      return _.has(this.changed, attr);\n    },\n\n    // Return an object containing all the attributes that have changed, or\n    // false if there are no changed attributes. Useful for determining what\n    // parts of a view need to be updated and/or what attributes need to be\n    // persisted to the server. Unset attributes will be set to undefined.\n    // You can also pass an attributes object to diff against the model,\n    // determining if there *would be* a change.\n    changedAttributes: function(diff) {\n      if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;\n      var old = this._changing ? this._previousAttributes : this.attributes;\n      var changed = {};\n      for (var attr in diff) {\n        var val = diff[attr];\n        if (_.isEqual(old[attr], val)) continue;\n        changed[attr] = val;\n      }\n      return _.size(changed) ? changed : false;\n    },\n\n    // Get the previous value of an attribute, recorded at the time the last\n    // `\"change\"` event was fired.\n    previous: function(attr) {\n      if (attr == null || !this._previousAttributes) return null;\n      return this._previousAttributes[attr];\n    },\n\n    // Get all of the attributes of the model at the time of the previous\n    // `\"change\"` event.\n    previousAttributes: function() {\n      return _.clone(this._previousAttributes);\n    },\n\n    // Fetch the model from the server, merging the response with the model's\n    // local attributes. Any changed attributes will trigger a \"change\" event.\n    fetch: function(options) {\n      options = _.extend({parse: true}, options);\n      var model = this;\n      var success = options.success;\n      options.success = function(resp) {\n        var serverAttrs = options.parse ? model.parse(resp, options) : resp;\n        if (!model.set(serverAttrs, options)) return false;\n        if (success) success.call(options.context, model, resp, options);\n        model.trigger('sync', model, resp, options);\n      };\n      wrapError(this, options);\n      return this.sync('read', this, options);\n    },\n\n    // Set a hash of model attributes, and sync the model to the server.\n    // If the server returns an attributes hash that differs, the model's\n    // state will be `set` again.\n    save: function(key, val, options) {\n      // Handle both `\"key\", value` and `{key: value}` -style arguments.\n      var attrs;\n      if (key == null || typeof key === 'object') {\n        attrs = key;\n        options = val;\n      } else {\n        (attrs = {})[key] = val;\n      }\n\n      options = _.extend({validate: true, parse: true}, options);\n      var wait = options.wait;\n\n      // If we're not waiting and attributes exist, save acts as\n      // `set(attr).save(null, opts)` with validation. Otherwise, check if\n      // the model will be valid when the attributes, if any, are set.\n      if (attrs && !wait) {\n        if (!this.set(attrs, options)) return false;\n      } else if (!this._validate(attrs, options)) {\n        return false;\n      }\n\n      // After a successful server-side save, the client is (optionally)\n      // updated with the server-side state.\n      var model = this;\n      var success = options.success;\n      var attributes = this.attributes;\n      options.success = function(resp) {\n        // Ensure attributes are restored during synchronous saves.\n        model.attributes = attributes;\n        var serverAttrs = options.parse ? model.parse(resp, options) : resp;\n        if (wait) serverAttrs = _.extend({}, attrs, serverAttrs);\n        if (serverAttrs && !model.set(serverAttrs, options)) return false;\n        if (success) success.call(options.context, model, resp, options);\n        model.trigger('sync', model, resp, options);\n      };\n      wrapError(this, options);\n\n      // Set temporary attributes if `{wait: true}` to properly find new ids.\n      if (attrs && wait) this.attributes = _.extend({}, attributes, attrs);\n\n      var method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');\n      if (method === 'patch' && !options.attrs) options.attrs = attrs;\n      var xhr = this.sync(method, this, options);\n\n      // Restore attributes.\n      this.attributes = attributes;\n\n      return xhr;\n    },\n\n    // Destroy this model on the server if it was already persisted.\n    // Optimistically removes the model from its collection, if it has one.\n    // If `wait: true` is passed, waits for the server to respond before removal.\n    destroy: function(options) {\n      options = options ? _.clone(options) : {};\n      var model = this;\n      var success = options.success;\n      var wait = options.wait;\n\n      var destroy = function() {\n        model.stopListening();\n        model.trigger('destroy', model, model.collection, options);\n      };\n\n      options.success = function(resp) {\n        if (wait) destroy();\n        if (success) success.call(options.context, model, resp, options);\n        if (!model.isNew()) model.trigger('sync', model, resp, options);\n      };\n\n      var xhr = false;\n      if (this.isNew()) {\n        _.defer(options.success);\n      } else {\n        wrapError(this, options);\n        xhr = this.sync('delete', this, options);\n      }\n      if (!wait) destroy();\n      return xhr;\n    },\n\n    // Default URL for the model's representation on the server -- if you're\n    // using Backbone's restful methods, override this to change the endpoint\n    // that will be called.\n    url: function() {\n      var base =\n        _.result(this, 'urlRoot') ||\n        _.result(this.collection, 'url') ||\n        urlError();\n      if (this.isNew()) return base;\n      var id = this.get(this.idAttribute);\n      return base.replace(/[^\\/]$/, '$&/') + encodeURIComponent(id);\n    },\n\n    // **parse** converts a response into the hash of attributes to be `set` on\n    // the model. The default implementation is just to pass the response along.\n    parse: function(resp, options) {\n      return resp;\n    },\n\n    // Create a new model with identical attributes to this one.\n    clone: function() {\n      return new this.constructor(this.attributes);\n    },\n\n    // A model is new if it has never been saved to the server, and lacks an id.\n    isNew: function() {\n      return !this.has(this.idAttribute);\n    },\n\n    // Check if the model is currently in a valid state.\n    isValid: function(options) {\n      return this._validate({}, _.extend({}, options, {validate: true}));\n    },\n\n    // Run validation against the next complete set of model attributes,\n    // returning `true` if all is well. Otherwise, fire an `\"invalid\"` event.\n    _validate: function(attrs, options) {\n      if (!options.validate || !this.validate) return true;\n      attrs = _.extend({}, this.attributes, attrs);\n      var error = this.validationError = this.validate(attrs, options) || null;\n      if (!error) return true;\n      this.trigger('invalid', this, error, _.extend(options, {validationError: error}));\n      return false;\n    }\n\n  });\n\n  // Underscore methods that we want to implement on the Model, mapped to the\n  // number of arguments they take.\n  var modelMethods = {keys: 1, values: 1, pairs: 1, invert: 1, pick: 0,\n      omit: 0, chain: 1, isEmpty: 1};\n\n  // Mix in each Underscore method as a proxy to `Model#attributes`.\n  addUnderscoreMethods(Model, modelMethods, 'attributes');\n\n  // Backbone.Collection\n  // -------------------\n\n  // If models tend to represent a single row of data, a Backbone Collection is\n  // more analogous to a table full of data ... or a small slice or page of that\n  // table, or a collection of rows that belong together for a particular reason\n  // -- all of the messages in this particular folder, all of the documents\n  // belonging to this particular author, and so on. Collections maintain\n  // indexes of their models, both in order, and for lookup by `id`.\n\n  // Create a new **Collection**, perhaps to contain a specific type of `model`.\n  // If a `comparator` is specified, the Collection will maintain\n  // its models in sort order, as they're added and removed.\n  var Collection = Backbone.Collection = function(models, options) {\n    options || (options = {});\n    if (options.model) this.model = options.model;\n    if (options.comparator !== void 0) this.comparator = options.comparator;\n    this._reset();\n    this.initialize.apply(this, arguments);\n    if (models) this.reset(models, _.extend({silent: true}, options));\n  };\n\n  // Default options for `Collection#set`.\n  var setOptions = {add: true, remove: true, merge: true};\n  var addOptions = {add: true, remove: false};\n\n  // Splices `insert` into `array` at index `at`.\n  var splice = function(array, insert, at) {\n    at = Math.min(Math.max(at, 0), array.length);\n    var tail = Array(array.length - at);\n    var length = insert.length;\n    var i;\n    for (i = 0; i < tail.length; i++) tail[i] = array[i + at];\n    for (i = 0; i < length; i++) array[i + at] = insert[i];\n    for (i = 0; i < tail.length; i++) array[i + length + at] = tail[i];\n  };\n\n  // Define the Collection's inheritable methods.\n  _.extend(Collection.prototype, Events, {\n\n    // The default model for a collection is just a **Backbone.Model**.\n    // This should be overridden in most cases.\n    model: Model,\n\n    // Initialize is an empty function by default. Override it with your own\n    // initialization logic.\n    initialize: function(){},\n\n    // The JSON representation of a Collection is an array of the\n    // models' attributes.\n    toJSON: function(options) {\n      return this.map(function(model) { return model.toJSON(options); });\n    },\n\n    // Proxy `Backbone.sync` by default.\n    sync: function() {\n      return Backbone.sync.apply(this, arguments);\n    },\n\n    // Add a model, or list of models to the set. `models` may be Backbone\n    // Models or raw JavaScript objects to be converted to Models, or any\n    // combination of the two.\n    add: function(models, options) {\n      return this.set(models, _.extend({merge: false}, options, addOptions));\n    },\n\n    // Remove a model, or a list of models from the set.\n    remove: function(models, options) {\n      options = _.extend({}, options);\n      var singular = !_.isArray(models);\n      models = singular ? [models] : models.slice();\n      var removed = this._removeModels(models, options);\n      if (!options.silent && removed.length) {\n        options.changes = {added: [], merged: [], removed: removed};\n        this.trigger('update', this, options);\n      }\n      return singular ? removed[0] : removed;\n    },\n\n    // Update a collection by `set`-ing a new list of models, adding new ones,\n    // removing models that are no longer present, and merging models that\n    // already exist in the collection, as necessary. Similar to **Model#set**,\n    // the core operation for updating the data contained by the collection.\n    set: function(models, options) {\n      if (models == null) return;\n\n      options = _.extend({}, setOptions, options);\n      if (options.parse && !this._isModel(models)) {\n        models = this.parse(models, options) || [];\n      }\n\n      var singular = !_.isArray(models);\n      models = singular ? [models] : models.slice();\n\n      var at = options.at;\n      if (at != null) at = +at;\n      if (at > this.length) at = this.length;\n      if (at < 0) at += this.length + 1;\n\n      var set = [];\n      var toAdd = [];\n      var toMerge = [];\n      var toRemove = [];\n      var modelMap = {};\n\n      var add = options.add;\n      var merge = options.merge;\n      var remove = options.remove;\n\n      var sort = false;\n      var sortable = this.comparator && at == null && options.sort !== false;\n      var sortAttr = _.isString(this.comparator) ? this.comparator : null;\n\n      // Turn bare objects into model references, and prevent invalid models\n      // from being added.\n      var model, i;\n      for (i = 0; i < models.length; i++) {\n        model = models[i];\n\n        // If a duplicate is found, prevent it from being added and\n        // optionally merge it into the existing model.\n        var existing = this.get(model);\n        if (existing) {\n          if (merge && model !== existing) {\n            var attrs = this._isModel(model) ? model.attributes : model;\n            if (options.parse) attrs = existing.parse(attrs, options);\n            existing.set(attrs, options);\n            toMerge.push(existing);\n            if (sortable && !sort) sort = existing.hasChanged(sortAttr);\n          }\n          if (!modelMap[existing.cid]) {\n            modelMap[existing.cid] = true;\n            set.push(existing);\n          }\n          models[i] = existing;\n\n        // If this is a new, valid model, push it to the `toAdd` list.\n        } else if (add) {\n          model = models[i] = this._prepareModel(model, options);\n          if (model) {\n            toAdd.push(model);\n            this._addReference(model, options);\n            modelMap[model.cid] = true;\n            set.push(model);\n          }\n        }\n      }\n\n      // Remove stale models.\n      if (remove) {\n        for (i = 0; i < this.length; i++) {\n          model = this.models[i];\n          if (!modelMap[model.cid]) toRemove.push(model);\n        }\n        if (toRemove.length) this._removeModels(toRemove, options);\n      }\n\n      // See if sorting is needed, update `length` and splice in new models.\n      var orderChanged = false;\n      var replace = !sortable && add && remove;\n      if (set.length && replace) {\n        orderChanged = this.length !== set.length || _.some(this.models, function(m, index) {\n          return m !== set[index];\n        });\n        this.models.length = 0;\n        splice(this.models, set, 0);\n        this.length = this.models.length;\n      } else if (toAdd.length) {\n        if (sortable) sort = true;\n        splice(this.models, toAdd, at == null ? this.length : at);\n        this.length = this.models.length;\n      }\n\n      // Silently sort the collection if appropriate.\n      if (sort) this.sort({silent: true});\n\n      // Unless silenced, it's time to fire all appropriate add/sort/update events.\n      if (!options.silent) {\n        for (i = 0; i < toAdd.length; i++) {\n          if (at != null) options.index = at + i;\n          model = toAdd[i];\n          model.trigger('add', model, this, options);\n        }\n        if (sort || orderChanged) this.trigger('sort', this, options);\n        if (toAdd.length || toRemove.length || toMerge.length) {\n          options.changes = {\n            added: toAdd,\n            removed: toRemove,\n            merged: toMerge\n          };\n          this.trigger('update', this, options);\n        }\n      }\n\n      // Return the added (or merged) model (or models).\n      return singular ? models[0] : models;\n    },\n\n    // When you have more items than you want to add or remove individually,\n    // you can reset the entire set with a new list of models, without firing\n    // any granular `add` or `remove` events. Fires `reset` when finished.\n    // Useful for bulk operations and optimizations.\n    reset: function(models, options) {\n      options = options ? _.clone(options) : {};\n      for (var i = 0; i < this.models.length; i++) {\n        this._removeReference(this.models[i], options);\n      }\n      options.previousModels = this.models;\n      this._reset();\n      models = this.add(models, _.extend({silent: true}, options));\n      if (!options.silent) this.trigger('reset', this, options);\n      return models;\n    },\n\n    // Add a model to the end of the collection.\n    push: function(model, options) {\n      return this.add(model, _.extend({at: this.length}, options));\n    },\n\n    // Remove a model from the end of the collection.\n    pop: function(options) {\n      var model = this.at(this.length - 1);\n      return this.remove(model, options);\n    },\n\n    // Add a model to the beginning of the collection.\n    unshift: function(model, options) {\n      return this.add(model, _.extend({at: 0}, options));\n    },\n\n    // Remove a model from the beginning of the collection.\n    shift: function(options) {\n      var model = this.at(0);\n      return this.remove(model, options);\n    },\n\n    // Slice out a sub-array of models from the collection.\n    slice: function() {\n      return slice.apply(this.models, arguments);\n    },\n\n    // Get a model from the set by id, cid, model object with id or cid\n    // properties, or an attributes object that is transformed through modelId.\n    get: function(obj) {\n      if (obj == null) return void 0;\n      return this._byId[obj] ||\n        this._byId[this.modelId(obj.attributes || obj)] ||\n        obj.cid && this._byId[obj.cid];\n    },\n\n    // Returns `true` if the model is in the collection.\n    has: function(obj) {\n      return this.get(obj) != null;\n    },\n\n    // Get the model at the given index.\n    at: function(index) {\n      if (index < 0) index += this.length;\n      return this.models[index];\n    },\n\n    // Return models with matching attributes. Useful for simple cases of\n    // `filter`.\n    where: function(attrs, first) {\n      return this[first ? 'find' : 'filter'](attrs);\n    },\n\n    // Return the first model with matching attributes. Useful for simple cases\n    // of `find`.\n    findWhere: function(attrs) {\n      return this.where(attrs, true);\n    },\n\n    // Force the collection to re-sort itself. You don't need to call this under\n    // normal circumstances, as the set will maintain sort order as each item\n    // is added.\n    sort: function(options) {\n      var comparator = this.comparator;\n      if (!comparator) throw new Error('Cannot sort a set without a comparator');\n      options || (options = {});\n\n      var length = comparator.length;\n      if (_.isFunction(comparator)) comparator = _.bind(comparator, this);\n\n      // Run sort based on type of `comparator`.\n      if (length === 1 || _.isString(comparator)) {\n        this.models = this.sortBy(comparator);\n      } else {\n        this.models.sort(comparator);\n      }\n      if (!options.silent) this.trigger('sort', this, options);\n      return this;\n    },\n\n    // Pluck an attribute from each model in the collection.\n    pluck: function(attr) {\n      return this.map(attr + '');\n    },\n\n    // Fetch the default set of models for this collection, resetting the\n    // collection when they arrive. If `reset: true` is passed, the response\n    // data will be passed through the `reset` method instead of `set`.\n    fetch: function(options) {\n      options = _.extend({parse: true}, options);\n      var success = options.success;\n      var collection = this;\n      options.success = function(resp) {\n        var method = options.reset ? 'reset' : 'set';\n        collection[method](resp, options);\n        if (success) success.call(options.context, collection, resp, options);\n        collection.trigger('sync', collection, resp, options);\n      };\n      wrapError(this, options);\n      return this.sync('read', this, options);\n    },\n\n    // Create a new instance of a model in this collection. Add the model to the\n    // collection immediately, unless `wait: true` is passed, in which case we\n    // wait for the server to agree.\n    create: function(model, options) {\n      options = options ? _.clone(options) : {};\n      var wait = options.wait;\n      model = this._prepareModel(model, options);\n      if (!model) return false;\n      if (!wait) this.add(model, options);\n      var collection = this;\n      var success = options.success;\n      options.success = function(m, resp, callbackOpts) {\n        if (wait) collection.add(m, callbackOpts);\n        if (success) success.call(callbackOpts.context, m, resp, callbackOpts);\n      };\n      model.save(null, options);\n      return model;\n    },\n\n    // **parse** converts a response into a list of models to be added to the\n    // collection. The default implementation is just to pass it through.\n    parse: function(resp, options) {\n      return resp;\n    },\n\n    // Create a new collection with an identical list of models as this one.\n    clone: function() {\n      return new this.constructor(this.models, {\n        model: this.model,\n        comparator: this.comparator\n      });\n    },\n\n    // Define how to uniquely identify models in the collection.\n    modelId: function(attrs) {\n      return attrs[this.model.prototype.idAttribute || 'id'];\n    },\n\n    // Private method to reset all internal state. Called when the collection\n    // is first initialized or reset.\n    _reset: function() {\n      this.length = 0;\n      this.models = [];\n      this._byId  = {};\n    },\n\n    // Prepare a hash of attributes (or other model) to be added to this\n    // collection.\n    _prepareModel: function(attrs, options) {\n      if (this._isModel(attrs)) {\n        if (!attrs.collection) attrs.collection = this;\n        return attrs;\n      }\n      options = options ? _.clone(options) : {};\n      options.collection = this;\n      var model = new this.model(attrs, options);\n      if (!model.validationError) return model;\n      this.trigger('invalid', this, model.validationError, options);\n      return false;\n    },\n\n    // Internal method called by both remove and set.\n    _removeModels: function(models, options) {\n      var removed = [];\n      for (var i = 0; i < models.length; i++) {\n        var model = this.get(models[i]);\n        if (!model) continue;\n\n        var index = this.indexOf(model);\n        this.models.splice(index, 1);\n        this.length--;\n\n        // Remove references before triggering 'remove' event to prevent an\n        // infinite loop. #3693\n        delete this._byId[model.cid];\n        var id = this.modelId(model.attributes);\n        if (id != null) delete this._byId[id];\n\n        if (!options.silent) {\n          options.index = index;\n          model.trigger('remove', model, this, options);\n        }\n\n        removed.push(model);\n        this._removeReference(model, options);\n      }\n      return removed;\n    },\n\n    // Method for checking whether an object should be considered a model for\n    // the purposes of adding to the collection.\n    _isModel: function(model) {\n      return model instanceof Model;\n    },\n\n    // Internal method to create a model's ties to a collection.\n    _addReference: function(model, options) {\n      this._byId[model.cid] = model;\n      var id = this.modelId(model.attributes);\n      if (id != null) this._byId[id] = model;\n      model.on('all', this._onModelEvent, this);\n    },\n\n    // Internal method to sever a model's ties to a collection.\n    _removeReference: function(model, options) {\n      delete this._byId[model.cid];\n      var id = this.modelId(model.attributes);\n      if (id != null) delete this._byId[id];\n      if (this === model.collection) delete model.collection;\n      model.off('all', this._onModelEvent, this);\n    },\n\n    // Internal method called every time a model in the set fires an event.\n    // Sets need to update their indexes when models change ids. All other\n    // events simply proxy through. \"add\" and \"remove\" events that originate\n    // in other collections are ignored.\n    _onModelEvent: function(event, model, collection, options) {\n      if (model) {\n        if ((event === 'add' || event === 'remove') && collection !== this) return;\n        if (event === 'destroy') this.remove(model, options);\n        if (event === 'change') {\n          var prevId = this.modelId(model.previousAttributes());\n          var id = this.modelId(model.attributes);\n          if (prevId !== id) {\n            if (prevId != null) delete this._byId[prevId];\n            if (id != null) this._byId[id] = model;\n          }\n        }\n      }\n      this.trigger.apply(this, arguments);\n    }\n\n  });\n\n  // Underscore methods that we want to implement on the Collection.\n  // 90% of the core usefulness of Backbone Collections is actually implemented\n  // right here:\n  var collectionMethods = {forEach: 3, each: 3, map: 3, collect: 3, reduce: 0,\n      foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3,\n      select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3,\n      contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3,\n      head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3,\n      without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3,\n      isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3,\n      sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3};\n\n  // Mix in each Underscore method as a proxy to `Collection#models`.\n  addUnderscoreMethods(Collection, collectionMethods, 'models');\n\n  // Backbone.View\n  // -------------\n\n  // Backbone Views are almost more convention than they are actual code. A View\n  // is simply a JavaScript object that represents a logical chunk of UI in the\n  // DOM. This might be a single item, an entire list, a sidebar or panel, or\n  // even the surrounding frame which wraps your whole app. Defining a chunk of\n  // UI as a **View** allows you to define your DOM events declaratively, without\n  // having to worry about render order ... and makes it easy for the view to\n  // react to specific changes in the state of your models.\n\n  // Creating a Backbone.View creates its initial element outside of the DOM,\n  // if an existing element is not provided...\n  var View = Backbone.View = function(options) {\n    this.cid = _.uniqueId('view');\n    _.extend(this, _.pick(options, viewOptions));\n    this._ensureElement();\n    this.initialize.apply(this, arguments);\n  };\n\n  // Cached regex to split keys for `delegate`.\n  var delegateEventSplitter = /^(\\S+)\\s*(.*)$/;\n\n  // List of view options to be set as properties.\n  var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];\n\n  // Set up all inheritable **Backbone.View** properties and methods.\n  _.extend(View.prototype, Events, {\n\n    // The default `tagName` of a View's element is `\"div\"`.\n    tagName: 'div',\n\n    // jQuery delegate for element lookup, scoped to DOM elements within the\n    // current view. This should be preferred to global lookups where possible.\n    $: function(selector) {\n      return this.$el.find(selector);\n    },\n\n    // Initialize is an empty function by default. Override it with your own\n    // initialization logic.\n    initialize: function(){},\n\n    // **render** is the core function that your view should override, in order\n    // to populate its element (`this.el`), with the appropriate HTML. The\n    // convention is for **render** to always return `this`.\n    render: function() {\n      return this;\n    },\n\n    // Remove this view by taking the element out of the DOM, and removing any\n    // applicable Backbone.Events listeners.\n    remove: function() {\n      this._removeElement();\n      this.stopListening();\n      return this;\n    },\n\n    // Remove this view's element from the document and all event listeners\n    // attached to it. Exposed for subclasses using an alternative DOM\n    // manipulation API.\n    _removeElement: function() {\n      this.$el.remove();\n    },\n\n    // Change the view's element (`this.el` property) and re-delegate the\n    // view's events on the new element.\n    setElement: function(element) {\n      this.undelegateEvents();\n      this._setElement(element);\n      this.delegateEvents();\n      return this;\n    },\n\n    // Creates the `this.el` and `this.$el` references for this view using the\n    // given `el`. `el` can be a CSS selector or an HTML string, a jQuery\n    // context or an element. Subclasses can override this to utilize an\n    // alternative DOM manipulation API and are only required to set the\n    // `this.el` property.\n    _setElement: function(el) {\n      this.$el = el instanceof Backbone.$ ? el : Backbone.$(el);\n      this.el = this.$el[0];\n    },\n\n    // Set callbacks, where `this.events` is a hash of\n    //\n    // *{\"event selector\": \"callback\"}*\n    //\n    //     {\n    //       'mousedown .title':  'edit',\n    //       'click .button':     'save',\n    //       'click .open':       function(e) { ... }\n    //     }\n    //\n    // pairs. Callbacks will be bound to the view, with `this` set properly.\n    // Uses event delegation for efficiency.\n    // Omitting the selector binds the event to `this.el`.\n    delegateEvents: function(events) {\n      events || (events = _.result(this, 'events'));\n      if (!events) return this;\n      this.undelegateEvents();\n      for (var key in events) {\n        var method = events[key];\n        if (!_.isFunction(method)) method = this[method];\n        if (!method) continue;\n        var match = key.match(delegateEventSplitter);\n        this.delegate(match[1], match[2], _.bind(method, this));\n      }\n      return this;\n    },\n\n    // Add a single event listener to the view's element (or a child element\n    // using `selector`). This only works for delegate-able events: not `focus`,\n    // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.\n    delegate: function(eventName, selector, listener) {\n      this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);\n      return this;\n    },\n\n    // Clears all callbacks previously bound to the view by `delegateEvents`.\n    // You usually don't need to use this, but may wish to if you have multiple\n    // Backbone views attached to the same DOM element.\n    undelegateEvents: function() {\n      if (this.$el) this.$el.off('.delegateEvents' + this.cid);\n      return this;\n    },\n\n    // A finer-grained `undelegateEvents` for removing a single delegated event.\n    // `selector` and `listener` are both optional.\n    undelegate: function(eventName, selector, listener) {\n      this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);\n      return this;\n    },\n\n    // Produces a DOM element to be assigned to your view. Exposed for\n    // subclasses using an alternative DOM manipulation API.\n    _createElement: function(tagName) {\n      return document.createElement(tagName);\n    },\n\n    // Ensure that the View has a DOM element to render into.\n    // If `this.el` is a string, pass it through `$()`, take the first\n    // matching element, and re-assign it to `el`. Otherwise, create\n    // an element from the `id`, `className` and `tagName` properties.\n    _ensureElement: function() {\n      if (!this.el) {\n        var attrs = _.extend({}, _.result(this, 'attributes'));\n        if (this.id) attrs.id = _.result(this, 'id');\n        if (this.className) attrs['class'] = _.result(this, 'className');\n        this.setElement(this._createElement(_.result(this, 'tagName')));\n        this._setAttributes(attrs);\n      } else {\n        this.setElement(_.result(this, 'el'));\n      }\n    },\n\n    // Set attributes from a hash on this view's element.  Exposed for\n    // subclasses using an alternative DOM manipulation API.\n    _setAttributes: function(attributes) {\n      this.$el.attr(attributes);\n    }\n\n  });\n\n  // Backbone.sync\n  // -------------\n\n  // Override this function to change the manner in which Backbone persists\n  // models to the server. You will be passed the type of request, and the\n  // model in question. By default, makes a RESTful Ajax request\n  // to the model's `url()`. Some possible customizations could be:\n  //\n  // * Use `setTimeout` to batch rapid-fire updates into a single request.\n  // * Send up the models as XML instead of JSON.\n  // * Persist models via WebSockets instead of Ajax.\n  //\n  // Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests\n  // as `POST`, with a `_method` parameter containing the true HTTP method,\n  // as well as all requests with the body as `application/x-www-form-urlencoded`\n  // instead of `application/json` with the model in a param named `model`.\n  // Useful when interfacing with server-side languages like **PHP** that make\n  // it difficult to read the body of `PUT` requests.\n  Backbone.sync = function(method, model, options) {\n    var type = methodMap[method];\n\n    // Default options, unless specified.\n    _.defaults(options || (options = {}), {\n      emulateHTTP: Backbone.emulateHTTP,\n      emulateJSON: Backbone.emulateJSON\n    });\n\n    // Default JSON-request options.\n    var params = {type: type, dataType: 'json'};\n\n    // Ensure that we have a URL.\n    if (!options.url) {\n      params.url = _.result(model, 'url') || urlError();\n    }\n\n    // Ensure that we have the appropriate request data.\n    if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {\n      params.contentType = 'application/json';\n      params.data = JSON.stringify(options.attrs || model.toJSON(options));\n    }\n\n    // For older servers, emulate JSON by encoding the request into an HTML-form.\n    if (options.emulateJSON) {\n      params.contentType = 'application/x-www-form-urlencoded';\n      params.data = params.data ? {model: params.data} : {};\n    }\n\n    // For older servers, emulate HTTP by mimicking the HTTP method with `_method`\n    // And an `X-HTTP-Method-Override` header.\n    if (options.emulateHTTP && (type === 'PUT' || type === 'DELETE' || type === 'PATCH')) {\n      params.type = 'POST';\n      if (options.emulateJSON) params.data._method = type;\n      var beforeSend = options.beforeSend;\n      options.beforeSend = function(xhr) {\n        xhr.setRequestHeader('X-HTTP-Method-Override', type);\n        if (beforeSend) return beforeSend.apply(this, arguments);\n      };\n    }\n\n    // Don't process data on a non-GET request.\n    if (params.type !== 'GET' && !options.emulateJSON) {\n      params.processData = false;\n    }\n\n    // Pass along `textStatus` and `errorThrown` from jQuery.\n    var error = options.error;\n    options.error = function(xhr, textStatus, errorThrown) {\n      options.textStatus = textStatus;\n      options.errorThrown = errorThrown;\n      if (error) error.call(options.context, xhr, textStatus, errorThrown);\n    };\n\n    // Make the request, allowing the user to override any Ajax options.\n    var xhr = options.xhr = Backbone.ajax(_.extend(params, options));\n    model.trigger('request', model, xhr, options);\n    return xhr;\n  };\n\n  // Map from CRUD to HTTP for our default `Backbone.sync` implementation.\n  var methodMap = {\n    'create': 'POST',\n    'update': 'PUT',\n    'patch': 'PATCH',\n    'delete': 'DELETE',\n    'read': 'GET'\n  };\n\n  // Set the default implementation of `Backbone.ajax` to proxy through to `$`.\n  // Override this if you'd like to use a different library.\n  Backbone.ajax = function() {\n    return Backbone.$.ajax.apply(Backbone.$, arguments);\n  };\n\n  // Backbone.Router\n  // ---------------\n\n  // Routers map faux-URLs to actions, and fire events when routes are\n  // matched. Creating a new one sets its `routes` hash, if not set statically.\n  var Router = Backbone.Router = function(options) {\n    options || (options = {});\n    if (options.routes) this.routes = options.routes;\n    this._bindRoutes();\n    this.initialize.apply(this, arguments);\n  };\n\n  // Cached regular expressions for matching named param parts and splatted\n  // parts of route strings.\n  var optionalParam = /\\((.*?)\\)/g;\n  var namedParam    = /(\\(\\?)?:\\w+/g;\n  var splatParam    = /\\*\\w+/g;\n  var escapeRegExp  = /[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;\n\n  // Set up all inheritable **Backbone.Router** properties and methods.\n  _.extend(Router.prototype, Events, {\n\n    // Initialize is an empty function by default. Override it with your own\n    // initialization logic.\n    initialize: function(){},\n\n    // Manually bind a single named route to a callback. For example:\n    //\n    //     this.route('search/:query/p:num', 'search', function(query, num) {\n    //       ...\n    //     });\n    //\n    route: function(route, name, callback) {\n      if (!_.isRegExp(route)) route = this._routeToRegExp(route);\n      if (_.isFunction(name)) {\n        callback = name;\n        name = '';\n      }\n      if (!callback) callback = this[name];\n      var router = this;\n      Backbone.history.route(route, function(fragment) {\n        var args = router._extractParameters(route, fragment);\n        if (router.execute(callback, args, name) !== false) {\n          router.trigger.apply(router, ['route:' + name].concat(args));\n          router.trigger('route', name, args);\n          Backbone.history.trigger('route', router, name, args);\n        }\n      });\n      return this;\n    },\n\n    // Execute a route handler with the provided parameters.  This is an\n    // excellent place to do pre-route setup or post-route cleanup.\n    execute: function(callback, args, name) {\n      if (callback) callback.apply(this, args);\n    },\n\n    // Simple proxy to `Backbone.history` to save a fragment into the history.\n    navigate: function(fragment, options) {\n      Backbone.history.navigate(fragment, options);\n      return this;\n    },\n\n    // Bind all defined routes to `Backbone.history`. We have to reverse the\n    // order of the routes here to support behavior where the most general\n    // routes can be defined at the bottom of the route map.\n    _bindRoutes: function() {\n      if (!this.routes) return;\n      this.routes = _.result(this, 'routes');\n      var route, routes = _.keys(this.routes);\n      while ((route = routes.pop()) != null) {\n        this.route(route, this.routes[route]);\n      }\n    },\n\n    // Convert a route string into a regular expression, suitable for matching\n    // against the current location hash.\n    _routeToRegExp: function(route) {\n      route = route.replace(escapeRegExp, '\\\\$&')\n                   .replace(optionalParam, '(?:$1)?')\n                   .replace(namedParam, function(match, optional) {\n                     return optional ? match : '([^/?]+)';\n                   })\n                   .replace(splatParam, '([^?]*?)');\n      return new RegExp('^' + route + '(?:\\\\?([\\\\s\\\\S]*))?$');\n    },\n\n    // Given a route, and a URL fragment that it matches, return the array of\n    // extracted decoded parameters. Empty or unmatched parameters will be\n    // treated as `null` to normalize cross-browser behavior.\n    _extractParameters: function(route, fragment) {\n      var params = route.exec(fragment).slice(1);\n      return _.map(params, function(param, i) {\n        // Don't decode the search params.\n        if (i === params.length - 1) return param || null;\n        return param ? decodeURIComponent(param) : null;\n      });\n    }\n\n  });\n\n  // Backbone.History\n  // ----------------\n\n  // Handles cross-browser history management, based on either\n  // [pushState](http://diveintohtml5.info/history.html) and real URLs, or\n  // [onhashchange](https://developer.mozilla.org/en-US/docs/DOM/window.onhashchange)\n  // and URL fragments. If the browser supports neither (old IE, natch),\n  // falls back to polling.\n  var History = Backbone.History = function() {\n    this.handlers = [];\n    this.checkUrl = _.bind(this.checkUrl, this);\n\n    // Ensure that `History` can be used outside of the browser.\n    if (typeof window !== 'undefined') {\n      this.location = window.location;\n      this.history = window.history;\n    }\n  };\n\n  // Cached regex for stripping a leading hash/slash and trailing space.\n  var routeStripper = /^[#\\/]|\\s+$/g;\n\n  // Cached regex for stripping leading and trailing slashes.\n  var rootStripper = /^\\/+|\\/+$/g;\n\n  // Cached regex for stripping urls of hash.\n  var pathStripper = /#.*$/;\n\n  // Has the history handling already been started?\n  History.started = false;\n\n  // Set up all inheritable **Backbone.History** properties and methods.\n  _.extend(History.prototype, Events, {\n\n    // The default interval to poll for hash changes, if necessary, is\n    // twenty times a second.\n    interval: 50,\n\n    // Are we at the app root?\n    atRoot: function() {\n      var path = this.location.pathname.replace(/[^\\/]$/, '$&/');\n      return path === this.root && !this.getSearch();\n    },\n\n    // Does the pathname match the root?\n    matchRoot: function() {\n      var path = this.decodeFragment(this.location.pathname);\n      var rootPath = path.slice(0, this.root.length - 1) + '/';\n      return rootPath === this.root;\n    },\n\n    // Unicode characters in `location.pathname` are percent encoded so they're\n    // decoded for comparison. `%25` should not be decoded since it may be part\n    // of an encoded parameter.\n    decodeFragment: function(fragment) {\n      return decodeURI(fragment.replace(/%25/g, '%2525'));\n    },\n\n    // In IE6, the hash fragment and search params are incorrect if the\n    // fragment contains `?`.\n    getSearch: function() {\n      var match = this.location.href.replace(/#.*/, '').match(/\\?.+/);\n      return match ? match[0] : '';\n    },\n\n    // Gets the true hash value. Cannot use location.hash directly due to bug\n    // in Firefox where location.hash will always be decoded.\n    getHash: function(window) {\n      var match = (window || this).location.href.match(/#(.*)$/);\n      return match ? match[1] : '';\n    },\n\n    // Get the pathname and search params, without the root.\n    getPath: function() {\n      var path = this.decodeFragment(\n        this.location.pathname + this.getSearch()\n      ).slice(this.root.length - 1);\n      return path.charAt(0) === '/' ? path.slice(1) : path;\n    },\n\n    // Get the cross-browser normalized URL fragment from the path or hash.\n    getFragment: function(fragment) {\n      if (fragment == null) {\n        if (this._usePushState || !this._wantsHashChange) {\n          fragment = this.getPath();\n        } else {\n          fragment = this.getHash();\n        }\n      }\n      return fragment.replace(routeStripper, '');\n    },\n\n    // Start the hash change handling, returning `true` if the current URL matches\n    // an existing route, and `false` otherwise.\n    start: function(options) {\n      if (History.started) throw new Error('Backbone.history has already been started');\n      History.started = true;\n\n      // Figure out the initial configuration. Do we need an iframe?\n      // Is pushState desired ... is it available?\n      this.options          = _.extend({root: '/'}, this.options, options);\n      this.root             = this.options.root;\n      this._wantsHashChange = this.options.hashChange !== false;\n      this._hasHashChange   = 'onhashchange' in window && (document.documentMode === void 0 || document.documentMode > 7);\n      this._useHashChange   = this._wantsHashChange && this._hasHashChange;\n      this._wantsPushState  = !!this.options.pushState;\n      this._hasPushState    = !!(this.history && this.history.pushState);\n      this._usePushState    = this._wantsPushState && this._hasPushState;\n      this.fragment         = this.getFragment();\n\n      // Normalize root to always include a leading and trailing slash.\n      this.root = ('/' + this.root + '/').replace(rootStripper, '/');\n\n      // Transition from hashChange to pushState or vice versa if both are\n      // requested.\n      if (this._wantsHashChange && this._wantsPushState) {\n\n        // If we've started off with a route from a `pushState`-enabled\n        // browser, but we're currently in a browser that doesn't support it...\n        if (!this._hasPushState && !this.atRoot()) {\n          var rootPath = this.root.slice(0, -1) || '/';\n          this.location.replace(rootPath + '#' + this.getPath());\n          // Return immediately as browser will do redirect to new url\n          return true;\n\n        // Or if we've started out with a hash-based route, but we're currently\n        // in a browser where it could be `pushState`-based instead...\n        } else if (this._hasPushState && this.atRoot()) {\n          this.navigate(this.getHash(), {replace: true});\n        }\n\n      }\n\n      // Proxy an iframe to handle location events if the browser doesn't\n      // support the `hashchange` event, HTML5 history, or the user wants\n      // `hashChange` but not `pushState`.\n      if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) {\n        this.iframe = document.createElement('iframe');\n        this.iframe.src = 'javascript:0';\n        this.iframe.style.display = 'none';\n        this.iframe.tabIndex = -1;\n        var body = document.body;\n        // Using `appendChild` will throw on IE < 9 if the document is not ready.\n        var iWindow = body.insertBefore(this.iframe, body.firstChild).contentWindow;\n        iWindow.document.open();\n        iWindow.document.close();\n        iWindow.location.hash = '#' + this.fragment;\n      }\n\n      // Add a cross-platform `addEventListener` shim for older browsers.\n      var addEventListener = window.addEventListener || function(eventName, listener) {\n        return attachEvent('on' + eventName, listener);\n      };\n\n      // Depending on whether we're using pushState or hashes, and whether\n      // 'onhashchange' is supported, determine how we check the URL state.\n      if (this._usePushState) {\n        addEventListener('popstate', this.checkUrl, false);\n      } else if (this._useHashChange && !this.iframe) {\n        addEventListener('hashchange', this.checkUrl, false);\n      } else if (this._wantsHashChange) {\n        this._checkUrlInterval = setInterval(this.checkUrl, this.interval);\n      }\n\n      if (!this.options.silent) return this.loadUrl();\n    },\n\n    // Disable Backbone.history, perhaps temporarily. Not useful in a real app,\n    // but possibly useful for unit testing Routers.\n    stop: function() {\n      // Add a cross-platform `removeEventListener` shim for older browsers.\n      var removeEventListener = window.removeEventListener || function(eventName, listener) {\n        return detachEvent('on' + eventName, listener);\n      };\n\n      // Remove window listeners.\n      if (this._usePushState) {\n        removeEventListener('popstate', this.checkUrl, false);\n      } else if (this._useHashChange && !this.iframe) {\n        removeEventListener('hashchange', this.checkUrl, false);\n      }\n\n      // Clean up the iframe if necessary.\n      if (this.iframe) {\n        document.body.removeChild(this.iframe);\n        this.iframe = null;\n      }\n\n      // Some environments will throw when clearing an undefined interval.\n      if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);\n      History.started = false;\n    },\n\n    // Add a route to be tested when the fragment changes. Routes added later\n    // may override previous routes.\n    route: function(route, callback) {\n      this.handlers.unshift({route: route, callback: callback});\n    },\n\n    // Checks the current URL to see if it has changed, and if it has,\n    // calls `loadUrl`, normalizing across the hidden iframe.\n    checkUrl: function(e) {\n      var current = this.getFragment();\n\n      // If the user pressed the back button, the iframe's hash will have\n      // changed and we should use that for comparison.\n      if (current === this.fragment && this.iframe) {\n        current = this.getHash(this.iframe.contentWindow);\n      }\n\n      if (current === this.fragment) return false;\n      if (this.iframe) this.navigate(current);\n      this.loadUrl();\n    },\n\n    // Attempt to load the current URL fragment. If a route succeeds with a\n    // match, returns `true`. If no defined routes matches the fragment,\n    // returns `false`.\n    loadUrl: function(fragment) {\n      // If the root doesn't match, no routes can match either.\n      if (!this.matchRoot()) return false;\n      fragment = this.fragment = this.getFragment(fragment);\n      return _.some(this.handlers, function(handler) {\n        if (handler.route.test(fragment)) {\n          handler.callback(fragment);\n          return true;\n        }\n      });\n    },\n\n    // Save a fragment into the hash history, or replace the URL state if the\n    // 'replace' option is passed. You are responsible for properly URL-encoding\n    // the fragment in advance.\n    //\n    // The options object can contain `trigger: true` if you wish to have the\n    // route callback be fired (not usually desirable), or `replace: true`, if\n    // you wish to modify the current URL without adding an entry to the history.\n    navigate: function(fragment, options) {\n      if (!History.started) return false;\n      if (!options || options === true) options = {trigger: !!options};\n\n      // Normalize the fragment.\n      fragment = this.getFragment(fragment || '');\n\n      // Don't include a trailing slash on the root.\n      var rootPath = this.root;\n      if (fragment === '' || fragment.charAt(0) === '?') {\n        rootPath = rootPath.slice(0, -1) || '/';\n      }\n      var url = rootPath + fragment;\n\n      // Strip the hash and decode for matching.\n      fragment = this.decodeFragment(fragment.replace(pathStripper, ''));\n\n      if (this.fragment === fragment) return;\n      this.fragment = fragment;\n\n      // If pushState is available, we use it to set the fragment as a real URL.\n      if (this._usePushState) {\n        this.history[options.replace ? 'replaceState' : 'pushState']({}, document.title, url);\n\n      // If hash changes haven't been explicitly disabled, update the hash\n      // fragment to store history.\n      } else if (this._wantsHashChange) {\n        this._updateHash(this.location, fragment, options.replace);\n        if (this.iframe && fragment !== this.getHash(this.iframe.contentWindow)) {\n          var iWindow = this.iframe.contentWindow;\n\n          // Opening and closing the iframe tricks IE7 and earlier to push a\n          // history entry on hash-tag change.  When replace is true, we don't\n          // want this.\n          if (!options.replace) {\n            iWindow.document.open();\n            iWindow.document.close();\n          }\n\n          this._updateHash(iWindow.location, fragment, options.replace);\n        }\n\n      // If you've told us that you explicitly don't want fallback hashchange-\n      // based history, then `navigate` becomes a page refresh.\n      } else {\n        return this.location.assign(url);\n      }\n      if (options.trigger) return this.loadUrl(fragment);\n    },\n\n    // Update the hash location, either replacing the current entry, or adding\n    // a new one to the browser history.\n    _updateHash: function(location, fragment, replace) {\n      if (replace) {\n        var href = location.href.replace(/(javascript:|#).*$/, '');\n        location.replace(href + '#' + fragment);\n      } else {\n        // Some browsers require that `hash` contains a leading #.\n        location.hash = '#' + fragment;\n      }\n    }\n\n  });\n\n  // Create the default Backbone.history.\n  Backbone.history = new History;\n\n  // Helpers\n  // -------\n\n  // Helper function to correctly set up the prototype chain for subclasses.\n  // Similar to `goog.inherits`, but uses a hash of prototype properties and\n  // class properties to be extended.\n  var extend = function(protoProps, staticProps) {\n    var parent = this;\n    var child;\n\n    // The constructor function for the new subclass is either defined by you\n    // (the \"constructor\" property in your `extend` definition), or defaulted\n    // by us to simply call the parent constructor.\n    if (protoProps && _.has(protoProps, 'constructor')) {\n      child = protoProps.constructor;\n    } else {\n      child = function(){ return parent.apply(this, arguments); };\n    }\n\n    // Add static properties to the constructor function, if supplied.\n    _.extend(child, parent, staticProps);\n\n    // Set the prototype chain to inherit from `parent`, without calling\n    // `parent`'s constructor function and add the prototype properties.\n    child.prototype = _.create(parent.prototype, protoProps);\n    child.prototype.constructor = child;\n\n    // Set a convenience property in case the parent's prototype is needed\n    // later.\n    child.__super__ = parent.prototype;\n\n    return child;\n  };\n\n  // Set up inheritance for the model, collection, router, view and history.\n  Model.extend = Collection.extend = Router.extend = View.extend = History.extend = extend;\n\n  // Throw an error when a URL is needed, and none is supplied.\n  var urlError = function() {\n    throw new Error('A \"url\" property or function must be specified');\n  };\n\n  // Wrap an optional error callback with a fallback error event.\n  var wrapError = function(model, options) {\n    var error = options.error;\n    options.error = function(resp) {\n      if (error) error.call(options.context, model, resp, options);\n      model.trigger('error', model, resp, options);\n    };\n  };\n\n  return Backbone;\n});\n"
  },
  {
    "path": "test/bench/fixtures/ember.js",
    "content": ";(function() {\n/*!\n * @overview  Ember - JavaScript Application Framework\n * @copyright Copyright 2011-2017 Tilde Inc. and contributors\n *            Portions Copyright 2006-2011 Strobe Inc.\n *            Portions Copyright 2008-2011 Apple Inc. All rights reserved.\n * @license   Licensed under MIT license\n *            See https://raw.github.com/emberjs/ember.js/master/LICENSE\n * @version   2.13.0\n */\n\nvar enifed, requireModule, Ember;\nvar mainContext = this; // Used in ember-environment/lib/global.js\n\n(function() {\n  var isNode = typeof window === 'undefined' &&\n    typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n  if (!isNode) {\n    Ember = this.Ember = this.Ember || {};\n  }\n\n  if (typeof Ember === 'undefined') { Ember = {}; }\n\n  if (typeof Ember.__loader === 'undefined') {\n    var registry = {};\n    var seen = {};\n\n    enifed = function(name, deps, callback) {\n      var value = { };\n\n      if (!callback) {\n        value.deps = [];\n        value.callback = deps;\n      } else {\n        value.deps = deps;\n        value.callback = callback;\n      }\n\n      registry[name] = value;\n    };\n\n    requireModule = function(name) {\n      return internalRequire(name, null);\n    };\n\n    // setup `require` module\n    requireModule['default'] = requireModule;\n\n    requireModule.has = function registryHas(moduleName) {\n      return !!registry[moduleName] || !!registry[moduleName + '/index'];\n    };\n\n    function missingModule(name, referrerName) {\n      if (referrerName) {\n        throw new Error('Could not find module ' + name + ' required by: ' + referrerName);\n      } else {\n        throw new Error('Could not find module ' + name);\n      }\n    }\n\n    function internalRequire(_name, referrerName) {\n      var name = _name;\n      var mod = registry[name];\n\n      if (!mod) {\n        name = name + '/index';\n        mod = registry[name];\n      }\n\n      var exports = seen[name];\n\n      if (exports !== undefined) {\n        return exports;\n      }\n\n      exports = seen[name] = {};\n\n      if (!mod) {\n        missingModule(_name, referrerName);\n      }\n\n      var deps = mod.deps;\n      var callback = mod.callback;\n      var reified = new Array(deps.length);\n\n      for (var i = 0; i < deps.length; i++) {\n        if (deps[i] === 'exports') {\n          reified[i] = exports;\n        } else if (deps[i] === 'require') {\n          reified[i] = requireModule;\n        } else {\n          reified[i] = internalRequire(deps[i], name);\n        }\n      }\n\n      callback.apply(this, reified);\n\n      return exports;\n    }\n\n    requireModule._eak_seen = registry;\n\n    Ember.__loader = {\n      define: enifed,\n      require: requireModule,\n      registry: registry\n    };\n  } else {\n    enifed = Ember.__loader.define;\n    requireModule = Ember.__loader.require;\n  }\n})();\n\nfunction classCallCheck(instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError('Cannot call a class as a function');\n  }\n}\n\nfunction inherits(subClass, superClass) {\n  if (typeof superClass !== 'function' && superClass !== null) {\n    throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);\n  }\n\n  subClass.prototype = Object.create(superClass && superClass.prototype, {\n    constructor: {\n      value: subClass,\n      enumerable: false,\n      writable: true,\n      configurable: true\n    }\n  });\n\n  if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : defaults(subClass, superClass);\n}\n\nfunction taggedTemplateLiteralLoose(strings, raw) {\n  strings.raw = raw;\n  return strings;\n}\n\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, descriptor.key, descriptor);\n  }\n}\n\nfunction createClass(Constructor, protoProps, staticProps) {\n  if (protoProps) defineProperties(Constructor.prototype, protoProps);\n  if (staticProps) defineProperties(Constructor, staticProps);\n  return Constructor;\n}\n\nfunction interopExportWildcard(obj, defaults) {\n  var newObj = defaults({}, obj);\n  delete newObj['default'];\n  return newObj;\n}\n\nfunction defaults(obj, defaults) {\n  var keys = Object.getOwnPropertyNames(defaults);\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i];\n    var value = Object.getOwnPropertyDescriptor(defaults, key);\n    if (value && value.configurable && obj[key] === undefined) {\n      Object.defineProperty(obj, key, value);\n    }\n  }\n  return obj;\n}\n\nvar babelHelpers = {\n  classCallCheck: classCallCheck,\n  inherits: inherits,\n  taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,\n  slice: Array.prototype.slice,\n  createClass: createClass,\n  interopExportWildcard: interopExportWildcard,\n  defaults: defaults\n};\n\nenifed('@glimmer/di', ['exports', '@glimmer/util'], function (exports, _glimmerUtil) {\n    'use strict';\n\n    var Container = (function () {\n        function Container(registry) {\n            var resolver = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];\n\n            this._registry = registry;\n            this._resolver = resolver;\n            this._lookups = _glimmerUtil.dict();\n            this._factoryLookups = _glimmerUtil.dict();\n        }\n\n        Container.prototype.factoryFor = function factoryFor(specifier) {\n            var factory = this._factoryLookups[specifier];\n            if (!factory) {\n                if (this._resolver) {\n                    factory = this._resolver.retrieve(specifier);\n                }\n                if (!factory) {\n                    factory = this._registry.registration(specifier);\n                }\n                if (factory) {\n                    this._factoryLookups[specifier] = factory;\n                }\n            }\n            return factory;\n        };\n\n        Container.prototype.lookup = function lookup(specifier) {\n            var singleton = this._registry.registeredOption(specifier, 'singleton') !== false;\n            if (singleton && this._lookups[specifier]) {\n                return this._lookups[specifier];\n            }\n            var factory = this.factoryFor(specifier);\n            if (!factory) {\n                return;\n            }\n            if (this._registry.registeredOption(specifier, 'instantiate') === false) {\n                return factory;\n            }\n            var injections = this.buildInjections(specifier);\n            var object = factory.create(injections);\n            if (singleton && object) {\n                this._lookups[specifier] = object;\n            }\n            return object;\n        };\n\n        Container.prototype.defaultInjections = function defaultInjections(specifier) {\n            return {};\n        };\n\n        Container.prototype.buildInjections = function buildInjections(specifier) {\n            var hash = this.defaultInjections(specifier);\n            var injections = this._registry.registeredInjections(specifier);\n            var injection = undefined;\n            for (var i = 0; i < injections.length; i++) {\n                injection = injections[i];\n                hash[injection.property] = this.lookup(injection.source);\n            }\n            return hash;\n        };\n\n        return Container;\n    })();\n\n    var Registry = (function () {\n        function Registry() {\n            this._registrations = _glimmerUtil.dict();\n            this._registeredOptions = _glimmerUtil.dict();\n            this._registeredInjections = _glimmerUtil.dict();\n        }\n\n        // TODO - use symbol\n\n        Registry.prototype.register = function register(specifier, factory, options) {\n            this._registrations[specifier] = factory;\n            if (options) {\n                this._registeredOptions[specifier] = options;\n            }\n        };\n\n        Registry.prototype.registration = function registration(specifier) {\n            return this._registrations[specifier];\n        };\n\n        Registry.prototype.unregister = function unregister(specifier) {\n            delete this._registrations[specifier];\n            delete this._registeredOptions[specifier];\n            delete this._registeredInjections[specifier];\n        };\n\n        Registry.prototype.registerOption = function registerOption(specifier, option, value) {\n            var options = this._registeredOptions[specifier];\n            if (!options) {\n                options = {};\n                this._registeredOptions[specifier] = options;\n            }\n            options[option] = value;\n        };\n\n        Registry.prototype.registeredOption = function registeredOption(specifier, option) {\n            var options = this.registeredOptions(specifier);\n            if (options) {\n                return options[option];\n            }\n        };\n\n        Registry.prototype.registeredOptions = function registeredOptions(specifier) {\n            var options = this._registeredOptions[specifier];\n            if (options === undefined) {\n                var _specifier$split = specifier.split(':');\n\n                var type = _specifier$split[0];\n\n                options = this._registeredOptions[type];\n            }\n            return options;\n        };\n\n        Registry.prototype.unregisterOption = function unregisterOption(specifier, option) {\n            var options = this._registeredOptions[specifier];\n            if (options) {\n                delete options[option];\n            }\n        };\n\n        Registry.prototype.registerInjection = function registerInjection(specifier, property, source) {\n            var injections = this._registeredInjections[specifier];\n            if (injections === undefined) {\n                this._registeredInjections[specifier] = injections = [];\n            }\n            injections.push({\n                property: property,\n                source: source\n            });\n        };\n\n        Registry.prototype.registeredInjections = function registeredInjections(specifier) {\n            var _specifier$split2 = specifier.split(':');\n\n            var type = _specifier$split2[0];\n\n            var injections = [];\n            Array.prototype.push.apply(injections, this._registeredInjections[type]);\n            Array.prototype.push.apply(injections, this._registeredInjections[specifier]);\n            return injections;\n        };\n\n        return Registry;\n    })();\n\n    var OWNER = '__owner__';\n    function getOwner(object) {\n        return object[OWNER];\n    }\n    function setOwner(object, owner) {\n        object[OWNER] = owner;\n    }\n\n    function isSpecifierStringAbsolute(specifier) {\n        var _specifier$split3 = specifier.split(':');\n\n        var type = _specifier$split3[0];\n        var path = _specifier$split3[1];\n\n        return !!(type && path && path.indexOf('/') === 0 && path.split('/').length > 3);\n    }\n    function isSpecifierObjectAbsolute(specifier) {\n        return specifier.rootName !== undefined && specifier.collection !== undefined && specifier.name !== undefined && specifier.type !== undefined;\n    }\n    function serializeSpecifier(specifier) {\n        var type = specifier.type;\n        var path = serializeSpecifierPath(specifier);\n        if (path) {\n            return type + ':' + path;\n        } else {\n            return type;\n        }\n    }\n    function serializeSpecifierPath(specifier) {\n        var path = [];\n        if (specifier.rootName) {\n            path.push(specifier.rootName);\n        }\n        if (specifier.collection) {\n            path.push(specifier.collection);\n        }\n        if (specifier.namespace) {\n            path.push(specifier.namespace);\n        }\n        if (specifier.name) {\n            path.push(specifier.name);\n        }\n        if (path.length > 0) {\n            var fullPath = path.join('/');\n            if (isSpecifierObjectAbsolute(specifier)) {\n                fullPath = '/' + fullPath;\n            }\n            return fullPath;\n        }\n    }\n    function deserializeSpecifier(specifier) {\n        var obj = {};\n        if (specifier.indexOf(':') > -1) {\n            var _specifier$split4 = specifier.split(':');\n\n            var type = _specifier$split4[0];\n            var path = _specifier$split4[1];\n\n            obj.type = type;\n            var pathSegments = undefined;\n            if (path.indexOf('/') === 0) {\n                pathSegments = path.substr(1).split('/');\n                obj.rootName = pathSegments.shift();\n                obj.collection = pathSegments.shift();\n            } else {\n                pathSegments = path.split('/');\n            }\n            if (pathSegments.length > 0) {\n                obj.name = pathSegments.pop();\n                if (pathSegments.length > 0) {\n                    obj.namespace = pathSegments.join('/');\n                }\n            }\n        } else {\n            obj.type = specifier;\n        }\n        return obj;\n    }\n\n    exports.Container = Container;\n    exports.Registry = Registry;\n    exports.getOwner = getOwner;\n    exports.setOwner = setOwner;\n    exports.OWNER = OWNER;\n    exports.isSpecifierStringAbsolute = isSpecifierStringAbsolute;\n    exports.isSpecifierObjectAbsolute = isSpecifierObjectAbsolute;\n    exports.serializeSpecifier = serializeSpecifier;\n    exports.deserializeSpecifier = deserializeSpecifier;\n});\nenifed('@glimmer/node', ['exports', '@glimmer/runtime'], function (exports, _glimmerRuntime) {\n    'use strict';\n\n    var NodeDOMTreeConstruction = (function (_DOMTreeConstruction) {\n        babelHelpers.inherits(NodeDOMTreeConstruction, _DOMTreeConstruction);\n\n        function NodeDOMTreeConstruction(doc) {\n            _DOMTreeConstruction.call(this, doc);\n        }\n\n        // override to prevent usage of `this.document` until after the constructor\n\n        NodeDOMTreeConstruction.prototype.setupUselessElement = function setupUselessElement() {};\n\n        NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, html, reference) {\n            var prev = reference ? reference.previousSibling : parent.lastChild;\n            var raw = this.document.createRawHTMLSection(html);\n            parent.insertBefore(raw, reference);\n            var first = prev ? prev.nextSibling : parent.firstChild;\n            var last = reference ? reference.previousSibling : parent.lastChild;\n            return new _glimmerRuntime.ConcreteBounds(parent, first, last);\n        };\n\n        // override to avoid SVG detection/work when in node (this is not needed in SSR)\n\n        NodeDOMTreeConstruction.prototype.createElement = function createElement(tag) {\n            return this.document.createElement(tag);\n        };\n\n        // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n\n        NodeDOMTreeConstruction.prototype.setAttribute = function setAttribute(element, name, value) {\n            element.setAttribute(name, value);\n        };\n\n        return NodeDOMTreeConstruction;\n    })(_glimmerRuntime.DOMTreeConstruction);\n\n    exports.NodeDOMTreeConstruction = NodeDOMTreeConstruction;\n});\nenifed(\"@glimmer/reference\", [\"exports\", \"@glimmer/util\"], function (exports, _glimmerUtil) {\n    \"use strict\";\n\n    var CONSTANT = 0;\n    var INITIAL = 1;\n    var VOLATILE = NaN;\n\n    var RevisionTag = (function () {\n        function RevisionTag() {}\n\n        RevisionTag.prototype.validate = function validate(snapshot) {\n            return this.value() === snapshot;\n        };\n\n        return RevisionTag;\n    })();\n\n    var $REVISION = INITIAL;\n\n    var DirtyableTag = (function (_RevisionTag) {\n        babelHelpers.inherits(DirtyableTag, _RevisionTag);\n\n        function DirtyableTag() {\n            var revision = arguments.length <= 0 || arguments[0] === undefined ? $REVISION : arguments[0];\n\n            _RevisionTag.call(this);\n            this.revision = revision;\n        }\n\n        DirtyableTag.prototype.value = function value() {\n            return this.revision;\n        };\n\n        DirtyableTag.prototype.dirty = function dirty() {\n            this.revision = ++$REVISION;\n        };\n\n        return DirtyableTag;\n    })(RevisionTag);\n\n    function combineTagged(tagged) {\n        var optimized = [];\n        for (var i = 0, l = tagged.length; i < l; i++) {\n            var tag = tagged[i].tag;\n            if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n            if (tag === CONSTANT_TAG) continue;\n            optimized.push(tag);\n        }\n        return _combine(optimized);\n    }\n    function combineSlice(slice) {\n        var optimized = [];\n        var node = slice.head();\n        while (node !== null) {\n            var tag = node.tag;\n            if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n            if (tag !== CONSTANT_TAG) optimized.push(tag);\n            node = slice.nextNode(node);\n        }\n        return _combine(optimized);\n    }\n    function combine(tags) {\n        var optimized = [];\n        for (var i = 0, l = tags.length; i < l; i++) {\n            var tag = tags[i];\n            if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n            if (tag === CONSTANT_TAG) continue;\n            optimized.push(tag);\n        }\n        return _combine(optimized);\n    }\n    function _combine(tags) {\n        switch (tags.length) {\n            case 0:\n                return CONSTANT_TAG;\n            case 1:\n                return tags[0];\n            case 2:\n                return new TagsPair(tags[0], tags[1]);\n            default:\n                return new TagsCombinator(tags);\n        }\n        ;\n    }\n\n    var CachedTag = (function (_RevisionTag2) {\n        babelHelpers.inherits(CachedTag, _RevisionTag2);\n\n        function CachedTag() {\n            _RevisionTag2.apply(this, arguments);\n            this.lastChecked = null;\n            this.lastValue = null;\n        }\n\n        CachedTag.prototype.value = function value() {\n            var lastChecked = this.lastChecked;\n            var lastValue = this.lastValue;\n\n            if (lastChecked !== $REVISION) {\n                this.lastChecked = $REVISION;\n                this.lastValue = lastValue = this.compute();\n            }\n            return this.lastValue;\n        };\n\n        CachedTag.prototype.invalidate = function invalidate() {\n            this.lastChecked = null;\n        };\n\n        return CachedTag;\n    })(RevisionTag);\n\n    var TagsPair = (function (_CachedTag) {\n        babelHelpers.inherits(TagsPair, _CachedTag);\n\n        function TagsPair(first, second) {\n            _CachedTag.call(this);\n            this.first = first;\n            this.second = second;\n        }\n\n        TagsPair.prototype.compute = function compute() {\n            return Math.max(this.first.value(), this.second.value());\n        };\n\n        return TagsPair;\n    })(CachedTag);\n\n    var TagsCombinator = (function (_CachedTag2) {\n        babelHelpers.inherits(TagsCombinator, _CachedTag2);\n\n        function TagsCombinator(tags) {\n            _CachedTag2.call(this);\n            this.tags = tags;\n        }\n\n        TagsCombinator.prototype.compute = function compute() {\n            var tags = this.tags;\n\n            var max = -1;\n            for (var i = 0; i < tags.length; i++) {\n                var value = tags[i].value();\n                max = Math.max(value, max);\n            }\n            return max;\n        };\n\n        return TagsCombinator;\n    })(CachedTag);\n\n    var UpdatableTag = (function (_CachedTag3) {\n        babelHelpers.inherits(UpdatableTag, _CachedTag3);\n\n        function UpdatableTag(tag) {\n            _CachedTag3.call(this);\n            this.tag = tag;\n            this.lastUpdated = INITIAL;\n        }\n\n        //////////\n\n        UpdatableTag.prototype.compute = function compute() {\n            return Math.max(this.lastUpdated, this.tag.value());\n        };\n\n        UpdatableTag.prototype.update = function update(tag) {\n            if (tag !== this.tag) {\n                this.tag = tag;\n                this.lastUpdated = $REVISION;\n                this.invalidate();\n            }\n        };\n\n        return UpdatableTag;\n    })(CachedTag);\n\n    var CONSTANT_TAG = new ((function (_RevisionTag3) {\n        babelHelpers.inherits(ConstantTag, _RevisionTag3);\n\n        function ConstantTag() {\n            _RevisionTag3.apply(this, arguments);\n        }\n\n        ConstantTag.prototype.value = function value() {\n            return CONSTANT;\n        };\n\n        return ConstantTag;\n    })(RevisionTag))();\n    var VOLATILE_TAG = new ((function (_RevisionTag4) {\n        babelHelpers.inherits(VolatileTag, _RevisionTag4);\n\n        function VolatileTag() {\n            _RevisionTag4.apply(this, arguments);\n        }\n\n        VolatileTag.prototype.value = function value() {\n            return VOLATILE;\n        };\n\n        return VolatileTag;\n    })(RevisionTag))();\n    var CURRENT_TAG = new ((function (_DirtyableTag) {\n        babelHelpers.inherits(CurrentTag, _DirtyableTag);\n\n        function CurrentTag() {\n            _DirtyableTag.apply(this, arguments);\n        }\n\n        CurrentTag.prototype.value = function value() {\n            return $REVISION;\n        };\n\n        return CurrentTag;\n    })(DirtyableTag))();\n\n    var CachedReference = (function () {\n        function CachedReference() {\n            this.lastRevision = null;\n            this.lastValue = null;\n        }\n\n        CachedReference.prototype.value = function value() {\n            var tag = this.tag;\n            var lastRevision = this.lastRevision;\n            var lastValue = this.lastValue;\n\n            if (!lastRevision || !tag.validate(lastRevision)) {\n                lastValue = this.lastValue = this.compute();\n                this.lastRevision = tag.value();\n            }\n            return lastValue;\n        };\n\n        CachedReference.prototype.invalidate = function invalidate() {\n            this.lastRevision = null;\n        };\n\n        return CachedReference;\n    })();\n\n    var MapperReference = (function (_CachedReference) {\n        babelHelpers.inherits(MapperReference, _CachedReference);\n\n        function MapperReference(reference, mapper) {\n            _CachedReference.call(this);\n            this.tag = reference.tag;\n            this.reference = reference;\n            this.mapper = mapper;\n        }\n\n        MapperReference.prototype.compute = function compute() {\n            var reference = this.reference;\n            var mapper = this.mapper;\n\n            return mapper(reference.value());\n        };\n\n        return MapperReference;\n    })(CachedReference);\n\n    function map(reference, mapper) {\n        return new MapperReference(reference, mapper);\n    }\n    //////////\n\n    var ReferenceCache = (function () {\n        function ReferenceCache(reference) {\n            this.lastValue = null;\n            this.lastRevision = null;\n            this.initialized = false;\n            this.tag = reference.tag;\n            this.reference = reference;\n        }\n\n        ReferenceCache.prototype.peek = function peek() {\n            if (!this.initialized) {\n                return this.initialize();\n            }\n            return this.lastValue;\n        };\n\n        ReferenceCache.prototype.revalidate = function revalidate() {\n            if (!this.initialized) {\n                return this.initialize();\n            }\n            var reference = this.reference;\n            var lastRevision = this.lastRevision;\n\n            var tag = reference.tag;\n            if (tag.validate(lastRevision)) return NOT_MODIFIED;\n            this.lastRevision = tag.value();\n            var lastValue = this.lastValue;\n\n            var value = reference.value();\n            if (value === lastValue) return NOT_MODIFIED;\n            this.lastValue = value;\n            return value;\n        };\n\n        ReferenceCache.prototype.initialize = function initialize() {\n            var reference = this.reference;\n\n            var value = this.lastValue = reference.value();\n            this.lastRevision = reference.tag.value();\n            this.initialized = true;\n            return value;\n        };\n\n        return ReferenceCache;\n    })();\n\n    var NOT_MODIFIED = \"adb3b78e-3d22-4e4b-877a-6317c2c5c145\";\n    function isModified(value) {\n        return value !== NOT_MODIFIED;\n    }\n\n    var ConstReference = (function () {\n        function ConstReference(inner) {\n            this.inner = inner;\n            this.tag = CONSTANT_TAG;\n        }\n\n        ConstReference.prototype.value = function value() {\n            return this.inner;\n        };\n\n        return ConstReference;\n    })();\n\n    function isConst(reference) {\n        return reference.tag === CONSTANT_TAG;\n    }\n\n    var ListItem = (function (_ListNode) {\n        babelHelpers.inherits(ListItem, _ListNode);\n\n        function ListItem(iterable, result) {\n            _ListNode.call(this, iterable.valueReferenceFor(result));\n            this.retained = false;\n            this.seen = false;\n            this.key = result.key;\n            this.iterable = iterable;\n            this.memo = iterable.memoReferenceFor(result);\n        }\n\n        ListItem.prototype.update = function update(item) {\n            this.retained = true;\n            this.iterable.updateValueReference(this.value, item);\n            this.iterable.updateMemoReference(this.memo, item);\n        };\n\n        ListItem.prototype.shouldRemove = function shouldRemove() {\n            return !this.retained;\n        };\n\n        ListItem.prototype.reset = function reset() {\n            this.retained = false;\n            this.seen = false;\n        };\n\n        return ListItem;\n    })(_glimmerUtil.ListNode);\n\n    var IterationArtifacts = (function () {\n        function IterationArtifacts(iterable) {\n            this.map = _glimmerUtil.dict();\n            this.list = new _glimmerUtil.LinkedList();\n            this.tag = iterable.tag;\n            this.iterable = iterable;\n        }\n\n        IterationArtifacts.prototype.isEmpty = function isEmpty() {\n            var iterator = this.iterator = this.iterable.iterate();\n            return iterator.isEmpty();\n        };\n\n        IterationArtifacts.prototype.iterate = function iterate() {\n            var iterator = this.iterator || this.iterable.iterate();\n            this.iterator = null;\n            return iterator;\n        };\n\n        IterationArtifacts.prototype.has = function has(key) {\n            return !!this.map[key];\n        };\n\n        IterationArtifacts.prototype.get = function get(key) {\n            return this.map[key];\n        };\n\n        IterationArtifacts.prototype.wasSeen = function wasSeen(key) {\n            var node = this.map[key];\n            return node && node.seen;\n        };\n\n        IterationArtifacts.prototype.append = function append(item) {\n            var map = this.map;\n            var list = this.list;\n            var iterable = this.iterable;\n\n            var node = map[item.key] = new ListItem(iterable, item);\n            list.append(node);\n            return node;\n        };\n\n        IterationArtifacts.prototype.insertBefore = function insertBefore(item, reference) {\n            var map = this.map;\n            var list = this.list;\n            var iterable = this.iterable;\n\n            var node = map[item.key] = new ListItem(iterable, item);\n            node.retained = true;\n            list.insertBefore(node, reference);\n            return node;\n        };\n\n        IterationArtifacts.prototype.move = function move(item, reference) {\n            var list = this.list;\n\n            item.retained = true;\n            list.remove(item);\n            list.insertBefore(item, reference);\n        };\n\n        IterationArtifacts.prototype.remove = function remove(item) {\n            var list = this.list;\n\n            list.remove(item);\n            delete this.map[item.key];\n        };\n\n        IterationArtifacts.prototype.nextNode = function nextNode(item) {\n            return this.list.nextNode(item);\n        };\n\n        IterationArtifacts.prototype.head = function head() {\n            return this.list.head();\n        };\n\n        return IterationArtifacts;\n    })();\n\n    var ReferenceIterator = (function () {\n        // if anyone needs to construct this object with something other than\n        // an iterable, let @wycats know.\n\n        function ReferenceIterator(iterable) {\n            this.iterator = null;\n            var artifacts = new IterationArtifacts(iterable);\n            this.artifacts = artifacts;\n        }\n\n        ReferenceIterator.prototype.next = function next() {\n            var artifacts = this.artifacts;\n\n            var iterator = this.iterator = this.iterator || artifacts.iterate();\n            var item = iterator.next();\n            if (!item) return null;\n            return artifacts.append(item);\n        };\n\n        return ReferenceIterator;\n    })();\n\n    var Phase;\n    (function (Phase) {\n        Phase[Phase[\"Append\"] = 0] = \"Append\";\n        Phase[Phase[\"Prune\"] = 1] = \"Prune\";\n        Phase[Phase[\"Done\"] = 2] = \"Done\";\n    })(Phase || (Phase = {}));\n\n    var IteratorSynchronizer = (function () {\n        function IteratorSynchronizer(_ref) {\n            var target = _ref.target;\n            var artifacts = _ref.artifacts;\n\n            this.target = target;\n            this.artifacts = artifacts;\n            this.iterator = artifacts.iterate();\n            this.current = artifacts.head();\n        }\n\n        IteratorSynchronizer.prototype.sync = function sync() {\n            var phase = Phase.Append;\n            while (true) {\n                switch (phase) {\n                    case Phase.Append:\n                        phase = this.nextAppend();\n                        break;\n                    case Phase.Prune:\n                        phase = this.nextPrune();\n                        break;\n                    case Phase.Done:\n                        this.nextDone();\n                        return;\n                }\n            }\n        };\n\n        IteratorSynchronizer.prototype.advanceToKey = function advanceToKey(key) {\n            var current = this.current;\n            var artifacts = this.artifacts;\n\n            var seek = current;\n            while (seek && seek.key !== key) {\n                seek.seen = true;\n                seek = artifacts.nextNode(seek);\n            }\n            this.current = seek && artifacts.nextNode(seek);\n        };\n\n        IteratorSynchronizer.prototype.nextAppend = function nextAppend() {\n            var iterator = this.iterator;\n            var current = this.current;\n            var artifacts = this.artifacts;\n\n            var item = iterator.next();\n            if (item === null) {\n                return this.startPrune();\n            }\n            var key = item.key;\n\n            if (current && current.key === key) {\n                this.nextRetain(item);\n            } else if (artifacts.has(key)) {\n                this.nextMove(item);\n            } else {\n                this.nextInsert(item);\n            }\n            return Phase.Append;\n        };\n\n        IteratorSynchronizer.prototype.nextRetain = function nextRetain(item) {\n            var artifacts = this.artifacts;\n            var current = this.current;\n\n            current = _glimmerUtil.expect(current, 'BUG: current is empty');\n            current.update(item);\n            this.current = artifacts.nextNode(current);\n            this.target.retain(item.key, current.value, current.memo);\n        };\n\n        IteratorSynchronizer.prototype.nextMove = function nextMove(item) {\n            var current = this.current;\n            var artifacts = this.artifacts;\n            var target = this.target;\n            var key = item.key;\n\n            var found = artifacts.get(item.key);\n            found.update(item);\n            if (artifacts.wasSeen(item.key)) {\n                artifacts.move(found, current);\n                target.move(found.key, found.value, found.memo, current ? current.key : null);\n            } else {\n                this.advanceToKey(key);\n            }\n        };\n\n        IteratorSynchronizer.prototype.nextInsert = function nextInsert(item) {\n            var artifacts = this.artifacts;\n            var target = this.target;\n            var current = this.current;\n\n            var node = artifacts.insertBefore(item, current);\n            target.insert(node.key, node.value, node.memo, current ? current.key : null);\n        };\n\n        IteratorSynchronizer.prototype.startPrune = function startPrune() {\n            this.current = this.artifacts.head();\n            return Phase.Prune;\n        };\n\n        IteratorSynchronizer.prototype.nextPrune = function nextPrune() {\n            var artifacts = this.artifacts;\n            var target = this.target;\n            var current = this.current;\n\n            if (current === null) {\n                return Phase.Done;\n            }\n            var node = current;\n            this.current = artifacts.nextNode(node);\n            if (node.shouldRemove()) {\n                artifacts.remove(node);\n                target.delete(node.key);\n            } else {\n                node.reset();\n            }\n            return Phase.Prune;\n        };\n\n        IteratorSynchronizer.prototype.nextDone = function nextDone() {\n            this.target.done();\n        };\n\n        return IteratorSynchronizer;\n    })();\n\n    function referenceFromParts(root, parts) {\n        var reference = root;\n        for (var i = 0; i < parts.length; i++) {\n            reference = reference.get(parts[i]);\n        }\n        return reference;\n    }\n\n    exports.ConstReference = ConstReference;\n    exports.isConst = isConst;\n    exports.ListItem = ListItem;\n    exports.referenceFromParts = referenceFromParts;\n    exports.IterationArtifacts = IterationArtifacts;\n    exports.ReferenceIterator = ReferenceIterator;\n    exports.IteratorSynchronizer = IteratorSynchronizer;\n    exports.CONSTANT = CONSTANT;\n    exports.INITIAL = INITIAL;\n    exports.VOLATILE = VOLATILE;\n    exports.RevisionTag = RevisionTag;\n    exports.DirtyableTag = DirtyableTag;\n    exports.combineTagged = combineTagged;\n    exports.combineSlice = combineSlice;\n    exports.combine = combine;\n    exports.CachedTag = CachedTag;\n    exports.UpdatableTag = UpdatableTag;\n    exports.CONSTANT_TAG = CONSTANT_TAG;\n    exports.VOLATILE_TAG = VOLATILE_TAG;\n    exports.CURRENT_TAG = CURRENT_TAG;\n    exports.CachedReference = CachedReference;\n    exports.map = map;\n    exports.ReferenceCache = ReferenceCache;\n    exports.isModified = isModified;\n});\nenifed('@glimmer/runtime',['exports','@glimmer/util','@glimmer/reference','@glimmer/wire-format'],function(exports,_glimmerUtil,_glimmerReference,_glimmerWireFormat){'use strict';var PrimitiveReference=(function(_ConstReference){babelHelpers.inherits(PrimitiveReference,_ConstReference);function PrimitiveReference(value){_ConstReference.call(this,value);}PrimitiveReference.create = function create(value){if(value === undefined){return UNDEFINED_REFERENCE;}else if(value === null){return NULL_REFERENCE;}else if(value === true){return TRUE_REFERENCE;}else if(value === false){return FALSE_REFERENCE;}else if(typeof value === 'number'){return new ValueReference(value);}else {return new StringReference(value);}};PrimitiveReference.prototype.get = function get(_key){return UNDEFINED_REFERENCE;};return PrimitiveReference;})(_glimmerReference.ConstReference);var StringReference=(function(_PrimitiveReference){babelHelpers.inherits(StringReference,_PrimitiveReference);function StringReference(){_PrimitiveReference.apply(this,arguments);this.lengthReference = null;}StringReference.prototype.get = function get(key){if(key === 'length'){var lengthReference=this.lengthReference;if(lengthReference === null){lengthReference = this.lengthReference = new ValueReference(this.inner.length);}return lengthReference;}else {return _PrimitiveReference.prototype.get.call(this,key);}};return StringReference;})(PrimitiveReference);var ValueReference=(function(_PrimitiveReference2){babelHelpers.inherits(ValueReference,_PrimitiveReference2);function ValueReference(value){_PrimitiveReference2.call(this,value);}return ValueReference;})(PrimitiveReference);var UNDEFINED_REFERENCE=new ValueReference(undefined);var NULL_REFERENCE=new ValueReference(null);var TRUE_REFERENCE=new ValueReference(true);var FALSE_REFERENCE=new ValueReference(false);var ConditionalReference=(function(){function ConditionalReference(inner){this.inner = inner;this.tag = inner.tag;}ConditionalReference.prototype.value = function value(){return this.toBool(this.inner.value());};ConditionalReference.prototype.toBool = function toBool(value){return !!value;};return ConditionalReference;})();var Constants=(function(){function Constants(){ // `0` means NULL\nthis.references = [];this.strings = [];this.expressions = [];this.arrays = [];this.blocks = [];this.functions = [];this.others = [];this.NULL_REFERENCE = this.reference(NULL_REFERENCE);this.UNDEFINED_REFERENCE = this.reference(UNDEFINED_REFERENCE);}Constants.prototype.getReference = function getReference(value){return this.references[value - 1];};Constants.prototype.reference = function reference(value){var index=this.references.length;this.references.push(value);return index + 1;};Constants.prototype.getString = function getString(value){return this.strings[value - 1];};Constants.prototype.string = function string(value){var index=this.strings.length;this.strings.push(value);return index + 1;};Constants.prototype.getExpression = function getExpression(value){return this.expressions[value - 1];};Constants.prototype.expression = function expression(value){var index=this.expressions.length;this.expressions.push(value);return index + 1;};Constants.prototype.getArray = function getArray(value){return this.arrays[value - 1];};Constants.prototype.array = function array(values){var index=this.arrays.length;this.arrays.push(values);return index + 1;};Constants.prototype.getBlock = function getBlock(value){return this.blocks[value - 1];};Constants.prototype.block = function block(_block2){var index=this.blocks.length;this.blocks.push(_block2);return index + 1;};Constants.prototype.getFunction = function getFunction(value){return this.functions[value - 1];};Constants.prototype.function = function _function(f){var index=this.functions.length;this.functions.push(f);return index + 1;};Constants.prototype.getOther = function getOther(value){return this.others[value - 1];};Constants.prototype.other = function other(_other){var index=this.others.length;this.others.push(_other);return index + 1;};return Constants;})();var AppendOpcodes=(function(){function AppendOpcodes(){this.evaluateOpcode = _glimmerUtil.fillNulls(51 /* EvaluatePartial */ + 1);}AppendOpcodes.prototype.add = function add(name,evaluate){this.evaluateOpcode[name] = evaluate;};AppendOpcodes.prototype.evaluate = function evaluate(vm,opcode){var func=this.evaluateOpcode[opcode.type];func(vm,opcode);};return AppendOpcodes;})();var APPEND_OPCODES=new AppendOpcodes();var AbstractOpcode=(function(){function AbstractOpcode(){_glimmerUtil.initializeGuid(this);}AbstractOpcode.prototype.toJSON = function toJSON(){return {guid:this._guid,type:this.type};};return AbstractOpcode;})();var UpdatingOpcode=(function(_AbstractOpcode){babelHelpers.inherits(UpdatingOpcode,_AbstractOpcode);function UpdatingOpcode(){_AbstractOpcode.apply(this,arguments);this.next = null;this.prev = null;}return UpdatingOpcode;})(AbstractOpcode);APPEND_OPCODES.add(20, /* OpenBlock */function(vm,_ref){var _getBlock=_ref.op1;var _args=_ref.op2;var inner=vm.constants.getOther(_getBlock);var rawArgs=vm.constants.getExpression(_args);var args=null;var block=inner.evaluate(vm);if(block){args = rawArgs.evaluate(vm);} // FIXME: can we avoid doing this when we don't have a block?\nvm.pushCallerScope();if(block){vm.invokeBlock(block,args || null);}});APPEND_OPCODES.add(21, /* CloseBlock */function(vm){return vm.popScope();});APPEND_OPCODES.add(0, /* PushChildScope */function(vm){return vm.pushChildScope();});APPEND_OPCODES.add(1, /* PopScope */function(vm){return vm.popScope();});APPEND_OPCODES.add(2, /* PushDynamicScope */function(vm){return vm.pushDynamicScope();});APPEND_OPCODES.add(3, /* PopDynamicScope */function(vm){return vm.popDynamicScope();});APPEND_OPCODES.add(4, /* Put */function(vm,_ref2){var reference=_ref2.op1;vm.frame.setOperand(vm.constants.getReference(reference));});APPEND_OPCODES.add(5, /* EvaluatePut */function(vm,_ref3){var expression=_ref3.op1;var expr=vm.constants.getExpression(expression);vm.evaluateOperand(expr);});APPEND_OPCODES.add(6, /* PutArgs */function(vm,_ref4){var args=_ref4.op1;vm.evaluateArgs(vm.constants.getExpression(args));});APPEND_OPCODES.add(7, /* BindPositionalArgs */function(vm,_ref5){var _symbols=_ref5.op1;var symbols=vm.constants.getArray(_symbols);vm.bindPositionalArgs(symbols);});APPEND_OPCODES.add(8, /* BindNamedArgs */function(vm,_ref6){var _names=_ref6.op1;var _symbols=_ref6.op2;var names=vm.constants.getArray(_names);var symbols=vm.constants.getArray(_symbols);vm.bindNamedArgs(names,symbols);});APPEND_OPCODES.add(9, /* BindBlocks */function(vm,_ref7){var _names=_ref7.op1;var _symbols=_ref7.op2;var names=vm.constants.getArray(_names);var symbols=vm.constants.getArray(_symbols);vm.bindBlocks(names,symbols);});APPEND_OPCODES.add(10, /* BindPartialArgs */function(vm,_ref8){var symbol=_ref8.op1;vm.bindPartialArgs(symbol);});APPEND_OPCODES.add(11, /* BindCallerScope */function(vm){return vm.bindCallerScope();});APPEND_OPCODES.add(12, /* BindDynamicScope */function(vm,_ref9){var _names=_ref9.op1;var names=vm.constants.getArray(_names);vm.bindDynamicScope(names);});APPEND_OPCODES.add(13, /* Enter */function(vm,_ref10){var start=_ref10.op1;var end=_ref10.op2;return vm.enter(start,end);});APPEND_OPCODES.add(14, /* Exit */function(vm){return vm.exit();});APPEND_OPCODES.add(15, /* Evaluate */function(vm,_ref11){var _block=_ref11.op1;var block=vm.constants.getBlock(_block);var args=vm.frame.getArgs();vm.invokeBlock(block,args);});APPEND_OPCODES.add(16, /* Jump */function(vm,_ref12){var target=_ref12.op1;return vm.goto(target);});APPEND_OPCODES.add(17, /* JumpIf */function(vm,_ref13){var target=_ref13.op1;var reference=vm.frame.getCondition();if(_glimmerReference.isConst(reference)){if(reference.value()){vm.goto(target);}}else {var cache=new _glimmerReference.ReferenceCache(reference);if(cache.peek()){vm.goto(target);}vm.updateWith(new Assert(cache));}});APPEND_OPCODES.add(18, /* JumpUnless */function(vm,_ref14){var target=_ref14.op1;var reference=vm.frame.getCondition();if(_glimmerReference.isConst(reference)){if(!reference.value()){vm.goto(target);}}else {var cache=new _glimmerReference.ReferenceCache(reference);if(!cache.peek()){vm.goto(target);}vm.updateWith(new Assert(cache));}});var ConstTest=function(ref,_env){return new _glimmerReference.ConstReference(!!ref.value());};var SimpleTest=function(ref,_env){return ref;};var EnvironmentTest=function(ref,env){return env.toConditionalReference(ref);};APPEND_OPCODES.add(19, /* Test */function(vm,_ref15){var _func=_ref15.op1;var operand=vm.frame.getOperand();var func=vm.constants.getFunction(_func);vm.frame.setCondition(func(operand,vm.env));});var Assert=(function(_UpdatingOpcode){babelHelpers.inherits(Assert,_UpdatingOpcode);function Assert(cache){_UpdatingOpcode.call(this);this.type = \"assert\";this.tag = cache.tag;this.cache = cache;}Assert.prototype.evaluate = function evaluate(vm){var cache=this.cache;if(_glimmerReference.isModified(cache.revalidate())){vm.throw();}};Assert.prototype.toJSON = function toJSON(){var type=this.type;var _guid=this._guid;var cache=this.cache;var expected=undefined;try{expected = JSON.stringify(cache.peek());}catch(e) {expected = String(cache.peek());}return {guid:_guid,type:type,args:[],details:{expected:expected}};};return Assert;})(UpdatingOpcode);var JumpIfNotModifiedOpcode=(function(_UpdatingOpcode2){babelHelpers.inherits(JumpIfNotModifiedOpcode,_UpdatingOpcode2);function JumpIfNotModifiedOpcode(tag,target){_UpdatingOpcode2.call(this);this.target = target;this.type = \"jump-if-not-modified\";this.tag = tag;this.lastRevision = tag.value();}JumpIfNotModifiedOpcode.prototype.evaluate = function evaluate(vm){var tag=this.tag;var target=this.target;var lastRevision=this.lastRevision;if(!vm.alwaysRevalidate && tag.validate(lastRevision)){vm.goto(target);}};JumpIfNotModifiedOpcode.prototype.didModify = function didModify(){this.lastRevision = this.tag.value();};JumpIfNotModifiedOpcode.prototype.toJSON = function toJSON(){return {guid:this._guid,type:this.type,args:[JSON.stringify(this.target.inspect())]};};return JumpIfNotModifiedOpcode;})(UpdatingOpcode);var DidModifyOpcode=(function(_UpdatingOpcode3){babelHelpers.inherits(DidModifyOpcode,_UpdatingOpcode3);function DidModifyOpcode(target){_UpdatingOpcode3.call(this);this.target = target;this.type = \"did-modify\";this.tag = _glimmerReference.CONSTANT_TAG;}DidModifyOpcode.prototype.evaluate = function evaluate(){this.target.didModify();};return DidModifyOpcode;})(UpdatingOpcode);var LabelOpcode=(function(){function LabelOpcode(label){this.tag = _glimmerReference.CONSTANT_TAG;this.type = \"label\";this.label = null;this.prev = null;this.next = null;_glimmerUtil.initializeGuid(this);if(label)this.label = label;}LabelOpcode.prototype.evaluate = function evaluate(){};LabelOpcode.prototype.inspect = function inspect(){return this.label + ' [' + this._guid + ']';};LabelOpcode.prototype.toJSON = function toJSON(){return {guid:this._guid,type:this.type,args:[JSON.stringify(this.inspect())]};};return LabelOpcode;})();var EMPTY_ARRAY=_glimmerUtil.HAS_NATIVE_WEAKMAP?Object.freeze([]):[];var EMPTY_DICT=_glimmerUtil.HAS_NATIVE_WEAKMAP?Object.freeze(_glimmerUtil.dict()):_glimmerUtil.dict();var CompiledPositionalArgs=(function(){function CompiledPositionalArgs(values){this.values = values;this.length = values.length;}CompiledPositionalArgs.create = function create(values){if(values.length){return new this(values);}else {return COMPILED_EMPTY_POSITIONAL_ARGS;}};CompiledPositionalArgs.empty = function empty(){return COMPILED_EMPTY_POSITIONAL_ARGS;};CompiledPositionalArgs.prototype.evaluate = function evaluate(vm){var values=this.values;var length=this.length;var references=new Array(length);for(var i=0;i < length;i++) {references[i] = values[i].evaluate(vm);}return EvaluatedPositionalArgs.create(references);};CompiledPositionalArgs.prototype.toJSON = function toJSON(){return '[' + this.values.map(function(value){return value.toJSON();}).join(\", \") + ']';};return CompiledPositionalArgs;})();var COMPILED_EMPTY_POSITIONAL_ARGS=new ((function(_CompiledPositionalArgs){babelHelpers.inherits(_class,_CompiledPositionalArgs);function _class(){_CompiledPositionalArgs.call(this,EMPTY_ARRAY);}_class.prototype.evaluate = function evaluate(_vm){return EVALUATED_EMPTY_POSITIONAL_ARGS;};_class.prototype.toJSON = function toJSON(){return '<EMPTY>';};return _class;})(CompiledPositionalArgs))();var EvaluatedPositionalArgs=(function(){function EvaluatedPositionalArgs(values){this.values = values;this.tag = _glimmerReference.combineTagged(values);this.length = values.length;}EvaluatedPositionalArgs.create = function create(values){return new this(values);};EvaluatedPositionalArgs.empty = function empty(){return EVALUATED_EMPTY_POSITIONAL_ARGS;};EvaluatedPositionalArgs.prototype.at = function at(index){var values=this.values;var length=this.length;return index < length?values[index]:UNDEFINED_REFERENCE;};EvaluatedPositionalArgs.prototype.value = function value(){var values=this.values;var length=this.length;var ret=new Array(length);for(var i=0;i < length;i++) {ret[i] = values[i].value();}return ret;};return EvaluatedPositionalArgs;})();var EVALUATED_EMPTY_POSITIONAL_ARGS=new ((function(_EvaluatedPositionalArgs){babelHelpers.inherits(_class2,_EvaluatedPositionalArgs);function _class2(){_EvaluatedPositionalArgs.call(this,EMPTY_ARRAY);}_class2.prototype.at = function at(){return UNDEFINED_REFERENCE;};_class2.prototype.value = function value(){return this.values;};return _class2;})(EvaluatedPositionalArgs))();var CompiledNamedArgs=(function(){function CompiledNamedArgs(keys,values){this.keys = keys;this.values = values;this.length = keys.length;_glimmerUtil.assert(keys.length === values.length,'Keys and values do not have the same length');}CompiledNamedArgs.empty = function empty(){return COMPILED_EMPTY_NAMED_ARGS;};CompiledNamedArgs.create = function create(map){var keys=Object.keys(map);var length=keys.length;if(length > 0){var values=[];for(var i=0;i < length;i++) {values[i] = map[keys[i]];}return new this(keys,values);}else {return COMPILED_EMPTY_NAMED_ARGS;}};CompiledNamedArgs.prototype.evaluate = function evaluate(vm){var keys=this.keys;var values=this.values;var length=this.length;var evaluated=new Array(length);for(var i=0;i < length;i++) {evaluated[i] = values[i].evaluate(vm);}return new EvaluatedNamedArgs(keys,evaluated);};CompiledNamedArgs.prototype.toJSON = function toJSON(){var keys=this.keys;var values=this.values;var inner=keys.map(function(key,i){return key + ': ' + values[i].toJSON();}).join(\", \");return '{' + inner + '}';};return CompiledNamedArgs;})();var COMPILED_EMPTY_NAMED_ARGS=new ((function(_CompiledNamedArgs){babelHelpers.inherits(_class3,_CompiledNamedArgs);function _class3(){_CompiledNamedArgs.call(this,EMPTY_ARRAY,EMPTY_ARRAY);}_class3.prototype.evaluate = function evaluate(_vm){return EVALUATED_EMPTY_NAMED_ARGS;};_class3.prototype.toJSON = function toJSON(){return '<EMPTY>';};return _class3;})(CompiledNamedArgs))();var EvaluatedNamedArgs=(function(){function EvaluatedNamedArgs(keys,values){var _map=arguments.length <= 2 || arguments[2] === undefined?null:arguments[2];this.keys = keys;this.values = values;this._map = _map;this.tag = _glimmerReference.combineTagged(values);this.length = keys.length;_glimmerUtil.assert(keys.length === values.length,'Keys and values do not have the same length');}EvaluatedNamedArgs.create = function create(map){var keys=Object.keys(map);var length=keys.length;if(length > 0){var values=new Array(length);for(var i=0;i < length;i++) {values[i] = map[keys[i]];}return new this(keys,values,map);}else {return EVALUATED_EMPTY_NAMED_ARGS;}};EvaluatedNamedArgs.empty = function empty(){return EVALUATED_EMPTY_NAMED_ARGS;};EvaluatedNamedArgs.prototype.get = function get(key){var keys=this.keys;var values=this.values;var index=keys.indexOf(key);return index === -1?UNDEFINED_REFERENCE:values[index];};EvaluatedNamedArgs.prototype.has = function has(key){return this.keys.indexOf(key) !== -1;};EvaluatedNamedArgs.prototype.value = function value(){var keys=this.keys;var values=this.values;var out=_glimmerUtil.dict();for(var i=0;i < keys.length;i++) {var key=keys[i];var ref=values[i];out[key] = ref.value();}return out;};babelHelpers.createClass(EvaluatedNamedArgs,[{key:'map',get:function(){var map=this._map;if(map){return map;}map = this._map = _glimmerUtil.dict();var keys=this.keys;var values=this.values;var length=this.length;for(var i=0;i < length;i++) {map[keys[i]] = values[i];}return map;}}]);return EvaluatedNamedArgs;})();var EVALUATED_EMPTY_NAMED_ARGS=new ((function(_EvaluatedNamedArgs){babelHelpers.inherits(_class4,_EvaluatedNamedArgs);function _class4(){_EvaluatedNamedArgs.call(this,EMPTY_ARRAY,EMPTY_ARRAY,EMPTY_DICT);}_class4.prototype.get = function get(){return UNDEFINED_REFERENCE;};_class4.prototype.has = function has(_key){return false;};_class4.prototype.value = function value(){return EMPTY_DICT;};return _class4;})(EvaluatedNamedArgs))();var EMPTY_BLOCKS={default:null,inverse:null};var CompiledArgs=(function(){function CompiledArgs(positional,named,blocks){this.positional = positional;this.named = named;this.blocks = blocks;this.type = \"compiled-args\";}CompiledArgs.create = function create(positional,named,blocks){if(positional === COMPILED_EMPTY_POSITIONAL_ARGS && named === COMPILED_EMPTY_NAMED_ARGS && blocks === EMPTY_BLOCKS){return this.empty();}else {return new this(positional,named,blocks);}};CompiledArgs.empty = function empty(){return COMPILED_EMPTY_ARGS;};CompiledArgs.prototype.evaluate = function evaluate(vm){var positional=this.positional;var named=this.named;var blocks=this.blocks;return EvaluatedArgs.create(positional.evaluate(vm),named.evaluate(vm),blocks);};return CompiledArgs;})();var COMPILED_EMPTY_ARGS=new ((function(_CompiledArgs){babelHelpers.inherits(_class5,_CompiledArgs);function _class5(){_CompiledArgs.call(this,COMPILED_EMPTY_POSITIONAL_ARGS,COMPILED_EMPTY_NAMED_ARGS,EMPTY_BLOCKS);}_class5.prototype.evaluate = function evaluate(_vm){return EMPTY_EVALUATED_ARGS;};return _class5;})(CompiledArgs))();var EvaluatedArgs=(function(){function EvaluatedArgs(positional,named,blocks){this.positional = positional;this.named = named;this.blocks = blocks;this.tag = _glimmerReference.combineTagged([positional,named]);}EvaluatedArgs.empty = function empty(){return EMPTY_EVALUATED_ARGS;};EvaluatedArgs.create = function create(positional,named,blocks){return new this(positional,named,blocks);};EvaluatedArgs.positional = function positional(values){var blocks=arguments.length <= 1 || arguments[1] === undefined?EMPTY_BLOCKS:arguments[1];return new this(EvaluatedPositionalArgs.create(values),EVALUATED_EMPTY_NAMED_ARGS,blocks);};EvaluatedArgs.named = function named(map){var blocks=arguments.length <= 1 || arguments[1] === undefined?EMPTY_BLOCKS:arguments[1];return new this(EVALUATED_EMPTY_POSITIONAL_ARGS,EvaluatedNamedArgs.create(map),blocks);};return EvaluatedArgs;})();var EMPTY_EVALUATED_ARGS=new EvaluatedArgs(EVALUATED_EMPTY_POSITIONAL_ARGS,EVALUATED_EMPTY_NAMED_ARGS,EMPTY_BLOCKS);APPEND_OPCODES.add(22, /* PutDynamicComponent */function(vm){var reference=vm.frame.getOperand();var cache=_glimmerReference.isConst(reference)?undefined:new _glimmerReference.ReferenceCache(reference);var definition=cache?cache.peek():reference.value();vm.frame.setImmediate(definition);if(cache){vm.updateWith(new Assert(cache));}});APPEND_OPCODES.add(23, /* PutComponent */function(vm,_ref16){var _component=_ref16.op1;var definition=vm.constants.getOther(_component);vm.frame.setImmediate(definition);});APPEND_OPCODES.add(24, /* OpenComponent */function(vm,_ref17){var _args=_ref17.op1;var _shadow=_ref17.op2;var rawArgs=vm.constants.getExpression(_args);var shadow=vm.constants.getBlock(_shadow);var definition=vm.frame.getImmediate();var dynamicScope=vm.pushDynamicScope();var callerScope=vm.scope();var manager=definition.manager;var args=manager.prepareArgs(definition,rawArgs.evaluate(vm),dynamicScope);var hasDefaultBlock=!!args.blocks.default; // TODO Cleanup?\nvar component=manager.create(vm.env,definition,args,dynamicScope,vm.getSelf(),hasDefaultBlock);var destructor=manager.getDestructor(component);if(destructor)vm.newDestroyable(destructor);var layout=manager.layoutFor(definition,component,vm.env);var selfRef=manager.getSelf(component);vm.beginCacheGroup();vm.stack().pushSimpleBlock();vm.pushRootScope(selfRef,layout.symbols);vm.invokeLayout(args,layout,callerScope,component,manager,shadow);vm.updateWith(new UpdateComponentOpcode(definition.name,component,manager,args,dynamicScope));}); // export class DidCreateElementOpcode extends Opcode {\n//   public type = \"did-create-element\";\n//   evaluate(vm: VM) {\n//     let manager = vm.frame.getManager();\n//     let component = vm.frame.getComponent();\n//     let action = 'DidCreateElementOpcode#evaluate';\n//     manager.didCreateElement(component, vm.stack().expectConstructing(action), vm.stack().expectOperations(action));\n//   }\n//   toJSON(): OpcodeJSON {\n//     return {\n//       guid: this._guid,\n//       type: this.type,\n//       args: [\"$ARGS\"]\n//     };\n//   }\n// }\nAPPEND_OPCODES.add(25, /* DidCreateElement */function(vm){var manager=vm.frame.getManager();var component=vm.frame.getComponent();var action='DidCreateElementOpcode#evaluate';manager.didCreateElement(component,vm.stack().expectConstructing(action),vm.stack().expectOperations(action));}); // export class ShadowAttributesOpcode extends Opcode {\n//   public type = \"shadow-attributes\";\n//   evaluate(vm: VM) {\n//     let shadow = vm.frame.getShadow();\n//     vm.pushCallerScope();\n//     if (!shadow) return;\n//     vm.invokeBlock(shadow, EvaluatedArgs.empty());\n//   }\n//   toJSON(): OpcodeJSON {\n//     return {\n//       guid: this._guid,\n//       type: this.type,\n//       args: [\"$ARGS\"]\n//     };\n//   }\n// }\n// Slow path for non-specialized component invocations. Uses an internal\n// named lookup on the args.\nAPPEND_OPCODES.add(26, /* ShadowAttributes */function(vm){var shadow=vm.frame.getShadow();vm.pushCallerScope();if(!shadow)return;vm.invokeBlock(shadow,EvaluatedArgs.empty());}); // export class DidRenderLayoutOpcode extends Opcode {\n//   public type = \"did-render-layout\";\n//   evaluate(vm: VM) {\n//     let manager = vm.frame.getManager();\n//     let component = vm.frame.getComponent();\n//     let bounds = vm.stack().popBlock();\n//     manager.didRenderLayout(component, bounds);\n//     vm.env.didCreate(component, manager);\n//     vm.updateWith(new DidUpdateLayoutOpcode(manager, component, bounds));\n//   }\n// }\nAPPEND_OPCODES.add(27, /* DidRenderLayout */function(vm){var manager=vm.frame.getManager();var component=vm.frame.getComponent();var bounds=vm.stack().popBlock();manager.didRenderLayout(component,bounds);vm.env.didCreate(component,manager);vm.updateWith(new DidUpdateLayoutOpcode(manager,component,bounds));}); // export class CloseComponentOpcode extends Opcode {\n//   public type = \"close-component\";\n//   evaluate(vm: VM) {\n//     vm.popScope();\n//     vm.popDynamicScope();\n//     vm.commitCacheGroup();\n//   }\n// }\nAPPEND_OPCODES.add(28, /* CloseComponent */function(vm){vm.popScope();vm.popDynamicScope();vm.commitCacheGroup();});var UpdateComponentOpcode=(function(_UpdatingOpcode4){babelHelpers.inherits(UpdateComponentOpcode,_UpdatingOpcode4);function UpdateComponentOpcode(name,component,manager,args,dynamicScope){_UpdatingOpcode4.call(this);this.name = name;this.component = component;this.manager = manager;this.args = args;this.dynamicScope = dynamicScope;this.type = \"update-component\";var componentTag=manager.getTag(component);if(componentTag){this.tag = _glimmerReference.combine([args.tag,componentTag]);}else {this.tag = args.tag;}}UpdateComponentOpcode.prototype.evaluate = function evaluate(_vm){var component=this.component;var manager=this.manager;var args=this.args;var dynamicScope=this.dynamicScope;manager.update(component,args,dynamicScope);};UpdateComponentOpcode.prototype.toJSON = function toJSON(){return {guid:this._guid,type:this.type,args:[JSON.stringify(this.name)]};};return UpdateComponentOpcode;})(UpdatingOpcode);var DidUpdateLayoutOpcode=(function(_UpdatingOpcode5){babelHelpers.inherits(DidUpdateLayoutOpcode,_UpdatingOpcode5);function DidUpdateLayoutOpcode(manager,component,bounds){_UpdatingOpcode5.call(this);this.manager = manager;this.component = component;this.bounds = bounds;this.type = \"did-update-layout\";this.tag = _glimmerReference.CONSTANT_TAG;}DidUpdateLayoutOpcode.prototype.evaluate = function evaluate(vm){var manager=this.manager;var component=this.component;var bounds=this.bounds;manager.didUpdateLayout(component,bounds);vm.env.didUpdate(component,manager);};return DidUpdateLayoutOpcode;})(UpdatingOpcode);var Cursor=function Cursor(element,nextSibling){this.element = element;this.nextSibling = nextSibling;};var ConcreteBounds=(function(){function ConcreteBounds(parentNode,first,last){this.parentNode = parentNode;this.first = first;this.last = last;}ConcreteBounds.prototype.parentElement = function parentElement(){return this.parentNode;};ConcreteBounds.prototype.firstNode = function firstNode(){return this.first;};ConcreteBounds.prototype.lastNode = function lastNode(){return this.last;};return ConcreteBounds;})();var SingleNodeBounds=(function(){function SingleNodeBounds(parentNode,node){this.parentNode = parentNode;this.node = node;}SingleNodeBounds.prototype.parentElement = function parentElement(){return this.parentNode;};SingleNodeBounds.prototype.firstNode = function firstNode(){return this.node;};SingleNodeBounds.prototype.lastNode = function lastNode(){return this.node;};return SingleNodeBounds;})();function single(parent,node){return new SingleNodeBounds(parent,node);}function moveBounds(bounds,reference){var parent=bounds.parentElement();var first=bounds.firstNode();var last=bounds.lastNode();var node=first;while(node) {var next=node.nextSibling;parent.insertBefore(node,reference);if(node === last)return next;node = next;}return null;}function clear(bounds){var parent=bounds.parentElement();var first=bounds.firstNode();var last=bounds.lastNode();var node=first;while(node) {var next=node.nextSibling;parent.removeChild(node);if(node === last)return next;node = next;}return null;}function isSafeString(value){return !!value && typeof value['toHTML'] === 'function';}function isNode(value){return value !== null && typeof value === 'object' && typeof value['nodeType'] === 'number';}function isString(value){return typeof value === 'string';}var Upsert=function Upsert(bounds){this.bounds = bounds;};function cautiousInsert(dom,cursor,value){if(isString(value)){return TextUpsert.insert(dom,cursor,value);}if(isSafeString(value)){return SafeStringUpsert.insert(dom,cursor,value);}if(isNode(value)){return NodeUpsert.insert(dom,cursor,value);}throw _glimmerUtil.unreachable();}function trustingInsert(dom,cursor,value){if(isString(value)){return HTMLUpsert.insert(dom,cursor,value);}if(isNode(value)){return NodeUpsert.insert(dom,cursor,value);}throw _glimmerUtil.unreachable();}var TextUpsert=(function(_Upsert){babelHelpers.inherits(TextUpsert,_Upsert);TextUpsert.insert = function insert(dom,cursor,value){var textNode=dom.createTextNode(value);dom.insertBefore(cursor.element,textNode,cursor.nextSibling);var bounds=new SingleNodeBounds(cursor.element,textNode);return new TextUpsert(bounds,textNode);};function TextUpsert(bounds,textNode){_Upsert.call(this,bounds);this.textNode = textNode;}TextUpsert.prototype.update = function update(_dom,value){if(isString(value)){var textNode=this.textNode;textNode.nodeValue = value;return true;}else {return false;}};return TextUpsert;})(Upsert);var HTMLUpsert=(function(_Upsert2){babelHelpers.inherits(HTMLUpsert,_Upsert2);function HTMLUpsert(){_Upsert2.apply(this,arguments);}HTMLUpsert.insert = function insert(dom,cursor,value){var bounds=dom.insertHTMLBefore(cursor.element,value,cursor.nextSibling);return new HTMLUpsert(bounds);};HTMLUpsert.prototype.update = function update(dom,value){if(isString(value)){var bounds=this.bounds;var parentElement=bounds.parentElement();var nextSibling=clear(bounds);this.bounds = dom.insertHTMLBefore(parentElement,nextSibling,value);return true;}else {return false;}};return HTMLUpsert;})(Upsert);var SafeStringUpsert=(function(_Upsert3){babelHelpers.inherits(SafeStringUpsert,_Upsert3);function SafeStringUpsert(bounds,lastStringValue){_Upsert3.call(this,bounds);this.lastStringValue = lastStringValue;}SafeStringUpsert.insert = function insert(dom,cursor,value){var stringValue=value.toHTML();var bounds=dom.insertHTMLBefore(cursor.element,stringValue,cursor.nextSibling);return new SafeStringUpsert(bounds,stringValue);};SafeStringUpsert.prototype.update = function update(dom,value){if(isSafeString(value)){var stringValue=value.toHTML();if(stringValue !== this.lastStringValue){var bounds=this.bounds;var parentElement=bounds.parentElement();var nextSibling=clear(bounds);this.bounds = dom.insertHTMLBefore(parentElement,nextSibling,stringValue);this.lastStringValue = stringValue;}return true;}else {return false;}};return SafeStringUpsert;})(Upsert);var NodeUpsert=(function(_Upsert4){babelHelpers.inherits(NodeUpsert,_Upsert4);function NodeUpsert(){_Upsert4.apply(this,arguments);}NodeUpsert.insert = function insert(dom,cursor,node){dom.insertBefore(cursor.element,node,cursor.nextSibling);return new NodeUpsert(single(cursor.element,node));};NodeUpsert.prototype.update = function update(dom,value){if(isNode(value)){var bounds=this.bounds;var parentElement=bounds.parentElement();var nextSibling=clear(bounds);this.bounds = dom.insertNodeBefore(parentElement,value,nextSibling);return true;}else {return false;}};return NodeUpsert;})(Upsert);var COMPONENT_DEFINITION_BRAND='COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]';function isComponentDefinition(obj){return typeof obj === 'object' && obj && obj[COMPONENT_DEFINITION_BRAND];}var ComponentDefinition=function ComponentDefinition(name,manager,ComponentClass){this[COMPONENT_DEFINITION_BRAND] = true;this.name = name;this.manager = manager;this.ComponentClass = ComponentClass;};var CompiledExpression=(function(){function CompiledExpression(){}CompiledExpression.prototype.toJSON = function toJSON(){return 'UNIMPL: ' + this.type.toUpperCase();};return CompiledExpression;})();APPEND_OPCODES.add(29, /* Text */function(vm,_ref18){var text=_ref18.op1;vm.stack().appendText(vm.constants.getString(text));});APPEND_OPCODES.add(30, /* Comment */function(vm,_ref19){var text=_ref19.op1;vm.stack().appendComment(vm.constants.getString(text));});APPEND_OPCODES.add(32, /* OpenElement */function(vm,_ref20){var tag=_ref20.op1;vm.stack().openElement(vm.constants.getString(tag));});APPEND_OPCODES.add(33, /* PushRemoteElement */function(vm){var reference=vm.frame.getOperand();var cache=_glimmerReference.isConst(reference)?undefined:new _glimmerReference.ReferenceCache(reference);var element=cache?cache.peek():reference.value();vm.stack().pushRemoteElement(element);if(cache){vm.updateWith(new Assert(cache));}});APPEND_OPCODES.add(34, /* PopRemoteElement */function(vm){return vm.stack().popRemoteElement();});APPEND_OPCODES.add(35, /* OpenComponentElement */function(vm,_ref21){var _tag=_ref21.op1;var tag=vm.constants.getString(_tag);vm.stack().openElement(tag,new ComponentElementOperations(vm.env));});APPEND_OPCODES.add(36, /* OpenDynamicElement */function(vm){var tagName=vm.frame.getOperand().value();vm.stack().openElement(tagName);});var ClassList=(function(){function ClassList(){this.list = null;this.isConst = true;}ClassList.prototype.append = function append(reference){var list=this.list;var isConst$$=this.isConst;if(list === null)list = this.list = [];list.push(reference);this.isConst = isConst$$ && _glimmerReference.isConst(reference);};ClassList.prototype.toReference = function toReference(){var list=this.list;var isConst$$=this.isConst;if(!list)return NULL_REFERENCE;if(isConst$$)return PrimitiveReference.create(toClassName(list));return new ClassListReference(list);};return ClassList;})();var ClassListReference=(function(_CachedReference){babelHelpers.inherits(ClassListReference,_CachedReference);function ClassListReference(list){_CachedReference.call(this);this.list = [];this.tag = _glimmerReference.combineTagged(list);this.list = list;}ClassListReference.prototype.compute = function compute(){return toClassName(this.list);};return ClassListReference;})(_glimmerReference.CachedReference);function toClassName(list){var ret=[];for(var i=0;i < list.length;i++) {var value=list[i].value();if(value !== false && value !== null && value !== undefined)ret.push(value);}return ret.length === 0?null:ret.join(' ');}var SimpleElementOperations=(function(){function SimpleElementOperations(env){this.env = env;this.opcodes = null;this.classList = null;}SimpleElementOperations.prototype.addStaticAttribute = function addStaticAttribute(element,name,value){if(name === 'class'){this.addClass(PrimitiveReference.create(value));}else {this.env.getAppendOperations().setAttribute(element,name,value);}};SimpleElementOperations.prototype.addStaticAttributeNS = function addStaticAttributeNS(element,namespace,name,value){this.env.getAppendOperations().setAttribute(element,name,value,namespace);};SimpleElementOperations.prototype.addDynamicAttribute = function addDynamicAttribute(element,name,reference,isTrusting){if(name === 'class'){this.addClass(reference);}else {var attributeManager=this.env.attributeFor(element,name,isTrusting);var attribute=new DynamicAttribute(element,attributeManager,name,reference);this.addAttribute(attribute);}};SimpleElementOperations.prototype.addDynamicAttributeNS = function addDynamicAttributeNS(element,namespace,name,reference,isTrusting){var attributeManager=this.env.attributeFor(element,name,isTrusting,namespace);var nsAttribute=new DynamicAttribute(element,attributeManager,name,reference,namespace);this.addAttribute(nsAttribute);};SimpleElementOperations.prototype.flush = function flush(element,vm){var env=vm.env;var opcodes=this.opcodes;var classList=this.classList;for(var i=0;opcodes && i < opcodes.length;i++) {vm.updateWith(opcodes[i]);}if(classList){var attributeManager=env.attributeFor(element,'class',false);var attribute=new DynamicAttribute(element,attributeManager,'class',classList.toReference());var opcode=attribute.flush(env);if(opcode){vm.updateWith(opcode);}}this.opcodes = null;this.classList = null;};SimpleElementOperations.prototype.addClass = function addClass(reference){var classList=this.classList;if(!classList){classList = this.classList = new ClassList();}classList.append(reference);};SimpleElementOperations.prototype.addAttribute = function addAttribute(attribute){var opcode=attribute.flush(this.env);if(opcode){var opcodes=this.opcodes;if(!opcodes){opcodes = this.opcodes = [];}opcodes.push(opcode);}};return SimpleElementOperations;})();var ComponentElementOperations=(function(){function ComponentElementOperations(env){this.env = env;this.attributeNames = null;this.attributes = null;this.classList = null;}ComponentElementOperations.prototype.addStaticAttribute = function addStaticAttribute(element,name,value){if(name === 'class'){this.addClass(PrimitiveReference.create(value));}else if(this.shouldAddAttribute(name)){this.addAttribute(name,new StaticAttribute(element,name,value));}};ComponentElementOperations.prototype.addStaticAttributeNS = function addStaticAttributeNS(element,namespace,name,value){if(this.shouldAddAttribute(name)){this.addAttribute(name,new StaticAttribute(element,name,value,namespace));}};ComponentElementOperations.prototype.addDynamicAttribute = function addDynamicAttribute(element,name,reference,isTrusting){if(name === 'class'){this.addClass(reference);}else if(this.shouldAddAttribute(name)){var attributeManager=this.env.attributeFor(element,name,isTrusting);var attribute=new DynamicAttribute(element,attributeManager,name,reference);this.addAttribute(name,attribute);}};ComponentElementOperations.prototype.addDynamicAttributeNS = function addDynamicAttributeNS(element,namespace,name,reference,isTrusting){if(this.shouldAddAttribute(name)){var attributeManager=this.env.attributeFor(element,name,isTrusting,namespace);var nsAttribute=new DynamicAttribute(element,attributeManager,name,reference,namespace);this.addAttribute(name,nsAttribute);}};ComponentElementOperations.prototype.flush = function flush(element,vm){var env=this.env;var attributes=this.attributes;var classList=this.classList;for(var i=0;attributes && i < attributes.length;i++) {var opcode=attributes[i].flush(env);if(opcode){vm.updateWith(opcode);}}if(classList){var attributeManager=env.attributeFor(element,'class',false);var attribute=new DynamicAttribute(element,attributeManager,'class',classList.toReference());var opcode=attribute.flush(env);if(opcode){vm.updateWith(opcode);}}};ComponentElementOperations.prototype.shouldAddAttribute = function shouldAddAttribute(name){return !this.attributeNames || this.attributeNames.indexOf(name) === -1;};ComponentElementOperations.prototype.addClass = function addClass(reference){var classList=this.classList;if(!classList){classList = this.classList = new ClassList();}classList.append(reference);};ComponentElementOperations.prototype.addAttribute = function addAttribute(name,attribute){var attributeNames=this.attributeNames;var attributes=this.attributes;if(!attributeNames){attributeNames = this.attributeNames = [];attributes = this.attributes = [];}attributeNames.push(name);_glimmerUtil.unwrap(attributes).push(attribute);};return ComponentElementOperations;})();APPEND_OPCODES.add(37, /* FlushElement */function(vm){var stack=vm.stack();var action='FlushElementOpcode#evaluate';stack.expectOperations(action).flush(stack.expectConstructing(action),vm);stack.flushElement();});APPEND_OPCODES.add(38, /* CloseElement */function(vm){return vm.stack().closeElement();});APPEND_OPCODES.add(39, /* PopElement */function(vm){return vm.stack().popElement();});APPEND_OPCODES.add(40, /* StaticAttr */function(vm,_ref22){var _name=_ref22.op1;var _value=_ref22.op2;var _namespace=_ref22.op3;var name=vm.constants.getString(_name);var value=vm.constants.getString(_value);if(_namespace){var namespace=vm.constants.getString(_namespace);vm.stack().setStaticAttributeNS(namespace,name,value);}else {vm.stack().setStaticAttribute(name,value);}});APPEND_OPCODES.add(41, /* Modifier */function(vm,_ref23){var _name=_ref23.op1;var _manager=_ref23.op2;var _args=_ref23.op3;var manager=vm.constants.getOther(_manager);var rawArgs=vm.constants.getExpression(_args);var stack=vm.stack();var element=stack.constructing;var updateOperations=stack.updateOperations;var args=rawArgs.evaluate(vm);var dynamicScope=vm.dynamicScope();var modifier=manager.create(element,args,dynamicScope,updateOperations);vm.env.scheduleInstallModifier(modifier,manager);var destructor=manager.getDestructor(modifier);if(destructor){vm.newDestroyable(destructor);}vm.updateWith(new UpdateModifierOpcode(manager,modifier,args));});var UpdateModifierOpcode=(function(_UpdatingOpcode6){babelHelpers.inherits(UpdateModifierOpcode,_UpdatingOpcode6);function UpdateModifierOpcode(manager,modifier,args){_UpdatingOpcode6.call(this);this.manager = manager;this.modifier = modifier;this.args = args;this.type = \"update-modifier\";this.tag = args.tag;this.lastUpdated = args.tag.value();}UpdateModifierOpcode.prototype.evaluate = function evaluate(vm){var manager=this.manager;var modifier=this.modifier;var tag=this.tag;var lastUpdated=this.lastUpdated;if(!tag.validate(lastUpdated)){vm.env.scheduleUpdateModifier(modifier,manager);this.lastUpdated = tag.value();}};UpdateModifierOpcode.prototype.toJSON = function toJSON(){return {guid:this._guid,type:this.type,args:[JSON.stringify(this.args)]};};return UpdateModifierOpcode;})(UpdatingOpcode);var StaticAttribute=(function(){function StaticAttribute(element,name,value,namespace){this.element = element;this.name = name;this.value = value;this.namespace = namespace;}StaticAttribute.prototype.flush = function flush(env){env.getAppendOperations().setAttribute(this.element,this.name,this.value,this.namespace);return null;};return StaticAttribute;})();var DynamicAttribute=(function(){function DynamicAttribute(element,attributeManager,name,reference,namespace){this.element = element;this.attributeManager = attributeManager;this.name = name;this.reference = reference;this.namespace = namespace;this.cache = null;this.tag = reference.tag;}DynamicAttribute.prototype.patch = function patch(env){var element=this.element;var cache=this.cache;var value=_glimmerUtil.expect(cache,'must patch after flush').revalidate();if(_glimmerReference.isModified(value)){this.attributeManager.updateAttribute(env,element,value,this.namespace);}};DynamicAttribute.prototype.flush = function flush(env){var reference=this.reference;var element=this.element;if(_glimmerReference.isConst(reference)){var value=reference.value();this.attributeManager.setAttribute(env,element,value,this.namespace);return null;}else {var cache=this.cache = new _glimmerReference.ReferenceCache(reference);var value=cache.peek();this.attributeManager.setAttribute(env,element,value,this.namespace);return new PatchElementOpcode(this);}};DynamicAttribute.prototype.toJSON = function toJSON(){var element=this.element;var namespace=this.namespace;var name=this.name;var cache=this.cache;var formattedElement=formatElement(element);var lastValue=_glimmerUtil.expect(cache,'must serialize after flush').peek();if(namespace){return {element:formattedElement,type:'attribute',namespace:namespace,name:name,lastValue:lastValue};}return {element:formattedElement,type:'attribute',namespace:namespace === undefined?null:namespace,name:name,lastValue:lastValue};};return DynamicAttribute;})();function formatElement(element){return JSON.stringify('<' + element.tagName.toLowerCase() + ' />');}APPEND_OPCODES.add(42, /* DynamicAttrNS */function(vm,_ref24){var _name=_ref24.op1;var _namespace=_ref24.op2;var trusting=_ref24.op3;var name=vm.constants.getString(_name);var namespace=vm.constants.getString(_namespace);var reference=vm.frame.getOperand();vm.stack().setDynamicAttributeNS(namespace,name,reference,!!trusting);});APPEND_OPCODES.add(43, /* DynamicAttr */function(vm,_ref25){var _name=_ref25.op1;var trusting=_ref25.op2;var name=vm.constants.getString(_name);var reference=vm.frame.getOperand();vm.stack().setDynamicAttribute(name,reference,!!trusting);});var PatchElementOpcode=(function(_UpdatingOpcode7){babelHelpers.inherits(PatchElementOpcode,_UpdatingOpcode7);function PatchElementOpcode(operation){_UpdatingOpcode7.call(this);this.type = \"patch-element\";this.tag = operation.tag;this.operation = operation;}PatchElementOpcode.prototype.evaluate = function evaluate(vm){this.operation.patch(vm.env);};PatchElementOpcode.prototype.toJSON = function toJSON(){var _guid=this._guid;var type=this.type;var operation=this.operation;return {guid:_guid,type:type,details:operation.toJSON()};};return PatchElementOpcode;})(UpdatingOpcode);var First=(function(){function First(node){this.node = node;}First.prototype.firstNode = function firstNode(){return this.node;};return First;})();var Last=(function(){function Last(node){this.node = node;}Last.prototype.lastNode = function lastNode(){return this.node;};return Last;})();var Fragment=(function(){function Fragment(bounds){this.bounds = bounds;}Fragment.prototype.parentElement = function parentElement(){return this.bounds.parentElement();};Fragment.prototype.firstNode = function firstNode(){return this.bounds.firstNode();};Fragment.prototype.lastNode = function lastNode(){return this.bounds.lastNode();};Fragment.prototype.update = function update(bounds){this.bounds = bounds;};return Fragment;})();var ElementStack=(function(){function ElementStack(env,parentNode,nextSibling){this.constructing = null;this.operations = null;this.elementStack = new _glimmerUtil.Stack();this.nextSiblingStack = new _glimmerUtil.Stack();this.blockStack = new _glimmerUtil.Stack();this.env = env;this.dom = env.getAppendOperations();this.updateOperations = env.getDOM();this.element = parentNode;this.nextSibling = nextSibling;this.defaultOperations = new SimpleElementOperations(env);this.elementStack.push(this.element);this.nextSiblingStack.push(this.nextSibling);}ElementStack.forInitialRender = function forInitialRender(env,parentNode,nextSibling){return new ElementStack(env,parentNode,nextSibling);};ElementStack.resume = function resume(env,tracker,nextSibling){var parentNode=tracker.parentElement();var stack=new ElementStack(env,parentNode,nextSibling);stack.pushBlockTracker(tracker);return stack;};ElementStack.prototype.expectConstructing = function expectConstructing(method){return _glimmerUtil.expect(this.constructing,method + ' should only be called while constructing an element');};ElementStack.prototype.expectOperations = function expectOperations(method){return _glimmerUtil.expect(this.operations,method + ' should only be called while constructing an element');};ElementStack.prototype.block = function block(){return _glimmerUtil.expect(this.blockStack.current,\"Expected a current block tracker\");};ElementStack.prototype.popElement = function popElement(){var elementStack=this.elementStack;var nextSiblingStack=this.nextSiblingStack;var topElement=elementStack.pop();nextSiblingStack.pop(); // LOGGER.debug(`-> element stack ${this.elementStack.toArray().map(e => e.tagName).join(', ')}`);\nthis.element = _glimmerUtil.expect(elementStack.current,\"can't pop past the last element\");this.nextSibling = nextSiblingStack.current;return topElement;};ElementStack.prototype.pushSimpleBlock = function pushSimpleBlock(){var tracker=new SimpleBlockTracker(this.element);this.pushBlockTracker(tracker);return tracker;};ElementStack.prototype.pushUpdatableBlock = function pushUpdatableBlock(){var tracker=new UpdatableBlockTracker(this.element);this.pushBlockTracker(tracker);return tracker;};ElementStack.prototype.pushBlockTracker = function pushBlockTracker(tracker){var isRemote=arguments.length <= 1 || arguments[1] === undefined?false:arguments[1];var current=this.blockStack.current;if(current !== null){current.newDestroyable(tracker);if(!isRemote){current.newBounds(tracker);}}this.blockStack.push(tracker);return tracker;};ElementStack.prototype.pushBlockList = function pushBlockList(list){var tracker=new BlockListTracker(this.element,list);var current=this.blockStack.current;if(current !== null){current.newDestroyable(tracker);current.newBounds(tracker);}this.blockStack.push(tracker);return tracker;};ElementStack.prototype.popBlock = function popBlock(){this.block().finalize(this);return _glimmerUtil.expect(this.blockStack.pop(),\"Expected popBlock to return a block\");};ElementStack.prototype.openElement = function openElement(tag){var operations=arguments.length <= 1 || arguments[1] === undefined?this.defaultOperations:arguments[1];var element=this.dom.createElement(tag,this.element);this.constructing = element;this.operations = operations;return element;};ElementStack.prototype.flushElement = function flushElement(){var parent=this.element;var element=_glimmerUtil.expect(this.constructing,'flushElement should only be called when constructing an element');this.dom.insertBefore(parent,element,this.nextSibling);this.constructing = null;this.operations = null;this.pushElement(element);this.block().openElement(element);};ElementStack.prototype.pushRemoteElement = function pushRemoteElement(element){this.pushElement(element);var tracker=new RemoteBlockTracker(element);this.pushBlockTracker(tracker,true);};ElementStack.prototype.popRemoteElement = function popRemoteElement(){this.popBlock();this.popElement();};ElementStack.prototype.pushElement = function pushElement(element){this.element = element;this.elementStack.push(element); // LOGGER.debug(`-> element stack ${this.elementStack.toArray().map(e => e.tagName).join(', ')}`);\nthis.nextSibling = null;this.nextSiblingStack.push(null);};ElementStack.prototype.newDestroyable = function newDestroyable(d){this.block().newDestroyable(d);};ElementStack.prototype.newBounds = function newBounds(bounds){this.block().newBounds(bounds);};ElementStack.prototype.appendText = function appendText(string){var dom=this.dom;var text=dom.createTextNode(string);dom.insertBefore(this.element,text,this.nextSibling);this.block().newNode(text);return text;};ElementStack.prototype.appendComment = function appendComment(string){var dom=this.dom;var comment=dom.createComment(string);dom.insertBefore(this.element,comment,this.nextSibling);this.block().newNode(comment);return comment;};ElementStack.prototype.setStaticAttribute = function setStaticAttribute(name,value){this.expectOperations('setStaticAttribute').addStaticAttribute(this.expectConstructing('setStaticAttribute'),name,value);};ElementStack.prototype.setStaticAttributeNS = function setStaticAttributeNS(namespace,name,value){this.expectOperations('setStaticAttributeNS').addStaticAttributeNS(this.expectConstructing('setStaticAttributeNS'),namespace,name,value);};ElementStack.prototype.setDynamicAttribute = function setDynamicAttribute(name,reference,isTrusting){this.expectOperations('setDynamicAttribute').addDynamicAttribute(this.expectConstructing('setDynamicAttribute'),name,reference,isTrusting);};ElementStack.prototype.setDynamicAttributeNS = function setDynamicAttributeNS(namespace,name,reference,isTrusting){this.expectOperations('setDynamicAttributeNS').addDynamicAttributeNS(this.expectConstructing('setDynamicAttributeNS'),namespace,name,reference,isTrusting);};ElementStack.prototype.closeElement = function closeElement(){this.block().closeElement();this.popElement();};return ElementStack;})();var SimpleBlockTracker=(function(){function SimpleBlockTracker(parent){this.parent = parent;this.first = null;this.last = null;this.destroyables = null;this.nesting = 0;}SimpleBlockTracker.prototype.destroy = function destroy(){var destroyables=this.destroyables;if(destroyables && destroyables.length){for(var i=0;i < destroyables.length;i++) {destroyables[i].destroy();}}};SimpleBlockTracker.prototype.parentElement = function parentElement(){return this.parent;};SimpleBlockTracker.prototype.firstNode = function firstNode(){return this.first && this.first.firstNode();};SimpleBlockTracker.prototype.lastNode = function lastNode(){return this.last && this.last.lastNode();};SimpleBlockTracker.prototype.openElement = function openElement(element){this.newNode(element);this.nesting++;};SimpleBlockTracker.prototype.closeElement = function closeElement(){this.nesting--;};SimpleBlockTracker.prototype.newNode = function newNode(node){if(this.nesting !== 0)return;if(!this.first){this.first = new First(node);}this.last = new Last(node);};SimpleBlockTracker.prototype.newBounds = function newBounds(bounds){if(this.nesting !== 0)return;if(!this.first){this.first = bounds;}this.last = bounds;};SimpleBlockTracker.prototype.newDestroyable = function newDestroyable(d){this.destroyables = this.destroyables || [];this.destroyables.push(d);};SimpleBlockTracker.prototype.finalize = function finalize(stack){if(!this.first){stack.appendComment('');}};return SimpleBlockTracker;})();var RemoteBlockTracker=(function(_SimpleBlockTracker){babelHelpers.inherits(RemoteBlockTracker,_SimpleBlockTracker);function RemoteBlockTracker(){_SimpleBlockTracker.apply(this,arguments);}RemoteBlockTracker.prototype.destroy = function destroy(){_SimpleBlockTracker.prototype.destroy.call(this);clear(this);};return RemoteBlockTracker;})(SimpleBlockTracker);var UpdatableBlockTracker=(function(_SimpleBlockTracker2){babelHelpers.inherits(UpdatableBlockTracker,_SimpleBlockTracker2);function UpdatableBlockTracker(){_SimpleBlockTracker2.apply(this,arguments);}UpdatableBlockTracker.prototype.reset = function reset(env){var destroyables=this.destroyables;if(destroyables && destroyables.length){for(var i=0;i < destroyables.length;i++) {env.didDestroy(destroyables[i]);}}var nextSibling=clear(this);this.destroyables = null;this.first = null;this.last = null;return nextSibling;};return UpdatableBlockTracker;})(SimpleBlockTracker);var BlockListTracker=(function(){function BlockListTracker(parent,boundList){this.parent = parent;this.boundList = boundList;this.parent = parent;this.boundList = boundList;}BlockListTracker.prototype.destroy = function destroy(){this.boundList.forEachNode(function(node){return node.destroy();});};BlockListTracker.prototype.parentElement = function parentElement(){return this.parent;};BlockListTracker.prototype.firstNode = function firstNode(){var head=this.boundList.head();return head && head.firstNode();};BlockListTracker.prototype.lastNode = function lastNode(){var tail=this.boundList.tail();return tail && tail.lastNode();};BlockListTracker.prototype.openElement = function openElement(_element){_glimmerUtil.assert(false,'Cannot openElement directly inside a block list');};BlockListTracker.prototype.closeElement = function closeElement(){_glimmerUtil.assert(false,'Cannot closeElement directly inside a block list');};BlockListTracker.prototype.newNode = function newNode(_node){_glimmerUtil.assert(false,'Cannot create a new node directly inside a block list');};BlockListTracker.prototype.newBounds = function newBounds(_bounds){};BlockListTracker.prototype.newDestroyable = function newDestroyable(_d){};BlockListTracker.prototype.finalize = function finalize(_stack){};return BlockListTracker;})();var CompiledValue=(function(_CompiledExpression){babelHelpers.inherits(CompiledValue,_CompiledExpression);function CompiledValue(value){_CompiledExpression.call(this);this.type = \"value\";this.reference = PrimitiveReference.create(value);}CompiledValue.prototype.evaluate = function evaluate(_vm){return this.reference;};CompiledValue.prototype.toJSON = function toJSON(){return JSON.stringify(this.reference.value());};return CompiledValue;})(CompiledExpression);var CompiledHasBlock=(function(_CompiledExpression2){babelHelpers.inherits(CompiledHasBlock,_CompiledExpression2);function CompiledHasBlock(inner){_CompiledExpression2.call(this);this.inner = inner;this.type = \"has-block\";}CompiledHasBlock.prototype.evaluate = function evaluate(vm){var block=this.inner.evaluate(vm);return PrimitiveReference.create(!!block);};CompiledHasBlock.prototype.toJSON = function toJSON(){return 'has-block(' + this.inner.toJSON() + ')';};return CompiledHasBlock;})(CompiledExpression);var CompiledHasBlockParams=(function(_CompiledExpression3){babelHelpers.inherits(CompiledHasBlockParams,_CompiledExpression3);function CompiledHasBlockParams(inner){_CompiledExpression3.call(this);this.inner = inner;this.type = \"has-block-params\";}CompiledHasBlockParams.prototype.evaluate = function evaluate(vm){var block=this.inner.evaluate(vm);var hasLocals=block && block.symbolTable.getSymbols().locals;return PrimitiveReference.create(!!hasLocals);};CompiledHasBlockParams.prototype.toJSON = function toJSON(){return 'has-block-params(' + this.inner.toJSON() + ')';};return CompiledHasBlockParams;})(CompiledExpression);var CompiledGetBlockBySymbol=(function(){function CompiledGetBlockBySymbol(symbol,debug){this.symbol = symbol;this.debug = debug;}CompiledGetBlockBySymbol.prototype.evaluate = function evaluate(vm){return vm.scope().getBlock(this.symbol);};CompiledGetBlockBySymbol.prototype.toJSON = function toJSON(){return 'get-block($' + this.symbol + '(' + this.debug + '))';};return CompiledGetBlockBySymbol;})();var CompiledInPartialGetBlock=(function(){function CompiledInPartialGetBlock(symbol,name){this.symbol = symbol;this.name = name;}CompiledInPartialGetBlock.prototype.evaluate = function evaluate(vm){var symbol=this.symbol;var name=this.name;var args=vm.scope().getPartialArgs(symbol);return args.blocks[name];};CompiledInPartialGetBlock.prototype.toJSON = function toJSON(){return 'get-block($' + this.symbol + '($ARGS).' + this.name + '))';};return CompiledInPartialGetBlock;})();var CompiledBlock=function CompiledBlock(start,end){this.start = start;this.end = end;};var CompiledProgram=(function(_CompiledBlock){babelHelpers.inherits(CompiledProgram,_CompiledBlock);function CompiledProgram(start,end,symbols){_CompiledBlock.call(this,start,end);this.symbols = symbols;}return CompiledProgram;})(CompiledBlock);var Labels=(function(){function Labels(){this.labels = _glimmerUtil.dict();this.jumps = [];this.ranges = [];}Labels.prototype.label = function label(name,index){this.labels[name] = index;};Labels.prototype.jump = function jump(at,Target,target){this.jumps.push({at:at,target:target,Target:Target});};Labels.prototype.range = function range(at,Range,start,end){this.ranges.push({at:at,start:start,end:end,Range:Range});};Labels.prototype.patch = function patch(opcodes){for(var i=0;i < this.jumps.length;i++) {var _jumps$i=this.jumps[i];var at=_jumps$i.at;var target=_jumps$i.target;var Target=_jumps$i.Target;opcodes.set(at,Target,this.labels[target]);}for(var i=0;i < this.ranges.length;i++) {var _ranges$i=this.ranges[i];var at=_ranges$i.at;var start=_ranges$i.start;var end=_ranges$i.end;var _Range=_ranges$i.Range;opcodes.set(at,_Range,this.labels[start],this.labels[end] - 1);}};return Labels;})();var BasicOpcodeBuilder=(function(){function BasicOpcodeBuilder(symbolTable,env,program){this.symbolTable = symbolTable;this.env = env;this.program = program;this.labelsStack = new _glimmerUtil.Stack();this.constants = env.constants;this.start = program.next;}BasicOpcodeBuilder.prototype.opcode = function opcode(name,op1,op2,op3){this.push(name,op1,op2,op3);};BasicOpcodeBuilder.prototype.push = function push(type){var op1=arguments.length <= 1 || arguments[1] === undefined?0:arguments[1];var op2=arguments.length <= 2 || arguments[2] === undefined?0:arguments[2];var op3=arguments.length <= 3 || arguments[3] === undefined?0:arguments[3];this.program.push(type,op1,op2,op3);}; // helpers\nBasicOpcodeBuilder.prototype.startLabels = function startLabels(){this.labelsStack.push(new Labels());};BasicOpcodeBuilder.prototype.stopLabels = function stopLabels(){var label=_glimmerUtil.expect(this.labelsStack.pop(),'unbalanced push and pop labels');label.patch(this.program);}; // partials\nBasicOpcodeBuilder.prototype.putPartialDefinition = function putPartialDefinition(_definition){var definition=this.constants.other(_definition);this.opcode(50, /* PutPartial */definition);};BasicOpcodeBuilder.prototype.putDynamicPartialDefinition = function putDynamicPartialDefinition(){this.opcode(49, /* PutDynamicPartial */this.constants.other(this.symbolTable));};BasicOpcodeBuilder.prototype.evaluatePartial = function evaluatePartial(){this.opcode(51, /* EvaluatePartial */this.constants.other(this.symbolTable),this.constants.other(_glimmerUtil.dict()));}; // components\nBasicOpcodeBuilder.prototype.putComponentDefinition = function putComponentDefinition(definition){this.opcode(23, /* PutComponent */this.other(definition));};BasicOpcodeBuilder.prototype.putDynamicComponentDefinition = function putDynamicComponentDefinition(){this.opcode(22 /* PutDynamicComponent */);};BasicOpcodeBuilder.prototype.openComponent = function openComponent(args,shadow){this.opcode(24, /* OpenComponent */this.args(args),shadow?this.block(shadow):0);};BasicOpcodeBuilder.prototype.didCreateElement = function didCreateElement(){this.opcode(25 /* DidCreateElement */);};BasicOpcodeBuilder.prototype.shadowAttributes = function shadowAttributes(){this.opcode(26 /* ShadowAttributes */);this.opcode(21 /* CloseBlock */);};BasicOpcodeBuilder.prototype.didRenderLayout = function didRenderLayout(){this.opcode(27 /* DidRenderLayout */);};BasicOpcodeBuilder.prototype.closeComponent = function closeComponent(){this.opcode(28 /* CloseComponent */);}; // content\nBasicOpcodeBuilder.prototype.dynamicContent = function dynamicContent(Opcode){this.opcode(31, /* DynamicContent */this.other(Opcode));};BasicOpcodeBuilder.prototype.cautiousAppend = function cautiousAppend(){this.dynamicContent(new OptimizedCautiousAppendOpcode());};BasicOpcodeBuilder.prototype.trustingAppend = function trustingAppend(){this.dynamicContent(new OptimizedTrustingAppendOpcode());};BasicOpcodeBuilder.prototype.guardedCautiousAppend = function guardedCautiousAppend(expression){this.dynamicContent(new GuardedCautiousAppendOpcode(this.compileExpression(expression),this.symbolTable));};BasicOpcodeBuilder.prototype.guardedTrustingAppend = function guardedTrustingAppend(expression){this.dynamicContent(new GuardedTrustingAppendOpcode(this.compileExpression(expression),this.symbolTable));}; // dom\nBasicOpcodeBuilder.prototype.text = function text(_text){this.opcode(29, /* Text */this.constants.string(_text));};BasicOpcodeBuilder.prototype.openPrimitiveElement = function openPrimitiveElement(tag){this.opcode(32, /* OpenElement */this.constants.string(tag));};BasicOpcodeBuilder.prototype.openComponentElement = function openComponentElement(tag){this.opcode(35, /* OpenComponentElement */this.constants.string(tag));};BasicOpcodeBuilder.prototype.openDynamicPrimitiveElement = function openDynamicPrimitiveElement(){this.opcode(36 /* OpenDynamicElement */);};BasicOpcodeBuilder.prototype.flushElement = function flushElement(){this.opcode(37 /* FlushElement */);};BasicOpcodeBuilder.prototype.closeElement = function closeElement(){this.opcode(38 /* CloseElement */);};BasicOpcodeBuilder.prototype.staticAttr = function staticAttr(_name,_namespace,_value){var name=this.constants.string(_name);var namespace=_namespace?this.constants.string(_namespace):0;var value=this.constants.string(_value);this.opcode(40, /* StaticAttr */name,value,namespace);};BasicOpcodeBuilder.prototype.dynamicAttrNS = function dynamicAttrNS(_name,_namespace,trusting){var name=this.constants.string(_name);var namespace=this.constants.string(_namespace);this.opcode(42, /* DynamicAttrNS */name,namespace,trusting | 0);};BasicOpcodeBuilder.prototype.dynamicAttr = function dynamicAttr(_name,trusting){var name=this.constants.string(_name);this.opcode(43, /* DynamicAttr */name,trusting | 0);};BasicOpcodeBuilder.prototype.comment = function comment(_comment){var comment=this.constants.string(_comment);this.opcode(30, /* Comment */comment);};BasicOpcodeBuilder.prototype.modifier = function modifier(_name,_args){var args=this.constants.expression(this.compile(_args));var _modifierManager=this.env.lookupModifier(_name,this.symbolTable);var modifierManager=this.constants.other(_modifierManager);var name=this.constants.string(_name);this.opcode(41, /* Modifier */name,modifierManager,args);}; // lists\nBasicOpcodeBuilder.prototype.putIterator = function putIterator(){this.opcode(44 /* PutIterator */);};BasicOpcodeBuilder.prototype.enterList = function enterList(start,end){this.push(45 /* EnterList */);this.labels.range(this.pos,45, /* EnterList */start,end);};BasicOpcodeBuilder.prototype.exitList = function exitList(){this.opcode(46 /* ExitList */);};BasicOpcodeBuilder.prototype.enterWithKey = function enterWithKey(start,end){this.push(47 /* EnterWithKey */);this.labels.range(this.pos,47, /* EnterWithKey */start,end);};BasicOpcodeBuilder.prototype.nextIter = function nextIter(end){this.push(48 /* NextIter */);this.labels.jump(this.pos,48, /* NextIter */end);}; // vm\nBasicOpcodeBuilder.prototype.openBlock = function openBlock(_args,_inner){var args=this.constants.expression(this.compile(_args));var inner=this.constants.other(_inner);this.opcode(20, /* OpenBlock */inner,args);};BasicOpcodeBuilder.prototype.closeBlock = function closeBlock(){this.opcode(21 /* CloseBlock */);};BasicOpcodeBuilder.prototype.pushRemoteElement = function pushRemoteElement(){this.opcode(33 /* PushRemoteElement */);};BasicOpcodeBuilder.prototype.popRemoteElement = function popRemoteElement(){this.opcode(34 /* PopRemoteElement */);};BasicOpcodeBuilder.prototype.popElement = function popElement(){this.opcode(39 /* PopElement */);};BasicOpcodeBuilder.prototype.label = function label(name){this.labels.label(name,this.nextPos);};BasicOpcodeBuilder.prototype.pushChildScope = function pushChildScope(){this.opcode(0 /* PushChildScope */);};BasicOpcodeBuilder.prototype.popScope = function popScope(){this.opcode(1 /* PopScope */);};BasicOpcodeBuilder.prototype.pushDynamicScope = function pushDynamicScope(){this.opcode(2 /* PushDynamicScope */);};BasicOpcodeBuilder.prototype.popDynamicScope = function popDynamicScope(){this.opcode(3 /* PopDynamicScope */);};BasicOpcodeBuilder.prototype.putNull = function putNull(){this.opcode(4, /* Put */this.constants.NULL_REFERENCE);};BasicOpcodeBuilder.prototype.putValue = function putValue(_expression){var expr=this.constants.expression(this.compileExpression(_expression));this.opcode(5, /* EvaluatePut */expr);};BasicOpcodeBuilder.prototype.putArgs = function putArgs(_args){var args=this.constants.expression(this.compile(_args));this.opcode(6, /* PutArgs */args);};BasicOpcodeBuilder.prototype.bindDynamicScope = function bindDynamicScope(_names){this.opcode(12, /* BindDynamicScope */this.names(_names));};BasicOpcodeBuilder.prototype.bindPositionalArgs = function bindPositionalArgs(_names,_symbols){this.opcode(7, /* BindPositionalArgs */this.names(_names),this.symbols(_symbols));};BasicOpcodeBuilder.prototype.bindNamedArgs = function bindNamedArgs(_names,_symbols){this.opcode(8, /* BindNamedArgs */this.names(_names),this.symbols(_symbols));};BasicOpcodeBuilder.prototype.bindBlocks = function bindBlocks(_names,_symbols){this.opcode(9, /* BindBlocks */this.names(_names),this.symbols(_symbols));};BasicOpcodeBuilder.prototype.enter = function enter(_enter,exit){this.push(13 /* Enter */);this.labels.range(this.pos,13, /* Enter */_enter,exit);};BasicOpcodeBuilder.prototype.exit = function exit(){this.opcode(14 /* Exit */);};BasicOpcodeBuilder.prototype.evaluate = function evaluate(_block){var block=this.constants.block(_block);this.opcode(15, /* Evaluate */block);};BasicOpcodeBuilder.prototype.test = function test(testFunc){var _func=undefined;if(testFunc === 'const'){_func = ConstTest;}else if(testFunc === 'simple'){_func = SimpleTest;}else if(testFunc === 'environment'){_func = EnvironmentTest;}else if(typeof testFunc === 'function'){_func = testFunc;}else {throw new Error('unreachable');}var func=this.constants.function(_func);this.opcode(19, /* Test */func);};BasicOpcodeBuilder.prototype.jump = function jump(target){this.push(16 /* Jump */);this.labels.jump(this.pos,16, /* Jump */target);};BasicOpcodeBuilder.prototype.jumpIf = function jumpIf(target){this.push(17 /* JumpIf */);this.labels.jump(this.pos,17, /* JumpIf */target);};BasicOpcodeBuilder.prototype.jumpUnless = function jumpUnless(target){this.push(18 /* JumpUnless */);this.labels.jump(this.pos,18, /* JumpUnless */target);};BasicOpcodeBuilder.prototype.names = function names(_names){var _this=this;var names=_names.map(function(n){return _this.constants.string(n);});return this.constants.array(names);};BasicOpcodeBuilder.prototype.symbols = function symbols(_symbols2){return this.constants.array(_symbols2);};BasicOpcodeBuilder.prototype.other = function other(value){return this.constants.other(value);};BasicOpcodeBuilder.prototype.args = function args(_args2){return this.constants.expression(this.compile(_args2));};BasicOpcodeBuilder.prototype.block = function block(_block3){return this.constants.block(_block3);};babelHelpers.createClass(BasicOpcodeBuilder,[{key:'end',get:function(){return this.program.next;}},{key:'pos',get:function(){return this.program.current;}},{key:'nextPos',get:function(){return this.program.next;}},{key:'labels',get:function(){return _glimmerUtil.expect(this.labelsStack.current,'bug: not in a label stack');}}]);return BasicOpcodeBuilder;})();function isCompilableExpression(expr){return expr && typeof expr['compile'] === 'function';}var OpcodeBuilder=(function(_BasicOpcodeBuilder){babelHelpers.inherits(OpcodeBuilder,_BasicOpcodeBuilder);function OpcodeBuilder(symbolTable,env){var program=arguments.length <= 2 || arguments[2] === undefined?env.program:arguments[2];return (function(){_BasicOpcodeBuilder.call(this,symbolTable,env,program);this.component = new ComponentBuilder(this);}).apply(this,arguments);}OpcodeBuilder.prototype.compile = function compile(expr){if(isCompilableExpression(expr)){return expr.compile(this);}else {return expr;}};OpcodeBuilder.prototype.compileExpression = function compileExpression(expression){if(expression instanceof CompiledExpression){return expression;}else {return expr(expression,this);}};OpcodeBuilder.prototype.bindPositionalArgsForLocals = function bindPositionalArgsForLocals(locals){var names=Object.keys(locals);var symbols=new Array(names.length); //Object.keys(locals).map(name => locals[name]);\nfor(var i=0;i < names.length;i++) {symbols[i] = locals[names[i]];}this.opcode(7, /* BindPositionalArgs */this.symbols(symbols));};OpcodeBuilder.prototype.preludeForLayout = function preludeForLayout(layout){var _this2=this;var symbols=layout.symbolTable.getSymbols();if(symbols.named){(function(){var named=symbols.named;var namedNames=Object.keys(named);var namedSymbols=namedNames.map(function(n){return named[n];});_this2.opcode(8, /* BindNamedArgs */_this2.names(namedNames),_this2.symbols(namedSymbols));})();}this.opcode(11 /* BindCallerScope */);if(symbols.yields){(function(){var yields=symbols.yields;var yieldNames=Object.keys(yields);var yieldSymbols=yieldNames.map(function(n){return yields[n];});_this2.opcode(9, /* BindBlocks */_this2.names(yieldNames),_this2.symbols(yieldSymbols));})();}if(symbols.partialArgs){this.opcode(10, /* BindPartialArgs */symbols.partialArgs);}};OpcodeBuilder.prototype.yield = function _yield(args,to){var yields=undefined,partial=undefined;var inner=undefined;if(yields = this.symbolTable.getSymbol('yields',to)){inner = new CompiledGetBlockBySymbol(yields,to);}else if(partial = this.symbolTable.getPartialArgs()){inner = new CompiledInPartialGetBlock(partial,to);}else {throw new Error('[BUG] ${to} is not a valid block name.');}this.openBlock(args,inner);this.closeBlock();}; // TODO\n// come back to this\nOpcodeBuilder.prototype.labelled = function labelled(args,callback){if(args)this.putArgs(args);this.startLabels();this.enter('BEGIN','END');this.label('BEGIN');callback(this,'BEGIN','END');this.label('END');this.exit();this.stopLabels();}; // TODO\n// come back to this\nOpcodeBuilder.prototype.iter = function iter(callback){this.startLabels();this.enterList('BEGIN','END');this.label('ITER');this.nextIter('BREAK');this.enterWithKey('BEGIN','END');this.label('BEGIN');callback(this,'BEGIN','END');this.label('END');this.exit();this.jump('ITER');this.label('BREAK');this.exitList();this.stopLabels();}; // TODO\n// come back to this\nOpcodeBuilder.prototype.unit = function unit(callback){this.startLabels();callback(this);this.stopLabels();};return OpcodeBuilder;})(BasicOpcodeBuilder);function compileLayout(compilable,env){var builder=new ComponentLayoutBuilder(env);compilable.compile(builder);return builder.compile();}var ComponentLayoutBuilder=(function(){function ComponentLayoutBuilder(env){this.env = env;}ComponentLayoutBuilder.prototype.wrapLayout = function wrapLayout(layout){this.inner = new WrappedBuilder(this.env,layout);};ComponentLayoutBuilder.prototype.fromLayout = function fromLayout(layout){this.inner = new UnwrappedBuilder(this.env,layout);};ComponentLayoutBuilder.prototype.compile = function compile(){return this.inner.compile();};babelHelpers.createClass(ComponentLayoutBuilder,[{key:'tag',get:function(){return this.inner.tag;}},{key:'attrs',get:function(){return this.inner.attrs;}}]);return ComponentLayoutBuilder;})();var WrappedBuilder=(function(){function WrappedBuilder(env,layout){this.env = env;this.layout = layout;this.tag = new ComponentTagBuilder();this.attrs = new ComponentAttrsBuilder();}WrappedBuilder.prototype.compile = function compile(){ //========DYNAMIC\n//        PutValue(TagExpr)\n//        Test\n//        JumpUnless(BODY)\n//        OpenDynamicPrimitiveElement\n//        DidCreateElement\n//        ...attr statements...\n//        FlushElement\n// BODY:  Noop\n//        ...body statements...\n//        PutValue(TagExpr)\n//        Test\n//        JumpUnless(END)\n//        CloseElement\n// END:   Noop\n//        DidRenderLayout\n//        Exit\n//\n//========STATIC\n//        OpenPrimitiveElementOpcode\n//        DidCreateElement\n//        ...attr statements...\n//        FlushElement\n//        ...body statements...\n//        CloseElement\n//        DidRenderLayout\n//        Exit\nvar env=this.env;var layout=this.layout;var symbolTable=layout.symbolTable;var b=builder(env,layout.symbolTable);b.startLabels();var dynamicTag=this.tag.getDynamic();var staticTag=undefined;if(dynamicTag){b.putValue(dynamicTag);b.test('simple');b.jumpUnless('BODY');b.openDynamicPrimitiveElement();b.didCreateElement();this.attrs['buffer'].forEach(function(statement){return compileStatement(statement,b);});b.flushElement();b.label('BODY');}else if(staticTag = this.tag.getStatic()){b.openPrimitiveElement(staticTag);b.didCreateElement();this.attrs['buffer'].forEach(function(statement){return compileStatement(statement,b);});b.flushElement();}b.preludeForLayout(layout);layout.statements.forEach(function(statement){return compileStatement(statement,b);});if(dynamicTag){b.putValue(dynamicTag);b.test('simple');b.jumpUnless('END');b.closeElement();b.label('END');}else if(staticTag){b.closeElement();}b.didRenderLayout();b.stopLabels();return new CompiledProgram(b.start,b.end,symbolTable.size);};return WrappedBuilder;})();function isOpenElement(value){var type=value[0];return type === _glimmerWireFormat.Ops.OpenElement || type === _glimmerWireFormat.Ops.OpenPrimitiveElement;}var UnwrappedBuilder=(function(){function UnwrappedBuilder(env,layout){this.env = env;this.layout = layout;this.attrs = new ComponentAttrsBuilder();}UnwrappedBuilder.prototype.compile = function compile(){var env=this.env;var layout=this.layout;var b=builder(env,layout.symbolTable);b.startLabels();b.preludeForLayout(layout);var attrs=this.attrs['buffer'];var attrsInserted=false;for(var i=0;i < layout.statements.length;i++) {var statement=layout.statements[i];if(!attrsInserted && isOpenElement(statement)){b.openComponentElement(statement[1]);b.didCreateElement();b.shadowAttributes();attrs.forEach(function(statement){return compileStatement(statement,b);});attrsInserted = true;}else {compileStatement(statement,b);}}b.didRenderLayout();b.stopLabels();return new CompiledProgram(b.start,b.end,layout.symbolTable.size);};babelHelpers.createClass(UnwrappedBuilder,[{key:'tag',get:function(){throw new Error('BUG: Cannot call `tag` on an UnwrappedBuilder');}}]);return UnwrappedBuilder;})();var ComponentTagBuilder=(function(){function ComponentTagBuilder(){this.isDynamic = null;this.isStatic = null;this.staticTagName = null;this.dynamicTagName = null;}ComponentTagBuilder.prototype.getDynamic = function getDynamic(){if(this.isDynamic){return this.dynamicTagName;}};ComponentTagBuilder.prototype.getStatic = function getStatic(){if(this.isStatic){return this.staticTagName;}};ComponentTagBuilder.prototype.static = function _static(tagName){this.isStatic = true;this.staticTagName = tagName;};ComponentTagBuilder.prototype.dynamic = function dynamic(tagName){this.isDynamic = true;this.dynamicTagName = [_glimmerWireFormat.Ops.Function,tagName];};return ComponentTagBuilder;})();var ComponentAttrsBuilder=(function(){function ComponentAttrsBuilder(){this.buffer = [];}ComponentAttrsBuilder.prototype.static = function _static(name,value){this.buffer.push([_glimmerWireFormat.Ops.StaticAttr,name,value,null]);};ComponentAttrsBuilder.prototype.dynamic = function dynamic(name,value){this.buffer.push([_glimmerWireFormat.Ops.DynamicAttr,name,[_glimmerWireFormat.Ops.Function,value],null]);};return ComponentAttrsBuilder;})();var ComponentBuilder=(function(){function ComponentBuilder(builder){this.builder = builder;this.env = builder.env;}ComponentBuilder.prototype.static = function _static(definition,args,_symbolTable,shadow){this.builder.unit(function(b){b.putComponentDefinition(definition);b.openComponent(compileBaselineArgs(args,b),shadow);b.closeComponent();});};ComponentBuilder.prototype.dynamic = function dynamic(definitionArgs,definition,args,_symbolTable,shadow){this.builder.unit(function(b){b.putArgs(compileArgs(definitionArgs[0],definitionArgs[1],b));b.putValue([_glimmerWireFormat.Ops.Function,definition]);b.test('simple');b.enter('BEGIN','END');b.label('BEGIN');b.jumpUnless('END');b.putDynamicComponentDefinition();b.openComponent(compileBaselineArgs(args,b),shadow);b.closeComponent();b.label('END');b.exit();});};return ComponentBuilder;})();function builder(env,symbolTable){return new OpcodeBuilder(symbolTable,env);}function entryPoint(meta){return new ProgramSymbolTable(meta);}function layout(meta,wireNamed,wireYields,hasPartials){var _symbols3=symbols(wireNamed,wireYields,hasPartials);var named=_symbols3.named;var yields=_symbols3.yields;var partialSymbol=_symbols3.partialSymbol;var size=_symbols3.size;return new ProgramSymbolTable(meta,named,yields,partialSymbol,size);}function block(parent,locals){var localsMap=null;var program=parent['program'];if(locals.length !== 0){(function(){var map=localsMap = _glimmerUtil.dict();locals.forEach(function(l){return map[l] = program.size++;});})();}return new BlockSymbolTable(parent,program,localsMap);}function symbols(named,yields,hasPartials){var yieldsMap=null;var namedMap=null;var size=1;if(yields.length !== 0){(function(){var map=yieldsMap = _glimmerUtil.dict();yields.forEach(function(y){return map[y] = size++;});})();}if(named.length !== 0){(function(){var map=namedMap = _glimmerUtil.dict();named.forEach(function(y){return map[y] = size++;});})();}var partialSymbol=hasPartials?size++:null;return {named:namedMap,yields:yieldsMap,partialSymbol:partialSymbol,size:size};}var ProgramSymbolTable=(function(){function ProgramSymbolTable(meta){var named=arguments.length <= 1 || arguments[1] === undefined?null:arguments[1];var yields=arguments.length <= 2 || arguments[2] === undefined?null:arguments[2];var partialArgs=arguments.length <= 3 || arguments[3] === undefined?null:arguments[3];var size=arguments.length <= 4 || arguments[4] === undefined?1:arguments[4];this.meta = meta;this.named = named;this.yields = yields;this.partialArgs = partialArgs;this.size = size;this.program = this;}ProgramSymbolTable.prototype.getMeta = function getMeta(){return this.meta;};ProgramSymbolTable.prototype.getSymbols = function getSymbols(){return {named:this.named,yields:this.yields,locals:null,partialArgs:this.partialArgs};};ProgramSymbolTable.prototype.getSymbol = function getSymbol(kind,name){if(kind === 'local')return null;return this[kind] && this[kind][name];};ProgramSymbolTable.prototype.getPartialArgs = function getPartialArgs(){return this.partialArgs || 0;};return ProgramSymbolTable;})();var BlockSymbolTable=(function(){function BlockSymbolTable(parent,program,locals){this.parent = parent;this.program = program;this.locals = locals;}BlockSymbolTable.prototype.getMeta = function getMeta(){return this.program.getMeta();};BlockSymbolTable.prototype.getSymbols = function getSymbols(){return {named:null,yields:null,locals:this.locals,partialArgs:null};};BlockSymbolTable.prototype.getSymbol = function getSymbol(kind,name){if(kind === 'local'){return this.getLocal(name);}else {return this.program.getSymbol(kind,name);}};BlockSymbolTable.prototype.getLocal = function getLocal(name){var locals=this.locals;var parent=this.parent;var symbol=locals && locals[name];if(!symbol && parent){symbol = parent.getSymbol('local',name);}return symbol;};BlockSymbolTable.prototype.getPartialArgs = function getPartialArgs(){return this.program.getPartialArgs();};return BlockSymbolTable;})();var Specialize=(function(){function Specialize(){this.names = _glimmerUtil.dict();this.funcs = [];}Specialize.prototype.add = function add(name,func){this.funcs.push(func);this.names[name] = this.funcs.length - 1;};Specialize.prototype.specialize = function specialize(sexp,table){var name=sexp[0];var index=this.names[name];if(index === undefined)return sexp;var func=this.funcs[index];_glimmerUtil.assert(!!func,'expected a specialization for ' + sexp[0]);return func(sexp,table);};return Specialize;})();var SPECIALIZE=new Specialize();var E=_glimmerWireFormat.Expressions;var Ops$3=_glimmerWireFormat.Ops;SPECIALIZE.add(Ops$3.Append,function(sexp,_symbolTable){var expression=sexp[1];if(Array.isArray(expression) && E.isGet(expression)){var path=expression[1];if(path.length !== 1){return [Ops$3.UnoptimizedAppend,sexp[1],sexp[2]];}}return [Ops$3.OptimizedAppend,sexp[1],sexp[2]];});SPECIALIZE.add(Ops$3.DynamicAttr,function(sexp,_symbolTable){return [Ops$3.AnyDynamicAttr,sexp[1],sexp[2],sexp[3],false];});SPECIALIZE.add(Ops$3.TrustingAttr,function(sexp,_symbolTable){return [Ops$3.AnyDynamicAttr,sexp[1],sexp[2],sexp[3],true];});SPECIALIZE.add(Ops$3.Partial,function(sexp,_table){var expression=sexp[1];if(typeof expression === 'string'){return [Ops$3.StaticPartial,expression];}else {return [Ops$3.DynamicPartial,expression];}});function compileStatement(statement,builder){var refined=SPECIALIZE.specialize(statement,builder.symbolTable);STATEMENTS.compile(refined,builder);}var Template=function Template(statements,symbolTable){this.statements = statements;this.symbolTable = symbolTable;};var Layout=(function(_Template){babelHelpers.inherits(Layout,_Template);function Layout(){_Template.apply(this,arguments);}return Layout;})(Template);var EntryPoint=(function(_Template2){babelHelpers.inherits(EntryPoint,_Template2);function EntryPoint(){_Template2.apply(this,arguments);this.compiled = null;}EntryPoint.prototype.compile = function compile(env){var compiled=this.compiled;if(!compiled){var table=this.symbolTable;var b=builder(env,table);for(var i=0;i < this.statements.length;i++) {var statement=this.statements[i];var refined=SPECIALIZE.specialize(statement,table);STATEMENTS.compile(refined,b);}compiled = this.compiled = new CompiledProgram(b.start,b.end,this.symbolTable.size);}return compiled;};return EntryPoint;})(Template);var InlineBlock=(function(_Template3){babelHelpers.inherits(InlineBlock,_Template3);function InlineBlock(){_Template3.apply(this,arguments);this.compiled = null;}InlineBlock.prototype.splat = function splat(builder){var table=builder.symbolTable;var locals=table.getSymbols().locals;if(locals){builder.pushChildScope();builder.bindPositionalArgsForLocals(locals);}for(var i=0;i < this.statements.length;i++) {var statement=this.statements[i];var refined=SPECIALIZE.specialize(statement,table);STATEMENTS.compile(refined,builder);}if(locals){builder.popScope();}};InlineBlock.prototype.compile = function compile(env){var compiled=this.compiled;if(!compiled){var table=this.symbolTable;var b=builder(env,table);this.splat(b);compiled = this.compiled = new CompiledBlock(b.start,b.end);}return compiled;};return InlineBlock;})(Template);var PartialBlock=(function(_Template4){babelHelpers.inherits(PartialBlock,_Template4);function PartialBlock(){_Template4.apply(this,arguments);this.compiled = null;}PartialBlock.prototype.compile = function compile(env){var compiled=this.compiled;if(!compiled){var table=this.symbolTable;var b=builder(env,table);for(var i=0;i < this.statements.length;i++) {var statement=this.statements[i];var refined=SPECIALIZE.specialize(statement,table);STATEMENTS.compile(refined,b);}compiled = this.compiled = new CompiledProgram(b.start,b.end,table.size);}return compiled;};return PartialBlock;})(Template);var Scanner=(function(){function Scanner(block,meta,env){this.block = block;this.meta = meta;this.env = env;}Scanner.prototype.scanEntryPoint = function scanEntryPoint(){var block=this.block;var meta=this.meta;var symbolTable=entryPoint(meta);var child=scanBlock(block,symbolTable,this.env);return new EntryPoint(child.statements,symbolTable);};Scanner.prototype.scanLayout = function scanLayout(){var block=this.block;var meta=this.meta;var named=block.named;var yields=block.yields;var hasPartials=block.hasPartials;var symbolTable=layout(meta,named,yields,hasPartials);var child=scanBlock(block,symbolTable,this.env);return new Layout(child.statements,symbolTable);};Scanner.prototype.scanPartial = function scanPartial(symbolTable){var block=this.block;var child=scanBlock(block,symbolTable,this.env);return new PartialBlock(child.statements,symbolTable);};return Scanner;})();function scanBlock(_ref26,symbolTable,env){var statements=_ref26.statements;return new RawInlineBlock(env,symbolTable,statements).scan();}var BaselineSyntax;(function(BaselineSyntax){var Ops=_glimmerWireFormat.Ops;BaselineSyntax.isScannedComponent = _glimmerWireFormat.is(Ops.ScannedComponent);BaselineSyntax.isPrimitiveElement = _glimmerWireFormat.is(Ops.OpenPrimitiveElement);BaselineSyntax.isOptimizedAppend = _glimmerWireFormat.is(Ops.OptimizedAppend);BaselineSyntax.isUnoptimizedAppend = _glimmerWireFormat.is(Ops.UnoptimizedAppend);BaselineSyntax.isAnyAttr = _glimmerWireFormat.is(Ops.AnyDynamicAttr);BaselineSyntax.isStaticPartial = _glimmerWireFormat.is(Ops.StaticPartial);BaselineSyntax.isDynamicPartial = _glimmerWireFormat.is(Ops.DynamicPartial);BaselineSyntax.isFunctionExpression = _glimmerWireFormat.is(Ops.Function);BaselineSyntax.isNestedBlock = _glimmerWireFormat.is(Ops.NestedBlock);BaselineSyntax.isScannedBlock = _glimmerWireFormat.is(Ops.ScannedBlock);BaselineSyntax.isDebugger = _glimmerWireFormat.is(Ops.Debugger);var NestedBlock;(function(NestedBlock){function defaultBlock(sexp){return sexp[4];}NestedBlock.defaultBlock = defaultBlock;function inverseBlock(sexp){return sexp[5];}NestedBlock.inverseBlock = inverseBlock;function params(sexp){return sexp[2];}NestedBlock.params = params;function hash(sexp){return sexp[3];}NestedBlock.hash = hash;})(NestedBlock = BaselineSyntax.NestedBlock || (BaselineSyntax.NestedBlock = {}));})(BaselineSyntax || (exports.BaselineSyntax = BaselineSyntax = {}));var Ops$2=_glimmerWireFormat.Ops;var RawInlineBlock=(function(){function RawInlineBlock(env,table,statements){this.env = env;this.table = table;this.statements = statements;}RawInlineBlock.prototype.scan = function scan(){var buffer=[];for(var i=0;i < this.statements.length;i++) {var statement=this.statements[i];if(_glimmerWireFormat.Statements.isBlock(statement)){buffer.push(this.specializeBlock(statement));}else if(_glimmerWireFormat.Statements.isComponent(statement)){buffer.push.apply(buffer,this.specializeComponent(statement));}else {buffer.push(statement);}}return new InlineBlock(buffer,this.table);};RawInlineBlock.prototype.specializeBlock = function specializeBlock(block$$){var path=block$$[1];var params=block$$[2];var hash=block$$[3];var template=block$$[4];var inverse=block$$[5];return [Ops$2.ScannedBlock,path,params,hash,this.child(template),this.child(inverse)];};RawInlineBlock.prototype.specializeComponent = function specializeComponent(sexp){var tag=sexp[1];var component=sexp[2];if(this.env.hasComponentDefinition(tag,this.table)){var child=this.child(component);var attrs=new RawInlineBlock(this.env,this.table,component.attrs);return [[Ops$2.ScannedComponent,tag,attrs,component.args,child]];}else {var buf=[];buf.push([Ops$2.OpenElement,tag,[]]);buf.push.apply(buf,component.attrs);buf.push([Ops$2.FlushElement]);buf.push.apply(buf,component.statements);buf.push([Ops$2.CloseElement]);return buf;}};RawInlineBlock.prototype.child = function child(block$$){if(!block$$)return null;var table=block(this.table,block$$.locals);return new RawInlineBlock(this.env,table,block$$.statements);};return RawInlineBlock;})();var CompiledLookup=(function(_CompiledExpression4){babelHelpers.inherits(CompiledLookup,_CompiledExpression4);function CompiledLookup(base,path){_CompiledExpression4.call(this);this.base = base;this.path = path;this.type = \"lookup\";}CompiledLookup.create = function create(base,path){if(path.length === 0){return base;}else {return new this(base,path);}};CompiledLookup.prototype.evaluate = function evaluate(vm){var base=this.base;var path=this.path;return _glimmerReference.referenceFromParts(base.evaluate(vm),path);};CompiledLookup.prototype.toJSON = function toJSON(){return this.base.toJSON() + '.' + this.path.join('.');};return CompiledLookup;})(CompiledExpression);var CompiledSelf=(function(_CompiledExpression5){babelHelpers.inherits(CompiledSelf,_CompiledExpression5);function CompiledSelf(){_CompiledExpression5.apply(this,arguments);}CompiledSelf.prototype.evaluate = function evaluate(vm){return vm.getSelf();};CompiledSelf.prototype.toJSON = function toJSON(){return 'self';};return CompiledSelf;})(CompiledExpression);var CompiledSymbol=(function(_CompiledExpression6){babelHelpers.inherits(CompiledSymbol,_CompiledExpression6);function CompiledSymbol(symbol,debug){_CompiledExpression6.call(this);this.symbol = symbol;this.debug = debug;}CompiledSymbol.prototype.evaluate = function evaluate(vm){return vm.referenceForSymbol(this.symbol);};CompiledSymbol.prototype.toJSON = function toJSON(){return '$' + this.symbol + '(' + this.debug + ')';};return CompiledSymbol;})(CompiledExpression);var CompiledInPartialName=(function(_CompiledExpression7){babelHelpers.inherits(CompiledInPartialName,_CompiledExpression7);function CompiledInPartialName(symbol,name){_CompiledExpression7.call(this);this.symbol = symbol;this.name = name;}CompiledInPartialName.prototype.evaluate = function evaluate(vm){var symbol=this.symbol;var name=this.name;var args=vm.scope().getPartialArgs(symbol);return args.named.get(name);};CompiledInPartialName.prototype.toJSON = function toJSON(){return '$' + this.symbol + '($ARGS).' + this.name;};return CompiledInPartialName;})(CompiledExpression);var CompiledHelper=(function(_CompiledExpression8){babelHelpers.inherits(CompiledHelper,_CompiledExpression8);function CompiledHelper(name,helper,args,symbolTable){_CompiledExpression8.call(this);this.name = name;this.helper = helper;this.args = args;this.symbolTable = symbolTable;this.type = \"helper\";}CompiledHelper.prototype.evaluate = function evaluate(vm){var helper=this.helper;return helper(vm,this.args.evaluate(vm),this.symbolTable);};CompiledHelper.prototype.toJSON = function toJSON(){return '`' + this.name + '($ARGS)`';};return CompiledHelper;})(CompiledExpression);var CompiledConcat=(function(){function CompiledConcat(parts){this.parts = parts;this.type = \"concat\";}CompiledConcat.prototype.evaluate = function evaluate(vm){var parts=new Array(this.parts.length);for(var i=0;i < this.parts.length;i++) {parts[i] = this.parts[i].evaluate(vm);}return new ConcatReference(parts);};CompiledConcat.prototype.toJSON = function toJSON(){return 'concat(' + this.parts.map(function(expr){return expr.toJSON();}).join(\", \") + ')';};return CompiledConcat;})();var ConcatReference=(function(_CachedReference2){babelHelpers.inherits(ConcatReference,_CachedReference2);function ConcatReference(parts){_CachedReference2.call(this);this.parts = parts;this.tag = _glimmerReference.combineTagged(parts);}ConcatReference.prototype.compute = function compute(){var parts=new Array();for(var i=0;i < this.parts.length;i++) {var value=this.parts[i].value();if(value !== null && value !== undefined){parts[i] = castToString(value);}}if(parts.length > 0){return parts.join('');}return null;};return ConcatReference;})(_glimmerReference.CachedReference);function castToString(value){if(typeof value['toString'] !== 'function'){return '';}return String(value);}var CompiledFunctionExpression=(function(_CompiledExpression9){babelHelpers.inherits(CompiledFunctionExpression,_CompiledExpression9);function CompiledFunctionExpression(func,symbolTable){_CompiledExpression9.call(this);this.func = func;this.symbolTable = symbolTable;this.type = \"function\";this.func = func;}CompiledFunctionExpression.prototype.evaluate = function evaluate(vm){var func=this.func;var symbolTable=this.symbolTable;return func(vm,symbolTable);};CompiledFunctionExpression.prototype.toJSON = function toJSON(){var func=this.func;if(func.name){return '`' + func.name + '(...)`';}else {return \"`func(...)`\";}};return CompiledFunctionExpression;})(CompiledExpression);var _BaselineSyntax$NestedBlock=BaselineSyntax.NestedBlock;var defaultBlock=_BaselineSyntax$NestedBlock.defaultBlock;var params=_BaselineSyntax$NestedBlock.params;var hash=_BaselineSyntax$NestedBlock.hash;function debugCallback(context,get){console.info('Use `context`, and `get(<path>)` to debug this template.'); /* tslint:disable */debugger; /* tslint:enable */return {context:context,get:get};}function getter(vm,builder){return function(path){var parts=path.split('.');if(parts[0] === 'this'){parts[0] = null;}return compileRef(parts,builder).evaluate(vm);};}var callback=debugCallback; // For testing purposes\nfunction setDebuggerCallback(cb){callback = cb;}function resetDebuggerCallback(){callback = debugCallback;}var Compilers=(function(){function Compilers(){this.names = _glimmerUtil.dict();this.funcs = [];}Compilers.prototype.add = function add(name,func){this.funcs.push(func);this.names[name] = this.funcs.length - 1;};Compilers.prototype.compile = function compile(sexp,builder){var name=sexp[0];var index=this.names[name];var func=this.funcs[index];_glimmerUtil.assert(!!func,'expected an implementation for ' + sexp[0]);return func(sexp,builder);};return Compilers;})();var Ops$1=_glimmerWireFormat.Ops;var STATEMENTS=new Compilers();STATEMENTS.add(Ops$1.Text,function(sexp,builder){builder.text(sexp[1]);});STATEMENTS.add(Ops$1.Comment,function(sexp,builder){builder.comment(sexp[1]);});STATEMENTS.add(Ops$1.CloseElement,function(_sexp,builder){_glimmerUtil.LOGGER.trace('close-element statement');builder.closeElement();});STATEMENTS.add(Ops$1.FlushElement,function(_sexp,builder){builder.flushElement();});STATEMENTS.add(Ops$1.Modifier,function(sexp,builder){var path=sexp[1];var params=sexp[2];var hash=sexp[3];var args=compileArgs(params,hash,builder);if(builder.env.hasModifier(path[0],builder.symbolTable)){builder.modifier(path[0],args);}else {throw new Error('Compile Error ' + path.join('.') + ' is not a modifier: Helpers may not be used in the element form.');}});STATEMENTS.add(Ops$1.StaticAttr,function(sexp,builder){var name=sexp[1];var value=sexp[2];var namespace=sexp[3];builder.staticAttr(name,namespace,value);});STATEMENTS.add(Ops$1.AnyDynamicAttr,function(sexp,builder){var name=sexp[1];var value=sexp[2];var namespace=sexp[3];var trusting=sexp[4];builder.putValue(value);if(namespace){builder.dynamicAttrNS(name,namespace,trusting);}else {builder.dynamicAttr(name,trusting);}});STATEMENTS.add(Ops$1.OpenElement,function(sexp,builder){_glimmerUtil.LOGGER.trace('open-element statement');builder.openPrimitiveElement(sexp[1]);});STATEMENTS.add(Ops$1.OptimizedAppend,function(sexp,builder){var value=sexp[1];var trustingMorph=sexp[2];var _builder$env$macros=builder.env.macros();var inlines=_builder$env$macros.inlines;var returned=inlines.compile(sexp,builder) || value;if(returned === true)return;builder.putValue(returned[1]);if(trustingMorph){builder.trustingAppend();}else {builder.cautiousAppend();}});STATEMENTS.add(Ops$1.UnoptimizedAppend,function(sexp,builder){var value=sexp[1];var trustingMorph=sexp[2];var _builder$env$macros2=builder.env.macros();var inlines=_builder$env$macros2.inlines;var returned=inlines.compile(sexp,builder) || value;if(returned === true)return;if(trustingMorph){builder.guardedTrustingAppend(returned[1]);}else {builder.guardedCautiousAppend(returned[1]);}});STATEMENTS.add(Ops$1.NestedBlock,function(sexp,builder){var _builder$env$macros3=builder.env.macros();var blocks=_builder$env$macros3.blocks;blocks.compile(sexp,builder);});STATEMENTS.add(Ops$1.ScannedBlock,function(sexp,builder){var path=sexp[1];var params=sexp[2];var hash=sexp[3];var template=sexp[4];var inverse=sexp[5];var templateBlock=template && template.scan();var inverseBlock=inverse && inverse.scan();var _builder$env$macros4=builder.env.macros();var blocks=_builder$env$macros4.blocks;blocks.compile([Ops$1.NestedBlock,path,params,hash,templateBlock,inverseBlock],builder);});STATEMENTS.add(Ops$1.ScannedComponent,function(sexp,builder){var tag=sexp[1];var attrs=sexp[2];var rawArgs=sexp[3];var rawBlock=sexp[4];var block=rawBlock && rawBlock.scan();var args=compileBlockArgs(null,rawArgs,{default:block,inverse:null},builder);var definition=builder.env.getComponentDefinition(tag,builder.symbolTable);builder.putComponentDefinition(definition);builder.openComponent(args,attrs.scan());builder.closeComponent();});STATEMENTS.add(Ops$1.StaticPartial,function(sexp,builder){var name=sexp[1];if(!builder.env.hasPartial(name,builder.symbolTable)){throw new Error('Compile Error: Could not find a partial named \"' + name + '\"');}var definition=builder.env.lookupPartial(name,builder.symbolTable);builder.putPartialDefinition(definition);builder.evaluatePartial();});STATEMENTS.add(Ops$1.DynamicPartial,function(sexp,builder){var name=sexp[1];builder.startLabels();builder.putValue(name);builder.test('simple');builder.enter('BEGIN','END');builder.label('BEGIN');builder.jumpUnless('END');builder.putDynamicPartialDefinition();builder.evaluatePartial();builder.label('END');builder.exit();builder.stopLabels();});STATEMENTS.add(Ops$1.Yield,function(sexp,builder){var to=sexp[1];var params=sexp[2];var args=compileArgs(params,null,builder);builder.yield(args,to);});STATEMENTS.add(Ops$1.Debugger,function(sexp,builder){builder.putValue([Ops$1.Function,function(vm){var context=vm.getSelf().value();var get=function(path){return getter(vm,builder)(path).value();};callback(context,get);}]);return sexp;});var EXPRESSIONS=new Compilers();function expr(expression,builder){if(Array.isArray(expression)){return EXPRESSIONS.compile(expression,builder);}else {return new CompiledValue(expression);}}EXPRESSIONS.add(Ops$1.Unknown,function(sexp,builder){var path=sexp[1];var name=path[0];if(builder.env.hasHelper(name,builder.symbolTable)){return new CompiledHelper(name,builder.env.lookupHelper(name,builder.symbolTable),CompiledArgs.empty(),builder.symbolTable);}else {return compileRef(path,builder);}});EXPRESSIONS.add(Ops$1.Concat,function(sexp,builder){var params=sexp[1].map(function(p){return expr(p,builder);});return new CompiledConcat(params);});EXPRESSIONS.add(Ops$1.Function,function(sexp,builder){return new CompiledFunctionExpression(sexp[1],builder.symbolTable);});EXPRESSIONS.add(Ops$1.Helper,function(sexp,builder){var env=builder.env;var symbolTable=builder.symbolTable;var _sexp$1=sexp[1];var name=_sexp$1[0];var params=sexp[2];var hash=sexp[3];if(env.hasHelper(name,symbolTable)){var args=compileArgs(params,hash,builder);return new CompiledHelper(name,env.lookupHelper(name,symbolTable),args,symbolTable);}else {throw new Error('Compile Error: ' + name + ' is not a helper');}});EXPRESSIONS.add(Ops$1.Get,function(sexp,builder){return compileRef(sexp[1],builder);});EXPRESSIONS.add(Ops$1.Undefined,function(_sexp,_builder){return new CompiledValue(undefined);});EXPRESSIONS.add(Ops$1.Arg,function(sexp,builder){var parts=sexp[1];var head=parts[0];var named=undefined,partial=undefined;if(named = builder.symbolTable.getSymbol('named',head)){var path=parts.slice(1);var inner=new CompiledSymbol(named,head);return CompiledLookup.create(inner,path);}else if(partial = builder.symbolTable.getPartialArgs()){var path=parts.slice(1);var inner=new CompiledInPartialName(partial,head);return CompiledLookup.create(inner,path);}else {throw new Error('[BUG] @' + parts.join('.') + ' is not a valid lookup path.');}});EXPRESSIONS.add(Ops$1.HasBlock,function(sexp,builder){var blockName=sexp[1];var yields=undefined,partial=undefined;if(yields = builder.symbolTable.getSymbol('yields',blockName)){var inner=new CompiledGetBlockBySymbol(yields,blockName);return new CompiledHasBlock(inner);}else if(partial = builder.symbolTable.getPartialArgs()){var inner=new CompiledInPartialGetBlock(partial,blockName);return new CompiledHasBlock(inner);}else {throw new Error('[BUG] ${blockName} is not a valid block name.');}});EXPRESSIONS.add(Ops$1.HasBlockParams,function(sexp,builder){var blockName=sexp[1];var yields=undefined,partial=undefined;if(yields = builder.symbolTable.getSymbol('yields',blockName)){var inner=new CompiledGetBlockBySymbol(yields,blockName);return new CompiledHasBlockParams(inner);}else if(partial = builder.symbolTable.getPartialArgs()){var inner=new CompiledInPartialGetBlock(partial,blockName);return new CompiledHasBlockParams(inner);}else {throw new Error('[BUG] ${blockName} is not a valid block name.');}});function compileArgs(params,hash,builder){var compiledParams=compileParams(params,builder);var compiledHash=compileHash(hash,builder);return CompiledArgs.create(compiledParams,compiledHash,EMPTY_BLOCKS);}function compileBlockArgs(params,hash,blocks,builder){var compiledParams=compileParams(params,builder);var compiledHash=compileHash(hash,builder);return CompiledArgs.create(compiledParams,compiledHash,blocks);}function compileBaselineArgs(args,builder){var params=args[0];var hash=args[1];var _default=args[2];var inverse=args[3];return CompiledArgs.create(compileParams(params,builder),compileHash(hash,builder),{default:_default,inverse:inverse});}function compileParams(params,builder){if(!params || params.length === 0)return COMPILED_EMPTY_POSITIONAL_ARGS;var compiled=new Array(params.length);for(var i=0;i < params.length;i++) {compiled[i] = expr(params[i],builder);}return CompiledPositionalArgs.create(compiled);}function compileHash(hash,builder){if(!hash)return COMPILED_EMPTY_NAMED_ARGS;var keys=hash[0];var values=hash[1];if(keys.length === 0)return COMPILED_EMPTY_NAMED_ARGS;var compiled=new Array(values.length);for(var i=0;i < values.length;i++) {compiled[i] = expr(values[i],builder);}return new CompiledNamedArgs(keys,compiled);}function compileRef(parts,builder){var head=parts[0];var local=undefined;if(head === null){var inner=new CompiledSelf();var path=parts.slice(1);return CompiledLookup.create(inner,path);}else if(local = builder.symbolTable.getSymbol('local',head)){var path=parts.slice(1);var inner=new CompiledSymbol(local,head);return CompiledLookup.create(inner,path);}else {var inner=new CompiledSelf();return CompiledLookup.create(inner,parts);}}var Blocks=(function(){function Blocks(){this.names = _glimmerUtil.dict();this.funcs = [];}Blocks.prototype.add = function add(name,func){this.funcs.push(func);this.names[name] = this.funcs.length - 1;};Blocks.prototype.addMissing = function addMissing(func){this.missing = func;};Blocks.prototype.compile = function compile(sexp,builder){ // assert(sexp[1].length === 1, 'paths in blocks are not supported');\nvar name=sexp[1][0];var index=this.names[name];if(index === undefined){_glimmerUtil.assert(!!this.missing,name + ' not found, and no catch-all block handler was registered');var func=this.missing;var handled=func(sexp,builder);_glimmerUtil.assert(!!handled,name + ' not found, and the catch-all block handler didn\\'t handle it');}else {var func=this.funcs[index];func(sexp,builder);}};return Blocks;})();var BLOCKS=new Blocks();var Inlines=(function(){function Inlines(){this.names = _glimmerUtil.dict();this.funcs = [];}Inlines.prototype.add = function add(name,func){this.funcs.push(func);this.names[name] = this.funcs.length - 1;};Inlines.prototype.addMissing = function addMissing(func){this.missing = func;};Inlines.prototype.compile = function compile(sexp,builder){var value=sexp[1]; // TODO: Fix this so that expression macros can return\n// things like components, so that {{component foo}}\n// is the same as {{(component foo)}}\nif(!Array.isArray(value))return ['expr',value];var path=undefined;var params=undefined;var hash=undefined;if(value[0] === Ops$1.Helper){path = value[1];params = value[2];hash = value[3];}else if(value[0] === Ops$1.Unknown){path = value[1];params = hash = null;}else {return ['expr',value];}if(path.length > 1 && !params && !hash){return ['expr',value];}var name=path[0];var index=this.names[name];if(index === undefined && this.missing){var func=this.missing;var returned=func(path,params,hash,builder);return returned === false?['expr',value]:returned;}else if(index !== undefined){var func=this.funcs[index];var returned=func(path,params,hash,builder);return returned === false?['expr',value]:returned;}else {return ['expr',value];}};return Inlines;})();var INLINES=new Inlines();populateBuiltins(BLOCKS,INLINES);function populateBuiltins(){var blocks=arguments.length <= 0 || arguments[0] === undefined?new Blocks():arguments[0];var inlines=arguments.length <= 1 || arguments[1] === undefined?new Inlines():arguments[1];blocks.add('if',function(sexp,builder){ //        PutArgs\n//        Test(Environment)\n//        Enter(BEGIN, END)\n// BEGIN: Noop\n//        JumpUnless(ELSE)\n//        Evaluate(default)\n//        Jump(END)\n// ELSE:  Noop\n//        Evalulate(inverse)\n// END:   Noop\n//        Exit\nvar params=sexp[2];var hash=sexp[3];var _default=sexp[4];var inverse=sexp[5];var args=compileArgs(params,hash,builder);builder.putArgs(args);builder.test('environment');builder.labelled(null,function(b){if(_default && inverse){b.jumpUnless('ELSE');b.evaluate(_default);b.jump('END');b.label('ELSE');b.evaluate(inverse);}else if(_default){b.jumpUnless('END');b.evaluate(_default);}else {throw _glimmerUtil.unreachable();}});});blocks.add('-in-element',function(sexp,builder){var block=defaultBlock(sexp);var args=compileArgs(params(sexp),null,builder);builder.putArgs(args);builder.test('simple');builder.labelled(null,function(b){b.jumpUnless('END');b.pushRemoteElement();b.evaluate(_glimmerUtil.unwrap(block));b.popRemoteElement();});});blocks.add('-with-dynamic-vars',function(sexp,builder){var block=defaultBlock(sexp);var args=compileArgs(params(sexp),hash(sexp),builder);builder.unit(function(b){b.putArgs(args);b.pushDynamicScope();b.bindDynamicScope(args.named.keys);b.evaluate(_glimmerUtil.unwrap(block));b.popDynamicScope();});});blocks.add('unless',function(sexp,builder){ //        PutArgs\n//        Test(Environment)\n//        Enter(BEGIN, END)\n// BEGIN: Noop\n//        JumpUnless(ELSE)\n//        Evaluate(default)\n//        Jump(END)\n// ELSE:  Noop\n//        Evalulate(inverse)\n// END:   Noop\n//        Exit\nvar params=sexp[2];var hash=sexp[3];var _default=sexp[4];var inverse=sexp[5];var args=compileArgs(params,hash,builder);builder.putArgs(args);builder.test('environment');builder.labelled(null,function(b){if(_default && inverse){b.jumpIf('ELSE');b.evaluate(_default);b.jump('END');b.label('ELSE');b.evaluate(inverse);}else if(_default){b.jumpIf('END');b.evaluate(_default);}else {throw _glimmerUtil.unreachable();}});});blocks.add('with',function(sexp,builder){ //        PutArgs\n//        Test(Environment)\n//        Enter(BEGIN, END)\n// BEGIN: Noop\n//        JumpUnless(ELSE)\n//        Evaluate(default)\n//        Jump(END)\n// ELSE:  Noop\n//        Evalulate(inverse)\n// END:   Noop\n//        Exit\nvar params=sexp[2];var hash=sexp[3];var _default=sexp[4];var inverse=sexp[5];var args=compileArgs(params,hash,builder);builder.putArgs(args);builder.test('environment');builder.labelled(null,function(b){if(_default && inverse){b.jumpUnless('ELSE');b.evaluate(_default);b.jump('END');b.label('ELSE');b.evaluate(inverse);}else if(_default){b.jumpUnless('END');b.evaluate(_default);}else {throw _glimmerUtil.unreachable();}});});blocks.add('each',function(sexp,builder){ //         Enter(BEGIN, END)\n// BEGIN:  Noop\n//         PutArgs\n//         PutIterable\n//         JumpUnless(ELSE)\n//         EnterList(BEGIN2, END2)\n// ITER:   Noop\n//         NextIter(BREAK)\n//         EnterWithKey(BEGIN2, END2)\n// BEGIN2: Noop\n//         PushChildScope\n//         Evaluate(default)\n//         PopScope\n// END2:   Noop\n//         Exit\n//         Jump(ITER)\n// BREAK:  Noop\n//         ExitList\n//         Jump(END)\n// ELSE:   Noop\n//         Evalulate(inverse)\n// END:    Noop\n//         Exit\nvar params=sexp[2];var hash=sexp[3];var _default=sexp[4];var inverse=sexp[5];var args=compileArgs(params,hash,builder);builder.labelled(args,function(b){b.putIterator();if(inverse){b.jumpUnless('ELSE');}else {b.jumpUnless('END');}b.iter(function(b){b.evaluate(_glimmerUtil.unwrap(_default));});if(inverse){b.jump('END');b.label('ELSE');b.evaluate(inverse);}});});return {blocks:blocks,inlines:inlines};}var badProtocols=['javascript:','vbscript:'];var badTags=['A','BODY','LINK','IMG','IFRAME','BASE','FORM'];var badTagsForDataURI=['EMBED'];var badAttributes=['href','src','background','action'];var badAttributesForDataURI=['src'];function has(array,item){return array.indexOf(item) !== -1;}function checkURI(tagName,attribute){return (tagName === null || has(badTags,tagName)) && has(badAttributes,attribute);}function checkDataURI(tagName,attribute){if(tagName === null)return false;return has(badTagsForDataURI,tagName) && has(badAttributesForDataURI,attribute);}function requiresSanitization(tagName,attribute){return checkURI(tagName,attribute) || checkDataURI(tagName,attribute);}function sanitizeAttributeValue(env,element,attribute,value){var tagName=null;if(value === null || value === undefined){return value;}if(isSafeString(value)){return value.toHTML();}if(!element){tagName = null;}else {tagName = element.tagName.toUpperCase();}var str=normalizeTextValue(value);if(checkURI(tagName,attribute)){var protocol=env.protocolForURL(str);if(has(badProtocols,protocol)){return 'unsafe:' + str;}}if(checkDataURI(tagName,attribute)){return 'unsafe:' + str;}return str;} /*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */function normalizeProperty(element,slotName){var type=undefined,normalized=undefined;if(slotName in element){normalized = slotName;type = 'prop';}else {var lower=slotName.toLowerCase();if(lower in element){type = 'prop';normalized = lower;}else {type = 'attr';normalized = slotName;}}if(type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName,normalized))){type = 'attr';}return {normalized:normalized,type:type};} // properties that MUST be set as attributes, due to:\n// * browser bug\n// * strange spec outlier\nvar ATTR_OVERRIDES={ // phantomjs < 2.0 lets you set it as a prop but won't reflect it\n// back to the attribute. button.getAttribute('type') === null\nBUTTON:{type:true,form:true},INPUT:{ // Some version of IE (like IE9) actually throw an exception\n// if you set input.type = 'something-unknown'\ntype:true,form:true, // Chrome 46.0.2464.0: 'autocorrect' in document.createElement('input') === false\n// Safari 8.0.7: 'autocorrect' in document.createElement('input') === false\n// Mobile Safari (iOS 8.4 simulator): 'autocorrect' in document.createElement('input') === true\nautocorrect:true, // Chrome 54.0.2840.98: 'list' in document.createElement('input') === true\n// Safari 9.1.3: 'list' in document.createElement('input') === false\nlist:true}, // element.form is actually a legitimate readOnly property, that is to be\n// mutated, but must be mutated by setAttribute...\nSELECT:{form:true},OPTION:{form:true},TEXTAREA:{form:true},LABEL:{form:true},FIELDSET:{form:true},LEGEND:{form:true},OBJECT:{form:true}};function preferAttr(tagName,propName){var tag=ATTR_OVERRIDES[tagName.toUpperCase()];return tag && tag[propName.toLowerCase()] || false;}var innerHTMLWrapper={colgroup:{depth:2,before:'<table><colgroup>',after:'</colgroup></table>'},table:{depth:1,before:'<table>',after:'</table>'},tbody:{depth:2,before:'<table><tbody>',after:'</tbody></table>'},tfoot:{depth:2,before:'<table><tfoot>',after:'</tfoot></table>'},thead:{depth:2,before:'<table><thead>',after:'</thead></table>'},tr:{depth:3,before:'<table><tbody><tr>',after:'</tr></tbody></table>'}}; // Patch:    innerHTML Fix\n// Browsers: IE9\n// Reason:   IE9 don't allow us to set innerHTML on col, colgroup, frameset,\n//           html, style, table, tbody, tfoot, thead, title, tr.\n// Fix:      Wrap the innerHTML we are about to set in its parents, apply the\n//           wrapped innerHTML on a div, then move the unwrapped nodes into the\n//           target position.\nfunction domChanges(document,DOMChangesClass){if(!document)return DOMChangesClass;if(!shouldApplyFix(document)){return DOMChangesClass;}var div=document.createElement('div');return (function(_DOMChangesClass){babelHelpers.inherits(DOMChangesWithInnerHTMLFix,_DOMChangesClass);function DOMChangesWithInnerHTMLFix(){_DOMChangesClass.apply(this,arguments);}DOMChangesWithInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent,nextSibling,html){if(html === null || html === ''){return _DOMChangesClass.prototype.insertHTMLBefore.call(this,parent,nextSibling,html);}var parentTag=parent.tagName.toLowerCase();var wrapper=innerHTMLWrapper[parentTag];if(wrapper === undefined){return _DOMChangesClass.prototype.insertHTMLBefore.call(this,parent,nextSibling,html);}return fixInnerHTML(parent,wrapper,div,html,nextSibling);};return DOMChangesWithInnerHTMLFix;})(DOMChangesClass);}function treeConstruction(document,DOMTreeConstructionClass){if(!document)return DOMTreeConstructionClass;if(!shouldApplyFix(document)){return DOMTreeConstructionClass;}var div=document.createElement('div');return (function(_DOMTreeConstructionClass){babelHelpers.inherits(DOMTreeConstructionWithInnerHTMLFix,_DOMTreeConstructionClass);function DOMTreeConstructionWithInnerHTMLFix(){_DOMTreeConstructionClass.apply(this,arguments);}DOMTreeConstructionWithInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent,html,reference){if(html === null || html === ''){return _DOMTreeConstructionClass.prototype.insertHTMLBefore.call(this,parent,html,reference);}var parentTag=parent.tagName.toLowerCase();var wrapper=innerHTMLWrapper[parentTag];if(wrapper === undefined){return _DOMTreeConstructionClass.prototype.insertHTMLBefore.call(this,parent,html,reference);}return fixInnerHTML(parent,wrapper,div,html,reference);};return DOMTreeConstructionWithInnerHTMLFix;})(DOMTreeConstructionClass);}function fixInnerHTML(parent,wrapper,div,html,reference){var wrappedHtml=wrapper.before + html + wrapper.after;div.innerHTML = wrappedHtml;var parentNode=div;for(var i=0;i < wrapper.depth;i++) {parentNode = parentNode.childNodes[0];}var _moveNodesBefore=moveNodesBefore(parentNode,parent,reference);var first=_moveNodesBefore[0];var last=_moveNodesBefore[1];return new ConcreteBounds(parent,first,last);}function shouldApplyFix(document){var table=document.createElement('table');try{table.innerHTML = '<tbody></tbody>';}catch(e) {}finally {if(table.childNodes.length !== 0){ // It worked as expected, no fix required\nreturn false;}}return true;}var SVG_NAMESPACE$1='http://www.w3.org/2000/svg'; // Patch:    insertAdjacentHTML on SVG Fix\n// Browsers: Safari, IE, Edge, Firefox ~33-34\n// Reason:   insertAdjacentHTML does not exist on SVG elements in Safari. It is\n//           present but throws an exception on IE and Edge. Old versions of\n//           Firefox create nodes in the incorrect namespace.\n// Fix:      Since IE and Edge silently fail to create SVG nodes using\n//           innerHTML, and because Firefox may create nodes in the incorrect\n//           namespace using innerHTML on SVG elements, an HTML-string wrapping\n//           approach is used. A pre/post SVG tag is added to the string, then\n//           that whole string is added to a div. The created nodes are plucked\n//           out and applied to the target location on DOM.\nfunction domChanges$1(document,DOMChangesClass,svgNamespace){if(!document)return DOMChangesClass;if(!shouldApplyFix$1(document,svgNamespace)){return DOMChangesClass;}var div=document.createElement('div');return (function(_DOMChangesClass2){babelHelpers.inherits(DOMChangesWithSVGInnerHTMLFix,_DOMChangesClass2);function DOMChangesWithSVGInnerHTMLFix(){_DOMChangesClass2.apply(this,arguments);}DOMChangesWithSVGInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent,nextSibling,html){if(html === null || html === ''){return _DOMChangesClass2.prototype.insertHTMLBefore.call(this,parent,nextSibling,html);}if(parent.namespaceURI !== svgNamespace){return _DOMChangesClass2.prototype.insertHTMLBefore.call(this,parent,nextSibling,html);}return fixSVG(parent,div,html,nextSibling);};return DOMChangesWithSVGInnerHTMLFix;})(DOMChangesClass);}function treeConstruction$1(document,TreeConstructionClass,svgNamespace){if(!document)return TreeConstructionClass;if(!shouldApplyFix$1(document,svgNamespace)){return TreeConstructionClass;}var div=document.createElement('div');return (function(_TreeConstructionClass){babelHelpers.inherits(TreeConstructionWithSVGInnerHTMLFix,_TreeConstructionClass);function TreeConstructionWithSVGInnerHTMLFix(){_TreeConstructionClass.apply(this,arguments);}TreeConstructionWithSVGInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent,html,reference){if(html === null || html === ''){return _TreeConstructionClass.prototype.insertHTMLBefore.call(this,parent,html,reference);}if(parent.namespaceURI !== svgNamespace){return _TreeConstructionClass.prototype.insertHTMLBefore.call(this,parent,html,reference);}return fixSVG(parent,div,html,reference);};return TreeConstructionWithSVGInnerHTMLFix;})(TreeConstructionClass);}function fixSVG(parent,div,html,reference){ // IE, Edge: also do not correctly support using `innerHTML` on SVG\n// namespaced elements. So here a wrapper is used.\nvar wrappedHtml='<svg>' + html + '</svg>';div.innerHTML = wrappedHtml;var _moveNodesBefore2=moveNodesBefore(div.firstChild,parent,reference);var first=_moveNodesBefore2[0];var last=_moveNodesBefore2[1];return new ConcreteBounds(parent,first,last);}function shouldApplyFix$1(document,svgNamespace){var svg=document.createElementNS(svgNamespace,'svg');try{svg['insertAdjacentHTML']('beforeEnd','<circle></circle>');}catch(e) { // IE, Edge: Will throw, insertAdjacentHTML is unsupported on SVG\n// Safari: Will throw, insertAdjacentHTML is not present on SVG\n}finally { // FF: Old versions will create a node in the wrong namespace\nif(svg.childNodes.length === 1 && _glimmerUtil.unwrap(svg.firstChild).namespaceURI === SVG_NAMESPACE$1){ // The test worked as expected, no fix required\nreturn false;}return true;}} // Patch:    Adjacent text node merging fix\n// Browsers: IE, Edge, Firefox w/o inspector open\n// Reason:   These browsers will merge adjacent text nodes. For exmaple given\n//           <div>Hello</div> with div.insertAdjacentHTML(' world') browsers\n//           with proper behavior will populate div.childNodes with two items.\n//           These browsers will populate it with one merged node instead.\n// Fix:      Add these nodes to a wrapper element, then iterate the childNodes\n//           of that wrapper and move the nodes to their target location. Note\n//           that potential SVG bugs will have been handled before this fix.\n//           Note that this fix must only apply to the previous text node, as\n//           the base implementation of `insertHTMLBefore` already handles\n//           following text nodes correctly.\nfunction domChanges$2(document,DOMChangesClass){if(!document)return DOMChangesClass;if(!shouldApplyFix$2(document)){return DOMChangesClass;}return (function(_DOMChangesClass3){babelHelpers.inherits(DOMChangesWithTextNodeMergingFix,_DOMChangesClass3);function DOMChangesWithTextNodeMergingFix(document){_DOMChangesClass3.call(this,document);this.uselessComment = document.createComment('');}DOMChangesWithTextNodeMergingFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent,nextSibling,html){if(html === null){return _DOMChangesClass3.prototype.insertHTMLBefore.call(this,parent,nextSibling,html);}var didSetUselessComment=false;var nextPrevious=nextSibling?nextSibling.previousSibling:parent.lastChild;if(nextPrevious && nextPrevious instanceof Text){didSetUselessComment = true;parent.insertBefore(this.uselessComment,nextSibling);}var bounds=_DOMChangesClass3.prototype.insertHTMLBefore.call(this,parent,nextSibling,html);if(didSetUselessComment){parent.removeChild(this.uselessComment);}return bounds;};return DOMChangesWithTextNodeMergingFix;})(DOMChangesClass);}function treeConstruction$2(document,TreeConstructionClass){if(!document)return TreeConstructionClass;if(!shouldApplyFix$2(document)){return TreeConstructionClass;}return (function(_TreeConstructionClass2){babelHelpers.inherits(TreeConstructionWithTextNodeMergingFix,_TreeConstructionClass2);function TreeConstructionWithTextNodeMergingFix(document){_TreeConstructionClass2.call(this,document);this.uselessComment = this.createComment('');}TreeConstructionWithTextNodeMergingFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent,html,reference){if(html === null){return _TreeConstructionClass2.prototype.insertHTMLBefore.call(this,parent,html,reference);}var didSetUselessComment=false;var nextPrevious=reference?reference.previousSibling:parent.lastChild;if(nextPrevious && nextPrevious instanceof Text){didSetUselessComment = true;parent.insertBefore(this.uselessComment,reference);}var bounds=_TreeConstructionClass2.prototype.insertHTMLBefore.call(this,parent,html,reference);if(didSetUselessComment){parent.removeChild(this.uselessComment);}return bounds;};return TreeConstructionWithTextNodeMergingFix;})(TreeConstructionClass);}function shouldApplyFix$2(document){var mergingTextDiv=document.createElement('div');mergingTextDiv.innerHTML = 'first';mergingTextDiv.insertAdjacentHTML('beforeEnd','second');if(mergingTextDiv.childNodes.length === 2){ // It worked as expected, no fix required\nreturn false;}return true;}var SVG_NAMESPACE='http://www.w3.org/2000/svg'; // http://www.w3.org/TR/html/syntax.html#html-integration-point\nvar SVG_INTEGRATION_POINTS={foreignObject:1,desc:1,title:1}; // http://www.w3.org/TR/html/syntax.html#adjust-svg-attributes\n// TODO: Adjust SVG attributes\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n// TODO: Adjust SVG elements\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\nvar BLACKLIST_TABLE=Object.create(null);[\"b\",\"big\",\"blockquote\",\"body\",\"br\",\"center\",\"code\",\"dd\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"hr\",\"i\",\"img\",\"li\",\"listing\",\"main\",\"meta\",\"nobr\",\"ol\",\"p\",\"pre\",\"ruby\",\"s\",\"small\",\"span\",\"strong\",\"strike\",\"sub\",\"sup\",\"table\",\"tt\",\"u\",\"ul\",\"var\"].forEach(function(tag){return BLACKLIST_TABLE[tag] = 1;});var WHITESPACE=/[\\t-\\r \\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]/;var doc=typeof document === 'undefined'?null:document;function isWhitespace(string){return WHITESPACE.test(string);}function moveNodesBefore(source,target,nextSibling){var first=source.firstChild;var last=null;var current=first;while(current) {last = current;current = current.nextSibling;target.insertBefore(last,nextSibling);}return [first,last];}var DOM;(function(DOM){var TreeConstruction=(function(){function TreeConstruction(document){this.document = document;this.setupUselessElement();}TreeConstruction.prototype.setupUselessElement = function setupUselessElement(){this.uselessElement = this.document.createElement('div');};TreeConstruction.prototype.createElement = function createElement(tag,context){var isElementInSVGNamespace=undefined,isHTMLIntegrationPoint=undefined;if(context){isElementInSVGNamespace = context.namespaceURI === SVG_NAMESPACE || tag === 'svg';isHTMLIntegrationPoint = SVG_INTEGRATION_POINTS[context.tagName];}else {isElementInSVGNamespace = tag === 'svg';isHTMLIntegrationPoint = false;}if(isElementInSVGNamespace && !isHTMLIntegrationPoint){ // FIXME: This does not properly handle <font> with color, face, or\n// size attributes, which is also disallowed by the spec. We should fix\n// this.\nif(BLACKLIST_TABLE[tag]){throw new Error('Cannot create a ' + tag + ' inside an SVG context');}return this.document.createElementNS(SVG_NAMESPACE,tag);}else {return this.document.createElement(tag);}};TreeConstruction.prototype.createElementNS = function createElementNS(namespace,tag){return this.document.createElementNS(namespace,tag);};TreeConstruction.prototype.setAttribute = function setAttribute(element,name,value,namespace){if(namespace){element.setAttributeNS(namespace,name,value);}else {element.setAttribute(name,value);}};TreeConstruction.prototype.createTextNode = function createTextNode(text){return this.document.createTextNode(text);};TreeConstruction.prototype.createComment = function createComment(data){return this.document.createComment(data);};TreeConstruction.prototype.insertBefore = function insertBefore(parent,node,reference){parent.insertBefore(node,reference);};TreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent,html,reference){return _insertHTMLBefore(this.uselessElement,parent,reference,html);};return TreeConstruction;})();DOM.TreeConstruction = TreeConstruction;var appliedTreeContruction=TreeConstruction;appliedTreeContruction = treeConstruction$2(doc,appliedTreeContruction);appliedTreeContruction = treeConstruction(doc,appliedTreeContruction);appliedTreeContruction = treeConstruction$1(doc,appliedTreeContruction,SVG_NAMESPACE);DOM.DOMTreeConstruction = appliedTreeContruction;})(DOM || (DOM = {}));var DOMChanges=(function(){function DOMChanges(document){this.document = document;this.namespace = null;this.uselessElement = this.document.createElement('div');}DOMChanges.prototype.setAttribute = function setAttribute(element,name,value){element.setAttribute(name,value);};DOMChanges.prototype.setAttributeNS = function setAttributeNS(element,namespace,name,value){element.setAttributeNS(namespace,name,value);};DOMChanges.prototype.removeAttribute = function removeAttribute(element,name){element.removeAttribute(name);};DOMChanges.prototype.removeAttributeNS = function removeAttributeNS(element,namespace,name){element.removeAttributeNS(namespace,name);};DOMChanges.prototype.createTextNode = function createTextNode(text){return this.document.createTextNode(text);};DOMChanges.prototype.createComment = function createComment(data){return this.document.createComment(data);};DOMChanges.prototype.createElement = function createElement(tag,context){var isElementInSVGNamespace=undefined,isHTMLIntegrationPoint=undefined;if(context){isElementInSVGNamespace = context.namespaceURI === SVG_NAMESPACE || tag === 'svg';isHTMLIntegrationPoint = SVG_INTEGRATION_POINTS[context.tagName];}else {isElementInSVGNamespace = tag === 'svg';isHTMLIntegrationPoint = false;}if(isElementInSVGNamespace && !isHTMLIntegrationPoint){ // FIXME: This does not properly handle <font> with color, face, or\n// size attributes, which is also disallowed by the spec. We should fix\n// this.\nif(BLACKLIST_TABLE[tag]){throw new Error('Cannot create a ' + tag + ' inside an SVG context');}return this.document.createElementNS(SVG_NAMESPACE,tag);}else {return this.document.createElement(tag);}};DOMChanges.prototype.insertHTMLBefore = function insertHTMLBefore(_parent,nextSibling,html){return _insertHTMLBefore(this.uselessElement,_parent,nextSibling,html);};DOMChanges.prototype.insertNodeBefore = function insertNodeBefore(parent,node,reference){if(isDocumentFragment(node)){var firstChild=node.firstChild;var lastChild=node.lastChild;this.insertBefore(parent,node,reference);return new ConcreteBounds(parent,firstChild,lastChild);}else {this.insertBefore(parent,node,reference);return new SingleNodeBounds(parent,node);}};DOMChanges.prototype.insertTextBefore = function insertTextBefore(parent,nextSibling,text){var textNode=this.createTextNode(text);this.insertBefore(parent,textNode,nextSibling);return textNode;};DOMChanges.prototype.insertBefore = function insertBefore(element,node,reference){element.insertBefore(node,reference);};DOMChanges.prototype.insertAfter = function insertAfter(element,node,reference){this.insertBefore(element,node,reference.nextSibling);};return DOMChanges;})();function _insertHTMLBefore(_useless,_parent,_nextSibling,html){ // TypeScript vendored an old version of the DOM spec where `insertAdjacentHTML`\n// only exists on `HTMLElement` but not on `Element`. We actually work with the\n// newer version of the DOM API here (and monkey-patch this method in `./compat`\n// when we detect older browsers). This is a hack to work around this limitation.\nvar parent=_parent;var useless=_useless;var nextSibling=_nextSibling;var prev=nextSibling?nextSibling.previousSibling:parent.lastChild;var last=undefined;if(html === null || html === ''){return new ConcreteBounds(parent,null,null);}if(nextSibling === null){parent.insertAdjacentHTML('beforeEnd',html);last = parent.lastChild;}else if(nextSibling instanceof HTMLElement){nextSibling.insertAdjacentHTML('beforeBegin',html);last = nextSibling.previousSibling;}else { // Non-element nodes do not support insertAdjacentHTML, so add an\n// element and call it on that element. Then remove the element.\n//\n// This also protects Edge, IE and Firefox w/o the inspector open\n// from merging adjacent text nodes. See ./compat/text-node-merging-fix.ts\nparent.insertBefore(useless,nextSibling);useless.insertAdjacentHTML('beforeBegin',html);last = useless.previousSibling;parent.removeChild(useless);}var first=prev?prev.nextSibling:parent.firstChild;return new ConcreteBounds(parent,first,last);}function isDocumentFragment(node){return node.nodeType === Node.DOCUMENT_FRAGMENT_NODE;}var helper=DOMChanges;helper = domChanges$2(doc,helper);helper = domChanges(doc,helper);helper = domChanges$1(doc,helper,SVG_NAMESPACE);var helper$1=helper;var DOMTreeConstruction=DOM.DOMTreeConstruction;function defaultManagers(element,attr,_isTrusting,_namespace){var tagName=element.tagName;var isSVG=element.namespaceURI === SVG_NAMESPACE;if(isSVG){return defaultAttributeManagers(tagName,attr);}var _normalizeProperty=normalizeProperty(element,attr);var type=_normalizeProperty.type;var normalized=_normalizeProperty.normalized;if(type === 'attr'){return defaultAttributeManagers(tagName,normalized);}else {return defaultPropertyManagers(tagName,normalized);}}function defaultPropertyManagers(tagName,attr){if(requiresSanitization(tagName,attr)){return new SafePropertyManager(attr);}if(isUserInputValue(tagName,attr)){return INPUT_VALUE_PROPERTY_MANAGER;}if(isOptionSelected(tagName,attr)){return OPTION_SELECTED_MANAGER;}return new PropertyManager(attr);}function defaultAttributeManagers(tagName,attr){if(requiresSanitization(tagName,attr)){return new SafeAttributeManager(attr);}return new AttributeManager(attr);}function readDOMAttr(element,attr){var isSVG=element.namespaceURI === SVG_NAMESPACE;var _normalizeProperty2=normalizeProperty(element,attr);var type=_normalizeProperty2.type;var normalized=_normalizeProperty2.normalized;if(isSVG){return element.getAttribute(normalized);}if(type === 'attr'){return element.getAttribute(normalized);}{return element[normalized];}};var AttributeManager=(function(){function AttributeManager(attr){this.attr = attr;}AttributeManager.prototype.setAttribute = function setAttribute(env,element,value,namespace){var dom=env.getAppendOperations();var normalizedValue=normalizeAttributeValue(value);if(!isAttrRemovalValue(normalizedValue)){dom.setAttribute(element,this.attr,normalizedValue,namespace);}};AttributeManager.prototype.updateAttribute = function updateAttribute(env,element,value,namespace){if(value === null || value === undefined || value === false){if(namespace){env.getDOM().removeAttributeNS(element,namespace,this.attr);}else {env.getDOM().removeAttribute(element,this.attr);}}else {this.setAttribute(env,element,value);}};return AttributeManager;})();;var PropertyManager=(function(_AttributeManager){babelHelpers.inherits(PropertyManager,_AttributeManager);function PropertyManager(){_AttributeManager.apply(this,arguments);}PropertyManager.prototype.setAttribute = function setAttribute(_env,element,value,_namespace){if(!isAttrRemovalValue(value)){element[this.attr] = value;}};PropertyManager.prototype.removeAttribute = function removeAttribute(env,element,namespace){ // TODO this sucks but to preserve properties first and to meet current\n// semantics we must do this.\nvar attr=this.attr;if(namespace){env.getDOM().removeAttributeNS(element,namespace,attr);}else {env.getDOM().removeAttribute(element,attr);}};PropertyManager.prototype.updateAttribute = function updateAttribute(env,element,value,namespace){ // ensure the property is always updated\nelement[this.attr] = value;if(isAttrRemovalValue(value)){this.removeAttribute(env,element,namespace);}};return PropertyManager;})(AttributeManager);;function normalizeAttributeValue(value){if(value === false || value === undefined || value === null){return null;}if(value === true){return '';} // onclick function etc in SSR\nif(typeof value === 'function'){return null;}return String(value);}function isAttrRemovalValue(value){return value === null || value === undefined;}var SafePropertyManager=(function(_PropertyManager){babelHelpers.inherits(SafePropertyManager,_PropertyManager);function SafePropertyManager(){_PropertyManager.apply(this,arguments);}SafePropertyManager.prototype.setAttribute = function setAttribute(env,element,value){_PropertyManager.prototype.setAttribute.call(this,env,element,sanitizeAttributeValue(env,element,this.attr,value));};SafePropertyManager.prototype.updateAttribute = function updateAttribute(env,element,value){_PropertyManager.prototype.updateAttribute.call(this,env,element,sanitizeAttributeValue(env,element,this.attr,value));};return SafePropertyManager;})(PropertyManager);function isUserInputValue(tagName,attribute){return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';}var InputValuePropertyManager=(function(_AttributeManager2){babelHelpers.inherits(InputValuePropertyManager,_AttributeManager2);function InputValuePropertyManager(){_AttributeManager2.apply(this,arguments);}InputValuePropertyManager.prototype.setAttribute = function setAttribute(_env,element,value){var input=element;input.value = normalizeTextValue(value);};InputValuePropertyManager.prototype.updateAttribute = function updateAttribute(_env,element,value){var input=element;var currentValue=input.value;var normalizedValue=normalizeTextValue(value);if(currentValue !== normalizedValue){input.value = normalizedValue;}};return InputValuePropertyManager;})(AttributeManager);var INPUT_VALUE_PROPERTY_MANAGER=new InputValuePropertyManager('value');function isOptionSelected(tagName,attribute){return tagName === 'OPTION' && attribute === 'selected';}var OptionSelectedManager=(function(_PropertyManager2){babelHelpers.inherits(OptionSelectedManager,_PropertyManager2);function OptionSelectedManager(){_PropertyManager2.apply(this,arguments);}OptionSelectedManager.prototype.setAttribute = function setAttribute(_env,element,value){if(value !== null && value !== undefined && value !== false){var option=element;option.selected = true;}};OptionSelectedManager.prototype.updateAttribute = function updateAttribute(_env,element,value){var option=element;if(value){option.selected = true;}else {option.selected = false;}};return OptionSelectedManager;})(PropertyManager);var OPTION_SELECTED_MANAGER=new OptionSelectedManager('selected');var SafeAttributeManager=(function(_AttributeManager3){babelHelpers.inherits(SafeAttributeManager,_AttributeManager3);function SafeAttributeManager(){_AttributeManager3.apply(this,arguments);}SafeAttributeManager.prototype.setAttribute = function setAttribute(env,element,value){_AttributeManager3.prototype.setAttribute.call(this,env,element,sanitizeAttributeValue(env,element,this.attr,value));};SafeAttributeManager.prototype.updateAttribute = function updateAttribute(env,element,value,_namespace){_AttributeManager3.prototype.updateAttribute.call(this,env,element,sanitizeAttributeValue(env,element,this.attr,value));};return SafeAttributeManager;})(AttributeManager);var Scope=(function(){function Scope(references){var callerScope=arguments.length <= 1 || arguments[1] === undefined?null:arguments[1];this.callerScope = null;this.slots = references;this.callerScope = callerScope;}Scope.root = function root(self){var size=arguments.length <= 1 || arguments[1] === undefined?0:arguments[1];var refs=new Array(size + 1);for(var i=0;i <= size;i++) {refs[i] = UNDEFINED_REFERENCE;}return new Scope(refs).init({self:self});};Scope.prototype.init = function init(_ref27){var self=_ref27.self;this.slots[0] = self;return this;};Scope.prototype.getSelf = function getSelf(){return this.slots[0];};Scope.prototype.getSymbol = function getSymbol(symbol){return this.slots[symbol];};Scope.prototype.getBlock = function getBlock(symbol){return this.slots[symbol];};Scope.prototype.getPartialArgs = function getPartialArgs(symbol){return this.slots[symbol];};Scope.prototype.bindSymbol = function bindSymbol(symbol,value){this.slots[symbol] = value;};Scope.prototype.bindBlock = function bindBlock(symbol,value){this.slots[symbol] = value;};Scope.prototype.bindPartialArgs = function bindPartialArgs(symbol,value){this.slots[symbol] = value;};Scope.prototype.bindCallerScope = function bindCallerScope(scope){this.callerScope = scope;};Scope.prototype.getCallerScope = function getCallerScope(){return this.callerScope;};Scope.prototype.child = function child(){return new Scope(this.slots.slice(),this.callerScope);};return Scope;})();var Transaction=(function(){function Transaction(){this.scheduledInstallManagers = [];this.scheduledInstallModifiers = [];this.scheduledUpdateModifierManagers = [];this.scheduledUpdateModifiers = [];this.createdComponents = [];this.createdManagers = [];this.updatedComponents = [];this.updatedManagers = [];this.destructors = [];}Transaction.prototype.didCreate = function didCreate(component,manager){this.createdComponents.push(component);this.createdManagers.push(manager);};Transaction.prototype.didUpdate = function didUpdate(component,manager){this.updatedComponents.push(component);this.updatedManagers.push(manager);};Transaction.prototype.scheduleInstallModifier = function scheduleInstallModifier(modifier,manager){this.scheduledInstallManagers.push(manager);this.scheduledInstallModifiers.push(modifier);};Transaction.prototype.scheduleUpdateModifier = function scheduleUpdateModifier(modifier,manager){this.scheduledUpdateModifierManagers.push(manager);this.scheduledUpdateModifiers.push(modifier);};Transaction.prototype.didDestroy = function didDestroy(d){this.destructors.push(d);};Transaction.prototype.commit = function commit(){var createdComponents=this.createdComponents;var createdManagers=this.createdManagers;for(var i=0;i < createdComponents.length;i++) {var component=createdComponents[i];var manager=createdManagers[i];manager.didCreate(component);}var updatedComponents=this.updatedComponents;var updatedManagers=this.updatedManagers;for(var i=0;i < updatedComponents.length;i++) {var component=updatedComponents[i];var manager=updatedManagers[i];manager.didUpdate(component);}var destructors=this.destructors;for(var i=0;i < destructors.length;i++) {destructors[i].destroy();}var scheduledInstallManagers=this.scheduledInstallManagers;var scheduledInstallModifiers=this.scheduledInstallModifiers;for(var i=0;i < scheduledInstallManagers.length;i++) {var manager=scheduledInstallManagers[i];var modifier=scheduledInstallModifiers[i];manager.install(modifier);}var scheduledUpdateModifierManagers=this.scheduledUpdateModifierManagers;var scheduledUpdateModifiers=this.scheduledUpdateModifiers;for(var i=0;i < scheduledUpdateModifierManagers.length;i++) {var manager=scheduledUpdateModifierManagers[i];var modifier=scheduledUpdateModifiers[i];manager.update(modifier);}};return Transaction;})();var Opcode=(function(){function Opcode(array){this.array = array;this.offset = 0;}babelHelpers.createClass(Opcode,[{key:'type',get:function(){return this.array[this.offset];}},{key:'op1',get:function(){return this.array[this.offset + 1];}},{key:'op2',get:function(){return this.array[this.offset + 2];}},{key:'op3',get:function(){return this.array[this.offset + 3];}}]);return Opcode;})();var Program=(function(){function Program(){this.opcodes = [];this._offset = 0;this._opcode = new Opcode(this.opcodes);}Program.prototype.opcode = function opcode(offset){this._opcode.offset = offset;return this._opcode;};Program.prototype.set = function set(pos,type){var op1=arguments.length <= 2 || arguments[2] === undefined?0:arguments[2];var op2=arguments.length <= 3 || arguments[3] === undefined?0:arguments[3];var op3=arguments.length <= 4 || arguments[4] === undefined?0:arguments[4];this.opcodes[pos] = type;this.opcodes[pos + 1] = op1;this.opcodes[pos + 2] = op2;this.opcodes[pos + 3] = op3;};Program.prototype.push = function push(type){var op1=arguments.length <= 1 || arguments[1] === undefined?0:arguments[1];var op2=arguments.length <= 2 || arguments[2] === undefined?0:arguments[2];var op3=arguments.length <= 3 || arguments[3] === undefined?0:arguments[3];var offset=this._offset;this.opcodes[this._offset++] = type;this.opcodes[this._offset++] = op1;this.opcodes[this._offset++] = op2;this.opcodes[this._offset++] = op3;return offset;};babelHelpers.createClass(Program,[{key:'next',get:function(){return this._offset;}},{key:'current',get:function(){return this._offset - 4;}}]);return Program;})();var Environment=(function(){function Environment(_ref28){var appendOperations=_ref28.appendOperations;var updateOperations=_ref28.updateOperations;this._macros = null;this._transaction = null;this.constants = new Constants();this.program = new Program();this.appendOperations = appendOperations;this.updateOperations = updateOperations;}Environment.prototype.toConditionalReference = function toConditionalReference(reference){return new ConditionalReference(reference);};Environment.prototype.getAppendOperations = function getAppendOperations(){return this.appendOperations;};Environment.prototype.getDOM = function getDOM(){return this.updateOperations;};Environment.prototype.getIdentity = function getIdentity(object){return _glimmerUtil.ensureGuid(object) + '';};Environment.prototype.begin = function begin(){_glimmerUtil.assert(!this._transaction,'Cannot start a nested transaction');this._transaction = new Transaction();};Environment.prototype.didCreate = function didCreate(component,manager){this.transaction.didCreate(component,manager);};Environment.prototype.didUpdate = function didUpdate(component,manager){this.transaction.didUpdate(component,manager);};Environment.prototype.scheduleInstallModifier = function scheduleInstallModifier(modifier,manager){this.transaction.scheduleInstallModifier(modifier,manager);};Environment.prototype.scheduleUpdateModifier = function scheduleUpdateModifier(modifier,manager){this.transaction.scheduleUpdateModifier(modifier,manager);};Environment.prototype.didDestroy = function didDestroy(d){this.transaction.didDestroy(d);};Environment.prototype.commit = function commit(){this.transaction.commit();this._transaction = null;};Environment.prototype.attributeFor = function attributeFor(element,attr,isTrusting,namespace){return defaultManagers(element,attr,isTrusting,namespace === undefined?null:namespace);};Environment.prototype.macros = function macros(){var macros=this._macros;if(!macros){this._macros = macros = populateBuiltins();}return macros;};babelHelpers.createClass(Environment,[{key:'transaction',get:function(){return _glimmerUtil.expect(this._transaction,'must be in a transaction');}}]);return Environment;})();var RenderResult=(function(){function RenderResult(env,updating,bounds){this.env = env;this.updating = updating;this.bounds = bounds;}RenderResult.prototype.rerender = function rerender(){var _ref29=arguments.length <= 0 || arguments[0] === undefined?{alwaysRevalidate:false}:arguments[0];var _ref29$alwaysRevalidate=_ref29.alwaysRevalidate;var alwaysRevalidate=_ref29$alwaysRevalidate === undefined?false:_ref29$alwaysRevalidate;var env=this.env;var updating=this.updating;var vm=new UpdatingVM(env,{alwaysRevalidate:alwaysRevalidate});vm.execute(updating,this);};RenderResult.prototype.parentElement = function parentElement(){return this.bounds.parentElement();};RenderResult.prototype.firstNode = function firstNode(){return this.bounds.firstNode();};RenderResult.prototype.lastNode = function lastNode(){return this.bounds.lastNode();};RenderResult.prototype.opcodes = function opcodes(){return this.updating;};RenderResult.prototype.handleException = function handleException(){throw \"this should never happen\";};RenderResult.prototype.destroy = function destroy(){this.bounds.destroy();clear(this.bounds);};return RenderResult;})();var CapturedFrame=function CapturedFrame(operand,args,condition){this.operand = operand;this.args = args;this.condition = condition;};var Frame=(function(){function Frame(start,end){var component=arguments.length <= 2 || arguments[2] === undefined?null:arguments[2];var manager=arguments.length <= 3 || arguments[3] === undefined?null:arguments[3];var shadow=arguments.length <= 4 || arguments[4] === undefined?null:arguments[4];this.start = start;this.end = end;this.component = component;this.manager = manager;this.shadow = shadow;this.operand = null;this.immediate = null;this.args = null;this.callerScope = null;this.blocks = null;this.condition = null;this.iterator = null;this.key = null;this.ip = start;}Frame.prototype.capture = function capture(){return new CapturedFrame(this.operand,this.args,this.condition);};Frame.prototype.restore = function restore(frame){this.operand = frame.operand;this.args = frame.args;this.condition = frame.condition;};return Frame;})();var FrameStack=(function(){function FrameStack(){this.frames = [];this.frame = -1;}FrameStack.prototype.push = function push(start,end){var component=arguments.length <= 2 || arguments[2] === undefined?null:arguments[2];var manager=arguments.length <= 3 || arguments[3] === undefined?null:arguments[3];var shadow=arguments.length <= 4 || arguments[4] === undefined?null:arguments[4];var pos=++this.frame;if(pos < this.frames.length){var frame=this.frames[pos];frame.start = frame.ip = start;frame.end = end;frame.component = component;frame.manager = manager;frame.shadow = shadow;frame.operand = null;frame.immediate = null;frame.args = null;frame.callerScope = null;frame.blocks = null;frame.condition = null;frame.iterator = null;frame.key = null;}else {this.frames[pos] = new Frame(start,end,component,manager,shadow);}};FrameStack.prototype.pop = function pop(){this.frame--;};FrameStack.prototype.capture = function capture(){return this.currentFrame.capture();};FrameStack.prototype.restore = function restore(frame){this.currentFrame.restore(frame);};FrameStack.prototype.getStart = function getStart(){return this.currentFrame.start;};FrameStack.prototype.getEnd = function getEnd(){return this.currentFrame.end;};FrameStack.prototype.getCurrent = function getCurrent(){return this.currentFrame.ip;};FrameStack.prototype.setCurrent = function setCurrent(ip){return this.currentFrame.ip = ip;};FrameStack.prototype.getOperand = function getOperand(){return _glimmerUtil.unwrap(this.currentFrame.operand);};FrameStack.prototype.setOperand = function setOperand(operand){return this.currentFrame.operand = operand;};FrameStack.prototype.getImmediate = function getImmediate(){return this.currentFrame.immediate;};FrameStack.prototype.setImmediate = function setImmediate(value){return this.currentFrame.immediate = value;}; // FIXME: These options are required in practice by the existing code, but\n// figure out why.\nFrameStack.prototype.getArgs = function getArgs(){return this.currentFrame.args;};FrameStack.prototype.setArgs = function setArgs(args){return this.currentFrame.args = args;};FrameStack.prototype.getCondition = function getCondition(){return _glimmerUtil.unwrap(this.currentFrame.condition);};FrameStack.prototype.setCondition = function setCondition(condition){return this.currentFrame.condition = condition;};FrameStack.prototype.getIterator = function getIterator(){return _glimmerUtil.unwrap(this.currentFrame.iterator);};FrameStack.prototype.setIterator = function setIterator(iterator){return this.currentFrame.iterator = iterator;};FrameStack.prototype.getKey = function getKey(){return this.currentFrame.key;};FrameStack.prototype.setKey = function setKey(key){return this.currentFrame.key = key;};FrameStack.prototype.getBlocks = function getBlocks(){return _glimmerUtil.unwrap(this.currentFrame.blocks);};FrameStack.prototype.setBlocks = function setBlocks(blocks){return this.currentFrame.blocks = blocks;};FrameStack.prototype.getCallerScope = function getCallerScope(){return _glimmerUtil.unwrap(this.currentFrame.callerScope);};FrameStack.prototype.setCallerScope = function setCallerScope(callerScope){return this.currentFrame.callerScope = callerScope;};FrameStack.prototype.getComponent = function getComponent(){return _glimmerUtil.unwrap(this.currentFrame.component);};FrameStack.prototype.getManager = function getManager(){return _glimmerUtil.unwrap(this.currentFrame.manager);};FrameStack.prototype.getShadow = function getShadow(){return this.currentFrame.shadow;};FrameStack.prototype.goto = function goto(ip){this.setCurrent(ip);};FrameStack.prototype.nextStatement = function nextStatement(env){while(this.frame !== -1) {var frame=this.frames[this.frame];var ip=frame.ip;var end=frame.end;if(ip < end){var program=env.program;frame.ip += 4;return program.opcode(ip);}else {this.pop();}}return null;};babelHelpers.createClass(FrameStack,[{key:'currentFrame',get:function(){return this.frames[this.frame];}}]);return FrameStack;})();var VM=(function(){function VM(env,scope,dynamicScope,elementStack){this.env = env;this.elementStack = elementStack;this.dynamicScopeStack = new _glimmerUtil.Stack();this.scopeStack = new _glimmerUtil.Stack();this.updatingOpcodeStack = new _glimmerUtil.Stack();this.cacheGroups = new _glimmerUtil.Stack();this.listBlockStack = new _glimmerUtil.Stack();this.frame = new FrameStack();this.env = env;this.constants = env.constants;this.elementStack = elementStack;this.scopeStack.push(scope);this.dynamicScopeStack.push(dynamicScope);}VM.initial = function initial(env,self,dynamicScope,elementStack,compiledProgram){var size=compiledProgram.symbols;var start=compiledProgram.start;var end=compiledProgram.end;var scope=Scope.root(self,size);var vm=new VM(env,scope,dynamicScope,elementStack);vm.prepare(start,end);return vm;};VM.prototype.capture = function capture(){return {env:this.env,scope:this.scope(),dynamicScope:this.dynamicScope(),frame:this.frame.capture()};};VM.prototype.goto = function goto(ip){this.frame.goto(ip);};VM.prototype.beginCacheGroup = function beginCacheGroup(){this.cacheGroups.push(this.updating().tail());};VM.prototype.commitCacheGroup = function commitCacheGroup(){ //        JumpIfNotModified(END)\n//        (head)\n//        (....)\n//        (tail)\n//        DidModify\n// END:   Noop\nvar END=new LabelOpcode(\"END\");var opcodes=this.updating();var marker=this.cacheGroups.pop();var head=marker?opcodes.nextNode(marker):opcodes.head();var tail=opcodes.tail();var tag=_glimmerReference.combineSlice(new _glimmerUtil.ListSlice(head,tail));var guard=new JumpIfNotModifiedOpcode(tag,END);opcodes.insertBefore(guard,head);opcodes.append(new DidModifyOpcode(guard));opcodes.append(END);};VM.prototype.enter = function enter(start,end){var updating=new _glimmerUtil.LinkedList();var tracker=this.stack().pushUpdatableBlock();var state=this.capture();var tryOpcode=new TryOpcode(start,end,state,tracker,updating);this.didEnter(tryOpcode,updating);};VM.prototype.enterWithKey = function enterWithKey(key,start,end){var updating=new _glimmerUtil.LinkedList();var tracker=this.stack().pushUpdatableBlock();var state=this.capture();var tryOpcode=new TryOpcode(start,end,state,tracker,updating);this.listBlock().map[key] = tryOpcode;this.didEnter(tryOpcode,updating);};VM.prototype.enterList = function enterList(start,end){var updating=new _glimmerUtil.LinkedList();var tracker=this.stack().pushBlockList(updating);var state=this.capture();var artifacts=this.frame.getIterator().artifacts;var opcode=new ListBlockOpcode(start,end,state,tracker,updating,artifacts);this.listBlockStack.push(opcode);this.didEnter(opcode,updating);};VM.prototype.didEnter = function didEnter(opcode,updating){this.updateWith(opcode);this.updatingOpcodeStack.push(updating);};VM.prototype.exit = function exit(){this.stack().popBlock();this.updatingOpcodeStack.pop();var parent=this.updating().tail();parent.didInitializeChildren();};VM.prototype.exitList = function exitList(){this.exit();this.listBlockStack.pop();};VM.prototype.updateWith = function updateWith(opcode){this.updating().append(opcode);};VM.prototype.listBlock = function listBlock(){return _glimmerUtil.expect(this.listBlockStack.current,'expected a list block');};VM.prototype.updating = function updating(){return _glimmerUtil.expect(this.updatingOpcodeStack.current,'expected updating opcode on the updating opcode stack');};VM.prototype.stack = function stack(){return this.elementStack;};VM.prototype.scope = function scope(){return _glimmerUtil.expect(this.scopeStack.current,'expected scope on the scope stack');};VM.prototype.dynamicScope = function dynamicScope(){return _glimmerUtil.expect(this.dynamicScopeStack.current,'expected dynamic scope on the dynamic scope stack');};VM.prototype.pushFrame = function pushFrame(block,args,callerScope){this.frame.push(block.start,block.end);if(args)this.frame.setArgs(args);if(args && args.blocks)this.frame.setBlocks(args.blocks);if(callerScope)this.frame.setCallerScope(callerScope);};VM.prototype.pushComponentFrame = function pushComponentFrame(layout,args,callerScope,component,manager,shadow){this.frame.push(layout.start,layout.end,component,manager,shadow);if(args)this.frame.setArgs(args);if(args && args.blocks)this.frame.setBlocks(args.blocks);if(callerScope)this.frame.setCallerScope(callerScope);};VM.prototype.pushEvalFrame = function pushEvalFrame(start,end){this.frame.push(start,end);};VM.prototype.pushChildScope = function pushChildScope(){this.scopeStack.push(this.scope().child());};VM.prototype.pushCallerScope = function pushCallerScope(){this.scopeStack.push(_glimmerUtil.expect(this.scope().getCallerScope(),'pushCallerScope is called when a caller scope is present'));};VM.prototype.pushDynamicScope = function pushDynamicScope(){var child=this.dynamicScope().child();this.dynamicScopeStack.push(child);return child;};VM.prototype.pushRootScope = function pushRootScope(self,size){var scope=Scope.root(self,size);this.scopeStack.push(scope);return scope;};VM.prototype.popScope = function popScope(){this.scopeStack.pop();};VM.prototype.popDynamicScope = function popDynamicScope(){this.dynamicScopeStack.pop();};VM.prototype.newDestroyable = function newDestroyable(d){this.stack().newDestroyable(d);}; /// SCOPE HELPERS\nVM.prototype.getSelf = function getSelf(){return this.scope().getSelf();};VM.prototype.referenceForSymbol = function referenceForSymbol(symbol){return this.scope().getSymbol(symbol);};VM.prototype.getArgs = function getArgs(){return this.frame.getArgs();}; /// EXECUTION\nVM.prototype.resume = function resume(start,end,frame){return this.execute(start,end,function(vm){return vm.frame.restore(frame);});};VM.prototype.execute = function execute(start,end,initialize){this.prepare(start,end,initialize);var result=undefined;while(true) {result = this.next();if(result.done)break;}return result.value;};VM.prototype.prepare = function prepare(start,end,initialize){var elementStack=this.elementStack;var frame=this.frame;var updatingOpcodeStack=this.updatingOpcodeStack;elementStack.pushSimpleBlock();updatingOpcodeStack.push(new _glimmerUtil.LinkedList());frame.push(start,end);if(initialize)initialize(this);};VM.prototype.next = function next(){var frame=this.frame;var env=this.env;var updatingOpcodeStack=this.updatingOpcodeStack;var elementStack=this.elementStack;var opcode=undefined;if(opcode = frame.nextStatement(env)){APPEND_OPCODES.evaluate(this,opcode);return {done:false,value:null};}return {done:true,value:new RenderResult(env,_glimmerUtil.expect(updatingOpcodeStack.pop(),'there should be a final updating opcode stack'),elementStack.popBlock())};};VM.prototype.evaluateOpcode = function evaluateOpcode(opcode){APPEND_OPCODES.evaluate(this,opcode);}; // Make sure you have opcodes that push and pop a scope around this opcode\n// if you need to change the scope.\nVM.prototype.invokeBlock = function invokeBlock(block,args){var compiled=block.compile(this.env);this.pushFrame(compiled,args);};VM.prototype.invokePartial = function invokePartial(block){var compiled=block.compile(this.env);this.pushFrame(compiled);};VM.prototype.invokeLayout = function invokeLayout(args,layout,callerScope,component,manager,shadow){this.pushComponentFrame(layout,args,callerScope,component,manager,shadow);};VM.prototype.evaluateOperand = function evaluateOperand(expr){this.frame.setOperand(expr.evaluate(this));};VM.prototype.evaluateArgs = function evaluateArgs(args){var evaledArgs=this.frame.setArgs(args.evaluate(this));this.frame.setOperand(evaledArgs.positional.at(0));};VM.prototype.bindPositionalArgs = function bindPositionalArgs(symbols){var args=_glimmerUtil.expect(this.frame.getArgs(),'bindPositionalArgs assumes a previous setArgs');var positional=args.positional;var scope=this.scope();for(var i=0;i < symbols.length;i++) {scope.bindSymbol(symbols[i],positional.at(i));}};VM.prototype.bindNamedArgs = function bindNamedArgs(names,symbols){var args=_glimmerUtil.expect(this.frame.getArgs(),'bindNamedArgs assumes a previous setArgs');var scope=this.scope();var named=args.named;for(var i=0;i < names.length;i++) {var _name2=this.constants.getString(names[i]);scope.bindSymbol(symbols[i],named.get(_name2));}};VM.prototype.bindBlocks = function bindBlocks(names,symbols){var blocks=this.frame.getBlocks();var scope=this.scope();for(var i=0;i < names.length;i++) {var _name3=this.constants.getString(names[i]);scope.bindBlock(symbols[i],blocks && blocks[_name3] || null);}};VM.prototype.bindPartialArgs = function bindPartialArgs(symbol){var args=_glimmerUtil.expect(this.frame.getArgs(),'bindPartialArgs assumes a previous setArgs');var scope=this.scope();_glimmerUtil.assert(args,\"Cannot bind named args\");scope.bindPartialArgs(symbol,args);};VM.prototype.bindCallerScope = function bindCallerScope(){var callerScope=this.frame.getCallerScope();var scope=this.scope();_glimmerUtil.assert(callerScope,\"Cannot bind caller scope\");scope.bindCallerScope(callerScope);};VM.prototype.bindDynamicScope = function bindDynamicScope(names){var args=_glimmerUtil.expect(this.frame.getArgs(),'bindDynamicScope assumes a previous setArgs');var scope=this.dynamicScope();_glimmerUtil.assert(args,\"Cannot bind dynamic scope\");for(var i=0;i < names.length;i++) {var _name4=this.constants.getString(names[i]);scope.set(_name4,args.named.get(_name4));}};return VM;})();var UpdatingVM=(function(){function UpdatingVM(env,_ref30){var _ref30$alwaysRevalidate=_ref30.alwaysRevalidate;var alwaysRevalidate=_ref30$alwaysRevalidate === undefined?false:_ref30$alwaysRevalidate;this.frameStack = new _glimmerUtil.Stack();this.env = env;this.constants = env.constants;this.dom = env.getDOM();this.alwaysRevalidate = alwaysRevalidate;}UpdatingVM.prototype.execute = function execute(opcodes,handler){var frameStack=this.frameStack;this.try(opcodes,handler);while(true) {if(frameStack.isEmpty())break;var opcode=this.frame.nextStatement();if(opcode === null){this.frameStack.pop();continue;}opcode.evaluate(this);}};UpdatingVM.prototype.goto = function goto(op){this.frame.goto(op);};UpdatingVM.prototype.try = function _try(ops,handler){this.frameStack.push(new UpdatingVMFrame(this,ops,handler));};UpdatingVM.prototype.throw = function _throw(){this.frame.handleException();this.frameStack.pop();};UpdatingVM.prototype.evaluateOpcode = function evaluateOpcode(opcode){opcode.evaluate(this);};babelHelpers.createClass(UpdatingVM,[{key:'frame',get:function(){return _glimmerUtil.expect(this.frameStack.current,'bug: expected a frame');}}]);return UpdatingVM;})();var BlockOpcode=(function(_UpdatingOpcode8){babelHelpers.inherits(BlockOpcode,_UpdatingOpcode8);function BlockOpcode(start,end,state,bounds,children){_UpdatingOpcode8.call(this);this.start = start;this.end = end;this.type = \"block\";this.next = null;this.prev = null;var env=state.env;var scope=state.scope;var dynamicScope=state.dynamicScope;var frame=state.frame;this.children = children;this.env = env;this.scope = scope;this.dynamicScope = dynamicScope;this.frame = frame;this.bounds = bounds;}BlockOpcode.prototype.parentElement = function parentElement(){return this.bounds.parentElement();};BlockOpcode.prototype.firstNode = function firstNode(){return this.bounds.firstNode();};BlockOpcode.prototype.lastNode = function lastNode(){return this.bounds.lastNode();};BlockOpcode.prototype.evaluate = function evaluate(vm){vm.try(this.children,null);};BlockOpcode.prototype.destroy = function destroy(){this.bounds.destroy();};BlockOpcode.prototype.didDestroy = function didDestroy(){this.env.didDestroy(this.bounds);};BlockOpcode.prototype.toJSON = function toJSON(){var details=_glimmerUtil.dict();details[\"guid\"] = '' + this._guid;return {guid:this._guid,type:this.type,details:details,children:this.children.toArray().map(function(op){return op.toJSON();})};};return BlockOpcode;})(UpdatingOpcode);var TryOpcode=(function(_BlockOpcode){babelHelpers.inherits(TryOpcode,_BlockOpcode);function TryOpcode(start,end,state,bounds,children){_BlockOpcode.call(this,start,end,state,bounds,children);this.type = \"try\";this.tag = this._tag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);}TryOpcode.prototype.didInitializeChildren = function didInitializeChildren(){this._tag.update(_glimmerReference.combineSlice(this.children));};TryOpcode.prototype.evaluate = function evaluate(vm){vm.try(this.children,this);};TryOpcode.prototype.handleException = function handleException(){var env=this.env;var scope=this.scope;var start=this.start;var end=this.end;var dynamicScope=this.dynamicScope;var frame=this.frame;var elementStack=ElementStack.resume(this.env,this.bounds,this.bounds.reset(env));var vm=new VM(env,scope,dynamicScope,elementStack);var result=vm.resume(start,end,frame);this.children = result.opcodes();this.didInitializeChildren();};TryOpcode.prototype.toJSON = function toJSON(){var json=_BlockOpcode.prototype.toJSON.call(this);var details=json[\"details\"];if(!details){details = json[\"details\"] = {};}return _BlockOpcode.prototype.toJSON.call(this);};return TryOpcode;})(BlockOpcode);var ListRevalidationDelegate=(function(){function ListRevalidationDelegate(opcode,marker){this.opcode = opcode;this.marker = marker;this.didInsert = false;this.didDelete = false;this.map = opcode.map;this.updating = opcode['children'];}ListRevalidationDelegate.prototype.insert = function insert(key,item,memo,before){var map=this.map;var opcode=this.opcode;var updating=this.updating;var nextSibling=null;var reference=null;if(before){reference = map[before];nextSibling = reference['bounds'].firstNode();}else {nextSibling = this.marker;}var vm=opcode.vmForInsertion(nextSibling);var tryOpcode=null;vm.execute(opcode.start,opcode.end,function(vm){vm.frame.setArgs(EvaluatedArgs.positional([item,memo]));vm.frame.setOperand(item);vm.frame.setCondition(new _glimmerReference.ConstReference(true));vm.frame.setKey(key);var state=vm.capture();var tracker=vm.stack().pushUpdatableBlock();tryOpcode = new TryOpcode(opcode.start,opcode.end,state,tracker,vm.updating());});tryOpcode.didInitializeChildren();updating.insertBefore(tryOpcode,reference);map[key] = tryOpcode;this.didInsert = true;};ListRevalidationDelegate.prototype.retain = function retain(_key,_item,_memo){};ListRevalidationDelegate.prototype.move = function move(key,_item,_memo,before){var map=this.map;var updating=this.updating;var entry=map[key];var reference=map[before] || null;if(before){moveBounds(entry,reference.firstNode());}else {moveBounds(entry,this.marker);}updating.remove(entry);updating.insertBefore(entry,reference);};ListRevalidationDelegate.prototype.delete = function _delete(key){var map=this.map;var opcode=map[key];opcode.didDestroy();clear(opcode);this.updating.remove(opcode);delete map[key];this.didDelete = true;};ListRevalidationDelegate.prototype.done = function done(){this.opcode.didInitializeChildren(this.didInsert || this.didDelete);};return ListRevalidationDelegate;})();var ListBlockOpcode=(function(_BlockOpcode2){babelHelpers.inherits(ListBlockOpcode,_BlockOpcode2);function ListBlockOpcode(start,end,state,bounds,children,artifacts){_BlockOpcode2.call(this,start,end,state,bounds,children);this.type = \"list-block\";this.map = _glimmerUtil.dict();this.lastIterated = _glimmerReference.INITIAL;this.artifacts = artifacts;var _tag=this._tag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);this.tag = _glimmerReference.combine([artifacts.tag,_tag]);}ListBlockOpcode.prototype.didInitializeChildren = function didInitializeChildren(){var listDidChange=arguments.length <= 0 || arguments[0] === undefined?true:arguments[0];this.lastIterated = this.artifacts.tag.value();if(listDidChange){this._tag.update(_glimmerReference.combineSlice(this.children));}};ListBlockOpcode.prototype.evaluate = function evaluate(vm){var artifacts=this.artifacts;var lastIterated=this.lastIterated;if(!artifacts.tag.validate(lastIterated)){var bounds=this.bounds;var dom=vm.dom;var marker=dom.createComment('');dom.insertAfter(bounds.parentElement(),marker,_glimmerUtil.expect(bounds.lastNode(),\"can't insert after an empty bounds\"));var target=new ListRevalidationDelegate(this,marker);var synchronizer=new _glimmerReference.IteratorSynchronizer({target:target,artifacts:artifacts});synchronizer.sync();this.parentElement().removeChild(marker);} // Run now-updated updating opcodes\n_BlockOpcode2.prototype.evaluate.call(this,vm);};ListBlockOpcode.prototype.vmForInsertion = function vmForInsertion(nextSibling){var env=this.env;var scope=this.scope;var dynamicScope=this.dynamicScope;var elementStack=ElementStack.forInitialRender(this.env,this.bounds.parentElement(),nextSibling);return new VM(env,scope,dynamicScope,elementStack);};ListBlockOpcode.prototype.toJSON = function toJSON(){var json=_BlockOpcode2.prototype.toJSON.call(this);var map=this.map;var inner=Object.keys(map).map(function(key){return JSON.stringify(key) + ': ' + map[key]._guid;}).join(\", \");var details=json[\"details\"];if(!details){details = json[\"details\"] = {};}details[\"map\"] = '{' + inner + '}';return json;};return ListBlockOpcode;})(BlockOpcode);var UpdatingVMFrame=(function(){function UpdatingVMFrame(vm,ops,exceptionHandler){this.vm = vm;this.ops = ops;this.exceptionHandler = exceptionHandler;this.vm = vm;this.ops = ops;this.current = ops.head();}UpdatingVMFrame.prototype.goto = function goto(op){this.current = op;};UpdatingVMFrame.prototype.nextStatement = function nextStatement(){var current=this.current;var ops=this.ops;if(current)this.current = ops.nextNode(current);return current;};UpdatingVMFrame.prototype.handleException = function handleException(){if(this.exceptionHandler){this.exceptionHandler.handleException();}};return UpdatingVMFrame;})();APPEND_OPCODES.add(31, /* DynamicContent */function(vm,_ref31){var append=_ref31.op1;var opcode=vm.constants.getOther(append);opcode.evaluate(vm);});function isEmpty(value){return value === null || value === undefined || typeof value['toString'] !== 'function';}function normalizeTextValue(value){if(isEmpty(value)){return '';}return String(value);}function normalizeTrustedValue(value){if(isEmpty(value)){return '';}if(isString(value)){return value;}if(isSafeString(value)){return value.toHTML();}if(isNode(value)){return value;}return String(value);}function normalizeValue(value){if(isEmpty(value)){return '';}if(isString(value)){return value;}if(isSafeString(value) || isNode(value)){return value;}return String(value);}var AppendDynamicOpcode=(function(){function AppendDynamicOpcode(){}AppendDynamicOpcode.prototype.evaluate = function evaluate(vm){var reference=vm.frame.getOperand();var normalized=this.normalize(reference);var value=undefined,cache=undefined;if(_glimmerReference.isConst(reference)){value = normalized.value();}else {cache = new _glimmerReference.ReferenceCache(normalized);value = cache.peek();}var stack=vm.stack();var upsert=this.insert(vm.env.getAppendOperations(),stack,value);var bounds=new Fragment(upsert.bounds);stack.newBounds(bounds);if(cache /* i.e. !isConst(reference) */){vm.updateWith(this.updateWith(vm,reference,cache,bounds,upsert));}};return AppendDynamicOpcode;})();var GuardedAppendOpcode=(function(_AppendDynamicOpcode){babelHelpers.inherits(GuardedAppendOpcode,_AppendDynamicOpcode);function GuardedAppendOpcode(expression,symbolTable){_AppendDynamicOpcode.call(this);this.expression = expression;this.symbolTable = symbolTable;this.start = -1;this.end = -1;}GuardedAppendOpcode.prototype.evaluate = function evaluate(vm){if(this.start === -1){vm.evaluateOperand(this.expression);var value=vm.frame.getOperand().value();if(isComponentDefinition(value)){this.deopt(vm.env);vm.pushEvalFrame(this.start,this.end);}else {_AppendDynamicOpcode.prototype.evaluate.call(this,vm);}}else {vm.pushEvalFrame(this.start,this.end);}};GuardedAppendOpcode.prototype.deopt = function deopt(env){var _this3=this; // At compile time, we determined that this append callsite might refer\n// to a local variable/property lookup that resolves to a component\n// definition at runtime.\n//\n// We could have eagerly compiled this callsite into something like this:\n//\n//   {{#if (is-component-definition foo)}}\n//     {{component foo}}\n//   {{else}}\n//     {{foo}}\n//   {{/if}}\n//\n// However, in practice, there might be a large amout of these callsites\n// and most of them would resolve to a simple value lookup. Therefore, we\n// tried to be optimistic and assumed that the callsite will resolve to\n// appending a simple value.\n//\n// However, we have reached here because at runtime, the guard conditional\n// have detected that this callsite is indeed referring to a component\n// definition object. Since this is likely going to be true for other\n// instances of the same callsite, it is now appropiate to deopt into the\n// expanded version that handles both cases. The compilation would look\n// like this:\n//\n//               PutValue(expression)\n//               Test(is-component-definition)\n//               Enter(BEGIN, END)\n//   BEGIN:      Noop\n//               JumpUnless(VALUE)\n//               PutDynamicComponentDefinitionOpcode\n//               OpenComponent\n//               CloseComponent\n//               Jump(END)\n//   VALUE:      Noop\n//               OptimizedAppend\n//   END:        Noop\n//               Exit\n//\n// Keep in mind that even if we *don't* reach here at initial render time,\n// it is still possible (although quite rare) that the simple value we\n// encounter during initial render could later change into a component\n// definition object at update time. That is handled by the \"lazy deopt\"\n// code on the update side (scroll down for the next big block of comment).\nvar dsl=new OpcodeBuilder(this.symbolTable,env);dsl.putValue(this.expression);dsl.test(IsComponentDefinitionReference.create);dsl.labelled(null,function(dsl,_BEGIN,END){dsl.jumpUnless('VALUE');dsl.putDynamicComponentDefinition();dsl.openComponent(CompiledArgs.empty());dsl.closeComponent();dsl.jump(END);dsl.label('VALUE');dsl.dynamicContent(new _this3.AppendOpcode());});this.start = dsl.start;this.end = dsl.end; // From this point on, we have essentially replaced ourselves with a new set\n// of opcodes. Since we will always be executing the new/deopted code, it's\n// a good idea (as a pattern) to null out any unneeded fields here to avoid\n// holding on to unneeded/stale objects:\n// QUESTION: Shouldn't this whole object be GCed? If not, why not?\nthis.expression = null;return dsl.start;};return GuardedAppendOpcode;})(AppendDynamicOpcode);var IsComponentDefinitionReference=(function(_ConditionalReference){babelHelpers.inherits(IsComponentDefinitionReference,_ConditionalReference);function IsComponentDefinitionReference(){_ConditionalReference.apply(this,arguments);}IsComponentDefinitionReference.create = function create(inner){return new IsComponentDefinitionReference(inner);};IsComponentDefinitionReference.prototype.toBool = function toBool(value){return isComponentDefinition(value);};return IsComponentDefinitionReference;})(ConditionalReference);var UpdateOpcode=(function(_UpdatingOpcode9){babelHelpers.inherits(UpdateOpcode,_UpdatingOpcode9);function UpdateOpcode(cache,bounds,upsert){_UpdatingOpcode9.call(this);this.cache = cache;this.bounds = bounds;this.upsert = upsert;this.tag = cache.tag;}UpdateOpcode.prototype.evaluate = function evaluate(vm){var value=this.cache.revalidate();if(_glimmerReference.isModified(value)){var bounds=this.bounds;var upsert=this.upsert;var dom=vm.dom;if(!this.upsert.update(dom,value)){var cursor=new Cursor(bounds.parentElement(),clear(bounds));upsert = this.upsert = this.insert(vm.env.getAppendOperations(),cursor,value);}bounds.update(upsert.bounds);}};UpdateOpcode.prototype.toJSON = function toJSON(){var guid=this._guid;var type=this.type;var cache=this.cache;return {guid:guid,type:type,details:{lastValue:JSON.stringify(cache.peek())}};};return UpdateOpcode;})(UpdatingOpcode);var GuardedUpdateOpcode=(function(_UpdateOpcode){babelHelpers.inherits(GuardedUpdateOpcode,_UpdateOpcode);function GuardedUpdateOpcode(reference,cache,bounds,upsert,appendOpcode,state){_UpdateOpcode.call(this,cache,bounds,upsert);this.reference = reference;this.appendOpcode = appendOpcode;this.state = state;this.deopted = null;this.tag = this._tag = new _glimmerReference.UpdatableTag(this.tag);}GuardedUpdateOpcode.prototype.evaluate = function evaluate(vm){if(this.deopted){vm.evaluateOpcode(this.deopted);}else {if(isComponentDefinition(this.reference.value())){this.lazyDeopt(vm);}else {_UpdateOpcode.prototype.evaluate.call(this,vm);}}};GuardedUpdateOpcode.prototype.lazyDeopt = function lazyDeopt(vm){ // Durign initial render, we know that the reference does not contain a\n// component definition, so we optimistically assumed that this append\n// is just a normal append. However, at update time, we discovered that\n// the reference has switched into containing a component definition, so\n// we need to do a \"lazy deopt\", simulating what would have happened if\n// we had decided to perform the deopt in the first place during initial\n// render.\n//\n// More concretely, we would have expanded the curly into a if/else, and\n// based on whether the value is a component definition or not, we would\n// have entered either the dynamic component branch or the simple value\n// branch.\n//\n// Since we rendered a simple value during initial render (and all the\n// updates up until this point), we need to pretend that the result is\n// produced by the \"VALUE\" branch of the deopted append opcode:\n//\n//   Try(BEGIN, END)\n//     Assert(IsComponentDefinition, expected=false)\n//     OptimizedUpdate\n//\n// In this case, because the reference has switched from being a simple\n// value into a component definition, what would have happened is that\n// the assert would throw, causing the Try opcode to teardown the bounds\n// and rerun the original append opcode.\n//\n// Since the Try opcode would have nuked the updating opcodes anyway, we\n// wouldn't have to worry about simulating those. All we have to do is to\n// execute the Try opcode and immediately throw.\nvar bounds=this.bounds;var appendOpcode=this.appendOpcode;var state=this.state;var env=vm.env;var deoptStart=appendOpcode.deopt(env);var enter=_glimmerUtil.expect(env.program.opcode(deoptStart + 8),'hardcoded deopt location');var start=enter.op1;var end=enter.op2;var tracker=new UpdatableBlockTracker(bounds.parentElement());tracker.newBounds(this.bounds);var children=new _glimmerUtil.LinkedList();state.frame.condition = IsComponentDefinitionReference.create(_glimmerUtil.expect(state.frame['operand'],'operand should be populated'));var deopted=this.deopted = new TryOpcode(start,end,state,tracker,children);this._tag.update(deopted.tag);vm.evaluateOpcode(deopted);vm.throw(); // From this point on, we have essentially replaced ourselve with a new\n// opcode. Since we will always be executing the new/deopted code, it's a\n// good idea (as a pattern) to null out any unneeded fields here to avoid\n// holding on to unneeded/stale objects:\n// QUESTION: Shouldn't this whole object be GCed? If not, why not?\nthis._tag = null;this.reference = null;this.cache = null;this.bounds = null;this.upsert = null;this.appendOpcode = null;this.state = null;};GuardedUpdateOpcode.prototype.toJSON = function toJSON(){var guid=this._guid;var type=this.type;var deopted=this.deopted;if(deopted){return {guid:guid,type:type,deopted:true,children:[deopted.toJSON()]};}else {return _UpdateOpcode.prototype.toJSON.call(this);}};return GuardedUpdateOpcode;})(UpdateOpcode);var OptimizedCautiousAppendOpcode=(function(_AppendDynamicOpcode2){babelHelpers.inherits(OptimizedCautiousAppendOpcode,_AppendDynamicOpcode2);function OptimizedCautiousAppendOpcode(){_AppendDynamicOpcode2.apply(this,arguments);this.type = 'optimized-cautious-append';}OptimizedCautiousAppendOpcode.prototype.normalize = function normalize(reference){return _glimmerReference.map(reference,normalizeValue);};OptimizedCautiousAppendOpcode.prototype.insert = function insert(dom,cursor,value){return cautiousInsert(dom,cursor,value);};OptimizedCautiousAppendOpcode.prototype.updateWith = function updateWith(_vm,_reference,cache,bounds,upsert){return new OptimizedCautiousUpdateOpcode(cache,bounds,upsert);};return OptimizedCautiousAppendOpcode;})(AppendDynamicOpcode);var OptimizedCautiousUpdateOpcode=(function(_UpdateOpcode2){babelHelpers.inherits(OptimizedCautiousUpdateOpcode,_UpdateOpcode2);function OptimizedCautiousUpdateOpcode(){_UpdateOpcode2.apply(this,arguments);this.type = 'optimized-cautious-update';}OptimizedCautiousUpdateOpcode.prototype.insert = function insert(dom,cursor,value){return cautiousInsert(dom,cursor,value);};return OptimizedCautiousUpdateOpcode;})(UpdateOpcode);var GuardedCautiousAppendOpcode=(function(_GuardedAppendOpcode){babelHelpers.inherits(GuardedCautiousAppendOpcode,_GuardedAppendOpcode);function GuardedCautiousAppendOpcode(){_GuardedAppendOpcode.apply(this,arguments);this.type = 'guarded-cautious-append';this.AppendOpcode = OptimizedCautiousAppendOpcode;}GuardedCautiousAppendOpcode.prototype.normalize = function normalize(reference){return _glimmerReference.map(reference,normalizeValue);};GuardedCautiousAppendOpcode.prototype.insert = function insert(dom,cursor,value){return cautiousInsert(dom,cursor,value);};GuardedCautiousAppendOpcode.prototype.updateWith = function updateWith(vm,reference,cache,bounds,upsert){return new GuardedCautiousUpdateOpcode(reference,cache,bounds,upsert,this,vm.capture());};return GuardedCautiousAppendOpcode;})(GuardedAppendOpcode);var GuardedCautiousUpdateOpcode=(function(_GuardedUpdateOpcode){babelHelpers.inherits(GuardedCautiousUpdateOpcode,_GuardedUpdateOpcode);function GuardedCautiousUpdateOpcode(){_GuardedUpdateOpcode.apply(this,arguments);this.type = 'guarded-cautious-update';}GuardedCautiousUpdateOpcode.prototype.insert = function insert(dom,cursor,value){return cautiousInsert(dom,cursor,value);};return GuardedCautiousUpdateOpcode;})(GuardedUpdateOpcode);var OptimizedTrustingAppendOpcode=(function(_AppendDynamicOpcode3){babelHelpers.inherits(OptimizedTrustingAppendOpcode,_AppendDynamicOpcode3);function OptimizedTrustingAppendOpcode(){_AppendDynamicOpcode3.apply(this,arguments);this.type = 'optimized-trusting-append';}OptimizedTrustingAppendOpcode.prototype.normalize = function normalize(reference){return _glimmerReference.map(reference,normalizeTrustedValue);};OptimizedTrustingAppendOpcode.prototype.insert = function insert(dom,cursor,value){return trustingInsert(dom,cursor,value);};OptimizedTrustingAppendOpcode.prototype.updateWith = function updateWith(_vm,_reference,cache,bounds,upsert){return new OptimizedTrustingUpdateOpcode(cache,bounds,upsert);};return OptimizedTrustingAppendOpcode;})(AppendDynamicOpcode);var OptimizedTrustingUpdateOpcode=(function(_UpdateOpcode3){babelHelpers.inherits(OptimizedTrustingUpdateOpcode,_UpdateOpcode3);function OptimizedTrustingUpdateOpcode(){_UpdateOpcode3.apply(this,arguments);this.type = 'optimized-trusting-update';}OptimizedTrustingUpdateOpcode.prototype.insert = function insert(dom,cursor,value){return trustingInsert(dom,cursor,value);};return OptimizedTrustingUpdateOpcode;})(UpdateOpcode);var GuardedTrustingAppendOpcode=(function(_GuardedAppendOpcode2){babelHelpers.inherits(GuardedTrustingAppendOpcode,_GuardedAppendOpcode2);function GuardedTrustingAppendOpcode(){_GuardedAppendOpcode2.apply(this,arguments);this.type = 'guarded-trusting-append';this.AppendOpcode = OptimizedTrustingAppendOpcode;}GuardedTrustingAppendOpcode.prototype.normalize = function normalize(reference){return _glimmerReference.map(reference,normalizeTrustedValue);};GuardedTrustingAppendOpcode.prototype.insert = function insert(dom,cursor,value){return trustingInsert(dom,cursor,value);};GuardedTrustingAppendOpcode.prototype.updateWith = function updateWith(vm,reference,cache,bounds,upsert){return new GuardedTrustingUpdateOpcode(reference,cache,bounds,upsert,this,vm.capture());};return GuardedTrustingAppendOpcode;})(GuardedAppendOpcode);var GuardedTrustingUpdateOpcode=(function(_GuardedUpdateOpcode2){babelHelpers.inherits(GuardedTrustingUpdateOpcode,_GuardedUpdateOpcode2);function GuardedTrustingUpdateOpcode(){_GuardedUpdateOpcode2.apply(this,arguments);this.type = 'trusting-update';}GuardedTrustingUpdateOpcode.prototype.insert = function insert(dom,cursor,value){return trustingInsert(dom,cursor,value);};return GuardedTrustingUpdateOpcode;})(GuardedUpdateOpcode);APPEND_OPCODES.add(49, /* PutDynamicPartial */function(vm,_ref32){var _symbolTable=_ref32.op1;var env=vm.env;var symbolTable=vm.constants.getOther(_symbolTable);function lookupPartial(name){var normalized=String(name);if(!env.hasPartial(normalized,symbolTable)){throw new Error('Could not find a partial named \"' + normalized + '\"');}return env.lookupPartial(normalized,symbolTable);}var reference=_glimmerReference.map(vm.frame.getOperand(),lookupPartial);var cache=_glimmerReference.isConst(reference)?undefined:new _glimmerReference.ReferenceCache(reference);var definition=cache?cache.peek():reference.value();vm.frame.setImmediate(definition);if(cache){vm.updateWith(new Assert(cache));}});APPEND_OPCODES.add(50, /* PutPartial */function(vm,_ref33){var _definition=_ref33.op1;var definition=vm.constants.getOther(_definition);vm.frame.setImmediate(definition);});APPEND_OPCODES.add(51, /* EvaluatePartial */function(vm,_ref34){var _symbolTable=_ref34.op1;var _cache=_ref34.op2;var symbolTable=vm.constants.getOther(_symbolTable);var cache=vm.constants.getOther(_cache);var _vm$frame$getImmediate=vm.frame.getImmediate();var template=_vm$frame$getImmediate.template;var block=cache[template.id];if(!block){block = template.asPartial(symbolTable);}vm.invokePartial(block);});var IterablePresenceReference=(function(){function IterablePresenceReference(artifacts){this.tag = artifacts.tag;this.artifacts = artifacts;}IterablePresenceReference.prototype.value = function value(){return !this.artifacts.isEmpty();};return IterablePresenceReference;})();APPEND_OPCODES.add(44, /* PutIterator */function(vm){var listRef=vm.frame.getOperand();var args=_glimmerUtil.expect(vm.frame.getArgs(),'PutIteratorOpcode expects a populated args register');var iterable=vm.env.iterableFor(listRef,args);var iterator=new _glimmerReference.ReferenceIterator(iterable);vm.frame.setIterator(iterator);vm.frame.setCondition(new IterablePresenceReference(iterator.artifacts));});APPEND_OPCODES.add(45, /* EnterList */function(vm,_ref35){var start=_ref35.op1;var end=_ref35.op2;vm.enterList(start,end);});APPEND_OPCODES.add(46, /* ExitList */function(vm){return vm.exitList();});APPEND_OPCODES.add(47, /* EnterWithKey */function(vm,_ref36){var start=_ref36.op1;var end=_ref36.op2;var key=_glimmerUtil.expect(vm.frame.getKey(),'EnterWithKeyOpcode expects a populated key register');vm.enterWithKey(key,start,end);});var TRUE_REF=new _glimmerReference.ConstReference(true);var FALSE_REF=new _glimmerReference.ConstReference(false);APPEND_OPCODES.add(48, /* NextIter */function(vm,_ref37){var end=_ref37.op1;var item=vm.frame.getIterator().next();if(item){vm.frame.setCondition(TRUE_REF);vm.frame.setKey(item.key);vm.frame.setOperand(item.value);vm.frame.setArgs(EvaluatedArgs.positional([item.value,item.memo]));}else {vm.frame.setCondition(FALSE_REF);vm.goto(end);}});var TemplateIterator=(function(){function TemplateIterator(vm){this.vm = vm;}TemplateIterator.prototype.next = function next(){return this.vm.next();};return TemplateIterator;})();var clientId=0;function templateFactory(_ref38){var templateId=_ref38.id;var meta=_ref38.meta;var block=_ref38.block;var parsedBlock=undefined;var id=templateId || 'client-' + clientId++;var create=function(env,envMeta){var newMeta=envMeta?_glimmerUtil.assign({},envMeta,meta):meta;if(!parsedBlock){parsedBlock = JSON.parse(block);}return template(parsedBlock,id,newMeta,env);};return {id:id,meta:meta,create:create};}function template(block,id,meta,env){var scanner=new Scanner(block,meta,env);var entryPoint=undefined;var asEntryPoint=function(){if(!entryPoint)entryPoint = scanner.scanEntryPoint();return entryPoint;};var layout=undefined;var asLayout=function(){if(!layout)layout = scanner.scanLayout();return layout;};var asPartial=function(symbols){return scanner.scanPartial(symbols);};var render=function(self,appendTo,dynamicScope){var elementStack=ElementStack.forInitialRender(env,appendTo,null);var compiled=asEntryPoint().compile(env);var vm=VM.initial(env,self,dynamicScope,elementStack,compiled);return new TemplateIterator(vm);};return {id:id,meta:meta,_block:block,asEntryPoint:asEntryPoint,asLayout:asLayout,asPartial:asPartial,render:render};}var DynamicVarReference=(function(){function DynamicVarReference(scope,nameRef){this.scope = scope;this.nameRef = nameRef;var varTag=this.varTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);this.tag = _glimmerReference.combine([nameRef.tag,varTag]);}DynamicVarReference.prototype.value = function value(){return this.getVar().value();};DynamicVarReference.prototype.get = function get(key){return this.getVar().get(key);};DynamicVarReference.prototype.getVar = function getVar(){var name=String(this.nameRef.value());var ref=this.scope.get(name);this.varTag.update(ref.tag);return ref;};return DynamicVarReference;})();function getDynamicVar(vm,args,_symbolTable){var scope=vm.dynamicScope();var nameRef=args.positional.at(0);return new DynamicVarReference(scope,nameRef);}var PartialDefinition=function PartialDefinition(name,template){this.name = name;this.template = template;};var NodeType;(function(NodeType){NodeType[NodeType[\"Element\"] = 0] = \"Element\";NodeType[NodeType[\"Attribute\"] = 1] = \"Attribute\";NodeType[NodeType[\"Text\"] = 2] = \"Text\";NodeType[NodeType[\"CdataSection\"] = 3] = \"CdataSection\";NodeType[NodeType[\"EntityReference\"] = 4] = \"EntityReference\";NodeType[NodeType[\"Entity\"] = 5] = \"Entity\";NodeType[NodeType[\"ProcessingInstruction\"] = 6] = \"ProcessingInstruction\";NodeType[NodeType[\"Comment\"] = 7] = \"Comment\";NodeType[NodeType[\"Document\"] = 8] = \"Document\";NodeType[NodeType[\"DocumentType\"] = 9] = \"DocumentType\";NodeType[NodeType[\"DocumentFragment\"] = 10] = \"DocumentFragment\";NodeType[NodeType[\"Notation\"] = 11] = \"Notation\";})(NodeType || (NodeType = {}));var Simple=Object.freeze({get NodeType(){return NodeType;}});exports.Simple = Simple;exports.templateFactory = templateFactory;exports.NULL_REFERENCE = NULL_REFERENCE;exports.UNDEFINED_REFERENCE = UNDEFINED_REFERENCE;exports.PrimitiveReference = PrimitiveReference;exports.ConditionalReference = ConditionalReference;exports.OpcodeBuilderDSL = OpcodeBuilder;exports.compileLayout = compileLayout;exports.CompiledBlock = CompiledBlock;exports.CompiledProgram = CompiledProgram;exports.IAttributeManager = AttributeManager;exports.AttributeManager = AttributeManager;exports.PropertyManager = PropertyManager;exports.INPUT_VALUE_PROPERTY_MANAGER = INPUT_VALUE_PROPERTY_MANAGER;exports.defaultManagers = defaultManagers;exports.defaultAttributeManagers = defaultAttributeManagers;exports.defaultPropertyManagers = defaultPropertyManagers;exports.readDOMAttr = readDOMAttr;exports.normalizeTextValue = normalizeTextValue;exports.CompiledExpression = CompiledExpression;exports.CompiledArgs = CompiledArgs;exports.CompiledNamedArgs = CompiledNamedArgs;exports.CompiledPositionalArgs = CompiledPositionalArgs;exports.EvaluatedArgs = EvaluatedArgs;exports.EvaluatedNamedArgs = EvaluatedNamedArgs;exports.EvaluatedPositionalArgs = EvaluatedPositionalArgs;exports.getDynamicVar = getDynamicVar;exports.BlockMacros = Blocks;exports.InlineMacros = Inlines;exports.compileArgs = compileArgs;exports.setDebuggerCallback = setDebuggerCallback;exports.resetDebuggerCallback = resetDebuggerCallback;exports.BaselineSyntax = BaselineSyntax;exports.Layout = Layout;exports.UpdatingVM = UpdatingVM;exports.RenderResult = RenderResult;exports.isSafeString = isSafeString;exports.Scope = Scope;exports.Environment = Environment;exports.PartialDefinition = PartialDefinition;exports.ComponentDefinition = ComponentDefinition;exports.isComponentDefinition = isComponentDefinition;exports.DOMChanges = helper$1;exports.IDOMChanges = DOMChanges;exports.DOMTreeConstruction = DOMTreeConstruction;exports.isWhitespace = isWhitespace;exports.insertHTMLBefore = _insertHTMLBefore;exports.ElementStack = ElementStack;exports.ConcreteBounds = ConcreteBounds;});\nenifed('@glimmer/util', ['exports'], function (exports) {\n    // There is a small whitelist of namespaced attributes specially\n    // enumerated in\n    // https://www.w3.org/TR/html/syntax.html#attributes-0\n    //\n    // > When a foreign element has one of the namespaced attributes given by\n    // > the local name and namespace of the first and second cells of a row\n    // > from the following table, it must be written using the name given by\n    // > the third cell from the same row.\n    //\n    // In all other cases, colons are interpreted as a regular character\n    // with no special meaning:\n    //\n    // > No other namespaced attribute can be expressed in the HTML syntax.\n    'use strict';\n\n    var XLINK = 'http://www.w3.org/1999/xlink';\n    var XML = 'http://www.w3.org/XML/1998/namespace';\n    var XMLNS = 'http://www.w3.org/2000/xmlns/';\n    var WHITELIST = {\n        'xlink:actuate': XLINK,\n        'xlink:arcrole': XLINK,\n        'xlink:href': XLINK,\n        'xlink:role': XLINK,\n        'xlink:show': XLINK,\n        'xlink:title': XLINK,\n        'xlink:type': XLINK,\n        'xml:base': XML,\n        'xml:lang': XML,\n        'xml:space': XML,\n        'xmlns': XMLNS,\n        'xmlns:xlink': XMLNS\n    };\n    function getAttrNamespace(attrName) {\n        return WHITELIST[attrName] || null;\n    }\n\n    // tslint:disable-line\n    function unwrap(val) {\n        if (val === null || val === undefined) throw new Error('Expected value to be present');\n        return val;\n    }\n    function expect(val, message) {\n        if (val === null || val === undefined) throw new Error(message);\n        return val;\n    }\n    function unreachable() {\n        return new Error('unreachable');\n    }\n\n    // import Logger from './logger';\n    // let alreadyWarned = false;\n    // import Logger from './logger';\n    function debugAssert(test, msg) {\n        // if (!alreadyWarned) {\n        //   alreadyWarned = true;\n        //   Logger.warn(\"Don't leave debug assertions on in public builds\");\n        // }\n        if (!test) {\n            throw new Error(msg || \"assertion failure\");\n        }\n    }\n\n    var LogLevel;\n    (function (LogLevel) {\n        LogLevel[LogLevel[\"Trace\"] = 0] = \"Trace\";\n        LogLevel[LogLevel[\"Debug\"] = 1] = \"Debug\";\n        LogLevel[LogLevel[\"Warn\"] = 2] = \"Warn\";\n        LogLevel[LogLevel[\"Error\"] = 3] = \"Error\";\n    })(LogLevel || (exports.LogLevel = LogLevel = {}));\n\n    var NullConsole = (function () {\n        function NullConsole() {}\n\n        NullConsole.prototype.log = function log(_message) {};\n\n        NullConsole.prototype.warn = function warn(_message) {};\n\n        NullConsole.prototype.error = function error(_message) {};\n\n        NullConsole.prototype.trace = function trace() {};\n\n        return NullConsole;\n    })();\n\n    var ALWAYS = undefined;\n\n    var Logger = (function () {\n        function Logger(_ref) {\n            var console = _ref.console;\n            var level = _ref.level;\n\n            this.f = ALWAYS;\n            this.force = ALWAYS;\n            this.console = console;\n            this.level = level;\n        }\n\n        Logger.prototype.skipped = function skipped(level) {\n            return level < this.level;\n        };\n\n        Logger.prototype.trace = function trace(message) {\n            var _ref2 = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n            var _ref2$stackTrace = _ref2.stackTrace;\n            var stackTrace = _ref2$stackTrace === undefined ? false : _ref2$stackTrace;\n\n            if (this.skipped(LogLevel.Trace)) return;\n            this.console.log(message);\n            if (stackTrace) this.console.trace();\n        };\n\n        Logger.prototype.debug = function debug(message) {\n            var _ref3 = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n            var _ref3$stackTrace = _ref3.stackTrace;\n            var stackTrace = _ref3$stackTrace === undefined ? false : _ref3$stackTrace;\n\n            if (this.skipped(LogLevel.Debug)) return;\n            this.console.log(message);\n            if (stackTrace) this.console.trace();\n        };\n\n        Logger.prototype.warn = function warn(message) {\n            var _ref4 = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n            var _ref4$stackTrace = _ref4.stackTrace;\n            var stackTrace = _ref4$stackTrace === undefined ? false : _ref4$stackTrace;\n\n            if (this.skipped(LogLevel.Warn)) return;\n            this.console.warn(message);\n            if (stackTrace) this.console.trace();\n        };\n\n        Logger.prototype.error = function error(message) {\n            if (this.skipped(LogLevel.Error)) return;\n            this.console.error(message);\n        };\n\n        return Logger;\n    })();\n\n    var _console = typeof console === 'undefined' ? new NullConsole() : console;\n    ALWAYS = new Logger({ console: _console, level: LogLevel.Trace });\n    var LOG_LEVEL = LogLevel.Warn;\n    var logger = new Logger({ console: _console, level: LOG_LEVEL });\n\n    var objKeys = Object.keys;\n\n    function assign(obj) {\n        for (var i = 1; i < arguments.length; i++) {\n            var assignment = arguments[i];\n            if (assignment === null || typeof assignment !== 'object') continue;\n            var keys = objKeys(assignment);\n            for (var j = 0; j < keys.length; j++) {\n                var key = keys[j];\n                obj[key] = assignment[key];\n            }\n        }\n        return obj;\n    }\n    function fillNulls(count) {\n        var arr = new Array(count);\n        for (var i = 0; i < count; i++) {\n            arr[i] = null;\n        }\n        return arr;\n    }\n\n    var GUID = 0;\n    function initializeGuid(object) {\n        return object._guid = ++GUID;\n    }\n    function ensureGuid(object) {\n        return object._guid || initializeGuid(object);\n    }\n\n    var proto = Object.create(null, {\n        // without this, we will always still end up with (new\n        // EmptyObject()).constructor === Object\n        constructor: {\n            value: undefined,\n            enumerable: false,\n            writable: true\n        }\n    });\n    function EmptyObject() {}\n    EmptyObject.prototype = proto;\n    function dict() {\n        // let d = Object.create(null);\n        // d.x = 1;\n        // delete d.x;\n        // return d;\n        return new EmptyObject();\n    }\n\n    var DictSet = (function () {\n        function DictSet() {\n            this.dict = dict();\n        }\n\n        DictSet.prototype.add = function add(obj) {\n            if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;\n            return this;\n        };\n\n        DictSet.prototype.delete = function _delete(obj) {\n            if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];\n        };\n\n        DictSet.prototype.forEach = function forEach(callback) {\n            var dict = this.dict;\n\n            Object.keys(dict).forEach(function (key) {\n                return callback(dict[key]);\n            });\n        };\n\n        DictSet.prototype.toArray = function toArray() {\n            return Object.keys(this.dict);\n        };\n\n        return DictSet;\n    })();\n\n    var Stack = (function () {\n        function Stack() {\n            this.stack = [];\n            this.current = null;\n        }\n\n        Stack.prototype.toArray = function toArray() {\n            return this.stack;\n        };\n\n        Stack.prototype.push = function push(item) {\n            this.current = item;\n            this.stack.push(item);\n        };\n\n        Stack.prototype.pop = function pop() {\n            var item = this.stack.pop();\n            var len = this.stack.length;\n            this.current = len === 0 ? null : this.stack[len - 1];\n            return item === undefined ? null : item;\n        };\n\n        Stack.prototype.isEmpty = function isEmpty() {\n            return this.stack.length === 0;\n        };\n\n        return Stack;\n    })();\n\n    var ListNode = function ListNode(value) {\n        this.next = null;\n        this.prev = null;\n        this.value = value;\n    };\n\n    var LinkedList = (function () {\n        function LinkedList() {\n            this.clear();\n        }\n\n        LinkedList.fromSlice = function fromSlice(slice) {\n            var list = new LinkedList();\n            slice.forEachNode(function (n) {\n                return list.append(n.clone());\n            });\n            return list;\n        };\n\n        LinkedList.prototype.head = function head() {\n            return this._head;\n        };\n\n        LinkedList.prototype.tail = function tail() {\n            return this._tail;\n        };\n\n        LinkedList.prototype.clear = function clear() {\n            this._head = this._tail = null;\n        };\n\n        LinkedList.prototype.isEmpty = function isEmpty() {\n            return this._head === null;\n        };\n\n        LinkedList.prototype.toArray = function toArray() {\n            var out = [];\n            this.forEachNode(function (n) {\n                return out.push(n);\n            });\n            return out;\n        };\n\n        LinkedList.prototype.splice = function splice(start, end, reference) {\n            var before = undefined;\n            if (reference === null) {\n                before = this._tail;\n                this._tail = end;\n            } else {\n                before = reference.prev;\n                end.next = reference;\n                reference.prev = end;\n            }\n            if (before) {\n                before.next = start;\n                start.prev = before;\n            }\n        };\n\n        LinkedList.prototype.nextNode = function nextNode(node) {\n            return node.next;\n        };\n\n        LinkedList.prototype.prevNode = function prevNode(node) {\n            return node.prev;\n        };\n\n        LinkedList.prototype.forEachNode = function forEachNode(callback) {\n            var node = this._head;\n            while (node !== null) {\n                callback(node);\n                node = node.next;\n            }\n        };\n\n        LinkedList.prototype.contains = function contains(needle) {\n            var node = this._head;\n            while (node !== null) {\n                if (node === needle) return true;\n                node = node.next;\n            }\n            return false;\n        };\n\n        LinkedList.prototype.insertBefore = function insertBefore(node) {\n            var reference = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];\n\n            if (reference === null) return this.append(node);\n            if (reference.prev) reference.prev.next = node;else this._head = node;\n            node.prev = reference.prev;\n            node.next = reference;\n            reference.prev = node;\n            return node;\n        };\n\n        LinkedList.prototype.append = function append(node) {\n            var tail = this._tail;\n            if (tail) {\n                tail.next = node;\n                node.prev = tail;\n                node.next = null;\n            } else {\n                this._head = node;\n            }\n            return this._tail = node;\n        };\n\n        LinkedList.prototype.pop = function pop() {\n            if (this._tail) return this.remove(this._tail);\n            return null;\n        };\n\n        LinkedList.prototype.prepend = function prepend(node) {\n            if (this._head) return this.insertBefore(node, this._head);\n            return this._head = this._tail = node;\n        };\n\n        LinkedList.prototype.remove = function remove(node) {\n            if (node.prev) node.prev.next = node.next;else this._head = node.next;\n            if (node.next) node.next.prev = node.prev;else this._tail = node.prev;\n            return node;\n        };\n\n        return LinkedList;\n    })();\n\n    var ListSlice = (function () {\n        function ListSlice(head, tail) {\n            this._head = head;\n            this._tail = tail;\n        }\n\n        ListSlice.toList = function toList(slice) {\n            var list = new LinkedList();\n            slice.forEachNode(function (n) {\n                return list.append(n.clone());\n            });\n            return list;\n        };\n\n        ListSlice.prototype.forEachNode = function forEachNode(callback) {\n            var node = this._head;\n            while (node !== null) {\n                callback(node);\n                node = this.nextNode(node);\n            }\n        };\n\n        ListSlice.prototype.contains = function contains(needle) {\n            var node = this._head;\n            while (node !== null) {\n                if (node === needle) return true;\n                node = node.next;\n            }\n            return false;\n        };\n\n        ListSlice.prototype.head = function head() {\n            return this._head;\n        };\n\n        ListSlice.prototype.tail = function tail() {\n            return this._tail;\n        };\n\n        ListSlice.prototype.toArray = function toArray() {\n            var out = [];\n            this.forEachNode(function (n) {\n                return out.push(n);\n            });\n            return out;\n        };\n\n        ListSlice.prototype.nextNode = function nextNode(node) {\n            if (node === this._tail) return null;\n            return node.next;\n        };\n\n        ListSlice.prototype.prevNode = function prevNode(node) {\n            if (node === this._head) return null;\n            return node.prev;\n        };\n\n        ListSlice.prototype.isEmpty = function isEmpty() {\n            return false;\n        };\n\n        return ListSlice;\n    })();\n\n    var EMPTY_SLICE = new ListSlice(null, null);\n\n    var HAS_TYPED_ARRAYS = typeof Uint32Array !== 'undefined';\n    var A = undefined;\n    if (HAS_TYPED_ARRAYS) {\n        A = Uint32Array;\n    } else {\n        A = Array;\n    }\n    var A$1 = A;\n\n    var HAS_NATIVE_WEAKMAP = (function () {\n        // detect if `WeakMap` is even present\n        var hasWeakMap = typeof WeakMap === 'function';\n        if (!hasWeakMap) {\n            return false;\n        }\n        var instance = new WeakMap();\n        // use `Object`'s `.toString` directly to prevent us from detecting\n        // polyfills as native weakmaps\n        return Object.prototype.toString.call(instance) === '[object WeakMap]';\n    })();\n\n    exports.getAttrNamespace = getAttrNamespace;\n    exports.assert = debugAssert;\n    exports.LOGGER = logger;\n    exports.Logger = Logger;\n    exports.LogLevel = LogLevel;\n    exports.assign = assign;\n    exports.fillNulls = fillNulls;\n    exports.ensureGuid = ensureGuid;\n    exports.initializeGuid = initializeGuid;\n    exports.Stack = Stack;\n    exports.DictSet = DictSet;\n    exports.dict = dict;\n    exports.EMPTY_SLICE = EMPTY_SLICE;\n    exports.LinkedList = LinkedList;\n    exports.ListNode = ListNode;\n    exports.ListSlice = ListSlice;\n    exports.A = A$1;\n    exports.HAS_NATIVE_WEAKMAP = HAS_NATIVE_WEAKMAP;\n    exports.unwrap = unwrap;\n    exports.expect = expect;\n    exports.unreachable = unreachable;\n});\nenifed(\"@glimmer/wire-format\", [\"exports\"], function (exports) {\n    \"use strict\";\n\n    var Opcodes;\n    (function (Opcodes) {\n        // Statements\n        Opcodes[Opcodes[\"Text\"] = 0] = \"Text\";\n        Opcodes[Opcodes[\"Append\"] = 1] = \"Append\";\n        Opcodes[Opcodes[\"UnoptimizedAppend\"] = 2] = \"UnoptimizedAppend\";\n        Opcodes[Opcodes[\"OptimizedAppend\"] = 3] = \"OptimizedAppend\";\n        Opcodes[Opcodes[\"Comment\"] = 4] = \"Comment\";\n        Opcodes[Opcodes[\"Modifier\"] = 5] = \"Modifier\";\n        Opcodes[Opcodes[\"Block\"] = 6] = \"Block\";\n        Opcodes[Opcodes[\"ScannedBlock\"] = 7] = \"ScannedBlock\";\n        Opcodes[Opcodes[\"NestedBlock\"] = 8] = \"NestedBlock\";\n        Opcodes[Opcodes[\"Component\"] = 9] = \"Component\";\n        Opcodes[Opcodes[\"ScannedComponent\"] = 10] = \"ScannedComponent\";\n        Opcodes[Opcodes[\"OpenElement\"] = 11] = \"OpenElement\";\n        Opcodes[Opcodes[\"OpenPrimitiveElement\"] = 12] = \"OpenPrimitiveElement\";\n        Opcodes[Opcodes[\"FlushElement\"] = 13] = \"FlushElement\";\n        Opcodes[Opcodes[\"CloseElement\"] = 14] = \"CloseElement\";\n        Opcodes[Opcodes[\"StaticAttr\"] = 15] = \"StaticAttr\";\n        Opcodes[Opcodes[\"DynamicAttr\"] = 16] = \"DynamicAttr\";\n        Opcodes[Opcodes[\"AnyDynamicAttr\"] = 17] = \"AnyDynamicAttr\";\n        Opcodes[Opcodes[\"Yield\"] = 18] = \"Yield\";\n        Opcodes[Opcodes[\"Partial\"] = 19] = \"Partial\";\n        Opcodes[Opcodes[\"StaticPartial\"] = 20] = \"StaticPartial\";\n        Opcodes[Opcodes[\"DynamicPartial\"] = 21] = \"DynamicPartial\";\n        Opcodes[Opcodes[\"DynamicArg\"] = 22] = \"DynamicArg\";\n        Opcodes[Opcodes[\"StaticArg\"] = 23] = \"StaticArg\";\n        Opcodes[Opcodes[\"TrustingAttr\"] = 24] = \"TrustingAttr\";\n        Opcodes[Opcodes[\"Debugger\"] = 25] = \"Debugger\";\n        // Expressions\n        Opcodes[Opcodes[\"Unknown\"] = 26] = \"Unknown\";\n        Opcodes[Opcodes[\"Arg\"] = 27] = \"Arg\";\n        Opcodes[Opcodes[\"Get\"] = 28] = \"Get\";\n        Opcodes[Opcodes[\"HasBlock\"] = 29] = \"HasBlock\";\n        Opcodes[Opcodes[\"HasBlockParams\"] = 30] = \"HasBlockParams\";\n        Opcodes[Opcodes[\"Undefined\"] = 31] = \"Undefined\";\n        Opcodes[Opcodes[\"Function\"] = 32] = \"Function\";\n        Opcodes[Opcodes[\"Helper\"] = 33] = \"Helper\";\n        Opcodes[Opcodes[\"Concat\"] = 34] = \"Concat\";\n    })(Opcodes || (exports.Ops = Opcodes = {}));\n\n    function is(variant) {\n        return function (value) {\n            return value[0] === variant;\n        };\n    }\n    var Expressions;\n    (function (Expressions) {\n        Expressions.isUnknown = is(Opcodes.Unknown);\n        Expressions.isArg = is(Opcodes.Arg);\n        Expressions.isGet = is(Opcodes.Get);\n        Expressions.isConcat = is(Opcodes.Concat);\n        Expressions.isHelper = is(Opcodes.Helper);\n        Expressions.isHasBlock = is(Opcodes.HasBlock);\n        Expressions.isHasBlockParams = is(Opcodes.HasBlockParams);\n        Expressions.isUndefined = is(Opcodes.Undefined);\n        function isPrimitiveValue(value) {\n            if (value === null) {\n                return true;\n            }\n            return typeof value !== 'object';\n        }\n        Expressions.isPrimitiveValue = isPrimitiveValue;\n    })(Expressions || (exports.Expressions = Expressions = {}));\n    var Statements;\n    (function (Statements) {\n        Statements.isText = is(Opcodes.Text);\n        Statements.isAppend = is(Opcodes.Append);\n        Statements.isComment = is(Opcodes.Comment);\n        Statements.isModifier = is(Opcodes.Modifier);\n        Statements.isBlock = is(Opcodes.Block);\n        Statements.isComponent = is(Opcodes.Component);\n        Statements.isOpenElement = is(Opcodes.OpenElement);\n        Statements.isFlushElement = is(Opcodes.FlushElement);\n        Statements.isCloseElement = is(Opcodes.CloseElement);\n        Statements.isStaticAttr = is(Opcodes.StaticAttr);\n        Statements.isDynamicAttr = is(Opcodes.DynamicAttr);\n        Statements.isYield = is(Opcodes.Yield);\n        Statements.isPartial = is(Opcodes.Partial);\n        Statements.isDynamicArg = is(Opcodes.DynamicArg);\n        Statements.isStaticArg = is(Opcodes.StaticArg);\n        Statements.isTrustingAttr = is(Opcodes.TrustingAttr);\n        Statements.isDebugger = is(Opcodes.Debugger);\n        function isAttribute(val) {\n            return val[0] === Opcodes.StaticAttr || val[0] === Opcodes.DynamicAttr;\n        }\n        Statements.isAttribute = isAttribute;\n        function isArgument(val) {\n            return val[0] === Opcodes.StaticArg || val[0] === Opcodes.DynamicArg;\n        }\n        Statements.isArgument = isArgument;\n        function isParameter(val) {\n            return isAttribute(val) || isArgument(val);\n        }\n        Statements.isParameter = isParameter;\n        function getParameterName(s) {\n            return s[1];\n        }\n        Statements.getParameterName = getParameterName;\n    })(Statements || (exports.Statements = Statements = {}));\n\n    exports.is = is;\n    exports.Expressions = Expressions;\n    exports.Statements = Statements;\n    exports.Ops = Opcodes;\n});\nenifed('backburner', ['exports'], function (exports) { 'use strict';\n\nvar NUMBER = /\\d+/;\n\nfunction each(collection, callback) {\n  for (var i = 0; i < collection.length; i++) {\n    callback(collection[i]);\n  }\n}\n\nfunction isString(suspect) {\n  return typeof suspect === 'string';\n}\n\nfunction isFunction(suspect) {\n  return typeof suspect === 'function';\n}\n\nfunction isNumber(suspect) {\n  return typeof suspect === 'number';\n}\n\nfunction isCoercableNumber(number) {\n  return isNumber(number) || NUMBER.test(number);\n}\n\nfunction binarySearch(time, timers) {\n  var start = 0;\n  var end = timers.length - 2;\n  var middle, l;\n\n  while (start < end) {\n    // since timers is an array of pairs 'l' will always\n    // be an integer\n    l = (end - start) / 2;\n\n    // compensate for the index in case even number\n    // of pairs inside timers\n    middle = start + l - (l % 2);\n\n    if (time >= timers[middle]) {\n      start = middle + 2;\n    } else {\n      end = middle;\n    }\n  }\n\n  return (time >= timers[start]) ? start + 2 : start;\n}\n\nfunction Queue(name, options, globalOptions) {\n  this.name = name;\n  this.globalOptions = globalOptions || {};\n  this.options = options;\n  this._queue = [];\n  this.targetQueues = {};\n  this._queueBeingFlushed = undefined;\n}\n\nQueue.prototype = {\n  push: function(target, method, args, stack) {\n    var queue = this._queue;\n    queue.push(target, method, args, stack);\n\n    return {\n      queue: this,\n      target: target,\n      method: method\n    };\n  },\n\n  pushUniqueWithoutGuid: function(target, method, args, stack) {\n    var queue = this._queue;\n\n    for (var i = 0, l = queue.length; i < l; i += 4) {\n      var currentTarget = queue[i];\n      var currentMethod = queue[i+1];\n\n      if (currentTarget === target && currentMethod === method) {\n        queue[i+2] = args;  // replace args\n        queue[i+3] = stack; // replace stack\n        return;\n      }\n    }\n\n    queue.push(target, method, args, stack);\n  },\n\n  targetQueue: function(targetQueue, target, method, args, stack) {\n    var queue = this._queue;\n\n    for (var i = 0, l = targetQueue.length; i < l; i += 2) {\n      var currentMethod = targetQueue[i];\n      var currentIndex  = targetQueue[i + 1];\n\n      if (currentMethod === method) {\n        queue[currentIndex + 2] = args;  // replace args\n        queue[currentIndex + 3] = stack; // replace stack\n        return;\n      }\n    }\n\n    targetQueue.push(\n      method,\n      queue.push(target, method, args, stack) - 4\n    );\n  },\n\n  pushUniqueWithGuid: function(guid, target, method, args, stack) {\n    var hasLocalQueue = this.targetQueues[guid];\n\n    if (hasLocalQueue) {\n      this.targetQueue(hasLocalQueue, target, method, args, stack);\n    } else {\n      this.targetQueues[guid] = [\n        method,\n        this._queue.push(target, method, args, stack) - 4\n      ];\n    }\n\n    return {\n      queue: this,\n      target: target,\n      method: method\n    };\n  },\n\n  pushUnique: function(target, method, args, stack) {\n    var KEY = this.globalOptions.GUID_KEY;\n\n    if (target && KEY) {\n      var guid = target[KEY];\n      if (guid) {\n        return this.pushUniqueWithGuid(guid, target, method, args, stack);\n      }\n    }\n\n    this.pushUniqueWithoutGuid(target, method, args, stack);\n\n    return {\n      queue: this,\n      target: target,\n      method: method\n    };\n  },\n\n  invoke: function(target, method, args /*, onError, errorRecordedForStack */) {\n    if (args && args.length > 0) {\n      method.apply(target, args);\n    } else {\n      method.call(target);\n    }\n  },\n\n  invokeWithOnError: function(target, method, args, onError, errorRecordedForStack) {\n    try {\n      if (args && args.length > 0) {\n        method.apply(target, args);\n      } else {\n        method.call(target);\n      }\n    } catch(error) {\n      onError(error, errorRecordedForStack);\n    }\n  },\n\n  flush: function(sync) {\n    var queue = this._queue;\n    var length = queue.length;\n\n    if (length === 0) {\n      return;\n    }\n\n    var globalOptions = this.globalOptions;\n    var options = this.options;\n    var before = options && options.before;\n    var after = options && options.after;\n    var onError = globalOptions.onError || (globalOptions.onErrorTarget &&\n                                            globalOptions.onErrorTarget[globalOptions.onErrorMethod]);\n    var target, method, args, errorRecordedForStack;\n    var invoke = onError ? this.invokeWithOnError : this.invoke;\n\n    this.targetQueues = Object.create(null);\n    var queueItems = this._queueBeingFlushed = this._queue.slice();\n    this._queue = [];\n\n    if (before) {\n      before();\n    }\n\n    for (var i = 0; i < length; i += 4) {\n      target                = queueItems[i];\n      method                = queueItems[i+1];\n      args                  = queueItems[i+2];\n      errorRecordedForStack = queueItems[i+3]; // Debugging assistance\n\n      if (isString(method)) {\n        method = target[method];\n      }\n\n      // method could have been nullified / canceled during flush\n      if (method) {\n        //\n        //    ** Attention intrepid developer **\n        //\n        //    To find out the stack of this task when it was scheduled onto\n        //    the run loop, add the following to your app.js:\n        //\n        //    Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production.\n        //\n        //    Once that is in place, when you are at a breakpoint and navigate\n        //    here in the stack explorer, you can look at `errorRecordedForStack.stack`,\n        //    which will be the captured stack when this job was scheduled.\n        //\n        //    One possible long-term solution is the following Chrome issue:\n        //       https://bugs.chromium.org/p/chromium/issues/detail?id=332624\n        //\n        invoke(target, method, args, onError, errorRecordedForStack);\n      }\n    }\n\n    if (after) {\n      after();\n    }\n\n    this._queueBeingFlushed = undefined;\n\n    if (sync !== false &&\n        this._queue.length > 0) {\n      // check if new items have been added\n      this.flush(true);\n    }\n  },\n\n  cancel: function(actionToCancel) {\n    var queue = this._queue, currentTarget, currentMethod, i, l;\n    var target = actionToCancel.target;\n    var method = actionToCancel.method;\n    var GUID_KEY = this.globalOptions.GUID_KEY;\n\n    if (GUID_KEY && this.targetQueues && target) {\n      var targetQueue = this.targetQueues[target[GUID_KEY]];\n\n      if (targetQueue) {\n        for (i = 0, l = targetQueue.length; i < l; i++) {\n          if (targetQueue[i] === method) {\n            targetQueue.splice(i, 1);\n          }\n        }\n      }\n    }\n\n    for (i = 0, l = queue.length; i < l; i += 4) {\n      currentTarget = queue[i];\n      currentMethod = queue[i+1];\n\n      if (currentTarget === target &&\n          currentMethod === method) {\n        queue.splice(i, 4);\n        return true;\n      }\n    }\n\n    // if not found in current queue\n    // could be in the queue that is being flushed\n    queue = this._queueBeingFlushed;\n\n    if (!queue) {\n      return;\n    }\n\n    for (i = 0, l = queue.length; i < l; i += 4) {\n      currentTarget = queue[i];\n      currentMethod = queue[i+1];\n\n      if (currentTarget === target &&\n          currentMethod === method) {\n        // don't mess with array during flush\n        // just nullify the method\n        queue[i+1] = null;\n        return true;\n      }\n    }\n  }\n};\n\nfunction DeferredActionQueues(queueNames, options) {\n  var queues = this.queues = {};\n  this.queueNames = queueNames = queueNames || [];\n\n  this.options = options;\n\n  each(queueNames, function(queueName) {\n    queues[queueName] = new Queue(queueName, options[queueName], options);\n  });\n}\n\nfunction noSuchQueue(name) {\n  throw new Error('You attempted to schedule an action in a queue (' + name + ') that doesn\\'t exist');\n}\n\nfunction noSuchMethod(name) {\n  throw new Error('You attempted to schedule an action in a queue (' + name + ') for a method that doesn\\'t exist');\n}\n\nDeferredActionQueues.prototype = {\n  schedule: function(name, target, method, args, onceFlag, stack) {\n    var queues = this.queues;\n    var queue = queues[name];\n\n    if (!queue) {\n      noSuchQueue(name);\n    }\n\n    if (!method) {\n      noSuchMethod(name);\n    }\n\n    if (onceFlag) {\n      return queue.pushUnique(target, method, args, stack);\n    } else {\n      return queue.push(target, method, args, stack);\n    }\n  },\n\n  flush: function() {\n    var queues = this.queues;\n    var queueNames = this.queueNames;\n    var queueName, queue;\n    var queueNameIndex = 0;\n    var numberOfQueues = queueNames.length;\n\n    while (queueNameIndex < numberOfQueues) {\n      queueName = queueNames[queueNameIndex];\n      queue = queues[queueName];\n\n      var numberOfQueueItems = queue._queue.length;\n\n      if (numberOfQueueItems === 0) {\n        queueNameIndex++;\n      } else {\n        queue.flush(false /* async */);\n        queueNameIndex = 0;\n      }\n    }\n  }\n};\n\nfunction Backburner(queueNames, options) {\n  this.queueNames = queueNames;\n  this.options = options || {};\n  if (!this.options.defaultQueue) {\n    this.options.defaultQueue = queueNames[0];\n  }\n  this.instanceStack = [];\n  this._debouncees = [];\n  this._throttlers = [];\n  this._eventCallbacks = {\n    end: [],\n    begin: []\n  };\n\n  var _this = this;\n  this._boundClearItems = function() {\n    clearItems();\n  };\n\n  this._timerTimeoutId = undefined;\n  this._timers = [];\n\n  this._platform = this.options._platform || {\n    setTimeout: function (fn, ms) {\n      return setTimeout(fn, ms);\n    },\n    clearTimeout: function (id) {\n      clearTimeout(id);\n    }\n  };\n\n  this._boundRunExpiredTimers = function () {\n    _this._runExpiredTimers();\n  };\n}\n\nBackburner.prototype = {\n  begin: function() {\n    var options = this.options;\n    var onBegin = options && options.onBegin;\n    var previousInstance = this.currentInstance;\n\n    if (previousInstance) {\n      this.instanceStack.push(previousInstance);\n    }\n\n    this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n    this._trigger('begin', this.currentInstance, previousInstance);\n    if (onBegin) {\n      onBegin(this.currentInstance, previousInstance);\n    }\n  },\n\n  end: function() {\n    var options = this.options;\n    var onEnd = options && options.onEnd;\n    var currentInstance = this.currentInstance;\n    var nextInstance = null;\n\n    // Prevent double-finally bug in Safari 6.0.2 and iOS 6\n    // This bug appears to be resolved in Safari 6.0.5 and iOS 7\n    var finallyAlreadyCalled = false;\n    try {\n      currentInstance.flush();\n    } finally {\n      if (!finallyAlreadyCalled) {\n        finallyAlreadyCalled = true;\n\n        this.currentInstance = null;\n\n        if (this.instanceStack.length) {\n          nextInstance = this.instanceStack.pop();\n          this.currentInstance = nextInstance;\n        }\n        this._trigger('end', currentInstance, nextInstance);\n        if (onEnd) {\n          onEnd(currentInstance, nextInstance);\n        }\n      }\n    }\n  },\n\n  /**\n   Trigger an event. Supports up to two arguments. Designed around\n   triggering transition events from one run loop instance to the\n   next, which requires an argument for the first instance and then\n   an argument for the next instance.\n\n   @private\n   @method _trigger\n   @param {String} eventName\n   @param {any} arg1\n   @param {any} arg2\n   */\n  _trigger: function(eventName, arg1, arg2) {\n    var callbacks = this._eventCallbacks[eventName];\n    if (callbacks) {\n      for (var i = 0; i < callbacks.length; i++) {\n        callbacks[i](arg1, arg2);\n      }\n    }\n  },\n\n  on: function(eventName, callback) {\n    if (typeof callback !== 'function') {\n      throw new TypeError('Callback must be a function');\n    }\n    var callbacks = this._eventCallbacks[eventName];\n    if (callbacks) {\n      callbacks.push(callback);\n    } else {\n      throw new TypeError('Cannot on() event \"' + eventName + '\" because it does not exist');\n    }\n  },\n\n  off: function(eventName, callback) {\n    if (eventName) {\n      var callbacks = this._eventCallbacks[eventName];\n      var callbackFound = false;\n      if (!callbacks) return;\n      if (callback) {\n        for (var i = 0; i < callbacks.length; i++) {\n          if (callbacks[i] === callback) {\n            callbackFound = true;\n            callbacks.splice(i, 1);\n            i--;\n          }\n        }\n      }\n      if (!callbackFound) {\n        throw new TypeError('Cannot off() callback that does not exist');\n      }\n    } else {\n      throw new TypeError('Cannot off() event \"' + eventName + '\" because it does not exist');\n    }\n  },\n\n  run: function(/* target, method, args */) {\n    var length = arguments.length;\n    var method, target, args;\n\n    if (length === 1) {\n      method = arguments[0];\n      target = null;\n    } else {\n      target = arguments[0];\n      method = arguments[1];\n    }\n\n    if (isString(method)) {\n      method = target[method];\n    }\n\n    if (length > 2) {\n      args = new Array(length - 2);\n      for (var i = 0, l = length - 2; i < l; i++) {\n        args[i] = arguments[i + 2];\n      }\n    } else {\n      args = [];\n    }\n\n    var onError = getOnError(this.options);\n\n    this.begin();\n\n    // guard against Safari 6's double-finally bug\n    var didFinally = false;\n\n    if (onError) {\n      try {\n        return method.apply(target, args);\n      } catch(error) {\n        onError(error);\n      } finally {\n        if (!didFinally) {\n          didFinally = true;\n          this.end();\n        }\n      }\n    } else {\n      try {\n        return method.apply(target, args);\n      } finally {\n        if (!didFinally) {\n          didFinally = true;\n          this.end();\n        }\n      }\n    }\n  },\n\n  /*\n    Join the passed method with an existing queue and execute immediately,\n    if there isn't one use `Backburner#run`.\n\n    The join method is like the run method except that it will schedule into\n    an existing queue if one already exists. In either case, the join method will\n    immediately execute the passed in function and return its result.\n\n    @method join\n    @param {Object} target\n    @param {Function} method The method to be executed\n    @param {any} args The method arguments\n    @return method result\n  */\n  join: function(/* target, method, args */) {\n    if (!this.currentInstance) {\n      return this.run.apply(this, arguments);\n    }\n\n    var length = arguments.length;\n    var method, target;\n\n    if (length === 1) {\n      method = arguments[0];\n      target = null;\n    } else {\n      target = arguments[0];\n      method = arguments[1];\n    }\n\n    if (isString(method)) {\n      method = target[method];\n    }\n\n    if (length === 1) {\n      return method();\n    } else if (length === 2) {\n      return method.call(target);\n    } else {\n      var args = new Array(length - 2);\n      for (var i = 0, l = length - 2; i < l; i++) {\n        args[i] = arguments[i + 2];\n      }\n      return method.apply(target, args);\n    }\n  },\n\n\n  /*\n    Defer the passed function to run inside the specified queue.\n\n    @method defer\n    @param {String} queueName\n    @param {Object} target\n    @param {Function|String} method The method or method name to be executed\n    @param {any} args The method arguments\n    @return method result\n  */\n  defer: function(queueName /* , target, method, args */) {\n    var length = arguments.length;\n    var method, target, args;\n\n    if (length === 2) {\n      method = arguments[1];\n      target = null;\n    } else {\n      target = arguments[1];\n      method = arguments[2];\n    }\n\n    if (isString(method)) {\n      method = target[method];\n    }\n\n    var stack = this.DEBUG ? new Error() : undefined;\n\n    if (length > 3) {\n      args = new Array(length - 3);\n      for (var i = 3; i < length; i++) {\n        args[i-3] = arguments[i];\n      }\n    } else {\n      args = undefined;\n    }\n\n    if (!this.currentInstance) { createAutorun(this); }\n    return this.currentInstance.schedule(queueName, target, method, args, false, stack);\n  },\n\n  deferOnce: function(queueName /* , target, method, args */) {\n    var length = arguments.length;\n    var method, target, args;\n\n    if (length === 2) {\n      method = arguments[1];\n      target = null;\n    } else {\n      target = arguments[1];\n      method = arguments[2];\n    }\n\n    if (isString(method)) {\n      method = target[method];\n    }\n\n    var stack = this.DEBUG ? new Error() : undefined;\n\n    if (length > 3) {\n      args = new Array(length - 3);\n      for (var i = 3; i < length; i++) {\n        args[i-3] = arguments[i];\n      }\n    } else {\n      args = undefined;\n    }\n\n    if (!this.currentInstance) {\n      createAutorun(this);\n    }\n    return this.currentInstance.schedule(queueName, target, method, args, true, stack);\n  },\n\n  setTimeout: function() {\n    var l = arguments.length;\n    var args = new Array(l);\n\n    for (var x = 0; x < l; x++) {\n      args[x] = arguments[x];\n    }\n\n    var length = args.length,\n        method, wait, target,\n        methodOrTarget, methodOrWait, methodOrArgs;\n\n    if (length === 0) {\n      return;\n    } else if (length === 1) {\n      method = args.shift();\n      wait = 0;\n    } else if (length === 2) {\n      methodOrTarget = args[0];\n      methodOrWait = args[1];\n\n      if (isFunction(methodOrWait) || isFunction(methodOrTarget[methodOrWait])) {\n        target = args.shift();\n        method = args.shift();\n        wait = 0;\n      } else if (isCoercableNumber(methodOrWait)) {\n        method = args.shift();\n        wait = args.shift();\n      } else {\n        method = args.shift();\n        wait =  0;\n      }\n    } else {\n      var last = args[args.length - 1];\n\n      if (isCoercableNumber(last)) {\n        wait = args.pop();\n      } else {\n        wait = 0;\n      }\n\n      methodOrTarget = args[0];\n      methodOrArgs = args[1];\n\n      if (isFunction(methodOrArgs) || (isString(methodOrArgs) &&\n                                      methodOrTarget !== null &&\n                                      methodOrArgs in methodOrTarget)) {\n        target = args.shift();\n        method = args.shift();\n      } else {\n        method = args.shift();\n      }\n    }\n\n    var executeAt = Date.now() + parseInt(wait !== wait ? 0 : wait, 10);\n\n    if (isString(method)) {\n      method = target[method];\n    }\n\n    var onError = getOnError(this.options);\n\n    function fn() {\n      if (onError) {\n        try {\n          method.apply(target, args);\n        } catch (e) {\n          onError(e);\n        }\n      } else {\n        method.apply(target, args);\n      }\n    }\n\n    return this._setTimeout(fn, executeAt);\n  },\n\n  _setTimeout: function (fn, executeAt) {\n    if (this._timers.length === 0) {\n      this._timers.push(executeAt, fn);\n      this._installTimerTimeout();\n      return fn;\n    }\n\n    // find position to insert\n    var i = binarySearch(executeAt, this._timers);\n\n    this._timers.splice(i, 0, executeAt, fn);\n\n    // we should be the new earliest timer if i == 0\n    if (i === 0) {\n      this._reinstallTimerTimeout();\n    }\n\n    return fn;\n  },\n\n  throttle: function(target, method /* , args, wait, [immediate] */) {\n    var backburner = this;\n    var args = new Array(arguments.length);\n    for (var i = 0; i < arguments.length; i++) {\n      args[i] = arguments[i];\n    }\n    var immediate = args.pop();\n    var wait, throttler, index, timer;\n\n    if (isNumber(immediate) || isString(immediate)) {\n      wait = immediate;\n      immediate = true;\n    } else {\n      wait = args.pop();\n    }\n\n    wait = parseInt(wait, 10);\n\n    index = findThrottler(target, method, this._throttlers);\n    if (index > -1) { return this._throttlers[index]; } // throttled\n\n    timer = this._platform.setTimeout(function() {\n      if (!immediate) {\n        backburner.run.apply(backburner, args);\n      }\n      var index = findThrottler(target, method, backburner._throttlers);\n      if (index > -1) {\n        backburner._throttlers.splice(index, 1);\n      }\n    }, wait);\n\n    if (immediate) {\n      this.run.apply(this, args);\n    }\n\n    throttler = [target, method, timer];\n\n    this._throttlers.push(throttler);\n\n    return throttler;\n  },\n\n  debounce: function(target, method /* , args, wait, [immediate] */) {\n    var backburner = this;\n    var args = new Array(arguments.length);\n    for (var i = 0; i < arguments.length; i++) {\n      args[i] = arguments[i];\n    }\n\n    var immediate = args.pop();\n    var wait, index, debouncee, timer;\n\n    if (isNumber(immediate) || isString(immediate)) {\n      wait = immediate;\n      immediate = false;\n    } else {\n      wait = args.pop();\n    }\n\n    wait = parseInt(wait, 10);\n    // Remove debouncee\n    index = findDebouncee(target, method, this._debouncees);\n\n    if (index > -1) {\n      debouncee = this._debouncees[index];\n      this._debouncees.splice(index, 1);\n      this._platform.clearTimeout(debouncee[2]);\n    }\n\n    timer = this._platform.setTimeout(function() {\n      if (!immediate) {\n        backburner.run.apply(backburner, args);\n      }\n      var index = findDebouncee(target, method, backburner._debouncees);\n      if (index > -1) {\n        backburner._debouncees.splice(index, 1);\n      }\n    }, wait);\n\n    if (immediate && index === -1) {\n      backburner.run.apply(backburner, args);\n    }\n\n    debouncee = [\n      target,\n      method,\n      timer\n    ];\n\n    backburner._debouncees.push(debouncee);\n\n    return debouncee;\n  },\n\n  cancelTimers: function() {\n    each(this._throttlers, this._boundClearItems);\n    this._throttlers = [];\n\n    each(this._debouncees, this._boundClearItems);\n    this._debouncees = [];\n\n    this._clearTimerTimeout();\n    this._timers = [];\n\n    if (this._autorun) {\n      this._platform.clearTimeout(this._autorun);\n      this._autorun = null;\n    }\n  },\n\n  hasTimers: function() {\n    return !!this._timers.length || !!this._debouncees.length || !!this._throttlers.length || this._autorun;\n  },\n\n  cancel: function (timer) {\n    var timerType = typeof timer;\n\n    if (timer && timerType === 'object' && timer.queue && timer.method) { // we're cancelling a deferOnce\n      return timer.queue.cancel(timer);\n    } else if (timerType === 'function') { // we're cancelling a setTimeout\n      for (var i = 0, l = this._timers.length; i < l; i += 2) {\n        if (this._timers[i + 1] === timer) {\n          this._timers.splice(i, 2); // remove the two elements\n          if (i === 0) {\n            this._reinstallTimerTimeout();\n          }\n          return true;\n        }\n      }\n    } else if (Object.prototype.toString.call(timer) === '[object Array]'){ // we're cancelling a throttle or debounce\n      return this._cancelItem(findThrottler, this._throttlers, timer) ||\n               this._cancelItem(findDebouncee, this._debouncees, timer);\n    } else {\n      return; // timer was null or not a timer\n    }\n  },\n\n  _cancelItem: function(findMethod, array, timer){\n    var item, index;\n\n    if (timer.length < 3) { return false; }\n\n    index = findMethod(timer[0], timer[1], array);\n\n    if (index > -1) {\n\n      item = array[index];\n\n      if (item[2] === timer[2]) {\n        array.splice(index, 1);\n        this._platform.clearTimeout(timer[2]);\n        return true;\n      }\n    }\n\n    return false;\n  },\n\n  _runExpiredTimers: function () {\n    this._timerTimeoutId = undefined;\n    this.run(this, this._scheduleExpiredTimers);\n  },\n\n  _scheduleExpiredTimers: function () {\n    var n = Date.now();\n    var timers = this._timers;\n    var i = 0;\n    var l = timers.length;\n    for (; i < l; i += 2) {\n      var executeAt = timers[i];\n      var fn = timers[i+1];\n      if (executeAt <= n) {\n        this.schedule(this.options.defaultQueue, null, fn);\n      } else {\n        break;\n      }\n    }\n    timers.splice(0, i);\n    this._installTimerTimeout();\n  },\n\n  _reinstallTimerTimeout: function () {\n    this._clearTimerTimeout();\n    this._installTimerTimeout();\n  },\n\n  _clearTimerTimeout: function () {\n    if (!this._timerTimeoutId) {\n      return;\n    }\n    this._platform.clearTimeout(this._timerTimeoutId);\n    this._timerTimeoutId = undefined;\n  },\n\n  _installTimerTimeout: function () {\n    if (!this._timers.length) {\n      return;\n    }\n    var minExpiresAt = this._timers[0];\n    var n = Date.now();\n    var wait = Math.max(0, minExpiresAt - n);\n    this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n  }\n};\n\nBackburner.prototype.schedule = Backburner.prototype.defer;\nBackburner.prototype.scheduleOnce = Backburner.prototype.deferOnce;\nBackburner.prototype.later = Backburner.prototype.setTimeout;\n\nfunction getOnError(options) {\n  return options.onError || (options.onErrorTarget && options.onErrorTarget[options.onErrorMethod]);\n}\n\nfunction createAutorun(backburner) {\n  var setTimeout = backburner._platform.setTimeout;\n  backburner.begin();\n  backburner._autorun = setTimeout(function() {\n    backburner._autorun = null;\n    backburner.end();\n  }, 0);\n}\n\nfunction findDebouncee(target, method, debouncees) {\n  return findItem(target, method, debouncees);\n}\n\nfunction findThrottler(target, method, throttlers) {\n  return findItem(target, method, throttlers);\n}\n\nfunction findItem(target, method, collection) {\n  var item;\n  var index = -1;\n\n  for (var i = 0, l = collection.length; i < l; i++) {\n    item = collection[i];\n    if (item[0] === target && item[1] === method) {\n      index = i;\n      break;\n    }\n  }\n\n  return index;\n}\n\nfunction clearItems(item) {\n  this._platform.clearTimeout(item[2]);\n}\n\nexports['default'] = Backburner;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n});\nenifed('container/container', ['exports', 'ember-debug', 'ember-utils', 'ember-environment'], function (exports, _emberDebug, _emberUtils, _emberEnvironment) {\n  'use strict';\n\n  var _Container$prototype;\n\n  exports.default = Container;\n  exports.buildFakeContainerWithDeprecations = buildFakeContainerWithDeprecations;\n\n  var CONTAINER_OVERRIDE = _emberUtils.symbol('CONTAINER_OVERRIDE');\n  var FACTORY_FOR = _emberUtils.symbol('FACTORY_FOR');\n  exports.FACTORY_FOR = FACTORY_FOR;\n  var LOOKUP_FACTORY = _emberUtils.symbol('LOOKUP_FACTORY');\n\n  exports.LOOKUP_FACTORY = LOOKUP_FACTORY;\n  /**\n   A container used to instantiate and cache objects.\n  \n   Every `Container` must be associated with a `Registry`, which is referenced\n   to determine the factory and options that should be used to instantiate\n   objects.\n  \n   The public API for `Container` is still in flux and should not be considered\n   stable.\n  \n   @private\n   @class Container\n   */\n\n  function Container(registry, options) {\n    this.registry = registry;\n    this.owner = options && options.owner ? options.owner : null;\n    this.cache = _emberUtils.dictionary(options && options.cache ? options.cache : null);\n    this.factoryCache = _emberUtils.dictionary(options && options.factoryCache ? options.factoryCache : null);\n    this.factoryManagerCache = _emberUtils.dictionary(options && options.factoryManagerCache ? options.factoryManagerCache : null);\n    this.validationCache = _emberUtils.dictionary(options && options.validationCache ? options.validationCache : null);\n    this._fakeContainerToInject = buildFakeContainerWithDeprecations(this);\n    this[CONTAINER_OVERRIDE] = undefined;\n    this.isDestroyed = false;\n  }\n\n  Container.prototype = (_Container$prototype = {\n    /**\n     @private\n     @property owner\n     @type Object\n     */\n    owner: null,\n\n    /**\n     @private\n     @property registry\n     @type Registry\n     @since 1.11.0\n     */\n    registry: null,\n\n    /**\n     @private\n     @property cache\n     @type InheritingDict\n     */\n    cache: null,\n\n    /**\n     @private\n     @property factoryCache\n     @type InheritingDict\n     */\n    factoryCache: null,\n\n    /**\n     @private\n     @property validationCache\n     @type InheritingDict\n     */\n    validationCache: null,\n\n    /**\n     Given a fullName return a corresponding instance.\n      The default behaviour is for lookup to return a singleton instance.\n     The singleton is scoped to the container, allowing multiple containers\n     to all have their own locally scoped singletons.\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('api:twitter', Twitter);\n      let twitter = container.lookup('api:twitter');\n      twitter instanceof Twitter; // => true\n      // by default the container will return singletons\n     let twitter2 = container.lookup('api:twitter');\n     twitter2 instanceof Twitter; // => true\n      twitter === twitter2; //=> true\n     ```\n      If singletons are not wanted, an optional flag can be provided at lookup.\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('api:twitter', Twitter);\n      let twitter = container.lookup('api:twitter', { singleton: false });\n     let twitter2 = container.lookup('api:twitter', { singleton: false });\n      twitter === twitter2; //=> false\n     ```\n      @private\n     @method lookup\n     @param {String} fullName\n     @param {Object} [options]\n     @param {String} [options.source] The fullname of the request source (used for local lookup)\n     @return {any}\n     */\n    lookup: function (fullName, options) {\n      _emberDebug.assert('fullName must be a proper full name', this.registry.validateFullName(fullName));\n      return lookup(this, this.registry.normalize(fullName), options);\n    },\n\n    /**\n     Given a fullName, return the corresponding factory.\n      @private\n     @method lookupFactory\n     @param {String} fullName\n     @param {Object} [options]\n     @param {String} [options.source] The fullname of the request source (used for local lookup)\n     @return {any}\n     */\n    lookupFactory: function (fullName, options) {\n      _emberDebug.assert('fullName must be a proper full name', this.registry.validateFullName(fullName));\n\n      _emberDebug.deprecate('Using \"_lookupFactory\" is deprecated. Please use container.factoryFor instead.', !true, { id: 'container-lookupFactory', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_migrating-from-_lookupfactory-to-factoryfor' });\n\n      return deprecatedFactoryFor(this, this.registry.normalize(fullName), options);\n    }\n\n  }, _Container$prototype[LOOKUP_FACTORY] = function (fullName, options) {\n    _emberDebug.assert('fullName must be a proper full name', this.registry.validateFullName(fullName));\n    return deprecatedFactoryFor(this, this.registry.normalize(fullName), options);\n  }, _Container$prototype[FACTORY_FOR] = function (fullName) {\n    var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n    if (true) {\n      if (true) {\n        return this.factoryFor(fullName, options);\n      } else {\n        /* This throws in case of a poorly designed build */\n        throw new Error('If ember-no-double-extend is enabled, ember-factory-for must also be enabled');\n      }\n    }\n    var factory = this[LOOKUP_FACTORY](fullName, options);\n    if (factory === undefined) {\n      return;\n    }\n    var manager = new DeprecatedFactoryManager(this, factory, fullName);\n\n    _emberDebug.runInDebug(function () {\n      manager = wrapManagerInDeprecationProxy(manager);\n    });\n\n    return manager;\n  }, _Container$prototype.destroy = function () {\n    destroyDestroyables(this);\n    this.isDestroyed = true;\n  }, _Container$prototype.reset = function (fullName) {\n    if (arguments.length > 0) {\n      resetMember(this, this.registry.normalize(fullName));\n    } else {\n      resetCache(this);\n    }\n  }, _Container$prototype.ownerInjection = function () {\n    var _ref;\n\n    return _ref = {}, _ref[_emberUtils.OWNER] = this.owner, _ref;\n  }, _Container$prototype);\n\n  /*\n   * Wrap a factory manager in a proxy which will not permit properties to be\n   * set on the manager.\n   */\n  function wrapManagerInDeprecationProxy(manager) {\n    if (_emberUtils.HAS_NATIVE_PROXY) {\n      var _ret = (function () {\n        var validator = {\n          get: function (obj, prop) {\n            if (prop !== 'class' && prop !== 'create') {\n              throw new Error('You attempted to access \"' + prop + '\" on a factory manager created by container#factoryFor. \"' + prop + '\" is not a member of a factory manager.\"');\n            }\n\n            return obj[prop];\n          },\n          set: function (obj, prop, value) {\n            throw new Error('You attempted to set \"' + prop + '\" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.');\n          }\n        };\n\n        // Note:\n        // We have to proxy access to the manager here so that private property\n        // access doesn't cause the above errors to occur.\n        var m = manager;\n        var proxiedManager = {\n          class: m.class,\n          create: function (props) {\n            return m.create(props);\n          }\n        };\n\n        return {\n          v: new Proxy(proxiedManager, validator)\n        };\n      })();\n\n      if (typeof _ret === 'object') return _ret.v;\n    }\n\n    return manager;\n  }\n\n  if (true) {\n    /**\n     Given a fullName, return the corresponding factory. The consumer of the factory\n     is responsible for the destruction of any factory instances, as there is no\n     way for the container to ensure instances are destroyed when it itself is\n     destroyed.\n      @public\n     @method factoryFor\n     @param {String} fullName\n     @param {Object} [options]\n     @param {String} [options.source] The fullname of the request source (used for local lookup)\n     @return {any}\n     */\n    Container.prototype.factoryFor = function _factoryFor(fullName) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      var normalizedName = this.registry.normalize(fullName);\n\n      _emberDebug.assert('fullName must be a proper full name', this.registry.validateFullName(normalizedName));\n\n      if (options.source) {\n        normalizedName = this.registry.expandLocalLookup(fullName, options);\n        // if expandLocalLookup returns falsey, we do not support local lookup\n        if (!normalizedName) {\n          return;\n        }\n      }\n\n      var cached = this.factoryManagerCache[normalizedName];\n\n      if (cached) {\n        return cached;\n      }\n\n      var factory = this.registry.resolve(normalizedName);\n\n      if (factory === undefined) {\n        return;\n      }\n\n      var manager = new FactoryManager(this, factory, fullName, normalizedName);\n\n      _emberDebug.runInDebug(function () {\n        manager = wrapManagerInDeprecationProxy(manager);\n      });\n\n      this.factoryManagerCache[normalizedName] = manager;\n      return manager;\n    };\n  }\n\n  function isSingleton(container, fullName) {\n    return container.registry.getOption(fullName, 'singleton') !== false;\n  }\n\n  function isInstantiatable(container, fullName) {\n    return container.registry.getOption(fullName, 'instantiate') !== false;\n  }\n\n  function lookup(container, fullName) {\n    var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n    if (options.source) {\n      fullName = container.registry.expandLocalLookup(fullName, options);\n\n      // if expandLocalLookup returns falsey, we do not support local lookup\n      if (!fullName) {\n        return;\n      }\n    }\n\n    if (container.cache[fullName] !== undefined && options.singleton !== false) {\n      return container.cache[fullName];\n    }\n\n    if (true) {\n      return instantiateFactory(container, fullName, options);\n    } else {\n      var factory = deprecatedFactoryFor(container, fullName);\n      var value = instantiate(factory, {}, container, fullName);\n\n      if (value === undefined) {\n        return;\n      }\n\n      if (isSingleton(container, fullName) && options.singleton !== false) {\n        container.cache[fullName] = value;\n      }\n\n      return value;\n    }\n  }\n\n  function isSingletonClass(container, fullName, _ref2) {\n    var instantiate = _ref2.instantiate;\n    var singleton = _ref2.singleton;\n\n    return singleton !== false && isSingleton(container, fullName) && !instantiate && !isInstantiatable(container, fullName);\n  }\n\n  function isSingletonInstance(container, fullName, _ref3) {\n    var instantiate = _ref3.instantiate;\n    var singleton = _ref3.singleton;\n\n    return singleton !== false && isSingleton(container, fullName) && instantiate !== false && isInstantiatable(container, fullName);\n  }\n\n  function isFactoryClass(container, fullname, _ref4) {\n    var instantiate = _ref4.instantiate;\n    var singleton = _ref4.singleton;\n\n    return (singleton === false || !isSingleton(container, fullname)) && instantiate === false && !isInstantiatable(container, fullname);\n  }\n\n  function isFactoryInstance(container, fullName, _ref5) {\n    var instantiate = _ref5.instantiate;\n    var singleton = _ref5.singleton;\n\n    return (singleton !== false || isSingleton(container, fullName)) && instantiate !== false && isInstantiatable(container, fullName);\n  }\n\n  function instantiateFactory(container, fullName, options) {\n    var factoryManager = container[FACTORY_FOR](fullName);\n\n    if (factoryManager === undefined) {\n      return;\n    }\n\n    // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n    // By default majority of objects fall into this case\n    if (isSingletonInstance(container, fullName, options)) {\n      return container.cache[fullName] = factoryManager.create();\n    }\n\n    // SomeClass { singleton: false, instantiate: true }\n    if (isFactoryInstance(container, fullName, options)) {\n      return factoryManager.create();\n    }\n\n    // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\n    if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) {\n      return factoryManager.class;\n    }\n\n    throw new Error('Could not create factory');\n  }\n\n  function markInjectionsAsDynamic(injections) {\n    injections._dynamic = true;\n  }\n\n  function areInjectionsDynamic(injections) {\n    return !!injections._dynamic;\n  }\n\n  function buildInjections() /* container, ...injections */{\n    var _arguments = arguments;\n\n    var hash = {};\n\n    if (arguments.length > 1) {\n      (function () {\n        var container = _arguments[0];\n        var injections = [];\n        var injection = undefined;\n\n        for (var i = 1; i < _arguments.length; i++) {\n          if (_arguments[i]) {\n            injections = injections.concat(_arguments[i]);\n          }\n        }\n\n        _emberDebug.runInDebug(function () {\n          container.registry.validateInjections(injections);\n        });\n\n        for (var i = 0; i < injections.length; i++) {\n          injection = injections[i];\n          hash[injection.property] = lookup(container, injection.fullName);\n          if (!isSingleton(container, injection.fullName)) {\n            markInjectionsAsDynamic(hash);\n          }\n        }\n      })();\n    }\n\n    return hash;\n  }\n\n  function deprecatedFactoryFor(container, fullName) {\n    var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n    var registry = container.registry;\n\n    if (options.source) {\n      fullName = registry.expandLocalLookup(fullName, options);\n      // if expandLocalLookup returns falsey, we do not support local lookup\n      if (!fullName) {\n        return;\n      }\n    }\n\n    var cache = container.factoryCache;\n    if (cache[fullName]) {\n      return cache[fullName];\n    }\n    var factory = registry.resolve(fullName);\n    if (factory === undefined) {\n      return;\n    }\n\n    var type = fullName.split(':')[0];\n    if (!factory || typeof factory.extend !== 'function' || !_emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS && type === 'model') {\n      if (factory && typeof factory._onLookup === 'function') {\n        factory._onLookup(fullName);\n      }\n\n      // TODO: think about a 'safe' merge style extension\n      // for now just fallback to create time injection\n      cache[fullName] = factory;\n      return factory;\n    } else {\n      var injections = injectionsFor(container, fullName);\n      var factoryInjections = factoryInjectionsFor(container, fullName);\n      var cacheable = !areInjectionsDynamic(injections) && !areInjectionsDynamic(factoryInjections);\n\n      factoryInjections[_emberUtils.NAME_KEY] = registry.makeToString(factory, fullName);\n      injections._debugContainerKey = fullName;\n      _emberUtils.setOwner(injections, container.owner);\n\n      var injectedFactory = factory.extend(injections);\n\n      // TODO - remove all `container` injections when Ember reaches v3.0.0\n      injectDeprecatedContainer(injectedFactory.prototype, container);\n      injectedFactory.reopenClass(factoryInjections);\n\n      if (factory && typeof factory._onLookup === 'function') {\n        factory._onLookup(fullName);\n      }\n\n      if (cacheable) {\n        cache[fullName] = injectedFactory;\n      }\n\n      return injectedFactory;\n    }\n  }\n\n  function injectionsFor(container, fullName) {\n    var registry = container.registry;\n    var splitName = fullName.split(':');\n    var type = splitName[0];\n\n    var injections = buildInjections(container, registry.getTypeInjections(type), registry.getInjections(fullName));\n\n    return injections;\n  }\n\n  function instantiate(factory, props, container, fullName) {\n    var lazyInjections = undefined,\n        validationCache = undefined;\n\n    props = props || {};\n\n    if (container.registry.getOption(fullName, 'instantiate') === false) {\n      return factory;\n    }\n\n    if (factory) {\n      if (typeof factory.create !== 'function') {\n        throw new Error('Failed to create an instance of \\'' + fullName + '\\'. Most likely an improperly defined class or' + ' an invalid module export.');\n      }\n\n      validationCache = container.validationCache;\n\n      _emberDebug.runInDebug(function () {\n        // Ensure that all lazy injections are valid at instantiation time\n        if (!validationCache[fullName] && typeof factory._lazyInjections === 'function') {\n          lazyInjections = factory._lazyInjections();\n          lazyInjections = container.registry.normalizeInjectionsHash(lazyInjections);\n\n          container.registry.validateInjections(lazyInjections);\n        }\n      });\n\n      validationCache[fullName] = true;\n\n      var obj = undefined;\n\n      if (typeof factory.extend === 'function') {\n        // assume the factory was extendable and is already injected\n        obj = factory.create(props);\n      } else {\n        // assume the factory was extendable\n        // to create time injections\n        // TODO: support new'ing for instantiation and merge injections for pure JS Functions\n        var injections = injectionsFor(container, fullName);\n        injections._debugContainerKey = fullName;\n\n        // Ensure that a container is available to an object during instantiation.\n        // TODO - remove when Ember reaches v3.0.0\n        // This \"fake\" container will be replaced after instantiation with a\n        // property that raises deprecations every time it is accessed.\n        injections.container = container._fakeContainerToInject;\n        obj = factory.create(_emberUtils.assign({}, injections, props));\n\n        // TODO - remove when Ember reaches v3.0.0\n        if (!Object.isFrozen(obj)) {\n          injectDeprecatedContainer(obj, container);\n        }\n      }\n\n      return obj;\n    }\n  }\n\n  function factoryInjectionsFor(container, fullName) {\n    var registry = container.registry;\n    var splitName = fullName.split(':');\n    var type = splitName[0];\n\n    var factoryInjections = buildInjections(container, registry.getFactoryTypeInjections(type), registry.getFactoryInjections(fullName));\n    factoryInjections._debugContainerKey = fullName;\n\n    return factoryInjections;\n  }\n\n  var INJECTED_DEPRECATED_CONTAINER_DESC = {\n    configurable: true,\n    enumerable: false,\n    get: function () {\n      _emberDebug.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });\n      return this[CONTAINER_OVERRIDE] || _emberUtils.getOwner(this).__container__;\n    },\n\n    set: function (value) {\n      _emberDebug.deprecate('Providing the `container` property to ' + this + ' is deprecated. Please use `Ember.setOwner` or `owner.ownerInjection()` instead to provide an owner to the instance being created.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });\n\n      this[CONTAINER_OVERRIDE] = value;\n\n      return value;\n    }\n  };\n\n  // TODO - remove when Ember reaches v3.0.0\n  function injectDeprecatedContainer(object, container) {\n    if ('container' in object) {\n      return;\n    }\n    Object.defineProperty(object, 'container', INJECTED_DEPRECATED_CONTAINER_DESC);\n  }\n\n  function destroyDestroyables(container) {\n    var cache = container.cache;\n    var keys = Object.keys(cache);\n\n    for (var i = 0; i < keys.length; i++) {\n      var key = keys[i];\n      var value = cache[key];\n\n      if (isInstantiatable(container, key) && value.destroy) {\n        value.destroy();\n      }\n    }\n  }\n\n  function resetCache(container) {\n    destroyDestroyables(container);\n    container.cache.dict = _emberUtils.dictionary(null);\n  }\n\n  function resetMember(container, fullName) {\n    var member = container.cache[fullName];\n\n    delete container.factoryCache[fullName];\n\n    if (member) {\n      delete container.cache[fullName];\n\n      if (member.destroy) {\n        member.destroy();\n      }\n    }\n  }\n\n  function buildFakeContainerWithDeprecations(container) {\n    var fakeContainer = {};\n    var propertyMappings = {\n      lookup: 'lookup',\n      lookupFactory: '_lookupFactory'\n    };\n\n    for (var containerProperty in propertyMappings) {\n      fakeContainer[containerProperty] = buildFakeContainerFunction(container, containerProperty, propertyMappings[containerProperty]);\n    }\n\n    return fakeContainer;\n  }\n\n  function buildFakeContainerFunction(container, containerProperty, ownerProperty) {\n    return function () {\n      _emberDebug.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper to access the owner of this object and then call `' + ownerProperty + '` instead.', false, {\n        id: 'ember-application.injected-container',\n        until: '2.13.0',\n        url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access'\n      });\n      return container[containerProperty].apply(container, arguments);\n    };\n  }\n\n  var DeprecatedFactoryManager = (function () {\n    function DeprecatedFactoryManager(container, factory, fullName) {\n      babelHelpers.classCallCheck(this, DeprecatedFactoryManager);\n\n      this.container = container;\n      this.class = factory;\n      this.fullName = fullName;\n    }\n\n    DeprecatedFactoryManager.prototype.create = function create() {\n      var props = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      return instantiate(this.class, props, this.container, this.fullName);\n    };\n\n    return DeprecatedFactoryManager;\n  })();\n\n  var FactoryManager = (function () {\n    function FactoryManager(container, factory, fullName, normalizedName) {\n      babelHelpers.classCallCheck(this, FactoryManager);\n\n      this.container = container;\n      this.owner = container.owner;\n      this.class = factory;\n      this.fullName = fullName;\n      this.normalizedName = normalizedName;\n      this.madeToString = undefined;\n      this.injections = undefined;\n    }\n\n    FactoryManager.prototype.toString = function toString() {\n      if (!this.madeToString) {\n        this.madeToString = this.container.registry.makeToString(this.class, this.fullName);\n      }\n\n      return this.madeToString;\n    };\n\n    FactoryManager.prototype.create = function create() {\n      var _this = this;\n\n      var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      var injections = this.injections;\n      if (injections === undefined) {\n        injections = injectionsFor(this.container, this.normalizedName);\n        if (areInjectionsDynamic(injections) === false) {\n          this.injections = injections;\n        }\n      }\n      var props = _emberUtils.assign({}, injections, options);\n\n      _emberDebug.runInDebug(function () {\n        var lazyInjections = undefined;\n        var validationCache = _this.container.validationCache;\n        // Ensure that all lazy injections are valid at instantiation time\n        if (!validationCache[_this.fullName] && _this.class && typeof _this.class._lazyInjections === 'function') {\n          lazyInjections = _this.class._lazyInjections();\n          lazyInjections = _this.container.registry.normalizeInjectionsHash(lazyInjections);\n\n          _this.container.registry.validateInjections(lazyInjections);\n        }\n\n        validationCache[_this.fullName] = true;\n      });\n\n      if (!this.class.create) {\n        throw new Error('Failed to create an instance of \\'' + this.normalizedName + '\\'. Most likely an improperly defined class or' + ' an invalid module export.');\n      }\n\n      var prototype = this.class.prototype;\n      if (prototype) {\n        injectDeprecatedContainer(prototype, this.container);\n      }\n\n      // required to allow access to things like\n      // the customized toString, _debugContainerKey,\n      // owner, etc. without a double extend and without\n      // modifying the objects properties\n      if (typeof this.class._initFactory === 'function') {\n        this.class._initFactory(this);\n      } else {\n        // in the non-Ember.Object case we need to still setOwner\n        // this is required for supporting glimmer environment and\n        // template instantiation which rely heavily on\n        // `options[OWNER]` being passed into `create`\n        // TODO: clean this up, and remove in future versions\n        _emberUtils.setOwner(props, this.owner);\n      }\n\n      return this.class.create(props);\n    };\n\n    return FactoryManager;\n  })();\n});\n\n/* globals Proxy */\n\n/*\n * This internal version of factoryFor swaps between the public API for\n * factoryFor (class is the registered class) and a transition implementation\n * (class is the double-extended class). It is *not* the public API version\n * of factoryFor, which always returns the registered class.\n */\n\n/**\n A depth first traversal, destroying the container, its descendant containers and all\n their managed objects.\n  @private\n @method destroy\n */\n\n/**\n Clear either the entire cache or just the cache for a particular key.\n  @private\n @method reset\n @param {String} fullName optional key to reset; if missing, resets everything\n */\n\n/**\n Returns an object that can be used to provide an owner to a\n manually created instance.\n  @private\n @method ownerInjection\n @returns { Object }\n*/\nenifed('container/index', ['exports', 'container/registry', 'container/container'], function (exports, _containerRegistry, _containerContainer) {\n  /*\n  Public API for the container is still in flux.\n  The public API, specified on the application namespace should be considered the stable API.\n  // @module container\n    @private\n  */\n\n  'use strict';\n\n  exports.Registry = _containerRegistry.default;\n  exports.privatize = _containerRegistry.privatize;\n  exports.Container = _containerContainer.default;\n  exports.buildFakeContainerWithDeprecations = _containerContainer.buildFakeContainerWithDeprecations;\n  exports.FACTORY_FOR = _containerContainer.FACTORY_FOR;\n  exports.LOOKUP_FACTORY = _containerContainer.LOOKUP_FACTORY;\n});\nenifed('container/registry', ['exports', 'ember-utils', 'ember-debug', 'container/container'], function (exports, _emberUtils, _emberDebug, _containerContainer) {\n  'use strict';\n\n  exports.default = Registry;\n  exports.privatize = privatize;\n\n  var VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;\n\n  /**\n   A registry used to store factory and option information keyed\n   by type.\n  \n   A `Registry` stores the factory and option information needed by a\n   `Container` to instantiate and cache objects.\n  \n   The API for `Registry` is still in flux and should not be considered stable.\n  \n   @private\n   @class Registry\n   @since 1.11.0\n  */\n\n  function Registry(options) {\n    this.fallback = options && options.fallback ? options.fallback : null;\n\n    if (options && options.resolver) {\n      this.resolver = options.resolver;\n\n      if (typeof this.resolver === 'function') {\n        deprecateResolverFunction(this);\n      }\n    }\n\n    this.registrations = _emberUtils.dictionary(options && options.registrations ? options.registrations : null);\n\n    this._typeInjections = _emberUtils.dictionary(null);\n    this._injections = _emberUtils.dictionary(null);\n    this._factoryTypeInjections = _emberUtils.dictionary(null);\n    this._factoryInjections = _emberUtils.dictionary(null);\n\n    this._localLookupCache = Object.create(null);\n    this._normalizeCache = _emberUtils.dictionary(null);\n    this._resolveCache = _emberUtils.dictionary(null);\n    this._failCache = _emberUtils.dictionary(null);\n\n    this._options = _emberUtils.dictionary(null);\n    this._typeOptions = _emberUtils.dictionary(null);\n  }\n\n  Registry.prototype = {\n    /**\n     A backup registry for resolving registrations when no matches can be found.\n      @private\n     @property fallback\n     @type Registry\n     */\n    fallback: null,\n\n    /**\n     An object that has a `resolve` method that resolves a name.\n      @private\n     @property resolver\n     @type Resolver\n     */\n    resolver: null,\n\n    /**\n     @private\n     @property registrations\n     @type InheritingDict\n     */\n    registrations: null,\n\n    /**\n     @private\n      @property _typeInjections\n     @type InheritingDict\n     */\n    _typeInjections: null,\n\n    /**\n     @private\n      @property _injections\n     @type InheritingDict\n     */\n    _injections: null,\n\n    /**\n     @private\n      @property _factoryTypeInjections\n     @type InheritingDict\n     */\n    _factoryTypeInjections: null,\n\n    /**\n     @private\n      @property _factoryInjections\n     @type InheritingDict\n     */\n    _factoryInjections: null,\n\n    /**\n     @private\n      @property _normalizeCache\n     @type InheritingDict\n     */\n    _normalizeCache: null,\n\n    /**\n     @private\n      @property _resolveCache\n     @type InheritingDict\n     */\n    _resolveCache: null,\n\n    /**\n     @private\n      @property _options\n     @type InheritingDict\n     */\n    _options: null,\n\n    /**\n     @private\n      @property _typeOptions\n     @type InheritingDict\n     */\n    _typeOptions: null,\n\n    /**\n     Creates a container based on this registry.\n      @private\n     @method container\n     @param {Object} options\n     @return {Container} created container\n     */\n    container: function (options) {\n      return new _containerContainer.default(this, options);\n    },\n\n    /**\n     Registers a factory for later injection.\n      Example:\n      ```javascript\n     let registry = new Registry();\n      registry.register('model:user', Person, {singleton: false });\n     registry.register('fruit:favorite', Orange);\n     registry.register('communication:main', Email, {singleton: false});\n     ```\n      @private\n     @method register\n     @param {String} fullName\n     @param {Function} factory\n     @param {Object} options\n     */\n    register: function (fullName, factory) {\n      var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n      _emberDebug.assert('fullName must be a proper full name', this.validateFullName(fullName));\n\n      if (factory === undefined) {\n        throw new TypeError('Attempting to register an unknown factory: \\'' + fullName + '\\'');\n      }\n\n      var normalizedName = this.normalize(fullName);\n\n      if (this._resolveCache[normalizedName]) {\n        throw new Error('Cannot re-register: \\'' + fullName + '\\', as it has already been resolved.');\n      }\n\n      delete this._failCache[normalizedName];\n      this.registrations[normalizedName] = factory;\n      this._options[normalizedName] = options;\n    },\n\n    /**\n     Unregister a fullName\n      ```javascript\n     let registry = new Registry();\n     registry.register('model:user', User);\n      registry.resolve('model:user').create() instanceof User //=> true\n      registry.unregister('model:user')\n     registry.resolve('model:user') === undefined //=> true\n     ```\n      @private\n     @method unregister\n     @param {String} fullName\n     */\n    unregister: function (fullName) {\n      _emberDebug.assert('fullName must be a proper full name', this.validateFullName(fullName));\n\n      var normalizedName = this.normalize(fullName);\n\n      this._localLookupCache = Object.create(null);\n\n      delete this.registrations[normalizedName];\n      delete this._resolveCache[normalizedName];\n      delete this._failCache[normalizedName];\n      delete this._options[normalizedName];\n    },\n\n    /**\n     Given a fullName return the corresponding factory.\n      By default `resolve` will retrieve the factory from\n     the registry.\n      ```javascript\n     let registry = new Registry();\n     registry.register('api:twitter', Twitter);\n      registry.resolve('api:twitter') // => Twitter\n     ```\n      Optionally the registry can be provided with a custom resolver.\n     If provided, `resolve` will first provide the custom resolver\n     the opportunity to resolve the fullName, otherwise it will fallback\n     to the registry.\n      ```javascript\n     let registry = new Registry();\n     registry.resolver = function(fullName) {\n        // lookup via the module system of choice\n      };\n      // the twitter factory is added to the module system\n     registry.resolve('api:twitter') // => Twitter\n     ```\n      @private\n     @method resolve\n     @param {String} fullName\n     @param {Object} [options]\n     @param {String} [options.source] the fullname of the request source (used for local lookups)\n     @return {Function} fullName's factory\n     */\n    resolve: function (fullName, options) {\n      _emberDebug.assert('fullName must be a proper full name', this.validateFullName(fullName));\n      var factory = resolve(this, this.normalize(fullName), options);\n      if (factory === undefined && this.fallback) {\n        var _fallback;\n\n        factory = (_fallback = this.fallback).resolve.apply(_fallback, arguments);\n      }\n      return factory;\n    },\n\n    /**\n     A hook that can be used to describe how the resolver will\n     attempt to find the factory.\n      For example, the default Ember `.describe` returns the full\n     class name (including namespace) where Ember's resolver expects\n     to find the `fullName`.\n      @private\n     @method describe\n     @param {String} fullName\n     @return {string} described fullName\n     */\n    describe: function (fullName) {\n      if (this.resolver && this.resolver.lookupDescription) {\n        return this.resolver.lookupDescription(fullName);\n      } else if (this.fallback) {\n        return this.fallback.describe(fullName);\n      } else {\n        return fullName;\n      }\n    },\n\n    /**\n     A hook to enable custom fullName normalization behaviour\n      @private\n     @method normalizeFullName\n     @param {String} fullName\n     @return {string} normalized fullName\n     */\n    normalizeFullName: function (fullName) {\n      if (this.resolver && this.resolver.normalize) {\n        return this.resolver.normalize(fullName);\n      } else if (this.fallback) {\n        return this.fallback.normalizeFullName(fullName);\n      } else {\n        return fullName;\n      }\n    },\n\n    /**\n     Normalize a fullName based on the application's conventions\n      @private\n     @method normalize\n     @param {String} fullName\n     @return {string} normalized fullName\n     */\n    normalize: function (fullName) {\n      return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName));\n    },\n\n    /**\n     @method makeToString\n      @private\n     @param {any} factory\n     @param {string} fullName\n     @return {function} toString function\n     */\n    makeToString: function (factory, fullName) {\n      if (this.resolver && this.resolver.makeToString) {\n        return this.resolver.makeToString(factory, fullName);\n      } else if (this.fallback) {\n        return this.fallback.makeToString(factory, fullName);\n      } else {\n        return factory.toString();\n      }\n    },\n\n    /**\n     Given a fullName check if the container is aware of its factory\n     or singleton instance.\n      @private\n     @method has\n     @param {String} fullName\n     @param {Object} [options]\n     @param {String} [options.source] the fullname of the request source (used for local lookups)\n     @return {Boolean}\n     */\n    has: function (fullName, options) {\n      if (!this.isValidFullName(fullName)) {\n        return false;\n      }\n\n      var source = options && options.source && this.normalize(options.source);\n\n      return has(this, this.normalize(fullName), source);\n    },\n\n    /**\n     Allow registering options for all factories of a type.\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      // if all of type `connection` must not be singletons\n     registry.optionsForType('connection', { singleton: false });\n      registry.register('connection:twitter', TwitterConnection);\n     registry.register('connection:facebook', FacebookConnection);\n      let twitter = container.lookup('connection:twitter');\n     let twitter2 = container.lookup('connection:twitter');\n      twitter === twitter2; // => false\n      let facebook = container.lookup('connection:facebook');\n     let facebook2 = container.lookup('connection:facebook');\n      facebook === facebook2; // => false\n     ```\n      @private\n     @method optionsForType\n     @param {String} type\n     @param {Object} options\n     */\n    optionsForType: function (type, options) {\n      this._typeOptions[type] = options;\n    },\n\n    getOptionsForType: function (type) {\n      var optionsForType = this._typeOptions[type];\n      if (optionsForType === undefined && this.fallback) {\n        optionsForType = this.fallback.getOptionsForType(type);\n      }\n      return optionsForType;\n    },\n\n    /**\n     @private\n     @method options\n     @param {String} fullName\n     @param {Object} options\n     */\n    options: function (fullName) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      var normalizedName = this.normalize(fullName);\n      this._options[normalizedName] = options;\n    },\n\n    getOptions: function (fullName) {\n      var normalizedName = this.normalize(fullName);\n      var options = this._options[normalizedName];\n\n      if (options === undefined && this.fallback) {\n        options = this.fallback.getOptions(fullName);\n      }\n      return options;\n    },\n\n    getOption: function (fullName, optionName) {\n      var options = this._options[fullName];\n\n      if (options && options[optionName] !== undefined) {\n        return options[optionName];\n      }\n\n      var type = fullName.split(':')[0];\n      options = this._typeOptions[type];\n\n      if (options && options[optionName] !== undefined) {\n        return options[optionName];\n      } else if (this.fallback) {\n        return this.fallback.getOption(fullName, optionName);\n      }\n    },\n\n    /**\n     Used only via `injection`.\n      Provides a specialized form of injection, specifically enabling\n     all objects of one type to be injected with a reference to another\n     object.\n      For example, provided each object of type `controller` needed a `router`.\n     one would do the following:\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('router:main', Router);\n     registry.register('controller:user', UserController);\n     registry.register('controller:post', PostController);\n      registry.typeInjection('controller', 'router', 'router:main');\n      let user = container.lookup('controller:user');\n     let post = container.lookup('controller:post');\n      user.router instanceof Router; //=> true\n     post.router instanceof Router; //=> true\n      // both controllers share the same router\n     user.router === post.router; //=> true\n     ```\n      @private\n     @method typeInjection\n     @param {String} type\n     @param {String} property\n     @param {String} fullName\n     */\n    typeInjection: function (type, property, fullName) {\n      _emberDebug.assert('fullName must be a proper full name', this.validateFullName(fullName));\n\n      var fullNameType = fullName.split(':')[0];\n      if (fullNameType === type) {\n        throw new Error('Cannot inject a \\'' + fullName + '\\' on other ' + type + '(s).');\n      }\n\n      var injections = this._typeInjections[type] || (this._typeInjections[type] = []);\n\n      injections.push({\n        property: property,\n        fullName: fullName\n      });\n    },\n\n    /**\n     Defines injection rules.\n      These rules are used to inject dependencies onto objects when they\n     are instantiated.\n      Two forms of injections are possible:\n      * Injecting one fullName on another fullName\n     * Injecting one fullName on a type\n      Example:\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('source:main', Source);\n     registry.register('model:user', User);\n     registry.register('model:post', Post);\n      // injecting one fullName on another fullName\n     // eg. each user model gets a post model\n     registry.injection('model:user', 'post', 'model:post');\n      // injecting one fullName on another type\n     registry.injection('model', 'source', 'source:main');\n      let user = container.lookup('model:user');\n     let post = container.lookup('model:post');\n      user.source instanceof Source; //=> true\n     post.source instanceof Source; //=> true\n      user.post instanceof Post; //=> true\n      // and both models share the same source\n     user.source === post.source; //=> true\n     ```\n      @private\n     @method injection\n     @param {String} factoryName\n     @param {String} property\n     @param {String} injectionName\n     */\n    injection: function (fullName, property, injectionName) {\n      this.validateFullName(injectionName);\n      var normalizedInjectionName = this.normalize(injectionName);\n\n      if (fullName.indexOf(':') === -1) {\n        return this.typeInjection(fullName, property, normalizedInjectionName);\n      }\n\n      _emberDebug.assert('fullName must be a proper full name', this.validateFullName(fullName));\n      var normalizedName = this.normalize(fullName);\n\n      var injections = this._injections[normalizedName] || (this._injections[normalizedName] = []);\n\n      injections.push({\n        property: property,\n        fullName: normalizedInjectionName\n      });\n    },\n\n    /**\n     Used only via `factoryInjection`.\n      Provides a specialized form of injection, specifically enabling\n     all factory of one type to be injected with a reference to another\n     object.\n      For example, provided each factory of type `model` needed a `store`.\n     one would do the following:\n      ```javascript\n     let registry = new Registry();\n      registry.register('store:main', SomeStore);\n      registry.factoryTypeInjection('model', 'store', 'store:main');\n      let store = registry.lookup('store:main');\n     let UserFactory = registry.lookupFactory('model:user');\n      UserFactory.store instanceof SomeStore; //=> true\n     ```\n      @private\n     @method factoryTypeInjection\n     @param {String} type\n     @param {String} property\n     @param {String} fullName\n     */\n    factoryTypeInjection: function (type, property, fullName) {\n      var injections = this._factoryTypeInjections[type] || (this._factoryTypeInjections[type] = []);\n\n      injections.push({\n        property: property,\n        fullName: this.normalize(fullName)\n      });\n    },\n\n    /**\n     Defines factory injection rules.\n      Similar to regular injection rules, but are run against factories, via\n     `Registry#lookupFactory`.\n      These rules are used to inject objects onto factories when they\n     are looked up.\n      Two forms of injections are possible:\n      * Injecting one fullName on another fullName\n     * Injecting one fullName on a type\n      Example:\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('store:main', Store);\n     registry.register('store:secondary', OtherStore);\n     registry.register('model:user', User);\n     registry.register('model:post', Post);\n      // injecting one fullName on another type\n     registry.factoryInjection('model', 'store', 'store:main');\n      // injecting one fullName on another fullName\n     registry.factoryInjection('model:post', 'secondaryStore', 'store:secondary');\n      let UserFactory = container.lookupFactory('model:user');\n     let PostFactory = container.lookupFactory('model:post');\n     let store = container.lookup('store:main');\n      UserFactory.store instanceof Store; //=> true\n     UserFactory.secondaryStore instanceof OtherStore; //=> false\n      PostFactory.store instanceof Store; //=> true\n     PostFactory.secondaryStore instanceof OtherStore; //=> true\n      // and both models share the same source instance\n     UserFactory.store === PostFactory.store; //=> true\n     ```\n      @private\n     @method factoryInjection\n     @param {String} factoryName\n     @param {String} property\n     @param {String} injectionName\n     */\n    factoryInjection: function (fullName, property, injectionName) {\n      var normalizedName = this.normalize(fullName);\n      var normalizedInjectionName = this.normalize(injectionName);\n\n      this.validateFullName(injectionName);\n\n      if (fullName.indexOf(':') === -1) {\n        return this.factoryTypeInjection(normalizedName, property, normalizedInjectionName);\n      }\n\n      var injections = this._factoryInjections[normalizedName] || (this._factoryInjections[normalizedName] = []);\n\n      injections.push({\n        property: property,\n        fullName: normalizedInjectionName\n      });\n    },\n\n    /**\n     @private\n     @method knownForType\n     @param {String} type the type to iterate over\n    */\n    knownForType: function (type) {\n      var fallbackKnown = undefined,\n          resolverKnown = undefined;\n\n      var localKnown = _emberUtils.dictionary(null);\n      var registeredNames = Object.keys(this.registrations);\n      for (var index = 0; index < registeredNames.length; index++) {\n        var fullName = registeredNames[index];\n        var itemType = fullName.split(':')[0];\n\n        if (itemType === type) {\n          localKnown[fullName] = true;\n        }\n      }\n\n      if (this.fallback) {\n        fallbackKnown = this.fallback.knownForType(type);\n      }\n\n      if (this.resolver && this.resolver.knownForType) {\n        resolverKnown = this.resolver.knownForType(type);\n      }\n\n      return _emberUtils.assign({}, fallbackKnown, localKnown, resolverKnown);\n    },\n\n    validateFullName: function (fullName) {\n      if (!this.isValidFullName(fullName)) {\n        throw new TypeError('Invalid Fullname, expected: \\'type:name\\' got: ' + fullName);\n      }\n\n      return true;\n    },\n\n    isValidFullName: function (fullName) {\n      return !!VALID_FULL_NAME_REGEXP.test(fullName);\n    },\n\n    validateInjections: function (injections) {\n      if (!injections) {\n        return;\n      }\n\n      var fullName = undefined;\n\n      for (var i = 0; i < injections.length; i++) {\n        fullName = injections[i].fullName;\n\n        _emberDebug.assert('Attempting to inject an unknown injection: \\'' + fullName + '\\'', this.has(fullName));\n      }\n    },\n\n    normalizeInjectionsHash: function (hash) {\n      var injections = [];\n\n      for (var key in hash) {\n        if (hash.hasOwnProperty(key)) {\n          _emberDebug.assert('Expected a proper full name, given \\'' + hash[key] + '\\'', this.validateFullName(hash[key]));\n\n          injections.push({\n            property: key,\n            fullName: hash[key]\n          });\n        }\n      }\n\n      return injections;\n    },\n\n    getInjections: function (fullName) {\n      var injections = this._injections[fullName] || [];\n      if (this.fallback) {\n        injections = injections.concat(this.fallback.getInjections(fullName));\n      }\n      return injections;\n    },\n\n    getTypeInjections: function (type) {\n      var injections = this._typeInjections[type] || [];\n      if (this.fallback) {\n        injections = injections.concat(this.fallback.getTypeInjections(type));\n      }\n      return injections;\n    },\n\n    getFactoryInjections: function (fullName) {\n      var injections = this._factoryInjections[fullName] || [];\n      if (this.fallback) {\n        injections = injections.concat(this.fallback.getFactoryInjections(fullName));\n      }\n      return injections;\n    },\n\n    getFactoryTypeInjections: function (type) {\n      var injections = this._factoryTypeInjections[type] || [];\n      if (this.fallback) {\n        injections = injections.concat(this.fallback.getFactoryTypeInjections(type));\n      }\n      return injections;\n    }\n  };\n\n  function deprecateResolverFunction(registry) {\n    _emberDebug.deprecate('Passing a `resolver` function into a Registry is deprecated. Please pass in a Resolver object with a `resolve` method.', false, { id: 'ember-application.registry-resolver-as-function', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_registry-resolver-as-function' });\n    registry.resolver = {\n      resolve: registry.resolver\n    };\n  }\n\n  /**\n   Given a fullName and a source fullName returns the fully resolved\n   fullName. Used to allow for local lookup.\n  \n   ```javascript\n   let registry = new Registry();\n  \n   // the twitter factory is added to the module system\n   registry.expandLocalLookup('component:post-title', { source: 'template:post' }) // => component:post/post-title\n   ```\n  \n   @private\n   @method expandLocalLookup\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {String} fullName\n   */\n  Registry.prototype.expandLocalLookup = function Registry_expandLocalLookup(fullName, options) {\n    if (this.resolver && this.resolver.expandLocalLookup) {\n      _emberDebug.assert('fullName must be a proper full name', this.validateFullName(fullName));\n      _emberDebug.assert('options.source must be provided to expandLocalLookup', options && options.source);\n      _emberDebug.assert('options.source must be a proper full name', this.validateFullName(options.source));\n\n      var normalizedFullName = this.normalize(fullName);\n      var normalizedSource = this.normalize(options.source);\n\n      return expandLocalLookup(this, normalizedFullName, normalizedSource);\n    } else if (this.fallback) {\n      return this.fallback.expandLocalLookup(fullName, options);\n    } else {\n      return null;\n    }\n  };\n\n  function expandLocalLookup(registry, normalizedName, normalizedSource) {\n    var cache = registry._localLookupCache;\n    var normalizedNameCache = cache[normalizedName];\n\n    if (!normalizedNameCache) {\n      normalizedNameCache = cache[normalizedName] = Object.create(null);\n    }\n\n    var cached = normalizedNameCache[normalizedSource];\n\n    if (cached !== undefined) {\n      return cached;\n    }\n\n    var expanded = registry.resolver.expandLocalLookup(normalizedName, normalizedSource);\n\n    return normalizedNameCache[normalizedSource] = expanded;\n  }\n\n  function resolve(registry, normalizedName, options) {\n    if (options && options.source) {\n      // when `source` is provided expand normalizedName\n      // and source into the full normalizedName\n      normalizedName = registry.expandLocalLookup(normalizedName, options);\n\n      // if expandLocalLookup returns falsey, we do not support local lookup\n      if (!normalizedName) {\n        return;\n      }\n    }\n\n    var cached = registry._resolveCache[normalizedName];\n    if (cached !== undefined) {\n      return cached;\n    }\n    if (registry._failCache[normalizedName]) {\n      return;\n    }\n\n    var resolved = undefined;\n\n    if (registry.resolver) {\n      resolved = registry.resolver.resolve(normalizedName);\n    }\n\n    if (resolved === undefined) {\n      resolved = registry.registrations[normalizedName];\n    }\n\n    if (resolved === undefined) {\n      registry._failCache[normalizedName] = true;\n    } else {\n      registry._resolveCache[normalizedName] = resolved;\n    }\n\n    return resolved;\n  }\n\n  function has(registry, fullName, source) {\n    return registry.resolve(fullName, { source: source }) !== undefined;\n  }\n\n  var privateNames = _emberUtils.dictionary(null);\n  var privateSuffix = '' + Math.random() + Date.now();\n\n  function privatize(_ref) {\n    var fullName = _ref[0];\n\n    var name = privateNames[fullName];\n    if (name) {\n      return name;\n    }\n\n    var _fullName$split = fullName.split(':');\n\n    var type = _fullName$split[0];\n    var rawName = _fullName$split[1];\n\n    return privateNames[fullName] = _emberUtils.intern(type + ':' + rawName + '-' + privateSuffix);\n  }\n});\nenifed('dag-map', ['exports'], function (exports) { 'use strict';\n\n/**\n * A map of key/value pairs with dependencies contraints that can be traversed\n * in topological order and is checked for cycles.\n *\n * @class DAG\n * @constructor\n */\nvar DAG = (function () {\n    function DAG() {\n        this._vertices = new Vertices();\n    }\n    /**\n     * Adds a key/value pair with dependencies on other key/value pairs.\n     *\n     * @public\n     * @method addEdges\n     * @param {string[]}   key The key of the vertex to be added.\n     * @param {any}      value The value of that vertex.\n     * @param {string[]|string|undefined}  before A key or array of keys of the vertices that must\n     *                                            be visited before this vertex.\n     * @param {string[]|string|undefined}   after An string or array of strings with the keys of the\n     *                                            vertices that must be after this vertex is visited.\n     */\n    DAG.prototype.add = function (key, value, before, after) {\n        var vertices = this._vertices;\n        var v = vertices.add(key);\n        v.val = value;\n        if (before) {\n            if (typeof before === \"string\") {\n                vertices.addEdge(v, vertices.add(before));\n            }\n            else {\n                for (var i = 0; i < before.length; i++) {\n                    vertices.addEdge(v, vertices.add(before[i]));\n                }\n            }\n        }\n        if (after) {\n            if (typeof after === \"string\") {\n                vertices.addEdge(vertices.add(after), v);\n            }\n            else {\n                for (var i = 0; i < after.length; i++) {\n                    vertices.addEdge(vertices.add(after[i]), v);\n                }\n            }\n        }\n    };\n    /**\n     * Visits key/value pairs in topological order.\n     *\n     * @public\n     * @method  topsort\n     * @param {Function} fn The function to be invoked with each key/value.\n     */\n    DAG.prototype.topsort = function (callback) {\n        this._vertices.topsort(callback);\n    };\n    return DAG;\n}());\nvar Vertices = (function () {\n    function Vertices() {\n        this.stack = new IntStack();\n        this.result = new IntStack();\n        this.vertices = [];\n    }\n    Vertices.prototype.add = function (key) {\n        if (!key)\n            throw new Error(\"missing key\");\n        var vertices = this.vertices;\n        var i = 0;\n        var vertex;\n        for (; i < vertices.length; i++) {\n            vertex = vertices[i];\n            if (vertex.key === key)\n                return vertex;\n        }\n        return vertices[i] = {\n            id: i,\n            key: key,\n            val: null,\n            inc: null,\n            out: false,\n            mark: false\n        };\n    };\n    Vertices.prototype.addEdge = function (v, w) {\n        this.check(v, w.key);\n        var inc = w.inc;\n        if (!inc) {\n            w.inc = [v.id];\n        }\n        else {\n            var i = 0;\n            for (; i < inc.length; i++) {\n                if (inc[i] === v.id)\n                    return;\n            }\n            inc[i] = v.id;\n        }\n        v.out = true;\n    };\n    Vertices.prototype.topsort = function (cb) {\n        this.reset();\n        var vertices = this.vertices;\n        for (var i = 0; i < vertices.length; i++) {\n            var vertex = vertices[i];\n            if (vertex.out)\n                continue;\n            this.visit(vertex, undefined);\n        }\n        this.each(cb);\n    };\n    Vertices.prototype.check = function (v, w) {\n        if (v.key === w) {\n            throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n        }\n        var inc = v.inc;\n        // quick check\n        if (!inc || inc.length === 0)\n            return;\n        var vertices = this.vertices;\n        // shallow check\n        for (var i = 0; i < inc.length; i++) {\n            var key = vertices[inc[i]].key;\n            if (key === w) {\n                throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n            }\n        }\n        // deep check\n        this.reset();\n        this.visit(v, w);\n        if (this.result.len > 0) {\n            var msg_1 = \"cycle detected: \" + w;\n            this.each(function (key) {\n                msg_1 += \" <- \" + key;\n            });\n            throw new Error(msg_1);\n        }\n    };\n    Vertices.prototype.each = function (cb) {\n        var _a = this, result = _a.result, vertices = _a.vertices;\n        for (var i = 0; i < result.len; i++) {\n            var vertex = vertices[result.stack[i]];\n            cb(vertex.key, vertex.val);\n        }\n    };\n    // reuse between cycle check and topsort\n    Vertices.prototype.reset = function () {\n        this.stack.len = 0;\n        this.result.len = 0;\n        var vertices = this.vertices;\n        for (var i = 0; i < vertices.length; i++) {\n            vertices[i].mark = false;\n        }\n    };\n    Vertices.prototype.visit = function (start, search) {\n        var _a = this, stack = _a.stack, result = _a.result, vertices = _a.vertices;\n        stack.push(start.id);\n        while (stack.len) {\n            var index = stack.pop();\n            if (index < 0) {\n                index = ~index;\n                if (search) {\n                    result.pop();\n                }\n                else {\n                    result.push(index);\n                }\n            }\n            else {\n                var vertex = vertices[index];\n                if (vertex.mark) {\n                    continue;\n                }\n                if (search) {\n                    result.push(index);\n                    if (search === vertex.key) {\n                        return;\n                    }\n                }\n                vertex.mark = true;\n                stack.push(~index);\n                var incoming = vertex.inc;\n                if (incoming) {\n                    var i = incoming.length;\n                    while (i--) {\n                        index = incoming[i];\n                        if (!vertices[index].mark) {\n                            stack.push(index);\n                        }\n                    }\n                }\n            }\n        }\n    };\n    return Vertices;\n}());\nvar IntStack = (function () {\n    function IntStack() {\n        this.stack = [0, 0, 0, 0, 0, 0];\n        this.len = 0;\n    }\n    IntStack.prototype.push = function (n) {\n        this.stack[this.len++] = n;\n    };\n    IntStack.prototype.pop = function () {\n        return this.stack[--this.len];\n    };\n    return IntStack;\n}());\n\nexports['default'] = DAG;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n});\nenifed('ember-application/index', ['exports', 'ember-application/initializers/dom-templates', 'ember-application/system/application', 'ember-application/system/application-instance', 'ember-application/system/resolver', 'ember-application/system/engine', 'ember-application/system/engine-instance', 'ember-application/system/engine-parent'], function (exports, _emberApplicationInitializersDomTemplates, _emberApplicationSystemApplication, _emberApplicationSystemApplicationInstance, _emberApplicationSystemResolver, _emberApplicationSystemEngine, _emberApplicationSystemEngineInstance, _emberApplicationSystemEngineParent) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n\n  'use strict';\n\n  exports.Application = _emberApplicationSystemApplication.default;\n  exports.ApplicationInstance = _emberApplicationSystemApplicationInstance.default;\n  exports.Resolver = _emberApplicationSystemResolver.default;\n  exports.Engine = _emberApplicationSystemEngine.default;\n  exports.EngineInstance = _emberApplicationSystemEngineInstance.default;\n  exports.getEngineParent = _emberApplicationSystemEngineParent.getEngineParent;\n  exports.setEngineParent = _emberApplicationSystemEngineParent.setEngineParent;\n\n  // add domTemplates initializer (only does something if `ember-template-compiler`\n  // is loaded already)\n});\nenifed('ember-application/initializers/dom-templates', ['exports', 'require', 'ember-glimmer', 'ember-environment', 'ember-application/system/application'], function (exports, _require, _emberGlimmer, _emberEnvironment, _emberApplicationSystemApplication) {\n  'use strict';\n\n  var bootstrap = function () {};\n\n  _emberApplicationSystemApplication.default.initializer({\n    name: 'domTemplates',\n    initialize: function () {\n      var bootstrapModuleId = 'ember-template-compiler/system/bootstrap';\n      var context = undefined;\n      if (_emberEnvironment.environment.hasDOM && _require.has(bootstrapModuleId)) {\n        bootstrap = _require.default(bootstrapModuleId).default;\n        context = document;\n      }\n\n      bootstrap({ context: context, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n    }\n  });\n});\nenifed('ember-application/system/application-instance', ['exports', 'ember-utils', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-environment', 'ember-views', 'ember-application/system/engine-instance'], function (exports, _emberUtils, _emberDebug, _emberMetal, _emberRuntime, _emberEnvironment, _emberViews, _emberApplicationSystemEngineInstance) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n\n  'use strict';\n\n  var BootOptions = undefined;\n\n  /**\n    The `ApplicationInstance` encapsulates all of the stateful aspects of a\n    running `Application`.\n  \n    At a high-level, we break application boot into two distinct phases:\n  \n    * Definition time, where all of the classes, templates, and other\n      dependencies are loaded (typically in the browser).\n    * Run time, where we begin executing the application once everything\n      has loaded.\n  \n    Definition time can be expensive and only needs to happen once since it is\n    an idempotent operation. For example, between test runs and FastBoot\n    requests, the application stays the same. It is only the state that we want\n    to reset.\n  \n    That state is what the `ApplicationInstance` manages: it is responsible for\n    creating the container that contains all application state, and disposing of\n    it once the particular test run or FastBoot request has finished.\n  \n    @public\n    @class Ember.ApplicationInstance\n    @extends Ember.EngineInstance\n  */\n\n  var ApplicationInstance = _emberApplicationSystemEngineInstance.default.extend({\n    /**\n      The `Application` for which this is an instance.\n       @property {Ember.Application} application\n      @private\n    */\n    application: null,\n\n    /**\n      The DOM events for which the event dispatcher should listen.\n       By default, the application's `Ember.EventDispatcher` listens\n      for a set of standard DOM events, such as `mousedown` and\n      `keyup`, and delegates them to your application's `Ember.View`\n      instances.\n       @private\n      @property {Object} customEvents\n    */\n    customEvents: null,\n\n    /**\n      The root DOM element of the Application as an element or a\n      [jQuery-compatible selector\n      string](http://api.jquery.com/category/selectors/).\n       @private\n      @property {String|DOMElement} rootElement\n    */\n    rootElement: null,\n\n    init: function () {\n      this._super.apply(this, arguments);\n\n      // Register this instance in the per-instance registry.\n      //\n      // Why do we need to register the instance in the first place?\n      // Because we need a good way for the root route (a.k.a ApplicationRoute)\n      // to notify us when it has created the root-most view. That view is then\n      // appended to the rootElement, in the case of apps, to the fixture harness\n      // in tests, or rendered to a string in the case of FastBoot.\n      this.register('-application-instance:main', this, { instantiate: false });\n    },\n\n    /**\n      Overrides the base `EngineInstance._bootSync` method with concerns relevant\n      to booting application (instead of engine) instances.\n       This method should only contain synchronous boot concerns. Asynchronous\n      boot concerns should eventually be moved to the `boot` method, which\n      returns a promise.\n       Until all boot code has been made asynchronous, we need to continue to\n      expose this method for use *internally* in places where we need to boot an\n      instance synchronously.\n       @private\n    */\n    _bootSync: function (options) {\n      if (this._booted) {\n        return this;\n      }\n\n      options = new BootOptions(options);\n\n      this.setupRegistry(options);\n\n      if (options.rootElement) {\n        this.rootElement = options.rootElement;\n      } else {\n        this.rootElement = this.application.rootElement;\n      }\n\n      if (options.location) {\n        var router = _emberMetal.get(this, 'router');\n        _emberMetal.set(router, 'location', options.location);\n      }\n\n      this.application.runInstanceInitializers(this);\n\n      if (options.isInteractive) {\n        this.setupEventDispatcher();\n      }\n\n      this._booted = true;\n\n      return this;\n    },\n\n    setupRegistry: function (options) {\n      this.constructor.setupRegistry(this.__registry__, options);\n    },\n\n    router: _emberMetal.computed(function () {\n      return this.lookup('router:main');\n    }).readOnly(),\n\n    /**\n      This hook is called by the root-most Route (a.k.a. the ApplicationRoute)\n      when it has finished creating the root View. By default, we simply take the\n      view and append it to the `rootElement` specified on the Application.\n       In cases like FastBoot and testing, we can override this hook and implement\n      custom behavior, such as serializing to a string and sending over an HTTP\n      socket rather than appending to DOM.\n       @param view {Ember.View} the root-most view\n      @private\n    */\n    didCreateRootView: function (view) {\n      view.appendTo(this.rootElement);\n    },\n\n    /**\n      Tells the router to start routing. The router will ask the location for the\n      current URL of the page to determine the initial URL to start routing to.\n      To start the app at a specific URL, call `handleURL` instead.\n       @private\n    */\n    startRouting: function () {\n      var router = _emberMetal.get(this, 'router');\n      router.startRouting();\n      this._didSetupRouter = true;\n    },\n\n    /**\n      @private\n       Sets up the router, initializing the child router and configuring the\n      location before routing begins.\n       Because setup should only occur once, multiple calls to `setupRouter`\n      beyond the first call have no effect.\n    */\n    setupRouter: function () {\n      if (this._didSetupRouter) {\n        return;\n      }\n      this._didSetupRouter = true;\n\n      var router = _emberMetal.get(this, 'router');\n      router.setupRouter();\n    },\n\n    /**\n      Directs the router to route to a particular URL. This is useful in tests,\n      for example, to tell the app to start at a particular URL.\n       @param url {String} the URL the router should route to\n      @private\n    */\n    handleURL: function (url) {\n      var router = _emberMetal.get(this, 'router');\n\n      this.setupRouter();\n      return router.handleURL(url);\n    },\n\n    /**\n      @private\n    */\n    setupEventDispatcher: function () {\n      var dispatcher = this.lookup('event_dispatcher:main');\n      var applicationCustomEvents = _emberMetal.get(this.application, 'customEvents');\n      var instanceCustomEvents = _emberMetal.get(this, 'customEvents');\n\n      var customEvents = _emberUtils.assign({}, applicationCustomEvents, instanceCustomEvents);\n      dispatcher.setup(customEvents, this.rootElement);\n\n      return dispatcher;\n    },\n\n    /**\n      Returns the current URL of the app instance. This is useful when your\n      app does not update the browsers URL bar (i.e. it uses the `'none'`\n      location adapter).\n       @public\n      @return {String} the current URL\n    */\n    getURL: function () {\n      var router = _emberMetal.get(this, 'router');\n      return _emberMetal.get(router, 'url');\n    },\n\n    // `instance.visit(url)` should eventually replace `instance.handleURL()`;\n    // the test helpers can probably be switched to use this implementation too\n\n    /**\n      Navigate the instance to a particular URL. This is useful in tests, for\n      example, or to tell the app to start at a particular URL. This method\n      returns a promise that resolves with the app instance when the transition\n      is complete, or rejects if the transion was aborted due to an error.\n       @public\n      @param url {String} the destination URL\n      @return {Promise}\n    */\n    visit: function (url) {\n      var _this = this;\n\n      this.setupRouter();\n\n      var bootOptions = this.__container__.lookup('-environment:main');\n\n      var router = _emberMetal.get(this, 'router');\n\n      var handleTransitionResolve = function () {\n        if (!bootOptions.options.shouldRender) {\n          // No rendering is needed, and routing has completed, simply return.\n          return _this;\n        } else {\n          return new _emberRuntime.RSVP.Promise(function (resolve) {\n            // Resolve once rendering is completed. `router.handleURL` returns the transition (as a thennable)\n            // which resolves once the transition is completed, but the transition completion only queues up\n            // a scheduled revalidation (into the `render` queue) in the Renderer.\n            //\n            // This uses `run.schedule('afterRender', ....)` to resolve after that rendering has completed.\n            _emberMetal.run.schedule('afterRender', null, resolve, _this);\n          });\n        }\n      };\n\n      var handleTransitionReject = function (error) {\n        if (error.error) {\n          throw error.error;\n        } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {\n          return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);\n        } else if (error.name === 'TransitionAborted') {\n          throw new Error(error.message);\n        } else {\n          throw error;\n        }\n      };\n\n      var location = _emberMetal.get(router, 'location');\n\n      // Keeps the location adapter's internal URL in-sync\n      location.setURL(url);\n\n      // getURL returns the set url with the rootURL stripped off\n      return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);\n    }\n  });\n\n  ApplicationInstance.reopenClass({\n    /**\n     @private\n     @method setupRegistry\n     @param {Registry} registry\n     @param {BootOptions} options\n    */\n    setupRegistry: function (registry) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      if (!options.toEnvironment) {\n        options = new BootOptions(options);\n      }\n\n      registry.register('-environment:main', options.toEnvironment(), { instantiate: false });\n      registry.register('service:-document', options.document, { instantiate: false });\n\n      this._super(registry, options);\n    }\n  });\n\n  /**\n    A list of boot-time configuration options for customizing the behavior of\n    an `Ember.ApplicationInstance`.\n  \n    This is an interface class that exists purely to document the available\n    options; you do not need to construct it manually. Simply pass a regular\n    JavaScript object containing the desired options into methods that require\n    one of these options object:\n  \n    ```javascript\n    MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n    ```\n  \n    Not all combinations of the supported options are valid. See the documentation\n    on `Ember.Application#visit` for the supported configurations.\n  \n    Internal, experimental or otherwise unstable flags are marked as private.\n  \n    @class BootOptions\n    @namespace Ember.ApplicationInstance\n    @public\n  */\n  BootOptions = function BootOptions() {\n    var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n    /**\n      Provide a specific instance of jQuery. This is useful in conjunction with\n      the `document` option, as it allows you to use a copy of `jQuery` that is\n      appropriately bound to the foreign `document` (e.g. a jsdom).\n       This is highly experimental and support very incomplete at the moment.\n       @property jQuery\n      @type Object\n      @default auto-detected\n      @private\n    */\n    this.jQuery = _emberViews.jQuery; // This default is overridable below\n\n    /**\n      Interactive mode: whether we need to set up event delegation and invoke\n      lifecycle callbacks on Components.\n       @property isInteractive\n      @type boolean\n      @default auto-detected\n      @private\n    */\n    this.isInteractive = _emberEnvironment.environment.hasDOM; // This default is overridable below\n\n    /**\n      Run in a full browser environment.\n       When this flag is set to `false`, it will disable most browser-specific\n      and interactive features. Specifically:\n       * It does not use `jQuery` to append the root view; the `rootElement`\n        (either specified as a subsequent option or on the application itself)\n        must already be an `Element` in the given `document` (as opposed to a\n        string selector).\n       * It does not set up an `EventDispatcher`.\n       * It does not run any `Component` lifecycle hooks (such as `didInsertElement`).\n       * It sets the `location` option to `\"none\"`. (If you would like to use\n        the location adapter specified in the app's router instead, you can also\n        specify `{ location: null }` to specifically opt-out.)\n       @property isBrowser\n      @type boolean\n      @default auto-detected\n      @public\n    */\n    if (options.isBrowser !== undefined) {\n      this.isBrowser = !!options.isBrowser;\n    } else {\n      this.isBrowser = _emberEnvironment.environment.hasDOM;\n    }\n\n    if (!this.isBrowser) {\n      this.jQuery = null;\n      this.isInteractive = false;\n      this.location = 'none';\n    }\n\n    /**\n      Disable rendering completely.\n       When this flag is set to `true`, it will disable the entire rendering\n      pipeline. Essentially, this puts the app into \"routing-only\" mode. No\n      templates will be rendered, and no Components will be created.\n       @property shouldRender\n      @type boolean\n      @default true\n      @public\n    */\n    if (options.shouldRender !== undefined) {\n      this.shouldRender = !!options.shouldRender;\n    } else {\n      this.shouldRender = true;\n    }\n\n    if (!this.shouldRender) {\n      this.jQuery = null;\n      this.isInteractive = false;\n    }\n\n    /**\n      If present, render into the given `Document` object instead of the\n      global `window.document` object.\n       In practice, this is only useful in non-browser environment or in\n      non-interactive mode, because Ember's `jQuery` dependency is\n      implicitly bound to the current document, causing event delegation\n      to not work properly when the app is rendered into a foreign\n      document object (such as an iframe's `contentDocument`).\n       In non-browser mode, this could be a \"`Document`-like\" object as\n      Ember only interact with a small subset of the DOM API in non-\n      interactive mode. While the exact requirements have not yet been\n      formalized, the `SimpleDOM` library's implementation is known to\n      work.\n       @property document\n      @type Document\n      @default the global `document` object\n      @public\n    */\n    if (options.document) {\n      this.document = options.document;\n    } else {\n      this.document = typeof document !== 'undefined' ? document : null;\n    }\n\n    /**\n      If present, overrides the application's `rootElement` property on\n      the instance. This is useful for testing environment, where you\n      might want to append the root view to a fixture area.\n       In non-browser mode, because Ember does not have access to jQuery,\n      this options must be specified as a DOM `Element` object instead of\n      a selector string.\n       See the documentation on `Ember.Applications`'s `rootElement` for\n      details.\n       @property rootElement\n      @type String|Element\n      @default null\n      @public\n     */\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    }\n\n    // Set these options last to give the user a chance to override the\n    // defaults from the \"combo\" options like `isBrowser` (although in\n    // practice, the resulting combination is probably invalid)\n\n    /**\n      If present, overrides the router's `location` property with this\n      value. This is useful for environments where trying to modify the\n      URL would be inappropriate.\n       @property location\n      @type string\n      @default null\n      @public\n    */\n    if (options.location !== undefined) {\n      this.location = options.location;\n    }\n\n    if (options.jQuery !== undefined) {\n      this.jQuery = options.jQuery;\n    }\n\n    if (options.isInteractive !== undefined) {\n      this.isInteractive = !!options.isInteractive;\n    }\n  };\n\n  BootOptions.prototype.toEnvironment = function () {\n    var env = _emberUtils.assign({}, _emberEnvironment.environment);\n    // For compatibility with existing code\n    env.hasDOM = this.isBrowser;\n    env.isInteractive = this.isInteractive;\n    env.options = this;\n    return env;\n  };\n\n  Object.defineProperty(ApplicationInstance.prototype, 'container', {\n    configurable: true,\n    enumerable: false,\n    get: function () {\n      var instance = this;\n      return {\n        lookup: function () {\n          _emberDebug.deprecate('Using `ApplicationInstance.container.lookup` is deprecated. Please use `ApplicationInstance.lookup` instead.', false, {\n            id: 'ember-application.app-instance-container',\n            until: '2.13.0',\n            url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-applicationinstance-container'\n          });\n          return instance.lookup.apply(instance, arguments);\n        }\n      };\n    }\n  });\n\n  Object.defineProperty(ApplicationInstance.prototype, 'registry', {\n    configurable: true,\n    enumerable: false,\n    get: function () {\n      return _emberRuntime.buildFakeRegistryWithDeprecations(this, 'ApplicationInstance');\n    }\n  });\n\n  exports.default = ApplicationInstance;\n});\nenifed('ember-application/system/application', ['exports', 'ember-utils', 'ember-environment', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views', 'ember-routing', 'ember-application/system/application-instance', 'container', 'ember-application/system/engine', 'ember-glimmer'], function (exports, _emberUtils, _emberEnvironment, _emberDebug, _emberMetal, _emberRuntime, _emberViews, _emberRouting, _emberApplicationSystemApplicationInstance, _container, _emberApplicationSystemEngine, _emberGlimmer) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n  'use strict';\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n  var librariesRegistered = false;\n\n  /**\n    An instance of `Ember.Application` is the starting point for every Ember\n    application. It helps to instantiate, initialize and coordinate the many\n    objects that make up your app.\n  \n    Each Ember app has one and only one `Ember.Application` object. In fact, the\n    very first thing you should do in your application is create the instance:\n  \n    ```javascript\n    window.App = Ember.Application.create();\n    ```\n  \n    Typically, the application object is the only global variable. All other\n    classes in your app should be properties on the `Ember.Application` instance,\n    which highlights its first role: a global namespace.\n  \n    For example, if you define a view class, it might look like this:\n  \n    ```javascript\n    App.MyView = Ember.View.extend();\n    ```\n  \n    By default, calling `Ember.Application.create()` will automatically initialize\n    your application by calling the `Ember.Application.initialize()` method. If\n    you need to delay initialization, you can call your app's `deferReadiness()`\n    method. When you are ready for your app to be initialized, call its\n    `advanceReadiness()` method.\n  \n    You can define a `ready` method on the `Ember.Application` instance, which\n    will be run by Ember when the application is initialized.\n  \n    Because `Ember.Application` inherits from `Ember.Namespace`, any classes\n    you create will have useful string representations when calling `toString()`.\n    See the `Ember.Namespace` documentation for more information.\n  \n    While you can think of your `Ember.Application` as a container that holds the\n    other classes in your application, there are several other responsibilities\n    going on under-the-hood that you may want to understand.\n  \n    ### Event Delegation\n  \n    Ember uses a technique called _event delegation_. This allows the framework\n    to set up a global, shared event listener instead of requiring each view to\n    do it manually. For example, instead of each view registering its own\n    `mousedown` listener on its associated element, Ember sets up a `mousedown`\n    listener on the `body`.\n  \n    If a `mousedown` event occurs, Ember will look at the target of the event and\n    start walking up the DOM node tree, finding corresponding views and invoking\n    their `mouseDown` method as it goes.\n  \n    `Ember.Application` has a number of default events that it listens for, as\n    well as a mapping from lowercase events to camel-cased view method names. For\n    example, the `keypress` event causes the `keyPress` method on the view to be\n    called, the `dblclick` event causes `doubleClick` to be called, and so on.\n  \n    If there is a bubbling browser event that Ember does not listen for by\n    default, you can specify custom events and their corresponding view method\n    names by setting the application's `customEvents` property:\n  \n    ```javascript\n    let App = Ember.Application.create({\n      customEvents: {\n        // add support for the paste event\n        paste: 'paste'\n      }\n    });\n    ```\n  \n    To prevent Ember from setting up a listener for a default event,\n    specify the event name with a `null` value in the `customEvents`\n    property:\n  \n    ```javascript\n    let App = Ember.Application.create({\n      customEvents: {\n        // prevent listeners for mouseenter/mouseleave events\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n  \n    By default, the application sets up these event listeners on the document\n    body. However, in cases where you are embedding an Ember application inside\n    an existing page, you may want it to set up the listeners on an element\n    inside the body.\n  \n    For example, if only events inside a DOM element with the ID of `ember-app`\n    should be delegated, set your application's `rootElement` property:\n  \n    ```javascript\n    let App = Ember.Application.create({\n      rootElement: '#ember-app'\n    });\n    ```\n  \n    The `rootElement` can be either a DOM element or a jQuery-compatible selector\n    string. Note that *views appended to the DOM outside the root element will\n    not receive events.* If you specify a custom root element, make sure you only\n    append views inside it!\n  \n    To learn more about the events Ember components use, see\n    [components/handling-events](https://guides.emberjs.com/v2.6.0/components/handling-events/#toc_event-names).\n  \n    ### Initializers\n  \n    Libraries on top of Ember can add initializers, like so:\n  \n    ```javascript\n    Ember.Application.initializer({\n      name: 'api-adapter',\n  \n      initialize: function(application) {\n        application.register('api-adapter:main', ApiAdapter);\n      }\n    });\n    ```\n  \n    Initializers provide an opportunity to access the internal registry, which\n    organizes the different components of an Ember application. Additionally\n    they provide a chance to access the instantiated application. Beyond\n    being used for libraries, initializers are also a great way to organize\n    dependency injection or setup in your own application.\n  \n    ### Routing\n  \n    In addition to creating your application's router, `Ember.Application` is\n    also responsible for telling the router when to start routing. Transitions\n    between routes can be logged with the `LOG_TRANSITIONS` flag, and more\n    detailed intra-transition logging can be logged with\n    the `LOG_TRANSITIONS_INTERNAL` flag:\n  \n    ```javascript\n    let App = Ember.Application.create({\n      LOG_TRANSITIONS: true, // basic logging of successful transitions\n      LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps\n    });\n    ```\n  \n    By default, the router will begin trying to translate the current URL into\n    application state once the browser emits the `DOMContentReady` event. If you\n    need to defer routing, you can call the application's `deferReadiness()`\n    method. Once routing can begin, call the `advanceReadiness()` method.\n  \n    If there is any setup required before routing begins, you can implement a\n    `ready()` method on your app that will be invoked immediately before routing\n    begins.\n  \n    @class Application\n    @namespace Ember\n    @extends Ember.Engine\n    @uses RegistryProxyMixin\n    @public\n  */\n\n  var Application = _emberApplicationSystemEngine.default.extend({\n    /**\n      The root DOM element of the Application. This can be specified as an\n      element or a\n      [jQuery-compatible selector string](http://api.jquery.com/category/selectors/).\n       This is the element that will be passed to the Application's,\n      `eventDispatcher`, which sets up the listeners for event delegation. Every\n      view in your application should be a child of the element you specify here.\n       @property rootElement\n      @type DOMElement\n      @default 'body'\n      @public\n    */\n    rootElement: 'body',\n\n    /**\n      The `Ember.EventDispatcher` responsible for delegating events to this\n      application's views.\n       The event dispatcher is created by the application at initialization time\n      and sets up event listeners on the DOM element described by the\n      application's `rootElement` property.\n       See the documentation for `Ember.EventDispatcher` for more information.\n       @property eventDispatcher\n      @type Ember.EventDispatcher\n      @default null\n      @public\n    */\n    eventDispatcher: null,\n\n    /**\n      The DOM events for which the event dispatcher should listen.\n       By default, the application's `Ember.EventDispatcher` listens\n      for a set of standard DOM events, such as `mousedown` and\n      `keyup`, and delegates them to your application's `Ember.View`\n      instances.\n       If you would like additional bubbling events to be delegated to your\n      views, set your `Ember.Application`'s `customEvents` property\n      to a hash containing the DOM event name as the key and the\n      corresponding view method name as the value. Setting an event to\n      a value of `null` will prevent a default event listener from being\n      added for that event.\n       To add new events to be listened to:\n       ```javascript\n      let App = Ember.Application.create({\n        customEvents: {\n          // add support for the paste event\n          paste: 'paste'\n        }\n      });\n      ```\n       To prevent default events from being listened to:\n       ```javascript\n      let App = Ember.Application.create({\n        customEvents: {\n          // remove support for mouseenter / mouseleave events\n          mouseenter: null,\n          mouseleave: null\n        }\n      });\n      ```\n      @property customEvents\n      @type Object\n      @default null\n      @public\n    */\n    customEvents: null,\n\n    /**\n      Whether the application should automatically start routing and render\n      templates to the `rootElement` on DOM ready. While default by true,\n      other environments such as FastBoot or a testing harness can set this\n      property to `false` and control the precise timing and behavior of the boot\n      process.\n       @property autoboot\n      @type Boolean\n      @default true\n      @private\n    */\n    autoboot: true,\n\n    /**\n      Whether the application should be configured for the legacy \"globals mode\".\n      Under this mode, the Application object serves as a global namespace for all\n      classes.\n       ```javascript\n      let App = Ember.Application.create({\n        ...\n      });\n       App.Router.reopen({\n        location: 'none'\n      });\n       App.Router.map({\n        ...\n      });\n       App.MyComponent = Ember.Component.extend({\n        ...\n      });\n      ```\n       This flag also exposes other internal APIs that assumes the existence of\n      a special \"default instance\", like `App.__container__.lookup(...)`.\n       This option is currently not configurable, its value is derived from\n      the `autoboot` flag – disabling `autoboot` also implies opting-out of\n      globals mode support, although they are ultimately orthogonal concerns.\n       Some of the global modes features are already deprecated in 1.x. The\n      existence of this flag is to untangle the globals mode code paths from\n      the autoboot code paths, so that these legacy features can be reviewed\n      for deprecation/removal separately.\n       Forcing the (autoboot=true, _globalsMode=false) here and running the tests\n      would reveal all the places where we are still relying on these legacy\n      behavior internally (mostly just tests).\n       @property _globalsMode\n      @type Boolean\n      @default true\n      @private\n    */\n    _globalsMode: true,\n\n    init: function (options) {\n      this._super.apply(this, arguments);\n\n      if (!this.$) {\n        this.$ = _emberViews.jQuery;\n      }\n\n      registerLibraries();\n      _emberDebug.runInDebug(function () {\n        return logLibraryVersions();\n      });\n\n      // Start off the number of deferrals at 1. This will be decremented by\n      // the Application's own `boot` method.\n      this._readinessDeferrals = 1;\n      this._booted = false;\n\n      this.autoboot = this._globalsMode = !!this.autoboot;\n\n      if (this._globalsMode) {\n        this._prepareForGlobalsMode();\n      }\n\n      if (this.autoboot) {\n        this.waitForDOMReady();\n      }\n    },\n\n    /**\n      Create an ApplicationInstance for this application.\n       @private\n      @method buildInstance\n      @return {Ember.ApplicationInstance} the application instance\n    */\n    buildInstance: function () {\n      var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      options.base = this;\n      options.application = this;\n      return _emberApplicationSystemApplicationInstance.default.create(options);\n    },\n\n    /**\n      Enable the legacy globals mode by allowing this application to act\n      as a global namespace. See the docs on the `_globalsMode` property\n      for details.\n       Most of these features are already deprecated in 1.x, so we can\n      stop using them internally and try to remove them.\n       @private\n      @method _prepareForGlobalsMode\n    */\n    _prepareForGlobalsMode: function () {\n      // Create subclass of Ember.Router for this Application instance.\n      // This is to ensure that someone reopening `App.Router` does not\n      // tamper with the default `Ember.Router`.\n      this.Router = (this.Router || _emberRouting.Router).extend();\n\n      this._buildDeprecatedInstance();\n    },\n\n    /*\n      Build the deprecated instance for legacy globals mode support.\n      Called when creating and resetting the application.\n       This is orthogonal to autoboot: the deprecated instance needs to\n      be created at Application construction (not boot) time to expose\n      App.__container__. If autoboot sees that this instance exists,\n      it will continue booting it to avoid doing unncessary work (as\n      opposed to building a new instance at boot time), but they are\n      otherwise unrelated.\n       @private\n      @method _buildDeprecatedInstance\n    */\n    _buildDeprecatedInstance: function () {\n      // Build a default instance\n      var instance = this.buildInstance();\n\n      // Legacy support for App.__container__ and other global methods\n      // on App that rely on a single, default instance.\n      this.__deprecatedInstance__ = instance;\n      this.__container__ = instance.__container__;\n    },\n\n    /**\n      Automatically kick-off the boot process for the application once the\n      DOM has become ready.\n       The initialization itself is scheduled on the actions queue which\n      ensures that code-loading finishes before booting.\n       If you are asynchronously loading code, you should call `deferReadiness()`\n      to defer booting, and then call `advanceReadiness()` once all of your code\n      has finished loading.\n       @private\n      @method waitForDOMReady\n    */\n    waitForDOMReady: function () {\n      if (!this.$ || this.$.isReady) {\n        _emberMetal.run.schedule('actions', this, 'domReady');\n      } else {\n        this.$().ready(_emberMetal.run.bind(this, 'domReady'));\n      }\n    },\n\n    /**\n      This is the autoboot flow:\n       1. Boot the app by calling `this.boot()`\n      2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n      3. Boot the instance by calling `instance.boot()`\n      4. Invoke the `App.ready()` callback\n      5. Kick-off routing on the instance\n       Ideally, this is all we would need to do:\n       ```javascript\n      _autoBoot() {\n        this.boot().then(() => {\n          let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.buildInstance();\n          return instance.boot();\n        }).then((instance) => {\n          App.ready();\n          instance.startRouting();\n        });\n      }\n      ```\n       Unfortunately, we cannot actually write this because we need to participate\n      in the \"synchronous\" boot process. While the code above would work fine on\n      the initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\n      boot a new instance synchronously (see the documentation on `_bootSync()`\n      for details).\n       Because of this restriction, the actual logic of this method is located\n      inside `didBecomeReady()`.\n       @private\n      @method domReady\n    */\n    domReady: function () {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      this._bootSync();\n\n      // Continues to `didBecomeReady`\n    },\n\n    /**\n      Use this to defer readiness until some condition is true.\n       Example:\n       ```javascript\n      let App = Ember.Application.create();\n       App.deferReadiness();\n       // Ember.$ is a reference to the jQuery object/function\n      Ember.$.getJSON('/auth-token', function(token) {\n        App.token = token;\n        App.advanceReadiness();\n      });\n      ```\n       This allows you to perform asynchronous setup logic and defer\n      booting your application until the setup has finished.\n       However, if the setup requires a loading UI, it might be better\n      to use the router for this purpose.\n       @method deferReadiness\n      @public\n    */\n    deferReadiness: function () {\n      _emberDebug.assert('You must call deferReadiness on an instance of Ember.Application', this instanceof Application);\n      _emberDebug.assert('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0);\n      this._readinessDeferrals++;\n    },\n\n    /**\n      Call `advanceReadiness` after any asynchronous setup logic has completed.\n      Each call to `deferReadiness` must be matched by a call to `advanceReadiness`\n      or the application will never become ready and routing will not begin.\n       @method advanceReadiness\n      @see {Ember.Application#deferReadiness}\n      @public\n    */\n    advanceReadiness: function () {\n      _emberDebug.assert('You must call advanceReadiness on an instance of Ember.Application', this instanceof Application);\n      this._readinessDeferrals--;\n\n      if (this._readinessDeferrals === 0) {\n        _emberMetal.run.once(this, this.didBecomeReady);\n      }\n    },\n\n    /**\n      Initialize the application and return a promise that resolves with the `Ember.Application`\n      object when the boot process is complete.\n       Run any application initializers and run the application load hook. These hooks may\n      choose to defer readiness. For example, an authentication hook might want to defer\n      readiness until the auth token has been retrieved.\n       By default, this method is called automatically on \"DOM ready\"; however, if autoboot\n      is disabled, this is automatically called when the first application instance is\n      created via `visit`.\n       @private\n      @method boot\n      @return {Promise<Ember.Application,Error>}\n    */\n    boot: function () {\n      if (this._bootPromise) {\n        return this._bootPromise;\n      }\n\n      try {\n        this._bootSync();\n      } catch (_) {\n        // Ignore th error: in the asynchronous boot path, the error is already reflected\n        // in the promise rejection\n      }\n\n      return this._bootPromise;\n    },\n\n    /**\n      Unfortunately, a lot of existing code assumes the booting process is\n      \"synchronous\". Specifically, a lot of tests assumes the last call to\n      `app.advanceReadiness()` or `app.reset()` will result in the app being\n      fully-booted when the current runloop completes.\n       We would like new code (like the `visit` API) to stop making this assumption,\n      so we created the asynchronous version above that returns a promise. But until\n      we have migrated all the code, we would have to expose this method for use\n      *internally* in places where we need to boot an app \"synchronously\".\n       @private\n    */\n    _bootSync: function () {\n      if (this._booted) {\n        return;\n      }\n\n      // Even though this returns synchronously, we still need to make sure the\n      // boot promise exists for book-keeping purposes: if anything went wrong in\n      // the boot process, we need to store the error as a rejection on the boot\n      // promise so that a future caller of `boot()` can tell what failed.\n      var defer = this._bootResolver = new _emberRuntime.RSVP.defer();\n      this._bootPromise = defer.promise;\n\n      try {\n        this.runInitializers();\n        _emberRuntime.runLoadHooks('application', this);\n        this.advanceReadiness();\n        // Continues to `didBecomeReady`\n      } catch (error) {\n        // For the asynchronous boot path\n        defer.reject(error);\n\n        // For the synchronous boot path\n        throw error;\n      }\n    },\n\n    /**\n      Reset the application. This is typically used only in tests. It cleans up\n      the application in the following order:\n       1. Deactivate existing routes\n      2. Destroy all objects in the container\n      3. Create a new application container\n      4. Re-route to the existing url\n       Typical Example:\n       ```javascript\n      let App;\n       run(function() {\n        App = Ember.Application.create();\n      });\n       module('acceptance test', {\n        setup: function() {\n          App.reset();\n        }\n      });\n       test('first test', function() {\n        // App is freshly reset\n      });\n       test('second test', function() {\n        // App is again freshly reset\n      });\n      ```\n       Advanced Example:\n       Occasionally you may want to prevent the app from initializing during\n      setup. This could enable extra configuration, or enable asserting prior\n      to the app becoming ready.\n       ```javascript\n      let App;\n       run(function() {\n        App = Ember.Application.create();\n      });\n       module('acceptance test', {\n        setup: function() {\n          run(function() {\n            App.reset();\n            App.deferReadiness();\n          });\n        }\n      });\n       test('first test', function() {\n        ok(true, 'something before app is initialized');\n         run(function() {\n          App.advanceReadiness();\n        });\n         ok(true, 'something after app is initialized');\n      });\n      ```\n       @method reset\n      @public\n    */\n    reset: function () {\n      _emberDebug.assert('Calling reset() on instances of `Ember.Application` is not\\n            supported when globals mode is disabled; call `visit()` to\\n            create new `Ember.ApplicationInstance`s and dispose them\\n            via their `destroy()` method instead.', this._globalsMode && this.autoboot);\n\n      var instance = this.__deprecatedInstance__;\n\n      this._readinessDeferrals = 1;\n      this._bootPromise = null;\n      this._bootResolver = null;\n      this._booted = false;\n\n      function handleReset() {\n        _emberMetal.run(instance, 'destroy');\n        this._buildDeprecatedInstance();\n        _emberMetal.run.schedule('actions', this, '_bootSync');\n      }\n\n      _emberMetal.run.join(this, handleReset);\n    },\n\n    /**\n      @private\n      @method didBecomeReady\n    */\n    didBecomeReady: function () {\n      try {\n        // TODO: Is this still needed for _globalsMode = false?\n        if (!_emberDebug.isTesting()) {\n          // Eagerly name all classes that are already loaded\n          _emberRuntime.Namespace.processAll();\n          _emberRuntime.setNamespaceSearchDisabled(true);\n        }\n\n        // See documentation on `_autoboot()` for details\n        if (this.autoboot) {\n          var instance = undefined;\n\n          if (this._globalsMode) {\n            // If we already have the __deprecatedInstance__ lying around, boot it to\n            // avoid unnecessary work\n            instance = this.__deprecatedInstance__;\n          } else {\n            // Otherwise, build an instance and boot it. This is currently unreachable,\n            // because we forced _globalsMode to === autoboot; but having this branch\n            // allows us to locally toggle that flag for weeding out legacy globals mode\n            // dependencies independently\n            instance = this.buildInstance();\n          }\n\n          instance._bootSync();\n\n          // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n          this.ready();\n\n          instance.startRouting();\n        }\n\n        // For the asynchronous boot path\n        this._bootResolver.resolve(this);\n\n        // For the synchronous boot path\n        this._booted = true;\n      } catch (error) {\n        // For the asynchronous boot path\n        this._bootResolver.reject(error);\n\n        // For the synchronous boot path\n        throw error;\n      }\n    },\n\n    /**\n      Called when the Application has become ready, immediately before routing\n      begins. The call will be delayed until the DOM has become ready.\n       @event ready\n      @public\n    */\n    ready: function () {\n      return this;\n    },\n\n    // This method must be moved to the application instance object\n    willDestroy: function () {\n      this._super.apply(this, arguments);\n      _emberRuntime.setNamespaceSearchDisabled(false);\n      this._booted = false;\n      this._bootPromise = null;\n      this._bootResolver = null;\n\n      if (_emberRuntime._loaded.application === this) {\n        _emberRuntime._loaded.application = undefined;\n      }\n\n      if (this._globalsMode && this.__deprecatedInstance__) {\n        this.__deprecatedInstance__.destroy();\n      }\n    },\n\n    /**\n      Boot a new instance of `Ember.ApplicationInstance` for the current\n      application and navigate it to the given `url`. Returns a `Promise` that\n      resolves with the instance when the initial routing and rendering is\n      complete, or rejects with any error that occured during the boot process.\n       When `autoboot` is disabled, calling `visit` would first cause the\n      application to boot, which runs the application initializers.\n       This method also takes a hash of boot-time configuration options for\n      customizing the instance's behavior. See the documentation on\n      `Ember.ApplicationInstance.BootOptions` for details.\n       `Ember.ApplicationInstance.BootOptions` is an interface class that exists\n      purely to document the available options; you do not need to construct it\n      manually. Simply pass a regular JavaScript object containing of the\n      desired options:\n       ```javascript\n      MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n      ```\n       ### Supported Scenarios\n       While the `BootOptions` class exposes a large number of knobs, not all\n      combinations of them are valid; certain incompatible combinations might\n      result in unexpected behavior.\n       For example, booting the instance in the full browser environment\n      while specifying a foriegn `document` object (e.g. `{ isBrowser: true,\n      document: iframe.contentDocument }`) does not work correctly today,\n      largely due to Ember's jQuery dependency.\n       Currently, there are three officially supported scenarios/configurations.\n      Usages outside of these scenarios are not guaranteed to work, but please\n      feel free to file bug reports documenting your experience and any issues\n      you encountered to help expand support.\n       #### Browser Applications (Manual Boot)\n       The setup is largely similar to how Ember works out-of-the-box. Normally,\n      Ember will boot a default instance for your Application on \"DOM ready\".\n      However, you can customize this behavior by disabling `autoboot`.\n       For example, this allows you to render a miniture demo of your application\n      into a specific area on your marketing website:\n       ```javascript\n      import MyApp from 'my-app';\n       $(function() {\n        let App = MyApp.create({ autoboot: false });\n         let options = {\n          // Override the router's location adapter to prevent it from updating\n          // the URL in the address bar\n          location: 'none',\n           // Override the default `rootElement` on the app to render into a\n          // specific `div` on the page\n          rootElement: '#demo'\n        };\n         // Start the app at the special demo URL\n        App.visit('/demo', options);\n      });\n      ````\n       Or perhaps you might want to boot two instances of your app on the same\n      page for a split-screen multiplayer experience:\n       ```javascript\n      import MyApp from 'my-app';\n       $(function() {\n        let App = MyApp.create({ autoboot: false });\n         let sessionId = MyApp.generateSessionID();\n         let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n        let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n         Promise.all([player1, player2]).then(() => {\n          // Both apps have completed the initial render\n          $('#loading').fadeOut();\n        });\n      });\n      ```\n       Do note that each app instance maintains their own registry/container, so\n      they will run in complete isolation by default.\n       #### Server-Side Rendering (also known as FastBoot)\n       This setup allows you to run your Ember app in a server environment using\n      Node.js and render its content into static HTML for SEO purposes.\n       ```javascript\n      const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n       function renderURL(url) {\n        let dom = new SimpleDOM.Document();\n        let rootElement = dom.body;\n        let options = { isBrowser: false, document: dom, rootElement: rootElement };\n         return MyApp.visit(options).then(instance => {\n          try {\n            return HTMLSerializer.serialize(rootElement.firstChild);\n          } finally {\n            instance.destroy();\n          }\n        });\n      }\n      ```\n       In this scenario, because Ember does not have access to a global `document`\n      object in the Node.js environment, you must provide one explicitly. In practice,\n      in the non-browser environment, the stand-in `document` object only need to\n      implement a limited subset of the full DOM API. The `SimpleDOM` library is known\n      to work.\n       Since there is no access to jQuery in the non-browser environment, you must also\n      specify a DOM `Element` object in the same `document` for the `rootElement` option\n      (as opposed to a selector string like `\"body\"`).\n       See the documentation on the `isBrowser`, `document` and `rootElement` properties\n      on `Ember.ApplicationInstance.BootOptions` for details.\n       #### Server-Side Resource Discovery\n       This setup allows you to run the routing layer of your Ember app in a server\n      environment using Node.js and completely disable rendering. This allows you\n      to simulate and discover the resources (i.e. AJAX requests) needed to fufill\n      a given request and eagerly \"push\" these resources to the client.\n       ```app/initializers/network-service.js\n      import BrowserNetworkService from 'app/services/network/browser';\n      import NodeNetworkService from 'app/services/network/node';\n       // Inject a (hypothetical) service for abstracting all AJAX calls and use\n      // the appropiate implementaion on the client/server. This also allows the\n      // server to log all the AJAX calls made during a particular request and use\n      // that for resource-discovery purpose.\n       export function initialize(application) {\n        if (window) { // browser\n          application.register('service:network', BrowserNetworkService);\n        } else { // node\n          application.register('service:network', NodeNetworkService);\n        }\n         application.inject('route', 'network', 'service:network');\n      };\n       export default {\n        name: 'network-service',\n        initialize: initialize\n      };\n      ```\n       ```app/routes/post.js\n      import Ember from 'ember';\n       // An example of how the (hypothetical) service is used in routes.\n       export default Ember.Route.extend({\n        model(params) {\n          return this.network.fetch(`/api/posts/${params.post_id}.json`);\n        },\n         afterModel(post) {\n          if (post.isExternalContent) {\n            return this.network.fetch(`/api/external/?url=${post.externalURL}`);\n          } else {\n            return post;\n          }\n        }\n      });\n      ```\n       ```javascript\n      // Finally, put all the pieces together\n       function discoverResourcesFor(url) {\n        return MyApp.visit(url, { isBrowser: false, shouldRender: false }).then(instance => {\n          let networkService = instance.lookup('service:network');\n          return networkService.requests; // => { \"/api/posts/123.json\": \"...\" }\n        });\n      }\n      ```\n       @public\n      @method visit\n      @param url {String} The initial URL to navigate to\n      @param options {Ember.ApplicationInstance.BootOptions}\n      @return {Promise<Ember.ApplicationInstance, Error>}\n    */\n    visit: function (url, options) {\n      var _this = this;\n\n      return this.boot().then(function () {\n        var instance = _this.buildInstance();\n\n        return instance.boot(options).then(function () {\n          return instance.visit(url);\n        }).catch(function (error) {\n          _emberMetal.run(instance, 'destroy');\n          throw error;\n        });\n      });\n    }\n  });\n\n  Object.defineProperty(Application.prototype, 'registry', {\n    configurable: true,\n    enumerable: false,\n    get: function () {\n      return _emberRuntime.buildFakeRegistryWithDeprecations(this, 'Application');\n    }\n  });\n\n  Application.reopenClass({\n    /**\n      This creates a registry with the default Ember naming conventions.\n       It also configures the registry:\n       * registered views are created every time they are looked up (they are\n        not singletons)\n      * registered templates are not factories; the registered value is\n        returned directly.\n      * the router receives the application as its `namespace` property\n      * all controllers receive the router as their `target` and `controllers`\n        properties\n      * all controllers receive the application as their `namespace` property\n      * the application view receives the application controller as its\n        `controller` property\n      * the application view receives the application template as its\n        `defaultTemplate` property\n       @method buildRegistry\n      @static\n      @param {Ember.Application} namespace the application for which to\n        build the registry\n      @return {Ember.Registry} the built registry\n      @private\n    */\n    buildRegistry: function (application) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      var registry = this._super.apply(this, arguments);\n\n      commonSetupRegistry(registry);\n\n      _emberGlimmer.setupApplicationRegistry(registry);\n\n      return registry;\n    }\n  });\n\n  function commonSetupRegistry(registry) {\n    registry.register('-view-registry:main', { create: function () {\n        return _emberUtils.dictionary(null);\n      } });\n\n    registry.register('route:basic', _emberRouting.Route);\n    registry.register('event_dispatcher:main', _emberViews.EventDispatcher);\n\n    registry.injection('router:main', 'namespace', 'application:main');\n\n    registry.register('location:auto', _emberRouting.AutoLocation);\n    registry.register('location:hash', _emberRouting.HashLocation);\n    registry.register('location:history', _emberRouting.HistoryLocation);\n    registry.register('location:none', _emberRouting.NoneLocation);\n\n    registry.register(_container.privatize(_templateObject), _emberRouting.BucketCache);\n\n    if (false) {\n      registry.register('service:router', _emberRouting.RouterService);\n      registry.injection('service:router', 'router', 'router:main');\n    }\n  }\n\n  function registerLibraries() {\n    if (!librariesRegistered) {\n      librariesRegistered = true;\n\n      if (_emberEnvironment.environment.hasDOM && typeof _emberViews.jQuery === 'function') {\n        _emberMetal.libraries.registerCoreLibrary('jQuery', _emberViews.jQuery().jquery);\n      }\n    }\n  }\n\n  function logLibraryVersions() {\n    var _this2 = this;\n\n    _emberDebug.runInDebug(function () {\n      if (_emberEnvironment.ENV.LOG_VERSION) {\n        // we only need to see this once per Application#init\n        _emberEnvironment.ENV.LOG_VERSION = false;\n        var libs = _emberMetal.libraries._registry;\n\n        var nameLengths = libs.map(function (item) {\n          return _emberMetal.get(item, 'name.length');\n        });\n\n        var maxNameLength = Math.max.apply(_this2, nameLengths);\n\n        _emberDebug.debug('-------------------------------');\n        for (var i = 0; i < libs.length; i++) {\n          var lib = libs[i];\n          var spaces = new Array(maxNameLength - lib.name.length + 1).join(' ');\n          _emberDebug.debug([lib.name, spaces, ' : ', lib.version].join(''));\n        }\n        _emberDebug.debug('-------------------------------');\n      }\n    });\n  }\n\n  exports.default = Application;\n});\nenifed('ember-application/system/engine-instance', ['exports', 'ember-utils', 'ember-runtime', 'ember-debug', 'ember-metal', 'container', 'ember-application/system/engine-parent'], function (exports, _emberUtils, _emberRuntime, _emberDebug, _emberMetal, _container, _emberApplicationSystemEngineParent) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n\n  'use strict';\n\n  var _EmberObject$extend;\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n  /**\n    The `EngineInstance` encapsulates all of the stateful aspects of a\n    running `Engine`.\n  \n    @public\n    @class Ember.EngineInstance\n    @extends Ember.Object\n    @uses RegistryProxyMixin\n    @uses ContainerProxyMixin\n  */\n\n  var EngineInstance = _emberRuntime.Object.extend(_emberRuntime.RegistryProxyMixin, _emberRuntime.ContainerProxyMixin, (_EmberObject$extend = {\n    /**\n      The base `Engine` for which this is an instance.\n       @property {Ember.Engine} engine\n      @private\n    */\n    base: null,\n\n    init: function () {\n      this._super.apply(this, arguments);\n\n      _emberUtils.guidFor(this);\n\n      var base = this.base;\n\n      if (!base) {\n        base = this.application;\n        this.base = base;\n      }\n\n      // Create a per-instance registry that will use the application's registry\n      // as a fallback for resolving registrations.\n      var registry = this.__registry__ = new _container.Registry({\n        fallback: base.__registry__\n      });\n\n      // Create a per-instance container from the instance's registry\n      this.__container__ = registry.container({ owner: this });\n\n      this._booted = false;\n    },\n\n    /**\n      Initialize the `Ember.EngineInstance` and return a promise that resolves\n      with the instance itself when the boot process is complete.\n       The primary task here is to run any registered instance initializers.\n       See the documentation on `BootOptions` for the options it takes.\n       @private\n      @method boot\n      @param options {Object}\n      @return {Promise<Ember.EngineInstance,Error>}\n    */\n    boot: function (options) {\n      var _this = this;\n\n      if (this._bootPromise) {\n        return this._bootPromise;\n      }\n\n      this._bootPromise = new _emberRuntime.RSVP.Promise(function (resolve) {\n        return resolve(_this._bootSync(options));\n      });\n\n      return this._bootPromise;\n    },\n\n    /**\n      Unfortunately, a lot of existing code assumes booting an instance is\n      synchronous – specifically, a lot of tests assume the last call to\n      `app.advanceReadiness()` or `app.reset()` will result in a new instance\n      being fully-booted when the current runloop completes.\n       We would like new code (like the `visit` API) to stop making this\n      assumption, so we created the asynchronous version above that returns a\n      promise. But until we have migrated all the code, we would have to expose\n      this method for use *internally* in places where we need to boot an instance\n      synchronously.\n       @private\n    */\n    _bootSync: function (options) {\n      if (this._booted) {\n        return this;\n      }\n\n      _emberDebug.assert('An engine instance\\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.', _emberApplicationSystemEngineParent.getEngineParent(this));\n\n      this.cloneParentDependencies();\n\n      this.setupRegistry(options);\n\n      this.base.runInstanceInitializers(this);\n\n      this._booted = true;\n\n      return this;\n    },\n\n    setupRegistry: function () {\n      var options = arguments.length <= 0 || arguments[0] === undefined ? this.__container__.lookup('-environment:main') : arguments[0];\n\n      this.constructor.setupRegistry(this.__registry__, options);\n    },\n\n    /**\n     Unregister a factory.\n      Overrides `RegistryProxy#unregister` in order to clear any cached instances\n     of the unregistered factory.\n      @public\n     @method unregister\n     @param {String} fullName\n     */\n    unregister: function (fullName) {\n      this.__container__.reset(fullName);\n      this._super.apply(this, arguments);\n    },\n\n    /**\n      @private\n    */\n    willDestroy: function () {\n      this._super.apply(this, arguments);\n      _emberMetal.run(this.__container__, 'destroy');\n    },\n\n    /**\n      Build a new `Ember.EngineInstance` that's a child of this instance.\n       Engines must be registered by name with their parent engine\n      (or application).\n       @private\n      @method buildChildEngineInstance\n      @param name {String} the registered name of the engine.\n      @param options {Object} options provided to the engine instance.\n      @return {Ember.EngineInstance,Error}\n    */\n    buildChildEngineInstance: function (name) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      var Engine = this.lookup('engine:' + name);\n\n      if (!Engine) {\n        throw new _emberDebug.Error('You attempted to mount the engine \\'' + name + '\\', but it is not registered with its parent.');\n      }\n\n      var engineInstance = Engine.buildInstance(options);\n\n      _emberApplicationSystemEngineParent.setEngineParent(engineInstance, this);\n\n      return engineInstance;\n    },\n\n    /**\n      Clone dependencies shared between an engine instance and its parent.\n       @private\n      @method cloneParentDependencies\n    */\n    cloneParentDependencies: function () {\n      var _this2 = this;\n\n      var parent = _emberApplicationSystemEngineParent.getEngineParent(this);\n\n      var registrations = ['route:basic', 'event_dispatcher:main', 'service:-routing', 'service:-glimmer-environment'];\n\n      registrations.forEach(function (key) {\n        return _this2.register(key, parent.resolveRegistration(key));\n      });\n\n      var env = parent.lookup('-environment:main');\n      this.register('-environment:main', env, { instantiate: false });\n\n      var singletons = ['router:main', _container.privatize(_templateObject), '-view-registry:main', 'renderer:-' + (env.isInteractive ? 'dom' : 'inert')];\n\n      singletons.forEach(function (key) {\n        return _this2.register(key, parent.lookup(key), { instantiate: false });\n      });\n\n      this.inject('view', '_environment', '-environment:main');\n      this.inject('route', '_environment', '-environment:main');\n    }\n\n  }, _EmberObject$extend[_container.FACTORY_FOR] = function (fullName, options) {\n    return this.__container__[_container.FACTORY_FOR](fullName, options);\n  }, _EmberObject$extend[_container.LOOKUP_FACTORY] = function (fullName, options) {\n    return this.__container__[_container.LOOKUP_FACTORY](fullName, options);\n  }, _EmberObject$extend));\n\n  EngineInstance.reopenClass({\n    /**\n     @private\n     @method setupRegistry\n     @param {Registry} registry\n     @param {BootOptions} options\n     */\n    setupRegistry: function (registry, options) {\n      // when no options/environment is present, do nothing\n      if (!options) {\n        return;\n      }\n\n      registry.injection('view', '_environment', '-environment:main');\n      registry.injection('route', '_environment', '-environment:main');\n\n      if (options.isInteractive) {\n        registry.injection('view', 'renderer', 'renderer:-dom');\n        registry.injection('component', 'renderer', 'renderer:-dom');\n      } else {\n        registry.injection('view', 'renderer', 'renderer:-inert');\n        registry.injection('component', 'renderer', 'renderer:-inert');\n      }\n    }\n  });\n\n  exports.default = EngineInstance;\n});\nenifed('ember-application/system/engine-parent', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  'use strict';\n\n  exports.getEngineParent = getEngineParent;\n  exports.setEngineParent = setEngineParent;\n  var ENGINE_PARENT = _emberUtils.symbol('ENGINE_PARENT');\n\n  exports.ENGINE_PARENT = ENGINE_PARENT;\n  /**\n    `getEngineParent` retrieves an engine instance's parent instance.\n  \n    @method getEngineParent\n    @param {EngineInstance} engine An engine instance.\n    @return {EngineInstance} The parent engine instance.\n    @for Ember\n    @public\n  */\n\n  function getEngineParent(engine) {\n    return engine[ENGINE_PARENT];\n  }\n\n  /**\n    `setEngineParent` sets an engine instance's parent instance.\n  \n    @method setEngineParent\n    @param {EngineInstance} engine An engine instance.\n    @param {EngineInstance} parent The parent engine instance.\n    @private\n  */\n\n  function setEngineParent(engine, parent) {\n    engine[ENGINE_PARENT] = parent;\n  }\n});\nenifed('ember-application/system/engine', ['exports', 'ember-utils', 'ember-runtime', 'container', 'dag-map', 'ember-debug', 'ember-metal', 'ember-application/system/resolver', 'ember-application/system/engine-instance', 'ember-routing', 'ember-extension-support', 'ember-views', 'ember-glimmer'], function (exports, _emberUtils, _emberRuntime, _container, _dagMap, _emberDebug, _emberMetal, _emberApplicationSystemResolver, _emberApplicationSystemEngineInstance, _emberRouting, _emberExtensionSupport, _emberViews, _emberGlimmer) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n  'use strict';\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n  function props(obj) {\n    var properties = [];\n\n    for (var key in obj) {\n      properties.push(key);\n    }\n\n    return properties;\n  }\n\n  /**\n    The `Engine` class contains core functionality for both applications and\n    engines.\n  \n    Each engine manages a registry that's used for dependency injection and\n    exposed through `RegistryProxy`.\n  \n    Engines also manage initializers and instance initializers.\n  \n    Engines can spawn `EngineInstance` instances via `buildInstance()`.\n  \n    @class Engine\n    @namespace Ember\n    @extends Ember.Namespace\n    @uses RegistryProxy\n    @public\n  */\n  var Engine = _emberRuntime.Namespace.extend(_emberRuntime.RegistryProxyMixin, {\n    init: function () {\n      this._super.apply(this, arguments);\n\n      this.buildRegistry();\n    },\n\n    /**\n      A private flag indicating whether an engine's initializers have run yet.\n       @private\n      @property _initializersRan\n    */\n    _initializersRan: false,\n\n    /**\n      Ensure that initializers are run once, and only once, per engine.\n       @private\n      @method ensureInitializers\n    */\n    ensureInitializers: function () {\n      if (!this._initializersRan) {\n        this.runInitializers();\n        this._initializersRan = true;\n      }\n    },\n\n    /**\n      Create an EngineInstance for this engine.\n       @private\n      @method buildInstance\n      @return {Ember.EngineInstance} the engine instance\n    */\n    buildInstance: function () {\n      var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      this.ensureInitializers();\n      options.base = this;\n      return _emberApplicationSystemEngineInstance.default.create(options);\n    },\n\n    /**\n      Build and configure the registry for the current engine.\n       @private\n      @method buildRegistry\n      @return {Ember.Registry} the configured registry\n    */\n    buildRegistry: function () {\n      var registry = this.__registry__ = this.constructor.buildRegistry(this);\n\n      return registry;\n    },\n\n    /**\n      @private\n      @method initializer\n    */\n    initializer: function (options) {\n      this.constructor.initializer(options);\n    },\n\n    /**\n      @private\n      @method instanceInitializer\n    */\n    instanceInitializer: function (options) {\n      this.constructor.instanceInitializer(options);\n    },\n\n    /**\n      @private\n      @method runInitializers\n    */\n    runInitializers: function () {\n      var _this = this;\n\n      this._runInitializer('initializers', function (name, initializer) {\n        _emberDebug.assert('No application initializer named \\'' + name + '\\'', !!initializer);\n        if (initializer.initialize.length === 2) {\n          _emberDebug.deprecate('The `initialize` method for Application initializer \\'' + name + '\\' should take only one argument - `App`, an instance of an `Application`.', false, {\n            id: 'ember-application.app-initializer-initialize-arguments',\n            until: '3.0.0',\n            url: 'http://emberjs.com/deprecations/v2.x/#toc_initializer-arity'\n          });\n\n          initializer.initialize(_this.__registry__, _this);\n        } else {\n          initializer.initialize(_this);\n        }\n      });\n    },\n\n    /**\n      @private\n      @since 1.12.0\n      @method runInstanceInitializers\n    */\n    runInstanceInitializers: function (instance) {\n      this._runInitializer('instanceInitializers', function (name, initializer) {\n        _emberDebug.assert('No instance initializer named \\'' + name + '\\'', !!initializer);\n        initializer.initialize(instance);\n      });\n    },\n\n    _runInitializer: function (bucketName, cb) {\n      var initializersByName = _emberMetal.get(this.constructor, bucketName);\n      var initializers = props(initializersByName);\n      var graph = new _dagMap.default();\n      var initializer = undefined;\n\n      for (var i = 0; i < initializers.length; i++) {\n        initializer = initializersByName[initializers[i]];\n        graph.add(initializer.name, initializer, initializer.before, initializer.after);\n      }\n\n      graph.topsort(cb);\n    }\n  });\n\n  Engine.reopenClass({\n    initializers: Object.create(null),\n    instanceInitializers: Object.create(null),\n\n    /**\n      The goal of initializers should be to register dependencies and injections.\n      This phase runs once. Because these initializers may load code, they are\n      allowed to defer application readiness and advance it. If you need to access\n      the container or store you should use an InstanceInitializer that will be run\n      after all initializers and therefore after all code is loaded and the app is\n      ready.\n       Initializer receives an object which has the following attributes:\n      `name`, `before`, `after`, `initialize`. The only required attribute is\n      `initialize`, all others are optional.\n       * `name` allows you to specify under which name the initializer is registered.\n      This must be a unique name, as trying to register two initializers with the\n      same name will result in an error.\n       ```javascript\n      Ember.Application.initializer({\n        name: 'namedInitializer',\n         initialize: function(application) {\n          Ember.debug('Running namedInitializer!');\n        }\n      });\n      ```\n       * `before` and `after` are used to ensure that this initializer is ran prior\n      or after the one identified by the value. This value can be a single string\n      or an array of strings, referencing the `name` of other initializers.\n       An example of ordering initializers, we create an initializer named `first`:\n       ```javascript\n      Ember.Application.initializer({\n        name: 'first',\n         initialize: function(application) {\n          Ember.debug('First initializer!');\n        }\n      });\n       // DEBUG: First initializer!\n      ```\n       We add another initializer named `second`, specifying that it should run\n      after the initializer named `first`:\n       ```javascript\n      Ember.Application.initializer({\n        name: 'second',\n        after: 'first',\n         initialize: function(application) {\n          Ember.debug('Second initializer!');\n        }\n      });\n       // DEBUG: First initializer!\n      // DEBUG: Second initializer!\n      ```\n       Afterwards we add a further initializer named `pre`, this time specifying\n      that it should run before the initializer named `first`:\n       ```javascript\n      Ember.Application.initializer({\n        name: 'pre',\n        before: 'first',\n         initialize: function(application) {\n          Ember.debug('Pre initializer!');\n        }\n      });\n       // DEBUG: Pre initializer!\n      // DEBUG: First initializer!\n      // DEBUG: Second initializer!\n      ```\n       Finally we add an initializer named `post`, specifying it should run after\n      both the `first` and the `second` initializers:\n       ```javascript\n      Ember.Application.initializer({\n        name: 'post',\n        after: ['first', 'second'],\n         initialize: function(application) {\n          Ember.debug('Post initializer!');\n        }\n      });\n       // DEBUG: Pre initializer!\n      // DEBUG: First initializer!\n      // DEBUG: Second initializer!\n      // DEBUG: Post initializer!\n      ```\n       * `initialize` is a callback function that receives one argument,\n        `application`, on which you can operate.\n       Example of using `application` to register an adapter:\n       ```javascript\n      Ember.Application.initializer({\n        name: 'api-adapter',\n         initialize: function(application) {\n          application.register('api-adapter:main', ApiAdapter);\n        }\n      });\n      ```\n       @method initializer\n      @param initializer {Object}\n      @public\n    */\n\n    initializer: buildInitializerMethod('initializers', 'initializer'),\n\n    /**\n      Instance initializers run after all initializers have run. Because\n      instance initializers run after the app is fully set up. We have access\n      to the store, container, and other items. However, these initializers run\n      after code has loaded and are not allowed to defer readiness.\n       Instance initializer receives an object which has the following attributes:\n      `name`, `before`, `after`, `initialize`. The only required attribute is\n      `initialize`, all others are optional.\n       * `name` allows you to specify under which name the instanceInitializer is\n      registered. This must be a unique name, as trying to register two\n      instanceInitializer with the same name will result in an error.\n       ```javascript\n      Ember.Application.instanceInitializer({\n        name: 'namedinstanceInitializer',\n         initialize: function(application) {\n          Ember.debug('Running namedInitializer!');\n        }\n      });\n      ```\n       * `before` and `after` are used to ensure that this initializer is ran prior\n      or after the one identified by the value. This value can be a single string\n      or an array of strings, referencing the `name` of other initializers.\n       * See Ember.Application.initializer for discussion on the usage of before\n      and after.\n       Example instanceInitializer to preload data into the store.\n       ```javascript\n      Ember.Application.initializer({\n        name: 'preload-data',\n         initialize: function(application) {\n          var userConfig, userConfigEncoded, store;\n          // We have a HTML escaped JSON representation of the user's basic\n          // configuration generated server side and stored in the DOM of the main\n          // index.html file. This allows the app to have access to a set of data\n          // without making any additional remote calls. Good for basic data that is\n          // needed for immediate rendering of the page. Keep in mind, this data,\n          // like all local models and data can be manipulated by the user, so it\n          // should not be relied upon for security or authorization.\n          //\n          // Grab the encoded data from the meta tag\n          userConfigEncoded = Ember.$('head meta[name=app-user-config]').attr('content');\n          // Unescape the text, then parse the resulting JSON into a real object\n          userConfig = JSON.parse(unescape(userConfigEncoded));\n          // Lookup the store\n          store = application.lookup('service:store');\n          // Push the encoded JSON into the store\n          store.pushPayload(userConfig);\n        }\n      });\n      ```\n       @method instanceInitializer\n      @param instanceInitializer\n      @public\n    */\n    instanceInitializer: buildInitializerMethod('instanceInitializers', 'instance initializer'),\n\n    /**\n      This creates a registry with the default Ember naming conventions.\n       It also configures the registry:\n       * registered views are created every time they are looked up (they are\n        not singletons)\n      * registered templates are not factories; the registered value is\n        returned directly.\n      * the router receives the application as its `namespace` property\n      * all controllers receive the router as their `target` and `controllers`\n        properties\n      * all controllers receive the application as their `namespace` property\n      * the application view receives the application controller as its\n        `controller` property\n      * the application view receives the application template as its\n        `defaultTemplate` property\n       @method buildRegistry\n      @static\n      @param {Ember.Application} namespace the application for which to\n        build the registry\n      @return {Ember.Registry} the built registry\n      @private\n    */\n    buildRegistry: function (namespace) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      var registry = new _container.Registry({\n        resolver: resolverFor(namespace)\n      });\n\n      registry.set = _emberMetal.set;\n\n      registry.register('application:main', namespace, { instantiate: false });\n\n      commonSetupRegistry(registry);\n      _emberGlimmer.setupEngineRegistry(registry);\n\n      return registry;\n    },\n\n    /**\n      Set this to provide an alternate class to `Ember.DefaultResolver`\n        @deprecated Use 'Resolver' instead\n      @property resolver\n      @public\n    */\n    resolver: null,\n\n    /**\n      Set this to provide an alternate class to `Ember.DefaultResolver`\n       @property resolver\n      @public\n    */\n    Resolver: null\n  });\n\n  /**\n    This function defines the default lookup rules for container lookups:\n  \n    * templates are looked up on `Ember.TEMPLATES`\n    * other names are looked up on the application after classifying the name.\n      For example, `controller:post` looks up `App.PostController` by default.\n    * if the default lookup fails, look for registered classes on the container\n  \n    This allows the application to register default injections in the container\n    that could be overridden by the normal naming convention.\n  \n    @private\n    @method resolverFor\n    @param {Ember.Namespace} namespace the namespace to look for classes\n    @return {*} the resolved value for a given lookup\n  */\n  function resolverFor(namespace) {\n    var ResolverClass = namespace.get('Resolver') || _emberApplicationSystemResolver.default;\n\n    return ResolverClass.create({\n      namespace: namespace\n    });\n  }\n\n  function buildInitializerMethod(bucketName, humanName) {\n    return function (initializer) {\n      // If this is the first initializer being added to a subclass, we are going to reopen the class\n      // to make sure we have a new `initializers` object, which extends from the parent class' using\n      // prototypal inheritance. Without this, attempting to add initializers to the subclass would\n      // pollute the parent class as well as other subclasses.\n      if (this.superclass[bucketName] !== undefined && this.superclass[bucketName] === this[bucketName]) {\n        var attrs = {};\n        attrs[bucketName] = Object.create(this[bucketName]);\n        this.reopenClass(attrs);\n      }\n\n      _emberDebug.assert('The ' + humanName + ' \\'' + initializer.name + '\\' has already been registered', !this[bucketName][initializer.name]);\n      _emberDebug.assert('An ' + humanName + ' cannot be registered without an initialize function', _emberUtils.canInvoke(initializer, 'initialize'));\n      _emberDebug.assert('An ' + humanName + ' cannot be registered without a name property', initializer.name !== undefined);\n\n      this[bucketName][initializer.name] = initializer;\n    };\n  }\n\n  function commonSetupRegistry(registry) {\n    registry.optionsForType('component', { singleton: false });\n    registry.optionsForType('view', { singleton: false });\n\n    registry.register('controller:basic', _emberRuntime.Controller, { instantiate: false });\n\n    registry.injection('view', '_viewRegistry', '-view-registry:main');\n    registry.injection('renderer', '_viewRegistry', '-view-registry:main');\n    registry.injection('event_dispatcher:main', '_viewRegistry', '-view-registry:main');\n\n    registry.injection('route', '_topLevelViewTemplate', 'template:-outlet');\n\n    registry.injection('view:-outlet', 'namespace', 'application:main');\n\n    registry.injection('controller', 'target', 'router:main');\n    registry.injection('controller', 'namespace', 'application:main');\n\n    registry.injection('router', '_bucketCache', _container.privatize(_templateObject));\n    registry.injection('route', '_bucketCache', _container.privatize(_templateObject));\n\n    registry.injection('route', 'router', 'router:main');\n\n    // Register the routing service...\n    registry.register('service:-routing', _emberRouting.RoutingService);\n    // Then inject the app router into it\n    registry.injection('service:-routing', 'router', 'router:main');\n\n    // DEBUGGING\n    registry.register('resolver-for-debugging:main', registry.resolver, { instantiate: false });\n    registry.injection('container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n    registry.injection('data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main');\n    // Custom resolver authors may want to register their own ContainerDebugAdapter with this key\n\n    registry.register('container-debug-adapter:main', _emberExtensionSupport.ContainerDebugAdapter);\n\n    registry.register('component-lookup:main', _emberViews.ComponentLookup);\n  }\n\n  exports.default = Engine;\n});\nenifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-application/utils/validate-type', 'ember-glimmer'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberRuntime, _emberApplicationUtilsValidateType, _emberGlimmer) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n\n  'use strict';\n\n  var Resolver = _emberRuntime.Object.extend({\n    /*\n      This will be set to the Application instance when it is\n      created.\n       @property namespace\n    */\n    namespace: null,\n    normalize: null, // required\n    resolve: null, // required\n    parseName: null, // required\n    lookupDescription: null, // required\n    makeToString: null, // required\n    resolveOther: null, // required\n    _logLookup: null // required\n  });\n\n  exports.Resolver = Resolver;\n  /**\n    The DefaultResolver defines the default lookup rules to resolve\n    container lookups before consulting the container for registered\n    items:\n  \n    * templates are looked up on `Ember.TEMPLATES`\n    * other names are looked up on the application after converting\n      the name. For example, `controller:post` looks up\n      `App.PostController` by default.\n    * there are some nuances (see examples below)\n  \n    ### How Resolving Works\n  \n    The container calls this object's `resolve` method with the\n    `fullName` argument.\n  \n    It first parses the fullName into an object using `parseName`.\n  \n    Then it checks for the presence of a type-specific instance\n    method of the form `resolve[Type]` and calls it if it exists.\n    For example if it was resolving 'template:post', it would call\n    the `resolveTemplate` method.\n  \n    Its last resort is to call the `resolveOther` method.\n  \n    The methods of this object are designed to be easy to override\n    in a subclass. For example, you could enhance how a template\n    is resolved like so:\n  \n    ```javascript\n    App = Ember.Application.create({\n      Resolver: Ember.DefaultResolver.extend({\n        resolveTemplate: function(parsedName) {\n          let resolvedTemplate = this._super(parsedName);\n          if (resolvedTemplate) { return resolvedTemplate; }\n          return Ember.TEMPLATES['not_found'];\n        }\n      })\n    });\n    ```\n  \n    Some examples of how names are resolved:\n  \n    ```\n    'template:post'           //=> Ember.TEMPLATES['post']\n    'template:posts/byline'   //=> Ember.TEMPLATES['posts/byline']\n    'template:posts.byline'   //=> Ember.TEMPLATES['posts/byline']\n    'template:blogPost'       //=> Ember.TEMPLATES['blogPost']\n                              //   OR\n                              //   Ember.TEMPLATES['blog_post']\n    'controller:post'         //=> App.PostController\n    'controller:posts.index'  //=> App.PostsIndexController\n    'controller:blog/post'    //=> Blog.PostController\n    'controller:basic'        //=> Ember.Controller\n    'route:post'              //=> App.PostRoute\n    'route:posts.index'       //=> App.PostsIndexRoute\n    'route:blog/post'         //=> Blog.PostRoute\n    'route:basic'             //=> Ember.Route\n    'view:post'               //=> App.PostView\n    'view:posts.index'        //=> App.PostsIndexView\n    'view:blog/post'          //=> Blog.PostView\n    'view:basic'              //=> Ember.View\n    'foo:post'                //=> App.PostFoo\n    'model:post'              //=> App.Post\n    ```\n  \n    @class DefaultResolver\n    @namespace Ember\n    @extends Ember.Object\n    @public\n  */\n\n  exports.default = _emberRuntime.Object.extend({\n    /**\n      This will be set to the Application instance when it is\n      created.\n       @property namespace\n      @public\n    */\n    namespace: null,\n\n    init: function () {\n      this._parseNameCache = _emberUtils.dictionary(null);\n    },\n    normalize: function (fullName) {\n      var _fullName$split = fullName.split(':', 2);\n\n      var type = _fullName$split[0];\n      var name = _fullName$split[1];\n\n      _emberDebug.assert('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2);\n\n      if (type !== 'template') {\n        var result = name;\n\n        if (result.indexOf('.') > -1) {\n          result = result.replace(/\\.(.)/g, function (m) {\n            return m.charAt(1).toUpperCase();\n          });\n        }\n\n        if (name.indexOf('_') > -1) {\n          result = result.replace(/_(.)/g, function (m) {\n            return m.charAt(1).toUpperCase();\n          });\n        }\n\n        if (name.indexOf('-') > -1) {\n          result = result.replace(/-(.)/g, function (m) {\n            return m.charAt(1).toUpperCase();\n          });\n        }\n\n        return type + ':' + result;\n      } else {\n        return fullName;\n      }\n    },\n\n    /**\n      This method is called via the container's resolver method.\n      It parses the provided `fullName` and then looks up and\n      returns the appropriate template or class.\n       @method resolve\n      @param {String} fullName the lookup string\n      @return {Object} the resolved factory\n      @public\n    */\n    resolve: function (fullName) {\n      var _this = this;\n\n      var parsedName = this.parseName(fullName);\n      var resolveMethodName = parsedName.resolveMethodName;\n      var resolved = undefined;\n\n      if (this[resolveMethodName]) {\n        resolved = this[resolveMethodName](parsedName);\n      }\n\n      resolved = resolved || this.resolveOther(parsedName);\n\n      _emberDebug.runInDebug(function () {\n        if (parsedName.root && parsedName.root.LOG_RESOLVER) {\n          _this._logLookup(resolved, parsedName);\n        }\n      });\n\n      if (resolved) {\n        _emberApplicationUtilsValidateType.default(resolved, parsedName);\n      }\n\n      return resolved;\n    },\n\n    /**\n      Convert the string name of the form 'type:name' to\n      a Javascript object with the parsed aspects of the name\n      broken out.\n       @param {String} fullName the lookup string\n      @method parseName\n      @protected\n    */\n\n    parseName: function (fullName) {\n      return this._parseNameCache[fullName] || (this._parseNameCache[fullName] = this._parseName(fullName));\n    },\n\n    _parseName: function (fullName) {\n      var _fullName$split2 = fullName.split(':');\n\n      var type = _fullName$split2[0];\n      var fullNameWithoutType = _fullName$split2[1];\n\n      var name = fullNameWithoutType;\n      var namespace = _emberMetal.get(this, 'namespace');\n      var root = namespace;\n      var lastSlashIndex = name.lastIndexOf('/');\n      var dirname = lastSlashIndex !== -1 ? name.slice(0, lastSlashIndex) : null;\n\n      if (type !== 'template' && lastSlashIndex !== -1) {\n        var parts = name.split('/');\n        name = parts[parts.length - 1];\n        var namespaceName = _emberRuntime.String.capitalize(parts.slice(0, -1).join('.'));\n        root = _emberRuntime.Namespace.byName(namespaceName);\n\n        _emberDebug.assert('You are looking for a ' + name + ' ' + type + ' in the ' + namespaceName + ' namespace, but the namespace could not be found', root);\n      }\n\n      var resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : _emberRuntime.String.classify(type);\n\n      if (!(name && type)) {\n        throw new TypeError('Invalid fullName: `' + fullName + '`, must be of the form `type:name` ');\n      }\n\n      return {\n        fullName: fullName,\n        type: type,\n        fullNameWithoutType: fullNameWithoutType,\n        dirname: dirname,\n        name: name,\n        root: root,\n        resolveMethodName: 'resolve' + resolveMethodName\n      };\n    },\n\n    /**\n      Returns a human-readable description for a fullName. Used by the\n      Application namespace in assertions to describe the\n      precise name of the class that Ember is looking for, rather than\n      container keys.\n       @param {String} fullName the lookup string\n      @method lookupDescription\n      @protected\n    */\n    lookupDescription: function (fullName) {\n      var parsedName = this.parseName(fullName);\n      var description = undefined;\n\n      if (parsedName.type === 'template') {\n        return 'template at ' + parsedName.fullNameWithoutType.replace(/\\./g, '/');\n      }\n\n      description = parsedName.root + '.' + _emberRuntime.String.classify(parsedName.name).replace(/\\./g, '');\n\n      if (parsedName.type !== 'model') {\n        description += _emberRuntime.String.classify(parsedName.type);\n      }\n\n      return description;\n    },\n\n    makeToString: function (factory, fullName) {\n      return factory.toString();\n    },\n\n    /**\n      Given a parseName object (output from `parseName`), apply\n      the conventions expected by `Ember.Router`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method useRouterNaming\n      @protected\n    */\n    useRouterNaming: function (parsedName) {\n      parsedName.name = parsedName.name.replace(/\\./g, '_');\n      if (parsedName.name === 'basic') {\n        parsedName.name = '';\n      }\n    },\n    /**\n      Look up the template in Ember.TEMPLATES\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveTemplate\n      @protected\n    */\n    resolveTemplate: function (parsedName) {\n      var templateName = parsedName.fullNameWithoutType.replace(/\\./g, '/');\n\n      return _emberGlimmer.getTemplate(templateName) || _emberGlimmer.getTemplate(_emberRuntime.String.decamelize(templateName));\n    },\n\n    /**\n      Lookup the view using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveView\n      @protected\n    */\n    resolveView: function (parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    },\n\n    /**\n      Lookup the controller using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveController\n      @protected\n    */\n    resolveController: function (parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    },\n    /**\n      Lookup the route using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveRoute\n      @protected\n    */\n    resolveRoute: function (parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    },\n\n    /**\n      Lookup the model on the Application namespace\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveModel\n      @protected\n    */\n    resolveModel: function (parsedName) {\n      var className = _emberRuntime.String.classify(parsedName.name);\n      var factory = _emberMetal.get(parsedName.root, className);\n\n      return factory;\n    },\n    /**\n      Look up the specified object (from parsedName) on the appropriate\n      namespace (usually on the Application)\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveHelper\n      @protected\n    */\n    resolveHelper: function (parsedName) {\n      return this.resolveOther(parsedName);\n    },\n    /**\n      Look up the specified object (from parsedName) on the appropriate\n      namespace (usually on the Application)\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveOther\n      @protected\n    */\n    resolveOther: function (parsedName) {\n      var className = _emberRuntime.String.classify(parsedName.name) + _emberRuntime.String.classify(parsedName.type);\n      var factory = _emberMetal.get(parsedName.root, className);\n      return factory;\n    },\n\n    resolveMain: function (parsedName) {\n      var className = _emberRuntime.String.classify(parsedName.type);\n      return _emberMetal.get(parsedName.root, className);\n    },\n\n    /**\n     @method _logLookup\n     @param {Boolean} found\n     @param {Object} parsedName\n     @private\n    */\n    _logLookup: function (found, parsedName) {\n      var symbol = undefined,\n          padding = undefined;\n\n      if (found) {\n        symbol = '[✓]';\n      } else {\n        symbol = '[ ]';\n      }\n\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n\n      _emberDebug.info(symbol, parsedName.fullName, padding, this.lookupDescription(parsedName.fullName));\n    },\n\n    /**\n     Used to iterate all items of a given type.\n      @method knownForType\n     @param {String} type the type to search for\n     @private\n     */\n    knownForType: function (type) {\n      var namespace = _emberMetal.get(this, 'namespace');\n      var suffix = _emberRuntime.String.classify(type);\n      var typeRegexp = new RegExp(suffix + '$');\n\n      var known = _emberUtils.dictionary(null);\n      var knownKeys = Object.keys(namespace);\n      for (var index = 0; index < knownKeys.length; index++) {\n        var _name = knownKeys[index];\n\n        if (typeRegexp.test(_name)) {\n          var containerName = this.translateToContainerFullname(type, _name);\n\n          known[containerName] = true;\n        }\n      }\n\n      return known;\n    },\n\n    /**\n     Converts provided name from the backing namespace into a container lookup name.\n      Examples:\n      App.FooBarHelper -> helper:foo-bar\n     App.THelper -> helper:t\n      @method translateToContainerFullname\n     @param {String} type\n     @param {String} name\n     @private\n     */\n\n    translateToContainerFullname: function (type, name) {\n      var suffix = _emberRuntime.String.classify(type);\n      var namePrefix = name.slice(0, suffix.length * -1);\n      var dasherizedName = _emberRuntime.String.dasherize(namePrefix);\n\n      return type + ':' + dasherizedName;\n    }\n  });\n});\nenifed('ember-application/utils/validate-type', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-application\n  */\n\n  'use strict';\n\n  exports.default = validateType;\n\n  var VALIDATED_TYPES = {\n    route: ['assert', 'isRouteFactory', 'Ember.Route'],\n    component: ['deprecate', 'isComponentFactory', 'Ember.Component'],\n    view: ['deprecate', 'isViewFactory', 'Ember.View'],\n    service: ['deprecate', 'isServiceFactory', 'Ember.Service']\n  };\n\n  function validateType(resolvedType, parsedName) {\n    var validationAttributes = VALIDATED_TYPES[parsedName.type];\n\n    if (!validationAttributes) {\n      return;\n    }\n\n    var action = validationAttributes[0];\n    var factoryFlag = validationAttributes[1];\n    var expectedType = validationAttributes[2];\n\n    if (action === 'deprecate') {\n      _emberDebug.deprecate('In Ember 2.0 ' + parsedName.type + ' factories must have an `' + factoryFlag + '` ' + ('property set to true. You registered ' + resolvedType + ' as a ' + parsedName.type + ' ') + ('factory. Either add the `' + factoryFlag + '` property to this factory or ') + ('extend from ' + expectedType + '.'), !!resolvedType[factoryFlag], { id: 'ember-application.validate-type', until: '3.0.0' });\n    } else {\n      _emberDebug.assert('Expected ' + parsedName.fullName + ' to resolve to an ' + expectedType + ' but ' + ('instead it was ' + resolvedType + '.'), !!resolvedType[factoryFlag]);\n    }\n  }\n});\nenifed('ember-console/index', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {\n  'use strict';\n\n  function K() {}\n\n  function consoleMethod(name) {\n    var consoleObj = undefined;\n    if (_emberEnvironment.context.imports.console) {\n      consoleObj = _emberEnvironment.context.imports.console;\n    } else if (typeof console !== 'undefined') {\n      consoleObj = console;\n    }\n\n    var method = typeof consoleObj === 'object' ? consoleObj[name] : null;\n\n    if (typeof method !== 'function') {\n      return;\n    }\n\n    if (typeof method.bind === 'function') {\n      return method.bind(consoleObj);\n    }\n\n    return function () {\n      method.apply(consoleObj, arguments);\n    };\n  }\n\n  function assertPolyfill(test, message) {\n    if (!test) {\n      try {\n        // attempt to preserve the stack\n        throw new Error('assertion failed: ' + message);\n      } catch (error) {\n        setTimeout(function () {\n          throw error;\n        }, 0);\n      }\n    }\n  }\n\n  /**\n    Inside Ember-Metal, simply uses the methods from `imports.console`.\n    Override this to provide more robust logging functionality.\n  \n    @class Logger\n    @namespace Ember\n    @public\n  */\n  exports.default = {\n    /**\n     Logs the arguments to the console.\n     You can pass as many arguments as you want and they will be joined together with a space.\n       ```javascript\n      var foo = 1;\n      Ember.Logger.log('log value of foo:', foo);\n      // \"log value of foo: 1\" will be printed to the console\n      ```\n      @method log\n     @for Ember.Logger\n     @param {*} arguments\n     @public\n    */\n    log: consoleMethod('log') || K,\n\n    /**\n     Prints the arguments to the console with a warning icon.\n     You can pass as many arguments as you want and they will be joined together with a space.\n       ```javascript\n      Ember.Logger.warn('Something happened!');\n      // \"Something happened!\" will be printed to the console with a warning icon.\n      ```\n      @method warn\n     @for Ember.Logger\n     @param {*} arguments\n     @public\n    */\n    warn: consoleMethod('warn') || K,\n\n    /**\n     Prints the arguments to the console with an error icon, red text and a stack trace.\n     You can pass as many arguments as you want and they will be joined together with a space.\n       ```javascript\n      Ember.Logger.error('Danger! Danger!');\n      // \"Danger! Danger!\" will be printed to the console in red text.\n      ```\n      @method error\n     @for Ember.Logger\n     @param {*} arguments\n     @public\n    */\n    error: consoleMethod('error') || K,\n\n    /**\n     Logs the arguments to the console.\n     You can pass as many arguments as you want and they will be joined together with a space.\n       ```javascript\n      var foo = 1;\n      Ember.Logger.info('log value of foo:', foo);\n      // \"log value of foo: 1\" will be printed to the console\n      ```\n      @method info\n     @for Ember.Logger\n     @param {*} arguments\n     @public\n    */\n    info: consoleMethod('info') || K,\n\n    /**\n     Logs the arguments to the console in blue text.\n     You can pass as many arguments as you want and they will be joined together with a space.\n       ```javascript\n      var foo = 1;\n      Ember.Logger.debug('log value of foo:', foo);\n      // \"log value of foo: 1\" will be printed to the console\n      ```\n      @method debug\n     @for Ember.Logger\n     @param {*} arguments\n     @public\n    */\n    debug: consoleMethod('debug') || consoleMethod('info') || K,\n\n    /**\n     If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace.\n       ```javascript\n      Ember.Logger.assert(true); // undefined\n      Ember.Logger.assert(true === false); // Throws an Assertion failed error.\n      Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.\n      ```\n      @method assert\n     @for Ember.Logger\n     @param {Boolean} bool Value to test\n     @param {String} message Assertion message on failed\n     @public\n    */\n    assert: consoleMethod('assert') || assertPolyfill\n  };\n});\nenifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console', 'ember-environment', 'ember-debug/handlers'], function (exports, _emberDebugError, _emberConsole, _emberEnvironment, _emberDebugHandlers) {\n  /*global __fail__*/\n\n  'use strict';\n\n  exports.registerHandler = registerHandler;\n  exports.default = deprecate;\n\n  /**\n    Allows for runtime registration of handler functions that override the default deprecation behavior.\n    Deprecations are invoked by calls to [Ember.deprecate](http://emberjs.com/api/classes/Ember.html#method_deprecate).\n    The following example demonstrates its usage by registering a handler that throws an error if the\n    message contains the word \"should\", otherwise defers to the default handler.\n  \n    ```javascript\n    Ember.Debug.registerDeprecationHandler((message, options, next) => {\n      if (message.indexOf('should') !== -1) {\n        throw new Error(`Deprecation message with should: ${message}`);\n      } else {\n        // defer to whatever handler was registered before this one\n        next(message, options);\n      }\n    });\n    ```\n  \n    The handler function takes the following arguments:\n  \n    <ul>\n      <li> <code>message</code> - The message received from the deprecation call.</li>\n      <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n        <ul>\n          <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n          <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n        </ul>\n      <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n    </ul>\n  \n    @public\n    @static\n    @method registerDeprecationHandler\n    @param handler {Function} A function to handle deprecation calls.\n    @since 2.1.0\n  */\n\n  function registerHandler(handler) {\n    _emberDebugHandlers.registerHandler('deprecate', handler);\n  }\n\n  function formatMessage(_message, options) {\n    var message = _message;\n\n    if (options && options.id) {\n      message = message + (' [deprecation id: ' + options.id + ']');\n    }\n\n    if (options && options.url) {\n      message += ' See ' + options.url + ' for more details.';\n    }\n\n    return message;\n  }\n\n  registerHandler(function logDeprecationToConsole(message, options) {\n    var updatedMessage = formatMessage(message, options);\n\n    _emberConsole.default.warn('DEPRECATION: ' + updatedMessage);\n  });\n\n  var captureErrorForStack = undefined;\n\n  if (new Error().stack) {\n    captureErrorForStack = function () {\n      return new Error();\n    };\n  } else {\n    captureErrorForStack = function () {\n      try {\n        __fail__.fail();\n      } catch (e) {\n        return e;\n      }\n    };\n  }\n\n  registerHandler(function logDeprecationStackTrace(message, options, next) {\n    if (_emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n      var stackStr = '';\n      var error = captureErrorForStack();\n      var stack = undefined;\n\n      if (error.stack) {\n        if (error['arguments']) {\n          // Chrome\n          stack = error.stack.replace(/^\\s+at\\s+/gm, '').replace(/^([^\\(]+?)([\\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\\s*\\(([^\\)]+)\\)/gm, '{anonymous}($1)').split('\\n');\n          stack.shift();\n        } else {\n          // Firefox\n          stack = error.stack.replace(/(?:\\n@:0)?\\s+$/m, '').replace(/^\\(/gm, '{anonymous}(').split('\\n');\n        }\n\n        stackStr = '\\n    ' + stack.slice(2).join('\\n    ');\n      }\n\n      var updatedMessage = formatMessage(message, options);\n\n      _emberConsole.default.warn('DEPRECATION: ' + updatedMessage + stackStr);\n    } else {\n      next.apply(undefined, arguments);\n    }\n  });\n\n  registerHandler(function raiseOnDeprecation(message, options, next) {\n    if (_emberEnvironment.ENV.RAISE_ON_DEPRECATION) {\n      var updatedMessage = formatMessage(message);\n\n      throw new _emberDebugError.default(updatedMessage);\n    } else {\n      next.apply(undefined, arguments);\n    }\n  });\n\n  var missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include `id` and `until` properties.';\n  exports.missingOptionsDeprecation = missingOptionsDeprecation;\n  var missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';\n  exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n  var missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';\n\n  exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation;\n  /**\n  @module ember\n  @submodule ember-debug\n  */\n\n  /**\n    Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only).\n  \n    * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n  \n    @method deprecate\n    @param {String} message A description of the deprecation.\n    @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.\n    @param {Object} options\n    @param {String} options.id A unique id for this deprecation. The id can be\n      used by Ember debugging tools to change the behavior (raise, log or silence)\n      for that specific deprecation. The id should be namespaced by dots, e.g.\n      \"view.helper.select\".\n    @param {string} options.until The version of Ember when this deprecation\n      warning will be removed.\n    @param {String} [options.url] An optional url to the transition guide on the\n      emberjs.com website.\n    @for Ember\n    @public\n    @since 1.0.0\n  */\n\n  function deprecate(message, test, options) {\n    if (!options || !options.id && !options.until) {\n      deprecate(missingOptionsDeprecation, false, {\n        id: 'ember-debug.deprecate-options-missing',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n      });\n    }\n\n    if (options && !options.id) {\n      deprecate(missingOptionsIdDeprecation, false, {\n        id: 'ember-debug.deprecate-id-missing',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n      });\n    }\n\n    if (options && !options.until) {\n      deprecate(missingOptionsUntilDeprecation, options && options.until, {\n        id: 'ember-debug.deprecate-until-missing',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n      });\n    }\n\n    _emberDebugHandlers.invoke.apply(undefined, ['deprecate'].concat(babelHelpers.slice.call(arguments)));\n  }\n});\nenifed(\"ember-debug/error\", [\"exports\"], function (exports) {\n\n  /**\n    A subclass of the JavaScript Error object for use in Ember.\n  \n    @class Error\n    @namespace Ember\n    @extends Error\n    @constructor\n    @public\n  */\n  \"use strict\";\n\n  var EmberError = (function (_Error) {\n    babelHelpers.inherits(EmberError, _Error);\n\n    function EmberError(message) {\n      babelHelpers.classCallCheck(this, EmberError);\n\n      _Error.call(this);\n\n      if (!(this instanceof EmberError)) {\n        return new EmberError(message);\n      }\n\n      var error = Error.call(this, message);\n\n      if (Error.captureStackTrace) {\n        Error.captureStackTrace(this, EmberError);\n      } else {\n        this.stack = error.stack;\n      }\n\n      this.description = error.description;\n      this.fileName = error.fileName;\n      this.lineNumber = error.lineNumber;\n      this.message = error.message;\n      this.name = error.name;\n      this.number = error.number;\n      this.code = error.code;\n    }\n\n    return EmberError;\n  })(Error);\n\n  exports.default = EmberError;\n});\nenifed('ember-debug/features', ['exports', 'ember-utils', 'ember-environment', 'ember/features'], function (exports, _emberUtils, _emberEnvironment, _emberFeatures) {\n  'use strict';\n\n  exports.default = isEnabled;\n\n  /**\n    The hash of enabled Canary features. Add to this, any canary features\n    before creating your application.\n  \n    Alternatively (and recommended), you can also define `EmberENV.FEATURES`\n    if you need to enable features flagged at runtime.\n  \n    @class FEATURES\n    @namespace Ember\n    @static\n    @since 1.1.0\n    @public\n  */\n  var FEATURES = _emberUtils.assign(_emberFeatures.default, _emberEnvironment.ENV.FEATURES);\n\n  exports.FEATURES = FEATURES;\n  /**\n    Determine whether the specified `feature` is enabled. Used by Ember's\n    build tools to exclude experimental features from beta/stable builds.\n  \n    You can define the following configuration options:\n  \n    * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n      enabled/disabled.\n  \n    @method isEnabled\n    @param {String} feature The feature to check\n    @return {Boolean}\n    @for Ember.FEATURES\n    @since 1.1.0\n    @public\n  */\n\n  function isEnabled(feature) {\n    var featureValue = FEATURES[feature];\n\n    if (featureValue === true || featureValue === false || featureValue === undefined) {\n      return featureValue;\n    } else if (_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES) {\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  exports.DEFAULT_FEATURES = _emberFeatures.default;\n});\nenifed(\"ember-debug/handlers\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.registerHandler = registerHandler;\n  exports.invoke = invoke;\n  var HANDLERS = {};\n\n  exports.HANDLERS = HANDLERS;\n\n  function registerHandler(type, callback) {\n    var nextHandler = HANDLERS[type] || function () {};\n\n    HANDLERS[type] = function (message, options) {\n      callback(message, options, nextHandler);\n    };\n  }\n\n  function invoke(type, message, test, options) {\n    if (test) {\n      return;\n    }\n\n    var handlerForType = HANDLERS[type];\n\n    if (!handlerForType) {\n      return;\n    }\n\n    if (handlerForType) {\n      handlerForType(message, options);\n    }\n  }\n});\nenifed('ember-debug/index', ['exports', 'ember/features', 'ember-environment', 'ember-console', 'ember-debug/testing', 'ember-debug/error', 'ember-debug/features', 'ember-debug/deprecate', 'ember-debug/warn'], function (exports, _emberFeatures, _emberEnvironment, _emberConsole, _emberDebugTesting, _emberDebugError, _emberDebugFeatures, _emberDebugDeprecate, _emberDebugWarn) {\n  'use strict';\n\n  exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;\n  exports.getDebugFunction = getDebugFunction;\n  exports.setDebugFunction = setDebugFunction;\n  exports.assert = assert;\n  exports.info = info;\n  exports.warn = warn;\n  exports.debug = debug;\n  exports.deprecate = deprecate;\n  exports.deprecateFunc = deprecateFunc;\n  exports.runInDebug = runInDebug;\n  exports.debugSeal = debugSeal;\n  exports.debugFreeze = debugFreeze;\n  exports.registerWarnHandler = _emberDebugWarn.registerHandler;\n  exports.registerDeprecationHandler = _emberDebugDeprecate.registerHandler;\n  exports.isFeatureEnabled = _emberDebugFeatures.default;\n  exports.FEATURES = _emberDebugFeatures.FEATURES;\n  exports.Error = _emberDebugError.default;\n  exports.isTesting = _emberDebugTesting.isTesting;\n  exports.setTesting = _emberDebugTesting.setTesting;\n  var debugFunctions = {\n    assert: function () {},\n    info: function () {},\n    warn: function () {},\n    debug: function () {},\n    deprecate: function () {},\n    deprecateFunc: function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      return args[args.length - 1];\n    },\n    runInDebug: function () {},\n    debugSeal: function () {},\n    debugFreeze: function () {}\n  };\n\n  exports.debugFunctions = debugFunctions;\n  /**\n  @module ember\n  @submodule ember-debug\n  */\n\n  /**\n  @class Ember\n  @public\n  */\n\n  /**\n    Define an assertion that will throw an exception if the condition is not met.\n  \n    * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n  \n    ```javascript\n    // Test for truthiness\n    Ember.assert('Must pass a valid object', obj);\n  \n    // Fail unconditionally\n    Ember.assert('This code path should never be run');\n    ```\n  \n    @method assert\n    @param {String} desc A description of the assertion. This will become\n      the text of the Error thrown if the assertion fails.\n    @param {Boolean} test Must be truthy for the assertion to pass. If\n      falsy, an exception will be thrown.\n    @public\n    @since 1.0.0\n  */\n  setDebugFunction('assert', function assert(desc, test) {\n    if (!test) {\n      throw new _emberDebugError.default('Assertion Failed: ' + desc);\n    }\n  });\n\n  /**\n    Display a debug notice.\n  \n    * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n  \n    ```javascript\n    Ember.debug('I\\'m a debug notice!');\n    ```\n  \n    @method debug\n    @param {String} message A debug message to display.\n    @public\n  */\n  setDebugFunction('debug', function debug(message) {\n    _emberConsole.default.debug('DEBUG: ' + message);\n  });\n\n  /**\n    Display an info notice.\n  \n    * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n  \n    @method info\n    @private\n  */\n  setDebugFunction('info', function info() {\n    _emberConsole.default.info.apply(undefined, arguments);\n  });\n\n  /**\n    Alias an old, deprecated method with its new counterpart.\n  \n    Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only) when the assigned method is called.\n  \n    * In a production build, this method is defined as an empty function (NOP).\n  \n    ```javascript\n    Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);\n    ```\n  \n    @method deprecateFunc\n    @param {String} message A description of the deprecation.\n    @param {Object} [options] The options object for Ember.deprecate.\n    @param {Function} func The new function called to replace its deprecated counterpart.\n    @return {Function} A new function that wraps the original function with a deprecation warning\n    @private\n  */\n  setDebugFunction('deprecateFunc', function deprecateFunc() {\n    for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n\n    if (args.length === 3) {\n      var _ret = (function () {\n        var message = args[0];\n        var options = args[1];\n        var func = args[2];\n\n        return {\n          v: function () {\n            deprecate(message, false, options);\n            return func.apply(this, arguments);\n          }\n        };\n      })();\n\n      if (typeof _ret === 'object') return _ret.v;\n    } else {\n      var _ret2 = (function () {\n        var message = args[0];\n        var func = args[1];\n\n        return {\n          v: function () {\n            deprecate(message);\n            return func.apply(this, arguments);\n          }\n        };\n      })();\n\n      if (typeof _ret2 === 'object') return _ret2.v;\n    }\n  });\n\n  /**\n    Run a function meant for debugging.\n  \n    * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n  \n    ```javascript\n    Ember.runInDebug(() => {\n      Ember.Component.reopen({\n        didInsertElement() {\n          console.log(\"I'm happy\");\n        }\n      });\n    });\n    ```\n  \n    @method runInDebug\n    @param {Function} func The function to be executed.\n    @since 1.5.0\n    @public\n  */\n  setDebugFunction('runInDebug', function runInDebug(func) {\n    func();\n  });\n\n  setDebugFunction('debugSeal', function debugSeal(obj) {\n    Object.seal(obj);\n  });\n\n  setDebugFunction('debugFreeze', function debugFreeze(obj) {\n    Object.freeze(obj);\n  });\n\n  setDebugFunction('deprecate', _emberDebugDeprecate.default);\n\n  setDebugFunction('warn', _emberDebugWarn.default);\n\n  /**\n    Will call `Ember.warn()` if ENABLE_OPTIONAL_FEATURES or\n    any specific FEATURES flag is truthy.\n  \n    This method is called automatically in debug canary builds.\n  \n    @private\n    @method _warnIfUsingStrippedFeatureFlags\n    @return {void}\n  */\n\n  function _warnIfUsingStrippedFeatureFlags(FEATURES, knownFeatures, featuresWereStripped) {\n    if (featuresWereStripped) {\n      warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES, { id: 'ember-debug.feature-flag-with-features-stripped' });\n\n      var keys = Object.keys(FEATURES || {});\n      for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        if (key === 'isEnabled' || !(key in knownFeatures)) {\n          continue;\n        }\n\n        warn('FEATURE[\"' + key + '\"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key], { id: 'ember-debug.feature-flag-with-features-stripped' });\n      }\n    }\n  }\n\n  if (!_emberDebugTesting.isTesting()) {\n    (function () {\n      // Complain if they're using FEATURE flags in builds other than canary\n      _emberDebugFeatures.FEATURES['features-stripped-test'] = true;\n      var featuresWereStripped = true;\n\n      if (false) {\n        featuresWereStripped = false;\n      }\n\n      delete _emberDebugFeatures.FEATURES['features-stripped-test'];\n      _warnIfUsingStrippedFeatureFlags(_emberEnvironment.ENV.FEATURES, _emberFeatures.default, featuresWereStripped);\n\n      // Inform the developer about the Ember Inspector if not installed.\n      var isFirefox = _emberEnvironment.environment.isFirefox;\n      var isChrome = _emberEnvironment.environment.isChrome;\n\n      if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {\n        window.addEventListener('load', function () {\n          if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {\n            var downloadURL = undefined;\n\n            if (isChrome) {\n              downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n            } else if (isFirefox) {\n              downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';\n            }\n\n            debug('For more advanced debugging, install the Ember Inspector from ' + downloadURL);\n          }\n        }, false);\n      }\n    })();\n  }\n\n  /*\n    We are transitioning away from `ember.js` to `ember.debug.js` to make\n    it much clearer that it is only for local development purposes.\n  \n    This flag value is changed by the tooling (by a simple string replacement)\n    so that if `ember.js` (which must be output for backwards compat reasons) is\n    used a nice helpful warning message will be printed out.\n  */\n  var runningNonEmberDebugJS = true;\n  exports.runningNonEmberDebugJS = runningNonEmberDebugJS;\n  if (runningNonEmberDebugJS) {\n    warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.');\n  }\n\n  function getDebugFunction(name) {\n    return debugFunctions[name];\n  }\n\n  function setDebugFunction(name, fn) {\n    debugFunctions[name] = fn;\n  }\n\n  function assert() {\n    return debugFunctions.assert.apply(undefined, arguments);\n  }\n\n  function info() {\n    return debugFunctions.info.apply(undefined, arguments);\n  }\n\n  function warn() {\n    return debugFunctions.warn.apply(undefined, arguments);\n  }\n\n  function debug() {\n    return debugFunctions.debug.apply(undefined, arguments);\n  }\n\n  function deprecate() {\n    return debugFunctions.deprecate.apply(undefined, arguments);\n  }\n\n  function deprecateFunc() {\n    return debugFunctions.deprecateFunc.apply(undefined, arguments);\n  }\n\n  function runInDebug() {\n    return debugFunctions.runInDebug.apply(undefined, arguments);\n  }\n\n  function debugSeal() {\n    return debugFunctions.debugSeal.apply(undefined, arguments);\n  }\n\n  function debugFreeze() {\n    return debugFunctions.debugFreeze.apply(undefined, arguments);\n  }\n});\nenifed(\"ember-debug/run-in-debug\", [\"exports\"], function (exports) {\n  \"use strict\";\n});\nenifed(\"ember-debug/testing\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.isTesting = isTesting;\n  exports.setTesting = setTesting;\n  var testing = false;\n\n  function isTesting() {\n    return testing;\n  }\n\n  function setTesting(value) {\n    testing = !!value;\n  }\n});\nenifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate', 'ember-debug/handlers'], function (exports, _emberConsole, _emberDebugDeprecate, _emberDebugHandlers) {\n  'use strict';\n\n  exports.registerHandler = registerHandler;\n  exports.default = warn;\n\n  /**\n    Allows for runtime registration of handler functions that override the default warning behavior.\n    Warnings are invoked by calls made to [Ember.warn](http://emberjs.com/api/classes/Ember.html#method_warn).\n    The following example demonstrates its usage by registering a handler that does nothing overriding Ember's\n    default warning behavior.\n  \n    ```javascript\n    // next is not called, so no warnings get the default behavior\n    Ember.Debug.registerWarnHandler(() => {});\n    ```\n  \n    The handler function takes the following arguments:\n  \n    <ul>\n      <li> <code>message</code> - The message received from the warn call. </li>\n      <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>\n        <ul>\n          <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>\n        </ul>\n      <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n    </ul>\n  \n    @public\n    @static\n    @method registerWarnHandler\n    @param handler {Function} A function to handle warnings.\n    @since 2.1.0\n  */\n\n  function registerHandler(handler) {\n    _emberDebugHandlers.registerHandler('warn', handler);\n  }\n\n  registerHandler(function logWarning(message, options) {\n    _emberConsole.default.warn('WARNING: ' + message);\n    if ('trace' in _emberConsole.default) {\n      _emberConsole.default.trace();\n    }\n  });\n\n  var missingOptionsDeprecation = 'When calling `Ember.warn` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include an `id` property.';\n  exports.missingOptionsDeprecation = missingOptionsDeprecation;\n  var missingOptionsIdDeprecation = 'When calling `Ember.warn` you must provide `id` in options.';\n\n  exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n  /**\n  @module ember\n  @submodule ember-debug\n  */\n\n  /**\n    Display a warning with the provided message.\n  \n    * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n  \n    @method warn\n    @param {String} message A warning to display.\n    @param {Boolean} test An optional boolean. If falsy, the warning\n      will be displayed.\n    @param {Object} options An object that can be used to pass a unique\n      `id` for this warning.  The `id` can be used by Ember debugging tools\n      to change the behavior (raise, log, or silence) for that specific warning.\n      The `id` should be namespaced by dots, e.g. \"ember-debug.feature-flag-with-features-stripped\"\n    @for Ember\n    @public\n    @since 1.0.0\n  */\n\n  function warn(message, test, options) {\n    if (arguments.length === 2 && typeof test === 'object') {\n      options = test;\n      test = false;\n    }\n    if (!options) {\n      _emberDebugDeprecate.default(missingOptionsDeprecation, false, {\n        id: 'ember-debug.warn-options-missing',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n      });\n    }\n\n    if (options && !options.id) {\n      _emberDebugDeprecate.default(missingOptionsIdDeprecation, false, {\n        id: 'ember-debug.warn-id-missing',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n      });\n    }\n\n    _emberDebugHandlers.invoke('warn', message, test, options);\n  }\n});\nenifed('ember-environment/global', ['exports'], function (exports) {\n  /* globals global, window, self, mainContext */\n\n  // from lodash to catch fake globals\n  'use strict';\n\n  function checkGlobal(value) {\n    return value && value.Object === Object ? value : undefined;\n  }\n\n  // element ids can ruin global miss checks\n  function checkElementIdShadowing(value) {\n    return value && value.nodeType === undefined ? value : undefined;\n  }\n\n  // export real global\n  exports.default = checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) || checkGlobal(typeof self === 'object' && self) || checkGlobal(typeof window === 'object' && window) || mainContext || // set before strict mode in Ember loader/wrapper\n  new Function('return this')();\n  // eval outside of strict mode\n});\nenifed('ember-environment/index', ['exports', 'ember-environment/global', 'ember-environment/utils'], function (exports, _emberEnvironmentGlobal, _emberEnvironmentUtils) {\n  /* globals module */\n  'use strict';\n\n  /**\n    The hash of environment variables used to control various configuration\n    settings. To specify your own or override default settings, add the\n    desired properties to a global hash named `EmberENV` (or `ENV` for\n    backwards compatibility with earlier versions of Ember). The `EmberENV`\n    hash must be created before loading Ember.\n  \n    @class EmberENV\n    @type Object\n    @public\n  */\n  var ENV = typeof _emberEnvironmentGlobal.default.EmberENV === 'object' && _emberEnvironmentGlobal.default.EmberENV || typeof _emberEnvironmentGlobal.default.ENV === 'object' && _emberEnvironmentGlobal.default.ENV || {};\n\n  exports.ENV = ENV;\n  // ENABLE_ALL_FEATURES was documented, but you can't actually enable non optional features.\n  if (ENV.ENABLE_ALL_FEATURES) {\n    ENV.ENABLE_OPTIONAL_FEATURES = true;\n  }\n\n  /**\n    Determines whether Ember should add to `Array`, `Function`, and `String`\n    native object prototypes, a few extra methods in order to provide a more\n    friendly API.\n  \n    We generally recommend leaving this option set to true however, if you need\n    to turn it off, you can add the configuration property\n    `EXTEND_PROTOTYPES` to `EmberENV` and set it to `false`.\n  \n    Note, when disabled (the default configuration for Ember Addons), you will\n    instead have to access all methods and functions from the Ember\n    namespace.\n  \n    @property EXTEND_PROTOTYPES\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  ENV.EXTEND_PROTOTYPES = _emberEnvironmentUtils.normalizeExtendPrototypes(ENV.EXTEND_PROTOTYPES);\n\n  /**\n    The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log\n    a full stack trace during deprecation warnings.\n  \n    @property LOG_STACKTRACE_ON_DEPRECATION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  ENV.LOG_STACKTRACE_ON_DEPRECATION = _emberEnvironmentUtils.defaultTrue(ENV.LOG_STACKTRACE_ON_DEPRECATION);\n\n  /**\n    The `LOG_VERSION` property, when true, tells Ember to log versions of all\n    dependent libraries in use.\n  \n    @property LOG_VERSION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  ENV.LOG_VERSION = _emberEnvironmentUtils.defaultTrue(ENV.LOG_VERSION);\n\n  // default false\n  ENV.MODEL_FACTORY_INJECTIONS = _emberEnvironmentUtils.defaultFalse(ENV.MODEL_FACTORY_INJECTIONS);\n\n  /**\n    Debug parameter you can turn on. This will log all bindings that fire to\n    the console. This should be disabled in production code. Note that you\n    can also enable this from the console or temporarily.\n  \n    @property LOG_BINDINGS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @public\n  */\n  ENV.LOG_BINDINGS = _emberEnvironmentUtils.defaultFalse(ENV.LOG_BINDINGS);\n\n  ENV.RAISE_ON_DEPRECATION = _emberEnvironmentUtils.defaultFalse(ENV.RAISE_ON_DEPRECATION);\n\n  // check if window exists and actually is the global\n  var hasDOM = typeof window !== 'undefined' && window === _emberEnvironmentGlobal.default && window.document && window.document.createElement && !ENV.disableBrowserEnvironment; // is this a public thing?\n\n  // legacy imports/exports/lookup stuff (should we keep this??)\n  var originalContext = _emberEnvironmentGlobal.default.Ember || {};\n\n  var context = {\n    // import jQuery\n    imports: originalContext.imports || _emberEnvironmentGlobal.default,\n    // export Ember\n    exports: originalContext.exports || _emberEnvironmentGlobal.default,\n    // search for Namespaces\n    lookup: originalContext.lookup || _emberEnvironmentGlobal.default\n  };\n\n  exports.context = context;\n  // TODO: cleanup single source of truth issues with this stuff\n  var environment = hasDOM ? {\n    hasDOM: true,\n    isChrome: !!window.chrome && !window.opera,\n    isFirefox: typeof InstallTrigger !== 'undefined',\n    isPhantom: !!window.callPhantom,\n    location: window.location,\n    history: window.history,\n    userAgent: window.navigator.userAgent,\n    window: window\n  } : {\n    hasDOM: false,\n    isChrome: false,\n    isFirefox: false,\n    isPhantom: false,\n    location: null,\n    history: null,\n    userAgent: 'Lynx (textmode)',\n    window: null\n  };\n  exports.environment = environment;\n});\nenifed(\"ember-environment/utils\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.defaultTrue = defaultTrue;\n  exports.defaultFalse = defaultFalse;\n  exports.normalizeExtendPrototypes = normalizeExtendPrototypes;\n\n  function defaultTrue(v) {\n    return v === false ? false : true;\n  }\n\n  function defaultFalse(v) {\n    return v === true ? true : false;\n  }\n\n  function normalizeExtendPrototypes(obj) {\n    if (obj === false) {\n      return { String: false, Array: false, Function: false };\n    } else if (!obj || obj === true) {\n      return { String: true, Array: true, Function: true };\n    } else {\n      return {\n        String: defaultTrue(obj.String),\n        Array: defaultTrue(obj.Array),\n        Function: defaultTrue(obj.Function)\n      };\n    }\n  }\n});\nenifed('ember-extension-support/container_debug_adapter', ['exports', 'ember-metal', 'ember-runtime'], function (exports, _emberMetal, _emberRuntime) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-extension-support\n  */\n\n  /**\n    The `ContainerDebugAdapter` helps the container and resolver interface\n    with tools that debug Ember such as the\n    [Ember Inspector](https://github.com/emberjs/ember-inspector)\n    for Chrome and Firefox.\n  \n    This class can be extended by a custom resolver implementer\n    to override some of the methods with library-specific code.\n  \n    The methods likely to be overridden are:\n  \n    * `canCatalogEntriesByType`\n    * `catalogEntriesByType`\n  \n    The adapter will need to be registered\n    in the application's container as `container-debug-adapter:main`.\n  \n    Example:\n  \n    ```javascript\n    Application.initializer({\n      name: \"containerDebugAdapter\",\n  \n      initialize(application) {\n        application.register('container-debug-adapter:main', require('app/container-debug-adapter'));\n      }\n    });\n    ```\n  \n    @class ContainerDebugAdapter\n    @namespace Ember\n    @extends Ember.Object\n    @since 1.5.0\n    @public\n  */\n  exports.default = _emberRuntime.Object.extend({\n    /**\n      The resolver instance of the application\n      being debugged. This property will be injected\n      on creation.\n       @property resolver\n      @default null\n      @public\n    */\n    resolver: null,\n\n    /**\n      Returns true if it is possible to catalog a list of available\n      classes in the resolver for a given type.\n       @method canCatalogEntriesByType\n      @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n      @return {boolean} whether a list is available for this type.\n      @public\n    */\n    canCatalogEntriesByType: function (type) {\n      if (type === 'model' || type === 'template') {\n        return false;\n      }\n\n      return true;\n    },\n\n    /**\n      Returns the available classes a given type.\n       @method catalogEntriesByType\n      @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n      @return {Array} An array of strings.\n      @public\n    */\n    catalogEntriesByType: function (type) {\n      var namespaces = _emberRuntime.A(_emberRuntime.Namespace.NAMESPACES);\n      var types = _emberRuntime.A();\n      var typeSuffixRegex = new RegExp(_emberRuntime.String.classify(type) + '$');\n\n      namespaces.forEach(function (namespace) {\n        if (namespace !== _emberMetal.default) {\n          for (var key in namespace) {\n            if (!namespace.hasOwnProperty(key)) {\n              continue;\n            }\n            if (typeSuffixRegex.test(key)) {\n              var klass = namespace[key];\n              if (_emberRuntime.typeOf(klass) === 'class') {\n                types.push(_emberRuntime.String.dasherize(key.replace(typeSuffixRegex, '')));\n              }\n            }\n          }\n        }\n      });\n      return types;\n    }\n  });\n});\n// Ember as namespace\nenifed('ember-extension-support/data_adapter', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime', 'container', 'ember-application'], function (exports, _emberUtils, _emberMetal, _emberRuntime, _container, _emberApplication) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-extension-support\n  */\n\n  /**\n    The `DataAdapter` helps a data persistence library\n    interface with tools that debug Ember such\n    as the [Ember Extension](https://github.com/tildeio/ember-extension)\n    for Chrome and Firefox.\n  \n    This class will be extended by a persistence library\n    which will override some of the methods with\n    library-specific code.\n  \n    The methods likely to be overridden are:\n  \n    * `getFilters`\n    * `detect`\n    * `columnsForType`\n    * `getRecords`\n    * `getRecordColumnValues`\n    * `getRecordKeywords`\n    * `getRecordFilterValues`\n    * `getRecordColor`\n    * `observeRecord`\n  \n    The adapter will need to be registered\n    in the application's container as `dataAdapter:main`.\n  \n    Example:\n  \n    ```javascript\n    Application.initializer({\n      name: \"data-adapter\",\n  \n      initialize: function(application) {\n        application.register('data-adapter:main', DS.DataAdapter);\n      }\n    });\n    ```\n  \n    @class DataAdapter\n    @namespace Ember\n    @extends EmberObject\n    @public\n  */\n  exports.default = _emberRuntime.Object.extend({\n    init: function () {\n      this._super.apply(this, arguments);\n      this.releaseMethods = _emberRuntime.A();\n    },\n\n    /**\n      The container-debug-adapter which is used\n      to list all models.\n       @property containerDebugAdapter\n      @default undefined\n      @since 1.5.0\n      @public\n    **/\n    containerDebugAdapter: undefined,\n\n    /**\n      The number of attributes to send\n      as columns. (Enough to make the record\n      identifiable).\n       @private\n      @property attributeLimit\n      @default 3\n      @since 1.3.0\n    */\n    attributeLimit: 3,\n\n    /**\n       Ember Data > v1.0.0-beta.18\n       requires string model names to be passed\n       around instead of the actual factories.\n        This is a stamp for the Ember Inspector\n       to differentiate between the versions\n       to be able to support older versions too.\n        @public\n       @property acceptsModelName\n     */\n    acceptsModelName: true,\n\n    /**\n      Stores all methods that clear observers.\n      These methods will be called on destruction.\n       @private\n      @property releaseMethods\n      @since 1.3.0\n    */\n    releaseMethods: _emberRuntime.A(),\n\n    /**\n      Specifies how records can be filtered.\n      Records returned will need to have a `filterValues`\n      property with a key for every name in the returned array.\n       @public\n      @method getFilters\n      @return {Array} List of objects defining filters.\n       The object should have a `name` and `desc` property.\n    */\n    getFilters: function () {\n      return _emberRuntime.A();\n    },\n\n    /**\n      Fetch the model types and observe them for changes.\n       @public\n      @method watchModelTypes\n       @param {Function} typesAdded Callback to call to add types.\n      Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n       @param {Function} typesUpdated Callback to call when a type has changed.\n      Takes an array of objects containing wrapped types.\n       @return {Function} Method to call to remove all observers\n    */\n    watchModelTypes: function (typesAdded, typesUpdated) {\n      var _this = this;\n\n      var modelTypes = this.getModelTypes();\n      var releaseMethods = _emberRuntime.A();\n      var typesToSend = undefined;\n\n      typesToSend = modelTypes.map(function (type) {\n        var klass = type.klass;\n        var wrapped = _this.wrapModelType(klass, type.name);\n        releaseMethods.push(_this.observeModelType(type.name, typesUpdated));\n        return wrapped;\n      });\n\n      typesAdded(typesToSend);\n\n      var release = function () {\n        releaseMethods.forEach(function (fn) {\n          return fn();\n        });\n        _this.releaseMethods.removeObject(release);\n      };\n      this.releaseMethods.pushObject(release);\n      return release;\n    },\n\n    _nameToClass: function (type) {\n      if (typeof type === 'string') {\n        var owner = _emberUtils.getOwner(this);\n        var Factory = owner[_container.FACTORY_FOR]('model:' + type);\n        type = Factory && Factory.class;\n      }\n      return type;\n    },\n\n    /**\n      Fetch the records of a given type and observe them for changes.\n       @public\n      @method watchRecords\n       @param {String} modelName The model name.\n       @param {Function} recordsAdded Callback to call to add records.\n      Takes an array of objects containing wrapped records.\n      The object should have the following properties:\n        columnValues: {Object} The key and value of a table cell.\n        object: {Object} The actual record object.\n       @param {Function} recordsUpdated Callback to call when a record has changed.\n      Takes an array of objects containing wrapped records.\n       @param {Function} recordsRemoved Callback to call when a record has removed.\n      Takes the following parameters:\n        index: The array index where the records were removed.\n        count: The number of records removed.\n       @return {Function} Method to call to remove all observers.\n    */\n    watchRecords: function (modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n      var _this2 = this;\n\n      var releaseMethods = _emberRuntime.A();\n      var klass = this._nameToClass(modelName);\n      var records = this.getRecords(klass, modelName);\n      var release = undefined;\n\n      function recordUpdated(updatedRecord) {\n        recordsUpdated([updatedRecord]);\n      }\n\n      var recordsToSend = records.map(function (record) {\n        releaseMethods.push(_this2.observeRecord(record, recordUpdated));\n        return _this2.wrapRecord(record);\n      });\n\n      var contentDidChange = function (array, idx, removedCount, addedCount) {\n        for (var i = idx; i < idx + addedCount; i++) {\n          var record = _emberRuntime.objectAt(array, i);\n          var wrapped = _this2.wrapRecord(record);\n          releaseMethods.push(_this2.observeRecord(record, recordUpdated));\n          recordsAdded([wrapped]);\n        }\n\n        if (removedCount) {\n          recordsRemoved(idx, removedCount);\n        }\n      };\n\n      var observer = { didChange: contentDidChange, willChange: function () {\n          return this;\n        } };\n      _emberRuntime.addArrayObserver(records, this, observer);\n\n      release = function () {\n        releaseMethods.forEach(function (fn) {\n          return fn();\n        });\n        _emberRuntime.removeArrayObserver(records, _this2, observer);\n        _this2.releaseMethods.removeObject(release);\n      };\n\n      recordsAdded(recordsToSend);\n\n      this.releaseMethods.pushObject(release);\n      return release;\n    },\n\n    /**\n      Clear all observers before destruction\n      @private\n      @method willDestroy\n    */\n    willDestroy: function () {\n      this._super.apply(this, arguments);\n      this.releaseMethods.forEach(function (fn) {\n        return fn();\n      });\n    },\n\n    /**\n      Detect whether a class is a model.\n       Test that against the model class\n      of your persistence library.\n       @private\n      @method detect\n      @param {Class} klass The class to test.\n      @return boolean Whether the class is a model class or not.\n    */\n    detect: function (klass) {\n      return false;\n    },\n\n    /**\n      Get the columns for a given model type.\n       @private\n      @method columnsForType\n      @param {Class} type The model type.\n      @return {Array} An array of columns of the following format:\n       name: {String} The name of the column.\n       desc: {String} Humanized description (what would show in a table column name).\n    */\n    columnsForType: function (type) {\n      return _emberRuntime.A();\n    },\n\n    /**\n      Adds observers to a model type class.\n       @private\n      @method observeModelType\n      @param {String} modelName The model type name.\n      @param {Function} typesUpdated Called when a type is modified.\n      @return {Function} The function to call to remove observers.\n    */\n\n    observeModelType: function (modelName, typesUpdated) {\n      var _this3 = this;\n\n      var klass = this._nameToClass(modelName);\n      var records = this.getRecords(klass, modelName);\n\n      function onChange() {\n        typesUpdated([this.wrapModelType(klass, modelName)]);\n      }\n\n      var observer = {\n        didChange: function () {\n          _emberMetal.run.scheduleOnce('actions', this, onChange);\n        },\n        willChange: function () {\n          return this;\n        }\n      };\n\n      _emberRuntime.addArrayObserver(records, this, observer);\n\n      var release = function () {\n        return _emberRuntime.removeArrayObserver(records, _this3, observer);\n      };\n\n      return release;\n    },\n\n    /**\n      Wraps a given model type and observes changes to it.\n       @private\n      @method wrapModelType\n      @param {Class} klass A model class.\n      @param {String} modelName Name of the class.\n      @return {Object} Contains the wrapped type and the function to remove observers\n      Format:\n        type: {Object} The wrapped type.\n          The wrapped type has the following format:\n            name: {String} The name of the type.\n            count: {Integer} The number of records available.\n            columns: {Columns} An array of columns to describe the record.\n            object: {Class} The actual Model type class.\n        release: {Function} The function to remove observers.\n    */\n    wrapModelType: function (klass, name) {\n      var records = this.getRecords(klass, name);\n      var typeToSend = undefined;\n\n      typeToSend = {\n        name: name,\n        count: _emberMetal.get(records, 'length'),\n        columns: this.columnsForType(klass),\n        object: klass\n      };\n\n      return typeToSend;\n    },\n\n    /**\n      Fetches all models defined in the application.\n       @private\n      @method getModelTypes\n      @return {Array} Array of model types.\n    */\n    getModelTypes: function () {\n      var _this4 = this;\n\n      var containerDebugAdapter = this.get('containerDebugAdapter');\n      var types = undefined;\n\n      if (containerDebugAdapter.canCatalogEntriesByType('model')) {\n        types = containerDebugAdapter.catalogEntriesByType('model');\n      } else {\n        types = this._getObjectsOnNamespaces();\n      }\n\n      // New adapters return strings instead of classes.\n      types = _emberRuntime.A(types).map(function (name) {\n        return {\n          klass: _this4._nameToClass(name),\n          name: name\n        };\n      });\n      types = _emberRuntime.A(types).filter(function (type) {\n        return _this4.detect(type.klass);\n      });\n\n      return _emberRuntime.A(types);\n    },\n\n    /**\n      Loops over all namespaces and all objects\n      attached to them.\n       @private\n      @method _getObjectsOnNamespaces\n      @return {Array} Array of model type strings.\n    */\n    _getObjectsOnNamespaces: function () {\n      var _this5 = this;\n\n      var namespaces = _emberRuntime.A(_emberRuntime.Namespace.NAMESPACES);\n      var types = _emberRuntime.A();\n\n      namespaces.forEach(function (namespace) {\n        for (var key in namespace) {\n          if (!namespace.hasOwnProperty(key)) {\n            continue;\n          }\n          // Even though we will filter again in `getModelTypes`,\n          // we should not call `lookupFactory` on non-models\n          // (especially when `EmberENV.MODEL_FACTORY_INJECTIONS` is `true`)\n          if (!_this5.detect(namespace[key])) {\n            continue;\n          }\n          var _name = _emberRuntime.String.dasherize(key);\n          if (!(namespace instanceof _emberApplication.Application) && namespace.toString()) {\n            _name = namespace + '/' + _name;\n          }\n          types.push(_name);\n        }\n      });\n      return types;\n    },\n\n    /**\n      Fetches all loaded records for a given type.\n       @private\n      @method getRecords\n      @return {Array} An array of records.\n       This array will be observed for changes,\n       so it should update when new records are added/removed.\n    */\n    getRecords: function (type) {\n      return _emberRuntime.A();\n    },\n\n    /**\n      Wraps a record and observers changes to it.\n       @private\n      @method wrapRecord\n      @param {Object} record The record instance.\n      @return {Object} The wrapped record. Format:\n      columnValues: {Array}\n      searchKeywords: {Array}\n    */\n    wrapRecord: function (record) {\n      var recordToSend = { object: record };\n\n      recordToSend.columnValues = this.getRecordColumnValues(record);\n      recordToSend.searchKeywords = this.getRecordKeywords(record);\n      recordToSend.filterValues = this.getRecordFilterValues(record);\n      recordToSend.color = this.getRecordColor(record);\n\n      return recordToSend;\n    },\n\n    /**\n      Gets the values for each column.\n       @private\n      @method getRecordColumnValues\n      @return {Object} Keys should match column names defined\n      by the model type.\n    */\n    getRecordColumnValues: function (record) {\n      return {};\n    },\n\n    /**\n      Returns keywords to match when searching records.\n       @private\n      @method getRecordKeywords\n      @return {Array} Relevant keywords for search.\n    */\n    getRecordKeywords: function (record) {\n      return _emberRuntime.A();\n    },\n\n    /**\n      Returns the values of filters defined by `getFilters`.\n       @private\n      @method getRecordFilterValues\n      @param {Object} record The record instance.\n      @return {Object} The filter values.\n    */\n    getRecordFilterValues: function (record) {\n      return {};\n    },\n\n    /**\n      Each record can have a color that represents its state.\n       @private\n      @method getRecordColor\n      @param {Object} record The record instance\n      @return {String} The records color.\n        Possible options: black, red, blue, green.\n    */\n    getRecordColor: function (record) {\n      return null;\n    },\n\n    /**\n      Observes all relevant properties and re-sends the wrapped record\n      when a change occurs.\n       @private\n      @method observerRecord\n      @param {Object} record The record instance.\n      @param {Function} recordUpdated The callback to call when a record is updated.\n      @return {Function} The function to call to remove all observers.\n    */\n    observeRecord: function (record, recordUpdated) {\n      return function () {};\n    }\n  });\n});\nenifed('ember-extension-support/index', ['exports', 'ember-extension-support/data_adapter', 'ember-extension-support/container_debug_adapter'], function (exports, _emberExtensionSupportData_adapter, _emberExtensionSupportContainer_debug_adapter) {\n  /**\n  @module ember\n  @submodule ember-extension-support\n  */\n\n  'use strict';\n\n  exports.DataAdapter = _emberExtensionSupportData_adapter.default;\n  exports.ContainerDebugAdapter = _emberExtensionSupportContainer_debug_adapter.default;\n});\nenifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'ember-runtime', 'ember-debug', 'ember-metal', 'ember-glimmer/utils/references', '@glimmer/reference', '@glimmer/runtime'], function (exports, _emberUtils, _emberViews, _emberRuntime, _emberDebug, _emberMetal, _emberGlimmerUtilsReferences, _glimmerReference, _glimmerRuntime) {\n  'use strict';\n\n  var _CoreView$extend;\n\n  var DIRTY_TAG = _emberUtils.symbol('DIRTY_TAG');\n  exports.DIRTY_TAG = DIRTY_TAG;\n  var ARGS = _emberUtils.symbol('ARGS');\n  exports.ARGS = ARGS;\n  var ROOT_REF = _emberUtils.symbol('ROOT_REF');\n  exports.ROOT_REF = ROOT_REF;\n  var IS_DISPATCHING_ATTRS = _emberUtils.symbol('IS_DISPATCHING_ATTRS');\n  exports.IS_DISPATCHING_ATTRS = IS_DISPATCHING_ATTRS;\n  var HAS_BLOCK = _emberUtils.symbol('HAS_BLOCK');\n  exports.HAS_BLOCK = HAS_BLOCK;\n  var BOUNDS = _emberUtils.symbol('BOUNDS');\n\n  exports.BOUNDS = BOUNDS;\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  /**\n    An `Ember.Component` is a view that is completely\n    isolated. Properties accessed in its templates go\n    to the view object and actions are targeted at\n    the view object. There is no access to the\n    surrounding context or outer controller; all\n    contextual information must be passed in.\n  \n    The easiest way to create an `Ember.Component` is via\n    a template. If you name a template\n    `app/components/my-foo.hbs`, you will be able to use\n    `{{my-foo}}` in other templates, which will make\n    an instance of the isolated component.\n  \n    ```app/components/my-foo.hbs\n    {{person-profile person=currentUser}}\n    ```\n  \n    ```app/components/person-profile.hbs\n    <h1>{{person.title}}</h1>\n    <img src={{person.avatar}}>\n    <p class='signature'>{{person.signature}}</p>\n    ```\n  \n    You can use `yield` inside a template to\n    include the **contents** of any block attached to\n    the component. The block will be executed in the\n    context of the surrounding context or outer controller:\n  \n    ```handlebars\n    {{#person-profile person=currentUser}}\n      <p>Admin mode</p>\n      {{! Executed in the controller's context. }}\n    {{/person-profile}}\n    ```\n  \n    ```app/components/person-profile.hbs\n    <h1>{{person.title}}</h1>\n    {{! Executed in the component's context. }}\n    {{yield}} {{! block contents }}\n    ```\n  \n    If you want to customize the component, in order to\n    handle events or actions, you implement a subclass\n    of `Ember.Component` named after the name of the\n    component.\n  \n    For example, you could implement the action\n    `hello` for the `person-profile` component:\n  \n    ```app/components/person-profile.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      actions: {\n        hello(name) {\n          console.log(\"Hello\", name);\n        }\n      }\n    });\n    ```\n  \n    And then use it in the component's template:\n  \n    ```app/templates/components/person-profile.hbs\n    <h1>{{person.title}}</h1>\n    {{yield}} <!-- block contents -->\n    <button {{action 'hello' person.name}}>\n      Say Hello to {{person.name}}\n    </button>\n    ```\n  \n    Components must have a `-` in their name to avoid\n    conflicts with built-in controls that wrap HTML\n    elements. This is consistent with the same\n    requirement in web components.\n  \n  \n    ## HTML Tag\n  \n    The default HTML tag name used for a component's DOM representation is `div`.\n    This can be customized by setting the `tagName` property.\n    The following component class:\n  \n    ```app/components/emphasized-paragraph.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'em'\n    });\n    ```\n  \n    Would result in instances with the following HTML:\n  \n    ```html\n    <em id=\"ember1\" class=\"ember-view\"></em>\n    ```\n  \n  \n    ## HTML `class` Attribute\n  \n    The HTML `class` attribute of a component's tag can be set by providing a\n    `classNames` property that is set to an array of strings:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNames: ['my-class', 'my-other-class']\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n    ```\n  \n    `class` attribute values can also be set by providing a `classNameBindings`\n    property set to an array of properties names for the component. The return value\n    of these properties will be added as part of the value for the components's `class`\n    attribute. These properties can be computed properties:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNameBindings: ['propertyA', 'propertyB'],\n      propertyA: 'from-a',\n      propertyB: Ember.computed(function() {\n        if (someLogic) { return 'from-b'; }\n      })\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view from-a from-b\"></div>\n    ```\n  \n    If the value of a class name binding returns a boolean the property name\n    itself will be used as the class name if the property is true.\n    The class name will not be added if the value is `false` or `undefined`.\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNameBindings: ['hovered'],\n      hovered: true\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view hovered\"></div>\n    ```\n  \n    When using boolean class name bindings you can supply a string value other\n    than the property name for use as the `class` HTML attribute by appending the\n    preferred value after a \":\" character when defining the binding:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNameBindings: ['awesome:so-very-cool'],\n      awesome: true\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n    ```\n  \n    Boolean value class name bindings whose property names are in a\n    camelCase-style format will be converted to a dasherized format:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNameBindings: ['isUrgent'],\n      isUrgent: true\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n    ```\n  \n    Class name bindings can also refer to object values that are found by\n    traversing a path relative to the component itself:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNameBindings: ['messages.empty'],\n      messages: Ember.Object.create({\n        empty: true\n      })\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view empty\"></div>\n    ```\n  \n    If you want to add a class name for a property which evaluates to true and\n    and a different class name if it evaluates to false, you can pass a binding\n    like this:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      classNameBindings: ['isEnabled:enabled:disabled'],\n      isEnabled: true\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view enabled\"></div>\n    ```\n  \n    When isEnabled is `false`, the resulting HTML representation looks like\n    this:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view disabled\"></div>\n    ```\n  \n    This syntax offers the convenience to add a class if a property is `false`:\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    // Applies no class when isEnabled is true and class 'disabled' when isEnabled is false\n    export default Ember.Component.extend({\n      classNameBindings: ['isEnabled::disabled'],\n      isEnabled: true\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view\"></div>\n    ```\n  \n    When the `isEnabled` property on the component is set to `false`, it will result\n    in component instances with an HTML representation of:\n  \n    ```html\n    <div id=\"ember1\" class=\"ember-view disabled\"></div>\n    ```\n  \n    Updates to the value of a class name binding will result in automatic\n    update of the  HTML `class` attribute in the component's rendered HTML\n    representation. If the value becomes `false` or `undefined` the class name\n    will be removed.\n    Both `classNames` and `classNameBindings` are concatenated properties. See\n    [Ember.Object](/api/classes/Ember.Object.html) documentation for more\n    information about concatenated properties.\n  \n  \n    ## HTML Attributes\n  \n    The HTML attribute section of a component's tag can be set by providing an\n    `attributeBindings` property set to an array of property names on the component.\n    The return value of these properties will be used as the value of the component's\n    HTML associated attribute:\n  \n    ```app/components/my-anchor.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'a',\n      attributeBindings: ['href'],\n      href: 'http://google.com'\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n    ```\n  \n    One property can be mapped on to another by placing a \":\" between\n    the source property and the destination property:\n  \n    ```app/components/my-anchor.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'a',\n      attributeBindings: ['url:href'],\n      url: 'http://google.com'\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n    ```\n  \n    Namespaced attributes (e.g. `xlink:href`) are supported, but have to be\n    mapped, since `:` is not a valid character for properties in Javascript:\n  \n    ```app/components/my-use.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'use',\n      attributeBindings: ['xlinkHref:xlink:href'],\n      xlinkHref: '#triangle'\n    });\n    ```\n  \n    Will result in component instances with an HTML representation of:\n  \n    ```html\n    <use xlink:href=\"#triangle\"></use>\n    ```\n  \n    If the return value of an `attributeBindings` monitored property is a boolean\n    the attribute will be present or absent depending on the value:\n  \n    ```app/components/my-text-input.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'input',\n      attributeBindings: ['disabled'],\n      disabled: false\n    });\n    ```\n  \n    Will result in a component instance with an HTML representation of:\n  \n    ```html\n    <input id=\"ember1\" class=\"ember-view\" />\n    ```\n  \n    `attributeBindings` can refer to computed properties:\n  \n    ```app/components/my-text-input.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'input',\n      attributeBindings: ['disabled'],\n      disabled: Ember.computed(function() {\n        if (someLogic) {\n          return true;\n        } else {\n          return false;\n        }\n      })\n    });\n    ```\n  \n    To prevent setting an attribute altogether, use `null` or `undefined` as the\n    return value of the `attributeBindings` monitored property:\n  \n    ```app/components/my-text-input.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      tagName: 'form',\n      attributeBindings: ['novalidate'],\n      novalidate: null\n    });\n    ```\n  \n    Updates to the property of an attribute binding will result in automatic\n    update of the  HTML attribute in the component's rendered HTML representation.\n    `attributeBindings` is a concatenated property. See [Ember.Object](/api/classes/Ember.Object.html)\n    documentation for more information about concatenated properties.\n  \n  \n    ## Layouts\n  \n    See [Ember.Templates.helpers.yield](/api/classes/Ember.Templates.helpers.html#method_yield)\n    for more information.\n  \n  \n    ## Responding to Browser Events\n  \n    Components can respond to user-initiated events in one of three ways: method\n    implementation, through an event manager, and through `{{action}}` helper use\n    in their template or layout.\n  \n  \n    ### Method Implementation\n  \n    Components can respond to user-initiated events by implementing a method that\n    matches the event name. A `jQuery.Event` object will be passed as the\n    argument to this method.\n  \n    ```app/components/my-widget.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      click(event) {\n        // will be called when an instance's\n        // rendered element is clicked\n      }\n    });\n    ```\n  \n  \n    ### `{{action}}` Helper\n  \n    See [Ember.Templates.helpers.action](/api/classes/Ember.Templates.helpers.html#method_action).\n  \n  \n    ### Event Names\n  \n    All of the event handling approaches described above respond to the same set\n    of events. The names of the built-in events are listed below. (The hash of\n    built-in events exists in `Ember.EventDispatcher`.) Additional, custom events\n    can be registered by using `Ember.Application.customEvents`.\n  \n    Touch events:\n  \n    * `touchStart`\n    * `touchMove`\n    * `touchEnd`\n    * `touchCancel`\n  \n    Keyboard events:\n  \n    * `keyDown`\n    * `keyUp`\n    * `keyPress`\n  \n    Mouse events:\n  \n    * `mouseDown`\n    * `mouseUp`\n    * `contextMenu`\n    * `click`\n    * `doubleClick`\n    * `mouseMove`\n    * `focusIn`\n    * `focusOut`\n    * `mouseEnter`\n    * `mouseLeave`\n  \n    Form events:\n  \n    * `submit`\n    * `change`\n    * `focusIn`\n    * `focusOut`\n    * `input`\n  \n    HTML5 drag and drop events:\n  \n    * `dragStart`\n    * `drag`\n    * `dragEnter`\n    * `dragLeave`\n    * `dragOver`\n    * `dragEnd`\n    * `drop`\n  \n    @class Component\n    @namespace Ember\n    @extends Ember.CoreView\n    @uses Ember.TargetActionSupport\n    @uses Ember.ClassNamesSupport\n    @uses Ember.ActionSupport\n    @uses Ember.ViewMixin\n    @uses Ember.ViewStateSupport\n    @public\n  */\n  var Component = _emberViews.CoreView.extend(_emberViews.ChildViewsSupport, _emberViews.ViewStateSupport, _emberViews.ClassNamesSupport, _emberRuntime.TargetActionSupport, _emberViews.ActionSupport, _emberViews.ViewMixin, (_CoreView$extend = {\n    isComponent: true,\n\n    init: function () {\n      var _this = this;\n\n      this._super.apply(this, arguments);\n      this[IS_DISPATCHING_ATTRS] = false;\n      this[DIRTY_TAG] = new _glimmerReference.DirtyableTag();\n      this[ROOT_REF] = new _emberGlimmerUtilsReferences.RootReference(this);\n      this[BOUNDS] = null;\n\n      // If a `defaultLayout` was specified move it to the `layout` prop.\n      // `layout` is no longer a CP, so this just ensures that the `defaultLayout`\n      // logic is supported with a deprecation\n      if (this.defaultLayout && !this.layout) {\n        _emberDebug.deprecate('Specifying `defaultLayout` to ' + this + ' is deprecated. Please use `layout` instead.', false, {\n          id: 'ember-views.component.defaultLayout',\n          until: '3.0.0',\n          url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-component-defaultlayout'\n        });\n\n        this.layout = this.defaultLayout;\n      }\n\n      // If in a tagless component, assert that no event handlers are defined\n      _emberDebug.assert('You can not define a function that handles DOM events in the `' + this + '` tagless component since it doesn\\'t have any DOM element.', this.tagName !== '' || !this.renderer._destinedForDOM || !(function () {\n        var eventDispatcher = _emberUtils.getOwner(_this).lookup('event_dispatcher:main');\n        var events = eventDispatcher && eventDispatcher._finalEvents || {};\n\n        for (var key in events) {\n          var methodName = events[key];\n\n          if (typeof _this[methodName] === 'function') {\n            return true; // indicate that the assertion should be triggered\n          }\n        }\n      })());\n\n      _emberDebug.assert('You cannot use a computed property for the component\\'s `tagName` (' + this + ').', !(this.tagName && this.tagName.isDescriptor));\n    },\n\n    rerender: function () {\n      this[DIRTY_TAG].dirty();\n      this._super();\n    },\n\n    __defineNonEnumerable: function (property) {\n      this[property.name] = property.descriptor.value;\n    }\n\n  }, _CoreView$extend[_emberMetal.PROPERTY_DID_CHANGE] = function (key) {\n    if (this[IS_DISPATCHING_ATTRS]) {\n      return;\n    }\n\n    var args = undefined,\n        reference = undefined;\n\n    if ((args = this[ARGS]) && (reference = args[key])) {\n      if (reference[_emberGlimmerUtilsReferences.UPDATE]) {\n        reference[_emberGlimmerUtilsReferences.UPDATE](_emberMetal.get(this, key));\n      }\n    }\n  }, _CoreView$extend.getAttr = function (key) {\n    // TODO Intimate API should be deprecated\n    return this.get(key);\n  }, _CoreView$extend.readDOMAttr = function (name) {\n    var element = _emberViews.getViewElement(this);\n    return _glimmerRuntime.readDOMAttr(element, name);\n  }, _CoreView$extend));\n\n  /**\n   The WAI-ARIA role of the control represented by this view. For example, a\n   button may have a role of type 'button', or a pane may have a role of\n   type 'alertdialog'. This property is used by assistive software to help\n   visually challenged users navigate rich web applications.\n    The full list of valid WAI-ARIA roles is available at:\n   [http://www.w3.org/TR/wai-aria/roles#roles_categorization](http://www.w3.org/TR/wai-aria/roles#roles_categorization)\n    @property ariaRole\n   @type String\n   @default null\n   @public\n   */\n\n  /**\n   Enables components to take a list of parameters as arguments.\n   For example, a component that takes two parameters with the names\n   `name` and `age`:\n    ```javascript\n   let MyComponent = Ember.Component.extend;\n    MyComponent.reopenClass({\n     positionalParams: ['name', 'age']\n   });\n   ```\n    It can then be invoked like this:\n    ```hbs\n   {{my-component \"John\" 38}}\n   ```\n    The parameters can be referred to just like named parameters:\n    ```hbs\n   Name: {{name}}, Age: {{age}}.\n   ```\n    Using a string instead of an array allows for an arbitrary number of\n   parameters:\n    ```javascript\n   let MyComponent = Ember.Component.extend;\n    MyComponent.reopenClass({\n     positionalParams: 'names'\n   });\n   ```\n    It can then be invoked like this:\n    ```hbs\n   {{my-component \"John\" \"Michael\" \"Scott\"}}\n   ```\n   The parameters can then be referred to by enumerating over the list:\n    ```hbs\n   {{#each names as |name|}}{{name}}{{/each}}\n   ```\n    @static\n   @public\n   @property positionalParams\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been updated.\n   Called both during the initial render of a container and during a rerender.\n   Can be used in place of an observer; code placed here will be executed\n   every time any attribute updates.\n   @method didReceiveAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been updated.\n   Called both during the initial render of a container and during a rerender.\n   Can be used in place of an observer; code placed here will be executed\n   every time any attribute updates.\n   @event didReceiveAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called after a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @method didRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called after a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @event didRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called before a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @method willRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called before a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @event willRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been changed.\n   Called only during a rerender, not during an initial render.\n   @method didUpdateAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been changed.\n   Called only during a rerender, not during an initial render.\n   @event didUpdateAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component is about to update and rerender itself.\n   Called only during a rerender, not during an initial render.\n   @method willUpdate\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component is about to update and rerender itself.\n   Called only during a rerender, not during an initial render.\n   @event willUpdate\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component has updated and rerendered itself.\n   Called only during a rerender, not during an initial render.\n   @method didUpdate\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component has updated and rerendered itself.\n   Called only during a rerender, not during an initial render.\n   @event didUpdate\n   @public\n   @since 1.13.0\n   */\n\n  /**\n    A component may contain a layout. A layout is a regular template but\n    supersedes the `template` property during rendering. It is the\n    responsibility of the layout template to retrieve the `template`\n    property from the component (or alternatively, call `Handlebars.helpers.yield`,\n    `{{yield}}`) to render it in the correct location.\n    This is useful for a component that has a shared wrapper, but which delegates\n    the rendering of the contents of the wrapper to the `template` property\n    on a subclass.\n    @property layout\n    @type Function\n    @public\n  */\n\n  /**\n    The name of the layout to lookup if no layout is provided.\n    By default `Ember.Component` will lookup a template with this name in\n    `Ember.TEMPLATES` (a shared global object).\n    @property layoutName\n    @type String\n    @default null\n    @private\n  */\n\n  /**\n    Returns a jQuery object for this component's element. If you pass in a selector\n    string, this method will return a jQuery object, using the current element\n    as its buffer.\n    For example, calling `component.$('li')` will return a jQuery object containing\n    all of the `li` elements inside the DOM element of this component.\n    @method $\n    @param {String} [selector] a jQuery-compatible selector string\n    @return {jQuery} the jQuery object for the DOM node\n    @public\n  */\n\n  /**\n    The HTML `id` of the component's element in the DOM. You can provide this\n    value yourself but it must be unique (just as in HTML):\n     ```handlebars\n    {{my-component elementId=\"a-really-cool-id\"}}\n    ```\n    If not manually set a default value will be provided by the framework.\n    Once rendered an element's `elementId` is considered immutable and you\n    should never change it. If you need to compute a dynamic value for the\n    `elementId`, you should do this when the component or element is being\n    instantiated:\n     ```javascript\n    export default Ember.Component.extend({\n      init() {\n        this._super(...arguments);\n         var index = this.get('index');\n        this.set('elementId', `component-id${index}`);\n      }\n    });\n    ```\n     @property elementId\n    @type String\n    @public\n  */\n\n  /**\n   If `false`, the view will appear hidden in DOM.\n    @property isVisible\n   @type Boolean\n   @default null\n   @public\n   */\n  Component[_emberUtils.NAME_KEY] = 'Ember.Component';\n\n  Component.reopenClass({\n    isComponentFactory: true,\n    positionalParams: []\n  });\n\n  exports.default = Component;\n});\n\n/**\n  Normally, Ember's component model is \"write-only\". The component takes a\n  bunch of attributes that it got passed in, and uses them to render its\n  template.\n   One nice thing about this model is that if you try to set a value to the\n  same thing as last time, Ember (through HTMLBars) will avoid doing any\n  work on the DOM.\n   This is not just a performance optimization. If an attribute has not\n  changed, it is important not to clobber the element's \"hidden state\".\n  For example, if you set an input's `value` to the same value as before,\n  it will clobber selection state and cursor position. In other words,\n  setting an attribute is not **always** idempotent.\n   This method provides a way to read an element's attribute and also\n  update the last value Ember knows about at the same time. This makes\n  setting an attribute idempotent.\n   In particular, what this means is that if you get an `<input>` element's\n  `value` attribute and then re-render the template with the same value,\n  it will avoid clobbering the cursor and selection position.\n  Since most attribute sets are idempotent in the browser, you typically\n  can get away with reading attributes using jQuery, but the most reliable\n  way to do so is through this method.\n  @method readDOMAttr\n   @param {String} name the name of the attribute\n  @return String\n  @public\n */\nenifed('ember-glimmer/components/checkbox', ['exports', 'ember-metal', 'ember-glimmer/component', 'ember-glimmer/templates/empty'], function (exports, _emberMetal, _emberGlimmerComponent, _emberGlimmerTemplatesEmpty) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  /**\n    The internal class used to create text inputs when the `{{input}}`\n    helper is used with `type` of `checkbox`.\n  \n    See [Ember.Templates.helpers.input](/api/classes/Ember.Templates.helpers.html#method_input)  for usage details.\n  \n    ## Direct manipulation of `checked`\n  \n    The `checked` attribute of an `Ember.Checkbox` object should always be set\n    through the Ember object or by interacting with its rendered element\n    representation via the mouse, keyboard, or touch. Updating the value of the\n    checkbox via jQuery will result in the checked value of the object and its\n    element losing synchronization.\n  \n    ## Layout and LayoutName properties\n  \n    Because HTML `input` elements are self closing `layout` and `layoutName`\n    properties will not be applied. See [Ember.View](/api/classes/Ember.View.html)'s\n    layout section for more information.\n  \n    @class Checkbox\n    @namespace Ember\n    @extends Ember.Component\n    @public\n  */\n  exports.default = _emberGlimmerComponent.default.extend({\n    layout: _emberGlimmerTemplatesEmpty.default,\n    classNames: ['ember-checkbox'],\n\n    tagName: 'input',\n\n    attributeBindings: ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name', 'autofocus', 'required', 'form'],\n\n    type: 'checkbox',\n    checked: false,\n    disabled: false,\n    indeterminate: false,\n\n    didInsertElement: function () {\n      this._super.apply(this, arguments);\n      _emberMetal.get(this, 'element').indeterminate = !!_emberMetal.get(this, 'indeterminate');\n    },\n\n    change: function () {\n      _emberMetal.set(this, 'checked', this.$().prop('checked'));\n    }\n  });\n});\nenifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views', 'ember-glimmer/templates/link-to', 'ember-glimmer/component'], function (exports, _emberConsole, _emberDebug, _emberMetal, _emberRuntime, _emberViews, _emberGlimmerTemplatesLinkTo, _emberGlimmerComponent) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  /**\n    The `{{link-to}}` component renders a link to the supplied\n    `routeName` passing an optionally supplied model to the\n    route as its `model` context of the route. The block\n    for `{{link-to}}` becomes the innerHTML of the rendered\n    element:\n  \n    ```handlebars\n    {{#link-to 'photoGallery'}}\n      Great Hamster Photos\n    {{/link-to}}\n    ```\n  \n    You can also use an inline form of `{{link-to}}` component by\n    passing the link text as the first argument\n    to the component:\n  \n    ```handlebars\n    {{link-to 'Great Hamster Photos' 'photoGallery'}}\n    ```\n  \n    Both will result in:\n  \n    ```html\n    <a href=\"/hamster-photos\">\n      Great Hamster Photos\n    </a>\n    ```\n  \n    ### Supplying a tagName\n    By default `{{link-to}}` renders an `<a>` element. This can\n    be overridden for a single use of `{{link-to}}` by supplying\n    a `tagName` option:\n  \n    ```handlebars\n    {{#link-to 'photoGallery' tagName=\"li\"}}\n      Great Hamster Photos\n    {{/link-to}}\n    ```\n  \n    ```html\n    <li>\n      Great Hamster Photos\n    </li>\n    ```\n  \n    To override this option for your entire application, see\n    \"Overriding Application-wide Defaults\".\n  \n    ### Disabling the `link-to` component\n    By default `{{link-to}}` is enabled.\n    any passed value to the `disabled` component property will disable\n    the `link-to` component.\n  \n    static use: the `disabled` option:\n  \n    ```handlebars\n    {{#link-to 'photoGallery' disabled=true}}\n      Great Hamster Photos\n    {{/link-to}}\n    ```\n  \n    dynamic use: the `disabledWhen` option:\n  \n    ```handlebars\n    {{#link-to 'photoGallery' disabledWhen=controller.someProperty}}\n      Great Hamster Photos\n    {{/link-to}}\n    ```\n  \n    any passed value to `disabled` will disable it except `undefined`.\n    to ensure that only `true` disable the `link-to` component you can\n    override the global behaviour of `Ember.LinkComponent`.\n  \n    ```javascript\n    Ember.LinkComponent.reopen({\n      disabled: Ember.computed(function(key, value) {\n        if (value !== undefined) {\n          this.set('_isDisabled', value === true);\n        }\n        return value === true ? get(this, 'disabledClass') : false;\n      })\n    });\n    ```\n  \n    see \"Overriding Application-wide Defaults\" for more.\n  \n    ### Handling `href`\n    `{{link-to}}` will use your application's Router to\n    fill the element's `href` property with a url that\n    matches the path to the supplied `routeName` for your\n    router's configured `Location` scheme, which defaults\n    to Ember.HashLocation.\n  \n    ### Handling current route\n    `{{link-to}}` will apply a CSS class name of 'active'\n    when the application's current route matches\n    the supplied routeName. For example, if the application's\n    current route is 'photoGallery.recent' the following\n    use of `{{link-to}}`:\n  \n    ```handlebars\n    {{#link-to 'photoGallery.recent'}}\n      Great Hamster Photos\n    {{/link-to}}\n    ```\n  \n    will result in\n  \n    ```html\n    <a href=\"/hamster-photos/this-week\" class=\"active\">\n      Great Hamster Photos\n    </a>\n    ```\n  \n    The CSS class name used for active classes can be customized\n    for a single use of `{{link-to}}` by passing an `activeClass`\n    option:\n  \n    ```handlebars\n    {{#link-to 'photoGallery.recent' activeClass=\"current-url\"}}\n      Great Hamster Photos\n    {{/link-to}}\n    ```\n  \n    ```html\n    <a href=\"/hamster-photos/this-week\" class=\"current-url\">\n      Great Hamster Photos\n    </a>\n    ```\n  \n    To override this option for your entire application, see\n    \"Overriding Application-wide Defaults\".\n  \n    ### Keeping a link active for other routes\n  \n    If you need a link to be 'active' even when it doesn't match\n    the current route, you can use the `current-when` argument.\n  \n    ```handlebars\n    {{#link-to 'photoGallery' current-when='photos'}}\n      Photo Gallery\n    {{/link-to}}\n    ```\n  \n    This may be helpful for keeping links active for:\n  \n    * non-nested routes that are logically related\n    * some secondary menu approaches\n    * 'top navigation' with 'sub navigation' scenarios\n  \n    A link will be active if `current-when` is `true` or the current\n    route is the route this link would transition to.\n  \n    To match multiple routes 'space-separate' the routes:\n  \n    ```handlebars\n    {{#link-to 'gallery' current-when='photos drawings paintings'}}\n      Art Gallery\n    {{/link-to}}\n    ```\n  \n    ### Supplying a model\n    An optional model argument can be used for routes whose\n    paths contain dynamic segments. This argument will become\n    the model context of the linked route:\n  \n    ```javascript\n    Router.map(function() {\n      this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n    });\n    ```\n  \n    ```handlebars\n    {{#link-to 'photoGallery' aPhoto}}\n      {{aPhoto.title}}\n    {{/link-to}}\n    ```\n  \n    ```html\n    <a href=\"/hamster-photos/42\">\n      Tomster\n    </a>\n    ```\n  \n    ### Supplying multiple models\n    For deep-linking to route paths that contain multiple\n    dynamic segments, multiple model arguments can be used.\n    As the router transitions through the route path, each\n    supplied model argument will become the context for the\n    route with the dynamic segments:\n  \n    ```javascript\n    Router.map(function() {\n      this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n        this.route(\"comment\", {path: \"comments/:comment_id\"});\n      });\n    });\n    ```\n    This argument will become the model context of the linked route:\n  \n    ```handlebars\n    {{#link-to 'photoGallery.comment' aPhoto comment}}\n      {{comment.body}}\n    {{/link-to}}\n    ```\n  \n    ```html\n    <a href=\"/hamster-photos/42/comments/718\">\n      A+++ would snuggle again.\n    </a>\n    ```\n  \n    ### Supplying an explicit dynamic segment value\n    If you don't have a model object available to pass to `{{link-to}}`,\n    an optional string or integer argument can be passed for routes whose\n    paths contain dynamic segments. This argument will become the value\n    of the dynamic segment:\n  \n    ```javascript\n    Router.map(function() {\n      this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n    });\n    ```\n  \n    ```handlebars\n    {{#link-to 'photoGallery' aPhotoId}}\n      {{aPhoto.title}}\n    {{/link-to}}\n    ```\n  \n    ```html\n    <a href=\"/hamster-photos/42\">\n      Tomster\n    </a>\n    ```\n  \n    When transitioning into the linked route, the `model` hook will\n    be triggered with parameters including this passed identifier.\n  \n    ### Allowing Default Action\n  \n   By default the `{{link-to}}` component prevents the default browser action\n   by calling `preventDefault()` as this sort of action bubbling is normally\n   handled internally and we do not want to take the browser to a new URL (for\n   example).\n  \n   If you need to override this behavior specify `preventDefault=false` in\n   your template:\n  \n    ```handlebars\n    {{#link-to 'photoGallery' aPhotoId preventDefault=false}}\n      {{aPhotoId.title}}\n    {{/link-to}}\n    ```\n  \n    ### Overriding attributes\n    You can override any given property of the `Ember.LinkComponent`\n    that is generated by the `{{link-to}}` component by passing\n    key/value pairs, like so:\n  \n    ```handlebars\n    {{#link-to  aPhoto tagName='li' title='Following this link will change your life' classNames='pic sweet'}}\n      Uh-mazing!\n    {{/link-to}}\n    ```\n  \n    See [Ember.LinkComponent](/api/classes/Ember.LinkComponent.html) for a\n    complete list of overrideable properties. Be sure to also\n    check out inherited properties of `LinkComponent`.\n  \n    ### Overriding Application-wide Defaults\n    ``{{link-to}}`` creates an instance of `Ember.LinkComponent`\n    for rendering. To override options for your entire\n    application, reopen `Ember.LinkComponent` and supply the\n    desired values:\n  \n    ``` javascript\n    Ember.LinkComponent.reopen({\n      activeClass: \"is-active\",\n      tagName: 'li'\n    })\n    ```\n  \n    It is also possible to override the default event in\n    this manner:\n  \n    ``` javascript\n    Ember.LinkComponent.reopen({\n      eventName: 'customEventName'\n    });\n    ```\n  \n    @method link-to\n    @for Ember.Templates.helpers\n    @param {String} routeName\n    @param {Object} [context]*\n    @param [options] {Object} Handlebars key/value pairs of options, you can override any property of Ember.LinkComponent\n    @return {String} HTML string\n    @see {Ember.LinkComponent}\n    @public\n  */\n\n  'use strict';\n\n  /**\n    `Ember.LinkComponent` renders an element whose `click` event triggers a\n    transition of the application's instance of `Ember.Router` to\n    a supplied route by name.\n  \n    `Ember.LinkComponent` components are invoked with {{#link-to}}. Properties\n    of this class can be overridden with `reopen` to customize application-wide\n    behavior.\n  \n    @class LinkComponent\n    @namespace Ember\n    @extends Ember.Component\n    @see {Ember.Templates.helpers.link-to}\n    @public\n  **/\n  var LinkComponent = _emberGlimmerComponent.default.extend({\n    layout: _emberGlimmerTemplatesLinkTo.default,\n\n    tagName: 'a',\n\n    /**\n      @deprecated Use current-when instead.\n      @property currentWhen\n      @private\n    */\n    currentWhen: _emberRuntime.deprecatingAlias('current-when', { id: 'ember-routing-view.deprecated-current-when', until: '3.0.0' }),\n\n    /**\n      Used to determine when this `LinkComponent` is active.\n       @property currentWhen\n      @public\n    */\n    'current-when': null,\n\n    /**\n      Sets the `title` attribute of the `LinkComponent`'s HTML element.\n       @property title\n      @default null\n      @public\n    **/\n    title: null,\n\n    /**\n      Sets the `rel` attribute of the `LinkComponent`'s HTML element.\n       @property rel\n      @default null\n      @public\n    **/\n    rel: null,\n\n    /**\n      Sets the `tabindex` attribute of the `LinkComponent`'s HTML element.\n       @property tabindex\n      @default null\n      @public\n    **/\n    tabindex: null,\n\n    /**\n      Sets the `target` attribute of the `LinkComponent`'s HTML element.\n       @since 1.8.0\n      @property target\n      @default null\n      @public\n    **/\n    target: null,\n\n    /**\n      The CSS class to apply to `LinkComponent`'s element when its `active`\n      property is `true`.\n       @property activeClass\n      @type String\n      @default active\n      @public\n    **/\n    activeClass: 'active',\n\n    /**\n      The CSS class to apply to `LinkComponent`'s element when its `loading`\n      property is `true`.\n       @property loadingClass\n      @type String\n      @default loading\n      @private\n    **/\n    loadingClass: 'loading',\n\n    /**\n      The CSS class to apply to a `LinkComponent`'s element when its `disabled`\n      property is `true`.\n       @property disabledClass\n      @type String\n      @default disabled\n      @private\n    **/\n    disabledClass: 'disabled',\n    _isDisabled: false,\n\n    /**\n      Determines whether the `LinkComponent` will trigger routing via\n      the `replaceWith` routing strategy.\n       @property replace\n      @type Boolean\n      @default false\n      @public\n    **/\n    replace: false,\n\n    /**\n      By default the `{{link-to}}` component will bind to the `href` and\n      `title` attributes. It's discouraged that you override these defaults,\n      however you can push onto the array if needed.\n       @property attributeBindings\n      @type Array | String\n      @default ['title', 'rel', 'tabindex', 'target']\n      @public\n    */\n    attributeBindings: ['href', 'title', 'rel', 'tabindex', 'target'],\n\n    /**\n      By default the `{{link-to}}` component will bind to the `active`, `loading`,\n      and `disabled` classes. It is discouraged to override these directly.\n       @property classNameBindings\n      @type Array\n      @default ['active', 'loading', 'disabled', 'ember-transitioning-in', 'ember-transitioning-out']\n      @public\n    */\n    classNameBindings: ['active', 'loading', 'disabled', 'transitioningIn', 'transitioningOut'],\n\n    /**\n      By default the `{{link-to}}` component responds to the `click` event. You\n      can override this globally by setting this property to your custom\n      event name.\n       This is particularly useful on mobile when one wants to avoid the 300ms\n      click delay using some sort of custom `tap` event.\n       @property eventName\n      @type String\n      @default click\n      @private\n    */\n    eventName: 'click',\n\n    // this is doc'ed here so it shows up in the events\n    // section of the API documentation, which is where\n    // people will likely go looking for it.\n    /**\n      Triggers the `LinkComponent`'s routing behavior. If\n      `eventName` is changed to a value other than `click`\n      the routing behavior will trigger on that custom event\n      instead.\n       @event click\n      @private\n    */\n\n    /**\n      An overridable method called when `LinkComponent` objects are instantiated.\n       Example:\n       ```javascript\n      App.MyLinkComponent = Ember.LinkComponent.extend({\n        init: function() {\n          this._super(...arguments);\n          Ember.Logger.log('Event is ' + this.get('eventName'));\n        }\n      });\n      ```\n       NOTE: If you do override `init` for a framework class like `Ember.View`,\n      be sure to call `this._super(...arguments)` in your\n      `init` declaration! If you don't, Ember may not have an opportunity to\n      do important setup work, and you'll see strange behavior in your\n      application.\n       @method init\n      @private\n    */\n    init: function () {\n      this._super.apply(this, arguments);\n\n      // Map desired event name to invoke function\n      var eventName = _emberMetal.get(this, 'eventName');\n      this.on(eventName, this, this._invoke);\n    },\n\n    _routing: _emberRuntime.inject.service('-routing'),\n\n    /**\n      Accessed as a classname binding to apply the `LinkComponent`'s `disabledClass`\n      CSS `class` to the element when the link is disabled.\n       When `true` interactions with the element will not trigger route changes.\n      @property disabled\n      @private\n    */\n    disabled: _emberMetal.computed({\n      get: function (key, value) {\n        return false;\n      },\n      set: function (key, value) {\n        if (value !== undefined) {\n          this.set('_isDisabled', value);\n        }\n\n        return value ? _emberMetal.get(this, 'disabledClass') : false;\n      }\n    }),\n\n    _computeActive: function (routerState) {\n      if (_emberMetal.get(this, 'loading')) {\n        return false;\n      }\n\n      var routing = _emberMetal.get(this, '_routing');\n      var models = _emberMetal.get(this, 'models');\n      var resolvedQueryParams = _emberMetal.get(this, 'resolvedQueryParams');\n\n      var currentWhen = _emberMetal.get(this, 'current-when');\n      var isCurrentWhenSpecified = !!currentWhen;\n      currentWhen = currentWhen || _emberMetal.get(this, 'qualifiedRouteName');\n      currentWhen = currentWhen.split(' ');\n\n      for (var i = 0; i < currentWhen.length; i++) {\n        if (routing.isActiveForRoute(models, resolvedQueryParams, currentWhen[i], routerState, isCurrentWhenSpecified)) {\n          return _emberMetal.get(this, 'activeClass');\n        }\n      }\n\n      return false;\n    },\n\n    /**\n      Accessed as a classname binding to apply the `LinkComponent`'s `activeClass`\n      CSS `class` to the element when the link is active.\n       A `LinkComponent` is considered active when its `currentWhen` property is `true`\n      or the application's current route is the route the `LinkComponent` would trigger\n      transitions into.\n       The `currentWhen` property can match against multiple routes by separating\n      route names using the ` ` (space) character.\n       @property active\n      @private\n    */\n    active: _emberMetal.computed('attrs.params', '_routing.currentState', function computeLinkToComponentActive() {\n      var currentState = _emberMetal.get(this, '_routing.currentState');\n      if (!currentState) {\n        return false;\n      }\n\n      return this._computeActive(currentState);\n    }),\n\n    willBeActive: _emberMetal.computed('_routing.targetState', function computeLinkToComponentWillBeActive() {\n      var routing = _emberMetal.get(this, '_routing');\n      var targetState = _emberMetal.get(routing, 'targetState');\n      if (_emberMetal.get(routing, 'currentState') === targetState) {\n        return;\n      }\n\n      return !!this._computeActive(targetState);\n    }),\n\n    transitioningIn: _emberMetal.computed('active', 'willBeActive', function computeLinkToComponentTransitioningIn() {\n      var willBeActive = _emberMetal.get(this, 'willBeActive');\n      if (typeof willBeActive === 'undefined') {\n        return false;\n      }\n\n      return !_emberMetal.get(this, 'active') && willBeActive && 'ember-transitioning-in';\n    }),\n\n    transitioningOut: _emberMetal.computed('active', 'willBeActive', function computeLinkToComponentTransitioningOut() {\n      var willBeActive = _emberMetal.get(this, 'willBeActive');\n      if (typeof willBeActive === 'undefined') {\n        return false;\n      }\n\n      return _emberMetal.get(this, 'active') && !willBeActive && 'ember-transitioning-out';\n    }),\n\n    /**\n      Event handler that invokes the link, activating the associated route.\n       @method _invoke\n      @param {Event} event\n      @private\n    */\n    _invoke: function (event) {\n      if (!_emberViews.isSimpleClick(event)) {\n        return true;\n      }\n\n      var preventDefault = _emberMetal.get(this, 'preventDefault');\n      var targetAttribute = _emberMetal.get(this, 'target');\n\n      if (preventDefault !== false) {\n        if (!targetAttribute || targetAttribute === '_self') {\n          event.preventDefault();\n        }\n      }\n\n      if (_emberMetal.get(this, 'bubbles') === false) {\n        event.stopPropagation();\n      }\n\n      if (_emberMetal.get(this, '_isDisabled')) {\n        return false;\n      }\n\n      if (_emberMetal.get(this, 'loading')) {\n        _emberConsole.default.warn('This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.');\n        return false;\n      }\n\n      if (targetAttribute && targetAttribute !== '_self') {\n        return false;\n      }\n\n      var qualifiedRouteName = _emberMetal.get(this, 'qualifiedRouteName');\n      var models = _emberMetal.get(this, 'models');\n      var queryParams = _emberMetal.get(this, 'queryParams.values');\n      var shouldReplace = _emberMetal.get(this, 'replace');\n\n      var payload = {\n        queryParams: queryParams,\n        routeName: qualifiedRouteName\n      };\n\n      _emberMetal.flaggedInstrument('interaction.link-to', payload, this._generateTransition(payload, qualifiedRouteName, models, queryParams, shouldReplace));\n    },\n\n    _generateTransition: function (payload, qualifiedRouteName, models, queryParams, shouldReplace) {\n      var routing = _emberMetal.get(this, '_routing');\n      return function () {\n        payload.transition = routing.transitionTo(qualifiedRouteName, models, queryParams, shouldReplace);\n      };\n    },\n\n    queryParams: null,\n\n    qualifiedRouteName: _emberMetal.computed('targetRouteName', '_routing.currentState', function computeLinkToComponentQualifiedRouteName() {\n      var params = _emberMetal.get(this, 'params').slice();\n      var lastParam = params[params.length - 1];\n      if (lastParam && lastParam.isQueryParams) {\n        params.pop();\n      }\n      var onlyQueryParamsSupplied = this[_emberGlimmerComponent.HAS_BLOCK] ? params.length === 0 : params.length === 1;\n      if (onlyQueryParamsSupplied) {\n        return _emberMetal.get(this, '_routing.currentRouteName');\n      }\n      return _emberMetal.get(this, 'targetRouteName');\n    }),\n\n    resolvedQueryParams: _emberMetal.computed('queryParams', function computeLinkToComponentResolvedQueryParams() {\n      var resolvedQueryParams = {};\n      var queryParams = _emberMetal.get(this, 'queryParams');\n\n      if (!queryParams) {\n        return resolvedQueryParams;\n      }\n\n      var values = queryParams.values;\n      for (var key in values) {\n        if (!values.hasOwnProperty(key)) {\n          continue;\n        }\n        resolvedQueryParams[key] = values[key];\n      }\n\n      return resolvedQueryParams;\n    }),\n\n    /**\n      Sets the element's `href` attribute to the url for\n      the `LinkComponent`'s targeted route.\n       If the `LinkComponent`'s `tagName` is changed to a value other\n      than `a`, this property will be ignored.\n       @property href\n      @private\n    */\n    href: _emberMetal.computed('models', 'qualifiedRouteName', function computeLinkToComponentHref() {\n      if (_emberMetal.get(this, 'tagName') !== 'a') {\n        return;\n      }\n\n      var qualifiedRouteName = _emberMetal.get(this, 'qualifiedRouteName');\n      var models = _emberMetal.get(this, 'models');\n\n      if (_emberMetal.get(this, 'loading')) {\n        return _emberMetal.get(this, 'loadingHref');\n      }\n\n      var routing = _emberMetal.get(this, '_routing');\n      var queryParams = _emberMetal.get(this, 'queryParams.values');\n\n      _emberDebug.runInDebug(function () {\n        /*\n         * Unfortunately, to get decent error messages, we need to do this.\n         * In some future state we should be able to use a \"feature flag\"\n         * which allows us to strip this without needing to call it twice.\n         *\n         * if (isDebugBuild()) {\n         *   // Do the useful debug thing, probably including try/catch.\n         * } else {\n         *   // Do the performant thing.\n         * }\n         */\n        try {\n          routing.generateURL(qualifiedRouteName, models, queryParams);\n        } catch (e) {\n          _emberDebug.assert('You attempted to define a `{{link-to \"' + qualifiedRouteName + '\"}}` but did not pass the parameters required for generating its dynamic segments. ' + e.message);\n        }\n      });\n\n      return routing.generateURL(qualifiedRouteName, models, queryParams);\n    }),\n\n    loading: _emberMetal.computed('_modelsAreLoaded', 'qualifiedRouteName', function computeLinkToComponentLoading() {\n      var qualifiedRouteName = _emberMetal.get(this, 'qualifiedRouteName');\n      var modelsAreLoaded = _emberMetal.get(this, '_modelsAreLoaded');\n\n      if (!modelsAreLoaded || qualifiedRouteName == null) {\n        return _emberMetal.get(this, 'loadingClass');\n      }\n    }),\n\n    _modelsAreLoaded: _emberMetal.computed('models', function computeLinkToComponentModelsAreLoaded() {\n      var models = _emberMetal.get(this, 'models');\n      for (var i = 0; i < models.length; i++) {\n        if (models[i] == null) {\n          return false;\n        }\n      }\n\n      return true;\n    }),\n\n    _getModels: function (params) {\n      var modelCount = params.length - 1;\n      var models = new Array(modelCount);\n\n      for (var i = 0; i < modelCount; i++) {\n        var value = params[i + 1];\n\n        while (_emberRuntime.ControllerMixin.detect(value)) {\n          _emberDebug.deprecate('Providing `{{link-to}}` with a param that is wrapped in a controller is deprecated. ' + (this.parentView ? 'Please update `' + this.parentView + '` to use `{{link-to \"post\" someController.model}}` instead.' : ''), false, { id: 'ember-routing-views.controller-wrapped-param', until: '3.0.0' });\n          value = value.get('model');\n        }\n\n        models[i] = value;\n      }\n\n      return models;\n    },\n\n    /**\n      The default href value to use while a link-to is loading.\n      Only applies when tagName is 'a'\n       @property loadingHref\n      @type String\n      @default #\n      @private\n    */\n    loadingHref: '#',\n\n    didReceiveAttrs: function () {\n      var queryParams = undefined;\n\n      var params = _emberMetal.get(this, 'params');\n\n      if (params) {\n        // Do not mutate params in place\n        params = params.slice();\n      }\n\n      _emberDebug.assert('You must provide one or more parameters to the link-to component.', (function () {\n        if (!params) {\n          return false;\n        }\n\n        return params.length;\n      })());\n\n      var disabledWhen = _emberMetal.get(this, 'disabledWhen');\n      if (disabledWhen !== undefined) {\n        this.set('disabled', disabledWhen);\n      }\n\n      // Process the positional arguments, in order.\n      // 1. Inline link title comes first, if present.\n      if (!this[_emberGlimmerComponent.HAS_BLOCK]) {\n        this.set('linkTitle', params.shift());\n      }\n\n      // 2. `targetRouteName` is now always at index 0.\n      this.set('targetRouteName', params[0]);\n\n      // 3. The last argument (if still remaining) is the `queryParams` object.\n      var lastParam = params[params.length - 1];\n\n      if (lastParam && lastParam.isQueryParams) {\n        queryParams = params.pop();\n      } else {\n        queryParams = { values: {} };\n      }\n      this.set('queryParams', queryParams);\n\n      // 4. Any remaining indices (excepting `targetRouteName` at 0) are `models`.\n      if (params.length > 1) {\n        this.set('models', this._getModels(params));\n      } else {\n        this.set('models', []);\n      }\n    }\n  });\n\n  LinkComponent.toString = function () {\n    return 'LinkComponent';\n  };\n\n  LinkComponent.reopenClass({\n    positionalParams: 'params'\n  });\n\n  exports.default = LinkComponent;\n});\nenifed('ember-glimmer/components/text_area', ['exports', 'ember-glimmer/component', 'ember-views', 'ember-glimmer/templates/empty'], function (exports, _emberGlimmerComponent, _emberViews, _emberGlimmerTemplatesEmpty) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  /**\n    `{{textarea}}` inserts a new instance of `<textarea>` tag into the template.\n    The attributes of `{{textarea}}` match those of the native HTML tags as\n    closely as possible.\n  \n    The following HTML attributes can be set:\n  \n      * `value`\n      * `name`\n      * `rows`\n      * `cols`\n      * `placeholder`\n      * `disabled`\n      * `maxlength`\n      * `tabindex`\n      * `selectionEnd`\n      * `selectionStart`\n      * `selectionDirection`\n      * `wrap`\n      * `readonly`\n      * `autofocus`\n      * `form`\n      * `spellcheck`\n      * `required`\n  \n    When set to a quoted string, these value will be directly applied to the HTML\n    element. When left unquoted, these values will be bound to a property on the\n    template's current rendering context (most typically a controller instance).\n  \n    Unbound:\n  \n    ```handlebars\n    {{textarea value=\"Lots of static text that ISN'T bound\"}}\n    ```\n  \n    Would result in the following HTML:\n  \n    ```html\n    <textarea class=\"ember-text-area\">\n      Lots of static text that ISN'T bound\n    </textarea>\n    ```\n  \n    Bound:\n  \n    In the following example, the `writtenWords` property on `App.ApplicationController`\n    will be updated live as the user types 'Lots of text that IS bound' into\n    the text area of their browser's window.\n  \n    ```javascript\n    App.ApplicationController = Ember.Controller.extend({\n      writtenWords: \"Lots of text that IS bound\"\n    });\n    ```\n  \n    ```handlebars\n    {{textarea value=writtenWords}}\n    ```\n  \n     Would result in the following HTML:\n  \n    ```html\n    <textarea class=\"ember-text-area\">\n      Lots of text that IS bound\n    </textarea>\n    ```\n  \n    If you wanted a one way binding between the text area and a div tag\n    somewhere else on your screen, you could use `Ember.computed.oneWay`:\n  \n    ```javascript\n    App.ApplicationController = Ember.Controller.extend({\n      writtenWords: \"Lots of text that IS bound\",\n      outputWrittenWords: Ember.computed.oneWay(\"writtenWords\")\n    });\n    ```\n  \n    ```handlebars\n    {{textarea value=writtenWords}}\n    <div>\n      {{outputWrittenWords}}\n    </div>\n    ```\n  \n    Would result in the following HTML:\n  \n    ```html\n    <textarea class=\"ember-text-area\">\n      Lots of text that IS bound\n    </textarea>\n    <-- the following div will be updated in real time as you type -->\n    <div>\n      Lots of text that IS bound\n    </div>\n    ```\n  \n    Finally, this example really shows the power and ease of Ember when two\n    properties are bound to eachother via `Ember.computed.alias`. Type into\n    either text area box and they'll both stay in sync. Note that\n    `Ember.computed.alias` costs more in terms of performance, so only use it when\n    your really binding in both directions:\n  \n    ```javascript\n    App.ApplicationController = Ember.Controller.extend({\n      writtenWords: \"Lots of text that IS bound\",\n      twoWayWrittenWords: Ember.computed.alias(\"writtenWords\")\n    });\n    ```\n  \n    ```handlebars\n    {{textarea value=writtenWords}}\n    {{textarea value=twoWayWrittenWords}}\n    ```\n  \n    ```html\n    <textarea id=\"ember1\" class=\"ember-text-area\">\n      Lots of text that IS bound\n    </textarea>\n    <-- both updated in real time -->\n    <textarea id=\"ember2\" class=\"ember-text-area\">\n      Lots of text that IS bound\n    </textarea>\n    ```\n  \n    ### Actions\n  \n    The helper can send multiple actions based on user events.\n    The action property defines the action which is send when\n    the user presses the return key.\n  \n    ```handlebars\n    {{input action=\"submit\"}}\n    ```\n  \n    The helper allows some user events to send actions.\n  \n    * `enter`\n    * `insert-newline`\n    * `escape-press`\n    * `focus-in`\n    * `focus-out`\n    * `key-press`\n  \n    For example, if you desire an action to be sent when the input is blurred,\n    you only need to setup the action name to the event name property.\n  \n    ```handlebars\n    {{textarea focus-out=\"alertMessage\"}}\n    ```\n  \n    See more about [Text Support Actions](/api/classes/Ember.TextArea.html)\n  \n    ### Extension\n  \n    Internally, `{{textarea}}` creates an instance of `Ember.TextArea`, passing\n    arguments from the helper to `Ember.TextArea`'s `create` method. You can\n    extend the capabilities of text areas in your application by reopening this\n    class. For example, if you are building a Bootstrap project where `data-*`\n    attributes are used, you can globally add support for a `data-*` attribute\n    on all `{{textarea}}`s' in your app by reopening `Ember.TextArea` or\n    `Ember.TextSupport` and adding it to the `attributeBindings` concatenated\n    property:\n  \n    ```javascript\n    Ember.TextArea.reopen({\n      attributeBindings: ['data-error']\n    });\n    ```\n  \n    Keep in mind when writing `Ember.TextArea` subclasses that `Ember.TextArea`\n    itself extends `Ember.Component`. Expect isolated component semantics, not\n    legacy 1.x view semantics (like `controller` being present).\n  \n    See more about [Ember components](/api/classes/Ember.Component.html)\n  \n    @method textarea\n    @for Ember.Templates.helpers\n    @param {Hash} options\n    @public\n  */\n\n  /**\n    The internal class used to create textarea element when the `{{textarea}}`\n    helper is used.\n  \n    See [Ember.Templates.helpers.textarea](/api/classes/Ember.Templates.helpers.html#method_textarea)  for usage details.\n  \n    ## Layout and LayoutName properties\n  \n    Because HTML `textarea` elements do not contain inner HTML the `layout` and\n    `layoutName` properties will not be applied. See [Ember.View](/api/classes/Ember.View.html)'s\n    layout section for more information.\n  \n    @class TextArea\n    @namespace Ember\n    @extends Ember.Component\n    @uses Ember.TextSupport\n    @public\n  */\n  exports.default = _emberGlimmerComponent.default.extend(_emberViews.TextSupport, {\n    classNames: ['ember-text-area'],\n\n    layout: _emberGlimmerTemplatesEmpty.default,\n\n    tagName: 'textarea',\n    attributeBindings: ['rows', 'cols', 'name', 'selectionEnd', 'selectionStart', 'wrap', 'lang', 'dir', 'value'],\n    rows: null,\n    cols: null\n  });\n});\nenifed('ember-glimmer/components/text_field', ['exports', 'ember-metal', 'ember-environment', 'ember-glimmer/component', 'ember-glimmer/templates/empty', 'ember-views'], function (exports, _emberMetal, _emberEnvironment, _emberGlimmerComponent, _emberGlimmerTemplatesEmpty, _emberViews) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n  'use strict';\n\n  var inputTypeTestElement = undefined;\n  var inputTypes = Object.create(null);\n  function canSetTypeOfInput(type) {\n    if (type in inputTypes) {\n      return inputTypes[type];\n    }\n\n    // if running in outside of a browser always return the\n    // original type\n    if (!_emberEnvironment.environment.hasDOM) {\n      inputTypes[type] = type;\n\n      return type;\n    }\n\n    if (!inputTypeTestElement) {\n      inputTypeTestElement = document.createElement('input');\n    }\n\n    try {\n      inputTypeTestElement.type = type;\n    } catch (e) {\n      // ignored\n    }\n\n    return inputTypes[type] = inputTypeTestElement.type === type;\n  }\n\n  /**\n  \n    The internal class used to create text inputs when the `{{input}}`\n    helper is used with `type` of `text`.\n  \n    See [Ember.Templates.helpers.input](/api/classes/Ember.Templates.helpers.html#method_input)  for usage details.\n  \n    ## Layout and LayoutName properties\n  \n    Because HTML `input` elements are self closing `layout` and `layoutName`\n    properties will not be applied. See [Ember.View](/api/classes/Ember.View.html)'s\n    layout section for more information.\n  \n    @class TextField\n    @namespace Ember\n    @extends Ember.Component\n    @uses Ember.TextSupport\n    @public\n  */\n  exports.default = _emberGlimmerComponent.default.extend(_emberViews.TextSupport, {\n    layout: _emberGlimmerTemplatesEmpty.default,\n    classNames: ['ember-text-field'],\n    tagName: 'input',\n    attributeBindings: ['accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'type', 'value', 'width'],\n\n    /**\n      The `value` attribute of the input element. As the user inputs text, this\n      property is updated live.\n       @property value\n      @type String\n      @default \"\"\n      @public\n    */\n    value: '',\n\n    /**\n      The `type` attribute of the input element.\n       @property type\n      @type String\n      @default \"text\"\n      @public\n    */\n    type: _emberMetal.computed({\n      get: function () {\n        return 'text';\n      },\n\n      set: function (key, value) {\n        var type = 'text';\n\n        if (canSetTypeOfInput(value)) {\n          type = value;\n        }\n\n        return type;\n      }\n    }),\n\n    /**\n      The `size` of the text field in characters.\n       @property size\n      @type String\n      @default null\n      @public\n    */\n    size: null,\n\n    /**\n      The `pattern` attribute of input element.\n       @property pattern\n      @type String\n      @default null\n      @public\n    */\n    pattern: null,\n\n    /**\n      The `min` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n       @property min\n      @type String\n      @default null\n      @since 1.4.0\n      @public\n    */\n    min: null,\n\n    /**\n      The `max` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n       @property max\n      @type String\n      @default null\n      @since 1.4.0\n      @public\n    */\n    max: null\n  });\n});\nenifed('ember-glimmer/dom', ['exports', '@glimmer/runtime', '@glimmer/node'], function (exports, _glimmerRuntime, _glimmerNode) {\n  'use strict';\n\n  exports.DOMChanges = _glimmerRuntime.DOMChanges;\n  exports.DOMTreeConstruction = _glimmerRuntime.DOMTreeConstruction;\n  exports.NodeDOMTreeConstruction = _glimmerNode.NodeDOMTreeConstruction;\n});\nenifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-views', '@glimmer/runtime', 'ember-glimmer/syntax/curly-component', 'ember-glimmer/syntax', 'ember-glimmer/utils/iterable', 'ember-glimmer/utils/references', 'ember-glimmer/utils/debug-stack', 'ember-glimmer/helpers/if-unless', 'ember-glimmer/helpers/action', 'ember-glimmer/helpers/component', 'ember-glimmer/helpers/concat', 'ember-glimmer/helpers/get', 'ember-glimmer/helpers/hash', 'ember-glimmer/helpers/loc', 'ember-glimmer/helpers/log', 'ember-glimmer/helpers/mut', 'ember-glimmer/helpers/readonly', 'ember-glimmer/helpers/unbound', 'ember-glimmer/helpers/-class', 'ember-glimmer/helpers/-input-type', 'ember-glimmer/helpers/query-param', 'ember-glimmer/helpers/each-in', 'ember-glimmer/helpers/-normalize-class', 'ember-glimmer/helpers/-html-safe', 'ember-glimmer/protocol-for-url', 'container', 'ember-glimmer/modifiers/action'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberViews, _glimmerRuntime, _emberGlimmerSyntaxCurlyComponent, _emberGlimmerSyntax, _emberGlimmerUtilsIterable, _emberGlimmerUtilsReferences, _emberGlimmerUtilsDebugStack, _emberGlimmerHelpersIfUnless, _emberGlimmerHelpersAction, _emberGlimmerHelpersComponent, _emberGlimmerHelpersConcat, _emberGlimmerHelpersGet, _emberGlimmerHelpersHash, _emberGlimmerHelpersLoc, _emberGlimmerHelpersLog, _emberGlimmerHelpersMut, _emberGlimmerHelpersReadonly, _emberGlimmerHelpersUnbound, _emberGlimmerHelpersClass, _emberGlimmerHelpersInputType, _emberGlimmerHelpersQueryParam, _emberGlimmerHelpersEachIn, _emberGlimmerHelpersNormalizeClass, _emberGlimmerHelpersHtmlSafe, _emberGlimmerProtocolForUrl, _container, _emberGlimmerModifiersAction) {\n  'use strict';\n\n  var Environment = (function (_GlimmerEnvironment) {\n    babelHelpers.inherits(Environment, _GlimmerEnvironment);\n\n    Environment.create = function create(options) {\n      return new Environment(options);\n    };\n\n    function Environment(_ref) {\n      var _this = this;\n\n      var owner = _ref[_emberUtils.OWNER];\n      babelHelpers.classCallCheck(this, Environment);\n\n      _GlimmerEnvironment.apply(this, arguments);\n      this.owner = owner;\n      this.isInteractive = owner.lookup('-environment:main').isInteractive;\n\n      // can be removed once https://github.com/tildeio/glimmer/pull/305 lands\n      this.destroyedComponents = [];\n\n      _emberGlimmerProtocolForUrl.default(this);\n\n      this._definitionCache = new _emberMetal.Cache(2000, function (_ref2) {\n        var name = _ref2.name;\n        var source = _ref2.source;\n        var owner = _ref2.owner;\n\n        var _lookupComponent = _emberViews.lookupComponent(owner, name, { source: source });\n\n        var componentFactory = _lookupComponent.component;\n        var layout = _lookupComponent.layout;\n\n        if (componentFactory || layout) {\n          return new _emberGlimmerSyntaxCurlyComponent.CurlyComponentDefinition(name, componentFactory, layout);\n        }\n      }, function (_ref3) {\n        var name = _ref3.name;\n        var source = _ref3.source;\n        var owner = _ref3.owner;\n\n        var expandedName = source && owner._resolveLocalLookupName(name, source) || name;\n        var ownerGuid = _emberUtils.guidFor(owner);\n\n        return ownerGuid + '|' + expandedName;\n      });\n\n      this._templateCache = new _emberMetal.Cache(1000, function (_ref4) {\n        var Template = _ref4.Template;\n        var owner = _ref4.owner;\n\n        if (Template.create) {\n          var _Template$create;\n\n          // we received a factory\n          return Template.create((_Template$create = { env: _this }, _Template$create[_emberUtils.OWNER] = owner, _Template$create));\n        } else {\n          // we were provided an instance already\n          return Template;\n        }\n      }, function (_ref5) {\n        var Template = _ref5.Template;\n        var owner = _ref5.owner;\n        return _emberUtils.guidFor(owner) + '|' + Template.id;\n      });\n\n      this._compilerCache = new _emberMetal.Cache(10, function (Compiler) {\n        return new _emberMetal.Cache(2000, function (template) {\n          var compilable = new Compiler(template);\n          return _glimmerRuntime.compileLayout(compilable, _this);\n        }, function (template) {\n          var owner = template.meta.owner;\n          return _emberUtils.guidFor(owner) + '|' + template.id;\n        });\n      }, function (Compiler) {\n        return Compiler.id;\n      });\n\n      this.builtInModifiers = {\n        action: new _emberGlimmerModifiersAction.default()\n      };\n\n      this.builtInHelpers = {\n        if: _emberGlimmerHelpersIfUnless.inlineIf,\n        action: _emberGlimmerHelpersAction.default,\n        component: _emberGlimmerHelpersComponent.default,\n        concat: _emberGlimmerHelpersConcat.default,\n        get: _emberGlimmerHelpersGet.default,\n        hash: _emberGlimmerHelpersHash.default,\n        loc: _emberGlimmerHelpersLoc.default,\n        log: _emberGlimmerHelpersLog.default,\n        mut: _emberGlimmerHelpersMut.default,\n        'query-params': _emberGlimmerHelpersQueryParam.default,\n        readonly: _emberGlimmerHelpersReadonly.default,\n        unbound: _emberGlimmerHelpersUnbound.default,\n        unless: _emberGlimmerHelpersIfUnless.inlineUnless,\n        '-class': _emberGlimmerHelpersClass.default,\n        '-each-in': _emberGlimmerHelpersEachIn.default,\n        '-input-type': _emberGlimmerHelpersInputType.default,\n        '-normalize-class': _emberGlimmerHelpersNormalizeClass.default,\n        '-html-safe': _emberGlimmerHelpersHtmlSafe.default,\n        '-get-dynamic-var': _glimmerRuntime.getDynamicVar\n      };\n\n      _emberDebug.runInDebug(function () {\n        return _this.debugStack = new _emberGlimmerUtilsDebugStack.default();\n      });\n    }\n\n    Environment.prototype.macros = function macros() {\n      var macros = _GlimmerEnvironment.prototype.macros.call(this);\n      _emberGlimmerSyntax.populateMacros(macros.blocks, macros.inlines);\n      return macros;\n    };\n\n    Environment.prototype.hasComponentDefinition = function hasComponentDefinition() {\n      return false;\n    };\n\n    Environment.prototype.getComponentDefinition = function getComponentDefinition(path, symbolTable) {\n      var name = path[0];\n      var blockMeta = symbolTable.getMeta();\n      var owner = blockMeta.owner;\n      var source = blockMeta.moduleName && 'template:' + blockMeta.moduleName;\n\n      return this._definitionCache.get({ name: name, source: source, owner: owner });\n    };\n\n    // normally templates should be exported at the proper module name\n    // and cached in the container, but this cache supports templates\n    // that have been set directly on the component's layout property\n\n    Environment.prototype.getTemplate = function getTemplate(Template, owner) {\n      return this._templateCache.get({ Template: Template, owner: owner });\n    };\n\n    // a Compiler can wrap the template so it needs its own cache\n\n    Environment.prototype.getCompiledBlock = function getCompiledBlock(Compiler, template) {\n      var compilerCache = this._compilerCache.get(Compiler);\n      return compilerCache.get(template);\n    };\n\n    Environment.prototype.hasPartial = function hasPartial(name, symbolTable) {\n      var _symbolTable$getMeta = symbolTable.getMeta();\n\n      var owner = _symbolTable$getMeta.owner;\n\n      return _emberViews.hasPartial(name, owner);\n    };\n\n    Environment.prototype.lookupPartial = function lookupPartial(name, symbolTable) {\n      var _symbolTable$getMeta2 = symbolTable.getMeta();\n\n      var owner = _symbolTable$getMeta2.owner;\n\n      var partial = {\n        template: _emberViews.lookupPartial(name, owner)\n      };\n\n      if (partial.template) {\n        return partial;\n      } else {\n        throw new Error(name + ' is not a partial');\n      }\n    };\n\n    Environment.prototype.hasHelper = function hasHelper(name, symbolTable) {\n      if (this.builtInHelpers[name]) {\n        return true;\n      }\n\n      var blockMeta = symbolTable.getMeta();\n      var owner = blockMeta.owner;\n      var options = { source: 'template:' + blockMeta.moduleName };\n\n      return owner.hasRegistration('helper:' + name, options) || owner.hasRegistration('helper:' + name);\n    };\n\n    Environment.prototype.lookupHelper = function lookupHelper(name, symbolTable) {\n      var helper = this.builtInHelpers[name];\n\n      if (helper) {\n        return helper;\n      }\n\n      var blockMeta = symbolTable.getMeta();\n      var owner = blockMeta.owner;\n      var options = blockMeta.moduleName && { source: 'template:' + blockMeta.moduleName } || {};\n\n      if (true) {\n        var _ret = (function () {\n          var helperFactory = owner[_container.FACTORY_FOR]('helper:' + name, options) || owner[_container.FACTORY_FOR]('helper:' + name);\n\n          // TODO: try to unify this into a consistent protocol to avoid wasteful closure allocations\n          if (helperFactory.class.isHelperInstance) {\n            return {\n              v: function (vm, args) {\n                return _emberGlimmerUtilsReferences.SimpleHelperReference.create(helperFactory.class.compute, args);\n              }\n            };\n          } else if (helperFactory.class.isHelperFactory) {\n            if (!true) {\n              helperFactory = helperFactory.create();\n            }\n            return {\n              v: function (vm, args) {\n                return _emberGlimmerUtilsReferences.ClassBasedHelperReference.create(helperFactory, vm, args);\n              }\n            };\n          } else {\n            throw new Error(name + ' is not a helper');\n          }\n        })();\n\n        if (typeof _ret === 'object') return _ret.v;\n      } else {\n        var _ret2 = (function () {\n          var helperFactory = owner.lookup('helper:' + name, options) || owner.lookup('helper:' + name);\n\n          // TODO: try to unify this into a consistent protocol to avoid wasteful closure allocations\n          if (helperFactory.isHelperInstance) {\n            return {\n              v: function (vm, args) {\n                return _emberGlimmerUtilsReferences.SimpleHelperReference.create(helperFactory.compute, args);\n              }\n            };\n          } else if (helperFactory.isHelperFactory) {\n            return {\n              v: function (vm, args) {\n                return _emberGlimmerUtilsReferences.ClassBasedHelperReference.create(helperFactory, vm, args);\n              }\n            };\n          } else {\n            throw new Error(name + ' is not a helper');\n          }\n        })();\n\n        if (typeof _ret2 === 'object') return _ret2.v;\n      }\n    };\n\n    Environment.prototype.hasModifier = function hasModifier(name) {\n      return !!this.builtInModifiers[name];\n    };\n\n    Environment.prototype.lookupModifier = function lookupModifier(name) {\n      var modifier = this.builtInModifiers[name];\n\n      if (modifier) {\n        return modifier;\n      } else {\n        throw new Error(name + ' is not a modifier');\n      }\n    };\n\n    Environment.prototype.toConditionalReference = function toConditionalReference(reference) {\n      return _emberGlimmerUtilsReferences.ConditionalReference.create(reference);\n    };\n\n    Environment.prototype.iterableFor = function iterableFor(ref, args) {\n      var keyPath = args.named.get('key').value();\n      return _emberGlimmerUtilsIterable.default(ref, keyPath);\n    };\n\n    Environment.prototype.scheduleInstallModifier = function scheduleInstallModifier() {\n      if (this.isInteractive) {\n        var _GlimmerEnvironment$prototype$scheduleInstallModifier;\n\n        (_GlimmerEnvironment$prototype$scheduleInstallModifier = _GlimmerEnvironment.prototype.scheduleInstallModifier).call.apply(_GlimmerEnvironment$prototype$scheduleInstallModifier, [this].concat(babelHelpers.slice.call(arguments)));\n      }\n    };\n\n    Environment.prototype.scheduleUpdateModifier = function scheduleUpdateModifier() {\n      if (this.isInteractive) {\n        var _GlimmerEnvironment$prototype$scheduleUpdateModifier;\n\n        (_GlimmerEnvironment$prototype$scheduleUpdateModifier = _GlimmerEnvironment.prototype.scheduleUpdateModifier).call.apply(_GlimmerEnvironment$prototype$scheduleUpdateModifier, [this].concat(babelHelpers.slice.call(arguments)));\n      }\n    };\n\n    Environment.prototype.didDestroy = function didDestroy(destroyable) {\n      destroyable.destroy();\n    };\n\n    Environment.prototype.begin = function begin() {\n      this.inTransaction = true;\n\n      _GlimmerEnvironment.prototype.begin.call(this);\n    };\n\n    Environment.prototype.commit = function commit() {\n      var destroyedComponents = this.destroyedComponents;\n      this.destroyedComponents = [];\n      // components queued for destruction must be destroyed before firing\n      // `didCreate` to prevent errors when removing and adding a component\n      // with the same name (would throw an error when added to view registry)\n      for (var i = 0; i < destroyedComponents.length; i++) {\n        destroyedComponents[i].destroy();\n      }\n\n      _GlimmerEnvironment.prototype.commit.call(this);\n\n      this.inTransaction = false;\n    };\n\n    return Environment;\n  })(_glimmerRuntime.Environment);\n\n  exports.default = Environment;\n\n  _emberDebug.runInDebug(function () {\n    var StyleAttributeManager = (function (_AttributeManager) {\n      babelHelpers.inherits(StyleAttributeManager, _AttributeManager);\n\n      function StyleAttributeManager() {\n        babelHelpers.classCallCheck(this, StyleAttributeManager);\n\n        _AttributeManager.apply(this, arguments);\n      }\n\n      StyleAttributeManager.prototype.setAttribute = function setAttribute(dom, element, value) {\n        var _AttributeManager$prototype$setAttribute;\n\n        _emberDebug.warn(_emberViews.constructStyleDeprecationMessage(value), (function () {\n          if (value === null || value === undefined || _glimmerRuntime.isSafeString(value)) {\n            return true;\n          }\n          return false;\n        })(), { id: 'ember-htmlbars.style-xss-warning' });\n        (_AttributeManager$prototype$setAttribute = _AttributeManager.prototype.setAttribute).call.apply(_AttributeManager$prototype$setAttribute, [this].concat(babelHelpers.slice.call(arguments)));\n      };\n\n      StyleAttributeManager.prototype.updateAttribute = function updateAttribute(dom, element, value) {\n        var _AttributeManager$prototype$updateAttribute;\n\n        _emberDebug.warn(_emberViews.constructStyleDeprecationMessage(value), (function () {\n          if (value === null || value === undefined || _glimmerRuntime.isSafeString(value)) {\n            return true;\n          }\n          return false;\n        })(), { id: 'ember-htmlbars.style-xss-warning' });\n        (_AttributeManager$prototype$updateAttribute = _AttributeManager.prototype.updateAttribute).call.apply(_AttributeManager$prototype$updateAttribute, [this].concat(babelHelpers.slice.call(arguments)));\n      };\n\n      return StyleAttributeManager;\n    })(_glimmerRuntime.AttributeManager);\n\n    var STYLE_ATTRIBUTE_MANANGER = new StyleAttributeManager('style');\n\n    Environment.prototype.attributeFor = function (element, attribute, isTrusting, namespace) {\n      if (attribute === 'style' && !isTrusting) {\n        return STYLE_ATTRIBUTE_MANANGER;\n      }\n\n      return _glimmerRuntime.Environment.prototype.attributeFor.call(this, element, attribute, isTrusting);\n    };\n  });\n});\nenifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@glimmer/reference'], function (exports, _emberUtils, _emberRuntime, _glimmerReference) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  'use strict';\n\n  exports.helper = helper;\n  var RECOMPUTE_TAG = _emberUtils.symbol('RECOMPUTE_TAG');\n\n  exports.RECOMPUTE_TAG = RECOMPUTE_TAG;\n  /**\n    Ember Helpers are functions that can compute values, and are used in templates.\n    For example, this code calls a helper named `format-currency`:\n  \n    ```handlebars\n    <div>{{format-currency cents currency=\"$\"}}</div>\n    ```\n  \n    Additionally a helper can be called as a nested helper (sometimes called a\n    subexpression). In this example, the computed value of a helper is passed\n    to a component named `show-money`:\n  \n    ```handlebars\n    {{show-money amount=(format-currency cents currency=\"$\")}}\n    ```\n  \n    Helpers defined using a class must provide a `compute` function. For example:\n  \n    ```js\n    export default Ember.Helper.extend({\n      compute(params, hash) {\n        let cents = params[0];\n        let currency = hash.currency;\n        return `${currency}${cents * 0.01}`;\n      }\n    });\n    ```\n  \n    Each time the input to a helper changes, the `compute` function will be\n    called again.\n  \n    As instances, these helpers also have access to the container an will accept\n    injected dependencies.\n  \n    Additionally, class helpers can call `recompute` to force a new computation.\n  \n    @class Ember.Helper\n    @public\n    @since 1.13.0\n  */\n  var Helper = _emberRuntime.FrameworkObject.extend({\n    isHelperInstance: true,\n\n    init: function () {\n      this._super.apply(this, arguments);\n      this[RECOMPUTE_TAG] = new _glimmerReference.DirtyableTag();\n    },\n\n    /**\n      On a class-based helper, it may be useful to force a recomputation of that\n      helpers value. This is akin to `rerender` on a component.\n       For example, this component will rerender when the `currentUser` on a\n      session service changes:\n       ```js\n      // app/helpers/current-user-email.js\n      export default Ember.Helper.extend({\n        session: Ember.inject.service(),\n        onNewUser: Ember.observer('session.currentUser', function() {\n          this.recompute();\n        }),\n        compute() {\n          return this.get('session.currentUser.email');\n        }\n      });\n      ```\n       @method recompute\n      @public\n      @since 1.13.0\n    */\n    recompute: function () {\n      this[RECOMPUTE_TAG].dirty();\n    }\n\n    /**\n      Override this function when writing a class-based helper.\n       @method compute\n      @param {Array} params The positional arguments to the helper\n      @param {Object} hash The named arguments to the helper\n      @public\n      @since 1.13.0\n    */\n  });\n\n  Helper.reopenClass({\n    isHelperFactory: true\n  });\n\n  /**\n    In many cases, the ceremony of a full `Ember.Helper` class is not required.\n    The `helper` method create pure-function helpers without instances. For\n    example:\n  \n    ```js\n    // app/helpers/format-currency.js\n    export default Ember.Helper.helper(function(params, hash) {\n      let cents = params[0];\n      let currency = hash.currency;\n      return `${currency}${cents * 0.01}`;\n    });\n    ```\n  \n    @static\n    @param {Function} helper The helper function\n    @method helper\n    @public\n    @since 1.13.0\n  */\n\n  function helper(helperFn) {\n    return {\n      isHelperInstance: true,\n      compute: helperFn\n    };\n  }\n\n  exports.default = Helper;\n});\nenifed('ember-glimmer/helpers/-class', ['exports', 'ember-glimmer/utils/references', 'ember-runtime'], function (exports, _emberGlimmerUtilsReferences, _emberRuntime) {\n  'use strict';\n\n  function classHelper(_ref) {\n    var positional = _ref.positional;\n\n    var path = positional.at(0);\n    var args = positional.length;\n    var value = path.value();\n\n    if (value === true) {\n      if (args > 1) {\n        return _emberRuntime.String.dasherize(positional.at(1).value());\n      }\n      return null;\n    }\n\n    if (value === false) {\n      if (args > 2) {\n        return _emberRuntime.String.dasherize(positional.at(2).value());\n      }\n      return null;\n    }\n\n    return value;\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(classHelper, args);\n  };\n});\nenifed('ember-glimmer/helpers/-html-safe', ['exports', 'ember-glimmer/utils/references', 'ember-glimmer/utils/string'], function (exports, _emberGlimmerUtilsReferences, _emberGlimmerUtilsString) {\n  'use strict';\n\n  function htmlSafe(_ref) {\n    var positional = _ref.positional;\n\n    var path = positional.at(0);\n    return new _emberGlimmerUtilsString.SafeString(path.value());\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(htmlSafe, args);\n  };\n});\nenifed('ember-glimmer/helpers/-input-type', ['exports', 'ember-glimmer/utils/references'], function (exports, _emberGlimmerUtilsReferences) {\n  'use strict';\n\n  function inputTypeHelper(_ref) {\n    var positional = _ref.positional;\n    var named = _ref.named;\n\n    var type = positional.at(0).value();\n    if (type === 'checkbox') {\n      return '-checkbox';\n    }\n    return '-text-field';\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(inputTypeHelper, args);\n  };\n});\nenifed('ember-glimmer/helpers/-normalize-class', ['exports', 'ember-glimmer/utils/references', 'ember-runtime'], function (exports, _emberGlimmerUtilsReferences, _emberRuntime) {\n  'use strict';\n\n  function normalizeClass(_ref) {\n    var positional = _ref.positional;\n    var named = _ref.named;\n\n    var classNameParts = positional.at(0).value().split('.');\n    var className = classNameParts[classNameParts.length - 1];\n    var value = positional.at(1).value();\n\n    if (value === true) {\n      return _emberRuntime.String.dasherize(className);\n    } else if (!value && value !== 0) {\n      return '';\n    } else {\n      return String(value);\n    }\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(normalizeClass, args);\n  };\n});\nenifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal', 'ember-glimmer/utils/references', '@glimmer/runtime', '@glimmer/reference', 'ember-debug'], function (exports, _emberUtils, _emberMetal, _emberGlimmerUtilsReferences, _glimmerRuntime, _glimmerReference, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  var INVOKE = _emberUtils.symbol('INVOKE');\n  exports.INVOKE = INVOKE;\n  var ACTION = _emberUtils.symbol('ACTION');\n\n  exports.ACTION = ACTION;\n  /**\n    The `{{action}}` helper provides a way to pass triggers for behavior (usually\n    just a function) between components, and into components from controllers.\n  \n    ### Passing functions with the action helper\n  \n    There are three contexts an action helper can be used in. The first two\n    contexts to discuss are attribute context, and Handlebars value context.\n  \n    ```handlebars\n    {{! An example of attribute context }}\n    <div onclick={{action \"save\"}}></div>\n    {{! Examples of Handlebars value context }}\n    {{input on-input=(action \"save\")}}\n    {{yield (action \"refreshData\") andAnotherParam}}\n    ```\n  \n    In these contexts,\n    the helper is called a \"closure action\" helper. Its behavior is simple:\n    If passed a function name, read that function off the `actions` property\n    of the current context. Once that function is read (or if a function was\n    passed), create a closure over that function and any arguments.\n    The resulting value of an action helper used this way is simply a function.\n  \n    For example, in the attribute context:\n  \n    ```handlebars\n    {{! An example of attribute context }}\n    <div onclick={{action \"save\"}}></div>\n    ```\n  \n    The resulting template render logic would be:\n  \n    ```js\n    var div = document.createElement('div');\n    var actionFunction = (function(context){\n      return function() {\n        return context.actions.save.apply(context, arguments);\n      };\n    })(context);\n    div.onclick = actionFunction;\n    ```\n  \n    Thus when the div is clicked, the action on that context is called.\n    Because the `actionFunction` is just a function, closure actions can be\n    passed between components and still execute in the correct context.\n  \n    Here is an example action handler on a component:\n  \n    ```js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      actions: {\n        save() {\n          this.get('model').save();\n        }\n      }\n    });\n    ```\n  \n    Actions are always looked up on the `actions` property of the current context.\n    This avoids collisions in the naming of common actions, such as `destroy`.\n    Two options can be passed to the `action` helper when it is used in this way.\n  \n    * `target=someProperty` will look to `someProperty` instead of the current\n      context for the `actions` hash. This can be useful when targetting a\n      service for actions.\n    * `value=\"target.value\"` will read the path `target.value` off the first\n      argument to the action when it is called and rewrite the first argument\n      to be that value. This is useful when attaching actions to event listeners.\n  \n    ### Invoking an action\n  \n    Closure actions curry both their scope and any arguments. When invoked, any\n    additional arguments are added to the already curried list.\n    Actions should be invoked using the [sendAction](/api/classes/Ember.Component.html#method_sendAction)\n    method. The first argument to `sendAction` is the action to be called, and\n    additional arguments are passed to the action function. This has interesting\n    properties combined with currying of arguments. For example:\n  \n    ```js\n    export default Ember.Component.extend({\n      actions: {\n        // Usage {{input on-input=(action (action 'setName' model) value=\"target.value\")}}\n        setName(model, name) {\n          model.set('name', name);\n        }\n      }\n    });\n    ```\n  \n    The first argument (`model`) was curried over, and the run-time argument (`event`)\n    becomes a second argument. Action calls can be nested this way because each simply\n    returns a function. Any function can be passed to the `{{action}}` helper, including\n    other actions.\n  \n    Actions invoked with `sendAction` have the same currying behavior as demonstrated\n    with `on-input` above. For example:\n  \n    ```app/components/my-input.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      actions: {\n        setName(model, name) {\n          model.set('name', name);\n        }\n      }\n    });\n    ```\n  \n    ```handlebars\n    {{my-input submit=(action 'setName' model)}}\n    ```\n  \n    ```app/components/my-component.js\n    import Ember from 'ember';\n  \n    export default Ember.Component.extend({\n      click() {\n        // Note that model is not passed, it was curried in the template\n        this.sendAction('submit', 'bob');\n      }\n    });\n    ```\n  \n    ### Attaching actions to DOM elements\n  \n    The third context of the `{{action}}` helper can be called \"element space\".\n    For example:\n  \n    ```handlebars\n    {{! An example of element space }}\n    <div {{action \"save\"}}></div>\n    ```\n  \n    Used this way, the `{{action}}` helper provides a useful shortcut for\n    registering an HTML element in a template for a single DOM event and\n    forwarding that interaction to the template's context (controller or component).\n    If the context of a template is a controller, actions used this way will\n    bubble to routes when the controller does not implement the specified action.\n    Once an action hits a route, it will bubble through the route hierarchy.\n  \n    ### Event Propagation\n  \n    `{{action}}` helpers called in element space can control event bubbling. Note\n    that the closure style actions cannot.\n  \n    Events triggered through the action helper will automatically have\n    `.preventDefault()` called on them. You do not need to do so in your event\n    handlers. If you need to allow event propagation (to handle file inputs for\n    example) you can supply the `preventDefault=false` option to the `{{action}}` helper:\n  \n    ```handlebars\n    <div {{action \"sayHello\" preventDefault=false}}>\n      <input type=\"file\" />\n      <input type=\"checkbox\" />\n    </div>\n    ```\n  \n    To disable bubbling, pass `bubbles=false` to the helper:\n  \n    ```handlebars\n    <button {{action 'edit' post bubbles=false}}>Edit</button>\n    ```\n  \n    To disable bubbling with closure style actions you must create your own\n    wrapper helper that makes use of `event.stopPropagation()`:\n  \n    ```handlebars\n    <div onclick={{disable-bubbling (action \"sayHello\")}}>Hello</div>\n    ```\n  \n    ```app/helpers/disable-bubbling.js\n    import Ember from 'ember';\n  \n    export function disableBubbling([action]) {\n      return function(event) {\n        event.stopPropagation();\n        return action(event);\n      };\n    }\n    export default Ember.Helper.helper(disableBubbling);\n    ```\n  \n    If you need the default handler to trigger you should either register your\n    own event handler, or use event methods on your view class. See\n    [\"Responding to Browser Events\"](/api/classes/Ember.View.html#toc_responding-to-browser-events)\n    in the documentation for Ember.View for more information.\n  \n    ### Specifying DOM event type\n  \n    `{{action}}` helpers called in element space can specify an event type.\n    By default the `{{action}}` helper registers for DOM `click` events. You can\n    supply an `on` option to the helper to specify a different DOM event name:\n  \n    ```handlebars\n    <div {{action \"anActionName\" on=\"doubleClick\"}}>\n      click me\n    </div>\n    ```\n  \n    See [\"Event Names\"](/api/classes/Ember.View.html#toc_event-names) for a list of\n    acceptable DOM event names.\n  \n    ### Specifying whitelisted modifier keys\n  \n    `{{action}}` helpers called in element space can specify modifier keys.\n    By default the `{{action}}` helper will ignore click events with pressed modifier\n    keys. You can supply an `allowedKeys` option to specify which keys should not be ignored.\n  \n    ```handlebars\n    <div {{action \"anActionName\" allowedKeys=\"alt\"}}>\n      click me\n    </div>\n    ```\n  \n    This way the action will fire when clicking with the alt key pressed down.\n    Alternatively, supply \"any\" to the `allowedKeys` option to accept any combination of modifier keys.\n  \n    ```handlebars\n    <div {{action \"anActionName\" allowedKeys=\"any\"}}>\n      click me with any key pressed\n    </div>\n    ```\n  \n    ### Specifying a Target\n  \n    A `target` option can be provided to the helper to change\n    which object will receive the method call. This option must be a path\n    to an object, accessible in the current context:\n  \n    ```app/templates/application.hbs\n    <div {{action \"anActionName\" target=someService}}>\n      click me\n    </div>\n    ```\n  \n    ```app/controllers/application.js\n    import Ember from 'ember';\n  \n    export default Ember.Controller.extend({\n      someService: Ember.inject.service()\n    });\n    ```\n  \n    @method action\n    @for Ember.Templates.helpers\n    @public\n  */\n\n  exports.default = function (vm, args) {\n    var named = args.named;\n    var positional = args.positional;\n\n    // The first two argument slots are reserved.\n    // pos[0] is the context (or `this`)\n    // pos[1] is the action name or function\n    // Anything else is an action argument.\n    var context = positional.at(0);\n    var action = positional.at(1);\n\n    // TODO: Is there a better way of doing this?\n    var debugKey = action._propertyKey;\n\n    var restArgs = undefined;\n\n    if (positional.length === 2) {\n      restArgs = _glimmerRuntime.EvaluatedPositionalArgs.empty();\n    } else {\n      restArgs = _glimmerRuntime.EvaluatedPositionalArgs.create(positional.values.slice(2));\n    }\n\n    var target = named.has('target') ? named.get('target') : context;\n    var processArgs = makeArgsProcessor(named.has('value') && named.get('value'), restArgs);\n\n    var fn = undefined;\n\n    if (typeof action[INVOKE] === 'function') {\n      fn = makeClosureAction(action, action, action[INVOKE], processArgs, debugKey);\n    } else if (_glimmerReference.isConst(target) && _glimmerReference.isConst(action)) {\n      fn = makeClosureAction(context.value(), target.value(), action.value(), processArgs, debugKey);\n    } else {\n      fn = makeDynamicClosureAction(context.value(), target, action, processArgs, debugKey);\n    }\n\n    fn[ACTION] = true;\n\n    return new _emberGlimmerUtilsReferences.UnboundReference(fn);\n  };\n\n  function NOOP(args) {\n    return args;\n  }\n\n  function makeArgsProcessor(valuePathRef, actionArgsRef) {\n    var mergeArgs = null;\n\n    if (actionArgsRef.length > 0) {\n      mergeArgs = function (args) {\n        return actionArgsRef.value().concat(args);\n      };\n    }\n\n    var readValue = null;\n\n    if (valuePathRef) {\n      readValue = function (args) {\n        var valuePath = valuePathRef.value();\n\n        if (valuePath && args.length > 0) {\n          args[0] = _emberMetal.get(args[0], valuePath);\n        }\n\n        return args;\n      };\n    }\n\n    if (mergeArgs && readValue) {\n      return function (args) {\n        return readValue(mergeArgs(args));\n      };\n    } else {\n      return mergeArgs || readValue || NOOP;\n    }\n  }\n\n  function makeDynamicClosureAction(context, targetRef, actionRef, processArgs, debugKey) {\n    // We don't allow undefined/null values, so this creates a throw-away action to trigger the assertions\n    _emberDebug.runInDebug(function () {\n      makeClosureAction(context, targetRef.value(), actionRef.value(), processArgs, debugKey);\n    });\n\n    return function () {\n      return makeClosureAction(context, targetRef.value(), actionRef.value(), processArgs, debugKey).apply(undefined, arguments);\n    };\n  }\n\n  function makeClosureAction(context, target, action, processArgs, debugKey) {\n    var self = undefined,\n        fn = undefined;\n\n    _emberDebug.assert('Action passed is null or undefined in (action) from ' + target + '.', !_emberMetal.isNone(action));\n\n    if (typeof action[INVOKE] === 'function') {\n      self = action;\n      fn = action[INVOKE];\n    } else {\n      var typeofAction = typeof action;\n\n      if (typeofAction === 'string') {\n        self = target;\n        fn = target.actions && target.actions[action];\n\n        _emberDebug.assert('An action named \\'' + action + '\\' was not found in ' + target, fn);\n      } else if (typeofAction === 'function') {\n        self = context;\n        fn = action;\n      } else {\n        _emberDebug.assert('An action could not be made for `' + (debugKey || action) + '` in ' + target + '. Please confirm that you are using either a quoted action name (i.e. `(action \\'' + (debugKey || 'myAction') + '\\')`) or a function available in ' + target + '.', false);\n      }\n    }\n\n    return function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      var payload = { target: self, args: args, label: '@glimmer/closure-action' };\n      return _emberMetal.flaggedInstrument('interaction.ember-action', payload, function () {\n        return _emberMetal.run.join.apply(_emberMetal.run, [self, fn].concat(processArgs(args)));\n      });\n    };\n  }\n});\nenifed('ember-glimmer/helpers/component', ['exports', 'ember-utils', 'ember-glimmer/utils/references', 'ember-glimmer/syntax/curly-component', '@glimmer/runtime', 'ember-debug'], function (exports, _emberUtils, _emberGlimmerUtilsReferences, _emberGlimmerSyntaxCurlyComponent, _glimmerRuntime, _emberDebug) {\n  /**\n    @module ember\n    @submodule ember-glimmer\n  */\n  'use strict';\n\n  /**\n    The `{{component}}` helper lets you add instances of `Ember.Component` to a\n    template. See [Ember.Component](/api/classes/Ember.Component.html) for\n    additional information on how a `Component` functions.\n    `{{component}}`'s primary use is for cases where you want to dynamically\n    change which type of component is rendered as the state of your application\n    changes. This helper has three modes: inline, block, and nested.\n  \n    ### Inline Form\n  \n    Given the following template:\n  \n    ```app/application.hbs\n    {{component infographicComponentName}}\n    ```\n  \n    And the following application code:\n  \n    ```app/controllers/application.js\n    export default Ember.Controller.extend({\n      infographicComponentName: computed('isMarketOpen', {\n        get() {\n          if (this.get('isMarketOpen')) {\n            return 'live-updating-chart';\n          } else {\n            return 'market-close-summary';\n          }\n        }\n      })\n    });\n    ```\n  \n    The `live-updating-chart` component will be appended when `isMarketOpen` is\n    `true`, and the `market-close-summary` component will be appended when\n    `isMarketOpen` is `false`. If the value changes while the app is running,\n    the component will be automatically swapped out accordingly.\n    Note: You should not use this helper when you are consistently rendering the same\n    component. In that case, use standard component syntax, for example:\n  \n    ```app/templates/application.hbs\n    {{live-updating-chart}}\n    ```\n  \n    ### Block Form\n  \n    Using the block form of this helper is similar to using the block form\n    of a component. Given the following application template:\n  \n    ```app/templates/application.hbs\n    {{#component infographicComponentName}}\n      Last update: {{lastUpdateTimestamp}}\n    {{/component}}\n    ```\n  \n    The following controller code:\n  \n    ```app/controllers/application.js\n    export default Ember.Controller.extend({\n      lastUpdateTimestamp: computed(function() {\n        return new Date();\n      }),\n  \n      infographicComponentName: computed('isMarketOpen', {\n        get() {\n          if (this.get('isMarketOpen')) {\n            return 'live-updating-chart';\n          } else {\n            return 'market-close-summary';\n          }\n        }\n      })\n    });\n    ```\n  \n    And the following component template:\n  \n    ```app/templates/components/live-updating-chart.hbs\n    {{! chart }}\n    {{yield}}\n    ```\n  \n    The `Last Update: {{lastUpdateTimestamp}}` will be rendered in place of the `{{yield}}`.\n  \n    ### Nested Usage\n  \n    The `component` helper can be used to package a component path with initial attrs.\n    The included attrs can then be merged during the final invocation.\n    For example, given a `person-form` component with the following template:\n  \n    ```app/templates/components/person-form.hbs\n    {{yield (hash\n      nameInput=(component \"my-input-component\" value=model.name placeholder=\"First Name\")\n    )}}\n    ```\n  \n    When yielding the component via the `hash` helper, the component is invoked directly.\n    See the following snippet:\n  \n    ```\n    {{#person-form as |form|}}\n      {{form.nameInput placeholder=\"Username\"}}\n    {{/person-form}}\n    ```\n  \n    Which outputs an input whose value is already bound to `model.name` and `placeholder`\n    is \"Username\".\n  \n    When yielding the component without the hash helper use the `component` helper.\n    For example, below is a `full-name` component template:\n  \n    ```handlebars\n    {{yield (component \"my-input-component\" value=model.name placeholder=\"Name\")}}\n    ```\n  \n    ```\n    {{#full-name as |field|}}\n      {{component field placeholder=\"Full name\"}}\n    {{/full-name}}\n    ```\n  \n    @method component\n    @since 1.11.0\n    @for Ember.Templates.helpers\n    @public\n  */\n\n  var ClosureComponentReference = (function (_CachedReference) {\n    babelHelpers.inherits(ClosureComponentReference, _CachedReference);\n\n    ClosureComponentReference.create = function create(args, symbolTable, env) {\n      return new ClosureComponentReference(args, symbolTable, env);\n    };\n\n    function ClosureComponentReference(args, symbolTable, env) {\n      babelHelpers.classCallCheck(this, ClosureComponentReference);\n\n      _CachedReference.call(this);\n\n      var firstArg = args.positional.at(0);\n      this.defRef = firstArg;\n      this.tag = firstArg.tag;\n      this.env = env;\n      this.symbolTable = symbolTable;\n      this.args = args;\n      this.lastDefinition = undefined;\n      this.lastName = undefined;\n    }\n\n    ClosureComponentReference.prototype.compute = function compute() {\n      // TODO: Figure out how to extract this because it's nearly identical to\n      // DynamicComponentReference::compute(). The only differences besides\n      // currying are in the assertion messages.\n      var args = this.args;\n      var defRef = this.defRef;\n      var env = this.env;\n      var symbolTable = this.symbolTable;\n      var lastDefinition = this.lastDefinition;\n      var lastName = this.lastName;\n\n      var nameOrDef = defRef.value();\n      var definition = null;\n\n      if (nameOrDef && nameOrDef === lastName) {\n        return lastDefinition;\n      }\n\n      this.lastName = nameOrDef;\n\n      if (typeof nameOrDef === 'string') {\n        _emberDebug.assert('You cannot use the input helper as a contextual helper. Please extend Ember.TextField or Ember.Checkbox to use it as a contextual component.', nameOrDef !== 'input');\n        _emberDebug.assert('You cannot use the textarea helper as a contextual helper. Please extend Ember.TextArea to use it as a contextual component.', nameOrDef !== 'textarea');\n        definition = env.getComponentDefinition([nameOrDef], symbolTable);\n        _emberDebug.assert('The component helper cannot be used without a valid component name. You used \"' + nameOrDef + '\" via (component \"' + nameOrDef + '\")', definition);\n      } else if (_glimmerRuntime.isComponentDefinition(nameOrDef)) {\n        definition = nameOrDef;\n      } else {\n        _emberDebug.assert('You cannot create a component from ' + nameOrDef + ' using the {{component}} helper', nameOrDef);\n        return null;\n      }\n\n      var newDef = createCurriedDefinition(definition, args);\n\n      this.lastDefinition = newDef;\n\n      return newDef;\n    };\n\n    return ClosureComponentReference;\n  })(_emberGlimmerUtilsReferences.CachedReference);\n\n  exports.ClosureComponentReference = ClosureComponentReference;\n\n  function createCurriedDefinition(definition, args) {\n    var curriedArgs = curryArgs(definition, args);\n\n    return new _emberGlimmerSyntaxCurlyComponent.CurlyComponentDefinition(definition.name, definition.ComponentClass, definition.template, curriedArgs);\n  }\n\n  var EMPTY_BLOCKS = {\n    default: null,\n    inverse: null\n  };\n\n  _emberDebug.runInDebug(function () {\n    EMPTY_BLOCKS = Object.freeze(EMPTY_BLOCKS);\n  });\n\n  function curryArgs(definition, newArgs) {\n    var args = definition.args;\n    var ComponentClass = definition.ComponentClass;\n\n    var positionalParams = ComponentClass.class.positionalParams;\n\n    // The args being passed in are from the (component ...) invocation,\n    // so the first positional argument is actually the name or component\n    // definition. It needs to be dropped in order for any actual positional\n    // args to coincide with the ComponentClass's positionParams.\n\n    // For \"normal\" curly components this slicing is done at the syntax layer,\n    // but we don't have that luxury here.\n\n    var _newArgs$positional$values = newArgs.positional.values;\n\n    var slicedPositionalArgs = _newArgs$positional$values.slice(1);\n\n    if (positionalParams && slicedPositionalArgs.length) {\n      _emberGlimmerSyntaxCurlyComponent.validatePositionalParameters(newArgs.named, slicedPositionalArgs, positionalParams);\n    }\n\n    var isRest = typeof positionalParams === 'string';\n\n    // For non-rest position params, we need to perform the position -> name mapping\n    // at each layer to avoid a collision later when the args are used to construct\n    // the component instance (inside of processArgs(), inside of create()).\n    var positionalToNamedParams = {};\n\n    if (!isRest && positionalParams && positionalParams.length > 0) {\n      var limit = Math.min(positionalParams.length, slicedPositionalArgs.length);\n\n      for (var i = 0; i < limit; i++) {\n        var _name = positionalParams[i];\n        positionalToNamedParams[_name] = slicedPositionalArgs[i];\n      }\n\n      slicedPositionalArgs.length = 0; // Throw them away since you're merged in.\n    }\n\n    // args (aka 'oldArgs') may be undefined or simply be empty args, so\n    // we need to fall back to an empty array or object.\n    var oldNamed = args && args.named && args.named.map || {};\n    var oldPositional = args && args.positional && args.positional.values || [];\n\n    // Merge positional arrays\n    var mergedPositional = new Array(Math.max(oldPositional.length, slicedPositionalArgs.length));\n    mergedPositional.splice.apply(mergedPositional, [0, oldPositional.length].concat(oldPositional));\n    mergedPositional.splice.apply(mergedPositional, [0, slicedPositionalArgs.length].concat(slicedPositionalArgs));\n\n    // Merge named maps\n    var mergedNamed = _emberUtils.assign({}, oldNamed, positionalToNamedParams, newArgs.named.map);\n\n    var mergedArgs = _glimmerRuntime.EvaluatedArgs.create(_glimmerRuntime.EvaluatedPositionalArgs.create(mergedPositional), _glimmerRuntime.EvaluatedNamedArgs.create(mergedNamed), EMPTY_BLOCKS);\n\n    return mergedArgs;\n  }\n\n  exports.default = function (vm, args, symbolTable) {\n    return ClosureComponentReference.create(args, symbolTable, vm.env);\n  };\n});\nenifed('ember-glimmer/helpers/concat', ['exports', 'ember-glimmer/utils/references', '@glimmer/runtime'], function (exports, _emberGlimmerUtilsReferences, _glimmerRuntime) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  /**\n    Concatenates the given arguments into a string.\n  \n    Example:\n  \n    ```handlebars\n    {{some-component name=(concat firstName \" \" lastName)}}\n  \n    {{! would pass name=\"<first name value> <last name value>\" to the component}}\n    ```\n  \n    @public\n    @method concat\n    @for Ember.Templates.helpers\n    @since 1.13.0\n  */\n  function concat(_ref) {\n    var positional = _ref.positional;\n\n    return positional.value().map(_glimmerRuntime.normalizeTextValue).join('');\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(concat, args);\n  };\n});\nenifed('ember-glimmer/helpers/each-in', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.isEachIn = isEachIn;\n\n  /**\n    The `{{#each}}` helper loops over elements in a collection. It is an extension\n    of the base Handlebars `{{#each}}` helper.\n    The default behavior of `{{#each}}` is to yield its inner block once for every\n    item in an array passing the item as the first block parameter.\n  \n    ```javascript\n    var developers = [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }];\n    ```\n  \n    ```handlebars\n    {{#each developers key=\"name\" as |person|}}\n      {{person.name}}\n      {{! `this` is whatever it was outside the #each }}\n    {{/each}}\n    ```\n  \n    The same rules apply to arrays of primitives.\n  \n    ```javascript\n    var developerNames = ['Yehuda', 'Tom', 'Paul']\n    ```\n  \n    ```handlebars\n    {{#each developerNames key=\"@index\" as |name|}}\n      {{name}}\n    {{/each}}\n    ```\n  \n    During iteration, the index of each item in the array is provided as a second block parameter.\n  \n    ```handlebars\n    <ul>\n      {{#each people as |person index|}}\n        <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n      {{/each}}\n    </ul>\n    ```\n  \n    ### Specifying Keys\n  \n    The `key` option is used to tell Ember how to determine if the array being\n    iterated over with `{{#each}}` has changed between renders. By helping Ember\n    detect that some elements in the array are the same, DOM elements can be\n    re-used, significantly improving rendering speed.\n  \n    For example, here's the `{{#each}}` helper with its `key` set to `id`:\n  \n    ```handlebars\n    {{#each model key=\"id\" as |item|}}\n    {{/each}}\n    ```\n  \n    When this `{{#each}}` re-renders, Ember will match up the previously rendered\n    items (and reorder the generated DOM elements) based on each item's `id`\n    property.\n    By default the item's own reference is used.\n  \n    ### {{else}} condition\n  \n    `{{#each}}` can have a matching `{{else}}`. The contents of this block will render\n    if the collection is empty.\n  \n    ```handlebars\n    {{#each developers as |person|}}\n      {{person.name}}\n    {{else}}\n      <p>Sorry, nobody is available for this task.</p>\n    {{/each}}\n    ```\n  \n    @method each\n    @for Ember.Templates.helpers\n    @public\n   */\n\n  /**\n    The `{{each-in}}` helper loops over properties on an object.\n  \n    For example, given a `user` object that looks like:\n  \n    ```javascript\n    {\n      \"name\": \"Shelly Sails\",\n      \"age\": 42\n    }\n    ```\n  \n    This template would display all properties on the `user`\n    object in a list:\n  \n    ```handlebars\n    <ul>\n    {{#each-in user as |key value|}}\n      <li>{{key}}: {{value}}</li>\n    {{/each-in}}\n    </ul>\n    ```\n  \n    Outputting their name and age.\n  \n    @method each-in\n    @for Ember.Templates.helpers\n    @public\n    @since 2.1.0\n  */\n  var EACH_IN_REFERENCE = _emberUtils.symbol('EACH_IN');\n\n  function isEachIn(ref) {\n    return ref && ref[EACH_IN_REFERENCE];\n  }\n\n  exports.default = function (vm, args) {\n    var ref = Object.create(args.positional.at(0));\n    ref[EACH_IN_REFERENCE] = true;\n    return ref;\n  };\n});\nenifed('ember-glimmer/helpers/get', ['exports', 'ember-metal', 'ember-glimmer/utils/references', '@glimmer/reference'], function (exports, _emberMetal, _emberGlimmerUtilsReferences, _glimmerReference) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  /**\n    Dynamically look up a property on an object. The second argument to `{{get}}`\n    should have a string value, although it can be bound.\n  \n    For example, these two usages are equivilent:\n  \n    ```handlebars\n    {{person.height}}\n    {{get person \"height\"}}\n    ```\n  \n    If there were several facts about a person, the `{{get}}` helper can dynamically\n    pick one:\n  \n    ```handlebars\n    {{get person factName}}\n    ```\n  \n    For a more complex example, this template would allow the user to switch\n    between showing the user's height and weight with a click:\n  \n    ```handlebars\n    {{get person factName}}\n    <button {{action (action (mut factName)) \"height\"}}>Show height</button>\n    <button {{action (action (mut factName)) \"weight\"}}>Show weight</button>\n    ```\n  \n    The `{{get}}` helper can also respect mutable values itself. For example:\n  \n    ```handlebars\n    {{input value=(mut (get person factName)) type=\"text\"}}\n    <button {{action (action (mut factName)) \"height\"}}>Show height</button>\n    <button {{action (action (mut factName)) \"weight\"}}>Show weight</button>\n    ```\n  \n    Would allow the user to swap what fact is being displayed, and also edit\n    that fact via a two-way mutable binding.\n  \n    @public\n    @method get\n    @for Ember.Templates.helpers\n    @since 2.1.0\n   */\n\n  exports.default = function (vm, args) {\n    return GetHelperReference.create(args.positional.at(0), args.positional.at(1));\n  };\n\n  var GetHelperReference = (function (_CachedReference) {\n    babelHelpers.inherits(GetHelperReference, _CachedReference);\n\n    GetHelperReference.create = function create(sourceReference, pathReference) {\n      if (_glimmerReference.isConst(pathReference)) {\n        var parts = pathReference.value().split('.');\n        return _glimmerReference.referenceFromParts(sourceReference, parts);\n      } else {\n        return new GetHelperReference(sourceReference, pathReference);\n      }\n    };\n\n    function GetHelperReference(sourceReference, pathReference) {\n      babelHelpers.classCallCheck(this, GetHelperReference);\n\n      _CachedReference.call(this);\n      this.sourceReference = sourceReference;\n      this.pathReference = pathReference;\n\n      this.lastPath = null;\n      this.innerReference = null;\n\n      var innerTag = this.innerTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);\n\n      this.tag = _glimmerReference.combine([sourceReference.tag, pathReference.tag, innerTag]);\n    }\n\n    GetHelperReference.prototype.compute = function compute() {\n      var lastPath = this.lastPath;\n      var innerReference = this.innerReference;\n      var innerTag = this.innerTag;\n\n      var path = this.lastPath = this.pathReference.value();\n\n      if (path !== lastPath) {\n        if (path) {\n          var pathType = typeof path;\n\n          if (pathType === 'string') {\n            innerReference = this.innerReference = _glimmerReference.referenceFromParts(this.sourceReference, path.split('.'));\n          } else if (pathType === 'number') {\n            innerReference = this.innerReference = this.sourceReference.get(path);\n          }\n\n          innerTag.update(innerReference.tag);\n        } else {\n          innerReference = this.innerReference = null;\n          innerTag.update(_glimmerReference.CONSTANT_TAG);\n        }\n      }\n\n      return innerReference ? innerReference.value() : null;\n    };\n\n    GetHelperReference.prototype[_emberGlimmerUtilsReferences.UPDATE] = function (value) {\n      _emberMetal.set(this.sourceReference.value(), this.pathReference.value(), value);\n    };\n\n    return GetHelperReference;\n  })(_emberGlimmerUtilsReferences.CachedReference);\n});\nenifed(\"ember-glimmer/helpers/hash\", [\"exports\"], function (exports) {\n   /**\n   @module ember\n   @submodule ember-glimmer\n   */\n\n   /**\n      Use the `{{hash}}` helper to create a hash to pass as an option to your\n      components. This is specially useful for contextual components where you can\n      just yield a hash:\n   \n      ```handlebars\n      {{yield (hash\n         name='Sarah'\n         title=office\n      )}}\n      ```\n   \n      Would result in an object such as:\n   \n      ```js\n      { name: 'Sarah', title: this.get('office') }\n      ```\n   \n      Where the `title` is bound to updates of the `office` property.\n   \n      @method hash\n      @for Ember.Templates.helpers\n      @param {Object} options\n      @return {Object} Hash\n      @since 2.3.0\n      @public\n    */\n\n   \"use strict\";\n\n   exports.default = function (vm, args) {\n      return args.named;\n   };\n});\nenifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glimmer/utils/references', '@glimmer/reference'], function (exports, _emberDebug, _emberGlimmerUtilsReferences, _glimmerReference) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  'use strict';\n\n  exports.inlineIf = inlineIf;\n  exports.inlineUnless = inlineUnless;\n\n  /**\n    Use the `if` block helper to conditionally render a block depending on a\n    property. If the property is \"falsey\", for example: `false`, `undefined`,\n    `null`, `\"\"`, `0`, `NaN` or an empty array, the block will not be rendered.\n  \n    ```handlebars\n    {{! will not render if foo is falsey}}\n    {{#if foo}}\n      Welcome to the {{foo.bar}}\n    {{/if}}\n    ```\n  \n    You can also specify a template to show if the property is falsey by using\n    the `else` helper.\n  \n    ```handlebars\n    {{! is it raining outside?}}\n    {{#if isRaining}}\n      Yes, grab an umbrella!\n    {{else}}\n      No, it's lovely outside!\n    {{/if}}\n    ```\n  \n    You are also able to combine `else` and `if` helpers to create more complex\n    conditional logic.\n  \n    ```handlebars\n    {{#if isMorning}}\n      Good morning\n    {{else if isAfternoon}}\n      Good afternoon\n    {{else}}\n      Good night\n    {{/if}}\n    ```\n  \n    You can use `if` inline to conditionally render a single property or string.\n    This helper acts like a ternary operator. If the first property is truthy,\n    the second argument will be displayed, if not, the third argument will be\n    displayed\n  \n    ```handlebars\n    {{if useLongGreeting \"Hello\" \"Hi\"}} Dave\n    ```\n  \n    Finally, you can use the `if` helper inside another helper as a subexpression.\n  \n    ```handlebars\n    {{some-component height=(if isBig \"100\" \"10\")}}\n    ```\n  \n    @method if\n    @for Ember.Templates.helpers\n    @public\n  */\n\n  var ConditionalHelperReference = (function (_CachedReference) {\n    babelHelpers.inherits(ConditionalHelperReference, _CachedReference);\n\n    ConditionalHelperReference.create = function create(_condRef, _truthyRef, _falsyRef) {\n      var condRef = _emberGlimmerUtilsReferences.ConditionalReference.create(_condRef);\n      var truthyRef = _truthyRef || _emberGlimmerUtilsReferences.UNDEFINED_REFERENCE;\n      var falsyRef = _falsyRef || _emberGlimmerUtilsReferences.UNDEFINED_REFERENCE;\n\n      if (_glimmerReference.isConst(condRef)) {\n        return condRef.value() ? truthyRef : falsyRef;\n      } else {\n        return new ConditionalHelperReference(condRef, truthyRef, falsyRef);\n      }\n    };\n\n    function ConditionalHelperReference(cond, truthy, falsy) {\n      babelHelpers.classCallCheck(this, ConditionalHelperReference);\n\n      _CachedReference.call(this);\n\n      this.branchTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);\n      this.tag = _glimmerReference.combine([cond.tag, this.branchTag]);\n\n      this.cond = cond;\n      this.truthy = truthy;\n      this.falsy = falsy;\n    }\n\n    /**\n      The inline `if` helper conditionally renders a single property or string.\n      This helper acts like a ternary operator. If the first property is truthy,\n      the second argument will be displayed, otherwise, the third argument will be\n      displayed\n    \n      ```handlebars\n      {{if useLongGreeting \"Hello\" \"Hi\"}} Alex\n      ```\n    \n      You can use the `if` helper inside another helper as a subexpression.\n    \n      ```handlebars\n      {{some-component height=(if isBig \"100\" \"10\")}}\n      ```\n    \n      @method if\n      @for Ember.Templates.helpers\n      @public\n    */\n\n    ConditionalHelperReference.prototype.compute = function compute() {\n      var cond = this.cond;\n      var truthy = this.truthy;\n      var falsy = this.falsy;\n\n      var branch = cond.value() ? truthy : falsy;\n\n      this.branchTag.update(branch.tag);\n\n      return branch.value();\n    };\n\n    return ConditionalHelperReference;\n  })(_emberGlimmerUtilsReferences.CachedReference);\n\n  function inlineIf(vm, _ref) {\n    var positional = _ref.positional;\n\n    switch (positional.length) {\n      case 2:\n        return ConditionalHelperReference.create(positional.at(0), positional.at(1), null);\n      case 3:\n        return ConditionalHelperReference.create(positional.at(0), positional.at(1), positional.at(2));\n      default:\n        _emberDebug.assert('The inline form of the `if` helper expects two or three arguments, e.g. ' + '`{{if trialExpired \"Expired\" expiryDate}}`.');\n    }\n  }\n\n  /**\n    The inline `unless` helper conditionally renders a single property or string.\n    This helper acts like a ternary operator. If the first property is falsy,\n    the second argument will be displayed, otherwise, the third argument will be\n    displayed\n  \n    ```handlebars\n    {{unless useLongGreeting \"Hi\" \"Hello\"}} Ben\n    ```\n  \n    You can use the `unless` helper inside another helper as a subexpression.\n  \n    ```handlebars\n    {{some-component height=(unless isBig \"10\" \"100\")}}\n    ```\n  \n    @method unless\n    @for Ember.Templates.helpers\n    @public\n  */\n\n  function inlineUnless(vm, _ref2) {\n    var positional = _ref2.positional;\n\n    switch (positional.length) {\n      case 2:\n        return ConditionalHelperReference.create(positional.at(0), null, positional.at(1));\n      case 3:\n        return ConditionalHelperReference.create(positional.at(0), positional.at(2), positional.at(1));\n      default:\n        _emberDebug.assert('The inline form of the `unless` helper expects two or three arguments, e.g. ' + '`{{unless isFirstLogin \"Welcome back!\"}}`.');\n    }\n  }\n});\nenifed('ember-glimmer/helpers/loc', ['exports', 'ember-glimmer/utils/references', 'ember-runtime'], function (exports, _emberGlimmerUtilsReferences, _emberRuntime) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  /**\n    Calls [Ember.String.loc](/api/classes/Ember.String.html#method_loc) with the\n    provided string. This is a convenient way to localize text within a template.\n    For example:\n  \n    ```javascript\n    Ember.STRINGS = {\n      '_welcome_': 'Bonjour'\n    };\n    ```\n  \n    ```handlebars\n    <div class='message'>\n      {{loc '_welcome_'}}\n    </div>\n    ```\n  \n    ```html\n    <div class='message'>\n      Bonjour\n    </div>\n    ```\n  \n    See [Ember.String.loc](/api/classes/Ember.String.html#method_loc) for how to\n    set up localized string references.\n  \n    @method loc\n    @for Ember.Templates.helpers\n    @param {String} str The string to format.\n    @see {Ember.String#loc}\n    @public\n  */\n  function locHelper(_ref) {\n    var positional = _ref.positional;\n\n    return _emberRuntime.String.loc.apply(null, positional.value());\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(locHelper, args);\n  };\n});\nenifed('ember-glimmer/helpers/log', ['exports', 'ember-glimmer/utils/references', 'ember-console'], function (exports, _emberGlimmerUtilsReferences, _emberConsole) {\n  'use strict';\n\n  /**\n    `log` allows you to output the value of variables in the current rendering\n    context. `log` also accepts primitive types such as strings or numbers.\n  \n    ```handlebars\n    {{log \"myVariable:\" myVariable }}\n    ```\n  \n    @method log\n    @for Ember.Templates.helpers\n    @param {Array} params\n    @public\n  */\n  function log(_ref) {\n    var positional = _ref.positional;\n\n    _emberConsole.default.log.apply(null, positional.value());\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(log, args);\n  };\n});\n\n/**\n@module ember\n@submodule ember-glimmer\n*/\nenifed('ember-glimmer/helpers/mut', ['exports', 'ember-utils', 'ember-debug', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/action'], function (exports, _emberUtils, _emberDebug, _emberGlimmerUtilsReferences, _emberGlimmerHelpersAction) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.isMut = isMut;\n  exports.unMut = unMut;\n\n  /**\n    The `mut` helper lets you __clearly specify__ that a child `Component` can update the\n    (mutable) value passed to it, which will __change the value of the parent component__.\n  \n    To specify that a parameter is mutable, when invoking the child `Component`:\n  \n    ```handlebars\n    {{my-child childClickCount=(mut totalClicks)}}\n    ```\n  \n    The child `Component` can then modify the parent's value just by modifying its own\n    property:\n  \n    ```javascript\n    // my-child.js\n    export default Component.extend({\n      click() {\n        this.incrementProperty('childClickCount');\n      }\n    });\n    ```\n  \n    Note that for curly components (`{{my-component}}`) the bindings are already mutable,\n    making the `mut` unnecessary.\n  \n    Additionally, the `mut` helper can be combined with the `action` helper to\n    mutate a value. For example:\n  \n    ```handlebars\n    {{my-child childClickCount=totalClicks click-count-change=(action (mut totalClicks))}}\n    ```\n  \n    The child `Component` would invoke the action with the new click value:\n  \n    ```javascript\n    // my-child.js\n    export default Component.extend({\n      click() {\n        this.get('click-count-change')(this.get('childClickCount') + 1);\n      }\n    });\n    ```\n  \n    The `mut` helper changes the `totalClicks` value to what was provided as the action argument.\n  \n    The `mut` helper, when used with `action`, will return a function that\n    sets the value passed to `mut` to its first argument. This works like any other\n    closure action and interacts with the other features `action` provides.\n    As an example, we can create a button that increments a value passing the value\n    directly to the `action`:\n  \n    ```handlebars\n    {{! inc helper is not provided by Ember }}\n    <button onclick={{action (mut count) (inc count)}}>\n      Increment count\n    </button>\n    ```\n  \n    You can also use the `value` option:\n  \n    ```handlebars\n    <input value={{name}} oninput={{action (mut name) value=\"target.value\"}}>\n    ```\n  \n    @method mut\n    @param {Object} [attr] the \"two-way\" attribute that can be modified.\n    @for Ember.Templates.helpers\n    @public\n  */\n  var MUT_REFERENCE = _emberUtils.symbol('MUT');\n  var SOURCE = _emberUtils.symbol('SOURCE');\n\n  function isMut(ref) {\n    return ref && ref[MUT_REFERENCE];\n  }\n\n  function unMut(ref) {\n    return ref[SOURCE] || ref;\n  }\n\n  exports.default = function (vm, args) {\n    var rawRef = args.positional.at(0);\n\n    if (isMut(rawRef)) {\n      return rawRef;\n    }\n\n    // TODO: Improve this error message. This covers at least two distinct\n    // cases:\n    //\n    // 1. (mut \"not a path\") – passing a literal, result from a helper\n    //    invocation, etc\n    //\n    // 2. (mut receivedValue) – passing a value received from the caller\n    //    that was originally derived from a literal, result from a helper\n    //    invocation, etc\n    //\n    // This message is alright for the first case, but could be quite\n    // confusing for the second case.\n    _emberDebug.assert('You can only pass a path to mut', rawRef[_emberGlimmerUtilsReferences.UPDATE]);\n\n    var wrappedRef = Object.create(rawRef);\n\n    wrappedRef[SOURCE] = rawRef;\n    wrappedRef[_emberGlimmerHelpersAction.INVOKE] = rawRef[_emberGlimmerUtilsReferences.UPDATE];\n    wrappedRef[MUT_REFERENCE] = true;\n\n    return wrappedRef;\n  };\n});\nenifed('ember-glimmer/helpers/query-param', ['exports', 'ember-utils', 'ember-glimmer/utils/references', 'ember-debug', 'ember-routing'], function (exports, _emberUtils, _emberGlimmerUtilsReferences, _emberDebug, _emberRouting) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  /**\n    This is a helper to be used in conjunction with the link-to helper.\n    It will supply url query parameters to the target route.\n  \n    Example\n  \n    ```handlebars\n    {{#link-to 'posts' (query-params direction=\"asc\")}}Sort{{/link-to}}\n    ```\n  \n    @method query-params\n    @for Ember.Templates.helpers\n    @param {Object} hash takes a hash of query parameters\n    @return {Object} A `QueryParams` object for `{{link-to}}`\n    @public\n  */\n  function queryParams(_ref) {\n    var positional = _ref.positional;\n    var named = _ref.named;\n\n    _emberDebug.assert('The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName=\\'foo\\') as opposed to just (query-params \\'foo\\')', positional.value().length === 0);\n\n    return _emberRouting.QueryParams.create({\n      values: _emberUtils.assign({}, named.value())\n    });\n  }\n\n  exports.default = function (vm, args) {\n    return new _emberGlimmerUtilsReferences.InternalHelperReference(queryParams, args);\n  };\n});\nenifed('ember-glimmer/helpers/readonly', ['exports', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/mut'], function (exports, _emberGlimmerUtilsReferences, _emberGlimmerHelpersMut) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  /**\n    The `readonly` helper let's you specify that a binding is one-way only,\n    instead of two-way.\n    When you pass a `readonly` binding from an outer context (e.g. parent component),\n    to to an inner context (e.g. child component), you are saying that changing that\n    property in the inner context does not change the value in the outer context.\n  \n    To specify that a binding is read-only, when invoking the child `Component`:\n  \n    ```app/components/my-parent.js\n    export default Component.extend({\n      totalClicks: 3\n    });\n    ```\n  \n    ```app/templates/components/my-parent.hbs\n    {{log totalClicks}} // -> 3\n    {{my-child childClickCount=(readonly totalClicks)}}\n    ```\n  \n    Now, when you update `childClickCount`:\n  \n    ```app/components/my-child.js\n    export default Component.extend({\n      click() {\n        this.incrementProperty('childClickCount');\n      }\n    });\n    ```\n  \n    The value updates in the child component, but not the parent component:\n  \n    ```app/templates/components/my-child.hbs\n    {{log childClickCount}} //-> 4\n    ```\n  \n    ```app/templates/components/my-parent.hbs\n    {{log totalClicks}} //-> 3\n    {{my-child childClickCount=(readonly totalClicks)}}\n    ```\n  \n    ### Objects and Arrays\n  \n    When passing a property that is a complex object (e.g. object, array) instead of a primitive object (e.g. number, string),\n    only the reference to the object is protected using the readonly helper.\n    This means that you can change properties of the object both on the parent component, as well as the child component.\n    The `readonly` binding behaves similar to the `const` keyword in JavaScript.\n  \n    Let's look at an example:\n  \n    First let's set up the parent component:\n  \n    ```app/components/my-parent.js\n    export default Ember.Component.extend({\n      clicks: null,\n  \n      init() {\n        this._super(...arguments);\n        this.set('clicks', { total: 3 });\n      }\n    });\n    ```\n  \n    ```app/templates/components/my-parent.hbs\n    {{log clicks.total}} //-> 3\n    {{my-child childClicks=(readonly clicks)}}\n    ```\n  \n    Now, if you update the `total` property of `childClicks`:\n  \n    ```app/components/my-child.js\n    export default Ember.Component.extend({\n      click() {\n        this.get('clicks').incrementProperty('total');\n      }\n    });\n    ```\n  \n    You will see the following happen:\n  \n    ```app/templates/components/my-parent.hbs\n    {{log clicks.total}} //-> 4\n    {{my-child childClicks=(readonly clicks)}}\n    ```\n  \n    ```app/templates/components/my-child.hbs\n    {{log childClicks.total}} //-> 4\n    ```\n  \n    @method readonly\n    @param {Object} [attr] the read-only attribute.\n    @for Ember.Templates.helpers\n    @private\n  */\n\n  exports.default = function (vm, args) {\n    var ref = _emberGlimmerHelpersMut.unMut(args.positional.at(0));\n\n    var wrapped = Object.create(ref);\n\n    wrapped[_emberGlimmerUtilsReferences.UPDATE] = undefined;\n\n    return wrapped;\n  };\n});\nenifed('ember-glimmer/helpers/unbound', ['exports', 'ember-debug', 'ember-glimmer/utils/references'], function (exports, _emberDebug, _emberGlimmerUtilsReferences) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  'use strict';\n\n  /**\n    The `{{unbound}}` helper disconnects the one-way binding of a property,\n    essentially freezing its value at the moment of rendering. For example,\n    in this example the display of the variable `name` will not change even\n    if it is set with a new value:\n  \n    ```handlebars\n    {{unbound name}}\n    ```\n  \n    Like any helper, the `unbound` helper can accept a nested helper expression.\n    This allows for custom helpers to be rendered unbound:\n  \n    ```handlebars\n    {{unbound (some-custom-helper)}}\n    {{unbound (capitalize name)}}\n    {{! You can use any helper, including unbound, in a nested expression }}\n    {{capitalize (unbound name)}}\n    ```\n  \n    The `unbound` helper only accepts a single argument, and it return an\n    unbound value.\n  \n    @method unbound\n    @for Ember.Templates.helpers\n    @public\n  */\n\n  exports.default = function (vm, args) {\n    _emberDebug.assert('unbound helper cannot be called with multiple params or hash params', args.positional.values.length === 1 && args.named.keys.length === 0);\n\n    return _emberGlimmerUtilsReferences.UnboundReference.create(args.positional.at(0).value());\n  };\n});\nenifed('ember-glimmer/index', ['exports', 'ember-glimmer/helpers/action', 'ember-glimmer/templates/root', 'ember-glimmer/template', 'ember-glimmer/components/checkbox', 'ember-glimmer/components/text_field', 'ember-glimmer/components/text_area', 'ember-glimmer/components/link-to', 'ember-glimmer/component', 'ember-glimmer/helper', 'ember-glimmer/environment', 'ember-glimmer/make-bound-helper', 'ember-glimmer/utils/string', 'ember-glimmer/renderer', 'ember-glimmer/template_registry', 'ember-glimmer/setup-registry', 'ember-glimmer/dom'], function (exports, _emberGlimmerHelpersAction, _emberGlimmerTemplatesRoot, _emberGlimmerTemplate, _emberGlimmerComponentsCheckbox, _emberGlimmerComponentsText_field, _emberGlimmerComponentsText_area, _emberGlimmerComponentsLinkTo, _emberGlimmerComponent, _emberGlimmerHelper, _emberGlimmerEnvironment, _emberGlimmerMakeBoundHelper, _emberGlimmerUtilsString, _emberGlimmerRenderer, _emberGlimmerTemplate_registry, _emberGlimmerSetupRegistry, _emberGlimmerDom) {\n  /**\n    [Glimmer](https://github.com/tildeio/glimmer) is a templating engine used by Ember.js that is compatible with a subset of the [Handlebars](http://handlebarsjs.com/) syntax.\n  \n    ### Showing a property\n  \n    Templates manage the flow of an application's UI, and display state (through\n    the DOM) to a user. For example, given a component with the property \"name\",\n    that component's template can use the name in several ways:\n  \n    ```app/components/person.js\n      export default Ember.Component.extend({\n        name: 'Jill'\n      });\n    ```\n  \n    ```app/components/person.hbs\n    {{name}}\n    <div>{{name}}</div>\n    <span data-name={{name}}></span>\n    ```\n  \n    Any time the \"name\" property on the component changes, the DOM will be\n    updated.\n  \n    Properties can be chained as well:\n  \n    ```handlebars\n    {{aUserModel.name}}\n    <div>{{listOfUsers.firstObject.name}}</div>\n    ```\n  \n    ### Using Ember helpers\n  \n    When content is passed in mustaches `{{}}`, Ember will first try to find a helper\n    or component with that name. For example, the `if` helper:\n  \n    ```handlebars\n    {{if name \"I have a name\" \"I have no name\"}}\n    <span data-has-name={{if name true}}></span>\n    ```\n  \n    The returned value is placed where the `{{}}` is called. The above style is\n    called \"inline\". A second style of helper usage is called \"block\". For example:\n  \n    ```handlebars\n    {{#if name}}\n    I have a name\n    {{else}}\n    I have no name\n    {{/if}}\n    ```\n  \n    The block form of helpers allows you to control how the UI is created based\n    on the values of properties.\n    A third form of helper is called \"nested\". For example here the concat\n    helper will add \" Doe\" to a displayed name if the person has no last name:\n  \n    ```handlebars\n    <span data-name={{concat firstName (\n    if lastName (concat \" \" lastName) \"Doe\"\n    )}}></span>\n    ```\n  \n    Ember's built-in helpers are described under the [Ember.Templates.helpers](/api/classes/Ember.Templates.helpers.html)\n    namespace. Documentation on creating custom helpers can be found under\n    [Ember.Helper](/api/classes/Ember.Helper.html).\n  \n    ### Invoking a Component\n  \n    Ember components represent state to the UI of an application. Further\n    reading on components can be found under [Ember.Component](/api/classes/Ember.Component.html).\n  \n    @module ember\n    @submodule ember-glimmer\n    @main ember-glimmer\n    @public\n   */\n\n  /**\n    Use the `{{with}}` helper when you want to alias a property to a new name. This is helpful\n    for semantic clarity as it allows you to retain default scope or to reference a property from another\n    `{{with}}` block.\n  \n    If the aliased property is \"falsey\", for example: `false`, `undefined` `null`, `\"\"`, `0`, NaN or\n    an empty array, the block will not be rendered.\n  \n    ```handlebars\n    {{! Will only render if user.posts contains items}}\n    {{#with user.posts as |blogPosts|}}\n      <div class=\"notice\">\n        There are {{blogPosts.length}} blog posts written by {{user.name}}.\n      </div>\n      {{#each blogPosts as |post|}}\n        <li>{{post.title}}</li>\n      {{/each}}\n    {{/with}}\n    ```\n  \n    Without the `as` operator, it would be impossible to reference `user.name` in the example above.\n  \n    NOTE: The alias should not reuse a name from the bound property path.\n  \n    For example: `{{#with foo.bar as |foo|}}` is not supported because it attempts to alias using\n    the first part of the property path, `foo`. Instead, use `{{#with foo.bar as |baz|}}`.\n  \n    @method with\n    @for Ember.Templates.helpers\n    @param {Object} options\n    @return {String} HTML string\n    @public\n   */\n\n  /**\n    Execute the `debugger` statement in the current template's context.\n  \n    ```handlebars\n    {{debugger}}\n    ```\n  \n    When using the debugger helper you will have access to a `get` function. This\n    function retrieves values available in the context of the template.\n    For example, if you're wondering why a value `{{foo}}` isn't rendering as\n    expected within a template, you could place a `{{debugger}}` statement and,\n    when the `debugger;` breakpoint is hit, you can attempt to retrieve this value:\n  \n    ```\n    > get('foo')\n    ```\n  \n    `get` is also aware of keywords. So in this situation\n  \n    ```handlebars\n    {{#each items as |item|}}\n      {{debugger}}\n    {{/each}}\n    ```\n  \n    You'll be able to get values from the current item:\n  \n    ```\n    > get('item.name')\n    ```\n  \n    You can also access the context of the view to make sure it is the object that\n    you expect:\n  \n    ```\n    > context\n    ```\n  \n    @method debugger\n    @for Ember.Templates.helpers\n    @public\n   */\n\n  /**\n    The `partial` helper renders another template without\n    changing the template context:\n  \n    ```handlebars\n    {{foo}}\n    {{partial \"nav\"}}\n    ```\n  \n    The above example template will render a template named\n    \"-nav\", which has the same context as the parent template\n    it's rendered into, so if the \"-nav\" template also referenced\n    `{{foo}}`, it would print the same thing as the `{{foo}}`\n    in the above example.\n  \n    If a \"-nav\" template isn't found, the `partial` helper will\n    fall back to a template named \"nav\".\n  \n    ### Bound template names\n  \n    The parameter supplied to `partial` can also be a path\n    to a property containing a template name, e.g.:\n  \n    ```handlebars\n    {{partial someTemplateName}}\n    ```\n  \n    The above example will look up the value of `someTemplateName`\n    on the template context (e.g. a controller) and use that\n    value as the name of the template to render. If the resolved\n    value is falsy, nothing will be rendered. If `someTemplateName`\n    changes, the partial will be re-rendered using the new template\n    name.\n  \n    @method partial\n    @for Ember.Templates.helpers\n    @param {String} partialName The name of the template to render minus the leading underscore.\n    @public\n  */\n\n  'use strict';\n\n  exports.INVOKE = _emberGlimmerHelpersAction.INVOKE;\n  exports.RootTemplate = _emberGlimmerTemplatesRoot.default;\n  exports.template = _emberGlimmerTemplate.default;\n  exports.Checkbox = _emberGlimmerComponentsCheckbox.default;\n  exports.TextField = _emberGlimmerComponentsText_field.default;\n  exports.TextArea = _emberGlimmerComponentsText_area.default;\n  exports.LinkComponent = _emberGlimmerComponentsLinkTo.default;\n  exports.Component = _emberGlimmerComponent.default;\n  exports.Helper = _emberGlimmerHelper.default;\n  exports.helper = _emberGlimmerHelper.helper;\n  exports.Environment = _emberGlimmerEnvironment.default;\n  exports.makeBoundHelper = _emberGlimmerMakeBoundHelper.default;\n  exports.SafeString = _emberGlimmerUtilsString.SafeString;\n  exports.escapeExpression = _emberGlimmerUtilsString.escapeExpression;\n  exports.htmlSafe = _emberGlimmerUtilsString.htmlSafe;\n  exports.isHTMLSafe = _emberGlimmerUtilsString.isHTMLSafe;\n  exports._getSafeString = _emberGlimmerUtilsString.getSafeString;\n  exports.Renderer = _emberGlimmerRenderer.Renderer;\n  exports.InertRenderer = _emberGlimmerRenderer.InertRenderer;\n  exports.InteractiveRenderer = _emberGlimmerRenderer.InteractiveRenderer;\n  exports.getTemplate = _emberGlimmerTemplate_registry.getTemplate;\n  exports.setTemplate = _emberGlimmerTemplate_registry.setTemplate;\n  exports.hasTemplate = _emberGlimmerTemplate_registry.hasTemplate;\n  exports.getTemplates = _emberGlimmerTemplate_registry.getTemplates;\n  exports.setTemplates = _emberGlimmerTemplate_registry.setTemplates;\n  exports.setupEngineRegistry = _emberGlimmerSetupRegistry.setupEngineRegistry;\n  exports.setupApplicationRegistry = _emberGlimmerSetupRegistry.setupApplicationRegistry;\n  exports.DOMChanges = _emberGlimmerDom.DOMChanges;\n  exports.NodeDOMTreeConstruction = _emberGlimmerDom.NodeDOMTreeConstruction;\n  exports.DOMTreeConstruction = _emberGlimmerDom.DOMTreeConstruction;\n});\nenifed('ember-glimmer/make-bound-helper', ['exports', 'ember-debug', 'ember-glimmer/helper'], function (exports, _emberDebug, _emberGlimmerHelper) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.default = makeBoundHelper;\n\n  /**\n    Create a bound helper. Accepts a function that receives the ordered and hash parameters\n    from the template. If a bound property was provided in the template, it will be resolved to its\n    value and any changes to the bound property cause the helper function to be re-run with the updated\n    values.\n  \n    * `params` - An array of resolved ordered parameters.\n    * `hash` - An object containing the hash parameters.\n  \n    For example:\n  \n    * With an unquoted ordered parameter:\n  \n      ```javascript\n      {{x-capitalize foo}}\n      ```\n  \n      Assuming `foo` was set to `\"bar\"`, the bound helper would receive `[\"bar\"]` as its first argument, and\n      an empty hash as its second.\n  \n    * With a quoted ordered parameter:\n  \n      ```javascript\n      {{x-capitalize \"foo\"}}\n      ```\n  \n      The bound helper would receive `[\"foo\"]` as its first argument, and an empty hash as its second.\n  \n    * With an unquoted hash parameter:\n  \n      ```javascript\n      {{x-repeat \"foo\" count=repeatCount}}\n      ```\n  \n      Assuming that `repeatCount` resolved to 2, the bound helper would receive `[\"foo\"]` as its first argument,\n      and { count: 2 } as its second.\n  \n    @private\n    @method makeBoundHelper\n    @for Ember.HTMLBars\n    @param {Function} fn\n    @since 1.10.0\n  */\n\n  function makeBoundHelper(fn) {\n    _emberDebug.deprecate('Using `Ember.HTMLBars.makeBoundHelper` is deprecated. Please refactor to use `Ember.Helper` or `Ember.Helper.helper`.', false, { id: 'ember-htmlbars.make-bound-helper', until: '3.0.0' });\n    return _emberGlimmerHelper.helper(fn);\n  }\n});\nenifed('ember-glimmer/modifiers/action', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-views', 'ember-glimmer/helpers/action'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberViews, _emberGlimmerHelpersAction) {\n  'use strict';\n\n  var MODIFIERS = ['alt', 'shift', 'meta', 'ctrl'];\n  var POINTER_EVENT_TYPE_REGEX = /^click|mouse|touch/;\n\n  function isAllowedEvent(event, allowedKeys) {\n    if (allowedKeys === null || typeof allowedKeys === 'undefined') {\n      if (POINTER_EVENT_TYPE_REGEX.test(event.type)) {\n        return _emberViews.isSimpleClick(event);\n      } else {\n        allowedKeys = '';\n      }\n    }\n\n    if (allowedKeys.indexOf('any') >= 0) {\n      return true;\n    }\n\n    for (var i = 0; i < MODIFIERS.length; i++) {\n      if (event[MODIFIERS[i] + 'Key'] && allowedKeys.indexOf(MODIFIERS[i]) === -1) {\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  var ActionHelper = {\n    // registeredActions is re-exported for compatibility with older plugins\n    // that were using this undocumented API.\n    registeredActions: _emberViews.ActionManager.registeredActions,\n\n    registerAction: function (actionState) {\n      var actionId = actionState.actionId;\n\n      _emberViews.ActionManager.registeredActions[actionId] = actionState;\n\n      return actionId;\n    },\n\n    unregisterAction: function (actionState) {\n      var actionId = actionState.actionId;\n\n      delete _emberViews.ActionManager.registeredActions[actionId];\n    }\n  };\n\n  exports.ActionHelper = ActionHelper;\n\n  var ActionState = (function () {\n    function ActionState(element, actionId, actionName, actionArgs, namedArgs, positionalArgs, implicitTarget, dom) {\n      babelHelpers.classCallCheck(this, ActionState);\n\n      this.element = element;\n      this.actionId = actionId;\n      this.actionName = actionName;\n      this.actionArgs = actionArgs;\n      this.namedArgs = namedArgs;\n      this.positional = positionalArgs;\n      this.implicitTarget = implicitTarget;\n      this.dom = dom;\n      this.eventName = this.getEventName();\n    }\n\n    // implements ModifierManager<Action>\n\n    ActionState.prototype.getEventName = function getEventName() {\n      return this.namedArgs.get('on').value() || 'click';\n    };\n\n    ActionState.prototype.getActionArgs = function getActionArgs() {\n      var result = new Array(this.actionArgs.length);\n\n      for (var i = 0; i < this.actionArgs.length; i++) {\n        result[i] = this.actionArgs[i].value();\n      }\n\n      return result;\n    };\n\n    ActionState.prototype.getTarget = function getTarget() {\n      var implicitTarget = this.implicitTarget;\n      var namedArgs = this.namedArgs;\n\n      var target = undefined;\n\n      if (namedArgs.has('target')) {\n        target = namedArgs.get('target').value();\n      } else {\n        target = implicitTarget.value();\n      }\n\n      return target;\n    };\n\n    ActionState.prototype.handler = function handler(event) {\n      var _this = this;\n\n      var actionName = this.actionName;\n      var namedArgs = this.namedArgs;\n\n      var bubbles = namedArgs.get('bubbles');\n      var preventDefault = namedArgs.get('preventDefault');\n      var allowedKeys = namedArgs.get('allowedKeys');\n      var target = this.getTarget();\n\n      if (!isAllowedEvent(event, allowedKeys.value())) {\n        return true;\n      }\n\n      if (preventDefault.value() !== false) {\n        event.preventDefault();\n      }\n\n      if (bubbles.value() === false) {\n        event.stopPropagation();\n      }\n\n      _emberMetal.run(function () {\n        var args = _this.getActionArgs();\n        var payload = {\n          args: args,\n          target: target\n        };\n        if (typeof actionName[_emberGlimmerHelpersAction.INVOKE] === 'function') {\n          _emberMetal.flaggedInstrument('interaction.ember-action', payload, function () {\n            actionName[_emberGlimmerHelpersAction.INVOKE].apply(actionName, args);\n          });\n          return;\n        }\n        if (typeof actionName === 'function') {\n          _emberMetal.flaggedInstrument('interaction.ember-action', payload, function () {\n            actionName.apply(target, args);\n          });\n          return;\n        }\n        payload.name = actionName;\n        if (target.send) {\n          _emberMetal.flaggedInstrument('interaction.ember-action', payload, function () {\n            target.send.apply(target, [actionName].concat(args));\n          });\n        } else {\n          _emberDebug.assert('The action \\'' + actionName + '\\' did not exist on ' + target, typeof target[actionName] === 'function');\n          _emberMetal.flaggedInstrument('interaction.ember-action', payload, function () {\n            target[actionName].apply(target, args);\n          });\n        }\n      });\n    };\n\n    ActionState.prototype.destroy = function destroy() {\n      ActionHelper.unregisterAction(this);\n    };\n\n    return ActionState;\n  })();\n\n  exports.ActionState = ActionState;\n\n  var ActionModifierManager = (function () {\n    function ActionModifierManager() {\n      babelHelpers.classCallCheck(this, ActionModifierManager);\n    }\n\n    ActionModifierManager.prototype.create = function create(element, args, dynamicScope, dom) {\n      var named = args.named;\n      var positional = args.positional;\n\n      var implicitTarget = undefined;\n      var actionName = undefined;\n      var actionNameRef = undefined;\n      if (positional.length > 1) {\n        implicitTarget = positional.at(0);\n        actionNameRef = positional.at(1);\n\n        if (actionNameRef[_emberGlimmerHelpersAction.INVOKE]) {\n          actionName = actionNameRef;\n        } else {\n          var actionLabel = actionNameRef._propertyKey;\n          actionName = actionNameRef.value();\n\n          _emberDebug.assert('You specified a quoteless path, `' + actionLabel + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action \"' + actionLabel + '\"}}).', typeof actionName === 'string' || typeof actionName === 'function');\n        }\n      }\n\n      var actionArgs = [];\n      // The first two arguments are (1) `this` and (2) the action name.\n      // Everything else is a param.\n      for (var i = 2; i < positional.length; i++) {\n        actionArgs.push(positional.at(i));\n      }\n\n      var actionId = _emberUtils.uuid();\n      return new ActionState(element, actionId, actionName, actionArgs, named, positional, implicitTarget, dom);\n    };\n\n    ActionModifierManager.prototype.install = function install(actionState) {\n      var dom = actionState.dom;\n      var element = actionState.element;\n      var actionId = actionState.actionId;\n\n      ActionHelper.registerAction(actionState);\n\n      dom.setAttribute(element, 'data-ember-action', '');\n      dom.setAttribute(element, 'data-ember-action-' + actionId, actionId);\n    };\n\n    ActionModifierManager.prototype.update = function update(actionState) {\n      var positional = actionState.positional;\n\n      var actionNameRef = positional.at(1);\n\n      if (!actionNameRef[_emberGlimmerHelpersAction.INVOKE]) {\n        actionState.actionName = actionNameRef.value();\n      }\n\n      actionState.eventName = actionState.getEventName();\n    };\n\n    ActionModifierManager.prototype.getDestructor = function getDestructor(modifier) {\n      return modifier;\n    };\n\n    return ActionModifierManager;\n  })();\n\n  exports.default = ActionModifierManager;\n});\nenifed('ember-glimmer/protocol-for-url', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {\n  /* globals module, URL */\n\n  'use strict';\n\n  exports.default = installProtocolForURL;\n\n  var nodeURL = undefined;\n  var parsingNode = undefined;\n\n  function installProtocolForURL(environment) {\n    var protocol = undefined;\n\n    if (_emberEnvironment.environment.hasDOM) {\n      protocol = browserProtocolForURL.call(environment, 'foobar:baz');\n    }\n\n    // Test to see if our DOM implementation parses\n    // and normalizes URLs.\n    if (protocol === 'foobar:') {\n      // Swap in the method that doesn't do this test now that\n      // we know it works.\n      environment.protocolForURL = browserProtocolForURL;\n    } else if (typeof URL === 'object') {\n      // URL globally provided, likely from FastBoot's sandbox\n      nodeURL = URL;\n      environment.protocolForURL = nodeProtocolForURL;\n    } else if (typeof module === 'object' && typeof module.require === 'function') {\n      // Otherwise, we need to fall back to our own URL parsing.\n      // Global `require` is shadowed by Ember's loader so we have to use the fully\n      // qualified `module.require`.\n      nodeURL = module.require('url');\n      environment.protocolForURL = nodeProtocolForURL;\n    } else {\n      throw new Error('Could not find valid URL parsing mechanism for URL Sanitization');\n    }\n  }\n\n  function browserProtocolForURL(url) {\n    if (!parsingNode) {\n      parsingNode = document.createElement('a');\n    }\n\n    parsingNode.href = url;\n    return parsingNode.protocol;\n  }\n\n  function nodeProtocolForURL(url) {\n    var protocol = null;\n    if (typeof url === 'string') {\n      protocol = nodeURL.parse(url).protocol;\n    }\n    return protocol === null ? ':' : protocol;\n  }\n});\nenifed('ember-glimmer/renderer', ['exports', 'ember-glimmer/utils/references', 'ember-metal', '@glimmer/reference', 'ember-views', 'ember-glimmer/component', 'ember-glimmer/syntax/curly-component', 'ember-glimmer/syntax/outlet', 'ember-debug'], function (exports, _emberGlimmerUtilsReferences, _emberMetal, _glimmerReference, _emberViews, _emberGlimmerComponent, _emberGlimmerSyntaxCurlyComponent, _emberGlimmerSyntaxOutlet, _emberDebug) {\n  'use strict';\n\n  var backburner = _emberMetal.run.backburner;\n\n  var DynamicScope = (function () {\n    function DynamicScope(view, outletState, rootOutletState, targetObject) {\n      babelHelpers.classCallCheck(this, DynamicScope);\n\n      this.view = view;\n      this.outletState = outletState;\n      this.rootOutletState = rootOutletState;\n    }\n\n    DynamicScope.prototype.child = function child() {\n      return new DynamicScope(this.view, this.outletState, this.rootOutletState);\n    };\n\n    DynamicScope.prototype.get = function get(key) {\n      _emberDebug.assert('Using `-get-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState');\n      return this.outletState;\n    };\n\n    DynamicScope.prototype.set = function set(key, value) {\n      _emberDebug.assert('Using `-with-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState');\n      this.outletState = value;\n      return value;\n    };\n\n    return DynamicScope;\n  })();\n\n  var RootState = (function () {\n    function RootState(root, env, template, self, parentElement, dynamicScope) {\n      var _this = this;\n\n      babelHelpers.classCallCheck(this, RootState);\n\n      _emberDebug.assert('You cannot render `' + self.value() + '` without a template.', template);\n\n      this.id = _emberViews.getViewId(root);\n      this.env = env;\n      this.root = root;\n      this.result = undefined;\n      this.shouldReflush = false;\n      this.destroyed = false;\n      this._removing = false;\n\n      var options = this.options = {\n        alwaysRevalidate: false\n      };\n\n      this.render = function () {\n        var iterator = template.render(self, parentElement, dynamicScope);\n        var iteratorResult = undefined;\n\n        do {\n          iteratorResult = iterator.next();\n        } while (!iteratorResult.done);\n\n        var result = _this.result = iteratorResult.value;\n\n        // override .render function after initial render\n        _this.render = function () {\n          result.rerender(options);\n        };\n      };\n    }\n\n    RootState.prototype.isFor = function isFor(possibleRoot) {\n      return this.root === possibleRoot;\n    };\n\n    RootState.prototype.destroy = function destroy() {\n      var result = this.result;\n      var env = this.env;\n\n      this.destroyed = true;\n\n      this.env = null;\n      this.root = null;\n      this.result = null;\n      this.render = null;\n\n      if (result) {\n        /*\n         Handles these scenarios:\n          * When roots are removed during standard rendering process, a transaction exists already\n           `.begin()` / `.commit()` are not needed.\n         * When roots are being destroyed manually (`component.append(); component.destroy() case), no\n           transaction exists already.\n         * When roots are being destroyed during `Renderer#destroy`, no transaction exists\n          */\n        var needsTransaction = !env.inTransaction;\n\n        if (needsTransaction) {\n          env.begin();\n        }\n\n        result.destroy();\n\n        if (needsTransaction) {\n          env.commit();\n        }\n      }\n    };\n\n    return RootState;\n  })();\n\n  var renderers = [];\n\n  _emberMetal.setHasViews(function () {\n    return renderers.length > 0;\n  });\n\n  function register(renderer) {\n    _emberDebug.assert('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1);\n    renderers.push(renderer);\n  }\n\n  function deregister(renderer) {\n    var index = renderers.indexOf(renderer);\n    _emberDebug.assert('Cannot deregister unknown unregistered renderer', index !== -1);\n    renderers.splice(index, 1);\n  }\n\n  function loopBegin() {\n    for (var i = 0; i < renderers.length; i++) {\n      renderers[i]._scheduleRevalidate();\n    }\n  }\n\n  function K() {}\n\n  var loops = 0;\n  function loopEnd(current, next) {\n    for (var i = 0; i < renderers.length; i++) {\n      if (!renderers[i]._isValid()) {\n        if (loops > 10) {\n          loops = 0;\n          // TODO: do something better\n          renderers[i].destroy();\n          throw new Error('infinite rendering invalidation detected');\n        }\n        loops++;\n        return backburner.join(null, K);\n      }\n    }\n    loops = 0;\n  }\n\n  backburner.on('begin', loopBegin);\n  backburner.on('end', loopEnd);\n\n  var Renderer = (function () {\n    function Renderer(env, rootTemplate) {\n      var _viewRegistry = arguments.length <= 2 || arguments[2] === undefined ? _emberViews.fallbackViewRegistry : arguments[2];\n\n      var destinedForDOM = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3];\n      babelHelpers.classCallCheck(this, Renderer);\n\n      this._env = env;\n      this._rootTemplate = rootTemplate;\n      this._viewRegistry = _viewRegistry;\n      this._destinedForDOM = destinedForDOM;\n      this._destroyed = false;\n      this._roots = [];\n      this._lastRevision = null;\n      this._isRenderingRoots = false;\n      this._removedRoots = [];\n    }\n\n    // renderer HOOKS\n\n    Renderer.prototype.appendOutletView = function appendOutletView(view, target) {\n      var definition = new _emberGlimmerSyntaxOutlet.TopLevelOutletComponentDefinition(view);\n      var outletStateReference = view.toReference();\n      var targetObject = view.outletState.render.controller;\n\n      this._appendDefinition(view, definition, target, outletStateReference, targetObject);\n    };\n\n    Renderer.prototype.appendTo = function appendTo(view, target) {\n      var rootDef = new _emberGlimmerSyntaxCurlyComponent.RootComponentDefinition(view);\n\n      this._appendDefinition(view, rootDef, target);\n    };\n\n    Renderer.prototype._appendDefinition = function _appendDefinition(root, definition, target) {\n      var outletStateReference = arguments.length <= 3 || arguments[3] === undefined ? _glimmerReference.UNDEFINED_REFERENCE : arguments[3];\n      var targetObject = arguments.length <= 4 || arguments[4] === undefined ? null : arguments[4];\n\n      var self = new _emberGlimmerUtilsReferences.RootReference(definition);\n      var dynamicScope = new DynamicScope(null, outletStateReference, outletStateReference, true, targetObject);\n      var rootState = new RootState(root, this._env, this._rootTemplate, self, target, dynamicScope);\n\n      this._renderRoot(rootState);\n    };\n\n    Renderer.prototype.rerender = function rerender(view) {\n      this._scheduleRevalidate();\n    };\n\n    Renderer.prototype.register = function register(view) {\n      var id = _emberViews.getViewId(view);\n      _emberDebug.assert('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]);\n      this._viewRegistry[id] = view;\n    };\n\n    Renderer.prototype.unregister = function unregister(view) {\n      delete this._viewRegistry[_emberViews.getViewId(view)];\n    };\n\n    Renderer.prototype.remove = function remove(view) {\n      view._transitionTo('destroying');\n\n      this.cleanupRootFor(view);\n\n      _emberViews.setViewElement(view, null);\n\n      if (this._destinedForDOM) {\n        view.trigger('didDestroyElement');\n      }\n\n      if (!view.isDestroying) {\n        view.destroy();\n      }\n    };\n\n    Renderer.prototype.cleanupRootFor = function cleanupRootFor(view) {\n      // no need to cleanup roots if we have already been destroyed\n      if (this._destroyed) {\n        return;\n      }\n\n      var roots = this._roots;\n\n      // traverse in reverse so we can remove items\n      // without mucking up the index\n      var i = this._roots.length;\n      while (i--) {\n        var root = roots[i];\n        if (root.isFor(view)) {\n          root.destroy();\n        }\n      }\n    };\n\n    Renderer.prototype.destroy = function destroy() {\n      if (this._destroyed) {\n        return;\n      }\n      this._destroyed = true;\n      this._clearAllRoots();\n    };\n\n    Renderer.prototype.getElement = function getElement(view) {\n      // overriden in the subclasses\n    };\n\n    Renderer.prototype.getBounds = function getBounds(view) {\n      var bounds = view[_emberGlimmerComponent.BOUNDS];\n\n      var parentElement = bounds.parentElement();\n      var firstNode = bounds.firstNode();\n      var lastNode = bounds.lastNode();\n\n      return { parentElement: parentElement, firstNode: firstNode, lastNode: lastNode };\n    };\n\n    Renderer.prototype.createElement = function createElement(tagName) {\n      return this._env.getAppendOperations().createElement(tagName);\n    };\n\n    Renderer.prototype._renderRoot = function _renderRoot(root) {\n      var roots = this._roots;\n\n      roots.push(root);\n\n      if (roots.length === 1) {\n        register(this);\n      }\n\n      this._renderRootsTransaction();\n    };\n\n    Renderer.prototype._renderRoots = function _renderRoots() {\n      var roots = this._roots;\n      var env = this._env;\n      var removedRoots = this._removedRoots;\n\n      var globalShouldReflush = undefined,\n          initialRootsLength = undefined;\n\n      do {\n        env.begin();\n\n        // ensure that for the first iteration of the loop\n        // each root is processed\n        initialRootsLength = roots.length;\n        globalShouldReflush = false;\n\n        for (var i = 0; i < roots.length; i++) {\n          var root = roots[i];\n\n          if (root.destroyed) {\n            // add to the list of roots to be removed\n            // they will be removed from `this._roots` later\n            removedRoots.push(root);\n\n            // skip over roots that have been marked as destroyed\n            continue;\n          }\n\n          var shouldReflush = root.shouldReflush;\n\n          // when processing non-initial reflush loops,\n          // do not process more roots than needed\n          if (i >= initialRootsLength && !shouldReflush) {\n            continue;\n          }\n\n          root.options.alwaysRevalidate = shouldReflush;\n          // track shouldReflush based on this roots render result\n          shouldReflush = root.shouldReflush = _emberMetal.runInTransaction(root, 'render');\n\n          // globalShouldReflush should be `true` if *any* of\n          // the roots need to reflush\n          globalShouldReflush = globalShouldReflush || shouldReflush;\n        }\n\n        this._lastRevision = _glimmerReference.CURRENT_TAG.value();\n\n        env.commit();\n      } while (globalShouldReflush || roots.length > initialRootsLength);\n\n      // remove any roots that were destroyed during this transaction\n      while (removedRoots.length) {\n        var root = removedRoots.pop();\n\n        var rootIndex = roots.indexOf(root);\n        roots.splice(rootIndex, 1);\n      }\n\n      if (this._roots.length === 0) {\n        deregister(this);\n      }\n    };\n\n    Renderer.prototype._renderRootsTransaction = function _renderRootsTransaction() {\n      if (this._isRenderingRoots) {\n        // currently rendering roots, a new root was added and will\n        // be processed by the existing _renderRoots invocation\n        return;\n      }\n\n      // used to prevent calling _renderRoots again (see above)\n      // while we are actively rendering roots\n      this._isRenderingRoots = true;\n\n      var completedWithoutError = false;\n      try {\n        this._renderRoots();\n        completedWithoutError = true;\n      } finally {\n        if (!completedWithoutError) {\n          this._lastRevision = _glimmerReference.CURRENT_TAG.value();\n        }\n        this._isRenderingRoots = false;\n      }\n    };\n\n    Renderer.prototype._clearAllRoots = function _clearAllRoots() {\n      var roots = this._roots;\n      for (var i = 0; i < roots.length; i++) {\n        var root = roots[i];\n        root.destroy();\n      }\n\n      this._removedRoots.length = 0;\n      this._roots = null;\n\n      // if roots were present before destroying\n      // deregister this renderer instance\n      if (roots.length) {\n        deregister(this);\n      }\n    };\n\n    Renderer.prototype._scheduleRevalidate = function _scheduleRevalidate() {\n      backburner.scheduleOnce('render', this, this._revalidate);\n    };\n\n    Renderer.prototype._isValid = function _isValid() {\n      return this._destroyed || this._roots.length === 0 || _glimmerReference.CURRENT_TAG.validate(this._lastRevision);\n    };\n\n    Renderer.prototype._revalidate = function _revalidate() {\n      if (this._isValid()) {\n        return;\n      }\n      this._renderRootsTransaction();\n    };\n\n    return Renderer;\n  })();\n\n  var InertRenderer = (function (_Renderer) {\n    babelHelpers.inherits(InertRenderer, _Renderer);\n\n    function InertRenderer() {\n      babelHelpers.classCallCheck(this, InertRenderer);\n\n      _Renderer.apply(this, arguments);\n    }\n\n    InertRenderer.create = function create(_ref) {\n      var env = _ref.env;\n      var rootTemplate = _ref.rootTemplate;\n      var _viewRegistry = _ref._viewRegistry;\n\n      return new this(env, rootTemplate, _viewRegistry, false);\n    };\n\n    InertRenderer.prototype.getElement = function getElement(view) {\n      throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');\n    };\n\n    return InertRenderer;\n  })(Renderer);\n\n  exports.InertRenderer = InertRenderer;\n\n  var InteractiveRenderer = (function (_Renderer2) {\n    babelHelpers.inherits(InteractiveRenderer, _Renderer2);\n\n    function InteractiveRenderer() {\n      babelHelpers.classCallCheck(this, InteractiveRenderer);\n\n      _Renderer2.apply(this, arguments);\n    }\n\n    InteractiveRenderer.create = function create(_ref2) {\n      var env = _ref2.env;\n      var rootTemplate = _ref2.rootTemplate;\n      var _viewRegistry = _ref2._viewRegistry;\n\n      return new this(env, rootTemplate, _viewRegistry, true);\n    };\n\n    InteractiveRenderer.prototype.getElement = function getElement(view) {\n      return _emberViews.getViewElement(view);\n    };\n\n    return InteractiveRenderer;\n  })(Renderer);\n\n  exports.InteractiveRenderer = InteractiveRenderer;\n});\nenifed('ember-glimmer/setup-registry', ['exports', 'ember-environment', 'container', 'ember-glimmer/renderer', 'ember-glimmer/dom', 'ember-glimmer/views/outlet', 'ember-glimmer/components/text_field', 'ember-glimmer/components/text_area', 'ember-glimmer/components/checkbox', 'ember-glimmer/components/link-to', 'ember-glimmer/component', 'ember-glimmer/templates/component', 'ember-glimmer/templates/root', 'ember-glimmer/templates/outlet', 'ember-glimmer/environment'], function (exports, _emberEnvironment, _container, _emberGlimmerRenderer, _emberGlimmerDom, _emberGlimmerViewsOutlet, _emberGlimmerComponentsText_field, _emberGlimmerComponentsText_area, _emberGlimmerComponentsCheckbox, _emberGlimmerComponentsLinkTo, _emberGlimmerComponent, _emberGlimmerTemplatesComponent, _emberGlimmerTemplatesRoot, _emberGlimmerTemplatesOutlet, _emberGlimmerEnvironment) {\n  'use strict';\n\n  exports.setupApplicationRegistry = setupApplicationRegistry;\n  exports.setupEngineRegistry = setupEngineRegistry;\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['template:-root'], ['template:-root']),\n      _templateObject2 = babelHelpers.taggedTemplateLiteralLoose(['template:components/-default'], ['template:components/-default']),\n      _templateObject3 = babelHelpers.taggedTemplateLiteralLoose(['component:-default'], ['component:-default']);\n\n  function setupApplicationRegistry(registry) {\n    registry.injection('service:-glimmer-environment', 'appendOperations', 'service:-dom-tree-construction');\n    registry.injection('renderer', 'env', 'service:-glimmer-environment');\n\n    registry.register(_container.privatize(_templateObject), _emberGlimmerTemplatesRoot.default);\n    registry.injection('renderer', 'rootTemplate', _container.privatize(_templateObject));\n\n    registry.register('renderer:-dom', _emberGlimmerRenderer.InteractiveRenderer);\n    registry.register('renderer:-inert', _emberGlimmerRenderer.InertRenderer);\n\n    if (_emberEnvironment.environment.hasDOM) {\n      registry.injection('service:-glimmer-environment', 'updateOperations', 'service:-dom-changes');\n    }\n\n    registry.register('service:-dom-changes', {\n      create: function (_ref) {\n        var document = _ref.document;\n\n        return new _emberGlimmerDom.DOMChanges(document);\n      }\n    });\n\n    registry.register('service:-dom-tree-construction', {\n      create: function (_ref2) {\n        var document = _ref2.document;\n\n        var Implementation = _emberEnvironment.environment.hasDOM ? _emberGlimmerDom.DOMTreeConstruction : _emberGlimmerDom.NodeDOMTreeConstruction;\n        return new Implementation(document);\n      }\n    });\n  }\n\n  function setupEngineRegistry(registry) {\n    registry.register('view:-outlet', _emberGlimmerViewsOutlet.default);\n    registry.register('template:-outlet', _emberGlimmerTemplatesOutlet.default);\n    registry.injection('view:-outlet', 'template', 'template:-outlet');\n\n    registry.injection('service:-dom-changes', 'document', 'service:-document');\n    registry.injection('service:-dom-tree-construction', 'document', 'service:-document');\n\n    registry.register(_container.privatize(_templateObject2), _emberGlimmerTemplatesComponent.default);\n\n    registry.register('service:-glimmer-environment', _emberGlimmerEnvironment.default);\n    registry.injection('template', 'env', 'service:-glimmer-environment');\n\n    registry.optionsForType('helper', { instantiate: false });\n\n    registry.register('component:-text-field', _emberGlimmerComponentsText_field.default);\n    registry.register('component:-text-area', _emberGlimmerComponentsText_area.default);\n    registry.register('component:-checkbox', _emberGlimmerComponentsCheckbox.default);\n    registry.register('component:link-to', _emberGlimmerComponentsLinkTo.default);\n    registry.register(_container.privatize(_templateObject3), _emberGlimmerComponent.default);\n  }\n});\nenifed('ember-glimmer/syntax', ['exports', 'ember-glimmer/syntax/render', 'ember-glimmer/syntax/outlet', 'ember-glimmer/syntax/mount', 'ember-glimmer/syntax/dynamic-component', 'ember-glimmer/utils/bindings', 'ember-glimmer/syntax/-with-dynamic-vars', 'ember-glimmer/syntax/-in-element', 'ember-glimmer/syntax/input', 'ember-glimmer/syntax/-text-area', 'ember-debug'], function (exports, _emberGlimmerSyntaxRender, _emberGlimmerSyntaxOutlet, _emberGlimmerSyntaxMount, _emberGlimmerSyntaxDynamicComponent, _emberGlimmerUtilsBindings, _emberGlimmerSyntaxWithDynamicVars, _emberGlimmerSyntaxInElement, _emberGlimmerSyntaxInput, _emberGlimmerSyntaxTextArea, _emberDebug) {\n  'use strict';\n\n  exports.registerMacros = registerMacros;\n  exports.populateMacros = populateMacros;\n\n  function refineInlineSyntax(path, params, hash, builder) {\n    var name = path[0];\n\n    _emberDebug.assert('You attempted to overwrite the built-in helper \"' + name + '\" which is not allowed. Please rename the helper.', !(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name)));\n\n    if (path.length > 1) {\n      return _emberGlimmerSyntaxDynamicComponent.closureComponentMacro(path, params, hash, null, null, builder);\n    }\n\n    var symbolTable = builder.symbolTable;\n\n    var definition = undefined;\n    if (name.indexOf('-') > -1) {\n      definition = builder.env.getComponentDefinition(path, symbolTable);\n    }\n\n    if (definition) {\n      _emberGlimmerUtilsBindings.wrapComponentClassAttribute(hash);\n      builder.component.static(definition, [params, hash, null, null], symbolTable);\n      return true;\n    }\n\n    return false;\n  }\n\n  function refineBlockSyntax(sexp, builder) {\n    var path = sexp[1];\n    var params = sexp[2];\n    var hash = sexp[3];\n    var _default = sexp[4];\n    var inverse = sexp[5];\n    var name = path[0];\n\n    if (path.length > 1) {\n      return _emberGlimmerSyntaxDynamicComponent.closureComponentMacro(path, params, hash, _default, inverse, builder);\n    }\n\n    if (name.indexOf('-') === -1) {\n      return false;\n    }\n\n    var symbolTable = builder.symbolTable;\n\n    var definition = undefined;\n    if (name.indexOf('-') > -1) {\n      definition = builder.env.getComponentDefinition(path, symbolTable);\n    }\n\n    if (definition) {\n      _emberGlimmerUtilsBindings.wrapComponentClassAttribute(hash);\n      builder.component.static(definition, [params, hash, _default, inverse], symbolTable);\n      return true;\n    }\n\n    _emberDebug.assert('A component or helper named \"' + name + '\" could not be found', builder.env.hasHelper(path, symbolTable));\n\n    _emberDebug.assert('Helpers may not be used in the block form, for example {{#' + name + '}}{{/' + name + '}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (' + name + ')}}{{/if}}.', !builder.env.hasHelper(path, symbolTable));\n\n    return false;\n  }\n\n  var experimentalMacros = [];\n\n  // This is a private API to allow for expiremental macros\n  // to be created in user space. Registering a macro should\n  // should be done in an initializer.\n\n  function registerMacros(macro) {\n    experimentalMacros.push(macro);\n  }\n\n  function populateMacros(blocks, inlines) {\n    inlines.add('outlet', _emberGlimmerSyntaxOutlet.outletMacro);\n    inlines.add('component', _emberGlimmerSyntaxDynamicComponent.inlineComponentMacro);\n    inlines.add('render', _emberGlimmerSyntaxRender.renderMacro);\n    inlines.add('mount', _emberGlimmerSyntaxMount.mountMacro);\n    inlines.add('input', _emberGlimmerSyntaxInput.inputMacro);\n    inlines.add('textarea', _emberGlimmerSyntaxTextArea.textAreaMacro);\n    inlines.addMissing(refineInlineSyntax);\n    blocks.add('component', _emberGlimmerSyntaxDynamicComponent.blockComponentMacro);\n    blocks.add('-with-dynamic-vars', _emberGlimmerSyntaxWithDynamicVars._withDynamicVarsMacro);\n    blocks.add('-in-element', _emberGlimmerSyntaxInElement._inElementMacro);\n    blocks.addMissing(refineBlockSyntax);\n\n    for (var i = 0; i < experimentalMacros.length; i++) {\n      var macro = experimentalMacros[i];\n      macro(blocks, inlines);\n    }\n\n    experimentalMacros = [];\n\n    return { blocks: blocks, inlines: inlines };\n  }\n});\nenifed('ember-glimmer/syntax/-in-element', ['exports', '@glimmer/runtime', '@glimmer/util'], function (exports, _glimmerRuntime, _glimmerUtil) {\n  'use strict';\n\n  exports._inElementMacro = _inElementMacro;\n  var _BaselineSyntax$NestedBlock = _glimmerRuntime.BaselineSyntax.NestedBlock;\n  var defaultBlock = _BaselineSyntax$NestedBlock.defaultBlock;\n  var params = _BaselineSyntax$NestedBlock.params;\n  var hash = _BaselineSyntax$NestedBlock.hash;\n\n  function _inElementMacro(sexp, builder) {\n    var block = defaultBlock(sexp);\n    var args = _glimmerRuntime.compileArgs(params(sexp), hash(sexp), builder);\n\n    builder.putArgs(args);\n    builder.test('simple');\n\n    builder.labelled(null, function (b) {\n      b.jumpUnless('END');\n      b.pushRemoteElement();\n      b.evaluate(_glimmerUtil.unwrap(block));\n      b.popRemoteElement();\n    });\n  }\n});\nenifed('ember-glimmer/syntax/-text-area', ['exports', 'ember-glimmer/utils/bindings'], function (exports, _emberGlimmerUtilsBindings) {\n  'use strict';\n\n  exports.textAreaMacro = textAreaMacro;\n\n  function textAreaMacro(path, params, hash, builder) {\n    var definition = builder.env.getComponentDefinition(['-text-area'], builder.symbolTable);\n    _emberGlimmerUtilsBindings.wrapComponentClassAttribute(hash);\n    builder.component.static(definition, [params, hash, null, null], builder.symbolTable);\n    return true;\n  }\n});\nenifed('ember-glimmer/syntax/-with-dynamic-vars', ['exports', '@glimmer/runtime', '@glimmer/util'], function (exports, _glimmerRuntime, _glimmerUtil) {\n  'use strict';\n\n  exports._withDynamicVarsMacro = _withDynamicVarsMacro;\n  var _BaselineSyntax$NestedBlock = _glimmerRuntime.BaselineSyntax.NestedBlock;\n  var defaultBlock = _BaselineSyntax$NestedBlock.defaultBlock;\n  var params = _BaselineSyntax$NestedBlock.params;\n  var hash = _BaselineSyntax$NestedBlock.hash;\n\n  function _withDynamicVarsMacro(sexp, builder) {\n    var block = defaultBlock(sexp);\n    var args = _glimmerRuntime.compileArgs(params(sexp), hash(sexp), builder);\n\n    builder.unit(function (b) {\n      b.putArgs(args);\n      b.pushDynamicScope();\n      b.bindDynamicScope(args.named.keys);\n      b.evaluate(_glimmerUtil.unwrap(block));\n      b.popDynamicScope();\n    });\n  }\n});\nenifed('ember-glimmer/syntax/abstract-manager', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  var AbstractManager = function AbstractManager() {\n    babelHelpers.classCallCheck(this, AbstractManager);\n  };\n\n  _emberDebug.runInDebug(function () {\n    AbstractManager.prototype._pushToDebugStack = function (name, environment) {\n      this.debugStack = environment.debugStack;\n      this.debugStack.push(name);\n    };\n\n    AbstractManager.prototype._pushEngineToDebugStack = function (name, environment) {\n      this.debugStack = environment.debugStack;\n      this.debugStack.pushEngine(name);\n    };\n  });\n\n  exports.default = AbstractManager;\n});\nenifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-utils', '@glimmer/runtime', 'ember-glimmer/utils/bindings', 'ember-glimmer/component', 'ember-metal', 'ember-debug', 'ember-views', 'ember-glimmer/utils/process-args', 'container', 'ember-glimmer/syntax/abstract-manager'], function (exports, _emberUtils, _glimmerRuntime, _emberGlimmerUtilsBindings, _emberGlimmerComponent, _emberMetal, _emberDebug, _emberViews, _emberGlimmerUtilsProcessArgs, _container, _emberGlimmerSyntaxAbstractManager) {\n  'use strict';\n\n  exports.validatePositionalParameters = validatePositionalParameters;\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['template:components/-default'], ['template:components/-default']);\n\n  var DEFAULT_LAYOUT = _container.privatize(_templateObject);\n\n  function processComponentInitializationAssertions(component, props) {\n    _emberDebug.assert('classNameBindings must not have spaces in them: ' + component.toString(), (function () {\n      var classNameBindings = component.classNameBindings;\n\n      for (var i = 0; i < classNameBindings.length; i++) {\n        var binding = classNameBindings[i];\n        if (binding.split(' ').length > 1) {\n          return false;\n        }\n      }\n      return true;\n    })());\n\n    _emberDebug.assert('You cannot use `classNameBindings` on a tag-less component: ' + component.toString(), (function () {\n      var classNameBindings = component.classNameBindings;\n      var tagName = component.tagName;\n\n      return tagName !== '' || !classNameBindings || classNameBindings.length === 0;\n    })());\n\n    _emberDebug.assert('You cannot use `elementId` on a tag-less component: ' + component.toString(), (function () {\n      var elementId = component.elementId;\n      var tagName = component.tagName;\n\n      return tagName !== '' || props.id === elementId || !elementId && elementId !== '';\n    })());\n\n    _emberDebug.assert('You cannot use `attributeBindings` on a tag-less component: ' + component.toString(), (function () {\n      var attributeBindings = component.attributeBindings;\n      var tagName = component.tagName;\n\n      return tagName !== '' || !attributeBindings || attributeBindings.length === 0;\n    })());\n  }\n\n  function validatePositionalParameters(named, positional, positionalParamsDefinition) {\n    _emberDebug.runInDebug(function () {\n      if (!named || !positional || !positional.length) {\n        return;\n      }\n\n      var paramType = typeof positionalParamsDefinition;\n\n      if (paramType === 'string') {\n        _emberDebug.assert('You cannot specify positional parameters and the hash argument `' + positionalParamsDefinition + '`.', !named.has(positionalParamsDefinition));\n      } else {\n        if (positional.length < positionalParamsDefinition.length) {\n          positionalParamsDefinition = positionalParamsDefinition.slice(0, positional.length);\n        }\n\n        for (var i = 0; i < positionalParamsDefinition.length; i++) {\n          var _name = positionalParamsDefinition[i];\n\n          _emberDebug.assert('You cannot specify both a positional param (at position ' + i + ') and the hash argument `' + _name + '`.', !named.has(_name));\n        }\n      }\n    });\n  }\n\n  function aliasIdToElementId(args, props) {\n    if (args.named.has('id')) {\n      _emberDebug.assert('You cannot invoke a component with both \\'id\\' and \\'elementId\\' at the same time.', !args.named.has('elementId'));\n      props.elementId = props.id;\n    }\n  }\n\n  // We must traverse the attributeBindings in reverse keeping track of\n  // what has already been applied. This is essentially refining the concated\n  // properties applying right to left.\n  function applyAttributeBindings(element, attributeBindings, component, operations) {\n    var seen = [];\n    var i = attributeBindings.length - 1;\n\n    while (i !== -1) {\n      var binding = attributeBindings[i];\n      var parsed = _emberGlimmerUtilsBindings.AttributeBinding.parse(binding);\n      var attribute = parsed[1];\n\n      if (seen.indexOf(attribute) === -1) {\n        seen.push(attribute);\n        _emberGlimmerUtilsBindings.AttributeBinding.install(element, component, parsed, operations);\n      }\n\n      i--;\n    }\n\n    if (seen.indexOf('id') === -1) {\n      operations.addStaticAttribute(element, 'id', component.elementId);\n    }\n\n    if (seen.indexOf('style') === -1) {\n      _emberGlimmerUtilsBindings.IsVisibleBinding.install(element, component, operations);\n    }\n  }\n\n  function NOOP() {}\n\n  var ComponentStateBucket = (function () {\n    function ComponentStateBucket(environment, component, args, finalizer) {\nbabelHelpers.classCallCheck(this, ComponentStateBucket);\n\n      this.environment = environment;\n      this.component = component;\n      this.classRef = null;\n      this.args = args;\n      this.argsRevision = args.tag.value();\n      this.finalizer = finalizer;\n    }\n\n    ComponentStateBucket.prototype.destroy = function destroy() {\n      var component = this.component;\n      var environment = this.environment;\n\n      if (environment.isInteractive) {\n        component.trigger('willDestroyElement');\n        component.trigger('willClearRender');\n      }\n\n      environment.destroyedComponents.push(component);\n    };\n\n    ComponentStateBucket.prototype.finalize = function finalize() {\n      var finalizer = this.finalizer;\n\n      finalizer();\n      this.finalizer = NOOP;\n    };\n\n    return ComponentStateBucket;\n  })();\n\n  function initialRenderInstrumentDetails(component) {\n    return component.instrumentDetails({ initialRender: true });\n  }\n\n  function rerenderInstrumentDetails(component) {\n    return component.instrumentDetails({ initialRender: false });\n  }\n\n  var CurlyComponentManager = (function (_AbstractManager) {\nbabelHelpers.inherits(CurlyComponentManager, _AbstractManager);\n\n    function CurlyComponentManager() {\nbabelHelpers.classCallCheck(this, CurlyComponentManager);\n\n      _AbstractManager.apply(this, arguments);\n    }\n\n    CurlyComponentManager.prototype.prepareArgs = function prepareArgs(definition, args) {\n      if (definition.ComponentClass) {\n        validatePositionalParameters(args.named, args.positional.values, definition.ComponentClass.class.positionalParams);\n      }\n\n      return _emberGlimmerUtilsProcessArgs.gatherArgs(args, definition);\n    };\n\n    CurlyComponentManager.prototype.create = function create(environment, definition, args, dynamicScope, callerSelfRef, hasBlock) {\n      var _this = this;\n\n      _emberDebug.runInDebug(function () {\n        return _this._pushToDebugStack('component:' + definition.name, environment);\n      });\n\n      var parentView = dynamicScope.view;\n\n      var factory = definition.ComponentClass;\n\n      var processedArgs = _emberGlimmerUtilsProcessArgs.ComponentArgs.create(args);\n\n      var _processedArgs$value = processedArgs.value();\n\n      var props = _processedArgs$value.props;\n\n      aliasIdToElementId(args, props);\n\n      props.parentView = parentView;\n      props[_emberGlimmerComponent.HAS_BLOCK] = hasBlock;\n\n      props._targetObject = callerSelfRef.value();\n\n      var component = factory.create(props);\n\n      var finalizer = _emberMetal._instrumentStart('render.component', initialRenderInstrumentDetails, component);\n\n      dynamicScope.view = component;\n\n      if (parentView !== null) {\n        parentView.appendChild(component);\n      }\n\n      // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n      if (component.tagName === '') {\n        if (environment.isInteractive) {\n          component.trigger('willRender');\n        }\n\n        component._transitionTo('hasElement');\n\n        if (environment.isInteractive) {\n          component.trigger('willInsertElement');\n        }\n      }\n\n      var bucket = new ComponentStateBucket(environment, component, processedArgs, finalizer);\n\n      if (args.named.has('class')) {\n        bucket.classRef = args.named.get('class');\n      }\n\n      _emberDebug.runInDebug(function () {\n        processComponentInitializationAssertions(component, props);\n      });\n\n      if (environment.isInteractive && component.tagName !== '') {\n        component.trigger('willRender');\n      }\n\n      return bucket;\n    };\n\n    CurlyComponentManager.prototype.layoutFor = function layoutFor(definition, bucket, env) {\n      var template = definition.template;\n      if (!template) {\n        var component = bucket.component;\n\n        template = this.templateFor(component, env);\n      }\n      return env.getCompiledBlock(CurlyComponentLayoutCompiler, template);\n    };\n\n    CurlyComponentManager.prototype.templateFor = function templateFor(component, env) {\n      var Template = _emberMetal.get(component, 'layout');\n      var owner = component[_emberUtils.OWNER];\n      if (Template) {\n        return env.getTemplate(Template, owner);\n      }\n      var layoutName = _emberMetal.get(component, 'layoutName');\n      if (layoutName) {\n        var template = owner.lookup('template:' + layoutName);\n        if (template) {\n          return template;\n        }\n      }\n      return owner.lookup(DEFAULT_LAYOUT);\n    };\n\n    CurlyComponentManager.prototype.getSelf = function getSelf(_ref) {\n      var component = _ref.component;\n\n      return component[_emberGlimmerComponent.ROOT_REF];\n    };\n\n    CurlyComponentManager.prototype.didCreateElement = function didCreateElement(_ref2, element, operations) {\n      var component = _ref2.component;\n      var classRef = _ref2.classRef;\n      var environment = _ref2.environment;\n\n      _emberViews.setViewElement(component, element);\n\n      var attributeBindings = component.attributeBindings;\n      var classNames = component.classNames;\n      var classNameBindings = component.classNameBindings;\n\n      if (attributeBindings && attributeBindings.length) {\n        applyAttributeBindings(element, attributeBindings, component, operations);\n      } else {\n        operations.addStaticAttribute(element, 'id', component.elementId);\n        _emberGlimmerUtilsBindings.IsVisibleBinding.install(element, component, operations);\n      }\n\n      if (classRef) {\n        operations.addDynamicAttribute(element, 'class', classRef);\n      }\n\n      if (classNames && classNames.length) {\n        classNames.forEach(function (name) {\n          operations.addStaticAttribute(element, 'class', name);\n        });\n      }\n\n      if (classNameBindings && classNameBindings.length) {\n        classNameBindings.forEach(function (binding) {\n          _emberGlimmerUtilsBindings.ClassNameBinding.install(element, component, binding, operations);\n        });\n      }\n\n      component._transitionTo('hasElement');\n\n      if (environment.isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    };\n\n    CurlyComponentManager.prototype.didRenderLayout = function didRenderLayout(bucket, bounds) {\n      var _this2 = this;\n\n      bucket.component[_emberGlimmerComponent.BOUNDS] = bounds;\n      bucket.finalize();\n\n      _emberDebug.runInDebug(function () {\n        return _this2.debugStack.pop();\n      });\n    };\n\n    CurlyComponentManager.prototype.getTag = function getTag(_ref3) {\n      var component = _ref3.component;\n\n      return component[_emberGlimmerComponent.DIRTY_TAG];\n    };\n\n    CurlyComponentManager.prototype.didCreate = function didCreate(_ref4) {\n      var component = _ref4.component;\n      var environment = _ref4.environment;\n\n      if (environment.isInteractive) {\n        component._transitionTo('inDOM');\n        component.trigger('didInsertElement');\n        component.trigger('didRender');\n      }\n    };\n\n    CurlyComponentManager.prototype.update = function update(bucket, _, dynamicScope) {\n      var _this3 = this;\n\n      var component = bucket.component;\n      var args = bucket.args;\n      var argsRevision = bucket.argsRevision;\n      var environment = bucket.environment;\n\n      _emberDebug.runInDebug(function () {\n        return _this3._pushToDebugStack(component._debugContainerKey, environment);\n      });\n\n      bucket.finalizer = _emberMetal._instrumentStart('render.component', rerenderInstrumentDetails, component);\n\n      if (!args.tag.validate(argsRevision)) {\n        var _args$value = args.value();\n\n        var attrs = _args$value.attrs;\n        var props = _args$value.props;\n\n        bucket.argsRevision = args.tag.value();\n\n        var oldAttrs = component.attrs;\n        var newAttrs = attrs;\n\n        component[_emberGlimmerComponent.IS_DISPATCHING_ATTRS] = true;\n        component.setProperties(props);\n        component[_emberGlimmerComponent.IS_DISPATCHING_ATTRS] = false;\n\n        _emberViews.dispatchLifeCycleHook(component, 'didUpdateAttrs', oldAttrs, newAttrs);\n        _emberViews.dispatchLifeCycleHook(component, 'didReceiveAttrs', oldAttrs, newAttrs);\n      }\n\n      if (environment.isInteractive) {\n        component.trigger('willUpdate');\n        component.trigger('willRender');\n      }\n    };\n\n    CurlyComponentManager.prototype.didUpdateLayout = function didUpdateLayout(bucket) {\n      var _this4 = this;\n\n      bucket.finalize();\n\n      _emberDebug.runInDebug(function () {\n        return _this4.debugStack.pop();\n      });\n    };\n\n    CurlyComponentManager.prototype.didUpdate = function didUpdate(_ref5) {\n      var component = _ref5.component;\n      var environment = _ref5.environment;\n\n      if (environment.isInteractive) {\n        component.trigger('didUpdate');\n        component.trigger('didRender');\n      }\n    };\n\n    CurlyComponentManager.prototype.getDestructor = function getDestructor(stateBucket) {\n      return stateBucket;\n    };\n\n    return CurlyComponentManager;\n  })(_emberGlimmerSyntaxAbstractManager.default);\n\n  var MANAGER = new CurlyComponentManager();\n\n  var TopComponentManager = (function (_CurlyComponentManager) {\nbabelHelpers.inherits(TopComponentManager, _CurlyComponentManager);\n\n    function TopComponentManager() {\nbabelHelpers.classCallCheck(this, TopComponentManager);\n\n      _CurlyComponentManager.apply(this, arguments);\n    }\n\n    TopComponentManager.prototype.create = function create(environment, definition, args, dynamicScope, currentScope, hasBlock) {\n      var _this5 = this;\n\n      var component = definition.ComponentClass.create();\n\n      _emberDebug.runInDebug(function () {\n        return _this5._pushToDebugStack(component._debugContainerKey, environment);\n      });\n\n      var finalizer = _emberMetal._instrumentStart('render.component', initialRenderInstrumentDetails, component);\n\n      dynamicScope.view = component;\n\n      // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n      if (component.tagName === '') {\n        if (environment.isInteractive) {\n          component.trigger('willRender');\n        }\n\n        component._transitionTo('hasElement');\n\n        if (environment.isInteractive) {\n          component.trigger('willInsertElement');\n        }\n      }\n\n      _emberDebug.runInDebug(function () {\n        processComponentInitializationAssertions(component, {});\n      });\n\n      return new ComponentStateBucket(environment, component, args, finalizer);\n    };\n\n    return TopComponentManager;\n  })(CurlyComponentManager);\n\n  var ROOT_MANAGER = new TopComponentManager();\n\n  function tagName(vm) {\n    var tagName = vm.dynamicScope().view.tagName;\n\n    return _glimmerRuntime.PrimitiveReference.create(tagName === '' ? null : tagName || 'div');\n  }\n\n  function ariaRole(vm) {\n    return vm.getSelf().get('ariaRole');\n  }\n\n  var CurlyComponentDefinition = (function (_ComponentDefinition) {\nbabelHelpers.inherits(CurlyComponentDefinition, _ComponentDefinition);\n\n    function CurlyComponentDefinition(name, ComponentClass, template, args) {\nbabelHelpers.classCallCheck(this, CurlyComponentDefinition);\n\n      _ComponentDefinition.call(this, name, MANAGER, ComponentClass);\n      this.template = template;\n      this.args = args;\n    }\n\n    return CurlyComponentDefinition;\n  })(_glimmerRuntime.ComponentDefinition);\n\n  exports.CurlyComponentDefinition = CurlyComponentDefinition;\n\n  var RootComponentDefinition = (function (_ComponentDefinition2) {\nbabelHelpers.inherits(RootComponentDefinition, _ComponentDefinition2);\n\n    function RootComponentDefinition(instance) {\nbabelHelpers.classCallCheck(this, RootComponentDefinition);\n\n      _ComponentDefinition2.call(this, '-root', ROOT_MANAGER, {\n        class: instance.constructor,\n        create: function () {\n          return instance;\n        }\n      });\n      this.template = undefined;\n      this.args = undefined;\n    }\n\n    return RootComponentDefinition;\n  })(_glimmerRuntime.ComponentDefinition);\n\n  exports.RootComponentDefinition = RootComponentDefinition;\n\n  var CurlyComponentLayoutCompiler = (function () {\n    function CurlyComponentLayoutCompiler(template) {\nbabelHelpers.classCallCheck(this, CurlyComponentLayoutCompiler);\n\n      this.template = template;\n    }\n\n    CurlyComponentLayoutCompiler.prototype.compile = function compile(builder) {\n      builder.wrapLayout(this.template.asLayout());\n      builder.tag.dynamic(tagName);\n      builder.attrs.dynamic('role', ariaRole);\n      builder.attrs.static('class', 'ember-view');\n    };\n\n    return CurlyComponentLayoutCompiler;\n  })();\n\n  CurlyComponentLayoutCompiler.id = 'curly';\n});\nenifed('ember-glimmer/syntax/dynamic-component', ['exports', '@glimmer/runtime', '@glimmer/reference', 'ember-debug'], function (exports, _glimmerRuntime, _glimmerReference, _emberDebug) {\n  'use strict';\n\n  exports.closureComponentMacro = closureComponentMacro;\n  exports.dynamicComponentMacro = dynamicComponentMacro;\n  exports.blockComponentMacro = blockComponentMacro;\n  exports.inlineComponentMacro = inlineComponentMacro;\n\n  function dynamicComponentFor(vm, symbolTable) {\n    var env = vm.env;\n    var args = vm.getArgs();\n    var nameRef = args.positional.at(0);\n\n    return new DynamicComponentReference({ nameRef: nameRef, env: env, symbolTable: symbolTable });\n  }\n\n  function closureComponentMacro(path, params, hash, _default, inverse, builder) {\n    var definitionArgs = [[['get', path]], hash, _default, inverse];\n    var args = [params, hash, _default, inverse];\n    builder.component.dynamic(definitionArgs, dynamicComponentFor, args, builder.symbolTable);\n    return true;\n  }\n\n  function dynamicComponentMacro(params, hash, _default, inverse, builder) {\n    var definitionArgs = [params.slice(0, 1), null, null, null];\n    var args = [params.slice(1), hash, null, null];\n    builder.component.dynamic(definitionArgs, dynamicComponentFor, args, builder.symbolTable);\n    return true;\n  }\n\n  function blockComponentMacro(sexp, builder) {\n    var params = sexp[2];\n    var hash = sexp[3];\n    var _default = sexp[4];\n    var inverse = sexp[5];\n\n    var definitionArgs = [params.slice(0, 1), null, null, null];\n    var args = [params.slice(1), hash, _default, inverse];\n    builder.component.dynamic(definitionArgs, dynamicComponentFor, args, builder.symbolTable);\n    return true;\n  }\n\n  function inlineComponentMacro(path, params, hash, builder) {\n    var definitionArgs = [params.slice(0, 1), null, null, null];\n    var args = [params.slice(1), hash, null, null];\n    builder.component.dynamic(definitionArgs, dynamicComponentFor, args, builder.symbolTable);\n    return true;\n  }\n\n  var DynamicComponentReference = (function () {\n    function DynamicComponentReference(_ref) {\n      var nameRef = _ref.nameRef;\n      var env = _ref.env;\n      var symbolTable = _ref.symbolTable;\n      var args = _ref.args;\n      babelHelpers.classCallCheck(this, DynamicComponentReference);\n\n      this.tag = nameRef.tag;\n      this.nameRef = nameRef;\n      this.env = env;\n      this.symbolTable = symbolTable;\n      this.args = args;\n    }\n\n    DynamicComponentReference.prototype.value = function value() {\n      var env = this.env;\n      var nameRef = this.nameRef;\n      var symbolTable = this.symbolTable;\n\n      var nameOrDef = nameRef.value();\n\n      if (typeof nameOrDef === 'string') {\n        var definition = env.getComponentDefinition([nameOrDef], symbolTable);\n\n        _emberDebug.assert('Could not find component named \"' + nameOrDef + '\" (no component or template with that name was found)', definition);\n\n        return definition;\n      } else if (_glimmerRuntime.isComponentDefinition(nameOrDef)) {\n        return nameOrDef;\n      } else {\n        return null;\n      }\n    };\n\n    DynamicComponentReference.prototype.get = function get() {\n      return _glimmerReference.UNDEFINED_REFERENCE;\n    };\n\n    return DynamicComponentReference;\n  })();\n});\nenifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/utils/bindings', 'ember-glimmer/syntax/dynamic-component'], function (exports, _emberDebug, _emberGlimmerUtilsBindings, _emberGlimmerSyntaxDynamicComponent) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.inputMacro = inputMacro;\n\n  function buildTextFieldSyntax(params, hash, builder) {\n    var definition = builder.env.getComponentDefinition(['-text-field'], builder.symbolTable);\n    builder.component.static(definition, [params, hash, null, null], builder.symbolTable);\n    return true;\n  }\n\n  /**\n    The `{{input}}` helper lets you create an HTML `<input />` component.\n    It causes an `Ember.TextField` component to be rendered.  For more info,\n    see the [Ember.TextField](/api/classes/Ember.TextField.html) docs and\n    the [templates guide](http://emberjs.com/guides/templates/input-helpers/).\n  \n    ```handlebars\n    {{input value=\"987\"}}\n    ```\n  \n    renders as:\n  \n    ```HTML\n    <input type=\"text\" value=\"987\" />\n    ```\n  \n    ### Text field\n  \n    If no `type` option is specified, a default of type 'text' is used.\n    Many of the standard HTML attributes may be passed to this helper.\n    <table>\n      <tr><td>`readonly`</td><td>`required`</td><td>`autofocus`</td></tr>\n      <tr><td>`value`</td><td>`placeholder`</td><td>`disabled`</td></tr>\n      <tr><td>`size`</td><td>`tabindex`</td><td>`maxlength`</td></tr>\n      <tr><td>`name`</td><td>`min`</td><td>`max`</td></tr>\n      <tr><td>`pattern`</td><td>`accept`</td><td>`autocomplete`</td></tr>\n      <tr><td>`autosave`</td><td>`formaction`</td><td>`formenctype`</td></tr>\n      <tr><td>`formmethod`</td><td>`formnovalidate`</td><td>`formtarget`</td></tr>\n      <tr><td>`height`</td><td>`inputmode`</td><td>`multiple`</td></tr>\n      <tr><td>`step`</td><td>`width`</td><td>`form`</td></tr>\n      <tr><td>`selectionDirection`</td><td>`spellcheck`</td><td>&nbsp;</td></tr>\n    </table>\n    When set to a quoted string, these values will be directly applied to the HTML\n    element. When left unquoted, these values will be bound to a property on the\n    template's current rendering context (most typically a controller instance).\n    A very common use of this helper is to bind the `value` of an input to an Object's attribute:\n  \n    ```handlebars\n    Search:\n    {{input value=searchWord}}\n    ```\n  \n    In this example, the inital value in the `<input />` will be set to the value of `searchWord`.\n    If the user changes the text, the value of `searchWord` will also be updated.\n  \n    ### Actions\n  \n    The helper can send multiple actions based on user events.\n    The action property defines the action which is sent when\n    the user presses the return key.\n  \n    ```handlebars\n    {{input action=\"submit\"}}\n    ```\n  \n    The helper allows some user events to send actions.\n  \n    * `enter`\n    * `insert-newline`\n    * `escape-press`\n    * `focus-in`\n    * `focus-out`\n    * `key-press`\n    * `key-up`\n  \n    For example, if you desire an action to be sent when the input is blurred,\n    you only need to setup the action name to the event name property.\n  \n    ```handlebars\n    {{input focus-out=\"alertMessage\"}}\n    ```\n    See more about [Text Support Actions](/api/classes/Ember.TextField.html)\n  \n    ### Extending `Ember.TextField`\n  \n    Internally, `{{input type=\"text\"}}` creates an instance of `Ember.TextField`, passing\n    arguments from the helper to `Ember.TextField`'s `create` method. You can extend the\n    capabilities of text inputs in your applications by reopening this class. For example,\n    if you are building a Bootstrap project where `data-*` attributes are used, you\n    can add one to the `TextField`'s `attributeBindings` property:\n  \n    ```javascript\n    Ember.TextField.reopen({\n      attributeBindings: ['data-error']\n    });\n    ```\n  \n    Keep in mind when writing `Ember.TextField` subclasses that `Ember.TextField`\n    itself extends `Ember.Component`. Expect isolated component semantics, not\n    legacy 1.x view semantics (like `controller` being present).\n    See more about [Ember components](/api/classes/Ember.Component.html)\n  \n    ### Checkbox\n  \n    Checkboxes are special forms of the `{{input}}` helper.  To create a `<checkbox />`:\n  \n    ```handlebars\n    Emberize Everything:\n    {{input type=\"checkbox\" name=\"isEmberized\" checked=isEmberized}}\n    ```\n  \n    This will bind checked state of this checkbox to the value of `isEmberized`  -- if either one changes,\n    it will be reflected in the other.\n  \n    The following HTML attributes can be set via the helper:\n  \n    * `checked`\n    * `disabled`\n    * `tabindex`\n    * `indeterminate`\n    * `name`\n    * `autofocus`\n    * `form`\n  \n    ### Extending `Ember.Checkbox`\n  \n    Internally, `{{input type=\"checkbox\"}}` creates an instance of `Ember.Checkbox`, passing\n    arguments from the helper to `Ember.Checkbox`'s `create` method. You can extend the\n    capablilties of checkbox inputs in your applications by reopening this class. For example,\n    if you wanted to add a css class to all checkboxes in your application:\n  \n    ```javascript\n    Ember.Checkbox.reopen({\n      classNames: ['my-app-checkbox']\n    });\n    ```\n  \n    @method input\n    @for Ember.Templates.helpers\n    @param {Hash} options\n    @public\n  */\n\n  function inputMacro(path, params, hash, builder) {\n    var keys = undefined;\n    var values = undefined;\n    var typeIndex = -1;\n    var valueIndex = -1;\n\n    if (hash) {\n      keys = hash[0];\n      values = hash[1];\n      typeIndex = keys.indexOf('type');\n      valueIndex = keys.indexOf('value');\n    }\n\n    if (!params) {\n      params = [];\n    }\n\n    if (typeIndex > -1) {\n      var typeArg = values[typeIndex];\n      if (!Array.isArray(typeArg)) {\n        if (typeArg === 'checkbox') {\n          _emberDebug.assert('{{input type=\\'checkbox\\'}} does not support setting `value=someBooleanValue`; ' + 'you must use `checked=someBooleanValue` instead.', valueIndex === -1);\n\n          _emberGlimmerUtilsBindings.wrapComponentClassAttribute(hash);\n\n          var definition = builder.env.getComponentDefinition(['-checkbox'], builder.symbolTable);\n          builder.component.static(definition, [params, hash, null, null], builder.symbolTable);\n          return true;\n        } else {\n          return buildTextFieldSyntax(params, hash, builder);\n        }\n      }\n    } else {\n      return buildTextFieldSyntax(params, hash, builder);\n    }\n\n    return _emberGlimmerSyntaxDynamicComponent.dynamicComponentMacro(params, hash, null, null, builder);\n  }\n});\nenifed('ember-glimmer/syntax/mount', ['exports', '@glimmer/runtime', '@glimmer/reference', 'ember-debug', 'ember-glimmer/utils/references', 'ember-routing', 'ember-glimmer/syntax/outlet', 'container', 'ember-glimmer/syntax/abstract-manager'], function (exports, _glimmerRuntime, _glimmerReference, _emberDebug, _emberGlimmerUtilsReferences, _emberRouting, _emberGlimmerSyntaxOutlet, _container, _emberGlimmerSyntaxAbstractManager) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.mountMacro = mountMacro;\n\n  function dynamicEngineFor(vm, symbolTable) {\n    var env = vm.env;\n    var args = vm.getArgs();\n    var nameRef = args.positional.at(0);\n\n    return new DynamicEngineReference({ nameRef: nameRef, env: env, symbolTable: symbolTable });\n  }\n\n  /**\n    The `{{mount}}` helper lets you embed a routeless engine in a template.\n    Mounting an engine will cause an instance to be booted and its `application`\n    template to be rendered.\n  \n    For example, the following template mounts the `ember-chat` engine:\n  \n    ```handlebars\n    {{! application.hbs }}\n    {{mount \"ember-chat\"}}\n    ```\n  \n    Currently, the engine name is the only argument that can be passed to\n    `{{mount}}`.\n  \n    @method mount\n    @for Ember.Templates.helpers\n    @category ember-application-engines\n    @public\n  */\n\n  function mountMacro(path, params, hash, builder) {\n    _emberDebug.assert('You can only pass a single argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}.', params.length === 1 && hash === null);\n\n    _emberDebug.assert('The first argument of {{mount}} must be quoted, e.g. {{mount \"chat-engine\"}}.', typeof params[0] === 'string');\n\n    var definitionArgs = [params.slice(0, 1), null, null, null];\n    var args = [null, null, null, null];\n    builder.component.dynamic(definitionArgs, dynamicEngineFor, args, builder.symbolTable);\n    return true;\n  }\n\n  var DynamicEngineReference = (function () {\n    function DynamicEngineReference(_ref) {\n      var nameRef = _ref.nameRef;\n      var env = _ref.env;\n      var symbolTable = _ref.symbolTable;\n      var args = _ref.args;\n      babelHelpers.classCallCheck(this, DynamicEngineReference);\n\n      this.tag = nameRef.tag;\n      this.nameRef = nameRef;\n      this.env = env;\n      this.symbolTable = symbolTable;\n      this._lastName = undefined;\n      this._lastDef = undefined;\n    }\n\n    DynamicEngineReference.prototype.value = function value() {\n      var env = /*symbolTable*/this.env;\n      var nameRef = this.nameRef;\n\n      var nameOrDef = nameRef.value();\n\n      if (this._lastName === nameOrDef) {\n        return this._lastDef;\n      }\n\n      _emberDebug.assert('You used `{{mount \\'' + nameOrDef + '\\'}}`, but the engine \\'' + nameOrDef + '\\' can not be found.', env.owner.hasRegistration('engine:' + nameOrDef));\n\n      if (!env.owner.hasRegistration('engine:' + nameOrDef)) {\n        return null;\n      }\n\n      this._lastName = nameOrDef;\n      this._lastDef = new MountDefinition(nameOrDef);\n\n      return this._lastDef;\n    };\n\n    return DynamicEngineReference;\n  })();\n\n  var MountManager = (function (_AbstractManager) {\n    babelHelpers.inherits(MountManager, _AbstractManager);\n\n    function MountManager() {\n      babelHelpers.classCallCheck(this, MountManager);\n\n      _AbstractManager.apply(this, arguments);\n    }\n\n    MountManager.prototype.prepareArgs = function prepareArgs(definition, args) {\n      return args;\n    };\n\n    MountManager.prototype.create = function create(environment, _ref2, args, dynamicScope) {\n      var name = _ref2.name;\n\n      var _this = this;\n\n      _emberDebug.runInDebug(function () {\n        return _this._pushEngineToDebugStack('engine:' + name, environment);\n      });\n\n      dynamicScope.outletState = _glimmerReference.UNDEFINED_REFERENCE;\n\n      var engine = environment.owner.buildChildEngineInstance(name);\n\n      engine.boot();\n\n      return engine;\n    };\n\n    MountManager.prototype.layoutFor = function layoutFor(definition, engine, env) {\n      var template = engine.lookup('template:application');\n      return env.getCompiledBlock(_emberGlimmerSyntaxOutlet.OutletLayoutCompiler, template);\n    };\n\n    MountManager.prototype.getSelf = function getSelf(engine) {\n      var applicationFactory = engine[_container.FACTORY_FOR]('controller:application');\n      var factory = applicationFactory || _emberRouting.generateControllerFactory(engine, 'application');\n      return new _emberGlimmerUtilsReferences.RootReference(factory.create());\n    };\n\n    MountManager.prototype.getTag = function getTag() {\n      return null;\n    };\n\n    MountManager.prototype.getDestructor = function getDestructor(engine) {\n      return engine;\n    };\n\n    MountManager.prototype.didCreateElement = function didCreateElement() {};\n\n    MountManager.prototype.didRenderLayout = function didRenderLayout() {\n      var _this2 = this;\n\n      _emberDebug.runInDebug(function () {\n        return _this2.debugStack.pop();\n      });\n    };\n\n    MountManager.prototype.didCreate = function didCreate(state) {};\n\n    MountManager.prototype.update = function update(state, args, dynamicScope) {};\n\n    MountManager.prototype.didUpdateLayout = function didUpdateLayout() {};\n\n    MountManager.prototype.didUpdate = function didUpdate(state) {};\n\n    return MountManager;\n  })(_emberGlimmerSyntaxAbstractManager.default);\n\n  var MOUNT_MANAGER = new MountManager();\n\n  var MountDefinition = (function (_ComponentDefinition) {\n    babelHelpers.inherits(MountDefinition, _ComponentDefinition);\n\n    function MountDefinition(name) {\n      babelHelpers.classCallCheck(this, MountDefinition);\n\n      _ComponentDefinition.call(this, name, MOUNT_MANAGER, null);\n    }\n\n    return MountDefinition;\n  })(_glimmerRuntime.ComponentDefinition);\n});\nenifed('ember-glimmer/syntax/outlet', ['exports', 'ember-utils', '@glimmer/runtime', 'ember-debug', 'ember-metal', 'ember-glimmer/utils/references', 'ember-glimmer/syntax/abstract-manager', '@glimmer/reference'], function (exports, _emberUtils, _glimmerRuntime, _emberDebug, _emberMetal, _emberGlimmerUtilsReferences, _emberGlimmerSyntaxAbstractManager, _glimmerReference) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.outletMacro = outletMacro;\n\n  function outletComponentFor(vm) {\n    var _vm$dynamicScope = vm.dynamicScope();\n\n    var outletState = _vm$dynamicScope.outletState;\n\n    var args = vm.getArgs();\n    var outletNameRef = undefined;\n    if (args.positional.length === 0) {\n      outletNameRef = new _glimmerReference.ConstReference('main');\n    } else {\n      outletNameRef = args.positional.at(0);\n    }\n\n    return new OutletComponentReference(outletNameRef, outletState);\n  }\n\n  /**\n    The `{{outlet}}` helper lets you specify where a child route will render in\n    your template. An important use of the `{{outlet}}` helper is in your\n    application's `application.hbs` file:\n  \n    ```handlebars\n    {{! app/templates/application.hbs }}\n    <!-- header content goes here, and will always display -->\n    {{my-header}}\n    <div class=\"my-dynamic-content\">\n      <!-- this content will change based on the current route, which depends on the current URL -->\n      {{outlet}}\n    </div>\n    <!-- footer content goes here, and will always display -->\n    {{my-footer}}\n    ```\n  \n    See [templates guide](http://emberjs.com/guides/templates/the-application-template/) for\n    additional information on using `{{outlet}}` in `application.hbs`.\n    You may also specify a name for the `{{outlet}}`, which is useful when using more than one\n    `{{outlet}}` in a template:\n  \n    ```handlebars\n    {{outlet \"menu\"}}\n    {{outlet \"sidebar\"}}\n    {{outlet \"main\"}}\n    ```\n  \n    Your routes can then render into a specific one of these `outlet`s by specifying the `outlet`\n    attribute in your `renderTemplate` function:\n  \n    ```javascript\n    // app/routes/menu.js\n    export default Ember.Route.extend({\n      renderTemplate() {\n        this.render({ outlet: 'menu' });\n      }\n    });\n    ```\n  \n    See the [routing guide](http://emberjs.com/guides/routing/rendering-a-template/) for more\n    information on how your `route` interacts with the `{{outlet}}` helper.\n    Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.\n  \n    @method outlet\n    @param {String} [name]\n    @for Ember.Templates.helpers\n    @public\n  */\n\n  function outletMacro(path, params, hash, builder) {\n    if (!params) {\n      params = [];\n    }\n    var definitionArgs = [params.slice(0, 1), null, null, null];\n    builder.component.dynamic(definitionArgs, outletComponentFor, _glimmerRuntime.CompiledArgs.empty(), builder.symbolTable, null);\n    return true;\n  }\n\n  var OutletComponentReference = (function () {\n    function OutletComponentReference(outletNameRef, parentOutletStateRef) {\n      babelHelpers.classCallCheck(this, OutletComponentReference);\n\n      this.outletNameRef = outletNameRef;\n      this.parentOutletStateRef = parentOutletStateRef;\n      this.definition = null;\n      this.lastState = null;\n      var outletStateTag = this.outletStateTag = new _glimmerReference.UpdatableTag(parentOutletStateRef.tag);\n      this.tag = _glimmerReference.combine([outletStateTag.tag, outletNameRef.tag]);\n    }\n\n    OutletComponentReference.prototype.value = function value() {\n      var outletNameRef = this.outletNameRef;\n      var parentOutletStateRef = this.parentOutletStateRef;\n      var definition = this.definition;\n      var lastState = this.lastState;\n\n      var outletName = outletNameRef.value();\n      var outletStateRef = parentOutletStateRef.get('outlets').get(outletName);\n      var newState = this.lastState = outletStateRef.value();\n\n      this.outletStateTag.update(outletStateRef.tag);\n\n      definition = revalidate(definition, lastState, newState);\n\n      var hasTemplate = newState && newState.render.template;\n\n      if (definition) {\n        return definition;\n      } else if (hasTemplate) {\n        return this.definition = new OutletComponentDefinition(outletName, newState.render.template);\n      } else {\n        return this.definition = null;\n      }\n    };\n\n    return OutletComponentReference;\n  })();\n\n  function revalidate(definition, lastState, newState) {\n    if (!lastState && !newState) {\n      return definition;\n    }\n\n    if (!lastState && newState || lastState && !newState) {\n      return null;\n    }\n\n    if (newState.render.template === lastState.render.template && newState.render.controller === lastState.render.controller) {\n      return definition;\n    }\n\n    return null;\n  }\n\n  function instrumentationPayload(_ref) {\n    var _ref$render = _ref.render;\n    var name = _ref$render.name;\n    var outlet = _ref$render.outlet;\n\n    return { object: name + ':' + outlet };\n  }\n\n  function NOOP() {}\n\n  var StateBucket = (function () {\n    function StateBucket(outletState) {\n      babelHelpers.classCallCheck(this, StateBucket);\n\n      this.outletState = outletState;\n      this.instrument();\n    }\n\n    StateBucket.prototype.instrument = function instrument() {\n      this.finalizer = _emberMetal._instrumentStart('render.outlet', instrumentationPayload, this.outletState);\n    };\n\n    StateBucket.prototype.finalize = function finalize() {\n      var finalizer = this.finalizer;\n\n      finalizer();\n      this.finalizer = NOOP;\n    };\n\n    return StateBucket;\n  })();\n\n  var OutletComponentManager = (function (_AbstractManager) {\n    babelHelpers.inherits(OutletComponentManager, _AbstractManager);\n\n    function OutletComponentManager() {\n      babelHelpers.classCallCheck(this, OutletComponentManager);\n\n      _AbstractManager.apply(this, arguments);\n    }\n\n    OutletComponentManager.prototype.prepareArgs = function prepareArgs(definition, args) {\n      return args;\n    };\n\n    OutletComponentManager.prototype.create = function create(environment, definition, args, dynamicScope) {\n      var _this = this;\n\n      _emberDebug.runInDebug(function () {\n        return _this._pushToDebugStack('template:' + definition.template.meta.moduleName, environment);\n      });\n\n      var outletStateReference = dynamicScope.outletState = dynamicScope.outletState.get('outlets').get(definition.outletName);\n      var outletState = outletStateReference.value();\n      return new StateBucket(outletState);\n    };\n\n    OutletComponentManager.prototype.layoutFor = function layoutFor(definition, bucket, env) {\n      return env.getCompiledBlock(OutletLayoutCompiler, definition.template);\n    };\n\n    OutletComponentManager.prototype.getSelf = function getSelf(_ref2) {\n      var outletState = _ref2.outletState;\n\n      return new _emberGlimmerUtilsReferences.RootReference(outletState.render.controller);\n    };\n\n    OutletComponentManager.prototype.getTag = function getTag() {\n      return null;\n    };\n\n    OutletComponentManager.prototype.getDestructor = function getDestructor() {\n      return null;\n    };\n\n    OutletComponentManager.prototype.didRenderLayout = function didRenderLayout(bucket) {\n      var _this2 = this;\n\n      bucket.finalize();\n\n      _emberDebug.runInDebug(function () {\n        return _this2.debugStack.pop();\n      });\n    };\n\n    OutletComponentManager.prototype.didCreateElement = function didCreateElement() {};\n\n    OutletComponentManager.prototype.didCreate = function didCreate(state) {};\n\n    OutletComponentManager.prototype.update = function update(bucket) {};\n\n    OutletComponentManager.prototype.didUpdateLayout = function didUpdateLayout(bucket) {};\n\n    OutletComponentManager.prototype.didUpdate = function didUpdate(state) {};\n\n    return OutletComponentManager;\n  })(_emberGlimmerSyntaxAbstractManager.default);\n\n  var MANAGER = new OutletComponentManager();\n\n  var TopLevelOutletComponentManager = (function (_OutletComponentManager) {\n    babelHelpers.inherits(TopLevelOutletComponentManager, _OutletComponentManager);\n\n    function TopLevelOutletComponentManager() {\n      babelHelpers.classCallCheck(this, TopLevelOutletComponentManager);\n\n      _OutletComponentManager.apply(this, arguments);\n    }\n\n    TopLevelOutletComponentManager.prototype.create = function create(environment, definition, args, dynamicScope) {\n      var _this3 = this;\n\n      _emberDebug.runInDebug(function () {\n        return _this3._pushToDebugStack('template:' + definition.template.meta.moduleName, environment);\n      });\n\n      return new StateBucket(dynamicScope.outletState.value());\n    };\n\n    TopLevelOutletComponentManager.prototype.layoutFor = function layoutFor(definition, bucket, env) {\n      return env.getCompiledBlock(TopLevelOutletLayoutCompiler, definition.template);\n    };\n\n    return TopLevelOutletComponentManager;\n  })(OutletComponentManager);\n\n  var TOP_LEVEL_MANAGER = new TopLevelOutletComponentManager();\n\n  var TopLevelOutletComponentDefinition = (function (_ComponentDefinition) {\n    babelHelpers.inherits(TopLevelOutletComponentDefinition, _ComponentDefinition);\n\n    function TopLevelOutletComponentDefinition(instance) {\n      babelHelpers.classCallCheck(this, TopLevelOutletComponentDefinition);\n\n      _ComponentDefinition.call(this, 'outlet', TOP_LEVEL_MANAGER, instance);\n      this.template = instance.template;\n      _emberUtils.generateGuid(this);\n    }\n\n    return TopLevelOutletComponentDefinition;\n  })(_glimmerRuntime.ComponentDefinition);\n\n  exports.TopLevelOutletComponentDefinition = TopLevelOutletComponentDefinition;\n\n  var TopLevelOutletLayoutCompiler = (function () {\n    function TopLevelOutletLayoutCompiler(template) {\n      babelHelpers.classCallCheck(this, TopLevelOutletLayoutCompiler);\n\n      this.template = template;\n    }\n\n    TopLevelOutletLayoutCompiler.prototype.compile = function compile(builder) {\n      builder.wrapLayout(this.template.asLayout());\n      builder.tag.static('div');\n      builder.attrs.static('id', _emberUtils.guidFor(this));\n      builder.attrs.static('class', 'ember-view');\n    };\n\n    return TopLevelOutletLayoutCompiler;\n  })();\n\n  TopLevelOutletLayoutCompiler.id = 'top-level-outlet';\n\n  var OutletComponentDefinition = (function (_ComponentDefinition2) {\n    babelHelpers.inherits(OutletComponentDefinition, _ComponentDefinition2);\n\n    function OutletComponentDefinition(outletName, template) {\n      babelHelpers.classCallCheck(this, OutletComponentDefinition);\n\n      _ComponentDefinition2.call(this, 'outlet', MANAGER, null);\n      this.outletName = outletName;\n      this.template = template;\n      _emberUtils.generateGuid(this);\n    }\n\n    return OutletComponentDefinition;\n  })(_glimmerRuntime.ComponentDefinition);\n\n  var OutletLayoutCompiler = (function () {\n    function OutletLayoutCompiler(template) {\n      babelHelpers.classCallCheck(this, OutletLayoutCompiler);\n\n      this.template = template;\n    }\n\n    OutletLayoutCompiler.prototype.compile = function compile(builder) {\n      builder.wrapLayout(this.template.asLayout());\n    };\n\n    return OutletLayoutCompiler;\n  })();\n\n  exports.OutletLayoutCompiler = OutletLayoutCompiler;\n\n  OutletLayoutCompiler.id = 'outlet';\n});\nenifed('ember-glimmer/syntax/render', ['exports', '@glimmer/runtime', '@glimmer/reference', 'ember-debug', 'ember-glimmer/utils/references', 'ember-routing', 'ember-glimmer/syntax/outlet', 'container', 'ember-glimmer/syntax/abstract-manager'], function (exports, _glimmerRuntime, _glimmerReference, _emberDebug, _emberGlimmerUtilsReferences, _emberRouting, _emberGlimmerSyntaxOutlet, _container, _emberGlimmerSyntaxAbstractManager) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  exports.renderMacro = renderMacro;\n\n  function makeComponentDefinition(vm) {\n    var env = vm.env;\n    var args = vm.getArgs();\n    var nameRef = args.positional.at(0);\n\n    _emberDebug.assert('The first argument of {{render}} must be quoted, e.g. {{render \"sidebar\"}}.', _glimmerReference.isConst(nameRef));\n    _emberDebug.assert('The second argument of {{render}} must be a path, e.g. {{render \"post\" post}}.', args.positional.length === 1 || !_glimmerReference.isConst(args.positional.at(1)));\n\n    var templateName = nameRef.value();\n\n    _emberDebug.assert('You used `{{render \\'' + templateName + '\\'}}`, but \\'' + templateName + '\\' can not be found as a template.', env.owner.hasRegistration('template:' + templateName));\n\n    var template = env.owner.lookup('template:' + templateName);\n\n    var controllerName = undefined;\n\n    if (args.named.has('controller')) {\n      var controllerNameRef = args.named.get('controller');\n\n      _emberDebug.assert('The controller argument for {{render}} must be quoted, e.g. {{render \"sidebar\" controller=\"foo\"}}.', _glimmerReference.isConst(controllerNameRef));\n\n      controllerName = controllerNameRef.value();\n\n      _emberDebug.assert('The controller name you supplied \\'' + controllerName + '\\' did not resolve to a controller.', env.owner.hasRegistration('controller:' + controllerName));\n    } else {\n      controllerName = templateName;\n    }\n\n    if (args.positional.length === 1) {\n      return new _glimmerReference.ConstReference(new RenderDefinition(controllerName, template, env, SINGLETON_RENDER_MANAGER));\n    } else {\n      return new _glimmerReference.ConstReference(new RenderDefinition(controllerName, template, env, NON_SINGLETON_RENDER_MANAGER));\n    }\n  }\n\n  /**\n    Calling ``{{render}}`` from within a template will insert another\n    template that matches the provided name. The inserted template will\n    access its properties on its own controller (rather than the controller\n    of the parent template).\n  \n    If a view class with the same name exists, the view class also will be used.\n    Note: A given controller may only be used *once* in your app in this manner.\n    A singleton instance of the controller will be created for you.\n  \n    Example:\n  \n    ```javascript\n    App.NavigationController = Ember.Controller.extend({\n      who: \"world\"\n    });\n    ```\n  \n    ```handlebars\n    <!-- navigation.hbs -->\n    Hello, {{who}}.\n    ```\n  \n    ```handlebars\n    <!-- application.hbs -->\n    <h1>My great app</h1>\n    {{render \"navigation\"}}\n    ```\n  \n    ```html\n    <h1>My great app</h1>\n    <div class='ember-view'>\n      Hello, world.\n    </div>\n    ```\n  \n    Optionally you may provide a second argument: a property path\n    that will be bound to the `model` property of the controller.\n    If a `model` property path is specified, then a new instance of the\n    controller will be created and `{{render}}` can be used multiple times\n    with the same name.\n  \n    For example if you had this `author` template.\n  \n    ```handlebars\n    <div class=\"author\">\n      Written by {{firstName}} {{lastName}}.\n      Total Posts: {{postCount}}\n    </div>\n    ```\n  \n    You could render it inside the `post` template using the `render` helper.\n  \n    ```handlebars\n    <div class=\"post\">\n      <h1>{{title}}</h1>\n      <div>{{body}}</div>\n      {{render \"author\" author}}\n    </div>\n    ```\n  \n    @method render\n    @for Ember.Templates.helpers\n    @param {String} name\n    @param {Object?} context\n    @param {Hash} options\n    @return {String} HTML string\n    @public\n  */\n\n  function renderMacro(path, params, hash, builder) {\n    if (!params) {\n      params = [];\n    }\n    var definitionArgs = [params.slice(0), hash, null, null];\n    var args = [params.slice(1), hash, null, null];\n    builder.component.dynamic(definitionArgs, makeComponentDefinition, args, builder.symbolTable);\n    return true;\n  }\n\n  var AbstractRenderManager = (function (_AbstractManager) {\n    babelHelpers.inherits(AbstractRenderManager, _AbstractManager);\n\n    function AbstractRenderManager() {\n      babelHelpers.classCallCheck(this, AbstractRenderManager);\n\n      _AbstractManager.apply(this, arguments);\n    }\n\n    AbstractRenderManager.prototype.prepareArgs = function prepareArgs(definition, args) {\n      return args;\n    };\n\n    /* abstract create(environment, definition, args, dynamicScope); */\n\n    AbstractRenderManager.prototype.layoutFor = function layoutFor(definition, bucket, env) {\n      return env.getCompiledBlock(_emberGlimmerSyntaxOutlet.OutletLayoutCompiler, definition.template);\n    };\n\n    AbstractRenderManager.prototype.getSelf = function getSelf(_ref) {\n      var controller = _ref.controller;\n\n      return new _emberGlimmerUtilsReferences.RootReference(controller);\n    };\n\n    AbstractRenderManager.prototype.getTag = function getTag() {\n      return null;\n    };\n\n    AbstractRenderManager.prototype.getDestructor = function getDestructor() {\n      return null;\n    };\n\n    AbstractRenderManager.prototype.didCreateElement = function didCreateElement() {};\n\n    AbstractRenderManager.prototype.didRenderLayout = function didRenderLayout() {};\n\n    AbstractRenderManager.prototype.didCreate = function didCreate() {};\n\n    AbstractRenderManager.prototype.update = function update() {};\n\n    AbstractRenderManager.prototype.didUpdateLayout = function didUpdateLayout() {};\n\n    AbstractRenderManager.prototype.didUpdate = function didUpdate() {};\n\n    return AbstractRenderManager;\n  })(_emberGlimmerSyntaxAbstractManager.default);\n\n  _emberDebug.runInDebug(function () {\n    AbstractRenderManager.prototype.didRenderLayout = function () {\n      this.debugStack.pop();\n    };\n  });\n\n  var SingletonRenderManager = (function (_AbstractRenderManager) {\n    babelHelpers.inherits(SingletonRenderManager, _AbstractRenderManager);\n\n    function SingletonRenderManager() {\n      babelHelpers.classCallCheck(this, SingletonRenderManager);\n\n      _AbstractRenderManager.apply(this, arguments);\n    }\n\n    SingletonRenderManager.prototype.create = function create(environment, definition, args, dynamicScope) {\n      var _this = this;\n\n      var name = definition.name;\n      var env = definition.env;\n\n      var controller = env.owner.lookup('controller:' + name) || _emberRouting.generateController(env.owner, name);\n\n      _emberDebug.runInDebug(function () {\n        return _this._pushToDebugStack('controller:' + name + ' (with the render helper)', environment);\n      });\n\n      if (dynamicScope.rootOutletState) {\n        dynamicScope.outletState = dynamicScope.rootOutletState.getOrphan(name);\n      }\n\n      return { controller: controller };\n    };\n\n    return SingletonRenderManager;\n  })(AbstractRenderManager);\n\n  var SINGLETON_RENDER_MANAGER = new SingletonRenderManager();\n\n  var NonSingletonRenderManager = (function (_AbstractRenderManager2) {\n    babelHelpers.inherits(NonSingletonRenderManager, _AbstractRenderManager2);\n\n    function NonSingletonRenderManager() {\n      babelHelpers.classCallCheck(this, NonSingletonRenderManager);\n\n      _AbstractRenderManager2.apply(this, arguments);\n    }\n\n    NonSingletonRenderManager.prototype.create = function create(environment, definition, args, dynamicScope) {\n      var _this2 = this;\n\n      var name = definition.name;\n      var env = definition.env;\n\n      var modelRef = args.positional.at(0);\n      var controllerFactory = env.owner[_container.FACTORY_FOR]('controller:' + name);\n\n      var factory = controllerFactory || _emberRouting.generateControllerFactory(env.owner, name);\n      var controller = factory.create({ model: modelRef.value() });\n\n      _emberDebug.runInDebug(function () {\n        return _this2._pushToDebugStack('controller:' + name + ' (with the render helper)', environment);\n      });\n\n      if (dynamicScope.rootOutletState) {\n        dynamicScope.outletState = dynamicScope.rootOutletState.getOrphan(name);\n      }\n\n      return { controller: controller };\n    };\n\n    NonSingletonRenderManager.prototype.update = function update(_ref2, args, dynamicScope) {\n      var controller = _ref2.controller;\n\n      controller.set('model', args.positional.at(0).value());\n    };\n\n    NonSingletonRenderManager.prototype.getDestructor = function getDestructor(_ref3) {\n      var controller = _ref3.controller;\n\n      return controller;\n    };\n\n    return NonSingletonRenderManager;\n  })(AbstractRenderManager);\n\n  var NON_SINGLETON_RENDER_MANAGER = new NonSingletonRenderManager();\n\n  var RenderDefinition = (function (_ComponentDefinition) {\n    babelHelpers.inherits(RenderDefinition, _ComponentDefinition);\n\n    function RenderDefinition(name, template, env, manager) {\n      babelHelpers.classCallCheck(this, RenderDefinition);\n\n      _ComponentDefinition.call(this, 'render', manager, null);\n\n      this.name = name;\n      this.template = template;\n      this.env = env;\n    }\n\n    return RenderDefinition;\n  })(_glimmerRuntime.ComponentDefinition);\n});\nenifed('ember-glimmer/template', ['exports', 'ember-utils', '@glimmer/runtime'], function (exports, _emberUtils, _glimmerRuntime) {\n  'use strict';\n\n  exports.default = template;\n\n  function template(json) {\n    var factory = _glimmerRuntime.templateFactory(json);\n\n    return {\n      id: factory.id,\n      meta: factory.meta,\n      create: function (props) {\n        return factory.create(props.env, { owner: props[_emberUtils.OWNER] });\n      }\n    };\n  }\n});\nenifed(\"ember-glimmer/template_registry\", [\"exports\"], function (exports) {\n  // STATE within a module is frowned apon, this exists\n  // to support Ember.TEMPLATES but shield ember internals from this legacy\n  // global API.\n  \"use strict\";\n\n  exports.setTemplates = setTemplates;\n  exports.getTemplates = getTemplates;\n  exports.getTemplate = getTemplate;\n  exports.hasTemplate = hasTemplate;\n  exports.setTemplate = setTemplate;\n  var TEMPLATES = {};\n\n  function setTemplates(templates) {\n    TEMPLATES = templates;\n  }\n\n  function getTemplates() {\n    return TEMPLATES;\n  }\n\n  function getTemplate(name) {\n    if (TEMPLATES.hasOwnProperty(name)) {\n      return TEMPLATES[name];\n    }\n  }\n\n  function hasTemplate(name) {\n    return TEMPLATES.hasOwnProperty(name);\n  }\n\n  function setTemplate(name, template) {\n    return TEMPLATES[name] = template;\n  }\n});\nenifed(\"ember-glimmer/templates/component\", [\"exports\", \"ember-glimmer/template\"], function (exports, _emberGlimmerTemplate) {\n  \"use strict\";\n\n  exports.default = _emberGlimmerTemplate.default({ \"id\": \"n+3mKSnB\", \"block\": \"{\\\"statements\\\":[[18,\\\"default\\\"]],\\\"locals\\\":[],\\\"named\\\":[],\\\"yields\\\":[\\\"default\\\"],\\\"hasPartials\\\":false}\", \"meta\": { \"moduleName\": \"ember-glimmer/templates/component.hbs\" } });\n});\nenifed(\"ember-glimmer/templates/empty\", [\"exports\", \"ember-glimmer/template\"], function (exports, _emberGlimmerTemplate) {\n  \"use strict\";\n\n  exports.default = _emberGlimmerTemplate.default({ \"id\": \"5QJJjniM\", \"block\": \"{\\\"statements\\\":[],\\\"locals\\\":[],\\\"named\\\":[],\\\"yields\\\":[],\\\"hasPartials\\\":false}\", \"meta\": { \"moduleName\": \"ember-glimmer/templates/empty.hbs\" } });\n});\nenifed(\"ember-glimmer/templates/link-to\", [\"exports\", \"ember-glimmer/template\"], function (exports, _emberGlimmerTemplate) {\n  \"use strict\";\n\n  exports.default = _emberGlimmerTemplate.default({ \"id\": \"YUwHICAk\", \"block\": \"{\\\"statements\\\":[[6,[\\\"if\\\"],[[28,[\\\"linkTitle\\\"]]],null,{\\\"statements\\\":[[1,[26,[\\\"linkTitle\\\"]],false]],\\\"locals\\\":[]},{\\\"statements\\\":[[18,\\\"default\\\"]],\\\"locals\\\":[]}]],\\\"locals\\\":[],\\\"named\\\":[],\\\"yields\\\":[\\\"default\\\"],\\\"hasPartials\\\":false}\", \"meta\": { \"moduleName\": \"ember-glimmer/templates/link-to.hbs\" } });\n});\nenifed(\"ember-glimmer/templates/outlet\", [\"exports\", \"ember-glimmer/template\"], function (exports, _emberGlimmerTemplate) {\n  \"use strict\";\n\n  exports.default = _emberGlimmerTemplate.default({ \"id\": \"bVP1WVLR\", \"block\": \"{\\\"statements\\\":[[1,[26,[\\\"outlet\\\"]],false]],\\\"locals\\\":[],\\\"named\\\":[],\\\"yields\\\":[],\\\"hasPartials\\\":false}\", \"meta\": { \"moduleName\": \"ember-glimmer/templates/outlet.hbs\" } });\n});\nenifed(\"ember-glimmer/templates/root\", [\"exports\", \"ember-glimmer/template\"], function (exports, _emberGlimmerTemplate) {\n  \"use strict\";\n\n  exports.default = _emberGlimmerTemplate.default({ \"id\": \"Cjk2vS10\", \"block\": \"{\\\"statements\\\":[[1,[33,[\\\"component\\\"],[[28,[null]]],null],false]],\\\"locals\\\":[],\\\"named\\\":[],\\\"yields\\\":[],\\\"hasPartials\\\":false}\", \"meta\": { \"moduleName\": \"ember-glimmer/templates/root.hbs\" } });\n});\nenifed('ember-glimmer/utils/bindings', ['exports', '@glimmer/reference', '@glimmer/wire-format', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-glimmer/component', 'ember-glimmer/utils/string'], function (exports, _glimmerReference, _glimmerWireFormat, _emberDebug, _emberMetal, _emberRuntime, _emberGlimmerComponent, _emberGlimmerUtilsString) {\n  'use strict';\n\n  exports.wrapComponentClassAttribute = wrapComponentClassAttribute;\n\n  function referenceForKey(component, key) {\n    return component[_emberGlimmerComponent.ROOT_REF].get(key);\n  }\n\n  function referenceForParts(component, parts) {\n    var isAttrs = parts[0] === 'attrs';\n\n    // TODO deprecate this\n    if (isAttrs) {\n      parts.shift();\n\n      if (parts.length === 1) {\n        return referenceForKey(component, parts[0]);\n      }\n    }\n\n    return _glimmerReference.referenceFromParts(component[_emberGlimmerComponent.ROOT_REF], parts);\n  }\n\n  // TODO we should probably do this transform at build time\n\n  function wrapComponentClassAttribute(hash) {\n    if (!hash) {\n      return hash;\n    }\n\n    var keys = hash[0];\n    var values = hash[1];\n\n    var index = keys.indexOf('class');\n\n    if (index !== -1) {\n      var _values$index = values[index];\n      var type = _values$index[0];\n\n      if (type === _glimmerWireFormat.Ops.Get) {\n        var getExp = values[index];\n        var path = getExp[1];\n        var propName = path[path.length - 1];\n        hash[1][index] = [_glimmerWireFormat.Ops.Helper, ['-class'], [getExp, propName]];\n      }\n    }\n\n    return hash;\n  }\n\n  var AttributeBinding = {\n    parse: function (microsyntax) {\n      var colonIndex = microsyntax.indexOf(':');\n\n      if (colonIndex === -1) {\n        _emberDebug.assert('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class');\n        return [microsyntax, microsyntax, true];\n      } else {\n        var prop = microsyntax.substring(0, colonIndex);\n        var attribute = microsyntax.substring(colonIndex + 1);\n\n        _emberDebug.assert('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class');\n\n        return [prop, attribute, false];\n      }\n    },\n\n    install: function (element, component, parsed, operations) {\n      var prop = parsed[0];\n      var attribute = parsed[1];\n      var isSimple = parsed[2];\n\n      if (attribute === 'id') {\n        var elementId = _emberMetal.get(component, prop);\n        if (elementId === undefined || elementId === null) {\n          elementId = component.elementId;\n        }\n        operations.addStaticAttribute(element, 'id', elementId);\n        return;\n      }\n\n      var isPath = prop.indexOf('.') > -1;\n      var reference = isPath ? referenceForParts(component, prop.split('.')) : referenceForKey(component, prop);\n\n      _emberDebug.assert('Illegal attributeBinding: \\'' + prop + '\\' is not a valid attribute name.', !(isSimple && isPath));\n\n      if (attribute === 'style') {\n        reference = new StyleBindingReference(reference, referenceForKey(component, 'isVisible'));\n      }\n\n      operations.addDynamicAttribute(element, attribute, reference);\n    }\n  };\n\n  exports.AttributeBinding = AttributeBinding;\n  var DISPLAY_NONE = 'display: none;';\n  var SAFE_DISPLAY_NONE = _emberGlimmerUtilsString.htmlSafe(DISPLAY_NONE);\n\n  var StyleBindingReference = (function (_CachedReference) {\n    babelHelpers.inherits(StyleBindingReference, _CachedReference);\n\n    function StyleBindingReference(inner, isVisible) {\n      babelHelpers.classCallCheck(this, StyleBindingReference);\n\n      _CachedReference.call(this);\n\n      this.tag = _glimmerReference.combine([inner.tag, isVisible.tag]);\n      this.inner = inner;\n      this.isVisible = isVisible;\n    }\n\n    StyleBindingReference.prototype.compute = function compute() {\n      var value = this.inner.value();\n      var isVisible = this.isVisible.value();\n\n      if (isVisible !== false) {\n        return value;\n      } else if (!value && value !== 0) {\n        return SAFE_DISPLAY_NONE;\n      } else {\n        var style = value + ' ' + DISPLAY_NONE;\n        return _emberGlimmerUtilsString.isHTMLSafe(value) ? _emberGlimmerUtilsString.htmlSafe(style) : style;\n      }\n    };\n\n    return StyleBindingReference;\n  })(_glimmerReference.CachedReference);\n\n  var IsVisibleBinding = {\n    install: function (element, component, operations) {\n      operations.addDynamicAttribute(element, 'style', _glimmerReference.map(referenceForKey(component, 'isVisible'), this.mapStyleValue));\n    },\n\n    mapStyleValue: function (isVisible) {\n      return isVisible === false ? SAFE_DISPLAY_NONE : null;\n    }\n  };\n\n  exports.IsVisibleBinding = IsVisibleBinding;\n  var ClassNameBinding = {\n    install: function (element, component, microsyntax, operations) {\n      var _microsyntax$split = microsyntax.split(':');\n\n      var prop = _microsyntax$split[0];\n      var truthy = _microsyntax$split[1];\n      var falsy = _microsyntax$split[2];\n\n      var isStatic = prop === '';\n\n      if (isStatic) {\n        operations.addStaticAttribute(element, 'class', truthy);\n      } else {\n        var isPath = prop.indexOf('.') > -1;\n        var parts = isPath && prop.split('.');\n        var value = isPath ? referenceForParts(component, parts) : referenceForKey(component, prop);\n        var ref = undefined;\n\n        if (truthy === undefined) {\n          ref = new SimpleClassNameBindingReference(value, isPath ? parts[parts.length - 1] : prop);\n        } else {\n          ref = new ColonClassNameBindingReference(value, truthy, falsy);\n        }\n\n        operations.addDynamicAttribute(element, 'class', ref);\n      }\n    }\n  };\n\n  exports.ClassNameBinding = ClassNameBinding;\n\n  var SimpleClassNameBindingReference = (function (_CachedReference2) {\n    babelHelpers.inherits(SimpleClassNameBindingReference, _CachedReference2);\n\n    function SimpleClassNameBindingReference(inner, path) {\n      babelHelpers.classCallCheck(this, SimpleClassNameBindingReference);\n\n      _CachedReference2.call(this);\n\n      this.tag = inner.tag;\n      this.inner = inner;\n      this.path = path;\n      this.dasherizedPath = null;\n    }\n\n    SimpleClassNameBindingReference.prototype.compute = function compute() {\n      var value = this.inner.value();\n\n      if (value === true) {\n        var path = this.path;\n        var dasherizedPath = this.dasherizedPath;\n\n        return dasherizedPath || (this.dasherizedPath = _emberRuntime.String.dasherize(path));\n      } else if (value || value === 0) {\n        return value;\n      } else {\n        return null;\n      }\n    };\n\n    return SimpleClassNameBindingReference;\n  })(_glimmerReference.CachedReference);\n\n  var ColonClassNameBindingReference = (function (_CachedReference3) {\n    babelHelpers.inherits(ColonClassNameBindingReference, _CachedReference3);\n\n    function ColonClassNameBindingReference(inner, truthy, falsy) {\n      babelHelpers.classCallCheck(this, ColonClassNameBindingReference);\n\n      _CachedReference3.call(this);\n\n      this.tag = inner.tag;\n      this.inner = inner;\n      this.truthy = truthy || null;\n      this.falsy = falsy || null;\n    }\n\n    ColonClassNameBindingReference.prototype.compute = function compute() {\n      var inner = this.inner;\n      var truthy = this.truthy;\n      var falsy = this.falsy;\n\n      return inner.value() ? truthy : falsy;\n    };\n\n    return ColonClassNameBindingReference;\n  })(_glimmerReference.CachedReference);\n});\nenifed('ember-glimmer/utils/debug-stack', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  var DebugStack = undefined;\n\n  _emberDebug.runInDebug(function () {\n    var Element = function Element(name) {\n      babelHelpers.classCallCheck(this, Element);\n\n      this.name = name;\n    };\n\n    var TemplateElement = (function (_Element) {\n      babelHelpers.inherits(TemplateElement, _Element);\n\n      function TemplateElement() {\n        babelHelpers.classCallCheck(this, TemplateElement);\n\n        _Element.apply(this, arguments);\n      }\n\n      return TemplateElement;\n    })(Element);\n\n    var EngineElement = (function (_Element2) {\n      babelHelpers.inherits(EngineElement, _Element2);\n\n      function EngineElement() {\n        babelHelpers.classCallCheck(this, EngineElement);\n\n        _Element2.apply(this, arguments);\n      }\n\n      return EngineElement;\n    })(Element);\n\n    DebugStack = (function () {\n      function DebugStack() {\n        babelHelpers.classCallCheck(this, DebugStack);\n\n        this._stack = [];\n      }\n\n      DebugStack.prototype.push = function push(name) {\n        this._stack.push(new TemplateElement(name));\n      };\n\n      DebugStack.prototype.pushEngine = function pushEngine(name) {\n        this._stack.push(new EngineElement(name));\n      };\n\n      DebugStack.prototype.pop = function pop() {\n        var element = this._stack.pop();\n\n        if (element) {\n          return element.name;\n        }\n      };\n\n      DebugStack.prototype.peek = function peek() {\n        var template = this._currentTemplate();\n        var engine = this._currentEngine();\n\n        if (engine) {\n          return '\"' + template + '\" (in \"' + engine + '\")';\n        } else if (template) {\n          return '\"' + template + '\"';\n        }\n      };\n\n      DebugStack.prototype._currentTemplate = function _currentTemplate() {\n        return this._getCurrentByType(TemplateElement);\n      };\n\n      DebugStack.prototype._currentEngine = function _currentEngine() {\n        return this._getCurrentByType(EngineElement);\n      };\n\n      DebugStack.prototype._getCurrentByType = function _getCurrentByType(type) {\n        for (var i = this._stack.length; i >= 0; i--) {\n          var element = this._stack[i];\n          if (element instanceof type) {\n            return element.name;\n          }\n        }\n      };\n\n      return DebugStack;\n    })();\n  });\n\n  exports.default = DebugStack;\n});\nenifed('ember-glimmer/utils/iterable', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/each-in', '@glimmer/reference'], function (exports, _emberUtils, _emberMetal, _emberRuntime, _emberGlimmerUtilsReferences, _emberGlimmerHelpersEachIn, _glimmerReference) {\n  'use strict';\n\n  exports.default = iterableFor;\n\n  var ITERATOR_KEY_GUID = 'be277757-bbbe-4620-9fcb-213ef433cca2';\n\n  function iterableFor(ref, keyPath) {\n    if (_emberGlimmerHelpersEachIn.isEachIn(ref)) {\n      return new EachInIterable(ref, keyForEachIn(keyPath));\n    } else {\n      return new ArrayIterable(ref, keyForArray(keyPath));\n    }\n  }\n\n  function keyForEachIn(keyPath) {\n    switch (keyPath) {\n      case '@index':\n      case undefined:\n      case null:\n        return index;\n      case '@identity':\n        return identity;\n      default:\n        return function (item) {\n          return _emberMetal.get(item, keyPath);\n        };\n    }\n  }\n\n  function keyForArray(keyPath) {\n    switch (keyPath) {\n      case '@index':\n        return index;\n      case '@identity':\n      case undefined:\n      case null:\n        return identity;\n      default:\n        return function (item) {\n          return _emberMetal.get(item, keyPath);\n        };\n    }\n  }\n\n  function index(item, index) {\n    return String(index);\n  }\n\n  function identity(item) {\n    switch (typeof item) {\n      case 'string':\n      case 'number':\n        return String(item);\n      default:\n        return _emberUtils.guidFor(item);\n    }\n  }\n\n  function ensureUniqueKey(seen, key) {\n    var seenCount = seen[key];\n\n    if (seenCount) {\n      seen[key]++;\n      return '' + key + ITERATOR_KEY_GUID + seenCount;\n    } else {\n      seen[key] = 1;\n    }\n\n    return key;\n  }\n\n  var ArrayIterator = (function () {\n    function ArrayIterator(array, keyFor) {\n      babelHelpers.classCallCheck(this, ArrayIterator);\n\n      this.array = array;\n      this.length = array.length;\n      this.keyFor = keyFor;\n      this.position = 0;\n      this.seen = Object.create(null);\n    }\n\n    ArrayIterator.prototype.isEmpty = function isEmpty() {\n      return false;\n    };\n\n    ArrayIterator.prototype.next = function next() {\n      var array = this.array;\n      var length = this.length;\n      var keyFor = this.keyFor;\n      var position = this.position;\n      var seen = this.seen;\n\n      if (position >= length) {\n        return null;\n      }\n\n      var value = array[position];\n      var memo = position;\n      var key = ensureUniqueKey(seen, keyFor(value, memo));\n\n      this.position++;\n\n      return { key: key, value: value, memo: memo };\n    };\n\n    return ArrayIterator;\n  })();\n\n  var EmberArrayIterator = (function () {\n    function EmberArrayIterator(array, keyFor) {\n      babelHelpers.classCallCheck(this, EmberArrayIterator);\n\n      this.array = array;\n      this.length = _emberMetal.get(array, 'length');\n      this.keyFor = keyFor;\n      this.position = 0;\n      this.seen = Object.create(null);\n    }\n\n    EmberArrayIterator.prototype.isEmpty = function isEmpty() {\n      return this.length === 0;\n    };\n\n    EmberArrayIterator.prototype.next = function next() {\n      var array = this.array;\n      var length = this.length;\n      var keyFor = this.keyFor;\n      var position = this.position;\n      var seen = this.seen;\n\n      if (position >= length) {\n        return null;\n      }\n\n      var value = _emberRuntime.objectAt(array, position);\n      var memo = position;\n      var key = ensureUniqueKey(seen, keyFor(value, memo));\n\n      this.position++;\n\n      return { key: key, value: value, memo: memo };\n    };\n\n    return EmberArrayIterator;\n  })();\n\n  var ObjectKeysIterator = (function () {\n    function ObjectKeysIterator(keys, values, keyFor) {\n      babelHelpers.classCallCheck(this, ObjectKeysIterator);\n\n      this.keys = keys;\n      this.values = values;\n      this.keyFor = keyFor;\n      this.position = 0;\n      this.seen = Object.create(null);\n    }\n\n    ObjectKeysIterator.prototype.isEmpty = function isEmpty() {\n      return this.keys.length === 0;\n    };\n\n    ObjectKeysIterator.prototype.next = function next() {\n      var keys = this.keys;\n      var values = this.values;\n      var keyFor = this.keyFor;\n      var position = this.position;\n      var seen = this.seen;\n\n      if (position >= keys.length) {\n        return null;\n      }\n\n      var value = values[position];\n      var memo = keys[position];\n      var key = ensureUniqueKey(seen, keyFor(value, memo));\n\n      this.position++;\n\n      return { key: key, value: value, memo: memo };\n    };\n\n    return ObjectKeysIterator;\n  })();\n\n  var EmptyIterator = (function () {\n    function EmptyIterator() {\n      babelHelpers.classCallCheck(this, EmptyIterator);\n    }\n\n    EmptyIterator.prototype.isEmpty = function isEmpty() {\n      return true;\n    };\n\n    EmptyIterator.prototype.next = function next() {\n      throw new Error('Cannot call next() on an empty iterator');\n    };\n\n    return EmptyIterator;\n  })();\n\n  var EMPTY_ITERATOR = new EmptyIterator();\n\n  var EachInIterable = (function () {\n    function EachInIterable(ref, keyFor) {\n      babelHelpers.classCallCheck(this, EachInIterable);\n\n      this.ref = ref;\n      this.keyFor = keyFor;\n\n      var valueTag = this.valueTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);\n\n      this.tag = _glimmerReference.combine([ref.tag, valueTag]);\n    }\n\n    EachInIterable.prototype.iterate = function iterate() {\n      var ref = this.ref;\n      var keyFor = this.keyFor;\n      var valueTag = this.valueTag;\n\n      var iterable = ref.value();\n\n      valueTag.update(_emberMetal.tagFor(iterable));\n\n      if (_emberMetal.isProxy(iterable)) {\n        iterable = _emberMetal.get(iterable, 'content');\n      }\n\n      var typeofIterable = typeof iterable;\n\n      if (iterable && (typeofIterable === 'object' || typeofIterable === 'function')) {\n        var keys = Object.keys(iterable);\n        var values = keys.map(function (key) {\n          return iterable[key];\n        });\n        return keys.length > 0 ? new ObjectKeysIterator(keys, values, keyFor) : EMPTY_ITERATOR;\n      } else {\n        return EMPTY_ITERATOR;\n      }\n    };\n\n    // {{each-in}} yields |key value| instead of |value key|, so the memo and\n    // value are flipped\n\n    EachInIterable.prototype.valueReferenceFor = function valueReferenceFor(item) {\n      return new _emberGlimmerUtilsReferences.UpdatablePrimitiveReference(item.memo);\n    };\n\n    EachInIterable.prototype.updateValueReference = function updateValueReference(reference, item) {\n      reference.update(item.memo);\n    };\n\n    EachInIterable.prototype.memoReferenceFor = function memoReferenceFor(item) {\n      return new _emberGlimmerUtilsReferences.UpdatableReference(item.value);\n    };\n\n    EachInIterable.prototype.updateMemoReference = function updateMemoReference(reference, item) {\n      reference.update(item.value);\n    };\n\n    return EachInIterable;\n  })();\n\n  var ArrayIterable = (function () {\n    function ArrayIterable(ref, keyFor) {\n      babelHelpers.classCallCheck(this, ArrayIterable);\n\n      this.ref = ref;\n      this.keyFor = keyFor;\n\n      var valueTag = this.valueTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);\n\n      this.tag = _glimmerReference.combine([ref.tag, valueTag]);\n    }\n\n    ArrayIterable.prototype.iterate = function iterate() {\n      var ref = this.ref;\n      var keyFor = this.keyFor;\n      var valueTag = this.valueTag;\n\n      var iterable = ref.value();\n\n      valueTag.update(_emberMetal.tagForProperty(iterable, '[]'));\n\n      if (!iterable || typeof iterable !== 'object') {\n        return EMPTY_ITERATOR;\n      }\n\n      if (Array.isArray(iterable)) {\n        return iterable.length > 0 ? new ArrayIterator(iterable, keyFor) : EMPTY_ITERATOR;\n      } else if (_emberRuntime.isEmberArray(iterable)) {\n        return _emberMetal.get(iterable, 'length') > 0 ? new EmberArrayIterator(iterable, keyFor) : EMPTY_ITERATOR;\n      } else if (typeof iterable.forEach === 'function') {\n        var _ret = (function () {\n          var array = [];\n          iterable.forEach(function (item) {\n            array.push(item);\n          });\n          return {\n            v: array.length > 0 ? new ArrayIterator(array, keyFor) : EMPTY_ITERATOR\n          };\n        })();\n\n        if (typeof _ret === 'object') return _ret.v;\n      } else {\n        return EMPTY_ITERATOR;\n      }\n    };\n\n    ArrayIterable.prototype.valueReferenceFor = function valueReferenceFor(item) {\n      return new _emberGlimmerUtilsReferences.UpdatableReference(item.value);\n    };\n\n    ArrayIterable.prototype.updateValueReference = function updateValueReference(reference, item) {\n      reference.update(item.value);\n    };\n\n    ArrayIterable.prototype.memoReferenceFor = function memoReferenceFor(item) {\n      return new _emberGlimmerUtilsReferences.UpdatablePrimitiveReference(item.memo);\n    };\n\n    ArrayIterable.prototype.updateMemoReference = function updateMemoReference(reference, item) {\n      reference.update(item.memo);\n    };\n\n    return ArrayIterable;\n  })();\n});\nenifed('ember-glimmer/utils/process-args', ['exports', 'ember-utils', '@glimmer/reference', 'ember-glimmer/component', 'ember-glimmer/utils/references', 'ember-views', 'ember-glimmer/helpers/action', '@glimmer/runtime'], function (exports, _emberUtils, _glimmerReference, _emberGlimmerComponent, _emberGlimmerUtilsReferences, _emberViews, _emberGlimmerHelpersAction, _glimmerRuntime) {\n  'use strict';\n\n  exports.gatherArgs = gatherArgs;\n\n  // Maps all variants of positional and dynamically scoped arguments\n  // into the named arguments. Input `args` and return value are both\n  // `EvaluatedArgs`.\n\n  function gatherArgs(args, definition) {\n    var namedMap = gatherNamedMap(args, definition);\n    var positionalValues = gatherPositionalValues(args, definition);\n    return mergeArgs(namedMap, positionalValues, args.blocks, definition.ComponentClass.class);\n  }\n\n  function gatherNamedMap(args, definition) {\n    var namedMap = args.named.map;\n    if (definition.args) {\n      return _emberUtils.assign({}, definition.args.named.map, namedMap);\n    } else {\n      return namedMap;\n    }\n  }\n\n  function gatherPositionalValues(args, definition) {\n    var positionalValues = args.positional.values;\n    if (definition.args) {\n      var oldPositional = definition.args.positional.values;\n      var newPositional = [];\n      newPositional.push.apply(newPositional, oldPositional);\n      newPositional.splice.apply(newPositional, [0, positionalValues.length].concat(positionalValues));\n      return newPositional;\n    } else {\n      return positionalValues;\n    }\n  }\n\n  function mergeArgs(namedMap, positionalValues, blocks, componentClass) {\n    var positionalParamsDefinition = componentClass.positionalParams;\n\n    if (positionalParamsDefinition && positionalParamsDefinition.length > 0 && positionalValues.length > 0) {\n      if (typeof positionalParamsDefinition === 'string') {\n        namedMap = mergeRestArg(namedMap, positionalValues, positionalParamsDefinition);\n      } else {\n        namedMap = mergePositionalParams(namedMap, positionalValues, positionalParamsDefinition);\n      }\n    }\n    return _glimmerRuntime.EvaluatedArgs.named(namedMap, blocks);\n  }\n\n  var EMPTY_ARGS = {\n    tag: _glimmerReference.CONSTANT_TAG,\n    value: function () {\n      var _props;\n\n      return { attrs: {}, props: (_props = { attrs: {} }, _props[_emberGlimmerComponent.ARGS] = {}, _props) };\n    }\n  };\n\n  // ComponentArgs takes EvaluatedNamedArgs and converts them into the\n  // inputs needed by CurlyComponents (attrs and props, with mutable\n  // cells, etc).\n\n  var ComponentArgs = (function () {\n    ComponentArgs.create = function create(args) {\n      if (args.named.keys.length === 0) {\n        return EMPTY_ARGS;\n      } else {\n        return new ComponentArgs(args.named);\n      }\n    };\n\n    function ComponentArgs(namedArgs) {\n      babelHelpers.classCallCheck(this, ComponentArgs);\n\n      this.tag = namedArgs.tag;\n      this.namedArgs = namedArgs;\n    }\n\n    ComponentArgs.prototype.value = function value() {\n      var namedArgs = this.namedArgs;\n\n      var keys = namedArgs.keys;\n      var attrs = namedArgs.value();\n      var props = Object.create(null);\n      var args = Object.create(null);\n\n      props[_emberGlimmerComponent.ARGS] = args;\n\n      for (var i = 0, l = keys.length; i < l; i++) {\n        var _name = keys[i];\n        var ref = namedArgs.get(_name);\n        var value = attrs[_name];\n\n        if (typeof value === 'function' && value[_emberGlimmerHelpersAction.ACTION]) {\n          attrs[_name] = value;\n        } else if (ref[_emberGlimmerUtilsReferences.UPDATE]) {\n          attrs[_name] = new MutableCell(ref, value);\n        }\n\n        args[_name] = ref;\n        props[_name] = value;\n      }\n\n      props.attrs = attrs;\n\n      return { attrs: attrs, props: props };\n    };\n\n    return ComponentArgs;\n  })();\n\n  exports.ComponentArgs = ComponentArgs;\n\n  function mergeRestArg(namedMap, positionalValues, restArgName) {\n    var mergedNamed = _emberUtils.assign({}, namedMap);\n    mergedNamed[restArgName] = _glimmerRuntime.EvaluatedPositionalArgs.create(positionalValues);\n    return mergedNamed;\n  }\n\n  function mergePositionalParams(namedMap, values, positionalParamNames) {\n    var mergedNamed = _emberUtils.assign({}, namedMap);\n    var length = Math.min(values.length, positionalParamNames.length);\n    for (var i = 0; i < length; i++) {\n      var _name2 = positionalParamNames[i];\n      mergedNamed[_name2] = values[i];\n    }\n    return mergedNamed;\n  }\n\n  var REF = _emberUtils.symbol('REF');\n\n  var MutableCell = (function () {\n    function MutableCell(ref, value) {\n      babelHelpers.classCallCheck(this, MutableCell);\n\n      this[_emberViews.MUTABLE_CELL] = true;\n      this[REF] = ref;\n      this.value = value;\n    }\n\n    MutableCell.prototype.update = function update(val) {\n      this[REF][_emberGlimmerUtilsReferences.UPDATE](val);\n    };\n\n    return MutableCell;\n  })();\n});\nenifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal', '@glimmer/reference', '@glimmer/runtime', 'ember-glimmer/utils/to-bool', 'ember-glimmer/helper', 'ember-debug'], function (exports, _emberUtils, _emberMetal, _glimmerReference, _glimmerRuntime, _emberGlimmerUtilsToBool, _emberGlimmerHelper, _emberDebug) {\n  'use strict';\n\n  var UPDATE = _emberUtils.symbol('UPDATE');\n\n  exports.UPDATE = UPDATE;\n  exports.NULL_REFERENCE = _glimmerRuntime.NULL_REFERENCE;\n  exports.UNDEFINED_REFERENCE = _glimmerRuntime.UNDEFINED_REFERENCE;\n\n  // @abstract\n  // @implements PathReference\n\n  var EmberPathReference = (function () {\n    function EmberPathReference() {\n      babelHelpers.classCallCheck(this, EmberPathReference);\n    }\n\n    // @abstract\n\n    // @abstract get tag()\n    // @abstract value()\n\n    EmberPathReference.prototype.get = function get(key) {\n      return PropertyReference.create(this, key);\n    };\n\n    return EmberPathReference;\n  })();\n\n  var CachedReference = (function (_EmberPathReference) {\n    babelHelpers.inherits(CachedReference, _EmberPathReference);\n\n    function CachedReference() {\n      babelHelpers.classCallCheck(this, CachedReference);\n\n      _EmberPathReference.call(this);\n      this._lastRevision = null;\n      this._lastValue = null;\n    }\n\n    // @implements PathReference\n\n    CachedReference.prototype.value = function value() {\n      var tag = this.tag;\n      var _lastRevision = this._lastRevision;\n      var _lastValue = this._lastValue;\n\n      if (!_lastRevision || !tag.validate(_lastRevision)) {\n        _lastValue = this._lastValue = this.compute();\n        this._lastRevision = tag.value();\n      }\n\n      return _lastValue;\n    };\n\n    // @abstract compute()\n    return CachedReference;\n  })(EmberPathReference);\n\n  exports.CachedReference = CachedReference;\n\n  var RootReference = (function (_ConstReference) {\n    babelHelpers.inherits(RootReference, _ConstReference);\n\n    function RootReference(value) {\n      babelHelpers.classCallCheck(this, RootReference);\n\n      _ConstReference.call(this, value);\n      this.children = Object.create(null);\n    }\n\n    RootReference.prototype.get = function get(propertyKey) {\n      var ref = this.children[propertyKey];\n\n      if (!ref) {\n        ref = this.children[propertyKey] = new RootPropertyReference(this.inner, propertyKey);\n      }\n\n      return ref;\n    };\n\n    return RootReference;\n  })(_glimmerReference.ConstReference);\n\n  exports.RootReference = RootReference;\n\n  var TwoWayFlushDetectionTag = undefined;\n\n  if (true || false) {\n    TwoWayFlushDetectionTag = (function () {\n      function _class(tag, key, ref) {\n        babelHelpers.classCallCheck(this, _class);\n\n        this.tag = tag;\n        this.parent = null;\n        this.key = key;\n        this.ref = ref;\n      }\n\n      _class.prototype.value = function value() {\n        return this.tag.value();\n      };\n\n      _class.prototype.validate = function validate(ticket) {\n        var parent = this.parent;\n        var key = this.key;\n\n        var isValid = this.tag.validate(ticket);\n\n        if (isValid && parent) {\n          _emberMetal.didRender(parent, key, this.ref);\n        }\n\n        return isValid;\n      };\n\n      _class.prototype.didCompute = function didCompute(parent) {\n        this.parent = parent;\n        _emberMetal.didRender(parent, this.key, this.ref);\n      };\n\n      return _class;\n    })();\n  }\n\n  var PropertyReference = (function (_CachedReference) {\n    babelHelpers.inherits(PropertyReference, _CachedReference);\n\n    function PropertyReference() {\n      babelHelpers.classCallCheck(this, PropertyReference);\n\n      _CachedReference.apply(this, arguments);\n    }\n\n    PropertyReference.create = function create(parentReference, propertyKey) {\n      if (_glimmerReference.isConst(parentReference)) {\n        return new RootPropertyReference(parentReference.value(), propertyKey);\n      } else {\n        return new NestedPropertyReference(parentReference, propertyKey);\n      }\n    };\n\n    PropertyReference.prototype.get = function get(key) {\n      return new NestedPropertyReference(this, key);\n    };\n\n    return PropertyReference;\n  })(CachedReference);\n\n  exports.PropertyReference = PropertyReference;\n\n  var RootPropertyReference = (function (_PropertyReference) {\n    babelHelpers.inherits(RootPropertyReference, _PropertyReference);\n\n    function RootPropertyReference(parentValue, propertyKey) {\n      babelHelpers.classCallCheck(this, RootPropertyReference);\n\n      _PropertyReference.call(this);\n\n      this._parentValue = parentValue;\n      this._propertyKey = propertyKey;\n\n      if (true || false) {\n        this.tag = new TwoWayFlushDetectionTag(_emberMetal.tagForProperty(parentValue, propertyKey), propertyKey, this);\n      } else {\n        this.tag = _emberMetal.tagForProperty(parentValue, propertyKey);\n      }\n\n      if (true) {\n        _emberMetal.watchKey(parentValue, propertyKey);\n      }\n    }\n\n    RootPropertyReference.prototype.compute = function compute() {\n      var _parentValue = this._parentValue;\n      var _propertyKey = this._propertyKey;\n\n      if (true || false) {\n        this.tag.didCompute(_parentValue);\n      }\n\n      return _emberMetal.get(_parentValue, _propertyKey);\n    };\n\n    RootPropertyReference.prototype[UPDATE] = function (value) {\n      _emberMetal.set(this._parentValue, this._propertyKey, value);\n    };\n\n    return RootPropertyReference;\n  })(PropertyReference);\n\n  exports.RootPropertyReference = RootPropertyReference;\n\n  var NestedPropertyReference = (function (_PropertyReference2) {\n    babelHelpers.inherits(NestedPropertyReference, _PropertyReference2);\n\n    function NestedPropertyReference(parentReference, propertyKey) {\n      babelHelpers.classCallCheck(this, NestedPropertyReference);\n\n      _PropertyReference2.call(this);\n\n      var parentReferenceTag = parentReference.tag;\n      var parentObjectTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);\n\n      this._parentReference = parentReference;\n      this._parentObjectTag = parentObjectTag;\n      this._propertyKey = propertyKey;\n\n      if (true || false) {\n        var tag = _glimmerReference.combine([parentReferenceTag, parentObjectTag]);\n        this.tag = new TwoWayFlushDetectionTag(tag, propertyKey, this);\n      } else {\n        this.tag = _glimmerReference.combine([parentReferenceTag, parentObjectTag]);\n      }\n    }\n\n    NestedPropertyReference.prototype.compute = function compute() {\n      var _parentReference = this._parentReference;\n      var _parentObjectTag = this._parentObjectTag;\n      var _propertyKey = this._propertyKey;\n\n      var parentValue = _parentReference.value();\n\n      _parentObjectTag.update(_emberMetal.tagForProperty(parentValue, _propertyKey));\n\n      if (typeof parentValue === 'string' && _propertyKey === 'length') {\n        return parentValue.length;\n      }\n\n      if (typeof parentValue === 'object' && parentValue) {\n        if (true) {\n          _emberMetal.watchKey(parentValue, _propertyKey);\n        }\n\n        if (true || false) {\n          this.tag.didCompute(parentValue);\n        }\n\n        return _emberMetal.get(parentValue, _propertyKey);\n      } else {\n        return undefined;\n      }\n    };\n\n    NestedPropertyReference.prototype[UPDATE] = function (value) {\n      var parent = this._parentReference.value();\n      _emberMetal.set(parent, this._propertyKey, value);\n    };\n\n    return NestedPropertyReference;\n  })(PropertyReference);\n\n  exports.NestedPropertyReference = NestedPropertyReference;\n\n  var UpdatableReference = (function (_EmberPathReference2) {\n    babelHelpers.inherits(UpdatableReference, _EmberPathReference2);\n\n    function UpdatableReference(value) {\n      babelHelpers.classCallCheck(this, UpdatableReference);\n\n      _EmberPathReference2.call(this);\n\n      this.tag = new _glimmerReference.DirtyableTag();\n      this._value = value;\n    }\n\n    UpdatableReference.prototype.value = function value() {\n      return this._value;\n    };\n\n    UpdatableReference.prototype.update = function update(value) {\n      var _value = this._value;\n\n      if (value !== _value) {\n        this.tag.dirty();\n        this._value = value;\n      }\n    };\n\n    return UpdatableReference;\n  })(EmberPathReference);\n\n  exports.UpdatableReference = UpdatableReference;\n\n  var UpdatablePrimitiveReference = (function (_UpdatableReference) {\n    babelHelpers.inherits(UpdatablePrimitiveReference, _UpdatableReference);\n\n    function UpdatablePrimitiveReference() {\n      babelHelpers.classCallCheck(this, UpdatablePrimitiveReference);\n\n      _UpdatableReference.apply(this, arguments);\n    }\n\n    UpdatablePrimitiveReference.prototype.get = function get() {\n      return _glimmerRuntime.UNDEFINED_REFERENCE;\n    };\n\n    return UpdatablePrimitiveReference;\n  })(UpdatableReference);\n\n  exports.UpdatablePrimitiveReference = UpdatablePrimitiveReference;\n\n  var ConditionalReference = (function (_GlimmerConditionalReference) {\n    babelHelpers.inherits(ConditionalReference, _GlimmerConditionalReference);\n\n    ConditionalReference.create = function create(reference) {\n      if (_glimmerReference.isConst(reference)) {\n        var value = reference.value();\n\n        if (_emberMetal.isProxy(value)) {\n          return new RootPropertyReference(value, 'isTruthy');\n        } else {\n          return _glimmerRuntime.PrimitiveReference.create(_emberGlimmerUtilsToBool.default(value));\n        }\n      }\n\n      return new ConditionalReference(reference);\n    };\n\n    function ConditionalReference(reference) {\n      babelHelpers.classCallCheck(this, ConditionalReference);\n\n      _GlimmerConditionalReference.call(this, reference);\n\n      this.objectTag = new _glimmerReference.UpdatableTag(_glimmerReference.CONSTANT_TAG);\n      this.tag = _glimmerReference.combine([reference.tag, this.objectTag]);\n    }\n\n    ConditionalReference.prototype.toBool = function toBool(predicate) {\n      if (_emberMetal.isProxy(predicate)) {\n        this.objectTag.update(_emberMetal.tagForProperty(predicate, 'isTruthy'));\n        return _emberMetal.get(predicate, 'isTruthy');\n      } else {\n        this.objectTag.update(_emberMetal.tagFor(predicate));\n        return _emberGlimmerUtilsToBool.default(predicate);\n      }\n    };\n\n    return ConditionalReference;\n  })(_glimmerRuntime.ConditionalReference);\n\n  exports.ConditionalReference = ConditionalReference;\n\n  var SimpleHelperReference = (function (_CachedReference2) {\n    babelHelpers.inherits(SimpleHelperReference, _CachedReference2);\n\n    SimpleHelperReference.create = function create(helper, args) {\n      if (_glimmerReference.isConst(args)) {\n        var _ret = (function () {\n          var positional = args.positional;\n          var named = args.named;\n\n          var positionalValue = positional.value();\n          var namedValue = named.value();\n\n          _emberDebug.runInDebug(function () {\n            if (_emberUtils.HAS_NATIVE_WEAKMAP) {\n              Object.freeze(positionalValue);\n              Object.freeze(namedValue);\n            }\n          });\n\n          var result = helper(positionalValue, namedValue);\n\n          if (result === null) {\n            return {\n              v: _glimmerRuntime.NULL_REFERENCE\n            };\n          } else if (result === undefined) {\n            return {\n              v: _glimmerRuntime.UNDEFINED_REFERENCE\n            };\n          } else if (typeof result === 'object') {\n            return {\n              v: new RootReference(result)\n            };\n          } else {\n            return {\n              v: _glimmerRuntime.PrimitiveReference.create(result)\n            };\n          }\n        })();\n\n        if (typeof _ret === 'object') return _ret.v;\n      } else {\n        return new SimpleHelperReference(helper, args);\n      }\n    };\n\n    function SimpleHelperReference(helper, args) {\n      babelHelpers.classCallCheck(this, SimpleHelperReference);\n\n      _CachedReference2.call(this);\n\n      this.tag = args.tag;\n      this.helper = helper;\n      this.args = args;\n    }\n\n    SimpleHelperReference.prototype.compute = function compute() {\n      var helper = this.helper;\n      var _args = this.args;\n      var positional = _args.positional;\n      var named = _args.named;\n\n      var positionalValue = positional.value();\n      var namedValue = named.value();\n\n      _emberDebug.runInDebug(function () {\n        if (_emberUtils.HAS_NATIVE_WEAKMAP) {\n          Object.freeze(positionalValue);\n          Object.freeze(namedValue);\n        }\n      });\n\n      return helper(positionalValue, namedValue);\n    };\n\n    return SimpleHelperReference;\n  })(CachedReference);\n\n  exports.SimpleHelperReference = SimpleHelperReference;\n\n  var ClassBasedHelperReference = (function (_CachedReference3) {\n    babelHelpers.inherits(ClassBasedHelperReference, _CachedReference3);\n\n    ClassBasedHelperReference.create = function create(helperClass, vm, args) {\n      var instance = helperClass.create();\n      vm.newDestroyable(instance);\n      return new ClassBasedHelperReference(instance, args);\n    };\n\n    function ClassBasedHelperReference(instance, args) {\n      babelHelpers.classCallCheck(this, ClassBasedHelperReference);\n\n      _CachedReference3.call(this);\n\n      this.tag = _glimmerReference.combine([instance[_emberGlimmerHelper.RECOMPUTE_TAG], args.tag]);\n      this.instance = instance;\n      this.args = args;\n    }\n\n    ClassBasedHelperReference.prototype.compute = function compute() {\n      var instance = this.instance;\n      var _args2 = this.args;\n      var positional = _args2.positional;\n      var named = _args2.named;\n\n      var positionalValue = positional.value();\n      var namedValue = named.value();\n\n      _emberDebug.runInDebug(function () {\n        if (_emberUtils.HAS_NATIVE_WEAKMAP) {\n          Object.freeze(positionalValue);\n          Object.freeze(namedValue);\n        }\n      });\n\n      return instance.compute(positionalValue, namedValue);\n    };\n\n    return ClassBasedHelperReference;\n  })(CachedReference);\n\n  exports.ClassBasedHelperReference = ClassBasedHelperReference;\n\n  var InternalHelperReference = (function (_CachedReference4) {\n    babelHelpers.inherits(InternalHelperReference, _CachedReference4);\n\n    function InternalHelperReference(helper, args) {\n      babelHelpers.classCallCheck(this, InternalHelperReference);\n\n      _CachedReference4.call(this);\n\n      this.tag = args.tag;\n      this.helper = helper;\n      this.args = args;\n    }\n\n    // @implements PathReference\n\n    InternalHelperReference.prototype.compute = function compute() {\n      var helper = this.helper;\n      var args = this.args;\n\n      return helper(args);\n    };\n\n    return InternalHelperReference;\n  })(CachedReference);\n\n  exports.InternalHelperReference = InternalHelperReference;\n\n  var UnboundReference = (function (_ConstReference2) {\n    babelHelpers.inherits(UnboundReference, _ConstReference2);\n\n    function UnboundReference() {\n      babelHelpers.classCallCheck(this, UnboundReference);\n\n      _ConstReference2.apply(this, arguments);\n    }\n\n    UnboundReference.create = function create(value) {\n      if (value === null) {\n        return _glimmerRuntime.NULL_REFERENCE;\n      } else if (value === undefined) {\n        return _glimmerRuntime.UNDEFINED_REFERENCE;\n      } else if (typeof value === 'object') {\n        return new UnboundReference(value);\n      } else {\n        return _glimmerRuntime.PrimitiveReference.create(value);\n      }\n    };\n\n    UnboundReference.prototype.get = function get(key) {\n      return new UnboundReference(_emberMetal.get(this.inner, key));\n    };\n\n    return UnboundReference;\n  })(_glimmerReference.ConstReference);\n\n  exports.UnboundReference = UnboundReference;\n});\nenifed('ember-glimmer/utils/string', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n\n  'use strict';\n\n  exports.getSafeString = getSafeString;\n  exports.escapeExpression = escapeExpression;\n  exports.htmlSafe = htmlSafe;\n  exports.isHTMLSafe = isHTMLSafe;\n\n  var SafeString = (function () {\n    function SafeString(string) {\n      babelHelpers.classCallCheck(this, SafeString);\n\n      this.string = string;\n    }\n\n    SafeString.prototype.toString = function toString() {\n      return '' + this.string;\n    };\n\n    SafeString.prototype.toHTML = function toHTML() {\n      return this.toString();\n    };\n\n    return SafeString;\n  })();\n\n  exports.SafeString = SafeString;\n\n  function getSafeString() {\n    _emberDebug.deprecate('Ember.Handlebars.SafeString is deprecated in favor of Ember.String.htmlSafe', false, {\n      id: 'ember-htmlbars.ember-handlebars-safestring',\n      until: '3.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_use-ember-string-htmlsafe-over-ember-handlebars-safestring'\n    });\n\n    return SafeString;\n  }\n\n  var escape = {\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;',\n    '\"': '&quot;',\n    // jscs:disable\n    \"'\": '&#x27;',\n    // jscs:enable\n    '`': '&#x60;',\n    '=': '&#x3D;'\n  };\n\n  var possible = /[&<>\"'`=]/;\n  var badChars = /[&<>\"'`=]/g;\n\n  function escapeChar(chr) {\n    return escape[chr];\n  }\n\n  function escapeExpression(string) {\n    if (typeof string !== 'string') {\n      // don't escape SafeStrings, since they're already safe\n      if (string && string.toHTML) {\n        return string.toHTML();\n      } else if (string == null) {\n        return '';\n      } else if (!string) {\n        return string + '';\n      }\n\n      // Force a string conversion as this will be done by the append regardless and\n      // the regex test will do this transparently behind the scenes, causing issues if\n      // an object's to string has escaped characters in it.\n      string = '' + string;\n    }\n\n    if (!possible.test(string)) {\n      return string;\n    }\n    return string.replace(badChars, escapeChar);\n  }\n\n  /**\n    Mark a string as safe for unescaped output with Ember templates. If you\n    return HTML from a helper, use this function to\n    ensure Ember's rendering layer does not escape the HTML.\n  \n    ```javascript\n    Ember.String.htmlSafe('<div>someString</div>')\n    ```\n  \n    @method htmlSafe\n    @for Ember.String\n    @static\n    @return {Handlebars.SafeString} A string that will not be HTML escaped by Handlebars.\n    @public\n  */\n\n  function htmlSafe(str) {\n    if (str === null || str === undefined) {\n      str = '';\n    } else if (typeof str !== 'string') {\n      str = '' + str;\n    }\n    return new SafeString(str);\n  }\n\n  /**\n    Detects if a string was decorated using `Ember.String.htmlSafe`.\n  \n    ```javascript\n    var plainString = 'plain string',\n        safeString = Ember.String.htmlSafe('<div>someValue</div>');\n  \n    Ember.String.isHTMLSafe(plainString); // false\n    Ember.String.isHTMLSafe(safeString);  // true\n    ```\n  \n    @method isHTMLSafe\n    @for Ember.String\n    @static\n    @return {Boolean} `true` if the string was decorated with `htmlSafe`, `false` otherwise.\n    @public\n  */\n\n  function isHTMLSafe(str) {\n    return str && typeof str.toHTML === 'function';\n  }\n});\nenifed('ember-glimmer/utils/to-bool', ['exports', 'ember-runtime', 'ember-metal'], function (exports, _emberRuntime, _emberMetal) {\n  'use strict';\n\n  exports.default = toBool;\n\n  function toBool(predicate) {\n    if (!predicate) {\n      return false;\n    }\n\n    if (predicate === true) {\n      return true;\n    }\n\n    if (_emberRuntime.isArray(predicate)) {\n      return _emberMetal.get(predicate, 'length') !== 0;\n    }\n\n    return true;\n  }\n});\nenifed('ember-glimmer/views/outlet', ['exports', 'ember-utils', '@glimmer/reference', 'ember-environment', 'ember-metal'], function (exports, _emberUtils, _glimmerReference, _emberEnvironment, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-glimmer\n  */\n  'use strict';\n\n  var OutletStateReference = (function () {\n    function OutletStateReference(outletView) {\n      babelHelpers.classCallCheck(this, OutletStateReference);\n\n      this.outletView = outletView;\n      this.tag = outletView._tag;\n    }\n\n    // So this is a relic of the past that SHOULD go away\n    // in 3.0. Preferably it is deprecated in the release that\n    // follows the Glimmer release.\n\n    OutletStateReference.prototype.get = function get(key) {\n      return new ChildOutletStateReference(this, key);\n    };\n\n    OutletStateReference.prototype.value = function value() {\n      return this.outletView.outletState;\n    };\n\n    OutletStateReference.prototype.getOrphan = function getOrphan(name) {\n      return new OrphanedOutletStateReference(this, name);\n    };\n\n    OutletStateReference.prototype.update = function update(state) {\n      this.outletView.setOutletState(state);\n    };\n\n    return OutletStateReference;\n  })();\n\n  var OrphanedOutletStateReference = (function (_OutletStateReference) {\n    babelHelpers.inherits(OrphanedOutletStateReference, _OutletStateReference);\n\n    function OrphanedOutletStateReference(root, name) {\n      babelHelpers.classCallCheck(this, OrphanedOutletStateReference);\n\n      _OutletStateReference.call(this, root.outletView);\n      this.root = root;\n      this.name = name;\n    }\n\n    OrphanedOutletStateReference.prototype.value = function value() {\n      var rootState = this.root.value();\n\n      var orphans = rootState.outlets.main.outlets.__ember_orphans__;\n\n      if (!orphans) {\n        return null;\n      }\n\n      var matched = orphans.outlets[this.name];\n\n      if (!matched) {\n        return null;\n      }\n\n      var state = Object.create(null);\n      state[matched.render.outlet] = matched;\n      matched.wasUsed = true;\n      return { outlets: state };\n    };\n\n    return OrphanedOutletStateReference;\n  })(OutletStateReference);\n\n  var ChildOutletStateReference = (function () {\n    function ChildOutletStateReference(parent, key) {\n      babelHelpers.classCallCheck(this, ChildOutletStateReference);\n\n      this.parent = parent;\n      this.key = key;\n      this.tag = parent.tag;\n    }\n\n    ChildOutletStateReference.prototype.get = function get(key) {\n      return new ChildOutletStateReference(this, key);\n    };\n\n    ChildOutletStateReference.prototype.value = function value() {\n      return this.parent.value()[this.key];\n    };\n\n    return ChildOutletStateReference;\n  })();\n\n  var OutletView = (function () {\n    OutletView.extend = function extend(injections) {\n      return (function (_OutletView) {\n        babelHelpers.inherits(_class, _OutletView);\n\n        function _class() {\n          babelHelpers.classCallCheck(this, _class);\n\n          _OutletView.apply(this, arguments);\n        }\n\n        _class.create = function create(options) {\n          if (options) {\n            return _OutletView.create.call(this, _emberUtils.assign({}, injections, options));\n          } else {\n            return _OutletView.create.call(this, injections);\n          }\n        };\n\n        return _class;\n      })(OutletView);\n    };\n\n    OutletView.reopenClass = function reopenClass(injections) {\n      _emberUtils.assign(this, injections);\n    };\n\n    OutletView.create = function create(options) {\n      var _environment = options._environment;\n      var renderer = options.renderer;\n      var template = options.template;\n\n      var owner = options[_emberUtils.OWNER];\n      return new OutletView(_environment, renderer, owner, template);\n    };\n\n    function OutletView(_environment, renderer, owner, template) {\n      babelHelpers.classCallCheck(this, OutletView);\n\n      this._environment = _environment;\n      this.renderer = renderer;\n      this.owner = owner;\n      this.template = template;\n      this.outletState = null;\n      this._tag = new _glimmerReference.DirtyableTag();\n    }\n\n    OutletView.prototype.appendTo = function appendTo(selector) {\n      var env = this._environment || _emberEnvironment.environment;\n      var target = undefined;\n\n      if (env.hasDOM) {\n        target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n      } else {\n        target = selector;\n      }\n\n      _emberMetal.run.schedule('render', this.renderer, 'appendOutletView', this, target);\n    };\n\n    OutletView.prototype.rerender = function rerender() {};\n\n    OutletView.prototype.setOutletState = function setOutletState(state) {\n      this.outletState = {\n        outlets: {\n          main: state\n        },\n        render: {\n          owner: undefined,\n          into: undefined,\n          outlet: 'main',\n          name: '-top-level',\n          controller: undefined,\n          ViewClass: undefined,\n          template: undefined\n        }\n      };\n      this._tag.dirty();\n    };\n\n    OutletView.prototype.toReference = function toReference() {\n      return new OutletStateReference(this);\n    };\n\n    OutletView.prototype.destroy = function destroy() {};\n\n    return OutletView;\n  })();\n\n  exports.default = OutletView;\n});\nenifed('ember-metal/alias', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-metal/properties', 'ember-metal/computed', 'ember-metal/meta', 'ember-metal/dependent_keys'], function (exports, _emberUtils, _emberDebug, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalProperties, _emberMetalComputed, _emberMetalMeta, _emberMetalDependent_keys) {\n  'use strict';\n\n  exports.default = alias;\n\n  var CONSUMED = {};\n\n  function alias(altKey) {\n    return new AliasedProperty(altKey);\n  }\n\n  var AliasedProperty = (function (_Descriptor) {\n    babelHelpers.inherits(AliasedProperty, _Descriptor);\n\n    function AliasedProperty(altKey) {\n      babelHelpers.classCallCheck(this, AliasedProperty);\n\n      _Descriptor.call(this);\n      this.isDescriptor = true;\n      this.altKey = altKey;\n      this._dependentKeys = [altKey];\n    }\n\n    AliasedProperty.prototype.setup = function setup(obj, keyName) {\n      _emberDebug.assert('Setting alias \\'' + keyName + '\\' on self', this.altKey !== keyName);\n      var meta = _emberMetalMeta.meta(obj);\n      if (meta.peekWatching(keyName)) {\n        _emberMetalDependent_keys.addDependentKeys(this, obj, keyName, meta);\n      }\n    };\n\n    AliasedProperty.prototype.teardown = function teardown(obj, keyName) {\n      var meta = _emberMetalMeta.meta(obj);\n      if (meta.peekWatching(keyName)) {\n        _emberMetalDependent_keys.removeDependentKeys(this, obj, keyName, meta);\n      }\n    };\n\n    AliasedProperty.prototype.willWatch = function willWatch(obj, keyName) {\n      _emberMetalDependent_keys.addDependentKeys(this, obj, keyName, _emberMetalMeta.meta(obj));\n    };\n\n    AliasedProperty.prototype.didUnwatch = function didUnwatch(obj, keyName) {\n      _emberMetalDependent_keys.removeDependentKeys(this, obj, keyName, _emberMetalMeta.meta(obj));\n    };\n\n    AliasedProperty.prototype.get = function get(obj, keyName) {\n      var ret = _emberMetalProperty_get.get(obj, this.altKey);\n      var meta = _emberMetalMeta.meta(obj);\n      var cache = meta.writableCache();\n      if (cache[keyName] !== CONSUMED) {\n        cache[keyName] = CONSUMED;\n        _emberMetalDependent_keys.addDependentKeys(this, obj, keyName, meta);\n      }\n      return ret;\n    };\n\n    AliasedProperty.prototype.set = function set(obj, keyName, value) {\n      return _emberMetalProperty_set.set(obj, this.altKey, value);\n    };\n\n    AliasedProperty.prototype.readOnly = function readOnly() {\n      this.set = AliasedProperty_readOnlySet;\n      return this;\n    };\n\n    AliasedProperty.prototype.oneWay = function oneWay() {\n      this.set = AliasedProperty_oneWaySet;\n      return this;\n    };\n\n    return AliasedProperty;\n  })(_emberMetalProperties.Descriptor);\n\n  exports.AliasedProperty = AliasedProperty;\n\n  function AliasedProperty_readOnlySet(obj, keyName, value) {\n    throw new _emberDebug.Error('Cannot set read-only property \\'' + keyName + '\\' on object: ' + _emberUtils.inspect(obj));\n  }\n\n  function AliasedProperty_oneWaySet(obj, keyName, value) {\n    _emberMetalProperties.defineProperty(obj, keyName, null);\n    return _emberMetalProperty_set.set(obj, keyName, value);\n  }\n\n  // Backwards compatibility with Ember Data.\n  AliasedProperty.prototype._meta = undefined;\n  AliasedProperty.prototype.meta = _emberMetalComputed.ComputedProperty.prototype.meta;\n});\nenifed('ember-metal/binding', ['exports', 'ember-utils', 'ember-console', 'ember-environment', 'ember-metal/run_loop', 'ember-debug', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-metal/events', 'ember-metal/observer', 'ember-metal/path_cache'], function (exports, _emberUtils, _emberConsole, _emberEnvironment, _emberMetalRun_loop, _emberDebug, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalEvents, _emberMetalObserver, _emberMetalPath_cache) {\n  'use strict';\n\n  exports.bind = bind;\n\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  // ..........................................................\n  // BINDING\n  //\n\n  var Binding = (function () {\n    function Binding(toPath, fromPath) {\n      babelHelpers.classCallCheck(this, Binding);\n\n      // Configuration\n      this._from = fromPath;\n      this._to = toPath;\n      this._oneWay = undefined;\n\n      // State\n      this._direction = undefined;\n      this._readyToSync = undefined;\n      this._fromObj = undefined;\n      this._fromPath = undefined;\n      this._toObj = undefined;\n    }\n\n    /**\n      @class Binding\n      @namespace Ember\n      @deprecated See http://emberjs.com/deprecations/v2.x#toc_ember-binding\n      @public\n    */\n\n    /**\n      This copies the Binding so it can be connected to another object.\n       @method copy\n      @return {Ember.Binding} `this`\n      @public\n    */\n\n    Binding.prototype.copy = function copy() {\n      var copy = new Binding(this._to, this._from);\n      if (this._oneWay) {\n        copy._oneWay = true;\n      }\n      return copy;\n    };\n\n    // ..........................................................\n    // CONFIG\n    //\n\n    /**\n      This will set `from` property path to the specified value. It will not\n      attempt to resolve this property path to an actual object until you\n      connect the binding.\n       The binding will search for the property path starting at the root object\n      you pass when you `connect()` the binding. It follows the same rules as\n      `get()` - see that method for more information.\n       @method from\n      @param {String} path The property path to connect to.\n      @return {Ember.Binding} `this`\n      @public\n    */\n\n    Binding.prototype.from = function from(path) {\n      this._from = path;\n      return this;\n    };\n\n    /**\n      This will set the `to` property path to the specified value. It will not\n      attempt to resolve this property path to an actual object until you\n      connect the binding.\n       The binding will search for the property path starting at the root object\n      you pass when you `connect()` the binding. It follows the same rules as\n      `get()` - see that method for more information.\n       @method to\n      @param {String|Tuple} path A property path or tuple.\n      @return {Ember.Binding} `this`\n      @public\n    */\n\n    Binding.prototype.to = function to(path) {\n      this._to = path;\n      return this;\n    };\n\n    /**\n      Configures the binding as one way. A one-way binding will relay changes\n      on the `from` side to the `to` side, but not the other way around. This\n      means that if you change the `to` side directly, the `from` side may have\n      a different value.\n       @method oneWay\n      @return {Ember.Binding} `this`\n      @public\n    */\n\n    Binding.prototype.oneWay = function oneWay() {\n      this._oneWay = true;\n      return this;\n    };\n\n    /**\n      @method toString\n      @return {String} string representation of binding\n      @public\n    */\n\n    Binding.prototype.toString = function toString() {\n      var oneWay = this._oneWay ? '[oneWay]' : '';\n      return 'Ember.Binding<' + _emberUtils.guidFor(this) + '>(' + this._from + ' -> ' + this._to + ')' + oneWay;\n    };\n\n    // ..........................................................\n    // CONNECT AND SYNC\n    //\n\n    /**\n      Attempts to connect this binding instance so that it can receive and relay\n      changes. This method will raise an exception if you have not set the\n      from/to properties yet.\n       @method connect\n      @param {Object} obj The root object for this binding.\n      @return {Ember.Binding} `this`\n      @public\n    */\n\n    Binding.prototype.connect = function connect(obj) {\n      _emberDebug.assert('Must pass a valid object to Ember.Binding.connect()', !!obj);\n\n      var fromObj = undefined,\n          fromPath = undefined,\n          possibleGlobal = undefined;\n\n      // If the binding's \"from\" path could be interpreted as a global, verify\n      // whether the path refers to a global or not by consulting `Ember.lookup`.\n      if (_emberMetalPath_cache.isGlobalPath(this._from)) {\n        var _name = _emberMetalPath_cache.getFirstKey(this._from);\n        possibleGlobal = _emberEnvironment.context.lookup[_name];\n\n        if (possibleGlobal) {\n          fromObj = possibleGlobal;\n          fromPath = _emberMetalPath_cache.getTailPath(this._from);\n        }\n      }\n\n      if (fromObj === undefined) {\n        fromObj = obj;\n        fromPath = this._from;\n      }\n\n      _emberMetalProperty_set.trySet(obj, this._to, _emberMetalProperty_get.get(fromObj, fromPath));\n\n      // Add an observer on the object to be notified when the binding should be updated.\n      _emberMetalObserver.addObserver(fromObj, fromPath, this, 'fromDidChange');\n\n      // If the binding is a two-way binding, also set up an observer on the target.\n      if (!this._oneWay) {\n        _emberMetalObserver.addObserver(obj, this._to, this, 'toDidChange');\n      }\n\n      _emberMetalEvents.addListener(obj, 'willDestroy', this, 'disconnect');\n\n      fireDeprecations(obj, this._to, this._from, possibleGlobal, this._oneWay, !possibleGlobal && !this._oneWay);\n\n      this._readyToSync = true;\n      this._fromObj = fromObj;\n      this._fromPath = fromPath;\n      this._toObj = obj;\n\n      return this;\n    };\n\n    /**\n      Disconnects the binding instance. Changes will no longer be relayed. You\n      will not usually need to call this method.\n       @method disconnect\n      @return {Ember.Binding} `this`\n      @public\n    */\n\n    Binding.prototype.disconnect = function disconnect() {\n      _emberDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);\n\n      // Remove an observer on the object so we're no longer notified of\n      // changes that should update bindings.\n      _emberMetalObserver.removeObserver(this._fromObj, this._fromPath, this, 'fromDidChange');\n\n      // If the binding is two-way, remove the observer from the target as well.\n      if (!this._oneWay) {\n        _emberMetalObserver.removeObserver(this._toObj, this._to, this, 'toDidChange');\n      }\n\n      this._readyToSync = false; // Disable scheduled syncs...\n      return this;\n    };\n\n    // ..........................................................\n    // PRIVATE\n    //\n\n    /* Called when the from side changes. */\n\n    Binding.prototype.fromDidChange = function fromDidChange(target) {\n      this._scheduleSync('fwd');\n    };\n\n    /* Called when the to side changes. */\n\n    Binding.prototype.toDidChange = function toDidChange(target) {\n      this._scheduleSync('back');\n    };\n\n    Binding.prototype._scheduleSync = function _scheduleSync(dir) {\n      var existingDir = this._direction;\n\n      // If we haven't scheduled the binding yet, schedule it.\n      if (existingDir === undefined) {\n        _emberMetalRun_loop.default.schedule('sync', this, '_sync');\n        this._direction = dir;\n      }\n\n      // If both a 'back' and 'fwd' sync have been scheduled on the same object,\n      // default to a 'fwd' sync so that it remains deterministic.\n      if (existingDir === 'back' && dir === 'fwd') {\n        this._direction = 'fwd';\n      }\n    };\n\n    Binding.prototype._sync = function _sync() {\n      var _this = this;\n\n      var log = _emberEnvironment.ENV.LOG_BINDINGS;\n\n      var toObj = this._toObj;\n\n      // Don't synchronize destroyed objects or disconnected bindings.\n      if (toObj.isDestroyed || !this._readyToSync) {\n        return;\n      }\n\n      // Get the direction of the binding for the object we are\n      // synchronizing from.\n      var direction = this._direction;\n\n      var fromObj = this._fromObj;\n      var fromPath = this._fromPath;\n\n      this._direction = undefined;\n\n      // If we're synchronizing from the remote object...\n      if (direction === 'fwd') {\n        (function () {\n          var fromValue = _emberMetalProperty_get.get(fromObj, fromPath);\n          if (log) {\n            _emberConsole.default.log(' ', _this.toString(), '->', fromValue, fromObj);\n          }\n          if (_this._oneWay) {\n            _emberMetalProperty_set.trySet(toObj, _this._to, fromValue);\n          } else {\n            _emberMetalObserver._suspendObserver(toObj, _this._to, _this, 'toDidChange', function () {\n              _emberMetalProperty_set.trySet(toObj, this._to, fromValue);\n            });\n          }\n          // If we're synchronizing *to* the remote object.\n        })();\n      } else if (direction === 'back') {\n          (function () {\n            var toValue = _emberMetalProperty_get.get(toObj, _this._to);\n            if (log) {\n              _emberConsole.default.log(' ', _this.toString(), '<-', toValue, toObj);\n            }\n            _emberMetalObserver._suspendObserver(fromObj, fromPath, _this, 'fromDidChange', function () {\n              _emberMetalProperty_set.trySet(fromObj, fromPath, toValue);\n            });\n          })();\n        }\n    };\n\n    return Binding;\n  })();\n\n  function fireDeprecations(obj, toPath, fromPath, deprecateGlobal, deprecateOneWay, deprecateAlias) {\n    var deprecateGlobalMessage = '`Ember.Binding` is deprecated. Since you' + ' are binding to a global consider using a service instead.';\n    var deprecateOneWayMessage = '`Ember.Binding` is deprecated. Since you' + ' are using a `oneWay` binding consider using a `readOnly` computed' + ' property instead.';\n    var deprecateAliasMessage = '`Ember.Binding` is deprecated. Consider' + ' using an `alias` computed property instead.';\n\n    var objectInfo = 'The `' + toPath + '` property of `' + obj + '` is an `Ember.Binding` connected to `' + fromPath + '`, but ';\n    _emberDebug.deprecate(objectInfo + deprecateGlobalMessage, !deprecateGlobal, {\n      id: 'ember-metal.binding',\n      until: '3.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_ember-binding'\n    });\n    _emberDebug.deprecate(objectInfo + deprecateOneWayMessage, !deprecateOneWay, {\n      id: 'ember-metal.binding',\n      until: '3.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_ember-binding'\n    });\n    _emberDebug.deprecate(objectInfo + deprecateAliasMessage, !deprecateAlias, {\n      id: 'ember-metal.binding',\n      until: '3.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_ember-binding'\n    });\n  }\n\n  function mixinProperties(to, from) {\n    for (var key in from) {\n      if (from.hasOwnProperty(key)) {\n        to[key] = from[key];\n      }\n    }\n  }\n\n  mixinProperties(Binding, {\n\n    /*\n      See `Ember.Binding.from`.\n       @method from\n      @static\n    */\n    from: function (from) {\n      var C = this;\n      return new C(undefined, from);\n    },\n\n    /*\n      See `Ember.Binding.to`.\n       @method to\n      @static\n    */\n    to: function (to) {\n      var C = this;\n      return new C(to, undefined);\n    }\n  });\n  /**\n    An `Ember.Binding` connects the properties of two objects so that whenever\n    the value of one property changes, the other property will be changed also.\n  \n    ## Automatic Creation of Bindings with `/^*Binding/`-named Properties.\n  \n    You do not usually create Binding objects directly but instead describe\n    bindings in your class or object definition using automatic binding\n    detection.\n  \n    Properties ending in a `Binding` suffix will be converted to `Ember.Binding`\n    instances. The value of this property should be a string representing a path\n    to another object or a custom binding instance created using Binding helpers\n    (see \"One Way Bindings\"):\n  \n    ```\n    valueBinding: \"MyApp.someController.title\"\n    ```\n  \n    This will create a binding from `MyApp.someController.title` to the `value`\n    property of your object instance automatically. Now the two values will be\n    kept in sync.\n  \n    ## One Way Bindings\n  \n    One especially useful binding customization you can use is the `oneWay()`\n    helper. This helper tells Ember that you are only interested in\n    receiving changes on the object you are binding from. For example, if you\n    are binding to a preference and you want to be notified if the preference\n    has changed, but your object will not be changing the preference itself, you\n    could do:\n  \n    ```\n    bigTitlesBinding: Ember.Binding.oneWay(\"MyApp.preferencesController.bigTitles\")\n    ```\n  \n    This way if the value of `MyApp.preferencesController.bigTitles` changes the\n    `bigTitles` property of your object will change also. However, if you\n    change the value of your `bigTitles` property, it will not update the\n    `preferencesController`.\n  \n    One way bindings are almost twice as fast to setup and twice as fast to\n    execute because the binding only has to worry about changes to one side.\n  \n    You should consider using one way bindings anytime you have an object that\n    may be created frequently and you do not intend to change a property; only\n    to monitor it for changes (such as in the example above).\n  \n    ## Adding Bindings Manually\n  \n    All of the examples above show you how to configure a custom binding, but the\n    result of these customizations will be a binding template, not a fully active\n    Binding instance. The binding will actually become active only when you\n    instantiate the object the binding belongs to. It is useful, however, to\n    understand what actually happens when the binding is activated.\n  \n    For a binding to function it must have at least a `from` property and a `to`\n    property. The `from` property path points to the object/key that you want to\n    bind from while the `to` path points to the object/key you want to bind to.\n  \n    When you define a custom binding, you are usually describing the property\n    you want to bind from (such as `MyApp.someController.value` in the examples\n    above). When your object is created, it will automatically assign the value\n    you want to bind `to` based on the name of your binding key. In the\n    examples above, during init, Ember objects will effectively call\n    something like this on your binding:\n  \n    ```javascript\n    binding = Ember.Binding.from(\"valueBinding\").to(\"value\");\n    ```\n  \n    This creates a new binding instance based on the template you provide, and\n    sets the to path to the `value` property of the new object. Now that the\n    binding is fully configured with a `from` and a `to`, it simply needs to be\n    connected to become active. This is done through the `connect()` method:\n  \n    ```javascript\n    binding.connect(this);\n    ```\n  \n    Note that when you connect a binding you pass the object you want it to be\n    connected to. This object will be used as the root for both the from and\n    to side of the binding when inspecting relative paths. This allows the\n    binding to be automatically inherited by subclassed objects as well.\n  \n    This also allows you to bind between objects using the paths you declare in\n    `from` and `to`:\n  \n    ```javascript\n    // Example 1\n    binding = Ember.Binding.from(\"App.someObject.value\").to(\"value\");\n    binding.connect(this);\n  \n    // Example 2\n    binding = Ember.Binding.from(\"parentView.value\").to(\"App.someObject.value\");\n    binding.connect(this);\n    ```\n  \n    Now that the binding is connected, it will observe both the from and to side\n    and relay changes.\n  \n    If you ever needed to do so (you almost never will, but it is useful to\n    understand this anyway), you could manually create an active binding by\n    using the `Ember.bind()` helper method. (This is the same method used by\n    to setup your bindings on objects):\n  \n    ```javascript\n    Ember.bind(MyApp.anotherObject, \"value\", \"MyApp.someController.value\");\n    ```\n  \n    Both of these code fragments have the same effect as doing the most friendly\n    form of binding creation like so:\n  \n    ```javascript\n    MyApp.anotherObject = Ember.Object.create({\n      valueBinding: \"MyApp.someController.value\",\n  \n      // OTHER CODE FOR THIS OBJECT...\n    });\n    ```\n  \n    Ember's built in binding creation method makes it easy to automatically\n    create bindings for you. You should always use the highest-level APIs\n    available, even if you understand how it works underneath.\n  \n    @class Binding\n    @namespace Ember\n    @since Ember 0.9\n    @public\n  */\n  // Ember.Binding = Binding; ES6TODO: where to put this?\n\n  /**\n    Global helper method to create a new binding. Just pass the root object\n    along with a `to` and `from` path to create and connect the binding.\n  \n    @method bind\n    @for Ember\n    @param {Object} obj The root object of the transform.\n    @param {String} to The path to the 'to' side of the binding.\n      Must be relative to obj.\n    @param {String} from The path to the 'from' side of the binding.\n      Must be relative to obj or a global path.\n    @return {Ember.Binding} binding instance\n    @public\n  */\n\n  function bind(obj, to, from) {\n    return new Binding(to, from).connect(obj);\n  }\n\n  exports.Binding = Binding;\n});\nenifed('ember-metal/cache', ['exports', 'ember-metal/meta'], function (exports, _emberMetalMeta) {\n  'use strict';\n\n  var Cache = (function () {\n    function Cache(limit, func, key, store) {\n      babelHelpers.classCallCheck(this, Cache);\n\n      this.size = 0;\n      this.misses = 0;\n      this.hits = 0;\n      this.limit = limit;\n      this.func = func;\n      this.key = key;\n      this.store = store || new DefaultStore();\n    }\n\n    Cache.prototype.get = function get(obj) {\n      var key = this.key === undefined ? obj : this.key(obj);\n      var value = this.store.get(key);\n      if (value === undefined) {\n        this.misses++;\n        value = this._set(key, this.func(obj));\n      } else if (value === _emberMetalMeta.UNDEFINED) {\n        this.hits++;\n        value = undefined;\n      } else {\n        this.hits++;\n        // nothing to translate\n      }\n\n      return value;\n    };\n\n    Cache.prototype.set = function set(obj, value) {\n      var key = this.key === undefined ? obj : this.key(obj);\n      return this._set(key, value);\n    };\n\n    Cache.prototype._set = function _set(key, value) {\n      if (this.limit > this.size) {\n        this.size++;\n        if (value === undefined) {\n          this.store.set(key, _emberMetalMeta.UNDEFINED);\n        } else {\n          this.store.set(key, value);\n        }\n      }\n\n      return value;\n    };\n\n    Cache.prototype.purge = function purge() {\n      this.store.clear();\n      this.size = 0;\n      this.hits = 0;\n      this.misses = 0;\n    };\n\n    return Cache;\n  })();\n\n  exports.default = Cache;\n\n  var DefaultStore = (function () {\n    function DefaultStore() {\n      babelHelpers.classCallCheck(this, DefaultStore);\n\n      this.data = Object.create(null);\n    }\n\n    DefaultStore.prototype.get = function get(key) {\n      return this.data[key];\n    };\n\n    DefaultStore.prototype.set = function set(key, value) {\n      this.data[key] = value;\n    };\n\n    DefaultStore.prototype.clear = function clear() {\n      this.data = Object.create(null);\n    };\n\n    return DefaultStore;\n  })();\n});\nenifed('ember-metal/chains', ['exports', 'ember-metal/property_get', 'ember-metal/meta', 'ember-metal/watch_key', 'ember-metal/computed', 'ember-metal/watch_path'], function (exports, _emberMetalProperty_get, _emberMetalMeta, _emberMetalWatch_key, _emberMetalComputed, _emberMetalWatch_path) {\n  'use strict';\n\n  exports.finishChains = finishChains;\n\n  var FIRST_KEY = /^([^\\.]+)/;\n\n  function firstKey(path) {\n    return path.match(FIRST_KEY)[0];\n  }\n\n  function isObject(obj) {\n    return typeof obj === 'object' && obj;\n  }\n\n  function isVolatile(obj) {\n    return !(isObject(obj) && obj.isDescriptor && obj._volatile === false);\n  }\n\n  var ChainWatchers = (function () {\n    function ChainWatchers() {\n      babelHelpers.classCallCheck(this, ChainWatchers);\n\n      // chain nodes that reference a key in this obj by key\n      // we only create ChainWatchers when we are going to add them\n      // so create this upfront\n      this.chains = Object.create(null);\n    }\n\n    ChainWatchers.prototype.add = function add(key, node) {\n      var nodes = this.chains[key];\n      if (nodes === undefined) {\n        this.chains[key] = [node];\n      } else {\n        nodes.push(node);\n      }\n    };\n\n    ChainWatchers.prototype.remove = function remove(key, node) {\n      var nodes = this.chains[key];\n      if (nodes) {\n        for (var i = 0; i < nodes.length; i++) {\n          if (nodes[i] === node) {\n            nodes.splice(i, 1);\n            break;\n          }\n        }\n      }\n    };\n\n    ChainWatchers.prototype.has = function has(key, node) {\n      var nodes = this.chains[key];\n      if (nodes) {\n        for (var i = 0; i < nodes.length; i++) {\n          if (nodes[i] === node) {\n            return true;\n          }\n        }\n      }\n      return false;\n    };\n\n    ChainWatchers.prototype.revalidateAll = function revalidateAll() {\n      for (var key in this.chains) {\n        this.notify(key, true, undefined);\n      }\n    };\n\n    ChainWatchers.prototype.revalidate = function revalidate(key) {\n      this.notify(key, true, undefined);\n    };\n\n    // key: the string key that is part of a path changed\n    // revalidate: boolean; the chains that are watching this value should revalidate\n    // callback: function that will be called with the object and path that\n    //           will be/are invalidated by this key change, depending on\n    //           whether the revalidate flag is passed\n\n    ChainWatchers.prototype.notify = function notify(key, revalidate, callback) {\n      var nodes = this.chains[key];\n      if (nodes === undefined || nodes.length === 0) {\n        return;\n      }\n\n      var affected = undefined;\n\n      if (callback) {\n        affected = [];\n      }\n\n      for (var i = 0; i < nodes.length; i++) {\n        nodes[i].notify(revalidate, affected);\n      }\n\n      if (callback === undefined) {\n        return;\n      }\n\n      // we gather callbacks so we don't notify them during revalidation\n      for (var i = 0; i < affected.length; i += 2) {\n        var obj = affected[i];\n        var path = affected[i + 1];\n        callback(obj, path);\n      }\n    };\n\n    return ChainWatchers;\n  })();\n\n  function makeChainWatcher() {\n    return new ChainWatchers();\n  }\n\n  function addChainWatcher(obj, keyName, node) {\n    var m = _emberMetalMeta.meta(obj);\n    m.writableChainWatchers(makeChainWatcher).add(keyName, node);\n    _emberMetalWatch_key.watchKey(obj, keyName, m);\n  }\n\n  function removeChainWatcher(obj, keyName, node, _meta) {\n    if (!isObject(obj)) {\n      return;\n    }\n\n    var meta = _meta || _emberMetalMeta.peekMeta(obj);\n\n    if (!meta || !meta.readableChainWatchers()) {\n      return;\n    }\n\n    // make meta writable\n    meta = _emberMetalMeta.meta(obj);\n\n    meta.readableChainWatchers().remove(keyName, node);\n\n    _emberMetalWatch_key.unwatchKey(obj, keyName, meta);\n  }\n\n  // A ChainNode watches a single key on an object. If you provide a starting\n  // value for the key then the node won't actually watch it. For a root node\n  // pass null for parent and key and object for value.\n\n  var ChainNode = (function () {\n    function ChainNode(parent, key, value) {\n      babelHelpers.classCallCheck(this, ChainNode);\n\n      this._parent = parent;\n      this._key = key;\n\n      // _watching is true when calling get(this._parent, this._key) will\n      // return the value of this node.\n      //\n      // It is false for the root of a chain (because we have no parent)\n      // and for global paths (because the parent node is the object with\n      // the observer on it)\n      var isWatching = this._watching = value === undefined;\n\n      this._chains = undefined;\n      this._object = undefined;\n      this.count = 0;\n\n      this._value = value;\n      this._paths = undefined;\n      if (isWatching === true) {\n        var obj = parent.value();\n\n        if (!isObject(obj) === true) {\n          return;\n        }\n\n        this._object = obj;\n\n        addChainWatcher(this._object, this._key, this);\n      }\n    }\n\n    ChainNode.prototype.value = function value() {\n      if (this._value === undefined && this._watching === true) {\n        var obj = this._parent.value();\n        this._value = lazyGet(obj, this._key);\n      }\n      return this._value;\n    };\n\n    ChainNode.prototype.destroy = function destroy() {\n      if (this._watching === true) {\n        var obj = this._object;\n        if (obj) {\n          removeChainWatcher(obj, this._key, this);\n        }\n        this._watching = false; // so future calls do nothing\n      }\n    };\n\n    // copies a top level object only\n\n    ChainNode.prototype.copy = function copy(obj) {\n      var ret = new ChainNode(null, null, obj);\n      var paths = this._paths;\n      var path = undefined;\n      if (paths !== undefined) {\n        for (path in paths) {\n          // this check will also catch non-number vals.\n          if (paths[path] <= 0) {\n            continue;\n          }\n          ret.add(path);\n        }\n      }\n      return ret;\n    };\n\n    // called on the root node of a chain to setup watchers on the specified\n    // path.\n\n    ChainNode.prototype.add = function add(path) {\n      var paths = this._paths || (this._paths = {});\n      paths[path] = (paths[path] || 0) + 1;\n\n      var key = firstKey(path);\n      var tail = path.slice(key.length + 1);\n\n      this.chain(key, tail);\n    };\n\n    // called on the root node of a chain to teardown watcher on the specified\n    // path\n\n    ChainNode.prototype.remove = function remove(path) {\n      var paths = this._paths;\n      if (paths === undefined) {\n        return;\n      }\n      if (paths[path] > 0) {\n        paths[path]--;\n      }\n\n      var key = firstKey(path);\n      var tail = path.slice(key.length + 1);\n\n      this.unchain(key, tail);\n    };\n\n    ChainNode.prototype.chain = function chain(key, path) {\n      var chains = this._chains;\n      var node = undefined;\n      if (chains === undefined) {\n        chains = this._chains = Object.create(null);\n      } else {\n        node = chains[key];\n      }\n\n      if (node === undefined) {\n        node = chains[key] = new ChainNode(this, key, undefined);\n      }\n\n      node.count++; // count chains...\n\n      // chain rest of path if there is one\n      if (path) {\n        key = firstKey(path);\n        path = path.slice(key.length + 1);\n        node.chain(key, path);\n      }\n    };\n\n    ChainNode.prototype.unchain = function unchain(key, path) {\n      var chains = this._chains;\n      var node = chains[key];\n\n      // unchain rest of path first...\n      if (path && path.length > 1) {\n        var nextKey = firstKey(path);\n        var nextPath = path.slice(nextKey.length + 1);\n        node.unchain(nextKey, nextPath);\n      }\n\n      // delete node if needed.\n      node.count--;\n      if (node.count <= 0) {\n        chains[node._key] = undefined;\n        node.destroy();\n      }\n    };\n\n    ChainNode.prototype.notify = function notify(revalidate, affected) {\n      if (revalidate && this._watching === true) {\n        var parentValue = this._parent.value();\n\n        if (parentValue !== this._object) {\n          if (this._object !== undefined) {\n            removeChainWatcher(this._object, this._key, this);\n          }\n\n          if (isObject(parentValue)) {\n            this._object = parentValue;\n            addChainWatcher(parentValue, this._key, this);\n          } else {\n            this._object = undefined;\n          }\n        }\n        this._value = undefined;\n      }\n\n      // then notify chains...\n      var chains = this._chains;\n      var node = undefined;\n      if (chains !== undefined) {\n        for (var key in chains) {\n          node = chains[key];\n          if (node !== undefined) {\n            node.notify(revalidate, affected);\n          }\n        }\n      }\n\n      if (affected && this._parent) {\n        this._parent.populateAffected(this._key, 1, affected);\n      }\n    };\n\n    ChainNode.prototype.populateAffected = function populateAffected(path, depth, affected) {\n      if (this._key) {\n        path = this._key + '.' + path;\n      }\n\n      if (this._parent) {\n        this._parent.populateAffected(path, depth + 1, affected);\n      } else {\n        if (depth > 1) {\n          affected.push(this.value(), path);\n        }\n      }\n    };\n\n    return ChainNode;\n  })();\n\n  function lazyGet(obj, key) {\n    if (!isObject(obj)) {\n      return;\n    }\n\n    var meta = _emberMetalMeta.peekMeta(obj);\n\n    // check if object meant only to be a prototype\n    if (meta !== undefined && meta.proto === obj) {\n      return;\n    }\n\n    // Use `get` if the return value is an EachProxy or an uncacheable value.\n    if (isVolatile(obj[key]) === true) {\n      return _emberMetalProperty_get.get(obj, key);\n      // Otherwise attempt to get the cached value of the computed property\n    } else {\n        var cache = meta.readableCache();\n        if (cache) {\n          return _emberMetalComputed.cacheFor.get(cache, key);\n        }\n      }\n  }\n\n  function finishChains(meta) {\n    // finish any current chains node watchers that reference obj\n    var chainWatchers = meta.readableChainWatchers();\n    if (chainWatchers !== undefined) {\n      chainWatchers.revalidateAll();\n    }\n    // ensure that if we have inherited any chains they have been\n    // copied onto our own meta.\n    if (meta.readableChains() !== undefined) {\n      meta.writableChains(_emberMetalWatch_path.makeChainNode);\n    }\n  }\n\n  exports.removeChainWatcher = removeChainWatcher;\n  exports.ChainNode = ChainNode;\n});\nenifed('ember-metal/computed', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/property_set', 'ember-metal/meta', 'ember-metal/expand_properties', 'ember-metal/properties', 'ember-metal/property_events', 'ember-metal/dependent_keys'], function (exports, _emberUtils, _emberDebug, _emberMetalProperty_set, _emberMetalMeta, _emberMetalExpand_properties, _emberMetalProperties, _emberMetalProperty_events, _emberMetalDependent_keys) {\n  'use strict';\n\n  exports.default = computed;\n\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  var DEEP_EACH_REGEX = /\\.@each\\.[^.]+\\./;\n\n  /**\n    A computed property transforms an object literal with object's accessor function(s) into a property.\n  \n    By default the function backing the computed property will only be called\n    once and the result will be cached. You can specify various properties\n    that your computed property depends on. This will force the cached\n    result to be recomputed if the dependencies are modified.\n  \n    In the following example we declare a computed property - `fullName` - by calling\n    `.Ember.computed()` with property dependencies (`firstName` and `lastName`) as leading arguments and getter accessor function. The `fullName` getter function\n    will be called once (regardless of how many times it is accessed) as long\n    as its dependencies have not changed. Once `firstName` or `lastName` are updated\n    any future calls (or anything bound) to `fullName` will incorporate the new\n    values.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      // these will be supplied by `create`\n      firstName: null,\n      lastName: null,\n  \n      fullName: Ember.computed('firstName', 'lastName', function() {\n        let firstName = this.get('firstName'),\n            lastName  = this.get('lastName');\n  \n        return firstName + ' ' + lastName;\n      })\n    });\n  \n    let tom = Person.create({\n      firstName: 'Tom',\n      lastName: 'Dale'\n    });\n  \n    tom.get('fullName') // 'Tom Dale'\n    ```\n  \n    You can also define what Ember should do when setting a computed property by providing additional function (`set`) in hash argument.\n    If you try to set a computed property, it will try to invoke setter accessor function with the key and\n    value you want to set it to as arguments.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      // these will be supplied by `create`\n      firstName: null,\n      lastName: null,\n  \n      fullName: Ember.computed('firstName', 'lastName', {\n        get(key) {\n          let firstName = this.get('firstName'),\n              lastName  = this.get('lastName');\n  \n          return firstName + ' ' + lastName;\n        },\n        set(key, value) {\n          let [firstName, lastName] = value.split(' ');\n  \n          this.set('firstName', firstName);\n          this.set('lastName', lastName);\n  \n          return value;\n        }\n      })\n    });\n  \n    let person = Person.create();\n  \n    person.set('fullName', 'Peter Wagenet');\n    person.get('firstName'); // 'Peter'\n    person.get('lastName');  // 'Wagenet'\n    ```\n  \n    You can overwrite computed property with normal property (no longer computed), that won't change if dependencies change, if you set computed property and it won't have setter accessor function defined.\n  \n    You can also mark computed property as `.readOnly()` and block all attempts to set it.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      // these will be supplied by `create`\n      firstName: null,\n      lastName: null,\n  \n      fullName: Ember.computed('firstName', 'lastName', {\n        get(key) {\n          let firstName = this.get('firstName');\n          let lastName  = this.get('lastName');\n  \n          return firstName + ' ' + lastName;\n        }\n      }).readOnly()\n    });\n  \n    let person = Person.create();\n    person.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n    ```\n  \n    Additional resources:\n    - [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n    - [New computed syntax explained in \"Ember 1.12 released\" ](http://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)\n  \n    @class ComputedProperty\n    @namespace Ember\n    @public\n  */\n  function ComputedProperty(config, opts) {\n    this.isDescriptor = true;\n    if (typeof config === 'function') {\n      this._getter = config;\n    } else {\n      _emberDebug.assert('Ember.computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));\n      _emberDebug.assert('Config object passed to an Ember.computed can only contain `get` or `set` keys.', (function () {\n        var keys = Object.keys(config);\n        for (var i = 0; i < keys.length; i++) {\n          if (keys[i] !== 'get' && keys[i] !== 'set') {\n            return false;\n          }\n        }\n        return true;\n      })());\n      this._getter = config.get;\n      this._setter = config.set;\n    }\n    _emberDebug.assert('Computed properties must receive a getter or a setter, you passed none.', !!this._getter || !!this._setter);\n    this._dependentKeys = undefined;\n    this._suspended = undefined;\n    this._meta = undefined;\n    this._volatile = false;\n    this._dependentKeys = opts && opts.dependentKeys;\n    this._readOnly = false;\n  }\n\n  ComputedProperty.prototype = new _emberMetalProperties.Descriptor();\n  ComputedProperty.prototype.constructor = ComputedProperty;\n\n  var ComputedPropertyPrototype = ComputedProperty.prototype;\n\n  /**\n    Call on a computed property to set it into non-cached mode. When in this\n    mode the computed property will not automatically cache the return value.\n  \n    It also does not automatically fire any change events. You must manually notify\n    any changes if you want to observe this property.\n  \n    Dependency keys have no effect on volatile properties as they are for cache\n    invalidation and notification when cached value is invalidated.\n  \n    ```javascript\n    let outsideService = Ember.Object.extend({\n      value: Ember.computed(function() {\n        return OutsideService.getValue();\n      }).volatile()\n    }).create();\n    ```\n  \n    @method volatile\n    @return {Ember.ComputedProperty} this\n    @chainable\n    @public\n  */\n  ComputedPropertyPrototype.volatile = function () {\n    this._volatile = true;\n    return this;\n  };\n\n  /**\n    Call on a computed property to set it into read-only mode. When in this\n    mode the computed property will throw an error when set.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      guid: Ember.computed(function() {\n        return 'guid-guid-guid';\n      }).readOnly()\n    });\n  \n    let person = Person.create();\n  \n    person.set('guid', 'new-guid'); // will throw an exception\n    ```\n  \n    @method readOnly\n    @return {Ember.ComputedProperty} this\n    @chainable\n    @public\n  */\n  ComputedPropertyPrototype.readOnly = function () {\n    this._readOnly = true;\n    _emberDebug.assert('Computed properties that define a setter using the new syntax cannot be read-only', !(this._readOnly && this._setter && this._setter !== this._getter));\n    return this;\n  };\n\n  /**\n    Sets the dependent keys on this computed property. Pass any number of\n    arguments containing key paths that this computed property depends on.\n  \n    ```javascript\n    let President = Ember.Object.extend({\n      fullName: Ember.computed(function() {\n        return this.get('firstName') + ' ' + this.get('lastName');\n  \n        // Tell Ember that this computed property depends on firstName\n        // and lastName\n      }).property('firstName', 'lastName')\n    });\n  \n    let president = President.create({\n      firstName: 'Barack',\n      lastName: 'Obama'\n    });\n  \n    president.get('fullName'); // 'Barack Obama'\n    ```\n  \n    @method property\n    @param {String} path* zero or more property paths\n    @return {Ember.ComputedProperty} this\n    @chainable\n    @public\n  */\n  ComputedPropertyPrototype.property = function () {\n    var args = [];\n\n    function addArg(property) {\n      _emberDebug.warn('Dependent keys containing @each only work one level deep. ' + ('You used the key \"' + property + '\" which is invalid. ') + 'Please create an intermediary computed property.', DEEP_EACH_REGEX.test(property) === false, { id: 'ember-metal.computed-deep-each' });\n      args.push(property);\n    }\n\n    for (var i = 0; i < arguments.length; i++) {\n      _emberMetalExpand_properties.default(arguments[i], addArg);\n    }\n\n    this._dependentKeys = args;\n    return this;\n  };\n\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For example,\n    computed property functions may close over variables that are then no longer\n    available for introspection.\n  \n    You can pass a hash of these values to a computed property like this:\n  \n    ```\n    person: Ember.computed(function() {\n      let personId = this.get('personId');\n      return App.Person.create({ id: personId });\n    }).meta({ type: App.Person })\n    ```\n  \n    The hash that you pass to the `meta()` function will be saved on the\n    computed property descriptor under the `_meta` key. Ember runtime\n    exposes a public API for retrieving these values from classes,\n    via the `metaForProperty()` function.\n  \n    @method meta\n    @param {Object} meta\n    @chainable\n    @public\n  */\n  ComputedPropertyPrototype.meta = function (meta) {\n    if (arguments.length === 0) {\n      return this._meta || {};\n    } else {\n      this._meta = meta;\n      return this;\n    }\n  };\n\n  // invalidate cache when CP key changes\n  ComputedPropertyPrototype.didChange = function (obj, keyName) {\n    // _suspended is set via a CP.set to ensure we don't clear\n    // the cached value set by the setter\n    if (this._volatile || this._suspended === obj) {\n      return;\n    }\n\n    // don't create objects just to invalidate\n    var meta = _emberMetalMeta.peekMeta(obj);\n    if (!meta || meta.source !== obj) {\n      return;\n    }\n\n    var cache = meta.readableCache();\n    if (cache && cache[keyName] !== undefined) {\n      cache[keyName] = undefined;\n      _emberMetalDependent_keys.removeDependentKeys(this, obj, keyName, meta);\n    }\n  };\n\n  ComputedPropertyPrototype.get = function (obj, keyName) {\n    if (this._volatile) {\n      return this._getter.call(obj, keyName);\n    }\n\n    var meta = _emberMetalMeta.meta(obj);\n    var cache = meta.writableCache();\n\n    var result = cache[keyName];\n    if (result === _emberMetalMeta.UNDEFINED) {\n      return undefined;\n    } else if (result !== undefined) {\n      return result;\n    }\n\n    var ret = this._getter.call(obj, keyName);\n    if (ret === undefined) {\n      cache[keyName] = _emberMetalMeta.UNDEFINED;\n    } else {\n      cache[keyName] = ret;\n    }\n\n    var chainWatchers = meta.readableChainWatchers();\n    if (chainWatchers) {\n      chainWatchers.revalidate(keyName);\n    }\n    _emberMetalDependent_keys.addDependentKeys(this, obj, keyName, meta);\n\n    return ret;\n  };\n\n  ComputedPropertyPrototype.set = function computedPropertySetEntry(obj, keyName, value) {\n    if (this._readOnly) {\n      this._throwReadOnlyError(obj, keyName);\n    }\n\n    if (!this._setter) {\n      return this.clobberSet(obj, keyName, value);\n    }\n\n    if (this._volatile) {\n      return this.volatileSet(obj, keyName, value);\n    }\n\n    return this.setWithSuspend(obj, keyName, value);\n  };\n\n  ComputedPropertyPrototype._throwReadOnlyError = function computedPropertyThrowReadOnlyError(obj, keyName) {\n    throw new _emberDebug.Error('Cannot set read-only property \"' + keyName + '\" on object: ' + _emberUtils.inspect(obj));\n  };\n\n  ComputedPropertyPrototype.clobberSet = function computedPropertyClobberSet(obj, keyName, value) {\n    var cachedValue = cacheFor(obj, keyName);\n    _emberMetalProperties.defineProperty(obj, keyName, null, cachedValue);\n    _emberMetalProperty_set.set(obj, keyName, value);\n    return value;\n  };\n\n  ComputedPropertyPrototype.volatileSet = function computedPropertyVolatileSet(obj, keyName, value) {\n    return this._setter.call(obj, keyName, value);\n  };\n\n  ComputedPropertyPrototype.setWithSuspend = function computedPropertySetWithSuspend(obj, keyName, value) {\n    var oldSuspended = this._suspended;\n    this._suspended = obj;\n    try {\n      return this._set(obj, keyName, value);\n    } finally {\n      this._suspended = oldSuspended;\n    }\n  };\n\n  ComputedPropertyPrototype._set = function computedPropertySet(obj, keyName, value) {\n    // cache requires own meta\n    var meta = _emberMetalMeta.meta(obj);\n    // either there is a writable cache or we need one to update\n    var cache = meta.writableCache();\n    var hadCachedValue = false;\n    var cachedValue = undefined;\n    if (cache[keyName] !== undefined) {\n      if (cache[keyName] !== _emberMetalMeta.UNDEFINED) {\n        cachedValue = cache[keyName];\n      }\n      hadCachedValue = true;\n    }\n\n    var ret = this._setter.call(obj, keyName, value, cachedValue);\n\n    // allows setter to return the same value that is cached already\n    if (hadCachedValue && cachedValue === ret) {\n      return ret;\n    }\n\n    _emberMetalProperty_events.propertyWillChange(obj, keyName);\n\n    if (hadCachedValue) {\n      cache[keyName] = undefined;\n    }\n\n    if (!hadCachedValue) {\n      _emberMetalDependent_keys.addDependentKeys(this, obj, keyName, meta);\n    }\n\n    if (ret === undefined) {\n      cache[keyName] = _emberMetalMeta.UNDEFINED;\n    } else {\n      cache[keyName] = ret;\n    }\n\n    _emberMetalProperty_events.propertyDidChange(obj, keyName);\n\n    return ret;\n  };\n\n  /* called before property is overridden */\n  ComputedPropertyPrototype.teardown = function (obj, keyName) {\n    if (this._volatile) {\n      return;\n    }\n    var meta = _emberMetalMeta.meta(obj);\n    var cache = meta.readableCache();\n    if (cache && cache[keyName] !== undefined) {\n      _emberMetalDependent_keys.removeDependentKeys(this, obj, keyName, meta);\n      cache[keyName] = undefined;\n    }\n  };\n\n  /**\n    This helper returns a new property descriptor that wraps the passed\n    computed property function. You can use this helper to define properties\n    with mixins or via `Ember.defineProperty()`.\n  \n    If you pass a function as an argument, it will be used as a getter. A computed\n    property defined in this way might look like this:\n  \n    ```js\n    let Person = Ember.Object.extend({\n      init() {\n        this._super(...arguments);\n  \n        this.firstName = 'Betty';\n        this.lastName = 'Jones';\n      },\n  \n      fullName: Ember.computed('firstName', 'lastName', function() {\n        return `${this.get('firstName')} ${this.get('lastName')}`;\n      })\n    });\n  \n    let client = Person.create();\n  \n    client.get('fullName'); // 'Betty Jones'\n  \n    client.set('lastName', 'Fuller');\n    client.get('fullName'); // 'Betty Fuller'\n    ```\n  \n    You can pass a hash with two functions, `get` and `set`, as an\n    argument to provide both a getter and setter:\n  \n    ```js\n    let Person = Ember.Object.extend({\n      init() {\n        this._super(...arguments);\n  \n        this.firstName = 'Betty';\n        this.lastName = 'Jones';\n      },\n  \n      fullName: Ember.computed('firstName', 'lastName', {\n        get(key) {\n          return `${this.get('firstName')} ${this.get('lastName')}`;\n        },\n        set(key, value) {\n          let [firstName, lastName] = value.split(/\\s+/);\n          this.setProperties({ firstName, lastName });\n          return value;\n        }\n      })\n    });\n  \n    let client = Person.create();\n    client.get('firstName'); // 'Betty'\n  \n    client.set('fullName', 'Carroll Fuller');\n    client.get('firstName'); // 'Carroll'\n    ```\n  \n    The `set` function should accept two parameters, `key` and `value`. The value\n    returned from `set` will be the new value of the property.\n  \n    _Note: This is the preferred way to define computed properties when writing third-party\n    libraries that depend on or use Ember, since there is no guarantee that the user\n    will have [prototype Extensions](http://emberjs.com/guides/configuring-ember/disabling-prototype-extensions/) enabled._\n  \n    The alternative syntax, with prototype extensions, might look like:\n  \n    ```js\n    fullName: function() {\n      return this.get('firstName') + ' ' + this.get('lastName');\n    }.property('firstName', 'lastName')\n    ```\n  \n    @class computed\n    @namespace Ember\n    @constructor\n    @static\n    @param {String} [dependentKeys*] Optional dependent keys that trigger this computed property.\n    @param {Function} func The computed property function.\n    @return {Ember.ComputedProperty} property descriptor instance\n    @public\n  */\n\n  function computed(func) {\n    var args = undefined;\n\n    if (arguments.length > 1) {\n      args = [].slice.call(arguments);\n      func = args.pop();\n    }\n\n    var cp = new ComputedProperty(func);\n\n    if (args) {\n      cp.property.apply(cp, args);\n    }\n\n    return cp;\n  }\n\n  /**\n    Returns the cached value for a property, if one exists.\n    This can be useful for peeking at the value of a computed\n    property that is generated lazily, without accidentally causing\n    it to be created.\n  \n    @method cacheFor\n    @for Ember\n    @param {Object} obj the object whose property you want to check\n    @param {String} key the name of the property whose cached value you want\n      to return\n    @return {Object} the cached value\n    @public\n  */\n  function cacheFor(obj, key) {\n    var meta = _emberMetalMeta.peekMeta(obj);\n    var cache = meta && meta.source === obj && meta.readableCache();\n    var ret = cache && cache[key];\n\n    if (ret === _emberMetalMeta.UNDEFINED) {\n      return undefined;\n    }\n    return ret;\n  }\n\n  cacheFor.set = function (cache, key, value) {\n    if (value === undefined) {\n      cache[key] = _emberMetalMeta.UNDEFINED;\n    } else {\n      cache[key] = value;\n    }\n  };\n\n  cacheFor.get = function (cache, key) {\n    var ret = cache[key];\n    if (ret === _emberMetalMeta.UNDEFINED) {\n      return undefined;\n    }\n    return ret;\n  };\n\n  cacheFor.remove = function (cache, key) {\n    cache[key] = undefined;\n  };\n\n  exports.ComputedProperty = ComputedProperty;\n  exports.computed = computed;\n  exports.cacheFor = cacheFor;\n});\nenifed('ember-metal/core', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  /**\n    This namespace contains all Ember methods and functions. Future versions of\n    Ember may overwrite this namespace and therefore, you should avoid adding any\n    new properties.\n  \n    At the heart of Ember is Ember-Runtime, a set of core functions that provide\n    cross-platform compatibility and object property observing.  Ember-Runtime is\n    small and performance-focused so you can use it alongside other\n    cross-platform libraries such as jQuery. For more details, see\n    [Ember-Runtime](http://emberjs.com/api/modules/ember-runtime.html).\n  \n    @class Ember\n    @static\n    @public\n  */\n  var Ember = typeof _emberEnvironment.context.imports.Ember === 'object' && _emberEnvironment.context.imports.Ember || {};\n\n  // Make sure these are set whether Ember was already defined or not\n  Ember.isNamespace = true;\n  Ember.toString = function () {\n    return 'Ember';\n  };\n\n  // ..........................................................\n  // BOOTSTRAP\n  //\n\n  exports.default = Ember;\n});\nenifed('ember-metal/dependent_keys', ['exports', 'ember-metal/watching'], function (exports, _emberMetalWatching) {\n  'use strict';\n\n  exports.addDependentKeys = addDependentKeys;\n  exports.removeDependentKeys = removeDependentKeys;\n\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  // ..........................................................\n  // DEPENDENT KEYS\n  //\n\n  function addDependentKeys(desc, obj, keyName, meta) {\n    // the descriptor has a list of dependent keys, so\n    // add all of its dependent keys.\n    var idx = undefined,\n        depKey = undefined;\n    var depKeys = desc._dependentKeys;\n    if (!depKeys) {\n      return;\n    }\n\n    for (idx = 0; idx < depKeys.length; idx++) {\n      depKey = depKeys[idx];\n      // Increment the number of times depKey depends on keyName.\n      meta.writeDeps(depKey, keyName, (meta.peekDeps(depKey, keyName) || 0) + 1);\n      // Watch the depKey\n      _emberMetalWatching.watch(obj, depKey, meta);\n    }\n  }\n\n  function removeDependentKeys(desc, obj, keyName, meta) {\n    // the descriptor has a list of dependent keys, so\n    // remove all of its dependent keys.\n    var depKeys = desc._dependentKeys;\n    if (!depKeys) {\n      return;\n    }\n\n    for (var idx = 0; idx < depKeys.length; idx++) {\n      var depKey = depKeys[idx];\n      // Decrement the number of times depKey depends on keyName.\n      meta.writeDeps(depKey, keyName, (meta.peekDeps(depKey, keyName) || 0) - 1);\n      // Unwatch the depKey\n      _emberMetalWatching.unwatch(obj, depKey, meta);\n    }\n  }\n});\nenifed('ember-metal/deprecate_property', ['exports', 'ember-debug', 'ember-metal/property_get', 'ember-metal/property_set'], function (exports, _emberDebug, _emberMetalProperty_get, _emberMetalProperty_set) {\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  'use strict';\n\n  exports.deprecateProperty = deprecateProperty;\n\n  /**\n    Used internally to allow changing properties in a backwards compatible way, and print a helpful\n    deprecation warning.\n  \n    @method deprecateProperty\n    @param {Object} object The object to add the deprecated property to.\n    @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).\n    @param {String} newKey The property that will be aliased.\n    @private\n    @since 1.7.0\n  */\n\n  function deprecateProperty(object, deprecatedKey, newKey, options) {\n    function _deprecate() {\n      _emberDebug.deprecate('Usage of `' + deprecatedKey + '` is deprecated, use `' + newKey + '` instead.', false, options);\n    }\n\n    Object.defineProperty(object, deprecatedKey, {\n      configurable: true,\n      enumerable: false,\n      set: function (value) {\n        _deprecate();\n        _emberMetalProperty_set.set(this, newKey, value);\n      },\n      get: function () {\n        _deprecate();\n        return _emberMetalProperty_get.get(this, newKey);\n      }\n    });\n  }\n});\nenifed('ember-metal/descriptor', ['exports', 'ember-metal/properties'], function (exports, _emberMetalProperties) {\n  'use strict';\n\n  exports.default = descriptor;\n\n  function descriptor(desc) {\n    return new Descriptor(desc);\n  }\n\n  /**\n    A wrapper for a native ES5 descriptor. In an ideal world, we wouldn't need\n    this at all, however, the way we currently flatten/merge our mixins require\n    a special value to denote a descriptor.\n  \n    @class Descriptor\n    @private\n  */\n\n  var Descriptor = (function (_EmberDescriptor) {\n    babelHelpers.inherits(Descriptor, _EmberDescriptor);\n\n    function Descriptor(desc) {\n      babelHelpers.classCallCheck(this, Descriptor);\n\n      _EmberDescriptor.call(this);\n      this.desc = desc;\n    }\n\n    Descriptor.prototype.setup = function setup(obj, key) {\n      Object.defineProperty(obj, key, this.desc);\n    };\n\n    Descriptor.prototype.teardown = function teardown(obj, key) {};\n\n    return Descriptor;\n  })(_emberMetalProperties.Descriptor);\n});\nenifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-debug'], function (exports, _emberConsole, _emberDebug) {\n  'use strict';\n\n  exports.getOnerror = getOnerror;\n  exports.setOnerror = setOnerror;\n  exports.dispatchError = dispatchError;\n  exports.getDispatchOverride = getDispatchOverride;\n  exports.setDispatchOverride = setDispatchOverride;\n\n  // To maintain stacktrace consistency across browsers\n  var getStack = function (error) {\n    var stack = error.stack;\n    var message = error.message;\n\n    if (stack && stack.indexOf(message) === -1) {\n      stack = message + '\\n' + stack;\n    }\n\n    return stack;\n  };\n\n  var onerror = undefined;\n  // Ember.onerror getter\n\n  function getOnerror() {\n    return onerror;\n  }\n\n  // Ember.onerror setter\n\n  function setOnerror(handler) {\n    onerror = handler;\n  }\n\n  var dispatchOverride = undefined;\n  // dispatch error\n\n  function dispatchError(error) {\n    if (dispatchOverride) {\n      dispatchOverride(error);\n    } else {\n      defaultDispatch(error);\n    }\n  }\n\n  // allows testing adapter to override dispatch\n\n  function getDispatchOverride() {\n    return dispatchOverride;\n  }\n\n  function setDispatchOverride(handler) {\n    dispatchOverride = handler;\n  }\n\n  function defaultDispatch(error) {\n    if (_emberDebug.isTesting()) {\n      throw error;\n    }\n    if (onerror) {\n      onerror(error);\n    } else {\n      _emberConsole.default.error(getStack(error));\n    }\n  }\n});\nenifed('ember-metal/events', ['exports', 'ember-utils', 'ember-metal/meta', 'ember-debug', 'ember-metal/meta_listeners'], function (exports, _emberUtils, _emberMetalMeta, _emberDebug, _emberMetalMeta_listeners) {\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n  'use strict';\n\n  exports.accumulateListeners = accumulateListeners;\n  exports.addListener = addListener;\n  exports.removeListener = removeListener;\n  exports.suspendListener = suspendListener;\n  exports.suspendListeners = suspendListeners;\n  exports.watchedEvents = watchedEvents;\n  exports.sendEvent = sendEvent;\n  exports.hasListeners = hasListeners;\n  exports.listenersFor = listenersFor;\n  exports.on = on;\n\n  /*\n    The event system uses a series of nested hashes to store listeners on an\n    object. When a listener is registered, or when an event arrives, these\n    hashes are consulted to determine which target and action pair to invoke.\n  \n    The hashes are stored in the object's meta hash, and look like this:\n  \n        // Object's meta hash\n        {\n          listeners: {       // variable name: `listenerSet`\n            \"foo:changed\": [ // variable name: `actions`\n              target, method, flags\n            ]\n          }\n        }\n  \n  */\n\n  function indexOf(array, target, method) {\n    var index = -1;\n    // hashes are added to the end of the event array\n    // so it makes sense to start searching at the end\n    // of the array and search in reverse\n    for (var i = array.length - 3; i >= 0; i -= 3) {\n      if (target === array[i] && method === array[i + 1]) {\n        index = i;\n        break;\n      }\n    }\n    return index;\n  }\n\n  function accumulateListeners(obj, eventName, otherActions) {\n    var meta = _emberMetalMeta.peekMeta(obj);\n    if (!meta) {\n      return;\n    }\n    var actions = meta.matchingListeners(eventName);\n    if (actions === undefined) {\n      return;\n    }\n    var newActions = [];\n\n    for (var i = actions.length - 3; i >= 0; i -= 3) {\n      var target = actions[i];\n      var method = actions[i + 1];\n      var flags = actions[i + 2];\n      var actionIndex = indexOf(otherActions, target, method);\n\n      if (actionIndex === -1) {\n        otherActions.push(target, method, flags);\n        newActions.push(target, method, flags);\n      }\n    }\n\n    return newActions;\n  }\n\n  /**\n    Add an event listener\n  \n    @method addListener\n    @for Ember\n    @param obj\n    @param {String} eventName\n    @param {Object|Function} target A target object or a function\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @param {Boolean} once A flag whether a function should only be called once\n    @public\n  */\n\n  function addListener(obj, eventName, target, method, once) {\n    _emberDebug.assert('You must pass at least an object and event name to Ember.addListener', !!obj && !!eventName);\n\n    _emberDebug.deprecate('didInitAttrs called in ' + (obj && obj.toString && obj.toString()) + '.', eventName !== 'didInitAttrs', {\n      id: 'ember-views.did-init-attrs',\n      until: '3.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_ember-component-didinitattrs'\n    });\n\n    if (!method && 'function' === typeof target) {\n      method = target;\n      target = null;\n    }\n\n    var flags = 0;\n    if (once) {\n      flags |= _emberMetalMeta_listeners.ONCE;\n    }\n\n    _emberMetalMeta.meta(obj).addToListeners(eventName, target, method, flags);\n\n    if ('function' === typeof obj.didAddListener) {\n      obj.didAddListener(eventName, target, method);\n    }\n  }\n\n  /**\n    Remove an event listener\n  \n    Arguments should match those passed to `Ember.addListener`.\n  \n    @method removeListener\n    @for Ember\n    @param obj\n    @param {String} eventName\n    @param {Object|Function} target A target object or a function\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @public\n  */\n\n  function removeListener(obj, eventName, target, method) {\n    _emberDebug.assert('You must pass at least an object and event name to Ember.removeListener', !!obj && !!eventName);\n\n    if (!method && 'function' === typeof target) {\n      method = target;\n      target = null;\n    }\n\n    _emberMetalMeta.meta(obj).removeFromListeners(eventName, target, method, function () {\n      if ('function' === typeof obj.didRemoveListener) {\n        obj.didRemoveListener.apply(obj, arguments);\n      }\n    });\n  }\n\n  /**\n    Suspend listener during callback.\n  \n    This should only be used by the target of the event listener\n    when it is taking an action that would cause the event, e.g.\n    an object might suspend its property change listener while it is\n    setting that property.\n  \n    @method suspendListener\n    @for Ember\n  \n    @private\n    @param obj\n    @param {String} eventName\n    @param {Object|Function} target A target object or a function\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @param {Function} callback\n  */\n\n  function suspendListener(obj, eventName, target, method, callback) {\n    return suspendListeners(obj, [eventName], target, method, callback);\n  }\n\n  /**\n    Suspends multiple listeners during a callback.\n  \n    @method suspendListeners\n    @for Ember\n  \n    @private\n    @param obj\n    @param {Array} eventNames Array of event names\n    @param {Object|Function} target A target object or a function\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @param {Function} callback\n  */\n\n  function suspendListeners(obj, eventNames, target, method, callback) {\n    if (!method && 'function' === typeof target) {\n      method = target;\n      target = null;\n    }\n    return _emberMetalMeta.meta(obj).suspendListeners(eventNames, target, method, callback);\n  }\n\n  /**\n    Return a list of currently watched events\n  \n    @private\n    @method watchedEvents\n    @for Ember\n    @param obj\n  */\n\n  function watchedEvents(obj) {\n    return _emberMetalMeta.meta(obj).watchedEvents();\n  }\n\n  /**\n    Send an event. The execution of suspended listeners\n    is skipped, and once listeners are removed. A listener without\n    a target is executed on the passed object. If an array of actions\n    is not passed, the actions stored on the passed object are invoked.\n  \n    @method sendEvent\n    @for Ember\n    @param obj\n    @param {String} eventName\n    @param {Array} params Optional parameters for each listener.\n    @param {Array} actions Optional array of actions (listeners).\n    @return true\n    @public\n  */\n\n  function sendEvent(obj, eventName, params, actions) {\n    if (!actions) {\n      var meta = _emberMetalMeta.peekMeta(obj);\n      actions = meta && meta.matchingListeners(eventName);\n    }\n\n    if (!actions || actions.length === 0) {\n      return;\n    }\n\n    for (var i = actions.length - 3; i >= 0; i -= 3) {\n      // looping in reverse for once listeners\n      var target = actions[i];\n      var method = actions[i + 1];\n      var flags = actions[i + 2];\n\n      if (!method) {\n        continue;\n      }\n      if (flags & _emberMetalMeta_listeners.SUSPENDED) {\n        continue;\n      }\n      if (flags & _emberMetalMeta_listeners.ONCE) {\n        removeListener(obj, eventName, target, method);\n      }\n      if (!target) {\n        target = obj;\n      }\n      if ('string' === typeof method) {\n        if (params) {\n          _emberUtils.applyStr(target, method, params);\n        } else {\n          target[method]();\n        }\n      } else {\n        if (params) {\n          method.apply(target, params);\n        } else {\n          method.call(target);\n        }\n      }\n    }\n    return true;\n  }\n\n  /**\n    @private\n    @method hasListeners\n    @for Ember\n    @param obj\n    @param {String} eventName\n  */\n\n  function hasListeners(obj, eventName) {\n    var meta = _emberMetalMeta.peekMeta(obj);\n    if (!meta) {\n      return false;\n    }\n    var matched = meta.matchingListeners(eventName);\n    return matched !== undefined && matched.length > 0;\n  }\n\n  /**\n    @private\n    @method listenersFor\n    @for Ember\n    @param obj\n    @param {String} eventName\n  */\n\n  function listenersFor(obj, eventName) {\n    var ret = [];\n    var meta = _emberMetalMeta.peekMeta(obj);\n    var actions = meta && meta.matchingListeners(eventName);\n\n    if (!actions) {\n      return ret;\n    }\n\n    for (var i = 0; i < actions.length; i += 3) {\n      var target = actions[i];\n      var method = actions[i + 1];\n      ret.push([target, method]);\n    }\n\n    return ret;\n  }\n\n  /**\n    Define a property as a function that should be executed when\n    a specified event or events are triggered.\n  \n  \n    ``` javascript\n    let Job = Ember.Object.extend({\n      logCompleted: Ember.on('completed', function() {\n        console.log('Job completed!');\n      })\n    });\n  \n    let job = Job.create();\n  \n    Ember.sendEvent(job, 'completed'); // Logs 'Job completed!'\n   ```\n  \n    @method on\n    @for Ember\n    @param {String} eventNames*\n    @param {Function} func\n    @return func\n    @public\n  */\n\n  function on() {\n    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    var func = args.pop();\n    var events = args;\n    func.__ember_listens__ = events;\n    return func;\n  }\n});\nenifed('ember-metal/expand_properties', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  exports.default = expandProperties;\n\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  var END_WITH_EACH_REGEX = /\\.@each$/;\n\n  /**\n    Expands `pattern`, invoking `callback` for each expansion.\n  \n    The only pattern supported is brace-expansion, anything else will be passed\n    once to `callback` directly.\n  \n    Example\n  \n    ```js\n    function echo(arg){ console.log(arg); }\n  \n    Ember.expandProperties('foo.bar', echo);              //=> 'foo.bar'\n    Ember.expandProperties('{foo,bar}', echo);            //=> 'foo', 'bar'\n    Ember.expandProperties('foo.{bar,baz}', echo);        //=> 'foo.bar', 'foo.baz'\n    Ember.expandProperties('{foo,bar}.baz', echo);        //=> 'foo.baz', 'bar.baz'\n    Ember.expandProperties('foo.{bar,baz}.[]', echo)      //=> 'foo.bar.[]', 'foo.baz.[]'\n    Ember.expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'\n    Ember.expandProperties('{foo}.bar.{baz}')             //=> 'foo.bar.baz'\n    ```\n  \n    @method expandProperties\n    @for Ember\n    @private\n    @param {String} pattern The property pattern to expand.\n    @param {Function} callback The callback to invoke.  It is invoked once per\n    expansion, and is passed the expansion.\n  */\n\n  function expandProperties(pattern, callback) {\n    _emberDebug.assert('A computed property key must be a string, you passed ' + typeof pattern + ' ' + pattern, typeof pattern === 'string');\n    _emberDebug.assert('Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"', pattern.indexOf(' ') === -1);\n\n    var unbalancedNestedError = 'Brace expanded properties have to be balanced and cannot be nested, pattern: ' + pattern;\n    var properties = [pattern];\n\n    // Iterating backward over the pattern makes dealing with indices easier.\n    var bookmark = undefined;\n    var inside = false;\n    for (var i = pattern.length; i > 0; --i) {\n      var current = pattern[i - 1];\n\n      switch (current) {\n        // Closing curly brace will be the first character of the brace expansion we encounter.\n        // Bookmark its index so long as we're not already inside a brace expansion.\n        case '}':\n          if (!inside) {\n            bookmark = i - 1;\n            inside = true;\n          } else {\n            _emberDebug.assert(unbalancedNestedError, false);\n          }\n          break;\n        // Opening curly brace will be the last character of the brace expansion we encounter.\n        // Apply the brace expansion so long as we've already seen a closing curly brace.\n        case '{':\n          if (inside) {\n            var expansion = pattern.slice(i, bookmark).split(',');\n            // Iterating backward allows us to push new properties w/out affecting our \"cursor\".\n            for (var j = properties.length; j > 0; --j) {\n              // Extract the unexpanded property from the array.\n              var property = properties.splice(j - 1, 1)[0];\n              // Iterate over the expansion, pushing the newly formed properties onto the array.\n              for (var k = 0; k < expansion.length; ++k) {\n                properties.push(property.slice(0, i - 1) + expansion[k] + property.slice(bookmark + 1));\n              }\n            }\n            inside = false;\n          } else {\n            _emberDebug.assert(unbalancedNestedError, false);\n          }\n          break;\n      }\n    }\n    if (inside) {\n      _emberDebug.assert(unbalancedNestedError, false);\n    }\n\n    for (var i = 0; i < properties.length; i++) {\n      callback(properties[i].replace(END_WITH_EACH_REGEX, '.[]'));\n    }\n  }\n});\nenifed('ember-metal/get_properties', ['exports', 'ember-metal/property_get'], function (exports, _emberMetalProperty_get) {\n  'use strict';\n\n  exports.default = getProperties;\n\n  /**\n    To get multiple properties at once, call `Ember.getProperties`\n    with an object followed by a list of strings or an array:\n  \n    ```javascript\n    Ember.getProperties(record, 'firstName', 'lastName', 'zipCode');\n    // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n    ```\n  \n    is equivalent to:\n  \n    ```javascript\n    Ember.getProperties(record, ['firstName', 'lastName', 'zipCode']);\n    // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n    ```\n  \n    @method getProperties\n    @for Ember\n    @param {Object} obj\n    @param {String...|Array} list of keys to get\n    @return {Object}\n    @public\n  */\n\n  function getProperties(obj) {\n    var ret = {};\n    var propertyNames = arguments;\n    var i = 1;\n\n    if (arguments.length === 2 && Array.isArray(arguments[1])) {\n      i = 0;\n      propertyNames = arguments[1];\n    }\n    for (; i < propertyNames.length; i++) {\n      ret[propertyNames[i]] = _emberMetalProperty_get.get(obj, propertyNames[i]);\n    }\n    return ret;\n  }\n});\nenifed('ember-metal/index', ['exports', 'ember-metal/core', 'ember-metal/computed', 'ember-metal/alias', 'ember-metal/merge', 'ember-metal/deprecate_property', 'ember-metal/instrumentation', 'ember-metal/error_handler', 'ember-metal/meta', 'ember-metal/cache', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-metal/weak_map', 'ember-metal/events', 'ember-metal/is_none', 'ember-metal/is_empty', 'ember-metal/is_blank', 'ember-metal/is_present', 'ember-metal/run_loop', 'ember-metal/observer_set', 'ember-metal/property_events', 'ember-metal/properties', 'ember-metal/watch_key', 'ember-metal/chains', 'ember-metal/watch_path', 'ember-metal/watching', 'ember-metal/libraries', 'ember-metal/map', 'ember-metal/get_properties', 'ember-metal/set_properties', 'ember-metal/expand_properties', 'ember-metal/observer', 'ember-metal/mixin', 'ember-metal/binding', 'ember-metal/path_cache', 'ember-metal/injected_property', 'ember-metal/tags', 'ember-metal/replace', 'ember-metal/transaction', 'ember-metal/is_proxy', 'ember-metal/descriptor'], function (exports, _emberMetalCore, _emberMetalComputed, _emberMetalAlias, _emberMetalMerge, _emberMetalDeprecate_property, _emberMetalInstrumentation, _emberMetalError_handler, _emberMetalMeta, _emberMetalCache, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalWeak_map, _emberMetalEvents, _emberMetalIs_none, _emberMetalIs_empty, _emberMetalIs_blank, _emberMetalIs_present, _emberMetalRun_loop, _emberMetalObserver_set, _emberMetalProperty_events, _emberMetalProperties, _emberMetalWatch_key, _emberMetalChains, _emberMetalWatch_path, _emberMetalWatching, _emberMetalLibraries, _emberMetalMap, _emberMetalGet_properties, _emberMetalSet_properties, _emberMetalExpand_properties, _emberMetalObserver, _emberMetalMixin, _emberMetalBinding, _emberMetalPath_cache, _emberMetalInjected_property, _emberMetalTags, _emberMetalReplace, _emberMetalTransaction, _emberMetalIs_proxy, _emberMetalDescriptor) {\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  'use strict';\n\n  exports.default = _emberMetalCore.default;\n  // reexports\n  exports.computed = _emberMetalComputed.default;\n  exports.cacheFor = _emberMetalComputed.cacheFor;\n  exports.ComputedProperty = _emberMetalComputed.ComputedProperty;\n  exports.alias = _emberMetalAlias.default;\n  exports.merge = _emberMetalMerge.default;\n  exports.deprecateProperty = _emberMetalDeprecate_property.deprecateProperty;\n  exports.instrument = _emberMetalInstrumentation.instrument;\n  exports.flaggedInstrument = _emberMetalInstrumentation.flaggedInstrument;\n  exports._instrumentStart = _emberMetalInstrumentation._instrumentStart;\n  exports.instrumentationReset = _emberMetalInstrumentation.reset;\n  exports.instrumentationSubscribe = _emberMetalInstrumentation.subscribe;\n  exports.instrumentationUnsubscribe = _emberMetalInstrumentation.unsubscribe;\n  exports.getOnerror = _emberMetalError_handler.getOnerror;\n  exports.setOnerror = _emberMetalError_handler.setOnerror;\n  exports.dispatchError = _emberMetalError_handler.dispatchError;\n  exports.setDispatchOverride = _emberMetalError_handler.setDispatchOverride;\n  exports.META_DESC = _emberMetalMeta.META_DESC;\n  exports.meta = _emberMetalMeta.meta;\n  exports.peekMeta = _emberMetalMeta.peekMeta;\n  exports.Cache = _emberMetalCache.default;\n  exports._getPath = _emberMetalProperty_get._getPath;\n  exports.get = _emberMetalProperty_get.get;\n  exports.getWithDefault = _emberMetalProperty_get.getWithDefault;\n  exports.set = _emberMetalProperty_set.set;\n  exports.trySet = _emberMetalProperty_set.trySet;\n  exports.WeakMap = _emberMetalWeak_map.default;\n  exports.accumulateListeners = _emberMetalEvents.accumulateListeners;\n  exports.addListener = _emberMetalEvents.addListener;\n  exports.hasListeners = _emberMetalEvents.hasListeners;\n  exports.listenersFor = _emberMetalEvents.listenersFor;\n  exports.on = _emberMetalEvents.on;\n  exports.removeListener = _emberMetalEvents.removeListener;\n  exports.sendEvent = _emberMetalEvents.sendEvent;\n  exports.suspendListener = _emberMetalEvents.suspendListener;\n  exports.suspendListeners = _emberMetalEvents.suspendListeners;\n  exports.watchedEvents = _emberMetalEvents.watchedEvents;\n  exports.isNone = _emberMetalIs_none.default;\n  exports.isEmpty = _emberMetalIs_empty.default;\n  exports.isBlank = _emberMetalIs_blank.default;\n  exports.isPresent = _emberMetalIs_present.default;\n  exports.run = _emberMetalRun_loop.default;\n  exports.ObserverSet = _emberMetalObserver_set.default;\n  exports.beginPropertyChanges = _emberMetalProperty_events.beginPropertyChanges;\n  exports.changeProperties = _emberMetalProperty_events.changeProperties;\n  exports.endPropertyChanges = _emberMetalProperty_events.endPropertyChanges;\n  exports.overrideChains = _emberMetalProperty_events.overrideChains;\n  exports.propertyDidChange = _emberMetalProperty_events.propertyDidChange;\n  exports.propertyWillChange = _emberMetalProperty_events.propertyWillChange;\n  exports.PROPERTY_DID_CHANGE = _emberMetalProperty_events.PROPERTY_DID_CHANGE;\n  exports.defineProperty = _emberMetalProperties.defineProperty;\n  exports.Descriptor = _emberMetalProperties.Descriptor;\n  exports._hasCachedComputedProperties = _emberMetalProperties._hasCachedComputedProperties;\n  exports.watchKey = _emberMetalWatch_key.watchKey;\n  exports.unwatchKey = _emberMetalWatch_key.unwatchKey;\n  exports.ChainNode = _emberMetalChains.ChainNode;\n  exports.finishChains = _emberMetalChains.finishChains;\n  exports.removeChainWatcher = _emberMetalChains.removeChainWatcher;\n  exports.watchPath = _emberMetalWatch_path.watchPath;\n  exports.unwatchPath = _emberMetalWatch_path.unwatchPath;\n  exports.destroy = _emberMetalWatching.destroy;\n  exports.isWatching = _emberMetalWatching.isWatching;\n  exports.unwatch = _emberMetalWatching.unwatch;\n  exports.watch = _emberMetalWatching.watch;\n  exports.watcherCount = _emberMetalWatching.watcherCount;\n  exports.libraries = _emberMetalLibraries.default;\n  exports.Map = _emberMetalMap.Map;\n  exports.MapWithDefault = _emberMetalMap.MapWithDefault;\n  exports.OrderedSet = _emberMetalMap.OrderedSet;\n  exports.getProperties = _emberMetalGet_properties.default;\n  exports.setProperties = _emberMetalSet_properties.default;\n  exports.expandProperties = _emberMetalExpand_properties.default;\n  exports._suspendObserver = _emberMetalObserver._suspendObserver;\n  exports._suspendObservers = _emberMetalObserver._suspendObservers;\n  exports.addObserver = _emberMetalObserver.addObserver;\n  exports.observersFor = _emberMetalObserver.observersFor;\n  exports.removeObserver = _emberMetalObserver.removeObserver;\n  exports._addBeforeObserver = _emberMetalObserver._addBeforeObserver;\n  exports._removeBeforeObserver = _emberMetalObserver._removeBeforeObserver;\n  exports.Mixin = _emberMetalMixin.Mixin;\n  exports.aliasMethod = _emberMetalMixin.aliasMethod;\n  exports._immediateObserver = _emberMetalMixin._immediateObserver;\n  exports._beforeObserver = _emberMetalMixin._beforeObserver;\n  exports.mixin = _emberMetalMixin.mixin;\n  exports.observer = _emberMetalMixin.observer;\n  exports.required = _emberMetalMixin.required;\n  exports.REQUIRED = _emberMetalMixin.REQUIRED;\n  exports.hasUnprocessedMixins = _emberMetalMixin.hasUnprocessedMixins;\n  exports.clearUnprocessedMixins = _emberMetalMixin.clearUnprocessedMixins;\n  exports.detectBinding = _emberMetalMixin.detectBinding;\n  exports.Binding = _emberMetalBinding.Binding;\n  exports.bind = _emberMetalBinding.bind;\n  exports.isGlobalPath = _emberMetalPath_cache.isGlobalPath;\n  exports.InjectedProperty = _emberMetalInjected_property.default;\n  exports.setHasViews = _emberMetalTags.setHasViews;\n  exports.tagForProperty = _emberMetalTags.tagForProperty;\n  exports.tagFor = _emberMetalTags.tagFor;\n  exports.markObjectAsDirty = _emberMetalTags.markObjectAsDirty;\n  exports.replace = _emberMetalReplace.default;\n  exports.runInTransaction = _emberMetalTransaction.default;\n  exports.didRender = _emberMetalTransaction.didRender;\n  exports.assertNotRendered = _emberMetalTransaction.assertNotRendered;\n  exports.isProxy = _emberMetalIs_proxy.isProxy;\n  exports.descriptor = _emberMetalDescriptor.default;\n});\nenifed('ember-metal/injected_property', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/computed', 'ember-metal/alias', 'ember-metal/properties'], function (exports, _emberUtils, _emberDebug, _emberMetalComputed, _emberMetalAlias, _emberMetalProperties) {\n  'use strict';\n\n  exports.default = InjectedProperty;\n\n  /**\n    Read-only property that returns the result of a container lookup.\n  \n    @class InjectedProperty\n    @namespace Ember\n    @constructor\n    @param {String} type The container type the property will lookup\n    @param {String} name (optional) The name the property will lookup, defaults\n           to the property's name\n    @private\n  */\n\n  function InjectedProperty(type, name) {\n    this.type = type;\n    this.name = name;\n\n    this._super$Constructor(injectedPropertyGet);\n    AliasedPropertyPrototype.oneWay.call(this);\n  }\n\n  function injectedPropertyGet(keyName) {\n    var desc = this[keyName];\n    var owner = _emberUtils.getOwner(this) || this.container; // fallback to `container` for backwards compat\n\n    _emberDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);\n    _emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);\n\n    return owner.lookup(desc.type + ':' + (desc.name || keyName));\n  }\n\n  InjectedProperty.prototype = Object.create(_emberMetalProperties.Descriptor.prototype);\n\n  var InjectedPropertyPrototype = InjectedProperty.prototype;\n  var ComputedPropertyPrototype = _emberMetalComputed.ComputedProperty.prototype;\n  var AliasedPropertyPrototype = _emberMetalAlias.AliasedProperty.prototype;\n\n  InjectedPropertyPrototype._super$Constructor = _emberMetalComputed.ComputedProperty;\n\n  InjectedPropertyPrototype.get = ComputedPropertyPrototype.get;\n  InjectedPropertyPrototype.readOnly = ComputedPropertyPrototype.readOnly;\n  InjectedPropertyPrototype.teardown = ComputedPropertyPrototype.teardown;\n});\nenifed('ember-metal/instrumentation', ['exports', 'ember-environment', 'ember-debug'], function (exports, _emberEnvironment, _emberDebug) {\n  /* eslint no-console:off */\n  /* global console */\n\n  'use strict';\n\n  exports.instrument = instrument;\n  exports._instrumentStart = _instrumentStart;\n  exports.subscribe = subscribe;\n  exports.unsubscribe = unsubscribe;\n  exports.reset = reset;\n\n  /**\n    The purpose of the Ember Instrumentation module is\n    to provide efficient, general-purpose instrumentation\n    for Ember.\n  \n    Subscribe to a listener by using `Ember.subscribe`:\n  \n    ```javascript\n    Ember.subscribe(\"render\", {\n      before(name, timestamp, payload) {\n  \n      },\n  \n      after(name, timestamp, payload) {\n  \n      }\n    });\n    ```\n  \n    If you return a value from the `before` callback, that same\n    value will be passed as a fourth parameter to the `after`\n    callback.\n  \n    Instrument a block of code by using `Ember.instrument`:\n  \n    ```javascript\n    Ember.instrument(\"render.handlebars\", payload, function() {\n      // rendering logic\n    }, binding);\n    ```\n  \n    Event names passed to `Ember.instrument` are namespaced\n    by periods, from more general to more specific. Subscribers\n    can listen for events by whatever level of granularity they\n    are interested in.\n  \n    In the above example, the event is `render.handlebars`,\n    and the subscriber listened for all events beginning with\n    `render`. It would receive callbacks for events named\n    `render`, `render.handlebars`, `render.container`, or\n    even `render.handlebars.layout`.\n  \n    @class Instrumentation\n    @namespace Ember\n    @static\n    @private\n  */\n  var subscribers = [];\n  exports.subscribers = subscribers;\n  var cache = {};\n\n  function populateListeners(name) {\n    var listeners = [];\n    var subscriber = undefined;\n\n    for (var i = 0; i < subscribers.length; i++) {\n      subscriber = subscribers[i];\n      if (subscriber.regex.test(name)) {\n        listeners.push(subscriber.object);\n      }\n    }\n\n    cache[name] = listeners;\n    return listeners;\n  }\n\n  var time = (function () {\n    var perf = 'undefined' !== typeof window ? window.performance || {} : {};\n    var fn = perf.now || perf.mozNow || perf.webkitNow || perf.msNow || perf.oNow;\n    // fn.bind will be available in all the browsers that support the advanced window.performance... ;-)\n    return fn ? fn.bind(perf) : function () {\n      return +new Date();\n    };\n  })();\n\n  /**\n    Notifies event's subscribers, calls `before` and `after` hooks.\n  \n    @method instrument\n    @namespace Ember.Instrumentation\n  \n    @param {String} [name] Namespaced event name.\n    @param {Object} _payload\n    @param {Function} callback Function that you're instrumenting.\n    @param {Object} binding Context that instrument function is called with.\n    @private\n  */\n\n  function instrument(name, _payload, callback, binding) {\n    if (arguments.length <= 3 && typeof _payload === 'function') {\n      binding = callback;\n      callback = _payload;\n      _payload = undefined;\n    }\n    if (subscribers.length === 0) {\n      return callback.call(binding);\n    }\n    var payload = _payload || {};\n    var finalizer = _instrumentStart(name, function () {\n      return payload;\n    });\n\n    if (finalizer) {\n      return withFinalizer(callback, finalizer, payload, binding);\n    } else {\n      return callback.call(binding);\n    }\n  }\n\n  var flaggedInstrument = undefined;\n  if (false) {\n    exports.flaggedInstrument = flaggedInstrument = instrument;\n  } else {\n    exports.flaggedInstrument = flaggedInstrument = function (name, payload, callback) {\n      return callback();\n    };\n  }\n  exports.flaggedInstrument = flaggedInstrument;\n\n  function withFinalizer(callback, finalizer, payload, binding) {\n    var result = undefined;\n    try {\n      result = callback.call(binding);\n    } catch (e) {\n      payload.exception = e;\n      result = payload;\n    } finally {\n      finalizer();\n    }\n    return result;\n  }\n\n  function NOOP() {}\n\n  // private for now\n\n  function _instrumentStart(name, _payload, _payloadParam) {\n    if (subscribers.length === 0) {\n      return NOOP;\n    }\n\n    var listeners = cache[name];\n\n    if (!listeners) {\n      listeners = populateListeners(name);\n    }\n\n    if (listeners.length === 0) {\n      return NOOP;\n    }\n\n    var payload = _payload(_payloadParam);\n\n    var STRUCTURED_PROFILE = _emberEnvironment.ENV.STRUCTURED_PROFILE;\n    var timeName = undefined;\n    if (STRUCTURED_PROFILE) {\n      timeName = name + ': ' + payload.object;\n      console.time(timeName);\n    }\n\n    var beforeValues = new Array(listeners.length);\n    var i = undefined,\n        listener = undefined;\n    var timestamp = time();\n    for (i = 0; i < listeners.length; i++) {\n      listener = listeners[i];\n      beforeValues[i] = listener.before(name, timestamp, payload);\n    }\n\n    return function _instrumentEnd() {\n      var i = undefined,\n          listener = undefined;\n      var timestamp = time();\n      for (i = 0; i < listeners.length; i++) {\n        listener = listeners[i];\n        if (typeof listener.after === 'function') {\n          listener.after(name, timestamp, payload, beforeValues[i]);\n        }\n      }\n\n      if (STRUCTURED_PROFILE) {\n        console.timeEnd(timeName);\n      }\n    };\n  }\n\n  /**\n    Subscribes to a particular event or instrumented block of code.\n  \n    @method subscribe\n    @namespace Ember.Instrumentation\n  \n    @param {String} [pattern] Namespaced event name.\n    @param {Object} [object] Before and After hooks.\n  \n    @return {Subscriber}\n    @private\n  */\n\n  function subscribe(pattern, object) {\n    var paths = pattern.split('.');\n    var path = undefined;\n    var regex = [];\n\n    for (var i = 0; i < paths.length; i++) {\n      path = paths[i];\n      if (path === '*') {\n        regex.push('[^\\\\.]*');\n      } else {\n        regex.push(path);\n      }\n    }\n\n    regex = regex.join('\\\\.');\n    regex = regex + '(\\\\..*)?';\n\n    var subscriber = {\n      pattern: pattern,\n      regex: new RegExp('^' + regex + '$'),\n      object: object\n    };\n\n    subscribers.push(subscriber);\n    cache = {};\n\n    return subscriber;\n  }\n\n  /**\n    Unsubscribes from a particular event or instrumented block of code.\n  \n    @method unsubscribe\n    @namespace Ember.Instrumentation\n  \n    @param {Object} [subscriber]\n    @private\n  */\n\n  function unsubscribe(subscriber) {\n    var index = undefined;\n\n    for (var i = 0; i < subscribers.length; i++) {\n      if (subscribers[i] === subscriber) {\n        index = i;\n      }\n    }\n\n    subscribers.splice(index, 1);\n    cache = {};\n  }\n\n  /**\n    Resets `Ember.Instrumentation` by flushing list of subscribers.\n  \n    @method reset\n    @namespace Ember.Instrumentation\n    @private\n  */\n\n  function reset() {\n    subscribers.length = 0;\n    cache = {};\n  }\n});\nenifed('ember-metal/is_blank', ['exports', 'ember-metal/is_empty'], function (exports, _emberMetalIs_empty) {\n  'use strict';\n\n  exports.default = isBlank;\n\n  /**\n    A value is blank if it is empty or a whitespace string.\n  \n    ```javascript\n    Ember.isBlank();                // true\n    Ember.isBlank(null);            // true\n    Ember.isBlank(undefined);       // true\n    Ember.isBlank('');              // true\n    Ember.isBlank([]);              // true\n    Ember.isBlank('\\n\\t');          // true\n    Ember.isBlank('  ');            // true\n    Ember.isBlank({});              // false\n    Ember.isBlank('\\n\\t Hello');    // false\n    Ember.isBlank('Hello world');   // false\n    Ember.isBlank([1,2,3]);         // false\n    ```\n  \n    @method isBlank\n    @for Ember\n    @param {Object} obj Value to test\n    @return {Boolean}\n    @since 1.5.0\n    @public\n  */\n\n  function isBlank(obj) {\n    return _emberMetalIs_empty.default(obj) || typeof obj === 'string' && obj.match(/\\S/) === null;\n  }\n});\nenifed('ember-metal/is_empty', ['exports', 'ember-metal/property_get', 'ember-metal/is_none'], function (exports, _emberMetalProperty_get, _emberMetalIs_none) {\n  'use strict';\n\n  exports.default = isEmpty;\n\n  /**\n    Verifies that a value is `null` or an empty string, empty array,\n    or empty function.\n  \n    Constrains the rules on `Ember.isNone` by returning true for empty\n    string and empty arrays.\n  \n    ```javascript\n    Ember.isEmpty();                // true\n    Ember.isEmpty(null);            // true\n    Ember.isEmpty(undefined);       // true\n    Ember.isEmpty('');              // true\n    Ember.isEmpty([]);              // true\n    Ember.isEmpty({});              // false\n    Ember.isEmpty('Adam Hawkins');  // false\n    Ember.isEmpty([0,1,2]);         // false\n    Ember.isEmpty('\\n\\t');          // false\n    Ember.isEmpty('  ');            // false\n    ```\n  \n    @method isEmpty\n    @for Ember\n    @param {Object} obj Value to test\n    @return {Boolean}\n    @public\n  */\n\n  function isEmpty(obj) {\n    var none = _emberMetalIs_none.default(obj);\n    if (none) {\n      return none;\n    }\n\n    if (typeof obj.size === 'number') {\n      return !obj.size;\n    }\n\n    var objectType = typeof obj;\n\n    if (objectType === 'object') {\n      var size = _emberMetalProperty_get.get(obj, 'size');\n      if (typeof size === 'number') {\n        return !size;\n      }\n    }\n\n    if (typeof obj.length === 'number' && objectType !== 'function') {\n      return !obj.length;\n    }\n\n    if (objectType === 'object') {\n      var _length = _emberMetalProperty_get.get(obj, 'length');\n      if (typeof _length === 'number') {\n        return !_length;\n      }\n    }\n\n    return false;\n  }\n});\nenifed(\"ember-metal/is_none\", [\"exports\"], function (exports) {\n  /**\n    Returns true if the passed value is null or undefined. This avoids errors\n    from JSLint complaining about use of ==, which can be technically\n    confusing.\n  \n    ```javascript\n    Ember.isNone();              // true\n    Ember.isNone(null);          // true\n    Ember.isNone(undefined);     // true\n    Ember.isNone('');            // false\n    Ember.isNone([]);            // false\n    Ember.isNone(function() {}); // false\n    ```\n  \n    @method isNone\n    @for Ember\n    @param {Object} obj Value to test\n    @return {Boolean}\n    @public\n  */\n  \"use strict\";\n\n  exports.default = isNone;\n\n  function isNone(obj) {\n    return obj === null || obj === undefined;\n  }\n});\nenifed('ember-metal/is_present', ['exports', 'ember-metal/is_blank'], function (exports, _emberMetalIs_blank) {\n  'use strict';\n\n  exports.default = isPresent;\n\n  /**\n    A value is present if it not `isBlank`.\n  \n    ```javascript\n    Ember.isPresent();                // false\n    Ember.isPresent(null);            // false\n    Ember.isPresent(undefined);       // false\n    Ember.isPresent('');              // false\n    Ember.isPresent('  ');            // false\n    Ember.isPresent('\\n\\t');          // false\n    Ember.isPresent([]);              // false\n    Ember.isPresent({ length: 0 })    // false\n    Ember.isPresent(false);           // true\n    Ember.isPresent(true);            // true\n    Ember.isPresent('string');        // true\n    Ember.isPresent(0);               // true\n    Ember.isPresent(function() {})    // true\n    Ember.isPresent({});              // true\n    Ember.isPresent(false);           // true\n    Ember.isPresent('\\n\\t Hello');    // true\n    Ember.isPresent([1,2,3]);         // true\n    ```\n  \n    @method isPresent\n    @for Ember\n    @param {Object} obj Value to test\n    @return {Boolean}\n    @since 1.8.0\n    @public\n  */\n\n  function isPresent(obj) {\n    return !_emberMetalIs_blank.default(obj);\n  }\n});\nenifed('ember-metal/is_proxy', ['exports', 'ember-metal/meta'], function (exports, _emberMetalMeta) {\n  'use strict';\n\n  exports.isProxy = isProxy;\n\n  function isProxy(value) {\n    if (typeof value === 'object' && value) {\n      var meta = _emberMetalMeta.peekMeta(value);\n      return meta && meta.isProxy();\n    }\n\n    return false;\n  }\n});\nenifed('ember-metal/libraries', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  /**\n    Helper class that allows you to register your library with Ember.\n  \n    Singleton created at `Ember.libraries`.\n  \n    @class Libraries\n    @constructor\n    @private\n  */\n\n  var Libraries = (function () {\n    function Libraries() {\n      babelHelpers.classCallCheck(this, Libraries);\n\n      this._registry = [];\n      this._coreLibIndex = 0;\n    }\n\n    Libraries.prototype.isRegistered = function isRegistered(name) {\n      return !!this._getLibraryByName(name);\n    };\n\n    return Libraries;\n  })();\n\n  exports.Libraries = Libraries;\n\n  Libraries.prototype = {\n    constructor: Libraries,\n\n    _getLibraryByName: function (name) {\n      var libs = this._registry;\n      var count = libs.length;\n\n      for (var i = 0; i < count; i++) {\n        if (libs[i].name === name) {\n          return libs[i];\n        }\n      }\n    },\n\n    register: function (name, version, isCoreLibrary) {\n      var index = this._registry.length;\n\n      if (!this._getLibraryByName(name)) {\n        if (isCoreLibrary) {\n          index = this._coreLibIndex++;\n        }\n        this._registry.splice(index, 0, { name: name, version: version });\n      } else {\n        _emberDebug.warn('Library \"' + name + '\" is already registered with Ember.', false, { id: 'ember-metal.libraries-register' });\n      }\n    },\n\n    registerCoreLibrary: function (name, version) {\n      this.register(name, version, true);\n    },\n\n    deRegister: function (name) {\n      var lib = this._getLibraryByName(name);\n      var index = undefined;\n\n      if (lib) {\n        index = this._registry.indexOf(lib);\n        this._registry.splice(index, 1);\n      }\n    }\n  };\n\n  if (false) {\n    Libraries.prototype.isRegistered = function (name) {\n      return !!this._getLibraryByName(name);\n    };\n  }\n\n  exports.default = new Libraries();\n});\nenifed('ember-metal/map', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  /*\n    JavaScript (before ES6) does not have a Map implementation. Objects,\n    which are often used as dictionaries, may only have Strings as keys.\n  \n    Because Ember has a way to get a unique identifier for every object\n    via `Ember.guidFor`, we can implement a performant Map with arbitrary\n    keys. Because it is commonly used in low-level bookkeeping, Map is\n    implemented as a pure JavaScript object for performance.\n  \n    This implementation follows the current iteration of the ES6 proposal for\n    maps (http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets),\n    with one exception:  as we do not have the luxury of in-VM iteration, we implement a\n    forEach method for iteration.\n  \n    Map is mocked out to look like an Ember object, so you can do\n    `Ember.Map.create()` for symmetry with other Ember classes.\n  */\n  'use strict';\n\n  function missingFunction(fn) {\n    throw new TypeError(Object.prototype.toString.call(fn) + ' is not a function');\n  }\n\n  function missingNew(name) {\n    throw new TypeError('Constructor ' + name + ' requires \\'new\\'');\n  }\n\n  function copyNull(obj) {\n    var output = Object.create(null);\n\n    for (var prop in obj) {\n      // hasOwnPropery is not needed because obj is Object.create(null);\n      output[prop] = obj[prop];\n    }\n\n    return output;\n  }\n\n  function copyMap(original, newObject) {\n    var keys = original._keys.copy();\n    var values = copyNull(original._values);\n\n    newObject._keys = keys;\n    newObject._values = values;\n    newObject.size = original.size;\n\n    return newObject;\n  }\n\n  /**\n    This class is used internally by Ember and Ember Data.\n    Please do not use it at this time. We plan to clean it up\n    and add many tests soon.\n  \n    @class OrderedSet\n    @namespace Ember\n    @constructor\n    @private\n  */\n  function OrderedSet() {\n    if (this instanceof OrderedSet) {\n      this.clear();\n      this._silenceRemoveDeprecation = false;\n    } else {\n      missingNew('OrderedSet');\n    }\n  }\n\n  /**\n    @method create\n    @static\n    @return {Ember.OrderedSet}\n    @private\n  */\n  OrderedSet.create = function () {\n    var Constructor = this;\n\n    return new Constructor();\n  };\n\n  OrderedSet.prototype = {\n    constructor: OrderedSet,\n    /**\n      @method clear\n      @private\n    */\n    clear: function () {\n      this.presenceSet = Object.create(null);\n      this.list = [];\n      this.size = 0;\n    },\n\n    /**\n      @method add\n      @param obj\n      @param guid (optional, and for internal use)\n      @return {Ember.OrderedSet}\n      @private\n    */\n    add: function (obj, _guid) {\n      var guid = _guid || _emberUtils.guidFor(obj);\n      var presenceSet = this.presenceSet;\n      var list = this.list;\n\n      if (presenceSet[guid] !== true) {\n        presenceSet[guid] = true;\n        this.size = list.push(obj);\n      }\n\n      return this;\n    },\n\n    /**\n      @since 1.8.0\n      @method delete\n      @param obj\n      @param _guid (optional and for internal use only)\n      @return {Boolean}\n      @private\n    */\n    delete: function (obj, _guid) {\n      var guid = _guid || _emberUtils.guidFor(obj);\n      var presenceSet = this.presenceSet;\n      var list = this.list;\n\n      if (presenceSet[guid] === true) {\n        delete presenceSet[guid];\n        var index = list.indexOf(obj);\n        if (index > -1) {\n          list.splice(index, 1);\n        }\n        this.size = list.length;\n        return true;\n      } else {\n        return false;\n      }\n    },\n\n    /**\n      @method isEmpty\n      @return {Boolean}\n      @private\n    */\n    isEmpty: function () {\n      return this.size === 0;\n    },\n\n    /**\n      @method has\n      @param obj\n      @return {Boolean}\n      @private\n    */\n    has: function (obj) {\n      if (this.size === 0) {\n        return false;\n      }\n\n      var guid = _emberUtils.guidFor(obj);\n      var presenceSet = this.presenceSet;\n\n      return presenceSet[guid] === true;\n    },\n\n    /**\n      @method forEach\n      @param {Function} fn\n      @param self\n      @private\n    */\n    forEach: function (fn /*, ...thisArg*/) {\n      if (typeof fn !== 'function') {\n        missingFunction(fn);\n      }\n\n      if (this.size === 0) {\n        return;\n      }\n\n      var list = this.list;\n\n      if (arguments.length === 2) {\n        for (var i = 0; i < list.length; i++) {\n          fn.call(arguments[1], list[i]);\n        }\n      } else {\n        for (var i = 0; i < list.length; i++) {\n          fn(list[i]);\n        }\n      }\n    },\n\n    /**\n      @method toArray\n      @return {Array}\n      @private\n    */\n    toArray: function () {\n      return this.list.slice();\n    },\n\n    /**\n      @method copy\n      @return {Ember.OrderedSet}\n      @private\n    */\n    copy: function () {\n      var Constructor = this.constructor;\n      var set = new Constructor();\n\n      set._silenceRemoveDeprecation = this._silenceRemoveDeprecation;\n      set.presenceSet = copyNull(this.presenceSet);\n      set.list = this.toArray();\n      set.size = this.size;\n\n      return set;\n    }\n  };\n\n  /**\n    A Map stores values indexed by keys. Unlike JavaScript's\n    default Objects, the keys of a Map can be any JavaScript\n    object.\n  \n    Internally, a Map has two data structures:\n  \n    1. `keys`: an OrderedSet of all of the existing keys\n    2. `values`: a JavaScript Object indexed by the `Ember.guidFor(key)`\n  \n    When a key/value pair is added for the first time, we\n    add the key to the `keys` OrderedSet, and create or\n    replace an entry in `values`. When an entry is deleted,\n    we delete its entry in `keys` and `values`.\n  \n    @class Map\n    @namespace Ember\n    @private\n    @constructor\n  */\n  function Map() {\n    if (this instanceof Map) {\n      this._keys = OrderedSet.create();\n      this._keys._silenceRemoveDeprecation = true;\n      this._values = Object.create(null);\n      this.size = 0;\n    } else {\n      missingNew('Map');\n    }\n  }\n\n  /**\n    @method create\n    @static\n    @private\n  */\n  Map.create = function () {\n    var Constructor = this;\n    return new Constructor();\n  };\n\n  Map.prototype = {\n    constructor: Map,\n\n    /**\n      This property will change as the number of objects in the map changes.\n       @since 1.8.0\n      @property size\n      @type number\n      @default 0\n      @private\n    */\n    size: 0,\n\n    /**\n      Retrieve the value associated with a given key.\n       @method get\n      @param {*} key\n      @return {*} the value associated with the key, or `undefined`\n      @private\n    */\n    get: function (key) {\n      if (this.size === 0) {\n        return;\n      }\n\n      var values = this._values;\n      var guid = _emberUtils.guidFor(key);\n\n      return values[guid];\n    },\n\n    /**\n      Adds a value to the map. If a value for the given key has already been\n      provided, the new value will replace the old value.\n       @method set\n      @param {*} key\n      @param {*} value\n      @return {Ember.Map}\n      @private\n    */\n    set: function (key, value) {\n      var keys = this._keys;\n      var values = this._values;\n      var guid = _emberUtils.guidFor(key);\n\n      // ensure we don't store -0\n      var k = key === -0 ? 0 : key;\n\n      keys.add(k, guid);\n\n      values[guid] = value;\n\n      this.size = keys.size;\n\n      return this;\n    },\n\n    /**\n      Removes a value from the map for an associated key.\n       @since 1.8.0\n      @method delete\n      @param {*} key\n      @return {Boolean} true if an item was removed, false otherwise\n      @private\n    */\n    delete: function (key) {\n      if (this.size === 0) {\n        return false;\n      }\n      // don't use ES6 \"delete\" because it will be annoying\n      // to use in browsers that are not ES6 friendly;\n      var keys = this._keys;\n      var values = this._values;\n      var guid = _emberUtils.guidFor(key);\n\n      if (keys.delete(key, guid)) {\n        delete values[guid];\n        this.size = keys.size;\n        return true;\n      } else {\n        return false;\n      }\n    },\n\n    /**\n      Check whether a key is present.\n       @method has\n      @param {*} key\n      @return {Boolean} true if the item was present, false otherwise\n      @private\n    */\n    has: function (key) {\n      return this._keys.has(key);\n    },\n\n    /**\n      Iterate over all the keys and values. Calls the function once\n      for each key, passing in value, key, and the map being iterated over,\n      in that order.\n       The keys are guaranteed to be iterated over in insertion order.\n       @method forEach\n      @param {Function} callback\n      @param {*} self if passed, the `this` value inside the\n        callback. By default, `this` is the map.\n      @private\n    */\n    forEach: function (callback /*, ...thisArg*/) {\n      if (typeof callback !== 'function') {\n        missingFunction(callback);\n      }\n\n      if (this.size === 0) {\n        return;\n      }\n\n      var map = this;\n      var cb = undefined,\n          thisArg = undefined;\n\n      if (arguments.length === 2) {\n        thisArg = arguments[1];\n        cb = function (key) {\n          return callback.call(thisArg, map.get(key), key, map);\n        };\n      } else {\n        cb = function (key) {\n          return callback(map.get(key), key, map);\n        };\n      }\n\n      this._keys.forEach(cb);\n    },\n\n    /**\n      @method clear\n      @private\n    */\n    clear: function () {\n      this._keys.clear();\n      this._values = Object.create(null);\n      this.size = 0;\n    },\n\n    /**\n      @method copy\n      @return {Ember.Map}\n      @private\n    */\n    copy: function () {\n      return copyMap(this, new Map());\n    }\n  };\n\n  /**\n    @class MapWithDefault\n    @namespace Ember\n    @extends Ember.Map\n    @private\n    @constructor\n    @param [options]\n      @param {*} [options.defaultValue]\n  */\n  function MapWithDefault(options) {\n    this._super$constructor();\n    this.defaultValue = options.defaultValue;\n  }\n\n  /**\n    @method create\n    @static\n    @param [options]\n      @param {*} [options.defaultValue]\n    @return {Ember.MapWithDefault|Ember.Map} If options are passed, returns\n      `Ember.MapWithDefault` otherwise returns `Ember.Map`\n    @private\n  */\n  MapWithDefault.create = function (options) {\n    if (options) {\n      return new MapWithDefault(options);\n    } else {\n      return new Map();\n    }\n  };\n\n  MapWithDefault.prototype = Object.create(Map.prototype);\n  MapWithDefault.prototype.constructor = MapWithDefault;\n  MapWithDefault.prototype._super$constructor = Map;\n  MapWithDefault.prototype._super$get = Map.prototype.get;\n\n  /**\n    Retrieve the value associated with a given key.\n  \n    @method get\n    @param {*} key\n    @return {*} the value associated with the key, or the default value\n    @private\n  */\n  MapWithDefault.prototype.get = function (key) {\n    var hasValue = this.has(key);\n\n    if (hasValue) {\n      return this._super$get(key);\n    } else {\n      var defaultValue = this.defaultValue(key);\n      this.set(key, defaultValue);\n      return defaultValue;\n    }\n  };\n\n  /**\n    @method copy\n    @return {Ember.MapWithDefault}\n    @private\n  */\n  MapWithDefault.prototype.copy = function () {\n    var Constructor = this.constructor;\n    return copyMap(this, new Constructor({\n      defaultValue: this.defaultValue\n    }));\n  };\n\n  exports.default = Map;\n  exports.OrderedSet = OrderedSet;\n  exports.Map = Map;\n  exports.MapWithDefault = MapWithDefault;\n});\nenifed('ember-metal/merge', ['exports'], function (exports) {\n  /**\n    Merge the contents of two objects together into the first object.\n  \n    ```javascript\n    Ember.merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }\n    var a = { first: 'Yehuda' };\n    var b = { last: 'Katz' };\n    Ember.merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }\n    ```\n  \n    @method merge\n    @for Ember\n    @param {Object} original The object to merge into\n    @param {Object} updates The object to copy properties from\n    @return {Object}\n    @public\n  */\n  'use strict';\n\n  exports.default = merge;\n\n  function merge(original, updates) {\n    if (!updates || typeof updates !== 'object') {\n      return original;\n    }\n\n    var props = Object.keys(updates);\n    var prop = undefined;\n\n    for (var i = 0; i < props.length; i++) {\n      prop = props[i];\n      original[prop] = updates[prop];\n    }\n\n    return original;\n  }\n});\nenifed('ember-metal/meta', ['exports', 'ember-utils', 'ember-metal/meta_listeners', 'ember-debug', 'ember-metal/chains', 'require'], function (exports, _emberUtils, _emberMetalMeta_listeners, _emberDebug, _emberMetalChains, _require) {\n  'use strict';\n\n  exports.deleteMeta = deleteMeta;\n  exports.meta = meta;\n\n  var counters = {\n    peekCalls: 0,\n    peekParentCalls: 0,\n    peekPrototypeWalks: 0,\n    setCalls: 0,\n    deleteCalls: 0,\n    metaCalls: 0,\n    metaInstantiated: 0\n  };\n\n  /**\n  @module ember-metal\n  */\n\n  /*\n   This declares several meta-programmed members on the Meta class. Such\n   meta!\n  \n   In general, the `readable` variants will give you an object (if it\n   already exists) that you can read but should not modify. The\n   `writable` variants will give you a mutable object, and they will\n   create it if it didn't already exist.\n  \n   The following methods will get generated metaprogrammatically, and\n   I'm including them here for greppability:\n  \n   writableCache, readableCache, writeWatching,\n   peekWatching, clearWatching, writeMixins,\n   peekMixins, clearMixins, writeBindings,\n   peekBindings, clearBindings, writeValues,\n   peekValues, clearValues, writeDeps, forEachInDeps\n   writableChainWatchers, readableChainWatchers, writableChains,\n   readableChains, writableTag, readableTag, writableTags,\n   readableTags\n  */\n  var members = {\n    cache: ownMap,\n    weak: ownMap,\n    watching: inheritedMap,\n    mixins: inheritedMap,\n    bindings: inheritedMap,\n    values: inheritedMap,\n    chainWatchers: ownCustomObject,\n    chains: inheritedCustomObject,\n    tag: ownCustomObject,\n    tags: ownMap\n  };\n\n  // FLAGS\n  var SOURCE_DESTROYING = 1 << 1;\n  var SOURCE_DESTROYED = 1 << 2;\n  var META_DESTROYED = 1 << 3;\n  var IS_PROXY = 1 << 4;\n\n  if (true || false) {\n    members.lastRendered = ownMap;\n    if (_require.has('ember-debug')) {\n      //https://github.com/emberjs/ember.js/issues/14732\n      members.lastRenderedReferenceMap = ownMap;\n      members.lastRenderedTemplateMap = ownMap;\n    }\n  }\n\n  var memberNames = Object.keys(members);\n  var META_FIELD = '__ember_meta__';\n\n  var Meta = (function () {\n    function Meta(obj, parentMeta) {\n      var _this = this;\n\n      babelHelpers.classCallCheck(this, Meta);\n\n      _emberDebug.runInDebug(function () {\n        return counters.metaInstantiated++;\n      });\n\n      this._cache = undefined;\n      this._weak = undefined;\n      this._watching = undefined;\n      this._mixins = undefined;\n      this._bindings = undefined;\n      this._values = undefined;\n      this._deps = undefined;\n      this._chainWatchers = undefined;\n      this._chains = undefined;\n      this._tag = undefined;\n      this._tags = undefined;\n      this._factory = undefined;\n\n      // initial value for all flags right now is false\n      // see FLAGS const for detailed list of flags used\n      this._flags = 0;\n\n      // used only internally\n      this.source = obj;\n\n      // when meta(obj).proto === obj, the object is intended to be only a\n      // prototype and doesn't need to actually be observable itself\n      this.proto = undefined;\n\n      // The next meta in our inheritance chain. We (will) track this\n      // explicitly instead of using prototypical inheritance because we\n      // have detailed knowledge of how each property should really be\n      // inherited, and we can optimize it much better than JS runtimes.\n      this.parent = parentMeta;\n\n      if (true || false) {\n        this._lastRendered = undefined;\n        _emberDebug.runInDebug(function () {\n          _this._lastRenderedReferenceMap = undefined;\n          _this._lastRenderedTemplateMap = undefined;\n        });\n      }\n\n      this._initializeListeners();\n    }\n\n    Meta.prototype.isInitialized = function isInitialized(obj) {\n      return this.proto !== obj;\n    };\n\n    Meta.prototype.destroy = function destroy() {\n      if (this.isMetaDestroyed()) {\n        return;\n      }\n\n      // remove chainWatchers to remove circular references that would prevent GC\n      var nodes = undefined,\n          key = undefined,\n          nodeObject = undefined;\n      var node = this.readableChains();\n      if (node) {\n        NODE_STACK.push(node);\n        // process tree\n        while (NODE_STACK.length > 0) {\n          node = NODE_STACK.pop();\n          // push children\n          nodes = node._chains;\n          if (nodes) {\n            for (key in nodes) {\n              if (nodes[key] !== undefined) {\n                NODE_STACK.push(nodes[key]);\n              }\n            }\n          }\n\n          // remove chainWatcher in node object\n          if (node._watching) {\n            nodeObject = node._object;\n            if (nodeObject) {\n              var foreignMeta = peekMeta(nodeObject);\n              // avoid cleaning up chain watchers when both current and\n              // foreign objects are being destroyed\n              // if both are being destroyed manual cleanup is not needed\n              // as they will be GC'ed and no non-destroyed references will\n              // be remaining\n              if (foreignMeta && !foreignMeta.isSourceDestroying()) {\n                _emberMetalChains.removeChainWatcher(nodeObject, node._key, node, foreignMeta);\n              }\n            }\n          }\n        }\n      }\n\n      this.setMetaDestroyed();\n    };\n\n    Meta.prototype.isSourceDestroying = function isSourceDestroying() {\n      return (this._flags & SOURCE_DESTROYING) !== 0;\n    };\n\n    Meta.prototype.setSourceDestroying = function setSourceDestroying() {\n      this._flags |= SOURCE_DESTROYING;\n    };\n\n    Meta.prototype.isSourceDestroyed = function isSourceDestroyed() {\n      return (this._flags & SOURCE_DESTROYED) !== 0;\n    };\n\n    Meta.prototype.setSourceDestroyed = function setSourceDestroyed() {\n      this._flags |= SOURCE_DESTROYED;\n    };\n\n    Meta.prototype.isMetaDestroyed = function isMetaDestroyed() {\n      return (this._flags & META_DESTROYED) !== 0;\n    };\n\n    Meta.prototype.setMetaDestroyed = function setMetaDestroyed() {\n      this._flags |= META_DESTROYED;\n    };\n\n    Meta.prototype.isProxy = function isProxy() {\n      return (this._flags & IS_PROXY) !== 0;\n    };\n\n    Meta.prototype.setProxy = function setProxy() {\n      this._flags |= IS_PROXY;\n    };\n\n    Meta.prototype._getOrCreateOwnMap = function _getOrCreateOwnMap(key) {\n      return this[key] || (this[key] = Object.create(null));\n    };\n\n    Meta.prototype._getInherited = function _getInherited(key) {\n      var pointer = this;\n      while (pointer !== undefined) {\n        var map = pointer[key];\n        if (map) {\n          return map;\n        }\n        pointer = pointer.parent;\n      }\n    };\n\n    Meta.prototype._findInherited = function _findInherited(key, subkey) {\n      var pointer = this;\n      while (pointer !== undefined) {\n        var map = pointer[key];\n        if (map) {\n          var value = map[subkey];\n          if (value !== undefined) {\n            return value;\n          }\n        }\n        pointer = pointer.parent;\n      }\n    };\n\n    // Implements a member that provides a lazily created map of maps,\n    // with inheritance at both levels.\n\n    Meta.prototype.writeDeps = function writeDeps(subkey, itemkey, value) {\n      _emberDebug.assert('Cannot call writeDeps after the object is destroyed.', !this.isMetaDestroyed());\n\n      var outerMap = this._getOrCreateOwnMap('_deps');\n      var innerMap = outerMap[subkey];\n      if (!innerMap) {\n        innerMap = outerMap[subkey] = Object.create(null);\n      }\n      innerMap[itemkey] = value;\n    };\n\n    Meta.prototype.peekDeps = function peekDeps(subkey, itemkey) {\n      var pointer = this;\n      while (pointer !== undefined) {\n        var map = pointer._deps;\n        if (map) {\n          var value = map[subkey];\n          if (value) {\n            var itemvalue = value[itemkey];\n            if (itemvalue !== undefined) {\n              return itemvalue;\n            }\n          }\n        }\n        pointer = pointer.parent;\n      }\n    };\n\n    Meta.prototype.hasDeps = function hasDeps(subkey) {\n      var pointer = this;\n      while (pointer !== undefined) {\n        if (pointer._deps && pointer._deps[subkey]) {\n          return true;\n        }\n        pointer = pointer.parent;\n      }\n      return false;\n    };\n\n    Meta.prototype.forEachInDeps = function forEachInDeps(subkey, fn) {\n      return this._forEachIn('_deps', subkey, fn);\n    };\n\n    Meta.prototype._forEachIn = function _forEachIn(key, subkey, fn) {\n      var pointer = this;\n      var seen = undefined;\n      var calls = undefined;\n      while (pointer !== undefined) {\n        var map = pointer[key];\n        if (map) {\n          var innerMap = map[subkey];\n          if (innerMap) {\n            for (var innerKey in innerMap) {\n              seen = seen || Object.create(null);\n              if (!seen[innerKey]) {\n                seen[innerKey] = true;\n                calls = calls || [];\n                calls.push([innerKey, innerMap[innerKey]]);\n              }\n            }\n          }\n        }\n        pointer = pointer.parent;\n      }\n      if (calls) {\n        for (var i = 0; i < calls.length; i++) {\n          var _calls$i = calls[i];\n          var innerKey = _calls$i[0];\n          var value = _calls$i[1];\n\n          fn(innerKey, value);\n        }\n      }\n    };\n\n    Meta.prototype.readInheritedValue = function readInheritedValue(key, subkey) {\n      var internalKey = '_' + key;\n\n      var pointer = this;\n\n      while (pointer !== undefined) {\n        var map = pointer[internalKey];\n        if (map) {\n          var value = map[subkey];\n          if (value !== undefined || subkey in map) {\n            return value;\n          }\n        }\n        pointer = pointer.parent;\n      }\n\n      return UNDEFINED;\n    };\n\n    Meta.prototype.writeValue = function writeValue(obj, key, value) {\n      var descriptor = _emberUtils.lookupDescriptor(obj, key);\n      var isMandatorySetter = descriptor && descriptor.set && descriptor.set.isMandatorySetter;\n\n      if (isMandatorySetter) {\n        this.writeValues(key, value);\n      } else {\n        obj[key] = value;\n      }\n    };\n\n    babelHelpers.createClass(Meta, [{\n      key: 'factory',\n      set: function (factory) {\n        this._factory = factory;\n      },\n      get: function () {\n        return this._factory;\n      }\n    }]);\n    return Meta;\n  })();\n\n  exports.Meta = Meta;\n\n  var NODE_STACK = [];\n\n  for (var _name in _emberMetalMeta_listeners.protoMethods) {\n    Meta.prototype[_name] = _emberMetalMeta_listeners.protoMethods[_name];\n  }\n  memberNames.forEach(function (name) {\n    return members[name](name, Meta);\n  });\n\n  // Implements a member that is a lazily created, non-inheritable\n  // POJO.\n  function ownMap(name, Meta) {\n    var key = memberProperty(name);\n    var capitalized = capitalize(name);\n    Meta.prototype['writable' + capitalized] = function () {\n      return this._getOrCreateOwnMap(key);\n    };\n    Meta.prototype['readable' + capitalized] = function () {\n      return this[key];\n    };\n  }\n\n  // Implements a member that is a lazily created POJO with inheritable\n  // values.\n  function inheritedMap(name, Meta) {\n    var key = memberProperty(name);\n    var capitalized = capitalize(name);\n\n    Meta.prototype['write' + capitalized] = function (subkey, value) {\n      _emberDebug.assert('Cannot call write' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());\n\n      var map = this._getOrCreateOwnMap(key);\n      map[subkey] = value;\n    };\n\n    Meta.prototype['peek' + capitalized] = function (subkey) {\n      return this._findInherited(key, subkey);\n    };\n\n    Meta.prototype['forEach' + capitalized] = function (fn) {\n      var pointer = this;\n      var seen = undefined;\n      while (pointer !== undefined) {\n        var map = pointer[key];\n        if (map) {\n          for (var _key in map) {\n            seen = seen || Object.create(null);\n            if (!seen[_key]) {\n              seen[_key] = true;\n              fn(_key, map[_key]);\n            }\n          }\n        }\n        pointer = pointer.parent;\n      }\n    };\n\n    Meta.prototype['clear' + capitalized] = function () {\n      _emberDebug.assert('Cannot call clear' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());\n\n      this[key] = undefined;\n    };\n\n    Meta.prototype['deleteFrom' + capitalized] = function (subkey) {\n      delete this._getOrCreateOwnMap(key)[subkey];\n    };\n\n    Meta.prototype['hasIn' + capitalized] = function (subkey) {\n      return this._findInherited(key, subkey) !== undefined;\n    };\n  }\n\n  var UNDEFINED = _emberUtils.symbol('undefined');\n\n  exports.UNDEFINED = UNDEFINED;\n  // Implements a member that provides a non-heritable, lazily-created\n  // object using the method you provide.\n  function ownCustomObject(name, Meta) {\n    var key = memberProperty(name);\n    var capitalized = capitalize(name);\n    Meta.prototype['writable' + capitalized] = function (create) {\n      _emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());\n\n      var ret = this[key];\n      if (!ret) {\n        ret = this[key] = create(this.source);\n      }\n      return ret;\n    };\n    Meta.prototype['readable' + capitalized] = function () {\n      return this[key];\n    };\n  }\n\n  // Implements a member that provides an inheritable, lazily-created\n  // object using the method you provide. We will derived children from\n  // their parents by calling your object's `copy()` method.\n  function inheritedCustomObject(name, Meta) {\n    var key = memberProperty(name);\n    var capitalized = capitalize(name);\n    Meta.prototype['writable' + capitalized] = function (create) {\n      _emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());\n\n      var ret = this[key];\n      if (!ret) {\n        if (this.parent) {\n          ret = this[key] = this.parent['writable' + capitalized](create).copy(this.source);\n        } else {\n          ret = this[key] = create(this.source);\n        }\n      }\n      return ret;\n    };\n    Meta.prototype['readable' + capitalized] = function () {\n      return this._getInherited(key);\n    };\n  }\n\n  function memberProperty(name) {\n    return '_' + name;\n  }\n\n  // there's a more general-purpose capitalize in ember-runtime, but we\n  // don't want to make ember-metal depend on ember-runtime.\n  function capitalize(name) {\n    return name.replace(/^\\w/, function (m) {\n      return m.toUpperCase();\n    });\n  }\n\n  var META_DESC = {\n    writable: true,\n    configurable: true,\n    enumerable: false,\n    value: null\n  };\n\n  exports.META_DESC = META_DESC;\n  var EMBER_META_PROPERTY = {\n    name: META_FIELD,\n    descriptor: META_DESC\n  };\n\n  if (true) {\n    Meta.prototype.readInheritedValue = function (key, subkey) {\n      var internalKey = '_' + key;\n\n      var pointer = this;\n\n      while (pointer !== undefined) {\n        var map = pointer[internalKey];\n        if (map) {\n          var value = map[subkey];\n          if (value !== undefined || subkey in map) {\n            return value;\n          }\n        }\n        pointer = pointer.parent;\n      }\n\n      return UNDEFINED;\n    };\n\n    Meta.prototype.writeValue = function (obj, key, value) {\n      var descriptor = _emberUtils.lookupDescriptor(obj, key);\n      var isMandatorySetter = descriptor && descriptor.set && descriptor.set.isMandatorySetter;\n\n      if (isMandatorySetter) {\n        this.writeValues(key, value);\n      } else {\n        obj[key] = value;\n      }\n    };\n  }\n\n  var setMeta = undefined,\n      peekMeta = undefined;\n\n  // choose the one appropriate for given platform\n  if (_emberUtils.HAS_NATIVE_WEAKMAP) {\n    (function () {\n      var getPrototypeOf = Object.getPrototypeOf;\n      var metaStore = new WeakMap();\n\n      exports.setMeta = setMeta = function WeakMap_setMeta(obj, meta) {\n        _emberDebug.runInDebug(function () {\n          return counters.setCalls++;\n        });\n        metaStore.set(obj, meta);\n      };\n\n      exports.peekMeta = peekMeta = function WeakMap_peekMeta(obj) {\n        _emberDebug.runInDebug(function () {\n          return counters.peekCalls++;\n        });\n\n        return metaStore.get(obj);\n      };\n\n      exports.peekMeta = peekMeta = function WeakMap_peekParentMeta(obj) {\n        var pointer = obj;\n        var meta = undefined;\n        while (pointer) {\n          meta = metaStore.get(pointer);\n          // jshint loopfunc:true\n          _emberDebug.runInDebug(function () {\n            return counters.peekCalls++;\n          });\n          // stop if we find a `null` value, since\n          // that means the meta was deleted\n          // any other truthy value is a \"real\" meta\n          if (meta === null || meta) {\n            return meta;\n          }\n\n          pointer = getPrototypeOf(pointer);\n          _emberDebug.runInDebug(function () {\n            return counters.peakPrototypeWalks++;\n          });\n        }\n      };\n    })();\n  } else {\n    exports.setMeta = setMeta = function Fallback_setMeta(obj, meta) {\n      // if `null` already, just set it to the new value\n      // otherwise define property first\n      if (obj[META_FIELD] !== null) {\n        if (obj.__defineNonEnumerable) {\n          obj.__defineNonEnumerable(EMBER_META_PROPERTY);\n        } else {\n          Object.defineProperty(obj, META_FIELD, META_DESC);\n        }\n      }\n\n      obj[META_FIELD] = meta;\n    };\n\n    exports.peekMeta = peekMeta = function Fallback_peekMeta(obj) {\n      return obj[META_FIELD];\n    };\n  }\n\n  function deleteMeta(obj) {\n    _emberDebug.runInDebug(function () {\n      return counters.deleteCalls++;\n    });\n\n    var meta = peekMeta(obj);\n    if (meta) {\n      meta.destroy();\n    }\n  }\n\n  /**\n    Retrieves the meta hash for an object. If `writable` is true ensures the\n    hash is writable for this object as well.\n  \n    The meta object contains information about computed property descriptors as\n    well as any watched properties and other information. You generally will\n    not access this information directly but instead work with higher level\n    methods that manipulate this hash indirectly.\n  \n    @method meta\n    @for Ember\n    @private\n  \n    @param {Object} obj The object to retrieve meta for\n    @param {Boolean} [writable=true] Pass `false` if you do not intend to modify\n      the meta hash, allowing the method to avoid making an unnecessary copy.\n    @return {Object} the meta hash for an object\n  */\n\n  function meta(obj) {\n    _emberDebug.runInDebug(function () {\n      return counters.metaCalls++;\n    });\n\n    var maybeMeta = peekMeta(obj);\n    var parent = undefined;\n\n    // remove this code, in-favor of explicit parent\n    if (maybeMeta) {\n      if (maybeMeta.source === obj) {\n        return maybeMeta;\n      }\n      parent = maybeMeta;\n    }\n\n    var newMeta = new Meta(obj, parent);\n    setMeta(obj, newMeta);\n    return newMeta;\n  }\n\n  exports.peekMeta = peekMeta;\n  exports.setMeta = setMeta;\n  exports.counters = counters;\n});\nenifed('ember-metal/meta_listeners', ['exports'], function (exports) {\n  /*\n   When we render a rich template hierarchy, the set of events that\n   *might* happen tends to be much larger than the set of events that\n   actually happen. This implies that we should make listener creation &\n   destruction cheap, even at the cost of making event dispatch more\n   expensive.\n  \n   Thus we store a new listener with a single push and no new\n   allocations, without even bothering to do deduplication -- we can\n   save that for dispatch time, if an event actually happens.\n   */\n\n  /* listener flags */\n  'use strict';\n\n  var ONCE = 1;\n  exports.ONCE = ONCE;\n  var SUSPENDED = 2;\n\n  exports.SUSPENDED = SUSPENDED;\n  var protoMethods = {\n\n    addToListeners: function (eventName, target, method, flags) {\n      if (!this._listeners) {\n        this._listeners = [];\n      }\n      this._listeners.push(eventName, target, method, flags);\n    },\n\n    _finalizeListeners: function () {\n      if (this._listenersFinalized) {\n        return;\n      }\n      if (!this._listeners) {\n        this._listeners = [];\n      }\n      var pointer = this.parent;\n      while (pointer) {\n        var listeners = pointer._listeners;\n        if (listeners) {\n          this._listeners = this._listeners.concat(listeners);\n        }\n        if (pointer._listenersFinalized) {\n          break;\n        }\n        pointer = pointer.parent;\n      }\n      this._listenersFinalized = true;\n    },\n\n    removeFromListeners: function (eventName, target, method, didRemove) {\n      var pointer = this;\n      while (pointer) {\n        var listeners = pointer._listeners;\n        if (listeners) {\n          for (var index = listeners.length - 4; index >= 0; index -= 4) {\n            if (listeners[index] === eventName && (!method || listeners[index + 1] === target && listeners[index + 2] === method)) {\n              if (pointer === this) {\n                // we are modifying our own list, so we edit directly\n                if (typeof didRemove === 'function') {\n                  didRemove(eventName, target, listeners[index + 2]);\n                }\n                listeners.splice(index, 4);\n              } else {\n                // we are trying to remove an inherited listener, so we do\n                // just-in-time copying to detach our own listeners from\n                // our inheritance chain.\n                this._finalizeListeners();\n                return this.removeFromListeners(eventName, target, method);\n              }\n            }\n          }\n        }\n        if (pointer._listenersFinalized) {\n          break;\n        }\n        pointer = pointer.parent;\n      }\n    },\n\n    matchingListeners: function (eventName) {\n      var pointer = this;\n      var result = undefined;\n      while (pointer !== undefined) {\n        var listeners = pointer._listeners;\n        if (listeners !== undefined) {\n          for (var index = 0; index < listeners.length - 3; index += 4) {\n            if (listeners[index] === eventName) {\n              result = result || [];\n              pushUniqueListener(result, listeners, index);\n            }\n          }\n        }\n        if (pointer._listenersFinalized === true) {\n          break;\n        }\n        pointer = pointer.parent;\n      }\n      var sus = this._suspendedListeners;\n      if (sus !== undefined && result !== undefined) {\n        for (var susIndex = 0; susIndex < sus.length - 2; susIndex += 3) {\n          if (eventName === sus[susIndex]) {\n            for (var resultIndex = 0; resultIndex < result.length - 2; resultIndex += 3) {\n              if (result[resultIndex] === sus[susIndex + 1] && result[resultIndex + 1] === sus[susIndex + 2]) {\n                result[resultIndex + 2] |= SUSPENDED;\n              }\n            }\n          }\n        }\n      }\n      return result;\n    },\n\n    suspendListeners: function (eventNames, target, method, callback) {\n      var sus = this._suspendedListeners;\n      if (!sus) {\n        sus = this._suspendedListeners = [];\n      }\n      for (var i = 0; i < eventNames.length; i++) {\n        sus.push(eventNames[i], target, method);\n      }\n      try {\n        return callback.call(target);\n      } finally {\n        if (sus.length === eventNames.length) {\n          this._suspendedListeners = undefined;\n        } else {\n          for (var i = sus.length - 3; i >= 0; i -= 3) {\n            if (sus[i + 1] === target && sus[i + 2] === method && eventNames.indexOf(sus[i]) !== -1) {\n              sus.splice(i, 3);\n            }\n          }\n        }\n      }\n    },\n\n    watchedEvents: function () {\n      var pointer = this;\n      var names = {};\n      while (pointer) {\n        var listeners = pointer._listeners;\n        if (listeners) {\n          for (var index = 0; index < listeners.length - 3; index += 4) {\n            names[listeners[index]] = true;\n          }\n        }\n        if (pointer._listenersFinalized) {\n          break;\n        }\n        pointer = pointer.parent;\n      }\n      return Object.keys(names);\n    },\n\n    _initializeListeners: function () {\n      this._listeners = undefined;\n      this._listenersFinalized = undefined;\n      this._suspendedListeners = undefined;\n    }\n  };\n\n  exports.protoMethods = protoMethods;\n  function pushUniqueListener(destination, source, index) {\n    var target = source[index + 1];\n    var method = source[index + 2];\n    for (var destinationIndex = 0; destinationIndex < destination.length - 2; destinationIndex += 3) {\n      if (destination[destinationIndex] === target && destination[destinationIndex + 1] === method) {\n        return;\n      }\n    }\n    destination.push(target, method, source[index + 3]);\n  }\n});\nenifed('ember-metal/mixin', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/meta', 'ember-metal/expand_properties', 'ember-metal/properties', 'ember-metal/computed', 'ember-metal/binding', 'ember-metal/observer', 'ember-metal/events'], function (exports, _emberUtils, _emberDebug, _emberMetalMeta, _emberMetalExpand_properties, _emberMetalProperties, _emberMetalComputed, _emberMetalBinding, _emberMetalObserver, _emberMetalEvents) {\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n  'use strict';\n\n  exports.detectBinding = detectBinding;\n  exports.mixin = mixin;\n  exports.hasUnprocessedMixins = hasUnprocessedMixins;\n  exports.clearUnprocessedMixins = clearUnprocessedMixins;\n  exports.required = required;\n  exports.aliasMethod = aliasMethod;\n  exports.observer = observer;\n  exports._immediateObserver = _immediateObserver;\n  exports._beforeObserver = _beforeObserver;\n\n  var a_slice = Array.prototype.slice;\n  var a_concat = Array.prototype.concat;\n  var isArray = Array.isArray;\n\n  function isMethod(obj) {\n    return 'function' === typeof obj && obj.isMethod !== false && obj !== Boolean && obj !== Object && obj !== Number && obj !== Array && obj !== Date && obj !== String;\n  }\n\n  var CONTINUE = {};\n\n  function mixinProperties(mixinsMeta, mixin) {\n    var guid = undefined;\n\n    if (mixin instanceof Mixin) {\n      guid = _emberUtils.guidFor(mixin);\n      if (mixinsMeta.peekMixins(guid)) {\n        return CONTINUE;\n      }\n      mixinsMeta.writeMixins(guid, mixin);\n      return mixin.properties;\n    } else {\n      return mixin; // apply anonymous mixin properties\n    }\n  }\n\n  function concatenatedMixinProperties(concatProp, props, values, base) {\n    // reset before adding each new mixin to pickup concats from previous\n    var concats = values[concatProp] || base[concatProp];\n    if (props[concatProp]) {\n      concats = concats ? a_concat.call(concats, props[concatProp]) : props[concatProp];\n    }\n    return concats;\n  }\n\n  function giveDescriptorSuper(meta, key, property, values, descs, base) {\n    var superProperty = undefined;\n\n    // Computed properties override methods, and do not call super to them\n    if (values[key] === undefined) {\n      // Find the original descriptor in a parent mixin\n      superProperty = descs[key];\n    }\n\n    // If we didn't find the original descriptor in a parent mixin, find\n    // it on the original object.\n    if (!superProperty) {\n      var possibleDesc = base[key];\n      var superDesc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n      superProperty = superDesc;\n    }\n\n    if (superProperty === undefined || !(superProperty instanceof _emberMetalComputed.ComputedProperty)) {\n      return property;\n    }\n\n    // Since multiple mixins may inherit from the same parent, we need\n    // to clone the computed property so that other mixins do not receive\n    // the wrapped version.\n    property = Object.create(property);\n    property._getter = _emberUtils.wrap(property._getter, superProperty._getter);\n    if (superProperty._setter) {\n      if (property._setter) {\n        property._setter = _emberUtils.wrap(property._setter, superProperty._setter);\n      } else {\n        property._setter = superProperty._setter;\n      }\n    }\n\n    return property;\n  }\n\n  function giveMethodSuper(obj, key, method, values, descs) {\n    var superMethod = undefined;\n\n    // Methods overwrite computed properties, and do not call super to them.\n    if (descs[key] === undefined) {\n      // Find the original method in a parent mixin\n      superMethod = values[key];\n    }\n\n    // If we didn't find the original value in a parent mixin, find it in\n    // the original object\n    superMethod = superMethod || obj[key];\n\n    // Only wrap the new method if the original method was a function\n    if (superMethod === undefined || 'function' !== typeof superMethod) {\n      return method;\n    }\n\n    return _emberUtils.wrap(method, superMethod);\n  }\n\n  function applyConcatenatedProperties(obj, key, value, values) {\n    var baseValue = values[key] || obj[key];\n    var ret = undefined;\n\n    if (baseValue === null || baseValue === undefined) {\n      ret = _emberUtils.makeArray(value);\n    } else {\n      if (isArray(baseValue)) {\n        if (value === null || value === undefined) {\n          ret = baseValue;\n        } else {\n          ret = a_concat.call(baseValue, value);\n        }\n      } else {\n        ret = a_concat.call(_emberUtils.makeArray(baseValue), value);\n      }\n    }\n\n    _emberDebug.runInDebug(function () {\n      // it is possible to use concatenatedProperties with strings (which cannot be frozen)\n      // only freeze objects...\n      if (typeof ret === 'object' && ret !== null) {\n        // prevent mutating `concatenatedProperties` array after it is applied\n        Object.freeze(ret);\n      }\n    });\n\n    return ret;\n  }\n\n  function applyMergedProperties(obj, key, value, values) {\n    var baseValue = values[key] || obj[key];\n\n    _emberDebug.runInDebug(function () {\n      if (isArray(value)) {\n        // use conditional to avoid stringifying every time\n        _emberDebug.assert('You passed in `' + JSON.stringify(value) + '` as the value for `' + key + '` but `' + key + '` cannot be an Array', false);\n      }\n    });\n\n    if (!baseValue) {\n      return value;\n    }\n\n    var newBase = _emberUtils.assign({}, baseValue);\n    var hasFunction = false;\n\n    for (var prop in value) {\n      if (!value.hasOwnProperty(prop)) {\n        continue;\n      }\n\n      var propValue = value[prop];\n      if (isMethod(propValue)) {\n        // TODO: support for Computed Properties, etc?\n        hasFunction = true;\n        newBase[prop] = giveMethodSuper(obj, prop, propValue, baseValue, {});\n      } else {\n        newBase[prop] = propValue;\n      }\n    }\n\n    if (hasFunction) {\n      newBase._super = _emberUtils.ROOT;\n    }\n\n    return newBase;\n  }\n\n  function addNormalizedProperty(base, key, value, meta, descs, values, concats, mergings) {\n    if (value instanceof _emberMetalProperties.Descriptor) {\n      if (value === REQUIRED && descs[key]) {\n        return CONTINUE;\n      }\n\n      // Wrap descriptor function to implement\n      // _super() if needed\n      if (value._getter) {\n        value = giveDescriptorSuper(meta, key, value, values, descs, base);\n      }\n\n      descs[key] = value;\n      values[key] = undefined;\n    } else {\n      if (concats && concats.indexOf(key) >= 0 || key === 'concatenatedProperties' || key === 'mergedProperties') {\n        value = applyConcatenatedProperties(base, key, value, values);\n      } else if (mergings && mergings.indexOf(key) >= 0) {\n        value = applyMergedProperties(base, key, value, values);\n      } else if (isMethod(value)) {\n        value = giveMethodSuper(base, key, value, values, descs);\n      }\n\n      descs[key] = undefined;\n      values[key] = value;\n    }\n  }\n\n  function mergeMixins(mixins, meta, descs, values, base, keys) {\n    var currentMixin = undefined,\n        props = undefined,\n        key = undefined,\n        concats = undefined,\n        mergings = undefined;\n\n    function removeKeys(keyName) {\n      delete descs[keyName];\n      delete values[keyName];\n    }\n\n    for (var i = 0; i < mixins.length; i++) {\n      currentMixin = mixins[i];\n      _emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');\n\n      props = mixinProperties(meta, currentMixin);\n      if (props === CONTINUE) {\n        continue;\n      }\n\n      if (props) {\n        if (base.willMergeMixin) {\n          base.willMergeMixin(props);\n        }\n        concats = concatenatedMixinProperties('concatenatedProperties', props, values, base);\n        mergings = concatenatedMixinProperties('mergedProperties', props, values, base);\n\n        for (key in props) {\n          if (!props.hasOwnProperty(key)) {\n            continue;\n          }\n          keys.push(key);\n          addNormalizedProperty(base, key, props[key], meta, descs, values, concats, mergings);\n        }\n\n        // manually copy toString() because some JS engines do not enumerate it\n        if (props.hasOwnProperty('toString')) {\n          base.toString = props.toString;\n        }\n      } else if (currentMixin.mixins) {\n        mergeMixins(currentMixin.mixins, meta, descs, values, base, keys);\n        if (currentMixin._without) {\n          currentMixin._without.forEach(removeKeys);\n        }\n      }\n    }\n  }\n\n  function detectBinding(key) {\n    var length = key.length;\n\n    return length > 7 && key.charCodeAt(length - 7) === 66 && key.indexOf('inding', length - 6) !== -1;\n  }\n\n  // warm both paths of above function\n  detectBinding('notbound');\n  detectBinding('fooBinding');\n\n  function connectBindings(obj, meta) {\n    // TODO Mixin.apply(instance) should disconnect binding if exists\n    meta.forEachBindings(function (key, binding) {\n      if (binding) {\n        var to = key.slice(0, -7); // strip Binding off end\n        if (binding instanceof _emberMetalBinding.Binding) {\n          binding = binding.copy(); // copy prototypes' instance\n          binding.to(to);\n        } else {\n          // binding is string path\n          binding = new _emberMetalBinding.Binding(to, binding);\n        }\n        binding.connect(obj);\n        obj[key] = binding;\n      }\n    });\n    // mark as applied\n    meta.clearBindings();\n  }\n\n  function finishPartial(obj, meta) {\n    connectBindings(obj, meta || _emberMetalMeta.meta(obj));\n    return obj;\n  }\n\n  function followAlias(obj, desc, descs, values) {\n    var altKey = desc.methodName;\n    var value = undefined;\n    var possibleDesc = undefined;\n    if (descs[altKey] || values[altKey]) {\n      value = values[altKey];\n      desc = descs[altKey];\n    } else if ((possibleDesc = obj[altKey]) && possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor) {\n      desc = possibleDesc;\n      value = undefined;\n    } else {\n      desc = undefined;\n      value = obj[altKey];\n    }\n\n    return { desc: desc, value: value };\n  }\n\n  function updateObserversAndListeners(obj, key, observerOrListener, pathsKey, updateMethod) {\n    var paths = observerOrListener[pathsKey];\n\n    if (paths) {\n      for (var i = 0; i < paths.length; i++) {\n        updateMethod(obj, paths[i], null, key);\n      }\n    }\n  }\n\n  function replaceObserversAndListeners(obj, key, observerOrListener) {\n    var prev = obj[key];\n\n    if ('function' === typeof prev) {\n      updateObserversAndListeners(obj, key, prev, '__ember_observesBefore__', _emberMetalObserver._removeBeforeObserver);\n      updateObserversAndListeners(obj, key, prev, '__ember_observes__', _emberMetalObserver.removeObserver);\n      updateObserversAndListeners(obj, key, prev, '__ember_listens__', _emberMetalEvents.removeListener);\n    }\n\n    if ('function' === typeof observerOrListener) {\n      updateObserversAndListeners(obj, key, observerOrListener, '__ember_observesBefore__', _emberMetalObserver._addBeforeObserver);\n      updateObserversAndListeners(obj, key, observerOrListener, '__ember_observes__', _emberMetalObserver.addObserver);\n      updateObserversAndListeners(obj, key, observerOrListener, '__ember_listens__', _emberMetalEvents.addListener);\n    }\n  }\n\n  function applyMixin(obj, mixins, partial) {\n    var descs = {};\n    var values = {};\n    var meta = _emberMetalMeta.meta(obj);\n    var keys = [];\n    var key = undefined,\n        value = undefined,\n        desc = undefined;\n\n    obj._super = _emberUtils.ROOT;\n\n    // Go through all mixins and hashes passed in, and:\n    //\n    // * Handle concatenated properties\n    // * Handle merged properties\n    // * Set up _super wrapping if necessary\n    // * Set up computed property descriptors\n    // * Copying `toString` in broken browsers\n    mergeMixins(mixins, meta, descs, values, obj, keys);\n\n    for (var i = 0; i < keys.length; i++) {\n      key = keys[i];\n      if (key === 'constructor' || !values.hasOwnProperty(key)) {\n        continue;\n      }\n\n      desc = descs[key];\n      value = values[key];\n\n      if (desc === REQUIRED) {\n        continue;\n      }\n\n      while (desc && desc instanceof Alias) {\n        var followed = followAlias(obj, desc, descs, values);\n        desc = followed.desc;\n        value = followed.value;\n      }\n\n      if (desc === undefined && value === undefined) {\n        continue;\n      }\n\n      replaceObserversAndListeners(obj, key, value);\n\n      if (detectBinding(key)) {\n        meta.writeBindings(key, value);\n      }\n\n      _emberMetalProperties.defineProperty(obj, key, desc, value, meta);\n    }\n\n    if (!partial) {\n      // don't apply to prototype\n      finishPartial(obj, meta);\n    }\n\n    return obj;\n  }\n\n  /**\n    @method mixin\n    @for Ember\n    @param obj\n    @param mixins*\n    @return obj\n    @private\n  */\n\n  function mixin(obj) {\n    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      args[_key - 1] = arguments[_key];\n    }\n\n    applyMixin(obj, args, false);\n    return obj;\n  }\n\n  /**\n    The `Ember.Mixin` class allows you to create mixins, whose properties can be\n    added to other classes. For instance,\n  \n    ```javascript\n    const EditableMixin = Ember.Mixin.create({\n      edit() {\n        console.log('starting to edit');\n        this.set('isEditing', true);\n      },\n      isEditing: false\n    });\n  \n    // Mix mixins into classes by passing them as the first arguments to\n    // `.extend.`\n    const Comment = Ember.Object.extend(EditableMixin, {\n      post: null\n    });\n  \n    let comment = Comment.create({\n      post: somePost\n    });\n  \n    comment.edit(); // outputs 'starting to edit'\n    ```\n  \n    Note that Mixins are created with `Ember.Mixin.create`, not\n    `Ember.Mixin.extend`.\n  \n    Note that mixins extend a constructor's prototype so arrays and object literals\n    defined as properties will be shared amongst objects that implement the mixin.\n    If you want to define a property in a mixin that is not shared, you can define\n    it either as a computed property or have it be created on initialization of the object.\n  \n    ```javascript\n    // filters array will be shared amongst any object implementing mixin\n    const FilterableMixin = Ember.Mixin.create({\n      filters: Ember.A()\n    });\n  \n    // filters will be a separate array for every object implementing the mixin\n    const FilterableMixin = Ember.Mixin.create({\n      filters: Ember.computed(function() {\n        return Ember.A();\n      })\n    });\n  \n    // filters will be created as a separate array during the object's initialization\n    const Filterable = Ember.Mixin.create({\n      init() {\n        this._super(...arguments);\n        this.set(\"filters\", Ember.A());\n      }\n    });\n    ```\n  \n    @class Mixin\n    @namespace Ember\n    @public\n  */\n\n  var Mixin = (function () {\n    function Mixin(mixins, properties) {\n      babelHelpers.classCallCheck(this, Mixin);\n\n      this.properties = properties;\n\n      var length = mixins && mixins.length;\n\n      if (length > 0) {\n        var m = new Array(length);\n\n        for (var i = 0; i < length; i++) {\n          var x = mixins[i];\n          if (x instanceof Mixin) {\n            m[i] = x;\n          } else {\n            m[i] = new Mixin(undefined, x);\n          }\n        }\n\n        this.mixins = m;\n      } else {\n        this.mixins = undefined;\n      }\n      this.ownerConstructor = undefined;\n      this._without = undefined;\n      this[_emberUtils.GUID_KEY] = null;\n      this[_emberUtils.NAME_KEY] = null;\n      _emberDebug.debugSeal(this);\n    }\n\n    Mixin.applyPartial = function applyPartial(obj) {\n      for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      return applyMixin(obj, args, true);\n    };\n\n    /**\n      @method create\n      @static\n      @param arguments*\n      @public\n    */\n\n    Mixin.create = function create() {\n      // ES6TODO: this relies on a global state?\n      unprocessedFlag = true;\n      var M = this;\n\n      for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n        args[_key3] = arguments[_key3];\n      }\n\n      return new M(args, undefined);\n    };\n\n    // returns the mixins currently applied to the specified object\n    // TODO: Make Ember.mixin\n\n    Mixin.mixins = function mixins(obj) {\n      var meta = _emberMetalMeta.peekMeta(obj);\n      var ret = [];\n      if (!meta) {\n        return ret;\n      }\n\n      meta.forEachMixins(function (key, currentMixin) {\n        // skip primitive mixins since these are always anonymous\n        if (!currentMixin.properties) {\n          ret.push(currentMixin);\n        }\n      });\n\n      return ret;\n    };\n\n    return Mixin;\n  })();\n\n  exports.default = Mixin;\n\n  Mixin._apply = applyMixin;\n\n  Mixin.finishPartial = finishPartial;\n\n  var unprocessedFlag = false;\n\n  function hasUnprocessedMixins() {\n    return unprocessedFlag;\n  }\n\n  function clearUnprocessedMixins() {\n    unprocessedFlag = false;\n  }\n\n  var MixinPrototype = Mixin.prototype;\n\n  /**\n    @method reopen\n    @param arguments*\n    @private\n  */\n  MixinPrototype.reopen = function () {\n    var currentMixin = undefined;\n\n    if (this.properties) {\n      currentMixin = new Mixin(undefined, this.properties);\n      this.properties = undefined;\n      this.mixins = [currentMixin];\n    } else if (!this.mixins) {\n      this.mixins = [];\n    }\n\n    var mixins = this.mixins;\n    var idx = undefined;\n\n    for (idx = 0; idx < arguments.length; idx++) {\n      currentMixin = arguments[idx];\n      _emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');\n\n      if (currentMixin instanceof Mixin) {\n        mixins.push(currentMixin);\n      } else {\n        mixins.push(new Mixin(undefined, currentMixin));\n      }\n    }\n\n    return this;\n  };\n\n  /**\n    @method apply\n    @param obj\n    @return applied object\n    @private\n  */\n  MixinPrototype.apply = function (obj) {\n    return applyMixin(obj, [this], false);\n  };\n\n  MixinPrototype.applyPartial = function (obj) {\n    return applyMixin(obj, [this], true);\n  };\n\n  MixinPrototype.toString = Object.toString;\n\n  function _detect(curMixin, targetMixin, seen) {\n    var guid = _emberUtils.guidFor(curMixin);\n\n    if (seen[guid]) {\n      return false;\n    }\n    seen[guid] = true;\n\n    if (curMixin === targetMixin) {\n      return true;\n    }\n    var mixins = curMixin.mixins;\n    var loc = mixins ? mixins.length : 0;\n    while (--loc >= 0) {\n      if (_detect(mixins[loc], targetMixin, seen)) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  /**\n    @method detect\n    @param obj\n    @return {Boolean}\n    @private\n  */\n  MixinPrototype.detect = function (obj) {\n    if (typeof obj !== 'object' || obj === null) {\n      return false;\n    }\n    if (obj instanceof Mixin) {\n      return _detect(obj, this, {});\n    }\n    var meta = _emberMetalMeta.peekMeta(obj);\n    if (!meta) {\n      return false;\n    }\n    return !!meta.peekMixins(_emberUtils.guidFor(this));\n  };\n\n  MixinPrototype.without = function () {\n    var ret = new Mixin([this]);\n\n    for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n      args[_key4] = arguments[_key4];\n    }\n\n    ret._without = args;\n    return ret;\n  };\n\n  function _keys(ret, mixin, seen) {\n    if (seen[_emberUtils.guidFor(mixin)]) {\n      return;\n    }\n    seen[_emberUtils.guidFor(mixin)] = true;\n\n    if (mixin.properties) {\n      var props = Object.keys(mixin.properties);\n      for (var i = 0; i < props.length; i++) {\n        var key = props[i];\n        ret[key] = true;\n      }\n    } else if (mixin.mixins) {\n      mixin.mixins.forEach(function (x) {\n        return _keys(ret, x, seen);\n      });\n    }\n  }\n\n  MixinPrototype.keys = function () {\n    var keys = {};\n    var seen = {};\n\n    _keys(keys, this, seen);\n    var ret = Object.keys(keys);\n    return ret;\n  };\n\n  _emberDebug.debugSeal(MixinPrototype);\n\n  var REQUIRED = new _emberMetalProperties.Descriptor();\n  REQUIRED.toString = function () {\n    return '(Required Property)';\n  };\n\n  /**\n    Denotes a required property for a mixin\n  \n    @method required\n    @for Ember\n    @private\n  */\n\n  function required() {\n    _emberDebug.deprecate('Ember.required is deprecated as its behavior is inconsistent and unreliable.', false, { id: 'ember-metal.required', until: '3.0.0' });\n    return REQUIRED;\n  }\n\n  function Alias(methodName) {\n    this.isDescriptor = true;\n    this.methodName = methodName;\n  }\n\n  Alias.prototype = new _emberMetalProperties.Descriptor();\n\n  /**\n    Makes a method available via an additional name.\n  \n    ```javascript\n    App.Person = Ember.Object.extend({\n      name: function() {\n        return 'Tomhuda Katzdale';\n      },\n      moniker: Ember.aliasMethod('name')\n    });\n  \n    let goodGuy = App.Person.create();\n  \n    goodGuy.name();    // 'Tomhuda Katzdale'\n    goodGuy.moniker(); // 'Tomhuda Katzdale'\n    ```\n  \n    @method aliasMethod\n    @for Ember\n    @param {String} methodName name of the method to alias\n    @public\n  */\n\n  function aliasMethod(methodName) {\n    return new Alias(methodName);\n  }\n\n  // ..........................................................\n  // OBSERVER HELPER\n  //\n\n  /**\n    Specify a method that observes property changes.\n  \n    ```javascript\n    Ember.Object.extend({\n      valueObserver: Ember.observer('value', function() {\n        // Executes whenever the \"value\" property changes\n      })\n    });\n    ```\n  \n    Also available as `Function.prototype.observes` if prototype extensions are\n    enabled.\n  \n    @method observer\n    @for Ember\n    @param {String} propertyNames*\n    @param {Function} func\n    @return func\n    @public\n  */\n\n  function observer() {\n    for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n      args[_key5] = arguments[_key5];\n    }\n\n    var func = args.slice(-1)[0];\n    var paths = undefined;\n\n    var addWatchedProperty = function (path) {\n      paths.push(path);\n    };\n    var _paths = args.slice(0, -1);\n\n    if (typeof func !== 'function') {\n      // revert to old, soft-deprecated argument ordering\n      _emberDebug.deprecate('Passing the dependentKeys after the callback function in Ember.observer is deprecated. Ensure the callback function is the last argument.', false, { id: 'ember-metal.observer-argument-order', until: '3.0.0' });\n\n      func = args[0];\n      _paths = args.slice(1);\n    }\n\n    paths = [];\n\n    for (var i = 0; i < _paths.length; ++i) {\n      _emberMetalExpand_properties.default(_paths[i], addWatchedProperty);\n    }\n\n    if (typeof func !== 'function') {\n      throw new _emberDebug.EmberError('Ember.observer called without a function');\n    }\n\n    func.__ember_observes__ = paths;\n    return func;\n  }\n\n  /**\n    Specify a method that observes property changes.\n  \n    ```javascript\n    Ember.Object.extend({\n      valueObserver: Ember.immediateObserver('value', function() {\n        // Executes whenever the \"value\" property changes\n      })\n    });\n    ```\n  \n    In the future, `Ember.observer` may become asynchronous. In this event,\n    `Ember.immediateObserver` will maintain the synchronous behavior.\n  \n    Also available as `Function.prototype.observesImmediately` if prototype extensions are\n    enabled.\n  \n    @method _immediateObserver\n    @for Ember\n    @param {String} propertyNames*\n    @param {Function} func\n    @deprecated Use `Ember.observer` instead.\n    @return func\n    @private\n  */\n\n  function _immediateObserver() {\n    _emberDebug.deprecate('Usage of `Ember.immediateObserver` is deprecated, use `Ember.observer` instead.', false, { id: 'ember-metal.immediate-observer', until: '3.0.0' });\n\n    for (var i = 0; i < arguments.length; i++) {\n      var arg = arguments[i];\n      _emberDebug.assert('Immediate observers must observe internal properties only, not properties on other objects.', typeof arg !== 'string' || arg.indexOf('.') === -1);\n    }\n\n    return observer.apply(this, arguments);\n  }\n\n  /**\n    When observers fire, they are called with the arguments `obj`, `keyName`.\n  \n    Note, `@each.property` observer is called per each add or replace of an element\n    and it's not called with a specific enumeration item.\n  \n    A `_beforeObserver` fires before a property changes.\n  \n    @method beforeObserver\n    @for Ember\n    @param {String} propertyNames*\n    @param {Function} func\n    @return func\n    @deprecated\n    @private\n  */\n\n  function _beforeObserver() {\n    for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n      args[_key6] = arguments[_key6];\n    }\n\n    var func = args.slice(-1)[0];\n    var paths = undefined;\n\n    var addWatchedProperty = function (path) {\n      paths.push(path);\n    };\n\n    var _paths = args.slice(0, -1);\n\n    if (typeof func !== 'function') {\n      // revert to old, soft-deprecated argument ordering\n\n      func = args[0];\n      _paths = args.slice(1);\n    }\n\n    paths = [];\n\n    for (var i = 0; i < _paths.length; ++i) {\n      _emberMetalExpand_properties.default(_paths[i], addWatchedProperty);\n    }\n\n    if (typeof func !== 'function') {\n      throw new _emberDebug.EmberError('_beforeObserver called without a function');\n    }\n\n    func.__ember_observesBefore__ = paths;\n    return func;\n  }\n\n  exports.Mixin = Mixin;\n  exports.REQUIRED = REQUIRED;\n});\nenifed('ember-metal/observer', ['exports', 'ember-metal/watching', 'ember-metal/events'], function (exports, _emberMetalWatching, _emberMetalEvents) {\n  'use strict';\n\n  exports.addObserver = addObserver;\n  exports.observersFor = observersFor;\n  exports.removeObserver = removeObserver;\n  exports._addBeforeObserver = _addBeforeObserver;\n  exports._suspendObserver = _suspendObserver;\n  exports._suspendObservers = _suspendObservers;\n  exports._removeBeforeObserver = _removeBeforeObserver;\n\n  /**\n  @module ember-metal\n  */\n\n  var AFTER_OBSERVERS = ':change';\n  var BEFORE_OBSERVERS = ':before';\n\n  function changeEvent(keyName) {\n    return keyName + AFTER_OBSERVERS;\n  }\n\n  function beforeEvent(keyName) {\n    return keyName + BEFORE_OBSERVERS;\n  }\n\n  /**\n    @method addObserver\n    @for Ember\n    @param obj\n    @param {String} _path\n    @param {Object|Function} target\n    @param {Function|String} [method]\n    @public\n  */\n\n  function addObserver(obj, _path, target, method) {\n    _emberMetalEvents.addListener(obj, changeEvent(_path), target, method);\n    _emberMetalWatching.watch(obj, _path);\n\n    return this;\n  }\n\n  function observersFor(obj, path) {\n    return _emberMetalEvents.listenersFor(obj, changeEvent(path));\n  }\n\n  /**\n    @method removeObserver\n    @for Ember\n    @param obj\n    @param {String} path\n    @param {Object|Function} target\n    @param {Function|String} [method]\n    @public\n  */\n\n  function removeObserver(obj, path, target, method) {\n    _emberMetalWatching.unwatch(obj, path);\n    _emberMetalEvents.removeListener(obj, changeEvent(path), target, method);\n\n    return this;\n  }\n\n  /**\n    @method _addBeforeObserver\n    @for Ember\n    @param obj\n    @param {String} path\n    @param {Object|Function} target\n    @param {Function|String} [method]\n    @deprecated\n    @private\n  */\n\n  function _addBeforeObserver(obj, path, target, method) {\n    _emberMetalEvents.addListener(obj, beforeEvent(path), target, method);\n    _emberMetalWatching.watch(obj, path);\n\n    return this;\n  }\n\n  // Suspend observer during callback.\n  //\n  // This should only be used by the target of the observer\n  // while it is setting the observed path.\n\n  function _suspendObserver(obj, path, target, method, callback) {\n    return _emberMetalEvents.suspendListener(obj, changeEvent(path), target, method, callback);\n  }\n\n  function _suspendObservers(obj, paths, target, method, callback) {\n    var events = paths.map(changeEvent);\n    return _emberMetalEvents.suspendListeners(obj, events, target, method, callback);\n  }\n\n  /**\n    @method removeBeforeObserver\n    @for Ember\n    @param obj\n    @param {String} path\n    @param {Object|Function} target\n    @param {Function|String} [method]\n    @deprecated\n    @private\n  */\n\n  function _removeBeforeObserver(obj, path, target, method) {\n    _emberMetalWatching.unwatch(obj, path);\n    _emberMetalEvents.removeListener(obj, beforeEvent(path), target, method);\n\n    return this;\n  }\n});\nenifed('ember-metal/observer_set', ['exports', 'ember-utils', 'ember-metal/events'], function (exports, _emberUtils, _emberMetalEvents) {\n  'use strict';\n\n  /*\n    this.observerSet = {\n      [senderGuid]: { // variable name: `keySet`\n        [keyName]: listIndex\n      }\n    },\n    this.observers = [\n      {\n        sender: obj,\n        keyName: keyName,\n        eventName: eventName,\n        listeners: [\n          [target, method, flags]\n        ]\n      },\n      ...\n    ]\n  */\n\n  var ObserverSet = (function () {\n    function ObserverSet() {\n      babelHelpers.classCallCheck(this, ObserverSet);\n\n      this.clear();\n    }\n\n    ObserverSet.prototype.add = function add(sender, keyName, eventName) {\n      var observerSet = this.observerSet;\n      var observers = this.observers;\n      var senderGuid = _emberUtils.guidFor(sender);\n      var keySet = observerSet[senderGuid];\n      var index = undefined;\n\n      if (!keySet) {\n        observerSet[senderGuid] = keySet = {};\n      }\n      index = keySet[keyName];\n      if (index === undefined) {\n        index = observers.push({\n          sender: sender,\n          keyName: keyName,\n          eventName: eventName,\n          listeners: []\n        }) - 1;\n        keySet[keyName] = index;\n      }\n      return observers[index].listeners;\n    };\n\n    ObserverSet.prototype.flush = function flush() {\n      var observers = this.observers;\n      var i = undefined,\n          observer = undefined,\n          sender = undefined;\n      this.clear();\n      for (i = 0; i < observers.length; ++i) {\n        observer = observers[i];\n        sender = observer.sender;\n        if (sender.isDestroying || sender.isDestroyed) {\n          continue;\n        }\n        _emberMetalEvents.sendEvent(sender, observer.eventName, [sender, observer.keyName], observer.listeners);\n      }\n    };\n\n    ObserverSet.prototype.clear = function clear() {\n      this.observerSet = {};\n      this.observers = [];\n    };\n\n    return ObserverSet;\n  })();\n\n  exports.default = ObserverSet;\n});\nenifed('ember-metal/path_cache', ['exports', 'ember-metal/cache'], function (exports, _emberMetalCache) {\n  'use strict';\n\n  exports.isGlobal = isGlobal;\n  exports.isGlobalPath = isGlobalPath;\n  exports.hasThis = hasThis;\n  exports.isPath = isPath;\n  exports.getFirstKey = getFirstKey;\n  exports.getTailPath = getTailPath;\n\n  var IS_GLOBAL = /^[A-Z$]/;\n  var IS_GLOBAL_PATH = /^[A-Z$].*[\\.]/;\n  var HAS_THIS = 'this.';\n\n  var isGlobalCache = new _emberMetalCache.default(1000, function (key) {\n    return IS_GLOBAL.test(key);\n  });\n  var isGlobalPathCache = new _emberMetalCache.default(1000, function (key) {\n    return IS_GLOBAL_PATH.test(key);\n  });\n  var hasThisCache = new _emberMetalCache.default(1000, function (key) {\n    return key.lastIndexOf(HAS_THIS, 0) === 0;\n  });\n  var firstDotIndexCache = new _emberMetalCache.default(1000, function (key) {\n    return key.indexOf('.');\n  });\n\n  var firstKeyCache = new _emberMetalCache.default(1000, function (path) {\n    var index = firstDotIndexCache.get(path);\n    if (index === -1) {\n      return path;\n    } else {\n      return path.slice(0, index);\n    }\n  });\n\n  var tailPathCache = new _emberMetalCache.default(1000, function (path) {\n    var index = firstDotIndexCache.get(path);\n    if (index !== -1) {\n      return path.slice(index + 1);\n    }\n  });\n\n  var caches = {\n    isGlobalCache: isGlobalCache,\n    isGlobalPathCache: isGlobalPathCache,\n    hasThisCache: hasThisCache,\n    firstDotIndexCache: firstDotIndexCache,\n    firstKeyCache: firstKeyCache,\n    tailPathCache: tailPathCache\n  };\n\n  exports.caches = caches;\n\n  function isGlobal(path) {\n    return isGlobalCache.get(path);\n  }\n\n  function isGlobalPath(path) {\n    return isGlobalPathCache.get(path);\n  }\n\n  function hasThis(path) {\n    return hasThisCache.get(path);\n  }\n\n  function isPath(path) {\n    return firstDotIndexCache.get(path) !== -1;\n  }\n\n  function getFirstKey(path) {\n    return firstKeyCache.get(path);\n  }\n\n  function getTailPath(path) {\n    return tailPathCache.get(path);\n  }\n});\nenifed('ember-metal/properties', ['exports', 'ember-debug', 'ember-metal/meta', 'ember-metal/property_events'], function (exports, _emberDebug, _emberMetalMeta, _emberMetalProperty_events) {\n  /**\n  @module ember-metal\n  */\n\n  'use strict';\n\n  exports.Descriptor = Descriptor;\n  exports.MANDATORY_SETTER_FUNCTION = MANDATORY_SETTER_FUNCTION;\n  exports.DEFAULT_GETTER_FUNCTION = DEFAULT_GETTER_FUNCTION;\n  exports.INHERITING_GETTER_FUNCTION = INHERITING_GETTER_FUNCTION;\n  exports.defineProperty = defineProperty;\n  exports._hasCachedComputedProperties = _hasCachedComputedProperties;\n\n  // ..........................................................\n  // DESCRIPTOR\n  //\n\n  /**\n    Objects of this type can implement an interface to respond to requests to\n    get and set. The default implementation handles simple properties.\n  \n    @class Descriptor\n    @private\n  */\n\n  function Descriptor() {\n    this.isDescriptor = true;\n  }\n\n  var REDEFINE_SUPPORTED = (function () {\n    // https://github.com/spalger/kibana/commit/b7e35e6737df585585332857a4c397dc206e7ff9\n    var a = Object.create(Object.prototype, {\n      prop: {\n        configurable: true,\n        value: 1\n      }\n    });\n\n    Object.defineProperty(a, 'prop', {\n      configurable: true,\n      value: 2\n    });\n\n    return a.prop === 2;\n  })();\n  // ..........................................................\n  // DEFINING PROPERTIES API\n  //\n\n  function MANDATORY_SETTER_FUNCTION(name) {\n    function SETTER_FUNCTION(value) {\n      var m = _emberMetalMeta.peekMeta(this);\n      if (!m.isInitialized(this)) {\n        m.writeValues(name, value);\n      } else {\n        _emberDebug.assert('You must use Ember.set() to set the `' + name + '` property (of ' + this + ') to `' + value + '`.', false);\n      }\n    }\n\n    SETTER_FUNCTION.isMandatorySetter = true;\n    return SETTER_FUNCTION;\n  }\n\n  function DEFAULT_GETTER_FUNCTION(name) {\n    return function GETTER_FUNCTION() {\n      var meta = _emberMetalMeta.peekMeta(this);\n      return meta && meta.peekValues(name);\n    };\n  }\n\n  function INHERITING_GETTER_FUNCTION(name) {\n    function IGETTER_FUNCTION() {\n      var meta = _emberMetalMeta.peekMeta(this);\n      var val = meta && meta.readInheritedValue('values', name);\n\n      if (val === _emberMetalMeta.UNDEFINED) {\n        var proto = Object.getPrototypeOf(this);\n        return proto && proto[name];\n      } else {\n        return val;\n      }\n    }\n\n    IGETTER_FUNCTION.isInheritingGetter = true;\n    return IGETTER_FUNCTION;\n  }\n\n  /**\n    NOTE: This is a low-level method used by other parts of the API. You almost\n    never want to call this method directly. Instead you should use\n    `Ember.mixin()` to define new properties.\n  \n    Defines a property on an object. This method works much like the ES5\n    `Object.defineProperty()` method except that it can also accept computed\n    properties and other special descriptors.\n  \n    Normally this method takes only three parameters. However if you pass an\n    instance of `Descriptor` as the third param then you can pass an\n    optional value as the fourth parameter. This is often more efficient than\n    creating new descriptor hashes for each property.\n  \n    ## Examples\n  \n    ```javascript\n    // ES5 compatible mode\n    Ember.defineProperty(contact, 'firstName', {\n      writable: true,\n      configurable: false,\n      enumerable: true,\n      value: 'Charles'\n    });\n  \n    // define a simple property\n    Ember.defineProperty(contact, 'lastName', undefined, 'Jolley');\n  \n    // define a computed property\n    Ember.defineProperty(contact, 'fullName', Ember.computed('firstName', 'lastName', function() {\n      return this.firstName+' '+this.lastName;\n    }));\n    ```\n  \n    @private\n    @method defineProperty\n    @for Ember\n    @param {Object} obj the object to define this property on. This may be a prototype.\n    @param {String} keyName the name of the property\n    @param {Descriptor} [desc] an instance of `Descriptor` (typically a\n      computed property) or an ES5 descriptor.\n      You must provide this or `data` but not both.\n    @param {*} [data] something other than a descriptor, that will\n      become the explicit value of this property.\n  */\n\n  function defineProperty(obj, keyName, desc, data, meta) {\n    if (!meta) {\n      meta = _emberMetalMeta.meta(obj);\n    }\n    var watchEntry = meta.peekWatching(keyName);\n    var possibleDesc = obj[keyName];\n    var existingDesc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n    var watching = watchEntry !== undefined && watchEntry > 0;\n\n    if (existingDesc) {\n      existingDesc.teardown(obj, keyName);\n    }\n\n    var value = undefined;\n    if (desc instanceof Descriptor) {\n      value = desc;\n      if (true) {\n        if (watching) {\n          Object.defineProperty(obj, keyName, {\n            configurable: true,\n            enumerable: true,\n            writable: true,\n            value: value\n          });\n        } else {\n          obj[keyName] = value;\n        }\n      } else {\n        obj[keyName] = value;\n      }\n\n      didDefineComputedProperty(obj.constructor);\n\n      if (typeof desc.setup === 'function') {\n        desc.setup(obj, keyName);\n      }\n    } else {\n      if (desc == null) {\n        value = data;\n\n        if (true) {\n          if (watching) {\n            meta.writeValues(keyName, data);\n\n            var defaultDescriptor = {\n              configurable: true,\n              enumerable: true,\n              set: MANDATORY_SETTER_FUNCTION(keyName),\n              get: DEFAULT_GETTER_FUNCTION(keyName)\n            };\n\n            if (REDEFINE_SUPPORTED) {\n              Object.defineProperty(obj, keyName, defaultDescriptor);\n            } else {\n              handleBrokenPhantomDefineProperty(obj, keyName, defaultDescriptor);\n            }\n          } else {\n            obj[keyName] = data;\n          }\n        } else {\n          obj[keyName] = data;\n        }\n      } else {\n        value = desc;\n\n        // fallback to ES5\n        Object.defineProperty(obj, keyName, desc);\n      }\n    }\n\n    // if key is being watched, override chains that\n    // were initialized with the prototype\n    if (watching) {\n      _emberMetalProperty_events.overrideChains(obj, keyName, meta);\n    }\n\n    // The `value` passed to the `didDefineProperty` hook is\n    // either the descriptor or data, whichever was passed.\n    if (typeof obj.didDefineProperty === 'function') {\n      obj.didDefineProperty(obj, keyName, value);\n    }\n\n    return this;\n  }\n\n  var hasCachedComputedProperties = false;\n\n  function _hasCachedComputedProperties() {\n    hasCachedComputedProperties = true;\n  }\n\n  function didDefineComputedProperty(constructor) {\n    if (hasCachedComputedProperties === false) {\n      return;\n    }\n    var cache = _emberMetalMeta.meta(constructor).readableCache();\n\n    if (cache && cache._computedProperties !== undefined) {\n      cache._computedProperties = undefined;\n    }\n  }\n\n  function handleBrokenPhantomDefineProperty(obj, keyName, desc) {\n    // https://github.com/ariya/phantomjs/issues/11856\n    Object.defineProperty(obj, keyName, { configurable: true, writable: true, value: 'iCry' });\n    Object.defineProperty(obj, keyName, desc);\n  }\n});\nenifed('ember-metal/property_events', ['exports', 'ember-utils', 'ember-metal/meta', 'ember-metal/events', 'ember-metal/tags', 'ember-metal/observer_set', 'ember-debug', 'ember-metal/transaction'], function (exports, _emberUtils, _emberMetalMeta, _emberMetalEvents, _emberMetalTags, _emberMetalObserver_set, _emberDebug, _emberMetalTransaction) {\n  'use strict';\n\n  var PROPERTY_DID_CHANGE = _emberUtils.symbol('PROPERTY_DID_CHANGE');\n\n  exports.PROPERTY_DID_CHANGE = PROPERTY_DID_CHANGE;\n  var beforeObserverSet = new _emberMetalObserver_set.default();\n  var observerSet = new _emberMetalObserver_set.default();\n  var deferred = 0;\n\n  // ..........................................................\n  // PROPERTY CHANGES\n  //\n\n  /**\n    This function is called just before an object property is about to change.\n    It will notify any before observers and prepare caches among other things.\n  \n    Normally you will not need to call this method directly but if for some\n    reason you can't directly watch a property you can invoke this method\n    manually along with `Ember.propertyDidChange()` which you should call just\n    after the property value changes.\n  \n    @method propertyWillChange\n    @for Ember\n    @param {Object} obj The object with the property that will change\n    @param {String} keyName The property key (or path) that will change.\n    @return {void}\n    @private\n  */\n  function propertyWillChange(obj, keyName, _meta) {\n    var meta = _meta || _emberMetalMeta.peekMeta(obj);\n\n    if (meta && !meta.isInitialized(obj)) {\n      return;\n    }\n\n    var watching = meta && meta.peekWatching(keyName) > 0;\n    var possibleDesc = obj[keyName];\n    var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n    if (desc && desc.willChange) {\n      desc.willChange(obj, keyName);\n    }\n\n    if (watching) {\n      dependentKeysWillChange(obj, keyName, meta);\n      chainsWillChange(obj, keyName, meta);\n      notifyBeforeObservers(obj, keyName, meta);\n    }\n  }\n\n  /**\n    This function is called just after an object property has changed.\n    It will notify any observers and clear caches among other things.\n  \n    Normally you will not need to call this method directly but if for some\n    reason you can't directly watch a property you can invoke this method\n    manually along with `Ember.propertyWillChange()` which you should call just\n    before the property value changes.\n  \n    @method propertyDidChange\n    @for Ember\n    @param {Object} obj The object with the property that will change\n    @param {String} keyName The property key (or path) that will change.\n    @param {Meta} meta The objects meta.\n    @return {void}\n    @private\n  */\n  function propertyDidChange(obj, keyName, _meta) {\n    var meta = _meta || _emberMetalMeta.peekMeta(obj);\n\n    if (meta && !meta.isInitialized(obj)) {\n      return;\n    }\n\n    var watching = meta && meta.peekWatching(keyName) > 0;\n    var possibleDesc = obj[keyName];\n    var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n    // shouldn't this mean that we're watching this key?\n    if (desc && desc.didChange) {\n      desc.didChange(obj, keyName);\n    }\n\n    if (watching) {\n      if (meta.hasDeps(keyName)) {\n        dependentKeysDidChange(obj, keyName, meta);\n      }\n\n      chainsDidChange(obj, keyName, meta, false);\n      notifyObservers(obj, keyName, meta);\n    }\n\n    if (obj[PROPERTY_DID_CHANGE]) {\n      obj[PROPERTY_DID_CHANGE](keyName);\n    }\n\n    if (meta && meta.isSourceDestroying()) {\n      return;\n    }\n\n    _emberMetalTags.markObjectAsDirty(meta, keyName);\n\n    if (true || false) {\n      _emberMetalTransaction.assertNotRendered(obj, keyName, meta);\n    }\n  }\n\n  var WILL_SEEN = undefined,\n      DID_SEEN = undefined;\n  // called whenever a property is about to change to clear the cache of any dependent keys (and notify those properties of changes, etc...)\n  function dependentKeysWillChange(obj, depKey, meta) {\n    if (meta && meta.isSourceDestroying()) {\n      return;\n    }\n\n    if (meta && meta.hasDeps(depKey)) {\n      var seen = WILL_SEEN;\n      var _top = !seen;\n\n      if (_top) {\n        seen = WILL_SEEN = {};\n      }\n\n      iterDeps(propertyWillChange, obj, depKey, seen, meta);\n\n      if (_top) {\n        WILL_SEEN = null;\n      }\n    }\n  }\n\n  // called whenever a property has just changed to update dependent keys\n  function dependentKeysDidChange(obj, depKey, meta) {\n    if (meta && meta.isSourceDestroying()) {\n      return;\n    }\n\n    if (meta && meta.hasDeps(depKey)) {\n      var seen = DID_SEEN;\n      var _top2 = !seen;\n\n      if (_top2) {\n        seen = DID_SEEN = {};\n      }\n\n      iterDeps(propertyDidChange, obj, depKey, seen, meta);\n\n      if (_top2) {\n        DID_SEEN = null;\n      }\n    }\n  }\n\n  function iterDeps(method, obj, depKey, seen, meta) {\n    var possibleDesc = undefined,\n        desc = undefined;\n    var guid = _emberUtils.guidFor(obj);\n    var current = seen[guid];\n\n    if (!current) {\n      current = seen[guid] = {};\n    }\n\n    if (current[depKey]) {\n      return;\n    }\n\n    current[depKey] = true;\n\n    meta.forEachInDeps(depKey, function (key, value) {\n      if (!value) {\n        return;\n      }\n\n      possibleDesc = obj[key];\n      desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n      if (desc && desc._suspended === obj) {\n        return;\n      }\n\n      method(obj, key, meta);\n    });\n  }\n\n  function chainsWillChange(obj, keyName, meta) {\n    var chainWatchers = meta.readableChainWatchers();\n    if (chainWatchers) {\n      chainWatchers.notify(keyName, false, propertyWillChange);\n    }\n  }\n\n  function chainsDidChange(obj, keyName, meta) {\n    var chainWatchers = meta.readableChainWatchers();\n    if (chainWatchers) {\n      chainWatchers.notify(keyName, true, propertyDidChange);\n    }\n  }\n\n  function overrideChains(obj, keyName, meta) {\n    var chainWatchers = meta.readableChainWatchers();\n    if (chainWatchers) {\n      chainWatchers.revalidate(keyName);\n    }\n  }\n\n  /**\n    @method beginPropertyChanges\n    @chainable\n    @private\n  */\n  function beginPropertyChanges() {\n    deferred++;\n  }\n\n  /**\n    @method endPropertyChanges\n    @private\n  */\n  function endPropertyChanges() {\n    deferred--;\n    if (deferred <= 0) {\n      beforeObserverSet.clear();\n      observerSet.flush();\n    }\n  }\n\n  /**\n    Make a series of property changes together in an\n    exception-safe way.\n  \n    ```javascript\n    Ember.changeProperties(function() {\n      obj1.set('foo', mayBlowUpWhenSet);\n      obj2.set('bar', baz);\n    });\n    ```\n  \n    @method changeProperties\n    @param {Function} callback\n    @param [binding]\n    @private\n  */\n  function changeProperties(callback, binding) {\n    beginPropertyChanges();\n    try {\n      callback.call(binding);\n    } finally {\n      endPropertyChanges.call(binding);\n    }\n  }\n\n  function notifyBeforeObservers(obj, keyName, meta) {\n    if (meta && meta.isSourceDestroying()) {\n      return;\n    }\n\n    var eventName = keyName + ':before';\n    var listeners = undefined,\n        added = undefined;\n    if (deferred) {\n      listeners = beforeObserverSet.add(obj, keyName, eventName);\n      added = _emberMetalEvents.accumulateListeners(obj, eventName, listeners);\n      _emberMetalEvents.sendEvent(obj, eventName, [obj, keyName], added);\n    } else {\n      _emberMetalEvents.sendEvent(obj, eventName, [obj, keyName]);\n    }\n  }\n\n  function notifyObservers(obj, keyName, meta) {\n    if (meta && meta.isSourceDestroying()) {\n      return;\n    }\n\n    var eventName = keyName + ':change';\n    var listeners = undefined;\n    if (deferred) {\n      listeners = observerSet.add(obj, keyName, eventName);\n      _emberMetalEvents.accumulateListeners(obj, eventName, listeners);\n    } else {\n      _emberMetalEvents.sendEvent(obj, eventName, [obj, keyName]);\n    }\n  }\n\n  exports.propertyWillChange = propertyWillChange;\n  exports.propertyDidChange = propertyDidChange;\n  exports.overrideChains = overrideChains;\n  exports.beginPropertyChanges = beginPropertyChanges;\n  exports.endPropertyChanges = endPropertyChanges;\n  exports.changeProperties = changeProperties;\n});\nenifed('ember-metal/property_get', ['exports', 'ember-debug', 'ember-metal/path_cache'], function (exports, _emberDebug, _emberMetalPath_cache) {\n  /**\n  @module ember-metal\n  */\n\n  'use strict';\n\n  exports.get = get;\n  exports._getPath = _getPath;\n  exports.getWithDefault = getWithDefault;\n\n  var ALLOWABLE_TYPES = {\n    object: true,\n    function: true,\n    string: true\n  };\n\n  // ..........................................................\n  // GET AND SET\n  //\n  // If we are on a platform that supports accessors we can use those.\n  // Otherwise simulate accessors by looking up the property directly on the\n  // object.\n\n  /**\n    Gets the value of a property on an object. If the property is computed,\n    the function will be invoked. If the property is not defined but the\n    object implements the `unknownProperty` method then that will be invoked.\n  \n    ```javascript\n    Ember.get(obj, \"name\");\n    ```\n  \n    If you plan to run on IE8 and older browsers then you should use this\n    method anytime you want to retrieve a property on an object that you don't\n    know for sure is private. (Properties beginning with an underscore '_'\n    are considered private.)\n  \n    On all newer browsers, you only need to use this method to retrieve\n    properties if the property might not be defined on the object and you want\n    to respect the `unknownProperty` handler. Otherwise you can ignore this\n    method.\n  \n    Note that if the object itself is `undefined`, this method will throw\n    an error.\n  \n    @method get\n    @for Ember\n    @param {Object} obj The object to retrieve from.\n    @param {String} keyName The property key to retrieve\n    @return {Object} the property value or `null`.\n    @public\n  */\n\n  function get(obj, keyName) {\n    _emberDebug.assert('Get must be called with two arguments; an object and a property key', arguments.length === 2);\n    _emberDebug.assert('Cannot call get with \\'' + keyName + '\\' on an undefined object.', obj !== undefined && obj !== null);\n    _emberDebug.assert('The key provided to get must be a string, you passed ' + keyName, typeof keyName === 'string');\n    _emberDebug.assert('\\'this\\' in paths is not supported', !_emberMetalPath_cache.hasThis(keyName));\n    _emberDebug.assert('Cannot call `Ember.get` with an empty string', keyName !== '');\n\n    var value = obj[keyName];\n    var desc = value !== null && typeof value === 'object' && value.isDescriptor ? value : undefined;\n    var ret = undefined;\n\n    if (desc === undefined && _emberMetalPath_cache.isPath(keyName)) {\n      return _getPath(obj, keyName);\n    }\n\n    if (desc) {\n      return desc.get(obj, keyName);\n    } else {\n      ret = value;\n\n      if (ret === undefined && 'object' === typeof obj && !(keyName in obj) && 'function' === typeof obj.unknownProperty) {\n        return obj.unknownProperty(keyName);\n      }\n\n      return ret;\n    }\n  }\n\n  function _getPath(root, path) {\n    var obj = root;\n    var parts = path.split('.');\n\n    for (var i = 0; i < parts.length; i++) {\n      if (!isGettable(obj)) {\n        return undefined;\n      }\n\n      obj = get(obj, parts[i]);\n\n      if (obj && obj.isDestroyed) {\n        return undefined;\n      }\n    }\n\n    return obj;\n  }\n\n  function isGettable(obj) {\n    if (obj == null) {\n      return false;\n    }\n\n    return ALLOWABLE_TYPES[typeof obj];\n  }\n\n  /**\n    Retrieves the value of a property from an Object, or a default value in the\n    case that the property returns `undefined`.\n  \n    ```javascript\n    Ember.getWithDefault(person, 'lastName', 'Doe');\n    ```\n  \n    @method getWithDefault\n    @for Ember\n    @param {Object} obj The object to retrieve from.\n    @param {String} keyName The name of the property to retrieve\n    @param {Object} defaultValue The value to return if the property value is undefined\n    @return {Object} The property value or the defaultValue.\n    @public\n  */\n\n  function getWithDefault(root, key, defaultValue) {\n    var value = get(root, key);\n\n    if (value === undefined) {\n      return defaultValue;\n    }\n    return value;\n  }\n\n  exports.default = get;\n});\nenifed('ember-metal/property_set', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/property_get', 'ember-metal/property_events', 'ember-metal/path_cache', 'ember-metal/meta'], function (exports, _emberUtils, _emberDebug, _emberMetalProperty_get, _emberMetalProperty_events, _emberMetalPath_cache, _emberMetalMeta) {\n  'use strict';\n\n  exports.set = set;\n  exports.trySet = trySet;\n\n  /**\n    Sets the value of a property on an object, respecting computed properties\n    and notifying observers and other listeners of the change. If the\n    property is not defined but the object implements the `setUnknownProperty`\n    method then that will be invoked as well.\n  \n    ```javascript\n    Ember.set(obj, \"name\", value);\n    ```\n  \n    @method set\n    @for Ember\n    @param {Object} obj The object to modify.\n    @param {String} keyName The property key to set\n    @param {Object} value The value to set\n    @return {Object} the passed value.\n    @public\n  */\n\n  function set(obj, keyName, value, tolerant) {\n    _emberDebug.assert('Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false', arguments.length === 3 || arguments.length === 4);\n    _emberDebug.assert('Cannot call set with \\'' + keyName + '\\' on an undefined object.', obj && typeof obj === 'object' || typeof obj === 'function');\n    _emberDebug.assert('The key provided to set must be a string, you passed ' + keyName, typeof keyName === 'string');\n    _emberDebug.assert('\\'this\\' in paths is not supported', !_emberMetalPath_cache.hasThis(keyName));\n    _emberDebug.assert('calling set on destroyed object: ' + _emberUtils.toString(obj) + '.' + keyName + ' = ' + _emberUtils.toString(value), !obj.isDestroyed);\n\n    if (_emberMetalPath_cache.isPath(keyName)) {\n      return setPath(obj, keyName, value, tolerant);\n    }\n\n    var meta = _emberMetalMeta.peekMeta(obj);\n    var possibleDesc = obj[keyName];\n\n    var desc = undefined,\n        currentValue = undefined;\n    if (possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor) {\n      desc = possibleDesc;\n    } else {\n      currentValue = possibleDesc;\n    }\n\n    if (desc) {\n      /* computed property */\n      desc.set(obj, keyName, value);\n    } else if (obj.setUnknownProperty && currentValue === undefined && !(keyName in obj)) {\n      /* unknown property */\n      _emberDebug.assert('setUnknownProperty must be a function', typeof obj.setUnknownProperty === 'function');\n      obj.setUnknownProperty(keyName, value);\n    } else if (currentValue === value) {\n      /* no change */\n      return value;\n    } else {\n      _emberMetalProperty_events.propertyWillChange(obj, keyName);\n\n      if (true) {\n        setWithMandatorySetter(meta, obj, keyName, value);\n      } else {\n        obj[keyName] = value;\n      }\n\n      _emberMetalProperty_events.propertyDidChange(obj, keyName);\n    }\n\n    return value;\n  }\n\n  if (true) {\n    var setWithMandatorySetter = function (meta, obj, keyName, value) {\n      if (meta && meta.peekWatching(keyName) > 0) {\n        makeEnumerable(obj, keyName);\n        meta.writeValue(obj, keyName, value);\n      } else {\n        obj[keyName] = value;\n      }\n    };\n\n    var makeEnumerable = function (obj, key) {\n      var desc = Object.getOwnPropertyDescriptor(obj, key);\n\n      if (desc && desc.set && desc.set.isMandatorySetter) {\n        desc.enumerable = true;\n        Object.defineProperty(obj, key, desc);\n      }\n    };\n  }\n\n  function setPath(root, path, value, tolerant) {\n    // get the last part of the path\n    var keyName = path.slice(path.lastIndexOf('.') + 1);\n\n    // get the first part of the part\n    path = path === keyName ? keyName : path.slice(0, path.length - (keyName.length + 1));\n\n    // unless the path is this, look up the first part to\n    // get the root\n    if (path !== 'this') {\n      root = _emberMetalProperty_get._getPath(root, path);\n    }\n\n    if (!keyName || keyName.length === 0) {\n      throw new _emberDebug.Error('Property set failed: You passed an empty path');\n    }\n\n    if (!root) {\n      if (tolerant) {\n        return;\n      } else {\n        throw new _emberDebug.Error('Property set failed: object in path \"' + path + '\" could not be found or was destroyed.');\n      }\n    }\n\n    return set(root, keyName, value);\n  }\n\n  /**\n    Error-tolerant form of `Ember.set`. Will not blow up if any part of the\n    chain is `undefined`, `null`, or destroyed.\n  \n    This is primarily used when syncing bindings, which may try to update after\n    an object has been destroyed.\n  \n    @method trySet\n    @for Ember\n    @param {Object} root The object to modify.\n    @param {String} path The property path to set\n    @param {Object} value The value to set\n    @public\n  */\n\n  function trySet(root, path, value) {\n    return set(root, path, value, true);\n  }\n});\nenifed(\"ember-metal/replace\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.default = replace;\n  var splice = Array.prototype.splice;\n\n  function replace(array, idx, amt, objects) {\n    var args = [].concat(objects);\n    var ret = [];\n    // https://code.google.com/p/chromium/issues/detail?id=56588\n    var size = 60000;\n    var start = idx;\n    var ends = amt;\n    var count = undefined,\n        chunk = undefined;\n\n    while (args.length) {\n      count = ends > size ? size : ends;\n      if (count <= 0) {\n        count = 0;\n      }\n\n      chunk = args.splice(0, size);\n      chunk = [start, count].concat(chunk);\n\n      start += size;\n      ends -= count;\n\n      ret = ret.concat(splice.apply(array, chunk));\n    }\n    return ret;\n  }\n});\nenifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/error_handler', 'ember-metal/property_events', 'backburner'], function (exports, _emberUtils, _emberDebug, _emberMetalError_handler, _emberMetalProperty_events, _backburner) {\n  'use strict';\n\n  exports.default = run;\n\n  function onBegin(current) {\n    run.currentRunLoop = current;\n  }\n\n  function onEnd(current, next) {\n    run.currentRunLoop = next;\n  }\n\n  var onErrorTarget = {\n    get onerror() {\n      return _emberMetalError_handler.dispatchError;\n    },\n    set onerror(handler) {\n      return _emberMetalError_handler.setOnerror(handler);\n    }\n  };\n\n  var backburner = new _backburner.default(['sync', 'actions', 'destroy'], {\n    GUID_KEY: _emberUtils.GUID_KEY,\n    sync: {\n      before: _emberMetalProperty_events.beginPropertyChanges,\n      after: _emberMetalProperty_events.endPropertyChanges\n    },\n    defaultQueue: 'actions',\n    onBegin: onBegin,\n    onEnd: onEnd,\n    onErrorTarget: onErrorTarget,\n    onErrorMethod: 'onerror'\n  });\n\n  // ..........................................................\n  // run - this is ideally the only public API the dev sees\n  //\n\n  /**\n    Runs the passed target and method inside of a RunLoop, ensuring any\n    deferred actions including bindings and views updates are flushed at the\n    end.\n  \n    Normally you should not need to invoke this method yourself. However if\n    you are implementing raw event handlers when interfacing with other\n    libraries or plugins, you should probably wrap all of your code inside this\n    call.\n  \n    ```javascript\n    run(function() {\n      // code to be executed within a RunLoop\n    });\n    ```\n  \n    @class run\n    @namespace Ember\n    @static\n    @constructor\n    @param {Object} [target] target of method to call\n    @param {Function|String} method Method to invoke.\n      May be a function or a string. If you pass a string\n      then it will be looked up on the passed target.\n    @param {Object} [args*] Any additional arguments you wish to pass to the method.\n    @return {Object} return value from invoking the passed function.\n    @public\n  */\n\n  function run() {\n    return backburner.run.apply(backburner, arguments);\n  }\n\n  /**\n    If no run-loop is present, it creates a new one. If a run loop is\n    present it will queue itself to run on the existing run-loops action\n    queue.\n  \n    Please note: This is not for normal usage, and should be used sparingly.\n  \n    If invoked when not within a run loop:\n  \n    ```javascript\n    run.join(function() {\n      // creates a new run-loop\n    });\n    ```\n  \n    Alternatively, if called within an existing run loop:\n  \n    ```javascript\n    run(function() {\n      // creates a new run-loop\n      run.join(function() {\n        // joins with the existing run-loop, and queues for invocation on\n        // the existing run-loops action queue.\n      });\n    });\n    ```\n  \n    @method join\n    @namespace Ember\n    @param {Object} [target] target of method to call\n    @param {Function|String} method Method to invoke.\n      May be a function or a string. If you pass a string\n      then it will be looked up on the passed target.\n    @param {Object} [args*] Any additional arguments you wish to pass to the method.\n    @return {Object} Return value from invoking the passed function. Please note,\n    when called within an existing loop, no return value is possible.\n    @public\n  */\n  run.join = function () {\n    return backburner.join.apply(backburner, arguments);\n  };\n\n  /**\n    Allows you to specify which context to call the specified function in while\n    adding the execution of that function to the Ember run loop. This ability\n    makes this method a great way to asynchronously integrate third-party libraries\n    into your Ember application.\n  \n    `run.bind` takes two main arguments, the desired context and the function to\n    invoke in that context. Any additional arguments will be supplied as arguments\n    to the function that is passed in.\n  \n    Let's use the creation of a TinyMCE component as an example. Currently,\n    TinyMCE provides a setup configuration option we can use to do some processing\n    after the TinyMCE instance is initialized but before it is actually rendered.\n    We can use that setup option to do some additional setup for our component.\n    The component itself could look something like the following:\n  \n    ```javascript\n    App.RichTextEditorComponent = Ember.Component.extend({\n      initializeTinyMCE: Ember.on('didInsertElement', function() {\n        tinymce.init({\n          selector: '#' + this.$().prop('id'),\n          setup: Ember.run.bind(this, this.setupEditor)\n        });\n      }),\n  \n      setupEditor: function(editor) {\n        this.set('editor', editor);\n  \n        editor.on('change', function() {\n          console.log('content changed!');\n        });\n      }\n    });\n    ```\n  \n    In this example, we use Ember.run.bind to bind the setupEditor method to the\n    context of the App.RichTextEditorComponent and to have the invocation of that\n    method be safely handled and executed by the Ember run loop.\n  \n    @method bind\n    @namespace Ember\n    @param {Object} [target] target of method to call\n    @param {Function|String} method Method to invoke.\n      May be a function or a string. If you pass a string\n      then it will be looked up on the passed target.\n    @param {Object} [args*] Any additional arguments you wish to pass to the method.\n    @return {Function} returns a new function that will always have a particular context\n    @since 1.4.0\n    @public\n  */\n  run.bind = function () {\n    for (var _len = arguments.length, curried = Array(_len), _key = 0; _key < _len; _key++) {\n      curried[_key] = arguments[_key];\n    }\n\n    return function () {\n      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n\n      return run.join.apply(run, curried.concat(args));\n    };\n  };\n\n  run.backburner = backburner;\n  run.currentRunLoop = null;\n  run.queues = backburner.queueNames;\n\n  /**\n    Begins a new RunLoop. Any deferred actions invoked after the begin will\n    be buffered until you invoke a matching call to `run.end()`. This is\n    a lower-level way to use a RunLoop instead of using `run()`.\n  \n    ```javascript\n    run.begin();\n    // code to be executed within a RunLoop\n    run.end();\n    ```\n  \n    @method begin\n    @return {void}\n    @public\n  */\n  run.begin = function () {\n    backburner.begin();\n  };\n\n  /**\n    Ends a RunLoop. This must be called sometime after you call\n    `run.begin()` to flush any deferred actions. This is a lower-level way\n    to use a RunLoop instead of using `run()`.\n  \n    ```javascript\n    run.begin();\n    // code to be executed within a RunLoop\n    run.end();\n    ```\n  \n    @method end\n    @return {void}\n    @public\n  */\n  run.end = function () {\n    backburner.end();\n  };\n\n  /**\n    Array of named queues. This array determines the order in which queues\n    are flushed at the end of the RunLoop. You can define your own queues by\n    simply adding the queue name to this array. Normally you should not need\n    to inspect or modify this property.\n  \n    @property queues\n    @type Array\n    @default ['sync', 'actions', 'destroy']\n    @private\n  */\n\n  /**\n    Adds the passed target/method and any optional arguments to the named\n    queue to be executed at the end of the RunLoop. If you have not already\n    started a RunLoop when calling this method one will be started for you\n    automatically.\n  \n    At the end of a RunLoop, any methods scheduled in this way will be invoked.\n    Methods will be invoked in an order matching the named queues defined in\n    the `run.queues` property.\n  \n    ```javascript\n    run.schedule('sync', this, function() {\n      // this will be executed in the first RunLoop queue, when bindings are synced\n      console.log('scheduled on sync queue');\n    });\n  \n    run.schedule('actions', this, function() {\n      // this will be executed in the 'actions' queue, after bindings have synced.\n      console.log('scheduled on actions queue');\n    });\n  \n    // Note the functions will be run in order based on the run queues order.\n    // Output would be:\n    //   scheduled on sync queue\n    //   scheduled on actions queue\n    ```\n  \n    @method schedule\n    @param {String} queue The name of the queue to schedule against.\n      Default queues are 'sync' and 'actions'\n    @param {Object} [target] target object to use as the context when invoking a method.\n    @param {String|Function} method The method to invoke. If you pass a string it\n      will be resolved on the target object at the time the scheduled item is\n      invoked allowing you to change the target function.\n    @param {Object} [arguments*] Optional arguments to be passed to the queued method.\n    @return {*} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.schedule = function () /* queue, target, method */{\n    _emberDebug.assert('You have turned on testing mode, which disabled the run-loop\\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run.currentRunLoop || !_emberDebug.isTesting());\n\n    return backburner.schedule.apply(backburner, arguments);\n  };\n\n  // Used by global test teardown\n  run.hasScheduledTimers = function () {\n    return backburner.hasTimers();\n  };\n\n  // Used by global test teardown\n  run.cancelTimers = function () {\n    backburner.cancelTimers();\n  };\n\n  /**\n    Immediately flushes any events scheduled in the 'sync' queue. Bindings\n    use this queue so this method is a useful way to immediately force all\n    bindings in the application to sync.\n  \n    You should call this method anytime you need any changed state to propagate\n    throughout the app immediately without repainting the UI (which happens\n    in the later 'render' queue added by the `ember-views` package).\n  \n    ```javascript\n    run.sync();\n    ```\n  \n    @method sync\n    @return {void}\n    @private\n  */\n  run.sync = function () {\n    if (backburner.currentInstance) {\n      backburner.currentInstance.queues.sync.flush();\n    }\n  };\n\n  /**\n    Invokes the passed target/method and optional arguments after a specified\n    period of time. The last parameter of this method must always be a number\n    of milliseconds.\n  \n    You should use this method whenever you need to run some action after a\n    period of time instead of using `setTimeout()`. This method will ensure that\n    items that expire during the same script execution cycle all execute\n    together, which is often more efficient than using a real setTimeout.\n  \n    ```javascript\n    run.later(myContext, function() {\n      // code here will execute within a RunLoop in about 500ms with this == myContext\n    }, 500);\n    ```\n  \n    @method later\n    @param {Object} [target] target of method to invoke\n    @param {Function|String} method The method to invoke.\n      If you pass a string it will be resolved on the\n      target at the time the method is invoked.\n    @param {Object} [args*] Optional arguments to pass to the timeout.\n    @param {Number} wait Number of milliseconds to wait.\n    @return {*} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.later = function () /*target, method*/{\n    return backburner.later.apply(backburner, arguments);\n  };\n\n  /**\n    Schedule a function to run one time during the current RunLoop. This is equivalent\n    to calling `scheduleOnce` with the \"actions\" queue.\n  \n    @method once\n    @param {Object} [target] The target of the method to invoke.\n    @param {Function|String} method The method to invoke.\n      If you pass a string it will be resolved on the\n      target at the time the method is invoked.\n    @param {Object} [args*] Optional arguments to pass to the timeout.\n    @return {Object} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.once = function () {\n    _emberDebug.assert('You have turned on testing mode, which disabled the run-loop\\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run.currentRunLoop || !_emberDebug.isTesting());\n\n    for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n      args[_key3] = arguments[_key3];\n    }\n\n    args.unshift('actions');\n    return backburner.scheduleOnce.apply(backburner, args);\n  };\n\n  /**\n    Schedules a function to run one time in a given queue of the current RunLoop.\n    Calling this method with the same queue/target/method combination will have\n    no effect (past the initial call).\n  \n    Note that although you can pass optional arguments these will not be\n    considered when looking for duplicates. New arguments will replace previous\n    calls.\n  \n    ```javascript\n    function sayHi() {\n      console.log('hi');\n    }\n  \n    run(function() {\n      run.scheduleOnce('afterRender', myContext, sayHi);\n      run.scheduleOnce('afterRender', myContext, sayHi);\n      // sayHi will only be executed once, in the afterRender queue of the RunLoop\n    });\n    ```\n  \n    Also note that passing an anonymous function to `run.scheduleOnce` will\n    not prevent additional calls with an identical anonymous function from\n    scheduling the items multiple times, e.g.:\n  \n    ```javascript\n    function scheduleIt() {\n      run.scheduleOnce('actions', myContext, function() {\n        console.log('Closure');\n      });\n    }\n  \n    scheduleIt();\n    scheduleIt();\n  \n    // \"Closure\" will print twice, even though we're using `run.scheduleOnce`,\n    // because the function we pass to it is anonymous and won't match the\n    // previously scheduled operation.\n    ```\n  \n    Available queues, and their order, can be found at `run.queues`\n  \n    @method scheduleOnce\n    @param {String} [queue] The name of the queue to schedule against. Default queues are 'sync' and 'actions'.\n    @param {Object} [target] The target of the method to invoke.\n    @param {Function|String} method The method to invoke.\n      If you pass a string it will be resolved on the\n      target at the time the method is invoked.\n    @param {Object} [args*] Optional arguments to pass to the timeout.\n    @return {Object} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.scheduleOnce = function () /*queue, target, method*/{\n    _emberDebug.assert('You have turned on testing mode, which disabled the run-loop\\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run.currentRunLoop || !_emberDebug.isTesting());\n    return backburner.scheduleOnce.apply(backburner, arguments);\n  };\n\n  /**\n    Schedules an item to run from within a separate run loop, after\n    control has been returned to the system. This is equivalent to calling\n    `run.later` with a wait time of 1ms.\n  \n    ```javascript\n    run.next(myContext, function() {\n      // code to be executed in the next run loop,\n      // which will be scheduled after the current one\n    });\n    ```\n  \n    Multiple operations scheduled with `run.next` will coalesce\n    into the same later run loop, along with any other operations\n    scheduled by `run.later` that expire right around the same\n    time that `run.next` operations will fire.\n  \n    Note that there are often alternatives to using `run.next`.\n    For instance, if you'd like to schedule an operation to happen\n    after all DOM element operations have completed within the current\n    run loop, you can make use of the `afterRender` run loop queue (added\n    by the `ember-views` package, along with the preceding `render` queue\n    where all the DOM element operations happen).\n  \n    Example:\n  \n    ```javascript\n    export default Ember.Component.extend({\n      didInsertElement() {\n        this._super(...arguments);\n        run.scheduleOnce('afterRender', this, 'processChildElements');\n      },\n  \n      processChildElements() {\n        // ... do something with component's child component\n        // elements after they've finished rendering, which\n        // can't be done within this component's\n        // `didInsertElement` hook because that gets run\n        // before the child elements have been added to the DOM.\n      }\n    });\n    ```\n  \n    One benefit of the above approach compared to using `run.next` is\n    that you will be able to perform DOM/CSS operations before unprocessed\n    elements are rendered to the screen, which may prevent flickering or\n    other artifacts caused by delaying processing until after rendering.\n  \n    The other major benefit to the above approach is that `run.next`\n    introduces an element of non-determinism, which can make things much\n    harder to test, due to its reliance on `setTimeout`; it's much harder\n    to guarantee the order of scheduled operations when they are scheduled\n    outside of the current run loop, i.e. with `run.next`.\n  \n    @method next\n    @param {Object} [target] target of method to invoke\n    @param {Function|String} method The method to invoke.\n      If you pass a string it will be resolved on the\n      target at the time the method is invoked.\n    @param {Object} [args*] Optional arguments to pass to the timeout.\n    @return {Object} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.next = function () {\n    for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n      args[_key4] = arguments[_key4];\n    }\n\n    args.push(1);\n    return backburner.later.apply(backburner, args);\n  };\n\n  /**\n    Cancels a scheduled item. Must be a value returned by `run.later()`,\n    `run.once()`, `run.scheduleOnce()`, `run.next()`, `run.debounce()`, or\n    `run.throttle()`.\n  \n    ```javascript\n    let runNext = run.next(myContext, function() {\n      // will not be executed\n    });\n  \n    run.cancel(runNext);\n  \n    let runLater = run.later(myContext, function() {\n      // will not be executed\n    }, 500);\n  \n    run.cancel(runLater);\n  \n    let runScheduleOnce = run.scheduleOnce('afterRender', myContext, function() {\n      // will not be executed\n    });\n  \n    run.cancel(runScheduleOnce);\n  \n    let runOnce = run.once(myContext, function() {\n      // will not be executed\n    });\n  \n    run.cancel(runOnce);\n  \n    let throttle = run.throttle(myContext, function() {\n      // will not be executed\n    }, 1, false);\n  \n    run.cancel(throttle);\n  \n    let debounce = run.debounce(myContext, function() {\n      // will not be executed\n    }, 1);\n  \n    run.cancel(debounce);\n  \n    let debounceImmediate = run.debounce(myContext, function() {\n      // will be executed since we passed in true (immediate)\n    }, 100, true);\n  \n    // the 100ms delay until this method can be called again will be cancelled\n    run.cancel(debounceImmediate);\n    ```\n  \n    @method cancel\n    @param {Object} timer Timer object to cancel\n    @return {Boolean} true if cancelled or false/undefined if it wasn't found\n    @public\n  */\n  run.cancel = function (timer) {\n    return backburner.cancel(timer);\n  };\n\n  /**\n    Delay calling the target method until the debounce period has elapsed\n    with no additional debounce calls. If `debounce` is called again before\n    the specified time has elapsed, the timer is reset and the entire period\n    must pass again before the target method is called.\n  \n    This method should be used when an event may be called multiple times\n    but the action should only be called once when the event is done firing.\n    A common example is for scroll events where you only want updates to\n    happen once scrolling has ceased.\n  \n    ```javascript\n    function whoRan() {\n      console.log(this.name + ' ran.');\n    }\n  \n    let myContext = { name: 'debounce' };\n  \n    run.debounce(myContext, whoRan, 150);\n  \n    // less than 150ms passes\n    run.debounce(myContext, whoRan, 150);\n  \n    // 150ms passes\n    // whoRan is invoked with context myContext\n    // console logs 'debounce ran.' one time.\n    ```\n  \n    Immediate allows you to run the function immediately, but debounce\n    other calls for this function until the wait time has elapsed. If\n    `debounce` is called again before the specified time has elapsed,\n    the timer is reset and the entire period must pass again before\n    the method can be called again.\n  \n    ```javascript\n    function whoRan() {\n      console.log(this.name + ' ran.');\n    }\n  \n    let myContext = { name: 'debounce' };\n  \n    run.debounce(myContext, whoRan, 150, true);\n  \n    // console logs 'debounce ran.' one time immediately.\n    // 100ms passes\n    run.debounce(myContext, whoRan, 150, true);\n  \n    // 150ms passes and nothing else is logged to the console and\n    // the debouncee is no longer being watched\n    run.debounce(myContext, whoRan, 150, true);\n  \n    // console logs 'debounce ran.' one time immediately.\n    // 150ms passes and nothing else is logged to the console and\n    // the debouncee is no longer being watched\n  \n    ```\n  \n    @method debounce\n    @param {Object} [target] target of method to invoke\n    @param {Function|String} method The method to invoke.\n      May be a function or a string. If you pass a string\n      then it will be looked up on the passed target.\n    @param {Object} [args*] Optional arguments to pass to the timeout.\n    @param {Number} wait Number of milliseconds to wait.\n    @param {Boolean} immediate Trigger the function on the leading instead\n      of the trailing edge of the wait interval. Defaults to false.\n    @return {Array} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.debounce = function () {\n    return backburner.debounce.apply(backburner, arguments);\n  };\n\n  /**\n    Ensure that the target method is never called more frequently than\n    the specified spacing period. The target method is called immediately.\n  \n    ```javascript\n    function whoRan() {\n      console.log(this.name + ' ran.');\n    }\n  \n    let myContext = { name: 'throttle' };\n  \n    run.throttle(myContext, whoRan, 150);\n    // whoRan is invoked with context myContext\n    // console logs 'throttle ran.'\n  \n    // 50ms passes\n    run.throttle(myContext, whoRan, 150);\n  \n    // 50ms passes\n    run.throttle(myContext, whoRan, 150);\n  \n    // 150ms passes\n    run.throttle(myContext, whoRan, 150);\n    // whoRan is invoked with context myContext\n    // console logs 'throttle ran.'\n    ```\n  \n    @method throttle\n    @param {Object} [target] target of method to invoke\n    @param {Function|String} method The method to invoke.\n      May be a function or a string. If you pass a string\n      then it will be looked up on the passed target.\n    @param {Object} [args*] Optional arguments to pass to the timeout.\n    @param {Number} spacing Number of milliseconds to space out requests.\n    @param {Boolean} immediate Trigger the function on the leading instead\n      of the trailing edge of the wait interval. Defaults to true.\n    @return {Array} Timer information for use in cancelling, see `run.cancel`.\n    @public\n  */\n  run.throttle = function () {\n    return backburner.throttle.apply(backburner, arguments);\n  };\n\n  /**\n    Add a new named queue after the specified queue.\n  \n    The queue to add will only be added once.\n  \n    @method _addQueue\n    @param {String} name the name of the queue to add.\n    @param {String} after the name of the queue to add after.\n    @private\n  */\n  run._addQueue = function (name, after) {\n    if (run.queues.indexOf(name) === -1) {\n      run.queues.splice(run.queues.indexOf(after) + 1, 0, name);\n    }\n  };\n});\nenifed('ember-metal/set_properties', ['exports', 'ember-metal/property_events', 'ember-metal/property_set'], function (exports, _emberMetalProperty_events, _emberMetalProperty_set) {\n  'use strict';\n\n  exports.default = setProperties;\n\n  /**\n    Set a list of properties on an object. These properties are set inside\n    a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n    observers will be buffered.\n  \n    ```javascript\n    let anObject = Ember.Object.create();\n  \n    anObject.setProperties({\n      firstName: 'Stanley',\n      lastName: 'Stuart',\n      age: 21\n    });\n    ```\n  \n    @method setProperties\n    @param obj\n    @param {Object} properties\n    @return properties\n    @public\n  */\n\n  function setProperties(obj, properties) {\n    if (!properties || typeof properties !== 'object') {\n      return properties;\n    }\n    _emberMetalProperty_events.changeProperties(function () {\n      var props = Object.keys(properties);\n      var propertyName = undefined;\n\n      for (var i = 0; i < props.length; i++) {\n        propertyName = props[i];\n\n        _emberMetalProperty_set.set(obj, propertyName, properties[propertyName]);\n      }\n    });\n    return properties;\n  }\n});\nenifed('ember-metal/tags', ['exports', '@glimmer/reference', 'ember-metal/meta', 'require', 'ember-metal/is_proxy'], function (exports, _glimmerReference, _emberMetalMeta, _require, _emberMetalIs_proxy) {\n  'use strict';\n\n  exports.setHasViews = setHasViews;\n  exports.tagForProperty = tagForProperty;\n  exports.tagFor = tagFor;\n  exports.markObjectAsDirty = markObjectAsDirty;\n\n  var hasViews = function () {\n    return false;\n  };\n\n  function setHasViews(fn) {\n    hasViews = fn;\n  }\n\n  function makeTag() {\n    return new _glimmerReference.DirtyableTag();\n  }\n\n  function tagForProperty(object, propertyKey, _meta) {\n    if (_emberMetalIs_proxy.isProxy(object)) {\n      return tagFor(object, _meta);\n    }\n\n    if (typeof object === 'object' && object) {\n      var meta = _meta || _emberMetalMeta.meta(object);\n      var tags = meta.writableTags();\n      var tag = tags[propertyKey];\n      if (tag) {\n        return tag;\n      }\n\n      return tags[propertyKey] = makeTag();\n    } else {\n      return _glimmerReference.CONSTANT_TAG;\n    }\n  }\n\n  function tagFor(object, _meta) {\n    if (typeof object === 'object' && object) {\n      var meta = _meta || _emberMetalMeta.meta(object);\n      return meta.writableTag(makeTag);\n    } else {\n      return _glimmerReference.CONSTANT_TAG;\n    }\n  }\n\n  function markObjectAsDirty(meta, propertyKey) {\n    var objectTag = meta && meta.readableTag();\n\n    if (objectTag) {\n      objectTag.dirty();\n    }\n\n    var tags = meta && meta.readableTags();\n    var propertyTag = tags && tags[propertyKey];\n\n    if (propertyTag) {\n      propertyTag.dirty();\n    }\n\n    if (objectTag || propertyTag) {\n      ensureRunloop();\n    }\n  }\n\n  var run = undefined;\n\n  function K() {}\n\n  function ensureRunloop() {\n    if (!run) {\n      run = _require.default('ember-metal/run_loop').default;\n    }\n\n    if (hasViews() && !run.backburner.currentInstance) {\n      run.schedule('actions', K);\n    }\n  }\n});\nenifed('ember-metal/transaction', ['exports', 'ember-metal/meta', 'ember-debug'], function (exports, _emberMetalMeta, _emberDebug) {\n  'use strict';\n\n  var runInTransaction = undefined,\n      didRender = undefined,\n      assertNotRendered = undefined;\n\n  // detect-backtracking-rerender by default is debug build only\n  // detect-glimmer-allow-backtracking-rerender can be enabled in custom builds\n  if (true || false) {\n    (function () {\n      var counter = 0;\n      var inTransaction = false;\n      var shouldReflush = undefined;\n      var debugStack = undefined;\n\n      exports.default = runInTransaction = function (context, methodName) {\n        shouldReflush = false;\n        inTransaction = true;\n        _emberDebug.runInDebug(function () {\n          debugStack = context.env.debugStack;\n        });\n        context[methodName]();\n        inTransaction = false;\n        counter++;\n        return shouldReflush;\n      };\n\n      exports.didRender = didRender = function (object, key, reference) {\n        if (!inTransaction) {\n          return;\n        }\n        var meta = _emberMetalMeta.meta(object);\n        var lastRendered = meta.writableLastRendered();\n        lastRendered[key] = counter;\n\n        _emberDebug.runInDebug(function () {\n          var referenceMap = meta.writableLastRenderedReferenceMap();\n          referenceMap[key] = reference;\n\n          var templateMap = meta.writableLastRenderedTemplateMap();\n          if (templateMap[key] === undefined) {\n            templateMap[key] = debugStack.peek();\n          }\n        });\n      };\n\n      exports.assertNotRendered = assertNotRendered = function (object, key, _meta) {\n        var meta = _meta || _emberMetalMeta.meta(object);\n        var lastRendered = meta.readableLastRendered();\n\n        if (lastRendered && lastRendered[key] === counter) {\n          _emberDebug.runInDebug(function () {\n            var templateMap = meta.readableLastRenderedTemplateMap();\n            var lastRenderedIn = templateMap[key];\n            var currentlyIn = debugStack.peek();\n\n            var referenceMap = meta.readableLastRenderedReferenceMap();\n            var lastRef = referenceMap[key];\n            var parts = [];\n            var label = undefined;\n\n            if (lastRef) {\n              while (lastRef && lastRef._propertyKey) {\n                parts.unshift(lastRef._propertyKey);\n                lastRef = lastRef._parentReference;\n              }\n\n              label = parts.join('.');\n            } else {\n              label = 'the same value';\n            }\n\n            var message = 'You modified \"' + label + '\" twice on ' + object + ' in a single render. It was rendered in ' + lastRenderedIn + ' and modified in ' + currentlyIn + '. This was unreliable and slow in Ember 1.x and';\n\n            if (false) {\n              _emberDebug.deprecate(message + ' will be removed in Ember 3.0.', false, { id: 'ember-views.render-double-modify', until: '3.0.0' });\n            } else {\n              _emberDebug.assert(message + ' is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.', false);\n            }\n          });\n\n          shouldReflush = true;\n        }\n      };\n    })();\n  } else {\n    // in production do nothing to detect reflushes\n    exports.default = runInTransaction = function (context, methodName) {\n      context[methodName]();\n      return false;\n    };\n  }\n\n  exports.default = runInTransaction;\n  exports.didRender = didRender;\n  exports.assertNotRendered = assertNotRendered;\n});\nenifed('ember-metal/watch_key', ['exports', 'ember-utils', 'ember-debug', 'ember-metal/meta', 'ember-metal/properties'], function (exports, _emberUtils, _emberDebug, _emberMetalMeta, _emberMetalProperties) {\n  'use strict';\n\n  exports.watchKey = watchKey;\n  exports.unwatchKey = unwatchKey;\n\n  var handleMandatorySetter = undefined;\n\n  function watchKey(obj, keyName, meta) {\n    if (typeof obj !== 'object' || obj === null) {\n      return;\n    }\n    var m = meta || _emberMetalMeta.meta(obj);\n\n    // activate watching first time\n    if (!m.peekWatching(keyName)) {\n      m.writeWatching(keyName, 1);\n\n      var possibleDesc = obj[keyName];\n      var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n      if (desc && desc.willWatch) {\n        desc.willWatch(obj, keyName);\n      }\n\n      if ('function' === typeof obj.willWatchProperty) {\n        obj.willWatchProperty(keyName);\n      }\n\n      if (true) {\n        // NOTE: this is dropped for prod + minified builds\n        handleMandatorySetter(m, obj, keyName);\n      }\n    } else {\n      m.writeWatching(keyName, (m.peekWatching(keyName) || 0) + 1);\n    }\n  }\n\n  if (true) {\n    (function () {\n      var hasOwnProperty = function (obj, key) {\n        return Object.prototype.hasOwnProperty.call(obj, key);\n      };\n\n      var propertyIsEnumerable = function (obj, key) {\n        return Object.prototype.propertyIsEnumerable.call(obj, key);\n      };\n\n      // Future traveler, although this code looks scary. It merely exists in\n      // development to aid in development asertions. Production builds of\n      // ember strip this entire block out\n      handleMandatorySetter = function handleMandatorySetter(m, obj, keyName) {\n        var descriptor = _emberUtils.lookupDescriptor(obj, keyName);\n        var configurable = descriptor ? descriptor.configurable : true;\n        var isWritable = descriptor ? descriptor.writable : true;\n        var hasValue = descriptor ? 'value' in descriptor : true;\n        var possibleDesc = descriptor && descriptor.value;\n        var isDescriptor = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor;\n\n        if (isDescriptor) {\n          return;\n        }\n\n        // this x in Y deopts, so keeping it in this function is better;\n        if (configurable && isWritable && hasValue && keyName in obj) {\n          var desc = {\n            configurable: true,\n            set: _emberMetalProperties.MANDATORY_SETTER_FUNCTION(keyName),\n            enumerable: propertyIsEnumerable(obj, keyName),\n            get: undefined\n          };\n\n          if (hasOwnProperty(obj, keyName)) {\n            m.writeValues(keyName, obj[keyName]);\n            desc.get = _emberMetalProperties.DEFAULT_GETTER_FUNCTION(keyName);\n          } else {\n            desc.get = _emberMetalProperties.INHERITING_GETTER_FUNCTION(keyName);\n          }\n\n          Object.defineProperty(obj, keyName, desc);\n        }\n      };\n    })();\n  }\n\n  function unwatchKey(obj, keyName, _meta) {\n    if (typeof obj !== 'object' || obj === null) {\n      return;\n    }\n    var meta = _meta || _emberMetalMeta.meta(obj);\n\n    // do nothing of this object has already been destroyed\n    if (meta.isSourceDestroyed()) {\n      return;\n    }\n\n    var count = meta.peekWatching(keyName);\n    if (count === 1) {\n      meta.writeWatching(keyName, 0);\n\n      var possibleDesc = obj[keyName];\n      var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n      if (desc && desc.didUnwatch) {\n        desc.didUnwatch(obj, keyName);\n      }\n\n      if ('function' === typeof obj.didUnwatchProperty) {\n        obj.didUnwatchProperty(keyName);\n      }\n\n      if (true) {\n        // It is true, the following code looks quite WAT. But have no fear, It\n        // exists purely to improve development ergonomics and is removed from\n        // ember.min.js and ember.prod.js builds.\n        //\n        // Some further context: Once a property is watched by ember, bypassing `set`\n        // for mutation, will bypass observation. This code exists to assert when\n        // that occurs, and attempt to provide more helpful feedback. The alternative\n        // is tricky to debug partially observable properties.\n        if (!desc && keyName in obj) {\n          var maybeMandatoryDescriptor = _emberUtils.lookupDescriptor(obj, keyName);\n\n          if (maybeMandatoryDescriptor.set && maybeMandatoryDescriptor.set.isMandatorySetter) {\n            if (maybeMandatoryDescriptor.get && maybeMandatoryDescriptor.get.isInheritingGetter) {\n              var possibleValue = meta.readInheritedValue('values', keyName);\n              if (possibleValue === _emberMetalMeta.UNDEFINED) {\n                delete obj[keyName];\n                return;\n              }\n            }\n\n            Object.defineProperty(obj, keyName, {\n              configurable: true,\n              enumerable: Object.prototype.propertyIsEnumerable.call(obj, keyName),\n              writable: true,\n              value: meta.peekValues(keyName)\n            });\n            meta.deleteFromValues(keyName);\n          }\n        }\n      }\n    } else if (count > 1) {\n      meta.writeWatching(keyName, count - 1);\n    }\n  }\n});\nenifed('ember-metal/watch_path', ['exports', 'ember-metal/meta', 'ember-metal/chains'], function (exports, _emberMetalMeta, _emberMetalChains) {\n  'use strict';\n\n  exports.makeChainNode = makeChainNode;\n  exports.watchPath = watchPath;\n  exports.unwatchPath = unwatchPath;\n\n  // get the chains for the current object. If the current object has\n  // chains inherited from the proto they will be cloned and reconfigured for\n  // the current object.\n  function chainsFor(obj, meta) {\n    return (meta || _emberMetalMeta.meta(obj)).writableChains(makeChainNode);\n  }\n\n  function makeChainNode(obj) {\n    return new _emberMetalChains.ChainNode(null, null, obj);\n  }\n\n  function watchPath(obj, keyPath, meta) {\n    if (typeof obj !== 'object' || obj === null) {\n      return;\n    }\n    var m = meta || _emberMetalMeta.meta(obj);\n    var counter = m.peekWatching(keyPath) || 0;\n    if (!counter) {\n      // activate watching first time\n      m.writeWatching(keyPath, 1);\n      chainsFor(obj, m).add(keyPath);\n    } else {\n      m.writeWatching(keyPath, counter + 1);\n    }\n  }\n\n  function unwatchPath(obj, keyPath, meta) {\n    if (typeof obj !== 'object' || obj === null) {\n      return;\n    }\n    var m = meta || _emberMetalMeta.meta(obj);\n    var counter = m.peekWatching(keyPath) || 0;\n\n    if (counter === 1) {\n      m.writeWatching(keyPath, 0);\n      chainsFor(obj, m).remove(keyPath);\n    } else if (counter > 1) {\n      m.writeWatching(keyPath, counter - 1);\n    }\n  }\n});\nenifed('ember-metal/watching', ['exports', 'ember-metal/watch_key', 'ember-metal/watch_path', 'ember-metal/path_cache', 'ember-metal/meta'], function (exports, _emberMetalWatch_key, _emberMetalWatch_path, _emberMetalPath_cache, _emberMetalMeta) {\n  /**\n  @module ember-metal\n  */\n\n  'use strict';\n\n  exports.isWatching = isWatching;\n  exports.watcherCount = watcherCount;\n  exports.unwatch = unwatch;\n  exports.destroy = destroy;\n\n  /**\n    Starts watching a property on an object. Whenever the property changes,\n    invokes `Ember.propertyWillChange` and `Ember.propertyDidChange`. This is the\n    primitive used by observers and dependent keys; usually you will never call\n    this method directly but instead use higher level methods like\n    `Ember.addObserver()`\n  \n    @private\n    @method watch\n    @for Ember\n    @param obj\n    @param {String} _keyPath\n  */\n  function watch(obj, _keyPath, m) {\n    if (!_emberMetalPath_cache.isPath(_keyPath)) {\n      _emberMetalWatch_key.watchKey(obj, _keyPath, m);\n    } else {\n      _emberMetalWatch_path.watchPath(obj, _keyPath, m);\n    }\n  }\n\n  exports.watch = watch;\n\n  function isWatching(obj, key) {\n    if (typeof obj !== 'object' || obj === null) {\n      return false;\n    }\n    var meta = _emberMetalMeta.peekMeta(obj);\n    return (meta && meta.peekWatching(key)) > 0;\n  }\n\n  function watcherCount(obj, key) {\n    var meta = _emberMetalMeta.peekMeta(obj);\n    return meta && meta.peekWatching(key) || 0;\n  }\n\n  function unwatch(obj, _keyPath, m) {\n    if (!_emberMetalPath_cache.isPath(_keyPath)) {\n      _emberMetalWatch_key.unwatchKey(obj, _keyPath, m);\n    } else {\n      _emberMetalWatch_path.unwatchPath(obj, _keyPath, m);\n    }\n  }\n\n  /**\n    Tears down the meta on an object so that it can be garbage collected.\n    Multiple calls will have no effect.\n  \n    @method destroy\n    @for Ember\n    @param {Object} obj  the object to destroy\n    @return {void}\n    @private\n  */\n\n  function destroy(obj) {\n    _emberMetalMeta.deleteMeta(obj);\n  }\n});\nenifed('ember-metal/weak_map', ['exports', 'ember-utils', 'ember-metal/meta'], function (exports, _emberUtils, _emberMetalMeta) {\n  'use strict';\n\n  exports.default = WeakMap;\n\n  var id = 0;\n\n  // Returns whether Type(value) is Object according to the terminology in the spec\n  function isObject(value) {\n    return typeof value === 'object' && value !== null || typeof value === 'function';\n  }\n\n  /*\n   * @class Ember.WeakMap\n   * @public\n   * @category ember-metal-weakmap\n   *\n   * A partial polyfill for [WeakMap](http://www.ecma-international.org/ecma-262/6.0/#sec-weakmap-objects).\n   *\n   * There is a small but important caveat. This implementation assumes that the\n   * weak map will live longer (in the sense of garbage collection) than all of its\n   * keys, otherwise it is possible to leak the values stored in the weak map. In\n   * practice, most use cases satisfy this limitation which is why it is included\n   * in ember-metal.\n   */\n\n  function WeakMap(iterable) {\n    if (!(this instanceof WeakMap)) {\n      throw new TypeError('Constructor WeakMap requires \\'new\\'');\n    }\n\n    this._id = _emberUtils.GUID_KEY + id++;\n\n    if (iterable === null || iterable === undefined) {\n      return;\n    } else if (Array.isArray(iterable)) {\n      for (var i = 0; i < iterable.length; i++) {\n        var _iterable$i = iterable[i];\n        var key = _iterable$i[0];\n        var value = _iterable$i[1];\n\n        this.set(key, value);\n      }\n    } else {\n      throw new TypeError('The weak map constructor polyfill only supports an array argument');\n    }\n  }\n\n  /*\n   * @method get\n   * @param key {Object | Function}\n   * @return {Any} stored value\n   */\n  WeakMap.prototype.get = function (obj) {\n    if (!isObject(obj)) {\n      return undefined;\n    }\n\n    var meta = _emberMetalMeta.peekMeta(obj);\n    if (meta) {\n      var map = meta.readableWeak();\n      if (map) {\n        if (map[this._id] === _emberMetalMeta.UNDEFINED) {\n          return undefined;\n        }\n\n        return map[this._id];\n      }\n    }\n  };\n\n  /*\n   * @method set\n   * @param key {Object | Function}\n   * @param value {Any}\n   * @return {WeakMap} the weak map\n   */\n  WeakMap.prototype.set = function (obj, value) {\n    if (!isObject(obj)) {\n      throw new TypeError('Invalid value used as weak map key');\n    }\n\n    if (value === undefined) {\n      value = _emberMetalMeta.UNDEFINED;\n    }\n\n    _emberMetalMeta.meta(obj).writableWeak()[this._id] = value;\n\n    return this;\n  };\n\n  /*\n   * @method has\n   * @param key {Object | Function}\n   * @return {boolean} if the key exists\n   */\n  WeakMap.prototype.has = function (obj) {\n    if (!isObject(obj)) {\n      return false;\n    }\n\n    var meta = _emberMetalMeta.peekMeta(obj);\n    if (meta) {\n      var map = meta.readableWeak();\n      if (map) {\n        return map[this._id] !== undefined;\n      }\n    }\n\n    return false;\n  };\n\n  /*\n   * @method delete\n   * @param key {Object | Function}\n   * @return {boolean} if the key was deleted\n   */\n  WeakMap.prototype.delete = function (obj) {\n    if (this.has(obj)) {\n      delete _emberMetalMeta.meta(obj).writableWeak()[this._id];\n      return true;\n    } else {\n      return false;\n    }\n  };\n\n  /*\n   * @method toString\n   * @return {String}\n   */\n  WeakMap.prototype.toString = function () {\n    return '[object WeakMap]';\n  };\n});\nenifed('ember-routing/ext/controller', ['exports', 'ember-metal', 'ember-runtime', 'ember-routing/utils'], function (exports, _emberMetal, _emberRuntime, _emberRoutingUtils) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  _emberRuntime.ControllerMixin.reopen({\n    concatenatedProperties: ['queryParams'],\n\n    /**\n      Defines which query parameters the controller accepts.\n      If you give the names `['category','page']` it will bind\n      the values of these query parameters to the variables\n      `this.category` and `this.page`.\n      By default, Ember coerces query parameter values using `toggleProperty`.\n      This behavior may lead to unexpected results.\n      To explicity configure a query parameter property so it coerces as expected, you must define a type property:\n      ```javascript\n        queryParams: [{\n          category: {\n            type: 'boolean'\n          }\n        }]\n      ```\n      @property queryParams\n      @public\n    */\n    queryParams: null,\n\n    /**\n     This property is updated to various different callback functions depending on\n     the current \"state\" of the backing route. It is used by\n     `Ember.Controller.prototype._qpChanged`.\n      The methods backing each state can be found in the `Ember.Route.prototype._qp` computed\n     property return value (the `.states` property). The current values are listed here for\n     the sanity of future travelers:\n      * `inactive` - This state is used when this controller instance is not part of the active\n       route heirarchy. Set in `Ember.Route.prototype._reset` (a `router.js` microlib hook) and\n       `Ember.Route.prototype.actions.finalizeQueryParamChange`.\n     * `active` - This state is used when this controller instance is part of the active\n       route heirarchy. Set in `Ember.Route.prototype.actions.finalizeQueryParamChange`.\n     * `allowOverrides` - This state is used in `Ember.Route.prototype.setup` (`route.js` microlib hook).\n       @method _qpDelegate\n      @private\n    */\n    _qpDelegate: null, // set by route\n\n    /**\n     During `Ember.Route#setup` observers are created to invoke this method\n     when any of the query params declared in `Ember.Controller#queryParams` property\n     are changed.\n       When invoked this method uses the currently active query param update delegate\n     (see `Ember.Controller.prototype._qpDelegate` for details) and invokes it with\n     the QP key/value being changed.\n       @method _qpChanged\n      @private\n    */\n    _qpChanged: function (controller, _prop) {\n      var prop = _prop.substr(0, _prop.length - 3);\n\n      var delegate = controller._qpDelegate;\n      var value = _emberMetal.get(controller, prop);\n      delegate(prop, value);\n    },\n\n    /**\n      Transition the application into another route. The route may\n      be either a single route or route path:\n       ```javascript\n      aController.transitionToRoute('blogPosts');\n      aController.transitionToRoute('blogPosts.recentEntries');\n      ```\n       Optionally supply a model for the route in question. The model\n      will be serialized into the URL using the `serialize` hook of\n      the route:\n       ```javascript\n      aController.transitionToRoute('blogPost', aPost);\n      ```\n       If a literal is passed (such as a number or a string), it will\n      be treated as an identifier instead. In this case, the `model`\n      hook of the route will be triggered:\n       ```javascript\n      aController.transitionToRoute('blogPost', 1);\n      ```\n       Multiple models will be applied last to first recursively up the\n      route tree.\n       ```javascript\n      App.Router.map(function() {\n        this.route('blogPost', { path: ':blogPostId' }, function() {\n          this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n        });\n      });\n       aController.transitionToRoute('blogComment', aPost, aComment);\n      aController.transitionToRoute('blogComment', 1, 13);\n      ```\n       It is also possible to pass a URL (a string that starts with a\n      `/`). This is intended for testing and debugging purposes and\n      should rarely be used in production code.\n       ```javascript\n      aController.transitionToRoute('/');\n      aController.transitionToRoute('/blog/post/1/comment/13');\n      aController.transitionToRoute('/blog/posts?sort=title');\n      ```\n       An options hash with a `queryParams` property may be provided as\n      the final argument to add query parameters to the destination URL.\n       ```javascript\n      aController.transitionToRoute('blogPost', 1, {\n        queryParams: { showComments: 'true' }\n      });\n       // if you just want to transition the query parameters without changing the route\n      aController.transitionToRoute({ queryParams: { sort: 'date' } });\n      ```\n       See also [replaceRoute](/api/classes/Ember.ControllerMixin.html#method_replaceRoute).\n       @param {String} name the name of the route or a URL\n      @param {...Object} models the model(s) or identifier(s) to be used\n        while transitioning to the route.\n      @param {Object} [options] optional hash with a queryParams property\n        containing a mapping of query parameters\n      @for Ember.ControllerMixin\n      @method transitionToRoute\n      @public\n    */\n    transitionToRoute: function () {\n      // target may be either another controller or a router\n      var target = _emberMetal.get(this, 'target');\n      var method = target.transitionToRoute || target.transitionTo;\n\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      return method.apply(target, _emberRoutingUtils.prefixRouteNameArg(this, args));\n    },\n\n    /**\n      Transition into another route while replacing the current URL, if possible.\n      This will replace the current history entry instead of adding a new one.\n      Beside that, it is identical to `transitionToRoute` in all other respects.\n       ```javascript\n      aController.replaceRoute('blogPosts');\n      aController.replaceRoute('blogPosts.recentEntries');\n      ```\n       Optionally supply a model for the route in question. The model\n      will be serialized into the URL using the `serialize` hook of\n      the route:\n       ```javascript\n      aController.replaceRoute('blogPost', aPost);\n      ```\n       If a literal is passed (such as a number or a string), it will\n      be treated as an identifier instead. In this case, the `model`\n      hook of the route will be triggered:\n       ```javascript\n      aController.replaceRoute('blogPost', 1);\n      ```\n       Multiple models will be applied last to first recursively up the\n      route tree.\n       ```javascript\n      App.Router.map(function() {\n        this.route('blogPost', { path: ':blogPostId' }, function() {\n          this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n        });\n      });\n       aController.replaceRoute('blogComment', aPost, aComment);\n      aController.replaceRoute('blogComment', 1, 13);\n      ```\n       It is also possible to pass a URL (a string that starts with a\n      `/`). This is intended for testing and debugging purposes and\n      should rarely be used in production code.\n       ```javascript\n      aController.replaceRoute('/');\n      aController.replaceRoute('/blog/post/1/comment/13');\n      ```\n       @param {String} name the name of the route or a URL\n      @param {...Object} models the model(s) or identifier(s) to be used\n      while transitioning to the route.\n      @for Ember.ControllerMixin\n      @method replaceRoute\n      @public\n    */\n    replaceRoute: function () {\n      // target may be either another controller or a router\n      var target = _emberMetal.get(this, 'target');\n      var method = target.replaceRoute || target.replaceWith;\n\n      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n\n      return method.apply(target, _emberRoutingUtils.prefixRouteNameArg(target, args));\n    }\n  });\n\n  exports.default = _emberRuntime.ControllerMixin;\n});\nenifed('ember-routing/ext/run_loop', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  // Add a new named queue after the 'actions' queue (where RSVP promises\n  // resolve), which is used in router transitions to prevent unnecessary\n  // loading state entry if all context promises resolve on the\n  // 'actions' queue first.\n  _emberMetal.run._addQueue('routerTransitions', 'actions');\n});\nenifed('ember-routing/index', ['exports', 'ember-routing/ext/run_loop', 'ember-routing/ext/controller', 'ember-routing/location/api', 'ember-routing/location/none_location', 'ember-routing/location/hash_location', 'ember-routing/location/history_location', 'ember-routing/location/auto_location', 'ember-routing/system/generate_controller', 'ember-routing/system/controller_for', 'ember-routing/system/dsl', 'ember-routing/system/router', 'ember-routing/system/route', 'ember-routing/system/query_params', 'ember-routing/services/routing', 'ember-routing/services/router', 'ember-routing/system/cache'], function (exports, _emberRoutingExtRun_loop, _emberRoutingExtController, _emberRoutingLocationApi, _emberRoutingLocationNone_location, _emberRoutingLocationHash_location, _emberRoutingLocationHistory_location, _emberRoutingLocationAuto_location, _emberRoutingSystemGenerate_controller, _emberRoutingSystemController_for, _emberRoutingSystemDsl, _emberRoutingSystemRouter, _emberRoutingSystemRoute, _emberRoutingSystemQuery_params, _emberRoutingServicesRouting, _emberRoutingServicesRouter, _emberRoutingSystemCache) {\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  // ES6TODO: Cleanup modules with side-effects below\n  'use strict';\n\n  exports.Location = _emberRoutingLocationApi.default;\n  exports.NoneLocation = _emberRoutingLocationNone_location.default;\n  exports.HashLocation = _emberRoutingLocationHash_location.default;\n  exports.HistoryLocation = _emberRoutingLocationHistory_location.default;\n  exports.AutoLocation = _emberRoutingLocationAuto_location.default;\n  exports.generateController = _emberRoutingSystemGenerate_controller.default;\n  exports.generateControllerFactory = _emberRoutingSystemGenerate_controller.generateControllerFactory;\n  exports.controllerFor = _emberRoutingSystemController_for.default;\n  exports.RouterDSL = _emberRoutingSystemDsl.default;\n  exports.Router = _emberRoutingSystemRouter.default;\n  exports.Route = _emberRoutingSystemRoute.default;\n  exports.QueryParams = _emberRoutingSystemQuery_params.default;\n  exports.RoutingService = _emberRoutingServicesRouting.default;\n  exports.RouterService = _emberRoutingServicesRouter.default;\n  exports.BucketCache = _emberRoutingSystemCache.default;\n});\nenifed('ember-routing/location/api', ['exports', 'ember-debug', 'ember-environment', 'ember-routing/location/util'], function (exports, _emberDebug, _emberEnvironment, _emberRoutingLocationUtil) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    Ember.Location returns an instance of the correct implementation of\n    the `location` API.\n  \n    ## Implementations\n  \n    You can pass an implementation name (`hash`, `history`, `none`) to force a\n    particular implementation to be used in your application.\n  \n    ### HashLocation\n  \n    Using `HashLocation` results in URLs with a `#` (hash sign) separating the\n    server side URL portion of the URL from the portion that is used by Ember.\n    This relies upon the `hashchange` event existing in the browser.\n  \n    Example:\n  \n    ```javascript\n    App.Router.map(function() {\n      this.route('posts', function() {\n        this.route('new');\n      });\n    });\n  \n    App.Router.reopen({\n      location: 'hash'\n    });\n    ```\n  \n    This will result in a posts.new url of `/#/posts/new`.\n  \n    ### HistoryLocation\n  \n    Using `HistoryLocation` results in URLs that are indistinguishable from a\n    standard URL. This relies upon the browser's `history` API.\n  \n    Example:\n  \n    ```javascript\n    App.Router.map(function() {\n      this.route('posts', function() {\n        this.route('new');\n      });\n    });\n  \n    App.Router.reopen({\n      location: 'history'\n    });\n    ```\n  \n    This will result in a posts.new url of `/posts/new`.\n  \n    Keep in mind that your server must serve the Ember app at all the routes you\n    define.\n  \n    ### AutoLocation\n  \n    Using `AutoLocation`, the router will use the best Location class supported by\n    the browser it is running in.\n  \n    Browsers that support the `history` API will use `HistoryLocation`, those that\n    do not, but still support the `hashchange` event will use `HashLocation`, and\n    in the rare case neither is supported will use `NoneLocation`.\n  \n    Example:\n  \n    ```javascript\n    App.Router.map(function() {\n      this.route('posts', function() {\n        this.route('new');\n      });\n    });\n  \n    App.Router.reopen({\n      location: 'auto'\n    });\n    ```\n  \n    This will result in a posts.new url of `/posts/new` for modern browsers that\n    support the `history` api or `/#/posts/new` for older ones, like Internet\n    Explorer 9 and below.\n  \n    When a user visits a link to your application, they will be automatically\n    upgraded or downgraded to the appropriate `Location` class, with the URL\n    transformed accordingly, if needed.\n  \n    Keep in mind that since some of your users will use `HistoryLocation`, your\n    server must serve the Ember app at all the routes you define.\n  \n    ### NoneLocation\n  \n    Using `NoneLocation` causes Ember to not store the applications URL state\n    in the actual URL. This is generally used for testing purposes, and is one\n    of the changes made when calling `App.setupForTesting()`.\n  \n    ## Location API\n  \n    Each location implementation must provide the following methods:\n  \n    * implementation: returns the string name used to reference the implementation.\n    * getURL: returns the current URL.\n    * setURL(path): sets the current URL.\n    * replaceURL(path): replace the current URL (optional).\n    * onUpdateURL(callback): triggers the callback when the URL changes.\n    * formatURL(url): formats `url` to be placed into `href` attribute.\n    * detect() (optional): instructs the location to do any feature detection\n        necessary. If the location needs to redirect to a different URL, it\n        can cancel routing by setting the `cancelRouterSetup` property on itself\n        to `false`.\n  \n    Calling setURL or replaceURL will not trigger onUpdateURL callbacks.\n  \n    ## Custom implementation\n  \n    Ember scans `app/locations/*` for extending the Location API.\n  \n    Example:\n  \n    ```javascript\n    import Ember from 'ember';\n  \n    export default Ember.HistoryLocation.extend({\n      implementation: 'history-url-logging',\n  \n      pushState: function (path) {\n        console.log(path);\n        this._super.apply(this, arguments);\n      }\n    });\n    ```\n  \n    @class Location\n    @namespace Ember\n    @static\n    @private\n  */\n  exports.default = {\n    /**\n     This is deprecated in favor of using the container to lookup the location\n     implementation as desired.\n      For example:\n      ```javascript\n     // Given a location registered as follows:\n     container.register('location:history-test', HistoryTestLocation);\n      // You could create a new instance via:\n     container.lookup('location:history-test');\n     ```\n       @method create\n      @param {Object} options\n      @return {Object} an instance of an implementation of the `location` API\n      @deprecated Use the container to lookup the location implementation that you\n      need.\n      @private\n    */\n    create: function (options) {\n      var implementation = options && options.implementation;\n      _emberDebug.assert('Ember.Location.create: you must specify a \\'implementation\\' option', !!implementation);\n\n      var implementationClass = this.implementations[implementation];\n      _emberDebug.assert('Ember.Location.create: ' + implementation + ' is not a valid implementation', !!implementationClass);\n\n      return implementationClass.create.apply(implementationClass, arguments);\n    },\n\n    implementations: {},\n    _location: _emberEnvironment.environment.location,\n\n    /**\n      Returns the current `location.hash` by parsing location.href since browsers\n      inconsistently URL-decode `location.hash`.\n       https://bugzilla.mozilla.org/show_bug.cgi?id=483304\n       @private\n      @method getHash\n      @since 1.4.0\n    */\n    _getHash: function () {\n      return _emberRoutingLocationUtil.getHash(this.location);\n    }\n  };\n});\nenifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-environment', 'ember-routing/location/util'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberRuntime, _emberEnvironment, _emberRoutingLocationUtil) {\n  'use strict';\n\n  exports.getHistoryPath = getHistoryPath;\n  exports.getHashPath = getHashPath;\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    Ember.AutoLocation will select the best location option based off browser\n    support with the priority order: history, hash, none.\n  \n    Clean pushState paths accessed by hashchange-only browsers will be redirected\n    to the hash-equivalent and vice versa so future transitions are consistent.\n  \n    Keep in mind that since some of your users will use `HistoryLocation`, your\n    server must serve the Ember app at all the routes you define.\n  \n    @class AutoLocation\n    @namespace Ember\n    @static\n    @private\n  */\n  exports.default = _emberRuntime.Object.extend({\n    /**\n      @private\n       The browser's `location` object. This is typically equivalent to\n      `window.location`, but may be overridden for testing.\n       @property location\n      @default environment.location\n    */\n    location: _emberEnvironment.environment.location,\n\n    /**\n      @private\n       The browser's `history` object. This is typically equivalent to\n      `window.history`, but may be overridden for testing.\n       @since 1.5.1\n      @property history\n      @default environment.history\n    */\n    history: _emberEnvironment.environment.history,\n\n    /**\n     @private\n      The user agent's global variable. In browsers, this will be `window`.\n      @since 1.11\n     @property global\n     @default window\n    */\n    global: _emberEnvironment.environment.window,\n\n    /**\n      @private\n       The browser's `userAgent`. This is typically equivalent to\n      `navigator.userAgent`, but may be overridden for testing.\n       @since 1.5.1\n      @property userAgent\n      @default environment.history\n    */\n    userAgent: _emberEnvironment.environment.userAgent,\n\n    /**\n      @private\n       This property is used by the router to know whether to cancel the routing\n      setup process, which is needed while we redirect the browser.\n       @since 1.5.1\n      @property cancelRouterSetup\n      @default false\n    */\n    cancelRouterSetup: false,\n\n    /**\n      @private\n       Will be pre-pended to path upon state change.\n       @since 1.5.1\n      @property rootURL\n      @default '/'\n    */\n    rootURL: '/',\n\n    /**\n     Called by the router to instruct the location to do any feature detection\n     necessary. In the case of AutoLocation, we detect whether to use history\n     or hash concrete implementations.\n      @private\n    */\n    detect: function () {\n      var rootURL = this.rootURL;\n\n      _emberDebug.assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n\n      var implementation = detectImplementation({\n        location: this.location,\n        history: this.history,\n        userAgent: this.userAgent,\n        rootURL: rootURL,\n        documentMode: this.documentMode,\n        global: this.global\n      });\n\n      if (implementation === false) {\n        _emberMetal.set(this, 'cancelRouterSetup', true);\n        implementation = 'none';\n      }\n\n      var concrete = _emberUtils.getOwner(this).lookup('location:' + implementation);\n      _emberMetal.set(concrete, 'rootURL', rootURL);\n\n      _emberDebug.assert('Could not find location \\'' + implementation + '\\'.', !!concrete);\n\n      _emberMetal.set(this, 'concreteImplementation', concrete);\n    },\n\n    initState: delegateToConcreteImplementation('initState'),\n    getURL: delegateToConcreteImplementation('getURL'),\n    setURL: delegateToConcreteImplementation('setURL'),\n    replaceURL: delegateToConcreteImplementation('replaceURL'),\n    onUpdateURL: delegateToConcreteImplementation('onUpdateURL'),\n    formatURL: delegateToConcreteImplementation('formatURL'),\n\n    willDestroy: function () {\n      var concreteImplementation = _emberMetal.get(this, 'concreteImplementation');\n\n      if (concreteImplementation) {\n        concreteImplementation.destroy();\n      }\n    }\n  });\n\n  function delegateToConcreteImplementation(methodName) {\n    return function () {\n      var concreteImplementation = _emberMetal.get(this, 'concreteImplementation');\n      _emberDebug.assert('AutoLocation\\'s detect() method should be called before calling any other hooks.', !!concreteImplementation);\n\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      return _emberUtils.tryInvoke(concreteImplementation, methodName, args);\n    };\n  }\n\n  /*\n    Given the browser's `location`, `history` and `userAgent`, and a configured\n    root URL, this function detects whether the browser supports the [History\n    API](https://developer.mozilla.org/en-US/docs/Web/API/History) and returns a\n    string representing the Location object to use based on its determination.\n  \n    For example, if the page loads in an evergreen browser, this function would\n    return the string \"history\", meaning the history API and thus HistoryLocation\n    should be used. If the page is loaded in IE8, it will return the string\n    \"hash,\" indicating that the History API should be simulated by manipulating the\n    hash portion of the location.\n  \n  */\n\n  function detectImplementation(options) {\n    var location = options.location;\n    var userAgent = options.userAgent;\n    var history = options.history;\n    var documentMode = options.documentMode;\n    var global = options.global;\n    var rootURL = options.rootURL;\n\n    var implementation = 'none';\n    var cancelRouterSetup = false;\n    var currentPath = _emberRoutingLocationUtil.getFullPath(location);\n\n    if (_emberRoutingLocationUtil.supportsHistory(userAgent, history)) {\n      var historyPath = getHistoryPath(rootURL, location);\n\n      // If the browser supports history and we have a history path, we can use\n      // the history location with no redirects.\n      if (currentPath === historyPath) {\n        return 'history';\n      } else {\n        if (currentPath.substr(0, 2) === '/#') {\n          history.replaceState({ path: historyPath }, null, historyPath);\n          implementation = 'history';\n        } else {\n          cancelRouterSetup = true;\n          _emberRoutingLocationUtil.replacePath(location, historyPath);\n        }\n      }\n    } else if (_emberRoutingLocationUtil.supportsHashChange(documentMode, global)) {\n      var hashPath = getHashPath(rootURL, location);\n\n      // Be sure we're using a hashed path, otherwise let's switch over it to so\n      // we start off clean and consistent. We'll count an index path with no\n      // hash as \"good enough\" as well.\n      if (currentPath === hashPath || currentPath === '/' && hashPath === '/#/') {\n        implementation = 'hash';\n      } else {\n        // Our URL isn't in the expected hash-supported format, so we want to\n        // cancel the router setup and replace the URL to start off clean\n        cancelRouterSetup = true;\n        _emberRoutingLocationUtil.replacePath(location, hashPath);\n      }\n    }\n\n    if (cancelRouterSetup) {\n      return false;\n    }\n\n    return implementation;\n  }\n\n  /**\n    @private\n  \n    Returns the current path as it should appear for HistoryLocation supported\n    browsers. This may very well differ from the real current path (e.g. if it\n    starts off as a hashed URL)\n  */\n\n  function getHistoryPath(rootURL, location) {\n    var path = _emberRoutingLocationUtil.getPath(location);\n    var hash = _emberRoutingLocationUtil.getHash(location);\n    var query = _emberRoutingLocationUtil.getQuery(location);\n    var rootURLIndex = path.indexOf(rootURL);\n    var routeHash = undefined,\n        hashParts = undefined;\n\n    _emberDebug.assert('Path ' + path + ' does not start with the provided rootURL ' + rootURL, rootURLIndex === 0);\n\n    // By convention, Ember.js routes using HashLocation are required to start\n    // with `#/`. Anything else should NOT be considered a route and should\n    // be passed straight through, without transformation.\n    if (hash.substr(0, 2) === '#/') {\n      // There could be extra hash segments after the route\n      hashParts = hash.substr(1).split('#');\n      // The first one is always the route url\n      routeHash = hashParts.shift();\n\n      // If the path already has a trailing slash, remove the one\n      // from the hashed route so we don't double up.\n      if (path.charAt(path.length - 1) === '/') {\n        routeHash = routeHash.substr(1);\n      }\n\n      // This is the \"expected\" final order\n      path += routeHash + query;\n\n      if (hashParts.length) {\n        path += '#' + hashParts.join('#');\n      }\n    } else {\n      path += query + hash;\n    }\n\n    return path;\n  }\n\n  /**\n    @private\n  \n    Returns the current path as it should appear for HashLocation supported\n    browsers. This may very well differ from the real current path.\n  \n    @method _getHashPath\n  */\n\n  function getHashPath(rootURL, location) {\n    var path = rootURL;\n    var historyPath = getHistoryPath(rootURL, location);\n    var routePath = historyPath.substr(rootURL.length);\n\n    if (routePath !== '') {\n      if (routePath[0] !== '/') {\n        routePath = '/' + routePath;\n      }\n\n      path += '#' + routePath;\n    }\n\n    return path;\n  }\n});\nenifed('ember-routing/location/hash_location', ['exports', 'ember-metal', 'ember-runtime', 'ember-routing/location/api'], function (exports, _emberMetal, _emberRuntime, _emberRoutingLocationApi) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    `Ember.HashLocation` implements the location API using the browser's\n    hash. At present, it relies on a `hashchange` event existing in the\n    browser.\n  \n    @class HashLocation\n    @namespace Ember\n    @extends Ember.Object\n    @private\n  */\n  exports.default = _emberRuntime.Object.extend({\n    implementation: 'hash',\n\n    init: function () {\n      _emberMetal.set(this, 'location', _emberMetal.get(this, '_location') || window.location);\n\n      this._hashchangeHandler = undefined;\n    },\n\n    /**\n      @private\n       Returns normalized location.hash\n       @since 1.5.1\n      @method getHash\n    */\n    getHash: _emberRoutingLocationApi.default._getHash,\n\n    /**\n      Returns the normalized URL, constructed from `location.hash`.\n       e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`.\n       By convention, hashed paths must begin with a forward slash, otherwise they\n      are not treated as a path so we can distinguish intent.\n       @private\n      @method getURL\n    */\n    getURL: function () {\n      var originalPath = this.getHash().substr(1);\n      var outPath = originalPath;\n\n      if (outPath[0] !== '/') {\n        outPath = '/';\n\n        // Only add the # if the path isn't empty.\n        // We do NOT want `/#` since the ampersand\n        // is only included (conventionally) when\n        // the location.hash has a value\n        if (originalPath) {\n          outPath += '#' + originalPath;\n        }\n      }\n\n      return outPath;\n    },\n\n    /**\n      Set the `location.hash` and remembers what was set. This prevents\n      `onUpdateURL` callbacks from triggering when the hash was set by\n      `HashLocation`.\n       @private\n      @method setURL\n      @param path {String}\n    */\n    setURL: function (path) {\n      _emberMetal.get(this, 'location').hash = path;\n      _emberMetal.set(this, 'lastSetURL', path);\n    },\n\n    /**\n      Uses location.replace to update the url without a page reload\n      or history modification.\n       @private\n      @method replaceURL\n      @param path {String}\n    */\n    replaceURL: function (path) {\n      _emberMetal.get(this, 'location').replace('#' + path);\n      _emberMetal.set(this, 'lastSetURL', path);\n    },\n\n    /**\n      Register a callback to be invoked when the hash changes. These\n      callbacks will execute when the user presses the back or forward\n      button, but not after `setURL` is invoked.\n       @private\n      @method onUpdateURL\n      @param callback {Function}\n    */\n    onUpdateURL: function (callback) {\n      var _this = this;\n\n      this._removeEventListener();\n\n      this._hashchangeHandler = function () {\n        _emberMetal.run(function () {\n          var path = _this.getURL();\n          if (_emberMetal.get(_this, 'lastSetURL') === path) {\n            return;\n          }\n\n          _emberMetal.set(_this, 'lastSetURL', null);\n\n          callback(path);\n        });\n      };\n\n      window.addEventListener('hashchange', this._hashchangeHandler);\n    },\n\n    /**\n      Given a URL, formats it to be placed into the page as part\n      of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n      to generate a URL based on an event.\n       @private\n      @method formatURL\n      @param url {String}\n    */\n    formatURL: function (url) {\n      return '#' + url;\n    },\n\n    /**\n      Cleans up the HashLocation event listener.\n       @private\n      @method willDestroy\n    */\n    willDestroy: function () {\n      this._removeEventListener();\n    },\n\n    _removeEventListener: function () {\n      if (this._hashchangeHandler) {\n        window.removeEventListener('hashchange', this._hashchangeHandler);\n      }\n    }\n  });\n});\nenifed('ember-routing/location/history_location', ['exports', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-routing/location/api'], function (exports, _emberMetal, _emberDebug, _emberRuntime, _emberRoutingLocationApi) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  var popstateFired = false;\n\n  var _uuid = undefined;\n\n  if (true) {\n    _uuid = function _uuid() {\n      return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n        var r, v;\n        r = Math.random() * 16 | 0;\n        v = c === 'x' ? r : r & 3 | 8;\n        return v.toString(16);\n      });\n    };\n  }\n\n  /**\n    Ember.HistoryLocation implements the location API using the browser's\n    history.pushState API.\n  \n    @class HistoryLocation\n    @namespace Ember\n    @extends Ember.Object\n    @private\n  */\n  exports.default = _emberRuntime.Object.extend({\n    implementation: 'history',\n\n    init: function () {\n      this._super.apply(this, arguments);\n\n      var base = document.querySelector('base');\n      var baseURL = '';\n      if (base) {\n        baseURL = base.getAttribute('href');\n      }\n\n      _emberMetal.set(this, 'baseURL', baseURL);\n      _emberMetal.set(this, 'location', _emberMetal.get(this, 'location') || window.location);\n\n      this._popstateHandler = undefined;\n    },\n\n    /**\n      Used to set state on first call to setURL\n       @private\n      @method initState\n    */\n    initState: function () {\n      var history = _emberMetal.get(this, 'history') || window.history;\n      _emberMetal.set(this, 'history', history);\n\n      if (history && 'state' in history) {\n        this.supportsHistory = true;\n      }\n\n      this.replaceState(this.formatURL(this.getURL()));\n    },\n\n    /**\n      Will be pre-pended to path upon state change\n       @property rootURL\n      @default '/'\n      @private\n    */\n    rootURL: '/',\n\n    /**\n      Returns the current `location.pathname` without `rootURL` or `baseURL`\n       @private\n      @method getURL\n      @return url {String}\n    */\n    getURL: function () {\n      var location = _emberMetal.get(this, 'location');\n      var path = location.pathname;\n\n      var rootURL = _emberMetal.get(this, 'rootURL');\n      var baseURL = _emberMetal.get(this, 'baseURL');\n\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n      baseURL = baseURL.replace(/\\/$/, '');\n\n      // remove baseURL and rootURL from start of path\n      var url = path.replace(new RegExp('^' + baseURL + '(?=/|$)'), '').replace(new RegExp('^' + rootURL + '(?=/|$)'), '').replace(/\\/\\/$/g, '/'); // remove extra slashes\n\n      var search = location.search || '';\n      url += search + this.getHash();\n\n      return url;\n    },\n\n    /**\n      Uses `history.pushState` to update the url without a page reload.\n       @private\n      @method setURL\n      @param path {String}\n    */\n    setURL: function (path) {\n      var state = this.getState();\n      path = this.formatURL(path);\n\n      if (!state || state.path !== path) {\n        this.pushState(path);\n      }\n    },\n\n    /**\n      Uses `history.replaceState` to update the url without a page reload\n      or history modification.\n       @private\n      @method replaceURL\n      @param path {String}\n    */\n    replaceURL: function (path) {\n      var state = this.getState();\n      path = this.formatURL(path);\n\n      if (!state || state.path !== path) {\n        this.replaceState(path);\n      }\n    },\n\n    /**\n      Get the current `history.state`. Checks for if a polyfill is\n      required and if so fetches this._historyState. The state returned\n      from getState may be null if an iframe has changed a window's\n      history.\n       The object returned will contain a `path` for the given state as well\n      as a unique state `id`. The state index will allow the app to distinguish\n      between two states with similar paths but should be unique from one another.\n       @private\n      @method getState\n      @return state {Object}\n    */\n    getState: function () {\n      if (this.supportsHistory) {\n        return _emberMetal.get(this, 'history').state;\n      }\n\n      return this._historyState;\n    },\n\n    /**\n     Pushes a new state.\n      @private\n     @method pushState\n     @param path {String}\n    */\n    pushState: function (path) {\n      var state = { path: path };\n      if (true) {\n        state.uuid = _uuid();\n      }\n\n      _emberMetal.get(this, 'history').pushState(state, null, path);\n\n      this._historyState = state;\n\n      // used for webkit workaround\n      this._previousURL = this.getURL();\n    },\n\n    /**\n     Replaces the current state.\n      @private\n     @method replaceState\n     @param path {String}\n    */\n    replaceState: function (path) {\n      var state = { path: path };\n      if (true) {\n        state.uuid = _uuid();\n      }\n\n      _emberMetal.get(this, 'history').replaceState(state, null, path);\n\n      this._historyState = state;\n\n      // used for webkit workaround\n      this._previousURL = this.getURL();\n    },\n\n    /**\n      Register a callback to be invoked whenever the browser\n      history changes, including using forward and back buttons.\n       @private\n      @method onUpdateURL\n      @param callback {Function}\n    */\n    onUpdateURL: function (callback) {\n      var _this = this;\n\n      this._removeEventListener();\n\n      this._popstateHandler = function () {\n        // Ignore initial page load popstate event in Chrome\n        if (!popstateFired) {\n          popstateFired = true;\n          if (_this.getURL() === _this._previousURL) {\n            return;\n          }\n        }\n        callback(_this.getURL());\n      };\n\n      window.addEventListener('popstate', this._popstateHandler);\n    },\n\n    /**\n      Used when using `{{action}}` helper.  The url is always appended to the rootURL.\n       @private\n      @method formatURL\n      @param url {String}\n      @return formatted url {String}\n    */\n    formatURL: function (url) {\n      var rootURL = _emberMetal.get(this, 'rootURL');\n      var baseURL = _emberMetal.get(this, 'baseURL');\n\n      if (url !== '') {\n        // remove trailing slashes if they exists\n        rootURL = rootURL.replace(/\\/$/, '');\n        baseURL = baseURL.replace(/\\/$/, '');\n      } else if (baseURL[0] === '/' && rootURL[0] === '/') {\n        // if baseURL and rootURL both start with a slash\n        // ... remove trailing slash from baseURL if it exists\n        baseURL = baseURL.replace(/\\/$/, '');\n      }\n\n      return baseURL + rootURL + url;\n    },\n\n    /**\n      Cleans up the HistoryLocation event listener.\n       @private\n      @method willDestroy\n    */\n    willDestroy: function () {\n      this._removeEventListener();\n    },\n\n    /**\n      @private\n       Returns normalized location.hash\n       @method getHash\n    */\n    getHash: _emberRoutingLocationApi.default._getHash,\n\n    _removeEventListener: function () {\n      if (this._popstateHandler) {\n        window.removeEventListener('popstate', this._popstateHandler);\n      }\n    }\n  });\n});\nenifed('ember-routing/location/none_location', ['exports', 'ember-metal', 'ember-debug', 'ember-runtime'], function (exports, _emberMetal, _emberDebug, _emberRuntime) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    Ember.NoneLocation does not interact with the browser. It is useful for\n    testing, or when you need to manage state with your Router, but temporarily\n    don't want it to muck with the URL (for example when you embed your\n    application in a larger page).\n  \n    @class NoneLocation\n    @namespace Ember\n    @extends Ember.Object\n    @private\n  */\n  exports.default = _emberRuntime.Object.extend({\n    implementation: 'none',\n    path: '',\n\n    detect: function () {\n      var rootURL = this.rootURL;\n\n      _emberDebug.assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n    },\n\n    /**\n      Will be pre-pended to path.\n       @private\n      @property rootURL\n      @default '/'\n    */\n    rootURL: '/',\n\n    /**\n      Returns the current path without `rootURL`.\n       @private\n      @method getURL\n      @return {String} path\n    */\n    getURL: function () {\n      var path = _emberMetal.get(this, 'path');\n      var rootURL = _emberMetal.get(this, 'rootURL');\n\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n\n      // remove rootURL from url\n      return path.replace(new RegExp('^' + rootURL + '(?=/|$)'), '');\n    },\n\n    /**\n      Set the path and remembers what was set. Using this method\n      to change the path will not invoke the `updateURL` callback.\n       @private\n      @method setURL\n      @param path {String}\n    */\n    setURL: function (path) {\n      _emberMetal.set(this, 'path', path);\n    },\n\n    /**\n      Register a callback to be invoked when the path changes. These\n      callbacks will execute when the user presses the back or forward\n      button, but not after `setURL` is invoked.\n       @private\n      @method onUpdateURL\n      @param callback {Function}\n    */\n    onUpdateURL: function (callback) {\n      this.updateCallback = callback;\n    },\n\n    /**\n      Sets the path and calls the `updateURL` callback.\n       @private\n      @method handleURL\n      @param callback {Function}\n    */\n    handleURL: function (url) {\n      _emberMetal.set(this, 'path', url);\n      this.updateCallback(url);\n    },\n\n    /**\n      Given a URL, formats it to be placed into the page as part\n      of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n      to generate a URL based on an event.\n       @private\n      @method formatURL\n      @param url {String}\n      @return {String} url\n    */\n    formatURL: function (url) {\n      var rootURL = _emberMetal.get(this, 'rootURL');\n\n      if (url !== '') {\n        // remove trailing slashes if they exists\n        rootURL = rootURL.replace(/\\/$/, '');\n      }\n\n      return rootURL + url;\n    }\n  });\n});\nenifed('ember-routing/location/util', ['exports'], function (exports) {\n  /**\n    @private\n  \n    Returns the current `location.pathname`, normalized for IE inconsistencies.\n  */\n  'use strict';\n\n  exports.getPath = getPath;\n  exports.getQuery = getQuery;\n  exports.getHash = getHash;\n  exports.getFullPath = getFullPath;\n  exports.getOrigin = getOrigin;\n  exports.supportsHashChange = supportsHashChange;\n  exports.supportsHistory = supportsHistory;\n  exports.replacePath = replacePath;\n\n  function getPath(location) {\n    var pathname = location.pathname;\n    // Various versions of IE/Opera don't always return a leading slash\n    if (pathname[0] !== '/') {\n      pathname = '/' + pathname;\n    }\n\n    return pathname;\n  }\n\n  /**\n    @private\n  \n    Returns the current `location.search`.\n  */\n\n  function getQuery(location) {\n    return location.search;\n  }\n\n  /**\n    @private\n  \n    Returns the current `location.hash` by parsing location.href since browsers\n    inconsistently URL-decode `location.hash`.\n  \n    Should be passed the browser's `location` object as the first argument.\n  \n    https://bugzilla.mozilla.org/show_bug.cgi?id=483304\n  */\n\n  function getHash(location) {\n    var href = location.href;\n    var hashIndex = href.indexOf('#');\n\n    if (hashIndex === -1) {\n      return '';\n    } else {\n      return href.substr(hashIndex);\n    }\n  }\n\n  function getFullPath(location) {\n    return getPath(location) + getQuery(location) + getHash(location);\n  }\n\n  function getOrigin(location) {\n    var origin = location.origin;\n\n    // Older browsers, especially IE, don't have origin\n    if (!origin) {\n      origin = location.protocol + '//' + location.hostname;\n\n      if (location.port) {\n        origin += ':' + location.port;\n      }\n    }\n\n    return origin;\n  }\n\n  /*\n    `documentMode` only exist in Internet Explorer, and it's tested because IE8 running in\n    IE7 compatibility mode claims to support `onhashchange` but actually does not.\n  \n    `global` is an object that may have an `onhashchange` property.\n  \n    @private\n    @function supportsHashChange\n  */\n\n  function supportsHashChange(documentMode, global) {\n    return 'onhashchange' in global && (documentMode === undefined || documentMode > 7);\n  }\n\n  /*\n    `userAgent` is a user agent string. We use user agent testing here, because\n    the stock Android browser is known to have buggy versions of the History API,\n    in some Android versions.\n  \n    @private\n    @function supportsHistory\n  */\n\n  function supportsHistory(userAgent, history) {\n    // Boosted from Modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n    // The stock browser on Android 2.2 & 2.3, and 4.0.x returns positive on history support\n    // Unfortunately support is really buggy and there is no clean way to detect\n    // these bugs, so we fall back to a user agent sniff :(\n\n    // We only want Android 2 and 4.0, stock browser, and not Chrome which identifies\n    // itself as 'Mobile Safari' as well, nor Windows Phone.\n    if ((userAgent.indexOf('Android 2.') !== -1 || userAgent.indexOf('Android 4.0') !== -1) && userAgent.indexOf('Mobile Safari') !== -1 && userAgent.indexOf('Chrome') === -1 && userAgent.indexOf('Windows Phone') === -1) {\n      return false;\n    }\n\n    return !!(history && 'pushState' in history);\n  }\n\n  /**\n    Replaces the current location, making sure we explicitly include the origin\n    to prevent redirecting to a different origin.\n  \n    @private\n  */\n\n  function replacePath(location, path) {\n    location.replace(getOrigin(location) + path);\n  }\n});\nenifed('ember-routing/services/router', ['exports', 'ember-runtime', 'ember-metal', 'ember-routing/system/dsl'], function (exports, _emberRuntime, _emberMetal, _emberRoutingSystemDsl) {\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  'use strict';\n\n  /**\n     The Router service is the public API that provides component/view layer\n     access to the router.\n  \n     @public\n     @class RouterService\n     @category ember-routing-router-service\n   */\n  var RouterService = _emberRuntime.Service.extend({\n    currentRouteName: _emberRuntime.readOnly('router.currentRouteName'),\n    currentURL: _emberRuntime.readOnly('router.currentURL'),\n    location: _emberRuntime.readOnly('router.location'),\n    rootURL: _emberRuntime.readOnly('router.rootURL'),\n\n    /**\n       Transition the application into another route. The route may\n       be either a single route or route path:\n        See [Route.transitionTo](http://emberjs.com/api/classes/Ember.Route.html#method_transitionTo) for more info.\n        @method transitionTo\n       @category ember-routing-router-service\n       @param {String} routeNameOrUrl the name of the route or a URL\n       @param {...Object} models the model(s) or identifier(s) to be used while\n         transitioning to the route.\n       @param {Object} [options] optional hash with a queryParams property\n         containing a mapping of query parameters\n       @return {Transition} the transition object associated with this\n         attempted transition\n       @public\n     */\n    transitionTo: function () /* routeNameOrUrl, ...models, options */{\n      var _router;\n\n      return (_router = this.router).transitionTo.apply(_router, arguments);\n    },\n\n    /**\n       Transition into another route while replacing the current URL, if possible.\n       The route may be either a single route or route path:\n        See [Route.replaceWith](http://emberjs.com/api/classes/Ember.Route.html#method_replaceWith) for more info.\n        @method replaceWith\n       @category ember-routing-router-service\n       @param {String} routeNameOrUrl the name of the route or a URL\n       @param {...Object} models the model(s) or identifier(s) to be used while\n         transitioning to the route.\n       @param {Object} [options] optional hash with a queryParams property\n         containing a mapping of query parameters\n       @return {Transition} the transition object associated with this\n         attempted transition\n       @public\n     */\n    replaceWith: function () /* routeNameOrUrl, ...models, options */{\n      var _router2;\n\n      return (_router2 = this.router).replaceWith.apply(_router2, arguments);\n    },\n\n    /**\n       Generate a URL based on the supplied route name.\n        @method urlFor\n       @param {String} routeName the name of the route\n       @param {...Object} models the model(s) or identifier(s) to be used while\n         transitioning to the route.\n       @param {Object} [options] optional hash with a queryParams property\n         containing a mapping of query parameters\n       @return {String} the string representing the generated URL\n       @public\n     */\n    urlFor: function () /* routeName, ...models, options */{\n      var _router3;\n\n      return (_router3 = this.router).generate.apply(_router3, arguments);\n    }\n  });\n\n  exports.default = RouterService;\n});\nenifed('ember-routing/services/routing', ['exports', 'ember-utils', 'ember-runtime', 'ember-metal', 'ember-routing/utils'], function (exports, _emberUtils, _emberRuntime, _emberMetal, _emberRoutingUtils) {\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  'use strict';\n\n  /**\n    The Routing service is used by LinkComponent, and provides facilities for\n    the component/view layer to interact with the router.\n  \n    While still private, this service can eventually be opened up, and provides\n    the set of API needed for components to control routing without interacting\n    with router internals.\n  \n    @private\n    @class RoutingService\n  */\n  exports.default = _emberRuntime.Service.extend({\n    router: null,\n\n    targetState: _emberRuntime.readOnly('router.targetState'),\n    currentState: _emberRuntime.readOnly('router.currentState'),\n    currentRouteName: _emberRuntime.readOnly('router.currentRouteName'),\n    currentPath: _emberRuntime.readOnly('router.currentPath'),\n\n    availableRoutes: function () {\n      return Object.keys(_emberMetal.get(this, 'router').router.recognizer.names);\n    },\n\n    hasRoute: function (routeName) {\n      return _emberMetal.get(this, 'router').hasRoute(routeName);\n    },\n\n    transitionTo: function (routeName, models, queryParams, shouldReplace) {\n      var router = _emberMetal.get(this, 'router');\n\n      var transition = router._doTransition(routeName, models, queryParams);\n\n      if (shouldReplace) {\n        transition.method('replace');\n      }\n\n      return transition;\n    },\n\n    normalizeQueryParams: function (routeName, models, queryParams) {\n      var router = _emberMetal.get(this, 'router');\n      router._prepareQueryParams(routeName, models, queryParams);\n    },\n\n    generateURL: function (routeName, models, queryParams) {\n      var router = _emberMetal.get(this, 'router');\n      if (!router._routerMicrolib) {\n        return;\n      }\n\n      var visibleQueryParams = {};\n      _emberUtils.assign(visibleQueryParams, queryParams);\n\n      this.normalizeQueryParams(routeName, models, visibleQueryParams);\n\n      var args = _emberRoutingUtils.routeArgs(routeName, models, visibleQueryParams);\n      return router.generate.apply(router, args);\n    },\n\n    isActiveForRoute: function (contexts, queryParams, routeName, routerState, isCurrentWhenSpecified) {\n      var router = _emberMetal.get(this, 'router');\n\n      var handlers = router._routerMicrolib.recognizer.handlersFor(routeName);\n      var leafName = handlers[handlers.length - 1].handler;\n      var maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers);\n\n      // NOTE: any ugliness in the calculation of activeness is largely\n      // due to the fact that we support automatic normalizing of\n      // `resource` -> `resource.index`, even though there might be\n      // dynamic segments / query params defined on `resource.index`\n      // which complicates (and makes somewhat ambiguous) the calculation\n      // of activeness for links that link to `resource` instead of\n      // directly to `resource.index`.\n\n      // if we don't have enough contexts revert back to full route name\n      // this is because the leaf route will use one of the contexts\n      if (contexts.length > maximumContexts) {\n        routeName = leafName;\n      }\n\n      return routerState.isActiveIntent(routeName, contexts, queryParams, !isCurrentWhenSpecified);\n    }\n  });\n\n  function numberOfContextsAcceptedByHandler(handler, handlerInfos) {\n    var req = 0;\n    for (var i = 0; i < handlerInfos.length; i++) {\n      req += handlerInfos[i].names.length;\n      if (handlerInfos[i].handler === handler) {\n        break;\n      }\n    }\n\n    return req;\n  }\n});\nenifed('ember-routing/system/cache', ['exports', 'ember-runtime'], function (exports, _emberRuntime) {\n  'use strict';\n\n  /**\n    A two-tiered cache with support for fallback values when doing lookups.\n    Uses \"buckets\" and then \"keys\" to cache values.\n  \n    @private\n    @class BucketCache\n  */\n  exports.default = _emberRuntime.Object.extend({\n    init: function () {\n      this.cache = Object.create(null);\n    },\n\n    has: function (bucketKey) {\n      return !!this.cache[bucketKey];\n    },\n\n    stash: function (bucketKey, key, value) {\n      var bucket = this.cache[bucketKey];\n\n      if (!bucket) {\n        bucket = this.cache[bucketKey] = Object.create(null);\n      }\n\n      bucket[key] = value;\n    },\n\n    lookup: function (bucketKey, prop, defaultValue) {\n      var cache = this.cache;\n      if (!this.has(bucketKey)) {\n        return defaultValue;\n      }\n\n      var bucket = cache[bucketKey];\n      if (prop in bucket && bucket[prop] !== undefined) {\n        return bucket[prop];\n      } else {\n        return defaultValue;\n      }\n    }\n  });\n});\nenifed(\"ember-routing/system/controller_for\", [\"exports\"], function (exports) {\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    Finds a controller instance.\n  \n    @for Ember\n    @method controllerFor\n    @private\n  */\n  \"use strict\";\n\n  exports.default = controllerFor;\n\n  function controllerFor(container, controllerName, lookupOptions) {\n    return container.lookup(\"controller:\" + controllerName, lookupOptions);\n  }\n});\nenifed('ember-routing/system/dsl', ['exports', 'ember-utils', 'ember-debug'], function (exports, _emberUtils, _emberDebug) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  var uuid = 0;\n\n  var DSL = (function () {\n    function DSL(name, options) {\n      babelHelpers.classCallCheck(this, DSL);\n\n      this.parent = name;\n      this.enableLoadingSubstates = options && options.enableLoadingSubstates;\n      this.matches = [];\n      this.explicitIndex = undefined;\n      this.options = options;\n    }\n\n    DSL.prototype.route = function route(name, options, callback) {\n      if (options === undefined) options = {};\n\n      var dummyErrorRoute = '/_unused_dummy_error_path_route_' + name + '/:error';\n      if (arguments.length === 2 && typeof options === 'function') {\n        callback = options;\n        options = {};\n      }\n\n      _emberDebug.assert('\\'' + name + '\\' cannot be used as a route name.', (function () {\n        if (options.overrideNameAssertion === true) {\n          return true;\n        }\n\n        return ['array', 'basic', 'object', 'application'].indexOf(name) === -1;\n      })());\n\n      if (this.enableLoadingSubstates) {\n        createRoute(this, name + '_loading', { resetNamespace: options.resetNamespace });\n        createRoute(this, name + '_error', { resetNamespace: options.resetNamespace, path: dummyErrorRoute });\n      }\n\n      if (callback) {\n        var fullName = getFullName(this, name, options.resetNamespace);\n        var dsl = new DSL(fullName, this.options);\n\n        createRoute(dsl, 'loading');\n        createRoute(dsl, 'error', { path: dummyErrorRoute });\n\n        callback.call(dsl);\n\n        createRoute(this, name, options, dsl.generate());\n      } else {\n        createRoute(this, name, options);\n      }\n    };\n\n    DSL.prototype.push = function push(url, name, callback, serialize) {\n      var parts = name.split('.');\n\n      if (this.options.engineInfo) {\n        var localFullName = name.slice(this.options.engineInfo.fullName.length + 1);\n        var routeInfo = _emberUtils.assign({ localFullName: localFullName }, this.options.engineInfo);\n\n        if (serialize) {\n          routeInfo.serializeMethod = serialize;\n        }\n\n        this.options.addRouteForEngine(name, routeInfo);\n      } else if (serialize) {\n        throw new Error('Defining a route serializer on route \\'' + name + '\\' outside an Engine is not allowed.');\n      }\n\n      if (url === '' || url === '/' || parts[parts.length - 1] === 'index') {\n        this.explicitIndex = true;\n      }\n\n      this.matches.push([url, name, callback]);\n    };\n\n    DSL.prototype.resource = function resource(name, options, callback) {\n      if (options === undefined) options = {};\n\n      if (arguments.length === 2 && typeof options === 'function') {\n        callback = options;\n        options = {};\n      }\n\n      options.resetNamespace = true;\n      _emberDebug.deprecate('this.resource() is deprecated. Use this.route(\\'name\\', { resetNamespace: true }, function () {}) instead.', false, { id: 'ember-routing.router-resource', until: '3.0.0' });\n      this.route(name, options, callback);\n    };\n\n    DSL.prototype.generate = function generate() {\n      var dslMatches = this.matches;\n\n      if (!this.explicitIndex) {\n        this.route('index', { path: '/' });\n      }\n\n      return function (match) {\n        for (var i = 0; i < dslMatches.length; i++) {\n          var dslMatch = dslMatches[i];\n          match(dslMatch[0]).to(dslMatch[1], dslMatch[2]);\n        }\n      };\n    };\n\n    DSL.prototype.mount = function mount(_name) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      var engineRouteMap = this.options.resolveRouteMap(_name);\n      var name = _name;\n\n      if (options.as) {\n        name = options.as;\n      }\n\n      var fullName = getFullName(this, name, options.resetNamespace);\n\n      var engineInfo = {\n        name: _name,\n        instanceId: uuid++,\n        mountPoint: fullName,\n        fullName: fullName\n      };\n\n      var path = options.path;\n\n      if (typeof path !== 'string') {\n        path = '/' + name;\n      }\n\n      var callback = undefined;\n      var dummyErrorRoute = '/_unused_dummy_error_path_route_' + name + '/:error';\n      if (engineRouteMap) {\n        var shouldResetEngineInfo = false;\n        var oldEngineInfo = this.options.engineInfo;\n        if (oldEngineInfo) {\n          shouldResetEngineInfo = true;\n          this.options.engineInfo = engineInfo;\n        }\n\n        var optionsForChild = _emberUtils.assign({ engineInfo: engineInfo }, this.options);\n        var childDSL = new DSL(fullName, optionsForChild);\n\n        createRoute(childDSL, 'loading');\n        createRoute(childDSL, 'error', { path: dummyErrorRoute });\n\n        engineRouteMap.class.call(childDSL);\n\n        callback = childDSL.generate();\n\n        if (shouldResetEngineInfo) {\n          this.options.engineInfo = oldEngineInfo;\n        }\n      }\n\n      var localFullName = 'application';\n      var routeInfo = _emberUtils.assign({ localFullName: localFullName }, engineInfo);\n\n      if (this.enableLoadingSubstates) {\n        // These values are important to register the loading routes under their\n        // proper names for the Router and within the Engine's registry.\n        var substateName = name + '_loading';\n        var _localFullName = 'application_loading';\n        var _routeInfo = _emberUtils.assign({ localFullName: _localFullName }, engineInfo);\n        createRoute(this, substateName, { resetNamespace: options.resetNamespace });\n        this.options.addRouteForEngine(substateName, _routeInfo);\n\n        substateName = name + '_error';\n        _localFullName = 'application_error';\n        _routeInfo = _emberUtils.assign({ localFullName: _localFullName }, engineInfo);\n        createRoute(this, substateName, { resetNamespace: options.resetNamespace, path: dummyErrorRoute });\n        this.options.addRouteForEngine(substateName, _routeInfo);\n      }\n\n      this.options.addRouteForEngine(fullName, routeInfo);\n\n      this.push(path, fullName, callback);\n    };\n\n    return DSL;\n  })();\n\n  exports.default = DSL;\n\n  function canNest(dsl) {\n    return dsl.parent && dsl.parent !== 'application';\n  }\n\n  function getFullName(dsl, name, resetNamespace) {\n    if (canNest(dsl) && resetNamespace !== true) {\n      return dsl.parent + '.' + name;\n    } else {\n      return name;\n    }\n  }\n\n  function createRoute(dsl, name, options, callback) {\n    if (options === undefined) options = {};\n\n    var fullName = getFullName(dsl, name, options.resetNamespace);\n\n    if (typeof options.path !== 'string') {\n      options.path = '/' + name;\n    }\n\n    dsl.push(options.path, fullName, callback, options.serialize);\n  }\n\n  DSL.map = function (callback) {\n    var dsl = new DSL();\n    callback.call(dsl);\n    return dsl;\n  };\n});\nenifed('ember-routing/system/generate_controller', ['exports', 'ember-metal', 'container', 'ember-debug'], function (exports, _emberMetal, _container, _emberDebug) {\n  'use strict';\n\n  exports.generateControllerFactory = generateControllerFactory;\n  exports.default = generateController;\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    Generates a controller factory\n  \n    @for Ember\n    @method generateControllerFactory\n    @private\n  */\n\n  function generateControllerFactory(owner, controllerName, context) {\n    var Factory = owner[_container.FACTORY_FOR]('controller:basic').class;\n\n    Factory = Factory.extend({\n      toString: function () {\n        return '(generated ' + controllerName + ' controller)';\n      }\n    });\n\n    var fullName = 'controller:' + controllerName;\n\n    owner.register(fullName, Factory);\n\n    return Factory;\n  }\n\n  /**\n    Generates and instantiates a controller extending from `controller:basic`\n    if present, or `Ember.Controller` if not.\n  \n    @for Ember\n    @method generateController\n    @private\n    @since 1.3.0\n  */\n\n  function generateController(owner, controllerName) {\n    generateControllerFactory(owner, controllerName);\n\n    var fullName = 'controller:' + controllerName;\n    var instance = owner.lookup(fullName);\n\n    _emberDebug.runInDebug(function () {\n      if (_emberMetal.get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {\n        _emberDebug.info('generated -> ' + fullName, { fullName: fullName });\n      }\n    });\n\n    return instance;\n  }\n});\nenifed('ember-routing/system/query_params', ['exports', 'ember-runtime'], function (exports, _emberRuntime) {\n  'use strict';\n\n  exports.default = _emberRuntime.Object.extend({\n    isQueryParams: true,\n    values: null\n  });\n});\nenifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-routing/system/generate_controller', 'ember-routing/utils', 'container'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberRuntime, _emberRoutingSystemGenerate_controller, _emberRoutingUtils, _container) {\n  'use strict';\n\n  exports.defaultSerialize = defaultSerialize;\n  exports.hasDefaultSerialize = hasDefaultSerialize;\n  var slice = Array.prototype.slice;\n\n  function K() {\n    return this;\n  }\n\n  function defaultSerialize(model, params) {\n    if (params.length < 1 || !model) {\n      return;\n    }\n\n    var name = params[0];\n    var object = {};\n\n    if (params.length === 1) {\n      if (name in model) {\n        object[name] = _emberMetal.get(model, name);\n      } else if (/_id$/.test(name)) {\n        object[name] = _emberMetal.get(model, 'id');\n      }\n    } else {\n      object = _emberMetal.getProperties(model, params);\n    }\n\n    return object;\n  }\n\n  var DEFAULT_SERIALIZE = _emberUtils.symbol('DEFAULT_SERIALIZE');\n\n  defaultSerialize[DEFAULT_SERIALIZE] = true;\n\n  function hasDefaultSerialize(route) {\n    return !!route.serialize[DEFAULT_SERIALIZE];\n  }\n\n  /**\n  @module ember\n  @submodule ember-routing\n  */\n\n  /**\n    The `Ember.Route` class is used to define individual routes. Refer to\n    the [routing guide](http://emberjs.com/guides/routing/) for documentation.\n  \n    @class Route\n    @namespace Ember\n    @extends Ember.Object\n    @uses Ember.ActionHandler\n    @uses Ember.Evented\n    @since 1.0.0\n    @public\n  */\n  var Route = _emberRuntime.Object.extend(_emberRuntime.ActionHandler, _emberRuntime.Evented, {\n    /**\n      Configuration hash for this route's queryParams. The possible\n      configuration options and their defaults are as follows\n      (assuming a query param whose controller property is `page`):\n       ```javascript\n      queryParams: {\n        page: {\n          // By default, controller query param properties don't\n          // cause a full transition when they are changed, but\n          // rather only cause the URL to update. Setting\n          // `refreshModel` to true will cause an \"in-place\"\n          // transition to occur, whereby the model hooks for\n          // this route (and any child routes) will re-fire, allowing\n          // you to reload models (e.g., from the server) using the\n          // updated query param values.\n          refreshModel: false,\n           // By default, changes to controller query param properties\n          // cause the URL to update via `pushState`, which means an\n          // item will be added to the browser's history, allowing\n          // you to use the back button to restore the app to the\n          // previous state before the query param property was changed.\n          // Setting `replace` to true will use `replaceState` (or its\n          // hash location equivalent), which causes no browser history\n          // item to be added. This options name and default value are\n          // the same as the `link-to` helper's `replace` option.\n          replace: false,\n           // By default, the query param URL key is the same name as\n          // the controller property name. Use `as` to specify a\n          // different URL key.\n          as: 'page'\n        }\n      }\n      ```\n       @property queryParams\n      @for Ember.Route\n      @type Object\n      @since 1.6.0\n      @public\n    */\n    queryParams: {},\n\n    /**\n      The name of the route, dot-delimited.\n       For example, a route found at `app/routes/posts/post.js` will have\n      a `routeName` of `posts.post`.\n       @property routeName\n      @for Ember.Route\n      @type String\n      @since 1.0.0\n      @public\n    */\n\n    /**\n      Sets the name for this route, including a fully resolved name for routes\n      inside engines.\n       @private\n      @method _setRouteName\n      @param {String} name\n    */\n    _setRouteName: function (name) {\n      this.routeName = name;\n      this.fullRouteName = getEngineRouteName(_emberUtils.getOwner(this), name);\n    },\n\n    /**\n      @private\n       @property _qp\n    */\n    _qp: _emberMetal.computed(function () {\n      var _this = this;\n\n      var controllerProto = undefined,\n          combinedQueryParameterConfiguration = undefined;\n\n      var controllerName = this.controllerName || this.routeName;\n      var owner = _emberUtils.getOwner(this);\n      var definedControllerClass = owner[_container.LOOKUP_FACTORY]('controller:' + controllerName);\n      var queryParameterConfiguraton = _emberMetal.get(this, 'queryParams');\n      var hasRouterDefinedQueryParams = !!Object.keys(queryParameterConfiguraton).length;\n\n      if (definedControllerClass) {\n        // the developer has authored a controller class in their application for this route\n        // access the prototype, find its query params and normalize their object shape\n        // them merge in the query params for the route. As a mergedProperty, Route#queryParams is always\n        // at least `{}`\n        controllerProto = definedControllerClass.proto();\n\n        var controllerDefinedQueryParameterConfiguration = _emberMetal.get(controllerProto, 'queryParams');\n        var normalizedControllerQueryParameterConfiguration = _emberRoutingUtils.normalizeControllerQueryParams(controllerDefinedQueryParameterConfiguration);\n        combinedQueryParameterConfiguration = mergeEachQueryParams(normalizedControllerQueryParameterConfiguration, queryParameterConfiguraton);\n      } else if (hasRouterDefinedQueryParams) {\n        // the developer has not defined a controller but *has* supplied route query params.\n        // Generate a class for them so we can later insert default values\n        var generatedControllerClass = _emberRoutingSystemGenerate_controller.generateControllerFactory(_emberUtils.getOwner(this), controllerName);\n        controllerProto = generatedControllerClass.proto();\n        combinedQueryParameterConfiguration = queryParameterConfiguraton;\n      }\n\n      var qps = [];\n      var map = {};\n      var propertyNames = [];\n\n      for (var propName in combinedQueryParameterConfiguration) {\n        if (!combinedQueryParameterConfiguration.hasOwnProperty(propName)) {\n          continue;\n        }\n\n        // to support the dubious feature of using unknownProperty\n        // on queryParams configuration\n        if (propName === 'unknownProperty' || propName === '_super') {\n          // possible todo: issue deprecation warning?\n          continue;\n        }\n\n        var desc = combinedQueryParameterConfiguration[propName];\n        var scope = desc.scope || 'model';\n        var parts = undefined;\n\n        if (scope === 'controller') {\n          parts = [];\n        }\n\n        var urlKey = desc.as || this.serializeQueryParamKey(propName);\n        var defaultValue = _emberMetal.get(controllerProto, propName);\n\n        if (Array.isArray(defaultValue)) {\n          defaultValue = _emberRuntime.A(defaultValue.slice());\n        }\n\n        var type = desc.type || _emberRuntime.typeOf(defaultValue);\n\n        var defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type);\n        var scopedPropertyName = controllerName + ':' + propName;\n        var qp = {\n          undecoratedDefaultValue: _emberMetal.get(controllerProto, propName),\n          defaultValue: defaultValue,\n          serializedDefaultValue: defaultValueSerialized,\n          serializedValue: defaultValueSerialized,\n\n          type: type,\n          urlKey: urlKey,\n          prop: propName,\n          scopedPropertyName: scopedPropertyName,\n          controllerName: controllerName,\n          route: this,\n          parts: parts, // provided later when stashNames is called if 'model' scope\n          values: null, // provided later when setup is called. no idea why.\n          scope: scope\n        };\n\n        map[propName] = map[urlKey] = map[scopedPropertyName] = qp;\n        qps.push(qp);\n        propertyNames.push(propName);\n      }\n\n      return {\n        qps: qps,\n        map: map,\n        propertyNames: propertyNames,\n        states: {\n          /*\n            Called when a query parameter changes in the URL, this route cares\n            about that query parameter, but the route is not currently\n            in the active route hierarchy.\n          */\n          inactive: function (prop, value) {\n            var qp = map[prop];\n            _this._qpChanged(prop, value, qp);\n          },\n          /*\n            Called when a query parameter changes in the URL, this route cares\n            about that query parameter, and the route is currently\n            in the active route hierarchy.\n          */\n          active: function (prop, value) {\n            var qp = map[prop];\n            _this._qpChanged(prop, value, qp);\n            return _this._activeQPChanged(map[prop], value);\n          },\n          /*\n            Called when a value of a query parameter this route handles changes in a controller\n            and the route is currently in the active route hierarchy.\n          */\n          allowOverrides: function (prop, value) {\n            var qp = map[prop];\n            _this._qpChanged(prop, value, qp);\n            return _this._updatingQPChanged(map[prop]);\n          }\n        }\n      };\n    }),\n\n    /**\n      @private\n       @property _names\n    */\n    _names: null,\n\n    /**\n      @private\n       @method _stashNames\n    */\n    _stashNames: function (handlerInfo, dynamicParent) {\n      if (this._names) {\n        return;\n      }\n      var names = this._names = handlerInfo._names;\n\n      if (!names.length) {\n        handlerInfo = dynamicParent;\n        names = handlerInfo && handlerInfo._names || [];\n      }\n\n      var qps = _emberMetal.get(this, '_qp.qps');\n\n      var namePaths = new Array(names.length);\n      for (var a = 0; a < names.length; ++a) {\n        namePaths[a] = handlerInfo.name + '.' + names[a];\n      }\n\n      for (var i = 0; i < qps.length; ++i) {\n        var qp = qps[i];\n        if (qp.scope === 'model') {\n          qp.parts = namePaths;\n        }\n      }\n    },\n\n    /**\n      @private\n       @property _activeQPChanged\n    */\n    _activeQPChanged: function (qp, value) {\n      var router = this.router;\n      router._activeQPChanged(qp.scopedPropertyName, value);\n    },\n\n    /**\n      @private\n      @method _updatingQPChanged\n    */\n    _updatingQPChanged: function (qp) {\n      var router = this.router;\n      router._updatingQPChanged(qp.urlKey);\n    },\n\n    mergedProperties: ['queryParams'],\n\n    /**\n      Returns a hash containing the parameters of an ancestor route.\n       Example\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('member', { path: ':name' }, function() {\n          this.route('interest', { path: ':interest' });\n        });\n      });\n      ```\n       ```app/routes/member.js\n      export default Ember.Route.extend({\n        queryParams: {\n          memberQp: { refreshModel: true }\n        }\n      });\n      ```\n       ```app/routes/member/interest.js\n      export default Ember.Route.extend({\n        queryParams: {\n          interestQp: { refreshModel: true }\n        },\n         model() {\n          return this.paramsFor('member');\n        }\n      });\n      ```\n       If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n      the `member.interest` route is hash with:\n       * `name`: `turing`\n      * `memberQp`: `member`\n       @method paramsFor\n      @param {String} name\n      @return {Object} hash containing the parameters of the route `name`\n      @since 1.4.0\n      @public\n    */\n    paramsFor: function (name) {\n      var _this2 = this;\n\n      var route = _emberUtils.getOwner(this).lookup('route:' + name);\n\n      if (!route) {\n        return {};\n      }\n\n      var transition = this.router._routerMicrolib.activeTransition;\n      var state = transition ? transition.state : this.router._routerMicrolib.state;\n\n      var fullName = route.fullRouteName;\n      var params = _emberUtils.assign({}, state.params[fullName]);\n      var queryParams = getQueryParamsFor(route, state);\n\n      return Object.keys(queryParams).reduce(function (params, key) {\n        _emberDebug.assert('The route \\'' + _this2.routeName + '\\' has both a dynamic segment and query param with name \\'' + key + '\\'. Please rename one to avoid collisions.', !params[key]);\n        params[key] = queryParams[key];\n        return params;\n      }, params);\n    },\n\n    /**\n      Serializes the query parameter key\n       @method serializeQueryParamKey\n      @param {String} controllerPropertyName\n      @private\n    */\n    serializeQueryParamKey: function (controllerPropertyName) {\n      return controllerPropertyName;\n    },\n\n    /**\n      Serializes value of the query parameter based on defaultValueType\n       @method serializeQueryParam\n      @param {Object} value\n      @param {String} urlKey\n      @param {String} defaultValueType\n      @private\n    */\n    serializeQueryParam: function (value, urlKey, defaultValueType) {\n      // urlKey isn't used here, but anyone overriding\n      // can use it to provide serialization specific\n      // to a certain query param.\n      return this.router._serializeQueryParam(value, defaultValueType);\n    },\n\n    /**\n      Deserializes value of the query parameter based on defaultValueType\n       @method deserializeQueryParam\n      @param {Object} value\n      @param {String} urlKey\n      @param {String} defaultValueType\n      @private\n    */\n    deserializeQueryParam: function (value, urlKey, defaultValueType) {\n      // urlKey isn't used here, but anyone overriding\n      // can use it to provide deserialization specific\n      // to a certain query param.\n      return this.router._deserializeQueryParam(value, defaultValueType);\n    },\n\n    /**\n      @private\n       @property _optionsForQueryParam\n    */\n    _optionsForQueryParam: function (qp) {\n      return _emberMetal.get(this, 'queryParams.' + qp.urlKey) || _emberMetal.get(this, 'queryParams.' + qp.prop) || {};\n    },\n\n    /**\n      A hook you can use to reset controller values either when the model\n      changes or the route is exiting.\n       ```app/routes/articles.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        resetController(controller, isExiting, transition) {\n          if (isExiting) {\n            controller.set('page', 1);\n          }\n        }\n      });\n      ```\n       @method resetController\n      @param {Controller} controller instance\n      @param {Boolean} isExiting\n      @param {Object} transition\n      @since 1.7.0\n      @public\n    */\n    resetController: K,\n\n    /**\n      @private\n       @method exit\n    */\n    exit: function () {\n      this.deactivate();\n      this.trigger('deactivate');\n      this.teardownViews();\n    },\n\n    /**\n      @private\n       @method _reset\n      @since 1.7.0\n    */\n    _reset: function (isExiting, transition) {\n      var controller = this.controller;\n      controller._qpDelegate = _emberMetal.get(this, '_qp.states.inactive');\n\n      this.resetController(controller, isExiting, transition);\n    },\n\n    /**\n      @private\n       @method enter\n    */\n    enter: function () {\n      this.connections = [];\n      this.activate();\n      this.trigger('activate');\n    },\n\n    /**\n      The name of the template to use by default when rendering this routes\n      template.\n       ```app/routes/posts/list.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        templateName: 'posts/list'\n      });\n      ```\n       ```app/routes/posts/index.js\n      import PostsList from '../posts/list';\n       export default PostsList.extend();\n      ```\n       ```app/routes/posts/archived.js\n      import PostsList from '../posts/list';\n       export default PostsList.extend();\n      ```\n       @property templateName\n      @type String\n      @default null\n      @since 1.4.0\n      @public\n    */\n    templateName: null,\n\n    /**\n      The name of the controller to associate with this route.\n       By default, Ember will lookup a route's controller that matches the name\n      of the route (i.e. `App.PostController` for `App.PostRoute`). However,\n      if you would like to define a specific controller to use, you can do so\n      using this property.\n       This is useful in many ways, as the controller specified will be:\n       * passed to the `setupController` method.\n      * used as the controller for the template being rendered by the route.\n      * returned from a call to `controllerFor` for the route.\n       @property controllerName\n      @type String\n      @default null\n      @since 1.4.0\n      @public\n    */\n    controllerName: null,\n\n    /**\n      The `willTransition` action is fired at the beginning of any\n      attempted transition with a `Transition` object as the sole\n      argument. This action can be used for aborting, redirecting,\n      or decorating the transition from the currently active routes.\n       A good example is preventing navigation when a form is\n      half-filled out:\n       ```app/routes/contact-form.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          willTransition(transition) {\n            if (this.controller.get('userHasEnteredData')) {\n              this.controller.displayNavigationConfirm();\n              transition.abort();\n            }\n          }\n        }\n      });\n      ```\n       You can also redirect elsewhere by calling\n      `this.transitionTo('elsewhere')` from within `willTransition`.\n      Note that `willTransition` will not be fired for the\n      redirecting `transitionTo`, since `willTransition` doesn't\n      fire when there is already a transition underway. If you want\n      subsequent `willTransition` actions to fire for the redirecting\n      transition, you must first explicitly call\n      `transition.abort()`.\n       To allow the `willTransition` event to continue bubbling to the parent\n      route, use `return true;`. When the `willTransition` method has a\n      return value of `true` then the parent route's `willTransition` method\n      will be fired, enabling \"bubbling\" behavior for the event.\n       @event willTransition\n      @param {Transition} transition\n      @since 1.0.0\n      @public\n    */\n\n    /**\n      The `didTransition` action is fired after a transition has\n      successfully been completed. This occurs after the normal model\n      hooks (`beforeModel`, `model`, `afterModel`, `setupController`)\n      have resolved. The `didTransition` action has no arguments,\n      however, it can be useful for tracking page views or resetting\n      state on the controller.\n       ```app/routes/login.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          didTransition() {\n            this.controller.get('errors.base').clear();\n            return true; // Bubble the didTransition event\n          }\n        }\n      });\n      ```\n       @event didTransition\n      @since 1.2.0\n      @public\n    */\n\n    /**\n      The `loading` action is fired on the route when a route's `model`\n      hook returns a promise that is not already resolved. The current\n      `Transition` object is the first parameter and the route that\n      triggered the loading event is the second parameter.\n       ```app/routes/application.js\n      export default Ember.Route.extend({\n        actions: {\n          loading(transition, route) {\n            let controller = this.controllerFor('foo');\n            controller.set('currentlyLoading', true);\n             transition.finally(function() {\n              controller.set('currentlyLoading', false);\n            });\n          }\n        }\n      });\n      ```\n       @event loading\n      @param {Transition} transition\n      @param {Ember.Route} route The route that triggered the loading event\n      @since 1.2.0\n      @public\n    */\n\n    /**\n      When attempting to transition into a route, any of the hooks\n      may return a promise that rejects, at which point an `error`\n      action will be fired on the partially-entered routes, allowing\n      for per-route error handling logic, or shared error handling\n      logic defined on a parent route.\n       Here is an example of an error handler that will be invoked\n      for rejected promises from the various hooks on the route,\n      as well as any unhandled errors from child routes:\n       ```app/routes/admin.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        beforeModel() {\n          return Ember.RSVP.reject('bad things!');\n        },\n         actions: {\n          error(error, transition) {\n            // Assuming we got here due to the error in `beforeModel`,\n            // we can expect that error === \"bad things!\",\n            // but a promise model rejecting would also\n            // call this hook, as would any errors encountered\n            // in `afterModel`.\n             // The `error` hook is also provided the failed\n            // `transition`, which can be stored and later\n            // `.retry()`d if desired.\n             this.transitionTo('login');\n          }\n        }\n      });\n      ```\n       `error` actions that bubble up all the way to `ApplicationRoute`\n      will fire a default error handler that logs the error. You can\n      specify your own global default error handler by overriding the\n      `error` handler on `ApplicationRoute`:\n       ```app/routes/application.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          error(error, transition) {\n            this.controllerFor('banner').displayError(error.message);\n          }\n        }\n      });\n      ```\n      @event error\n      @param {Error} error\n      @param {Transition} transition\n      @since 1.0.0\n      @public\n    */\n\n    /**\n      This event is triggered when the router enters the route. It is\n      not executed when the model for the route changes.\n       ```app/routes/application.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        collectAnalytics: Ember.on('activate', function(){\n          collectAnalytics();\n        })\n      });\n      ```\n       @event activate\n      @since 1.9.0\n      @public\n    */\n\n    /**\n      This event is triggered when the router completely exits this\n      route. It is not executed when the model for the route changes.\n       ```app/routes/index.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        trackPageLeaveAnalytics: Ember.on('deactivate', function(){\n          trackPageLeaveAnalytics();\n        })\n      });\n      ```\n       @event deactivate\n      @since 1.9.0\n      @public\n    */\n\n    /**\n      The controller associated with this route.\n       Example\n       ```app/routes/form.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          willTransition(transition) {\n            if (this.controller.get('userHasEnteredData') &&\n                !confirm('Are you sure you want to abandon progress?')) {\n              transition.abort();\n            } else {\n              // Bubble the `willTransition` action so that\n              // parent routes can decide whether or not to abort.\n              return true;\n            }\n          }\n        }\n      });\n      ```\n       @property controller\n      @type Ember.Controller\n      @since 1.6.0\n      @public\n    */\n\n    actions: {\n\n      /**\n        This action is called when one or more query params have changed. Bubbles.\n         @method queryParamsDidChange\n        @param changed {Object} Keys are names of query params that have changed.\n        @param totalPresent {Object} Keys are names of query params that are currently set.\n        @param removed {Object} Keys are names of query params that have been removed.\n        @returns {boolean}\n        @private\n       */\n      queryParamsDidChange: function (changed, totalPresent, removed) {\n        var qpMap = _emberMetal.get(this, '_qp').map;\n\n        var totalChanged = Object.keys(changed).concat(Object.keys(removed));\n        for (var i = 0; i < totalChanged.length; ++i) {\n          var qp = qpMap[totalChanged[i]];\n          if (qp && _emberMetal.get(this._optionsForQueryParam(qp), 'refreshModel') && this.router.currentState) {\n            this.refresh();\n            break;\n          }\n        }\n\n        return true;\n      },\n\n      finalizeQueryParamChange: function (params, finalParams, transition) {\n        if (this.fullRouteName !== 'application') {\n          return true;\n        }\n\n        // Transition object is absent for intermediate transitions.\n        if (!transition) {\n          return;\n        }\n\n        var handlerInfos = transition.state.handlerInfos;\n        var router = this.router;\n        var qpMeta = router._queryParamsFor(handlerInfos);\n        var changes = router._qpUpdates;\n        var replaceUrl = undefined;\n\n        _emberRoutingUtils.stashParamNames(router, handlerInfos);\n\n        for (var i = 0; i < qpMeta.qps.length; ++i) {\n          var qp = qpMeta.qps[i];\n          var route = qp.route;\n          var controller = route.controller;\n          var presentKey = qp.urlKey in params && qp.urlKey;\n\n          // Do a reverse lookup to see if the changed query\n          // param URL key corresponds to a QP property on\n          // this controller.\n          var value = undefined,\n              svalue = undefined;\n          if (changes && qp.urlKey in changes) {\n            // Value updated in/before setupController\n            value = _emberMetal.get(controller, qp.prop);\n            svalue = route.serializeQueryParam(value, qp.urlKey, qp.type);\n          } else {\n            if (presentKey) {\n              svalue = params[presentKey];\n              value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);\n            } else {\n              // No QP provided; use default value.\n              svalue = qp.serializedDefaultValue;\n              value = copyDefaultValue(qp.defaultValue);\n            }\n          }\n\n          controller._qpDelegate = _emberMetal.get(route, '_qp.states.inactive');\n\n          var thisQueryParamChanged = svalue !== qp.serializedValue;\n          if (thisQueryParamChanged) {\n            if (transition.queryParamsOnly && replaceUrl !== false) {\n              var options = route._optionsForQueryParam(qp);\n              var replaceConfigValue = _emberMetal.get(options, 'replace');\n              if (replaceConfigValue) {\n                replaceUrl = true;\n              } else if (replaceConfigValue === false) {\n                // Explicit pushState wins over any other replaceStates.\n                replaceUrl = false;\n              }\n            }\n\n            _emberMetal.set(controller, qp.prop, value);\n          }\n\n          // Stash current serialized value of controller.\n          qp.serializedValue = svalue;\n\n          var thisQueryParamHasDefaultValue = qp.serializedDefaultValue === svalue;\n          if (!thisQueryParamHasDefaultValue) {\n            finalParams.push({\n              value: svalue,\n              visible: true,\n              key: presentKey || qp.urlKey\n            });\n          }\n        }\n\n        if (replaceUrl) {\n          transition.method('replace');\n        }\n\n        qpMeta.qps.forEach(function (qp) {\n          var routeQpMeta = _emberMetal.get(qp.route, '_qp');\n          var finalizedController = qp.route.controller;\n          finalizedController._qpDelegate = _emberMetal.get(routeQpMeta, 'states.active');\n        });\n\n        router._qpUpdates = null;\n      }\n    },\n\n    /**\n      This hook is executed when the router completely exits this route. It is\n      not executed when the model for the route changes.\n       @method deactivate\n      @since 1.0.0\n      @public\n    */\n    deactivate: K,\n\n    /**\n      This hook is executed when the router enters the route. It is not executed\n      when the model for the route changes.\n       @method activate\n      @since 1.0.0\n      @public\n    */\n    activate: K,\n\n    /**\n      Transition the application into another route. The route may\n      be either a single route or route path:\n       ```javascript\n      this.transitionTo('blogPosts');\n      this.transitionTo('blogPosts.recentEntries');\n      ```\n       Optionally supply a model for the route in question. The model\n      will be serialized into the URL using the `serialize` hook of\n      the route:\n       ```javascript\n      this.transitionTo('blogPost', aPost);\n      ```\n       If a literal is passed (such as a number or a string), it will\n      be treated as an identifier instead. In this case, the `model`\n      hook of the route will be triggered:\n       ```javascript\n      this.transitionTo('blogPost', 1);\n      ```\n       Multiple models will be applied last to first recursively up the\n      route tree.\n       ```app/routes.js\n      // ...\n       Router.map(function() {\n        this.route('blogPost', { path:':blogPostId' }, function() {\n          this.route('blogComment', { path: ':blogCommentId' });\n        });\n      });\n       export default Router;\n      ```\n       ```javascript\n      this.transitionTo('blogComment', aPost, aComment);\n      this.transitionTo('blogComment', 1, 13);\n      ```\n       It is also possible to pass a URL (a string that starts with a\n      `/`). This is intended for testing and debugging purposes and\n      should rarely be used in production code.\n       ```javascript\n      this.transitionTo('/');\n      this.transitionTo('/blog/post/1/comment/13');\n      this.transitionTo('/blog/posts?sort=title');\n      ```\n       An options hash with a `queryParams` property may be provided as\n      the final argument to add query parameters to the destination URL.\n       ```javascript\n      this.transitionTo('blogPost', 1, {\n        queryParams: { showComments: 'true' }\n      });\n       // if you just want to transition the query parameters without changing the route\n      this.transitionTo({ queryParams: { sort: 'date' } });\n      ```\n       See also [replaceWith](#method_replaceWith).\n       Simple Transition Example\n       ```app/routes.js\n      // ...\n       Router.map(function() {\n        this.route('index');\n        this.route('secret');\n        this.route('fourOhFour', { path: '*:' });\n      });\n       export default Router;\n      ```\n       ```app/routes/index.js\n      import Ember from 'ember':\n       export Ember.Route.extend({\n        actions: {\n          moveToSecret(context) {\n            if (authorized()) {\n              this.transitionTo('secret', context);\n            } else {\n              this.transitionTo('fourOhFour');\n            }\n          }\n        }\n      });\n      ```\n       Transition to a nested route\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('articles', { path: '/articles' }, function() {\n          this.route('new');\n        });\n      });\n       export default Router;\n      ```\n       ```app/routes/index.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          transitionToNewArticle() {\n            this.transitionTo('articles.new');\n          }\n        }\n      });\n      ```\n       Multiple Models Example\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('index');\n         this.route('breakfast', { path: ':breakfastId' }, function() {\n          this.route('cereal', { path: ':cerealId' });\n        });\n      });\n       export default Router;\n      ```\n       ```app/routes/index.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          moveToChocolateCereal() {\n            let cereal = { cerealId: 'ChocolateYumminess' };\n            let breakfast = { breakfastId: 'CerealAndMilk' };\n             this.transitionTo('breakfast.cereal', breakfast, cereal);\n          }\n        }\n      });\n      ```\n       Nested Route with Query String Example\n       ```app/routes.js\n      // ...\n       Router.map(function() {\n        this.route('fruits', function() {\n          this.route('apples');\n        });\n      });\n       export default Router;\n      ```\n       ```app/routes/index.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          transitionToApples() {\n            this.transitionTo('fruits.apples', { queryParams: { color: 'red' } });\n          }\n        }\n      });\n      ```\n       @method transitionTo\n      @param {String} name the name of the route or a URL\n      @param {...Object} models the model(s) or identifier(s) to be used while\n        transitioning to the route.\n      @param {Object} [options] optional hash with a queryParams property\n        containing a mapping of query parameters\n      @return {Transition} the transition object associated with this\n        attempted transition\n      @since 1.0.0\n      @public\n    */\n    transitionTo: function (name, context) {\n      var router = this.router;\n      return router.transitionTo.apply(router, _emberRoutingUtils.prefixRouteNameArg(this, arguments));\n    },\n\n    /**\n      Perform a synchronous transition into another route without attempting\n      to resolve promises, update the URL, or abort any currently active\n      asynchronous transitions (i.e. regular transitions caused by\n      `transitionTo` or URL changes).\n       This method is handy for performing intermediate transitions on the\n      way to a final destination route, and is called internally by the\n      default implementations of the `error` and `loading` handlers.\n       @method intermediateTransitionTo\n      @param {String} name the name of the route\n      @param {...Object} models the model(s) to be used while transitioning\n      to the route.\n      @since 1.2.0\n      @public\n     */\n    intermediateTransitionTo: function () {\n      var router = this.router;\n      router.intermediateTransitionTo.apply(router, _emberRoutingUtils.prefixRouteNameArg(this, arguments));\n    },\n\n    /**\n      Refresh the model on this route and any child routes, firing the\n      `beforeModel`, `model`, and `afterModel` hooks in a similar fashion\n      to how routes are entered when transitioning in from other route.\n      The current route params (e.g. `article_id`) will be passed in\n      to the respective model hooks, and if a different model is returned,\n      `setupController` and associated route hooks will re-fire as well.\n       An example usage of this method is re-querying the server for the\n      latest information using the same parameters as when the route\n      was first entered.\n       Note that this will cause `model` hooks to fire even on routes\n      that were provided a model object when the route was initially\n      entered.\n       @method refresh\n      @return {Transition} the transition object associated with this\n        attempted transition\n      @since 1.4.0\n      @public\n     */\n    refresh: function () {\n      return this.router._routerMicrolib.refresh(this);\n    },\n\n    /**\n      Transition into another route while replacing the current URL, if possible.\n      This will replace the current history entry instead of adding a new one.\n      Beside that, it is identical to `transitionTo` in all other respects. See\n      'transitionTo' for additional information regarding multiple models.\n       Example\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('index');\n        this.route('secret');\n      });\n       export default Router;\n      ```\n       ```app/routes/secret.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        afterModel() {\n          if (!authorized()){\n            this.replaceWith('index');\n          }\n        }\n      });\n      ```\n       @method replaceWith\n      @param {String} name the name of the route or a URL\n      @param {...Object} models the model(s) or identifier(s) to be used while\n        transitioning to the route.\n      @return {Transition} the transition object associated with this\n        attempted transition\n      @since 1.0.0\n      @public\n    */\n    replaceWith: function () {\n      var router = this.router;\n      return router.replaceWith.apply(router, _emberRoutingUtils.prefixRouteNameArg(this, arguments));\n    },\n\n    /**\n      Sends an action to the router, which will delegate it to the currently\n      active route hierarchy per the bubbling rules explained under `actions`.\n       Example\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('index');\n      });\n       export default Router;\n      ```\n       ```app/routes/application.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          track(arg) {\n            console.log(arg, 'was clicked');\n          }\n        }\n      });\n      ```\n       ```app/routes/index.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        actions: {\n          trackIfDebug(arg) {\n            if (debug) {\n              this.send('track', arg);\n            }\n          }\n        }\n      });\n      ```\n       @method send\n      @param {String} name the name of the action to trigger\n      @param {...*} args\n      @since 1.0.0\n      @public\n    */\n    send: function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      if (this.router && this.router._routerMicrolib || !_emberDebug.isTesting()) {\n        var _router;\n\n        (_router = this.router).send.apply(_router, args);\n      } else {\n        var _name2 = args[0];\n        args = slice.call(args, 1);\n        var action = this.actions[_name2];\n        if (action) {\n          return this.actions[_name2].apply(this, args);\n        }\n      }\n    },\n\n    /**\n      This hook is the entry point for router.js\n       @private\n      @method setup\n    */\n    setup: function (context, transition) {\n      var _this3 = this;\n\n      var controller = undefined;\n\n      var controllerName = this.controllerName || this.routeName;\n      var definedController = this.controllerFor(controllerName, true);\n\n      if (!definedController) {\n        controller = this.generateController(controllerName);\n      } else {\n        controller = definedController;\n      }\n\n      // Assign the route's controller so that it can more easily be\n      // referenced in action handlers. Side effects. Side effects everywhere.\n      if (!this.controller) {\n        var propNames = _emberMetal.get(this, '_qp.propertyNames');\n        addQueryParamsObservers(controller, propNames);\n        this.controller = controller;\n      }\n\n      var queryParams = _emberMetal.get(this, '_qp');\n\n      var states = queryParams.states;\n\n      controller._qpDelegate = states.allowOverrides;\n\n      if (transition) {\n        (function () {\n          // Update the model dep values used to calculate cache keys.\n          _emberRoutingUtils.stashParamNames(_this3.router, transition.state.handlerInfos);\n\n          var params = transition.params;\n          var allParams = queryParams.propertyNames;\n          var cache = _this3._bucketCache;\n\n          allParams.forEach(function (prop) {\n            var aQp = queryParams.map[prop];\n\n            aQp.values = params;\n            var cacheKey = _emberRoutingUtils.calculateCacheKey(aQp.route.fullRouteName, aQp.parts, aQp.values);\n\n            if (cache) {\n              var value = cache.lookup(cacheKey, prop, aQp.undecoratedDefaultValue);\n              _emberMetal.set(controller, prop, value);\n            }\n          });\n        })();\n      }\n\n      if (transition) {\n        var qpValues = getQueryParamsFor(this, transition.state);\n        controller.setProperties(qpValues);\n      }\n\n      this.setupController(controller, context, transition);\n\n      if (this._environment.options.shouldRender) {\n        this.renderTemplate(controller, context);\n      }\n    },\n\n    /*\n      Called when a query parameter for this route changes, regardless of whether the route\n      is currently part of the active route hierarchy. This will update the query parameter's\n      value in the cache so if this route becomes active, the cache value has been updated.\n    */\n    _qpChanged: function (prop, value, qp) {\n      if (!qp) {\n        return;\n      }\n\n      var cacheKey = _emberRoutingUtils.calculateCacheKey(qp.route.fullRouteName, qp.parts, qp.values);\n\n      // Update model-dep cache\n      var cache = this._bucketCache;\n      if (cache) {\n        cache.stash(cacheKey, prop, value);\n      }\n    },\n\n    /**\n      This hook is the first of the route entry validation hooks\n      called when an attempt is made to transition into a route\n      or one of its children. It is called before `model` and\n      `afterModel`, and is appropriate for cases when:\n       1) A decision can be made to redirect elsewhere without\n         needing to resolve the model first.\n      2) Any async operations need to occur first before the\n         model is attempted to be resolved.\n       This hook is provided the current `transition` attempt\n      as a parameter, which can be used to `.abort()` the transition,\n      save it for a later `.retry()`, or retrieve values set\n      on it from a previous hook. You can also just call\n      `this.transitionTo` to another route to implicitly\n      abort the `transition`.\n       You can return a promise from this hook to pause the\n      transition until the promise resolves (or rejects). This could\n      be useful, for instance, for retrieving async code from\n      the server that is required to enter a route.\n       @method beforeModel\n      @param {Transition} transition\n      @return {Promise} if the value returned from this hook is\n        a promise, the transition will pause until the transition\n        resolves. Otherwise, non-promise return values are not\n        utilized in any way.\n      @since 1.0.0\n      @public\n    */\n    beforeModel: K,\n\n    /**\n      This hook is called after this route's model has resolved.\n      It follows identical async/promise semantics to `beforeModel`\n      but is provided the route's resolved model in addition to\n      the `transition`, and is therefore suited to performing\n      logic that can only take place after the model has already\n      resolved.\n       ```app/routes/posts.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        afterModel(posts, transition) {\n          if (posts.get('length') === 1) {\n            this.transitionTo('post.show', posts.get('firstObject'));\n          }\n        }\n      });\n      ```\n       Refer to documentation for `beforeModel` for a description\n      of transition-pausing semantics when a promise is returned\n      from this hook.\n       @method afterModel\n      @param {Object} resolvedModel the value returned from `model`,\n        or its resolved value if it was a promise\n      @param {Transition} transition\n      @return {Promise} if the value returned from this hook is\n        a promise, the transition will pause until the transition\n        resolves. Otherwise, non-promise return values are not\n        utilized in any way.\n      @since 1.0.0\n      @public\n     */\n    afterModel: K,\n\n    /**\n      A hook you can implement to optionally redirect to another route.\n       If you call `this.transitionTo` from inside of this hook, this route\n      will not be entered in favor of the other hook.\n       `redirect` and `afterModel` behave very similarly and are\n      called almost at the same time, but they have an important\n      distinction in the case that, from one of these hooks, a\n      redirect into a child route of this route occurs: redirects\n      from `afterModel` essentially invalidate the current attempt\n      to enter this route, and will result in this route's `beforeModel`,\n      `model`, and `afterModel` hooks being fired again within\n      the new, redirecting transition. Redirects that occur within\n      the `redirect` hook, on the other hand, will _not_ cause\n      these hooks to be fired again the second time around; in\n      other words, by the time the `redirect` hook has been called,\n      both the resolved model and attempted entry into this route\n      are considered to be fully validated.\n       @method redirect\n      @param {Object} model the model for this route\n      @param {Transition} transition the transition object associated with the current transition\n      @since 1.0.0\n      @public\n    */\n    redirect: K,\n\n    /**\n      Called when the context is changed by router.js.\n       @private\n      @method contextDidChange\n    */\n    contextDidChange: function () {\n      this.currentModel = this.context;\n    },\n\n    /**\n      A hook you can implement to convert the URL into the model for\n      this route.\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('post', { path: '/posts/:post_id' });\n      });\n       export default Router;\n      ```\n       The model for the `post` route is `store.findRecord('post', params.post_id)`.\n       By default, if your route has a dynamic segment ending in `_id`:\n       * The model class is determined from the segment (`post_id`'s\n        class is `App.Post`)\n      * The find method is called on the model class with the value of\n        the dynamic segment.\n       Note that for routes with dynamic segments, this hook is not always\n      executed. If the route is entered through a transition (e.g. when\n      using the `link-to` Handlebars helper or the `transitionTo` method\n      of routes), and a model context is already provided this hook\n      is not called.\n       A model context does not include a primitive string or number,\n      which does cause the model hook to be called.\n       Routes without dynamic segments will always execute the model hook.\n       ```javascript\n      // no dynamic segment, model hook always called\n      this.transitionTo('posts');\n       // model passed in, so model hook not called\n      thePost = store.findRecord('post', 1);\n      this.transitionTo('post', thePost);\n       // integer passed in, model hook is called\n      this.transitionTo('post', 1);\n       // model id passed in, model hook is called\n      // useful for forcing the hook to execute\n      thePost = store.findRecord('post', 1);\n      this.transitionTo('post', thePost.id);\n      ```\n        This hook follows the asynchronous/promise semantics\n      described in the documentation for `beforeModel`. In particular,\n      if a promise returned from `model` fails, the error will be\n      handled by the `error` hook on `Ember.Route`.\n       Example\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id);\n        }\n      });\n      ```\n       @method model\n      @param {Object} params the parameters extracted from the URL\n      @param {Transition} transition\n      @return {Object|Promise} the model for this route. If\n        a promise is returned, the transition will pause until\n        the promise resolves, and the resolved value of the promise\n        will be used as the model for this route.\n      @since 1.0.0\n      @public\n    */\n    model: function (params, transition) {\n      var name = undefined,\n          sawParams = undefined,\n          value = undefined;\n      var queryParams = _emberMetal.get(this, '_qp.map');\n\n      for (var prop in params) {\n        if (prop === 'queryParams' || queryParams && prop in queryParams) {\n          continue;\n        }\n\n        var match = prop.match(/^(.*)_id$/);\n        if (match) {\n          name = match[1];\n          value = params[prop];\n        }\n        sawParams = true;\n      }\n\n      if (!name && sawParams) {\n        return _emberRuntime.copy(params);\n      } else if (!name) {\n        if (transition.resolveIndex < 1) {\n          return;\n        }\n\n        return transition.state.handlerInfos[transition.resolveIndex - 1].context;\n      }\n\n      return this.findModel(name, value);\n    },\n\n    /**\n      @private\n      @method deserialize\n      @param {Object} params the parameters extracted from the URL\n      @param {Transition} transition\n      @return {Object|Promise} the model for this route.\n       Router.js hook.\n     */\n    deserialize: function (params, transition) {\n      return this.model(this.paramsFor(this.routeName), transition);\n    },\n\n    /**\n       @method findModel\n      @param {String} type the model type\n      @param {Object} value the value passed to find\n      @private\n    */\n    findModel: function () {\n      var store = _emberMetal.get(this, 'store');\n      return store.find.apply(store, arguments);\n    },\n\n    /**\n      Store property provides a hook for data persistence libraries to inject themselves.\n       By default, this store property provides the exact same functionality previously\n      in the model hook.\n       Currently, the required interface is:\n       `store.find(modelName, findArguments)`\n       @method store\n      @param {Object} store\n      @private\n    */\n    store: _emberMetal.computed(function () {\n      var owner = _emberUtils.getOwner(this);\n      var routeName = this.routeName;\n      var namespace = _emberMetal.get(this, 'router.namespace');\n\n      return {\n        find: function (name, value) {\n          var modelClass = owner[_container.FACTORY_FOR]('model:' + name);\n\n          _emberDebug.assert('You used the dynamic segment ' + name + '_id in your route ' + routeName + ', but ' + namespace + '.' + _emberRuntime.String.classify(name) + ' did not exist and you did not override your route\\'s `model` hook.', !!modelClass);\n\n          if (!modelClass) {\n            return;\n          }\n\n          modelClass = modelClass.class;\n\n          _emberDebug.assert(_emberRuntime.String.classify(name) + ' has no method `find`.', typeof modelClass.find === 'function');\n\n          return modelClass.find(value);\n        }\n      };\n    }),\n\n    /**\n      A hook you can implement to convert the route's model into parameters\n      for the URL.\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('post', { path: '/posts/:post_id' });\n      });\n       ```\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        model(params) {\n          // the server returns `{ id: 12 }`\n          return Ember.$.getJSON('/posts/' + params.post_id);\n        },\n         serialize(model) {\n          // this will make the URL `/posts/12`\n          return { post_id: model.id };\n        }\n      });\n      ```\n       The default `serialize` method will insert the model's `id` into the\n      route's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\n      If the route has multiple dynamic segments or does not contain '_id', `serialize`\n      will return `Ember.getProperties(model, params)`\n       This method is called when `transitionTo` is called with a context\n      in order to populate the URL.\n       @method serialize\n      @param {Object} model the routes model\n      @param {Array} params an Array of parameter names for the current\n        route (in the example, `['post_id']`.\n      @return {Object} the serialized parameters\n      @since 1.0.0\n      @public\n    */\n    serialize: defaultSerialize,\n\n    /**\n      A hook you can use to setup the controller for the current route.\n       This method is called with the controller for the current route and the\n      model supplied by the `model` hook.\n       By default, the `setupController` hook sets the `model` property of\n      the controller to the `model`.\n       If you implement the `setupController` hook in your Route, it will\n      prevent this default behavior. If you want to preserve that behavior\n      when implementing your `setupController` function, make sure to call\n      `_super`:\n       ```app/routes/photos.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        model() {\n          return this.store.findAll('photo');\n        },\n         setupController(controller, model) {\n          // Call _super for default behavior\n          this._super(controller, model);\n          // Implement your custom setup after\n          this.controllerFor('application').set('showingPhotos', true);\n        }\n      });\n      ```\n       The provided controller will be one resolved based on the name\n      of this route.\n       If no explicit controller is defined, Ember will automatically create one.\n       As an example, consider the router:\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('post', { path: '/posts/:post_id' });\n      });\n       export default Router;\n      ```\n       For the `post` route, a controller named `App.PostController` would\n      be used if it is defined. If it is not defined, a basic `Ember.Controller`\n      instance would be used.\n       Example\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        setupController(controller, model) {\n          controller.set('model', model);\n        }\n      });\n      ```\n       @method setupController\n      @param {Controller} controller instance\n      @param {Object} model\n      @since 1.0.0\n      @public\n    */\n    setupController: function (controller, context, transition) {\n      if (controller && context !== undefined) {\n        _emberMetal.set(controller, 'model', context);\n      }\n    },\n\n    /**\n      Returns the resolved model of the current route, or a parent (or any ancestor)\n      route in a route hierarchy.\n       The controller instance must already have been created, either through entering the\n      associated route or using `generateController`.\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        setupController(controller, post) {\n          this._super(controller, post);\n          this.controllerFor('posts').set('currentPost', post);\n        }\n      });\n      ```\n       @method controllerFor\n      @param {String} name the name of the route or controller\n      @return {Ember.Controller}\n      @since 1.0.0\n      @public\n    */\n    controllerFor: function (name, _skipAssert) {\n      var owner = _emberUtils.getOwner(this);\n      var route = owner.lookup('route:' + name);\n      var controller = undefined;\n\n      if (route && route.controllerName) {\n        name = route.controllerName;\n      }\n\n      controller = owner.lookup('controller:' + name);\n\n      // NOTE: We're specifically checking that skipAssert is true, because according\n      //   to the old API the second parameter was model. We do not want people who\n      //   passed a model to skip the assertion.\n      _emberDebug.assert('The controller named \\'' + name + '\\' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.', controller || _skipAssert === true);\n\n      return controller;\n    },\n\n    /**\n      Generates a controller for a route.\n       Example\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        setupController(controller, post) {\n          this._super(controller, post);\n          this.generateController('posts');\n        }\n      });\n      ```\n       @method generateController\n      @param {String} name the name of the controller\n      @private\n    */\n    generateController: function (name) {\n      var owner = _emberUtils.getOwner(this);\n\n      return _emberRoutingSystemGenerate_controller.default(owner, name);\n    },\n\n    /**\n      Returns the resolved model of a parent (or any ancestor) route\n      in a route hierarchy.  During a transition, all routes\n      must resolve a model object, and if a route\n      needs access to a parent route's model in order to\n      resolve a model (or just reuse the model from a parent),\n      it can call `this.modelFor(theNameOfParentRoute)` to\n      retrieve it. If the ancestor route's model was a promise,\n      its resolved result is returned.\n       Example\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('post', { path: '/posts/:post_id' }, function() {\n          this.route('comments');\n        });\n      });\n       export default Router;\n      ```\n       ```app/routes/comments.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        model() {\n          let post = this.modelFor('post');\n          return post.get('comments');\n        }\n      });\n      ```\n       @method modelFor\n      @param {String} name the name of the route\n      @return {Object} the model object\n      @since 1.0.0\n      @public\n    */\n    modelFor: function (_name) {\n      var name = undefined;\n      var owner = _emberUtils.getOwner(this);\n\n      // Only change the route name when there is an active transition.\n      // Otherwise, use the passed in route name.\n      if (owner.routable && this.router && this.router._routerMicrolib.activeTransition) {\n        name = getEngineRouteName(owner, _name);\n      } else {\n        name = _name;\n      }\n\n      var route = _emberUtils.getOwner(this).lookup('route:' + name);\n      var transition = this.router ? this.router._routerMicrolib.activeTransition : null;\n\n      // If we are mid-transition, we want to try and look up\n      // resolved parent contexts on the current transitionEvent.\n      if (transition) {\n        var modelLookupName = route && route.routeName || name;\n        if (transition.resolvedModels.hasOwnProperty(modelLookupName)) {\n          return transition.resolvedModels[modelLookupName];\n        }\n      }\n\n      return route && route.currentModel;\n    },\n\n    /**\n      A hook you can use to render the template for the current route.\n       This method is called with the controller for the current route and the\n      model supplied by the `model` hook. By default, it renders the route's\n      template, configured with the controller for the route.\n       This method can be overridden to set up and render additional or\n      alternative templates.\n       ```app/routes/posts.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        renderTemplate(controller, model) {\n          let favController = this.controllerFor('favoritePost');\n           // Render the `favoritePost` template into\n          // the outlet `posts`, and display the `favoritePost`\n          // controller.\n          this.render('favoritePost', {\n            outlet: 'posts',\n            controller: favController\n          });\n        }\n      });\n      ```\n       @method renderTemplate\n      @param {Object} controller the route's controller\n      @param {Object} model the route's model\n      @since 1.0.0\n      @public\n    */\n    renderTemplate: function (controller, model) {\n      this.render();\n    },\n\n    /**\n      `render` is used to render a template into a region of another template\n      (indicated by an `{{outlet}}`). `render` is used both during the entry\n      phase of routing (via the `renderTemplate` hook) and later in response to\n      user interaction.\n       For example, given the following minimal router and templates:\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('photos');\n      });\n       export default Router;\n      ```\n       ```handlebars\n      <!-- application.hbs -->\n      <div class='something-in-the-app-hbs'>\n        {{outlet \"anOutletName\"}}\n      </div>\n      ```\n       ```handlebars\n      <!-- photos.hbs -->\n      <h1>Photos</h1>\n      ```\n       You can render `photos.hbs` into the `\"anOutletName\"` outlet of\n      `application.hbs` by calling `render`:\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        renderTemplate() {\n          this.render('photos', {\n            into: 'application',\n            outlet: 'anOutletName'\n          })\n        }\n      });\n      ```\n       `render` additionally allows you to supply which `controller` and\n      `model` objects should be loaded and associated with the rendered template.\n        ```app/routes/posts.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        renderTemplate(controller, model){\n          this.render('posts', {    // the template to render, referenced by name\n            into: 'application',    // the template to render into, referenced by name\n            outlet: 'anOutletName', // the outlet inside `options.template` to render into.\n            controller: 'someControllerName', // the controller to use for this template, referenced by name\n            model: model            // the model to set on `options.controller`.\n          })\n        }\n      });\n      ```\n       The string values provided for the template name, and controller\n      will eventually pass through to the resolver for lookup. See\n      Ember.Resolver for how these are mapped to JavaScript objects in your\n      application. The template to render into needs to be related to  either the\n      current route or one of its ancestors.\n       Not all options need to be passed to `render`. Default values will be used\n      based on the name of the route specified in the router or the Route's\n      `controllerName` and `templateName` properties.\n       For example:\n       ```app/router.js\n      // ...\n       Router.map(function() {\n        this.route('index');\n        this.route('post', { path: '/posts/:post_id' });\n      });\n       export default Router;\n      ```\n       ```app/routes/post.js\n      import Ember from 'ember';\n       export default Ember.Route.extend({\n        renderTemplate() {\n          this.render(); // all defaults apply\n        }\n      });\n      ```\n       The name of the route, defined by the router, is `post`.\n       The following equivalent default options will be applied when\n      the Route calls `render`:\n       ```javascript\n      this.render('post', {  // the template name associated with 'post' Route\n        into: 'application', // the parent route to 'post' Route\n        outlet: 'main',      // {{outlet}} and {{outlet 'main'}} are synonymous,\n        controller: 'post',  // the controller associated with the 'post' Route\n      })\n      ```\n       By default the controller's `model` will be the route's model, so it does not\n      need to be passed unless you wish to change which model is being used.\n       @method render\n      @param {String} name the name of the template to render\n      @param {Object} [options] the options\n      @param {String} [options.into] the template to render into,\n                      referenced by name. Defaults to the parent template\n      @param {String} [options.outlet] the outlet inside `options.template` to render into.\n                      Defaults to 'main'\n      @param {String|Object} [options.controller] the controller to use for this template,\n                      referenced by name or as a controller instance. Defaults to the Route's paired controller\n      @param {Object} [options.model] the model object to set on `options.controller`.\n                      Defaults to the return value of the Route's model hook\n      @since 1.0.0\n      @public\n    */\n    render: function (_name, options) {\n      _emberDebug.assert('The name in the given arguments is undefined', arguments.length > 0 ? !_emberMetal.isNone(arguments[0]) : true);\n\n      var namePassed = typeof _name === 'string' && !!_name;\n      var isDefaultRender = arguments.length === 0 || _emberMetal.isEmpty(arguments[0]);\n      var name = undefined;\n\n      if (typeof _name === 'object' && !options) {\n        name = this.templateName || this.routeName;\n        options = _name;\n      } else {\n        name = _name;\n      }\n\n      var renderOptions = buildRenderOptions(this, namePassed, isDefaultRender, name, options);\n      this.connections.push(renderOptions);\n      _emberMetal.run.once(this.router, '_setOutlets');\n    },\n\n    /**\n      Disconnects a view that has been rendered into an outlet.\n       You may pass any or all of the following options to `disconnectOutlet`:\n       * `outlet`: the name of the outlet to clear (default: 'main')\n      * `parentView`: the name of the view containing the outlet to clear\n         (default: the view rendered by the parent route)\n       Example:\n       ```app/routes/application.js\n      import Ember from 'ember';\n       export default App.Route.extend({\n        actions: {\n          showModal(evt) {\n            this.render(evt.modalName, {\n              outlet: 'modal',\n              into: 'application'\n            });\n          },\n          hideModal(evt) {\n            this.disconnectOutlet({\n              outlet: 'modal',\n              parentView: 'application'\n            });\n          }\n        }\n      });\n      ```\n       Alternatively, you can pass the `outlet` name directly as a string.\n       Example:\n       ```app/routes/application.js\n      import Ember from 'ember';\n       export default App.Route.extend({\n        actions: {\n          showModal(evt) {\n            // ...\n          },\n          hideModal(evt) {\n            this.disconnectOutlet('modal');\n          }\n        }\n      });\n       @method disconnectOutlet\n      @param {Object|String} options the options hash or outlet name\n      @since 1.0.0\n      @public\n    */\n    disconnectOutlet: function (options) {\n      var outletName = undefined;\n      var parentView = undefined;\n      if (!options || typeof options === 'string') {\n        outletName = options;\n      } else {\n        outletName = options.outlet;\n        parentView = options.parentView;\n\n        if (options && Object.keys(options).indexOf('outlet') !== -1 && typeof options.outlet === 'undefined') {\n          throw new _emberDebug.Error('You passed undefined as the outlet name.');\n        }\n      }\n      parentView = parentView && parentView.replace(/\\//g, '.');\n      outletName = outletName || 'main';\n      this._disconnectOutlet(outletName, parentView);\n      for (var i = 0; i < this.router._routerMicrolib.currentHandlerInfos.length; i++) {\n        // This non-local state munging is sadly necessary to maintain\n        // backward compatibility with our existing semantics, which allow\n        // any route to disconnectOutlet things originally rendered by any\n        // other route. This should all get cut in 2.0.\n        this.router._routerMicrolib.currentHandlerInfos[i].handler._disconnectOutlet(outletName, parentView);\n      }\n    },\n\n    _disconnectOutlet: function (outletName, parentView) {\n      var parent = parentRoute(this);\n      if (parent && parentView === parent.routeName) {\n        parentView = undefined;\n      }\n      for (var i = 0; i < this.connections.length; i++) {\n        var connection = this.connections[i];\n        if (connection.outlet === outletName && connection.into === parentView) {\n          // This neuters the disconnected outlet such that it doesn't\n          // render anything, but it leaves an entry in the outlet\n          // hierarchy so that any existing other renders that target it\n          // don't suddenly blow up. They will still stick themselves\n          // into its outlets, which won't render anywhere. All of this\n          // statefulness should get the machete in 2.0.\n          this.connections[i] = {\n            owner: connection.owner,\n            into: connection.into,\n            outlet: connection.outlet,\n            name: connection.name,\n            controller: undefined,\n            template: undefined,\n            ViewClass: undefined\n          };\n          _emberMetal.run.once(this.router, '_setOutlets');\n        }\n      }\n    },\n\n    willDestroy: function () {\n      this.teardownViews();\n    },\n\n    /**\n      @private\n       @method teardownViews\n    */\n    teardownViews: function () {\n      if (this.connections && this.connections.length > 0) {\n        this.connections = [];\n        _emberMetal.run.once(this.router, '_setOutlets');\n      }\n    }\n  });\n\n  _emberRuntime.deprecateUnderscoreActions(Route);\n\n  Route.reopenClass({\n    isRouteFactory: true\n  });\n\n  function parentRoute(route) {\n    var handlerInfo = handlerInfoFor(route, route.router._routerMicrolib.state.handlerInfos, -1);\n    return handlerInfo && handlerInfo.handler;\n  }\n\n  function handlerInfoFor(route, handlerInfos) {\n    var offset = arguments.length <= 2 || arguments[2] === undefined ? 0 : arguments[2];\n\n    if (!handlerInfos) {\n      return;\n    }\n\n    var current = undefined;\n    for (var i = 0; i < handlerInfos.length; i++) {\n      current = handlerInfos[i].handler;\n      if (current === route) {\n        return handlerInfos[i + offset];\n      }\n    }\n  }\n\n  function buildRenderOptions(route, namePassed, isDefaultRender, _name, options) {\n    var into = options && options.into && options.into.replace(/\\//g, '.');\n    var outlet = options && options.outlet || 'main';\n\n    var name = undefined,\n        templateName = undefined;\n    if (_name) {\n      name = _name.replace(/\\//g, '.');\n      templateName = name;\n    } else {\n      name = route.routeName;\n      templateName = route.templateName || name;\n    }\n\n    var owner = _emberUtils.getOwner(route);\n    var controller = options && options.controller;\n    if (!controller) {\n      if (namePassed) {\n        controller = owner.lookup('controller:' + name) || route.controllerName || route.routeName;\n      } else {\n        controller = route.controllerName || owner.lookup('controller:' + name);\n      }\n    }\n\n    if (typeof controller === 'string') {\n      var controllerName = controller;\n      controller = owner.lookup('controller:' + controllerName);\n      if (!controller) {\n        throw new _emberDebug.Error('You passed `controller: \\'' + controllerName + '\\'` into the `render` method, but no such controller could be found.');\n      }\n    }\n\n    if (options && Object.keys(options).indexOf('outlet') !== -1 && typeof options.outlet === 'undefined') {\n      throw new _emberDebug.Error('You passed undefined as the outlet name.');\n    }\n\n    if (options && options.model) {\n      controller.set('model', options.model);\n    }\n\n    var template = owner.lookup('template:' + templateName);\n\n    var parent = undefined;\n    if (into && (parent = parentRoute(route)) && into === parent.routeName) {\n      into = undefined;\n    }\n\n    var renderOptions = {\n      owner: owner,\n      into: into,\n      outlet: outlet,\n      name: name,\n      controller: controller,\n      template: template || route._topLevelViewTemplate,\n      ViewClass: undefined\n    };\n\n    _emberDebug.assert('Could not find \"' + name + '\" template, view, or component.', isDefaultRender || template);\n\n    _emberDebug.runInDebug(function () {\n      var LOG_VIEW_LOOKUPS = _emberMetal.get(route.router, 'namespace.LOG_VIEW_LOOKUPS');\n      if (LOG_VIEW_LOOKUPS && !template) {\n        _emberDebug.info('Could not find \"' + name + '\" template. Nothing will be rendered', { fullName: 'template:' + name });\n      }\n    });\n\n    return renderOptions;\n  }\n\n  function getFullQueryParams(router, state) {\n    if (state.fullQueryParams) {\n      return state.fullQueryParams;\n    }\n\n    state.fullQueryParams = {};\n    _emberUtils.assign(state.fullQueryParams, state.queryParams);\n\n    router._deserializeQueryParams(state.handlerInfos, state.fullQueryParams);\n    return state.fullQueryParams;\n  }\n\n  function getQueryParamsFor(route, state) {\n    state.queryParamsFor = state.queryParamsFor || {};\n    var name = route.fullRouteName;\n\n    if (state.queryParamsFor[name]) {\n      return state.queryParamsFor[name];\n    }\n\n    var fullQueryParams = getFullQueryParams(route.router, state);\n\n    var params = state.queryParamsFor[name] = {};\n\n    // Copy over all the query params for this route/controller into params hash.\n    var qpMeta = _emberMetal.get(route, '_qp');\n    var qps = qpMeta.qps;\n    for (var i = 0; i < qps.length; ++i) {\n      // Put deserialized qp on params hash.\n      var qp = qps[i];\n\n      var qpValueWasPassedIn = (qp.prop in fullQueryParams);\n      params[qp.prop] = qpValueWasPassedIn ? fullQueryParams[qp.prop] : copyDefaultValue(qp.defaultValue);\n    }\n\n    return params;\n  }\n\n  function copyDefaultValue(value) {\n    if (Array.isArray(value)) {\n      return _emberRuntime.A(value.slice());\n    }\n    return value;\n  }\n\n  /*\n    Merges all query parameters from a controller with those from\n    a route, returning a new object and avoiding any mutations to\n    the existing objects.\n  */\n  function mergeEachQueryParams(controllerQP, routeQP) {\n    var keysAlreadyMergedOrSkippable = undefined;\n    var qps = {};\n\n    keysAlreadyMergedOrSkippable = {\n      defaultValue: true,\n      type: true,\n      scope: true,\n      as: true\n    };\n\n    // first loop over all controller qps, merging them with any matching route qps\n    // into a new empty object to avoid mutating.\n    for (var cqpName in controllerQP) {\n      if (!controllerQP.hasOwnProperty(cqpName)) {\n        continue;\n      }\n\n      var newControllerParameterConfiguration = {};\n      _emberUtils.assign(newControllerParameterConfiguration, controllerQP[cqpName]);\n      _emberUtils.assign(newControllerParameterConfiguration, routeQP[cqpName]);\n\n      qps[cqpName] = newControllerParameterConfiguration;\n\n      // allows us to skip this QP when we check route QPs.\n      keysAlreadyMergedOrSkippable[cqpName] = true;\n    }\n\n    // loop over all route qps, skipping those that were merged in the first pass\n    // because they also appear in controller qps\n    for (var rqpName in routeQP) {\n      if (!routeQP.hasOwnProperty(rqpName) || keysAlreadyMergedOrSkippable[rqpName]) {\n        continue;\n      }\n\n      var newRouteParameterConfiguration = {};\n      _emberUtils.assign(newRouteParameterConfiguration, routeQP[rqpName], controllerQP[rqpName]);\n      qps[rqpName] = newRouteParameterConfiguration;\n    }\n\n    return qps;\n  }\n\n  function addQueryParamsObservers(controller, propNames) {\n    propNames.forEach(function (prop) {\n      controller.addObserver(prop + '.[]', controller, controller._qpChanged);\n    });\n  }\n\n  function getEngineRouteName(engine, routeName) {\n    if (engine.routable) {\n      var prefix = engine.mountPoint;\n\n      if (routeName === 'application') {\n        return prefix;\n      } else {\n        return prefix + '.' + routeName;\n      }\n    }\n\n    return routeName;\n  }\n\n  exports.default = Route;\n});\nenifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-routing/system/route', 'ember-routing/system/dsl', 'ember-routing/location/api', 'ember-routing/utils', 'ember-routing/system/router_state', 'container', 'router'], function (exports, _emberUtils, _emberConsole, _emberMetal, _emberDebug, _emberRuntime, _emberRoutingSystemRoute, _emberRoutingSystemDsl, _emberRoutingLocationApi, _emberRoutingUtils, _emberRoutingSystemRouter_state, _container, _router) {\n  'use strict';\n\n  exports.triggerEvent = triggerEvent;\n\n  function K() {\n    return this;\n  }\n\n  var slice = Array.prototype.slice;\n\n  /**\n    The `Ember.Router` class manages the application state and URLs. Refer to\n    the [routing guide](http://emberjs.com/guides/routing/) for documentation.\n  \n    @class Router\n    @namespace Ember\n    @extends Ember.Object\n    @uses Ember.Evented\n    @public\n  */\n  var EmberRouter = _emberRuntime.Object.extend(_emberRuntime.Evented, {\n    /**\n      The `location` property determines the type of URL's that your\n      application will use.\n       The following location types are currently available:\n       * `history` - use the browser's history API to make the URLs look just like any standard URL\n      * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n      * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n      * `auto` - use the best option based on browser capabilites: `history` if possible, then `hash` if possible, otherwise `none`\n       Note: If using ember-cli, this value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`\n       @property location\n      @default 'hash'\n      @see {Ember.Location}\n      @public\n    */\n    location: 'hash',\n\n    /**\n     Represents the URL of the root of the application, often '/'. This prefix is\n     assumed on all routes defined on this router.\n      @property rootURL\n     @default '/'\n     @public\n    */\n    rootURL: '/',\n\n    _initRouterJs: function () {\n      var _this = this;\n\n      var routerMicrolib = this._routerMicrolib = new _router.default();\n      routerMicrolib.triggerEvent = triggerEvent;\n\n      routerMicrolib._triggerWillChangeContext = K;\n      routerMicrolib._triggerWillLeave = K;\n\n      var dslCallbacks = this.constructor.dslCallbacks || [K];\n      var dsl = this._buildDSL();\n\n      dsl.route('application', { path: '/', resetNamespace: true, overrideNameAssertion: true }, function () {\n        for (var i = 0; i < dslCallbacks.length; i++) {\n          dslCallbacks[i].call(this);\n        }\n      });\n\n      _emberDebug.runInDebug(function () {\n        if (_emberMetal.get(_this, 'namespace.LOG_TRANSITIONS_INTERNAL')) {\n          routerMicrolib.log = _emberConsole.default.debug;\n        }\n      });\n\n      routerMicrolib.map(dsl.generate());\n    },\n\n    _buildDSL: function () {\n      var moduleBasedResolver = this._hasModuleBasedResolver();\n      var options = {\n        enableLoadingSubstates: !!moduleBasedResolver\n      };\n\n      var owner = _emberUtils.getOwner(this);\n      var router = this;\n\n      options.resolveRouteMap = function (name) {\n        return owner[_container.FACTORY_FOR]('route-map:' + name);\n      };\n\n      options.addRouteForEngine = function (name, engineInfo) {\n        if (!router._engineInfoByRoute[name]) {\n          router._engineInfoByRoute[name] = engineInfo;\n        }\n      };\n\n      return new _emberRoutingSystemDsl.default(null, options);\n    },\n\n    init: function () {\n      this._super.apply(this, arguments);\n\n      this.currentURL = null;\n      this.currentRouteName = null;\n      this.currentPath = null;\n\n      this._qpCache = Object.create(null);\n      this._resetQueuedQueryParameterChanges();\n      this._handledErrors = _emberUtils.dictionary(null);\n      this._engineInstances = Object.create(null);\n      this._engineInfoByRoute = Object.create(null);\n    },\n\n    /*\n      Resets all pending query parameter changes.\n      Called after transitioning to a new route\n      based on query parameter changes.\n    */\n    _resetQueuedQueryParameterChanges: function () {\n      this._queuedQPChanges = {};\n    },\n\n    /**\n      Represents the current URL.\n       @method url\n      @return {String} The current URL.\n      @private\n    */\n    url: _emberMetal.computed(function () {\n      return _emberMetal.get(this, 'location').getURL();\n    }),\n\n    _hasModuleBasedResolver: function () {\n      var owner = _emberUtils.getOwner(this);\n\n      if (!owner) {\n        return false;\n      }\n\n      var resolver = owner.application && owner.application.__registry__ && owner.application.__registry__.resolver;\n\n      if (!resolver) {\n        return false;\n      }\n\n      return !!resolver.moduleBasedResolver;\n    },\n\n    /**\n      Initializes the current router instance and sets up the change handling\n      event listeners used by the instances `location` implementation.\n       A property named `initialURL` will be used to determine the initial URL.\n      If no value is found `/` will be used.\n       @method startRouting\n      @private\n    */\n    startRouting: function () {\n      var initialURL = _emberMetal.get(this, 'initialURL');\n\n      if (this.setupRouter()) {\n        if (typeof initialURL === 'undefined') {\n          initialURL = _emberMetal.get(this, 'location').getURL();\n        }\n        var initialTransition = this.handleURL(initialURL);\n        if (initialTransition && initialTransition.error) {\n          throw initialTransition.error;\n        }\n      }\n    },\n\n    setupRouter: function () {\n      var _this2 = this;\n\n      this._initRouterJs();\n      this._setupLocation();\n\n      var location = _emberMetal.get(this, 'location');\n\n      // Allow the Location class to cancel the router setup while it refreshes\n      // the page\n      if (_emberMetal.get(location, 'cancelRouterSetup')) {\n        return false;\n      }\n\n      this._setupRouter(location);\n\n      location.onUpdateURL(function (url) {\n        _this2.handleURL(url);\n      });\n\n      return true;\n    },\n\n    /**\n      Handles updating the paths and notifying any listeners of the URL\n      change.\n       Triggers the router level `didTransition` hook.\n       For example, to notify google analytics when the route changes,\n      you could use this hook.  (Note: requires also including GA scripts, etc.)\n       ```javascript\n      let Router = Ember.Router.extend({\n        location: config.locationType,\n         didTransition: function() {\n          this._super(...arguments);\n           return ga('send', 'pageview', {\n            'page': this.get('url'),\n            'title': this.get('url')\n          });\n        }\n      });\n      ```\n       @method didTransition\n      @public\n      @since 1.2.0\n    */\n    didTransition: function (infos) {\n      var _this3 = this;\n\n      updatePaths(this);\n\n      this._cancelSlowTransitionTimer();\n\n      this.notifyPropertyChange('url');\n      this.set('currentState', this.targetState);\n\n      // Put this in the runloop so url will be accurate. Seems\n      // less surprising than didTransition being out of sync.\n      _emberMetal.run.once(this, this.trigger, 'didTransition');\n\n      _emberDebug.runInDebug(function () {\n        if (_emberMetal.get(_this3, 'namespace').LOG_TRANSITIONS) {\n          _emberConsole.default.log('Transitioned into \\'' + EmberRouter._routePath(infos) + '\\'');\n        }\n      });\n    },\n\n    _setOutlets: function () {\n      // This is triggered async during Ember.Route#willDestroy.\n      // If the router is also being destroyed we do not want to\n      // to create another this._toplevelView (and leak the renderer)\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n\n      var handlerInfos = this._routerMicrolib.currentHandlerInfos;\n      var route = undefined;\n      var defaultParentState = undefined;\n      var liveRoutes = null;\n\n      if (!handlerInfos) {\n        return;\n      }\n\n      for (var i = 0; i < handlerInfos.length; i++) {\n        route = handlerInfos[i].handler;\n        var connections = route.connections;\n        var ownState = undefined;\n        for (var j = 0; j < connections.length; j++) {\n          var appended = appendLiveRoute(liveRoutes, defaultParentState, connections[j]);\n          liveRoutes = appended.liveRoutes;\n          if (appended.ownState.render.name === route.routeName || appended.ownState.render.outlet === 'main') {\n            ownState = appended.ownState;\n          }\n        }\n        if (connections.length === 0) {\n          ownState = representEmptyRoute(liveRoutes, defaultParentState, route);\n        }\n        defaultParentState = ownState;\n      }\n\n      // when a transitionTo happens after the validation phase\n      // during the initial transition _setOutlets is called\n      // when no routes are active. However, it will get called\n      // again with the correct values during the next turn of\n      // the runloop\n      if (!liveRoutes) {\n        return;\n      }\n\n      if (!this._toplevelView) {\n        var owner = _emberUtils.getOwner(this);\n        var OutletView = owner[_container.FACTORY_FOR]('view:-outlet');\n        this._toplevelView = OutletView.create();\n        this._toplevelView.setOutletState(liveRoutes);\n        var instance = owner.lookup('-application-instance:main');\n        instance.didCreateRootView(this._toplevelView);\n      } else {\n        this._toplevelView.setOutletState(liveRoutes);\n      }\n    },\n\n    /**\n      Handles notifying any listeners of an impending URL\n      change.\n       Triggers the router level `willTransition` hook.\n       @method willTransition\n      @public\n      @since 1.11.0\n    */\n    willTransition: function (oldInfos, newInfos, transition) {\n      var _this4 = this;\n\n      _emberMetal.run.once(this, this.trigger, 'willTransition', transition);\n\n      _emberDebug.runInDebug(function () {\n        if (_emberMetal.get(_this4, 'namespace').LOG_TRANSITIONS) {\n          _emberConsole.default.log('Preparing to transition from \\'' + EmberRouter._routePath(oldInfos) + '\\' to \\'' + EmberRouter._routePath(newInfos) + '\\'');\n        }\n      });\n    },\n\n    handleURL: function (url) {\n      // Until we have an ember-idiomatic way of accessing #hashes, we need to\n      // remove it because router.js doesn't know how to handle it.\n      url = url.split(/#(.+)?/)[0];\n      return this._doURLTransition('handleURL', url);\n    },\n\n    _doURLTransition: function (routerJsMethod, url) {\n      var transition = this._routerMicrolib[routerJsMethod](url || '/');\n      didBeginTransition(transition, this);\n      return transition;\n    },\n\n    /**\n      Transition the application into another route. The route may\n      be either a single route or route path:\n       See [Route.transitionTo](http://emberjs.com/api/classes/Ember.Route.html#method_transitionTo) for more info.\n       @method transitionTo\n      @param {String} name the name of the route or a URL\n      @param {...Object} models the model(s) or identifier(s) to be used while\n        transitioning to the route.\n      @param {Object} [options] optional hash with a queryParams property\n        containing a mapping of query parameters\n      @return {Transition} the transition object associated with this\n        attempted transition\n      @public\n    */\n    transitionTo: function () {\n      var queryParams = undefined;\n\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      if (resemblesURL(args[0])) {\n        return this._doURLTransition('transitionTo', args[0]);\n      }\n\n      var possibleQueryParams = args[args.length - 1];\n      if (possibleQueryParams && possibleQueryParams.hasOwnProperty('queryParams')) {\n        queryParams = args.pop().queryParams;\n      } else {\n        queryParams = {};\n      }\n\n      var targetRouteName = args.shift();\n      return this._doTransition(targetRouteName, args, queryParams);\n    },\n\n    intermediateTransitionTo: function () {\n      var _routerMicrolib,\n          _this5 = this;\n\n      (_routerMicrolib = this._routerMicrolib).intermediateTransitionTo.apply(_routerMicrolib, arguments);\n\n      updatePaths(this);\n\n      _emberDebug.runInDebug(function () {\n        var infos = _this5._routerMicrolib.currentHandlerInfos;\n        if (_emberMetal.get(_this5, 'namespace').LOG_TRANSITIONS) {\n          _emberConsole.default.log('Intermediate-transitioned into \\'' + EmberRouter._routePath(infos) + '\\'');\n        }\n      });\n    },\n\n    replaceWith: function () {\n      return this.transitionTo.apply(this, arguments).method('replace');\n    },\n\n    generate: function () {\n      var _routerMicrolib2;\n\n      var url = (_routerMicrolib2 = this._routerMicrolib).generate.apply(_routerMicrolib2, arguments);\n      return this.location.formatURL(url);\n    },\n\n    /**\n      Determines if the supplied route is currently active.\n       @method isActive\n      @param routeName\n      @return {Boolean}\n      @private\n    */\n    isActive: function (routeName) {\n      var _routerMicrolib3;\n\n      return (_routerMicrolib3 = this._routerMicrolib).isActive.apply(_routerMicrolib3, arguments);\n    },\n\n    /**\n      An alternative form of `isActive` that doesn't require\n      manual concatenation of the arguments into a single\n      array.\n       @method isActiveIntent\n      @param routeName\n      @param models\n      @param queryParams\n      @return {Boolean}\n      @private\n      @since 1.7.0\n    */\n    isActiveIntent: function (routeName, models, queryParams) {\n      return this.currentState.isActiveIntent(routeName, models, queryParams);\n    },\n\n    send: function (name, context) {\n      var _routerMicrolib4;\n\n      (_routerMicrolib4 = this._routerMicrolib).trigger.apply(_routerMicrolib4, arguments);\n    },\n\n    /**\n      Does this router instance have the given route.\n       @method hasRoute\n      @return {Boolean}\n      @private\n    */\n    hasRoute: function (route) {\n      return this._routerMicrolib.hasRoute(route);\n    },\n\n    /**\n      Resets the state of the router by clearing the current route\n      handlers and deactivating them.\n       @private\n      @method reset\n     */\n    reset: function () {\n      if (this._routerMicrolib) {\n        this._routerMicrolib.reset();\n      }\n    },\n\n    willDestroy: function () {\n      if (this._toplevelView) {\n        this._toplevelView.destroy();\n        this._toplevelView = null;\n      }\n\n      this._super.apply(this, arguments);\n\n      this.reset();\n\n      var instances = this._engineInstances;\n      for (var _name in instances) {\n        for (var id in instances[_name]) {\n          _emberMetal.run(instances[_name][id], 'destroy');\n        }\n      }\n    },\n\n    /*\n      Called when an active route's query parameter has changed.\n      These changes are batched into a runloop run and trigger\n      a single transition.\n    */\n    _activeQPChanged: function (queryParameterName, newValue) {\n      this._queuedQPChanges[queryParameterName] = newValue;\n      _emberMetal.run.once(this, this._fireQueryParamTransition);\n    },\n\n    _updatingQPChanged: function (queryParameterName) {\n      if (!this._qpUpdates) {\n        this._qpUpdates = {};\n      }\n      this._qpUpdates[queryParameterName] = true;\n    },\n\n    /*\n      Triggers a transition to a route based on query parameter changes.\n      This is called once per runloop, to batch changes.\n       e.g.\n       if these methods are called in succession:\n      this._activeQPChanged('foo', '10');\n        // results in _queuedQPChanges = { foo: '10' }\n      this._activeQPChanged('bar', false);\n        // results in _queuedQPChanges = { foo: '10', bar: false }\n        _queuedQPChanges will represent both of these changes\n      and the transition using `transitionTo` will be triggered\n      once.\n    */\n    _fireQueryParamTransition: function () {\n      this.transitionTo({ queryParams: this._queuedQPChanges });\n      this._resetQueuedQueryParameterChanges();\n    },\n\n    _setupLocation: function () {\n      var location = _emberMetal.get(this, 'location');\n      var rootURL = _emberMetal.get(this, 'rootURL');\n      var owner = _emberUtils.getOwner(this);\n\n      if ('string' === typeof location && owner) {\n        var resolvedLocation = owner.lookup('location:' + location);\n\n        if ('undefined' !== typeof resolvedLocation) {\n          location = _emberMetal.set(this, 'location', resolvedLocation);\n        } else {\n          // Allow for deprecated registration of custom location API's\n          var options = {\n            implementation: location\n          };\n\n          location = _emberMetal.set(this, 'location', _emberRoutingLocationApi.default.create(options));\n        }\n      }\n\n      if (location !== null && typeof location === 'object') {\n        if (rootURL) {\n          _emberMetal.set(location, 'rootURL', rootURL);\n        }\n\n        // Allow the location to do any feature detection, such as AutoLocation\n        // detecting history support. This gives it a chance to set its\n        // `cancelRouterSetup` property which aborts routing.\n        if (typeof location.detect === 'function') {\n          location.detect();\n        }\n\n        // ensure that initState is called AFTER the rootURL is set on\n        // the location instance\n        if (typeof location.initState === 'function') {\n          location.initState();\n        }\n      }\n    },\n\n    _getHandlerFunction: function () {\n      var _this6 = this;\n\n      var seen = Object.create(null);\n      var owner = _emberUtils.getOwner(this);\n\n      return function (name) {\n        var routeName = name;\n        var routeOwner = owner;\n        var engineInfo = _this6._engineInfoByRoute[routeName];\n\n        if (engineInfo) {\n          var engineInstance = _this6._getEngineInstance(engineInfo);\n\n          routeOwner = engineInstance;\n          routeName = engineInfo.localFullName;\n        }\n\n        var fullRouteName = 'route:' + routeName;\n\n        var handler = routeOwner.lookup(fullRouteName);\n\n        if (seen[name]) {\n          return handler;\n        }\n\n        seen[name] = true;\n\n        if (!handler) {\n          var DefaultRoute = routeOwner[_container.FACTORY_FOR]('route:basic').class;\n          routeOwner.register(fullRouteName, DefaultRoute.extend());\n          handler = routeOwner.lookup(fullRouteName);\n\n          _emberDebug.runInDebug(function () {\n            if (_emberMetal.get(_this6, 'namespace.LOG_ACTIVE_GENERATION')) {\n              _emberDebug.info('generated -> ' + fullRouteName, { fullName: fullRouteName });\n            }\n          });\n        }\n\n        handler._setRouteName(routeName);\n\n        if (engineInfo && !_emberRoutingSystemRoute.hasDefaultSerialize(handler)) {\n          throw new Error('Defining a custom serialize method on an Engine route is not supported.');\n        }\n\n        return handler;\n      };\n    },\n\n    _getSerializerFunction: function () {\n      var _this7 = this;\n\n      return function (name) {\n        var engineInfo = _this7._engineInfoByRoute[name];\n\n        // If this is not an Engine route, we fall back to the handler for serialization\n        if (!engineInfo) {\n          return;\n        }\n\n        return engineInfo.serializeMethod || _emberRoutingSystemRoute.defaultSerialize;\n      };\n    },\n\n    _setupRouter: function (location) {\n      var lastURL = undefined;\n      var emberRouter = this;\n      var routerMicrolib = this._routerMicrolib;\n\n      routerMicrolib.getHandler = this._getHandlerFunction();\n      routerMicrolib.getSerializer = this._getSerializerFunction();\n\n      var doUpdateURL = function () {\n        location.setURL(lastURL);\n        _emberMetal.set(emberRouter, 'currentURL', lastURL);\n      };\n\n      routerMicrolib.updateURL = function (path) {\n        lastURL = path;\n        _emberMetal.run.once(doUpdateURL);\n      };\n\n      if (location.replaceURL) {\n        (function () {\n          var doReplaceURL = function () {\n            location.replaceURL(lastURL);\n            _emberMetal.set(emberRouter, 'currentURL', lastURL);\n          };\n\n          routerMicrolib.replaceURL = function (path) {\n            lastURL = path;\n            _emberMetal.run.once(doReplaceURL);\n          };\n        })();\n      }\n\n      routerMicrolib.didTransition = function (infos) {\n        emberRouter.didTransition(infos);\n      };\n\n      routerMicrolib.willTransition = function (oldInfos, newInfos, transition) {\n        emberRouter.willTransition(oldInfos, newInfos, transition);\n      };\n    },\n\n    /**\n      Serializes the given query params according to their QP meta information.\n       @private\n      @method _serializeQueryParams\n      @param {Arrray<HandlerInfo>} handlerInfos\n      @param {Object} queryParams\n      @return {Void}\n    */\n    _serializeQueryParams: function (handlerInfos, queryParams) {\n      var _this8 = this;\n\n      forEachQueryParam(this, handlerInfos, queryParams, function (key, value, qp) {\n        if (qp) {\n          delete queryParams[key];\n          queryParams[qp.urlKey] = qp.route.serializeQueryParam(value, qp.urlKey, qp.type);\n        } else if (value === undefined) {\n          return; // We don't serialize undefined values\n        } else {\n            queryParams[key] = _this8._serializeQueryParam(value, _emberRuntime.typeOf(value));\n          }\n      });\n    },\n\n    /**\n      Serializes the value of a query parameter based on a type\n       @private\n      @method _serializeQueryParam\n      @param {Object} value\n      @param {String} type\n    */\n    _serializeQueryParam: function (value, type) {\n      if (type === 'array') {\n        return JSON.stringify(value);\n      }\n\n      return '' + value;\n    },\n\n    /**\n      Deserializes the given query params according to their QP meta information.\n       @private\n      @method _deserializeQueryParams\n      @param {Array<HandlerInfo>} handlerInfos\n      @param {Object} queryParams\n      @return {Void}\n    */\n    _deserializeQueryParams: function (handlerInfos, queryParams) {\n      forEachQueryParam(this, handlerInfos, queryParams, function (key, value, qp) {\n        // If we don't have QP meta info for a given key, then we do nothing\n        // because all values will be treated as strings\n        if (qp) {\n          delete queryParams[key];\n          queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type);\n        }\n      });\n    },\n\n    /**\n      Deserializes the value of a query parameter based on a default type\n       @private\n      @method _deserializeQueryParam\n      @param {Object} value\n      @param {String} defaultType\n    */\n    _deserializeQueryParam: function (value, defaultType) {\n      if (defaultType === 'boolean') {\n        return value === 'true' ? true : false;\n      } else if (defaultType === 'number') {\n        return Number(value).valueOf();\n      } else if (defaultType === 'array') {\n        return _emberRuntime.A(JSON.parse(value));\n      }\n\n      return value;\n    },\n\n    /**\n      Removes (prunes) any query params with default values from the given QP\n      object. Default values are determined from the QP meta information per key.\n       @private\n      @method _pruneDefaultQueryParamValues\n      @param {Array<HandlerInfo>} handlerInfos\n      @param {Object} queryParams\n      @return {Void}\n    */\n    _pruneDefaultQueryParamValues: function (handlerInfos, queryParams) {\n      var qps = this._queryParamsFor(handlerInfos);\n      for (var key in queryParams) {\n        var qp = qps.map[key];\n        if (qp && qp.serializedDefaultValue === queryParams[key]) {\n          delete queryParams[key];\n        }\n      }\n    },\n\n    _doTransition: function (_targetRouteName, models, _queryParams) {\n      var _routerMicrolib5;\n\n      var targetRouteName = _targetRouteName || _emberRoutingUtils.getActiveTargetName(this._routerMicrolib);\n      _emberDebug.assert('The route ' + targetRouteName + ' was not found', targetRouteName && this._routerMicrolib.hasRoute(targetRouteName));\n\n      var queryParams = {};\n\n      this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);\n\n      _emberUtils.assign(queryParams, _queryParams);\n      this._prepareQueryParams(targetRouteName, models, queryParams);\n\n      var transitionArgs = _emberRoutingUtils.routeArgs(targetRouteName, models, queryParams);\n      var transition = (_routerMicrolib5 = this._routerMicrolib).transitionTo.apply(_routerMicrolib5, transitionArgs);\n\n      didBeginTransition(transition, this);\n\n      return transition;\n    },\n\n    _processActiveTransitionQueryParams: function (targetRouteName, models, queryParams, _queryParams) {\n      // merge in any queryParams from the active transition which could include\n      // queryParams from the url on initial load.\n      if (!this._routerMicrolib.activeTransition) {\n        return;\n      }\n\n      var unchangedQPs = {};\n      var qpUpdates = this._qpUpdates || {};\n      for (var key in this._routerMicrolib.activeTransition.queryParams) {\n        if (!qpUpdates[key]) {\n          unchangedQPs[key] = this._routerMicrolib.activeTransition.queryParams[key];\n        }\n      }\n\n      // We need to fully scope queryParams so that we can create one object\n      // that represents both pased in queryParams and ones that aren't changed\n      // from the active transition.\n      this._fullyScopeQueryParams(targetRouteName, models, _queryParams);\n      this._fullyScopeQueryParams(targetRouteName, models, unchangedQPs);\n      _emberUtils.assign(queryParams, unchangedQPs);\n    },\n\n    /**\n      Prepares the query params for a URL or Transition. Restores any undefined QP\n      keys/values, serializes all values, and then prunes any default values.\n       @private\n      @method _prepareQueryParams\n      @param {String} targetRouteName\n      @param {Array<Object>} models\n      @param {Object} queryParams\n      @return {Void}\n    */\n    _prepareQueryParams: function (targetRouteName, models, queryParams) {\n      var state = calculatePostTransitionState(this, targetRouteName, models);\n      this._hydrateUnsuppliedQueryParams(state, queryParams);\n      this._serializeQueryParams(state.handlerInfos, queryParams);\n      this._pruneDefaultQueryParamValues(state.handlerInfos, queryParams);\n    },\n\n    /**\n      Returns the meta information for the query params of a given route. This\n      will be overriden to allow support for lazy routes.\n       @private\n      @method _getQPMeta\n      @param {HandlerInfo} handlerInfo\n      @return {Object}\n    */\n    _getQPMeta: function (handlerInfo) {\n      var route = handlerInfo.handler;\n      return route && _emberMetal.get(route, '_qp');\n    },\n\n    /**\n      Returns a merged query params meta object for a given set of handlerInfos.\n      Useful for knowing what query params are available for a given route hierarchy.\n       @private\n      @method _queryParamsFor\n      @param {Array<HandlerInfo>} handlerInfos\n      @return {Object}\n     */\n    _queryParamsFor: function (handlerInfos) {\n      var leafRouteName = handlerInfos[handlerInfos.length - 1].name;\n      if (this._qpCache[leafRouteName]) {\n        return this._qpCache[leafRouteName];\n      }\n\n      var shouldCache = true;\n      var qpsByUrlKey = {};\n      var map = {};\n      var qps = [];\n\n      for (var i = 0; i < handlerInfos.length; ++i) {\n        var qpMeta = this._getQPMeta(handlerInfos[i]);\n\n        if (!qpMeta) {\n          shouldCache = false;\n          continue;\n        }\n\n        // Loop over each QP to make sure we don't have any collisions by urlKey\n        for (var _i = 0; _i < qpMeta.qps.length; _i++) {\n          var qp = qpMeta.qps[_i];\n          var urlKey = qp.urlKey;\n          var qpOther = qpsByUrlKey[urlKey];\n\n          if (qpOther && qpOther.controllerName !== qp.controllerName) {\n            var otherQP = qpsByUrlKey[urlKey];\n            _emberDebug.assert('You\\'re not allowed to have more than one controller property map to the same query param key, but both `' + otherQP.scopedPropertyName + '` and `' + qp.scopedPropertyName + '` map to `' + urlKey + '`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `' + otherQP.prop + ': { as: \\'other-' + otherQP.prop + '\\' }`', false);\n          }\n\n          qpsByUrlKey[urlKey] = qp;\n          qps.push(qp);\n        }\n\n        _emberUtils.assign(map, qpMeta.map);\n      }\n\n      var finalQPMeta = {\n        qps: qps,\n        map: map\n      };\n\n      if (shouldCache) {\n        this._qpCache[leafRouteName] = finalQPMeta;\n      }\n\n      return finalQPMeta;\n    },\n\n    /**\n      Maps all query param keys to their fully scoped property name of the form\n      `controllerName:propName`.\n       @private\n      @method _fullyScopeQueryParams\n      @param {String} leafRouteName\n      @param {Array<Object>} contexts\n      @param {Object} queryParams\n      @return {Void}\n    */\n    _fullyScopeQueryParams: function (leafRouteName, contexts, queryParams) {\n      var state = calculatePostTransitionState(this, leafRouteName, contexts);\n      var handlerInfos = state.handlerInfos;\n\n      for (var i = 0, len = handlerInfos.length; i < len; ++i) {\n        var qpMeta = this._getQPMeta(handlerInfos[i]);\n\n        if (!qpMeta) {\n          continue;\n        }\n\n        for (var j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n          var qp = qpMeta.qps[j];\n\n          var presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n\n          if (presentProp) {\n            if (presentProp !== qp.scopedPropertyName) {\n              queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n              delete queryParams[presentProp];\n            }\n          }\n        }\n      }\n    },\n\n    /**\n      Hydrates (adds/restores) any query params that have pre-existing values into\n      the given queryParams hash. This is what allows query params to be \"sticky\"\n      and restore their last known values for their scope.\n       @private\n      @method _hydrateUnsuppliedQueryParams\n      @param {TransitionState} state\n      @param {Object} queryParams\n      @return {Void}\n    */\n    _hydrateUnsuppliedQueryParams: function (state, queryParams) {\n      var handlerInfos = state.handlerInfos;\n      var appCache = this._bucketCache;\n\n      for (var i = 0; i < handlerInfos.length; ++i) {\n        var qpMeta = this._getQPMeta(handlerInfos[i]);\n\n        if (!qpMeta) {\n          continue;\n        }\n\n        for (var j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n          var qp = qpMeta.qps[j];\n\n          var presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n\n          if (presentProp) {\n            if (presentProp !== qp.scopedPropertyName) {\n              queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n              delete queryParams[presentProp];\n            }\n          } else {\n            var cacheKey = _emberRoutingUtils.calculateCacheKey(qp.route.fullRouteName, qp.parts, state.params);\n            queryParams[qp.scopedPropertyName] = appCache.lookup(cacheKey, qp.prop, qp.defaultValue);\n          }\n        }\n      }\n    },\n\n    _scheduleLoadingEvent: function (transition, originRoute) {\n      this._cancelSlowTransitionTimer();\n      this._slowTransitionTimer = _emberMetal.run.scheduleOnce('routerTransitions', this, '_handleSlowTransition', transition, originRoute);\n    },\n\n    currentState: null,\n    targetState: null,\n\n    _handleSlowTransition: function (transition, originRoute) {\n      if (!this._routerMicrolib.activeTransition) {\n        // Don't fire an event if we've since moved on from\n        // the transition that put us in a loading state.\n        return;\n      }\n\n      this.set('targetState', _emberRoutingSystemRouter_state.default.create({\n        emberRouter: this,\n        routerJs: this._routerMicrolib,\n        routerJsState: this._routerMicrolib.activeTransition.state\n      }));\n\n      transition.trigger(true, 'loading', transition, originRoute);\n    },\n\n    _cancelSlowTransitionTimer: function () {\n      if (this._slowTransitionTimer) {\n        _emberMetal.run.cancel(this._slowTransitionTimer);\n      }\n      this._slowTransitionTimer = null;\n    },\n\n    // These three helper functions are used to ensure errors aren't\n    // re-raised if they're handled in a route's error action.\n    _markErrorAsHandled: function (errorGuid) {\n      this._handledErrors[errorGuid] = true;\n    },\n\n    _isErrorHandled: function (errorGuid) {\n      return this._handledErrors[errorGuid];\n    },\n\n    _clearHandledError: function (errorGuid) {\n      delete this._handledErrors[errorGuid];\n    },\n\n    _getEngineInstance: function (_ref) {\n      var name = _ref.name;\n      var instanceId = _ref.instanceId;\n      var mountPoint = _ref.mountPoint;\n\n      var engineInstances = this._engineInstances;\n\n      if (!engineInstances[name]) {\n        engineInstances[name] = Object.create(null);\n      }\n\n      var engineInstance = engineInstances[name][instanceId];\n\n      if (!engineInstance) {\n        var owner = _emberUtils.getOwner(this);\n\n        _emberDebug.assert('You attempted to mount the engine \\'' + name + '\\' in your router map, but the engine can not be found.', owner.hasRegistration('engine:' + name));\n\n        engineInstance = owner.buildChildEngineInstance(name, {\n          routable: true,\n          mountPoint: mountPoint\n        });\n\n        engineInstance.boot();\n\n        engineInstances[name][instanceId] = engineInstance;\n      }\n\n      return engineInstance;\n    }\n  });\n\n  /*\n    Helper function for iterating over routes in a set of handlerInfos that are\n    at or above the given origin route. Example: if `originRoute` === 'foo.bar'\n    and the handlerInfos given were for 'foo.bar.baz', then the given callback\n    will be invoked with the routes for 'foo.bar', 'foo', and 'application'\n    individually.\n  \n    If the callback returns anything other than `true`, then iteration will stop.\n  \n    @private\n    @param {Route} originRoute\n    @param {Array<HandlerInfo>} handlerInfos\n    @param {Function} callback\n    @return {Void}\n   */\n  function forEachRouteAbove(originRoute, handlerInfos, callback) {\n    var originRouteFound = false;\n\n    for (var i = handlerInfos.length - 1; i >= 0; --i) {\n      var handlerInfo = handlerInfos[i];\n      var route = handlerInfo.handler;\n\n      if (originRoute === route) {\n        originRouteFound = true;\n      }\n\n      if (!originRouteFound) {\n        continue;\n      }\n\n      if (callback(route) !== true) {\n        return;\n      }\n    }\n  }\n\n  // These get invoked when an action bubbles above ApplicationRoute\n  // and are not meant to be overridable.\n  var defaultActionHandlers = {\n\n    willResolveModel: function (transition, originRoute) {\n      originRoute.router._scheduleLoadingEvent(transition, originRoute);\n    },\n\n    // Attempt to find an appropriate error route or substate to enter.\n    error: function (error, transition, originRoute) {\n      var handlerInfos = transition.state.handlerInfos;\n      var router = originRoute.router;\n\n      forEachRouteAbove(originRoute, handlerInfos, function (route) {\n        // Check for the existence of an 'error' route.\n        // We don't check for an 'error' route on the originRoute, since that would\n        // technically be below where we're at in the route hierarchy.\n        if (originRoute !== route) {\n          var errorRouteName = findRouteStateName(route, 'error');\n          if (errorRouteName) {\n            router.intermediateTransitionTo(errorRouteName, error);\n            return false;\n          }\n        }\n\n        // Check for an 'error' substate route\n        var errorSubstateName = findRouteSubstateName(route, 'error');\n        if (errorSubstateName) {\n          router.intermediateTransitionTo(errorSubstateName, error);\n          return false;\n        }\n\n        return true;\n      });\n\n      logError(error, 'Error while processing route: ' + transition.targetName);\n    },\n\n    // Attempt to find an appropriate loading route or substate to enter.\n    loading: function (transition, originRoute) {\n      var handlerInfos = transition.state.handlerInfos;\n      var router = originRoute.router;\n\n      forEachRouteAbove(originRoute, handlerInfos, function (route) {\n        // Check for the existence of a 'loading' route.\n        // We don't check for a 'loading' route on the originRoute, since that would\n        // technically be below where we're at in the route hierarchy.\n        if (originRoute !== route) {\n          var loadingRouteName = findRouteStateName(route, 'loading');\n          if (loadingRouteName) {\n            router.intermediateTransitionTo(loadingRouteName);\n            return false;\n          }\n        }\n\n        // Check for loading substate\n        var loadingSubstateName = findRouteSubstateName(route, 'loading');\n        if (loadingSubstateName) {\n          router.intermediateTransitionTo(loadingSubstateName);\n          return false;\n        }\n\n        // Don't bubble above pivot route.\n        return transition.pivotHandler !== route;\n      });\n    }\n  };\n\n  function logError(_error, initialMessage) {\n    var errorArgs = [];\n    var error = undefined;\n    if (_error && typeof _error === 'object' && typeof _error.errorThrown === 'object') {\n      error = _error.errorThrown;\n    } else {\n      error = _error;\n    }\n\n    if (initialMessage) {\n      errorArgs.push(initialMessage);\n    }\n\n    if (error) {\n      if (error.message) {\n        errorArgs.push(error.message);\n      }\n      if (error.stack) {\n        errorArgs.push(error.stack);\n      }\n\n      if (typeof error === 'string') {\n        errorArgs.push(error);\n      }\n    }\n\n    _emberConsole.default.error.apply(this, errorArgs);\n  }\n\n  /**\n    Finds the name of the substate route if it exists for the given route. A\n    substate route is of the form `route_state`, such as `foo_loading`.\n  \n    @private\n    @param {Route} route\n    @param {String} state\n    @return {String}\n  */\n  function findRouteSubstateName(route, state) {\n    var router = route.router;\n    var owner = _emberUtils.getOwner(route);\n\n    var routeName = route.routeName;\n    var substateName = routeName + '_' + state;\n\n    var routeNameFull = route.fullRouteName;\n    var substateNameFull = routeNameFull + '_' + state;\n\n    return routeHasBeenDefined(owner, router, substateName, substateNameFull) ? substateNameFull : '';\n  }\n\n  /**\n    Finds the name of the state route if it exists for the given route. A state\n    route is of the form `route.state`, such as `foo.loading`. Properly Handles\n    `application` named routes.\n  \n    @private\n    @param {Route} route\n    @param {String} state\n    @return {String}\n  */\n  function findRouteStateName(route, state) {\n    var router = route.router;\n    var owner = _emberUtils.getOwner(route);\n\n    var routeName = route.routeName;\n    var stateName = routeName === 'application' ? state : routeName + '.' + state;\n\n    var routeNameFull = route.fullRouteName;\n    var stateNameFull = routeNameFull === 'application' ? state : routeNameFull + '.' + state;\n\n    return routeHasBeenDefined(owner, router, stateName, stateNameFull) ? stateNameFull : '';\n  }\n\n  /**\n    Determines whether or not a route has been defined by checking that the route\n    is in the Router's map and the owner has a registration for that route.\n  \n    @private\n    @param {Owner} owner\n    @param {Ember.Router} router\n    @param {String} localName\n    @param {String} fullName\n    @return {Boolean}\n  */\n  function routeHasBeenDefined(owner, router, localName, fullName) {\n    var routerHasRoute = router.hasRoute(fullName);\n    var ownerHasRoute = owner.hasRegistration('template:' + localName) || owner.hasRegistration('route:' + localName);\n    return routerHasRoute && ownerHasRoute;\n  }\n\n  function triggerEvent(handlerInfos, ignoreFailure, args) {\n    var name = args.shift();\n\n    if (!handlerInfos) {\n      if (ignoreFailure) {\n        return;\n      }\n      throw new _emberDebug.EmberError('Can\\'t trigger action \\'' + name + '\\' because your app hasn\\'t finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.');\n    }\n\n    var eventWasHandled = false;\n    var handlerInfo = undefined,\n        handler = undefined;\n\n    for (var i = handlerInfos.length - 1; i >= 0; i--) {\n      handlerInfo = handlerInfos[i];\n      handler = handlerInfo.handler;\n\n      if (handler && handler.actions && handler.actions[name]) {\n        if (handler.actions[name].apply(handler, args) === true) {\n          eventWasHandled = true;\n        } else {\n          // Should only hit here if a non-bubbling error action is triggered on a route.\n          if (name === 'error') {\n            var errorId = _emberUtils.guidFor(args[0]);\n            handler.router._markErrorAsHandled(errorId);\n          }\n          return;\n        }\n      }\n    }\n\n    if (defaultActionHandlers[name]) {\n      defaultActionHandlers[name].apply(null, args);\n      return;\n    }\n\n    if (!eventWasHandled && !ignoreFailure) {\n      throw new _emberDebug.EmberError('Nothing handled the action \\'' + name + '\\'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.');\n    }\n  }\n\n  function calculatePostTransitionState(emberRouter, leafRouteName, contexts) {\n    var routerMicrolib = emberRouter._routerMicrolib;\n    var state = routerMicrolib.applyIntent(leafRouteName, contexts);\n    var handlerInfos = state.handlerInfos;\n    var params = state.params;\n\n    for (var i = 0; i < handlerInfos.length; ++i) {\n      var handlerInfo = handlerInfos[i];\n\n      // If the handlerInfo is not resolved, we serialize the context into params\n      if (!handlerInfo.isResolved) {\n        params[handlerInfo.name] = handlerInfo.serialize(handlerInfo.context);\n      } else {\n        params[handlerInfo.name] = handlerInfo.params;\n      }\n    }\n    return state;\n  }\n\n  function updatePaths(router) {\n    var infos = router._routerMicrolib.currentHandlerInfos;\n    if (infos.length === 0) {\n      return;\n    }\n\n    var path = EmberRouter._routePath(infos);\n    var currentRouteName = infos[infos.length - 1].name;\n    var currentURL = router.get('location').getURL();\n\n    _emberMetal.set(router, 'currentPath', path);\n    _emberMetal.set(router, 'currentRouteName', currentRouteName);\n    _emberMetal.set(router, 'currentURL', currentURL);\n\n    var appController = _emberUtils.getOwner(router).lookup('controller:application');\n\n    if (!appController) {\n      // appController might not exist when top-level loading/error\n      // substates have been entered since ApplicationRoute hasn't\n      // actually been entered at that point.\n      return;\n    }\n\n    if (!('currentPath' in appController)) {\n      _emberMetal.defineProperty(appController, 'currentPath');\n    }\n\n    _emberMetal.set(appController, 'currentPath', path);\n\n    if (!('currentRouteName' in appController)) {\n      _emberMetal.defineProperty(appController, 'currentRouteName');\n    }\n\n    _emberMetal.set(appController, 'currentRouteName', currentRouteName);\n  }\n\n  EmberRouter.reopenClass({\n    router: null,\n\n    /**\n      The `Router.map` function allows you to define mappings from URLs to routes\n      in your application. These mappings are defined within the\n      supplied callback function using `this.route`.\n       The first parameter is the name of the route which is used by default as the\n      path name as well.\n       The second parameter is the optional options hash. Available options are:\n         * `path`: allows you to provide your own path as well as mark dynamic\n          segments.\n        * `resetNamespace`: false by default; when nesting routes, ember will\n          combine the route names to form the fully-qualified route name, which is\n          used with `{{link-to}}` or manually transitioning to routes. Setting\n          `resetNamespace: true` will cause the route not to inherit from its\n          parent route's names. This is handy for preventing extremely long route names.\n          Keep in mind that the actual URL path behavior is still retained.\n       The third parameter is a function, which can be used to nest routes.\n      Nested routes, by default, will have the parent route tree's route name and\n      path prepended to it's own.\n       ```javascript\n      App.Router.map(function(){\n        this.route('post', { path: '/post/:post_id' }, function() {\n          this.route('edit');\n          this.route('comments', { resetNamespace: true }, function() {\n            this.route('new');\n          });\n        });\n      });\n      ```\n       For more detailed documentation and examples please see\n      [the guides](http://emberjs.com/guides/routing/defining-your-routes/).\n       @method map\n      @param callback\n      @public\n    */\n    map: function (callback) {\n      if (!this.dslCallbacks) {\n        this.dslCallbacks = [];\n        this.reopenClass({ dslCallbacks: this.dslCallbacks });\n      }\n\n      this.dslCallbacks.push(callback);\n\n      return this;\n    },\n\n    _routePath: function (handlerInfos) {\n      var path = [];\n\n      // We have to handle coalescing resource names that\n      // are prefixed with their parent's names, e.g.\n      // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'\n\n      function intersectionMatches(a1, a2) {\n        for (var i = 0; i < a1.length; ++i) {\n          if (a1[i] !== a2[i]) {\n            return false;\n          }\n        }\n        return true;\n      }\n\n      var name = undefined,\n          nameParts = undefined,\n          oldNameParts = undefined;\n      for (var i = 1; i < handlerInfos.length; i++) {\n        name = handlerInfos[i].name;\n        nameParts = name.split('.');\n        oldNameParts = slice.call(path);\n\n        while (oldNameParts.length) {\n          if (intersectionMatches(oldNameParts, nameParts)) {\n            break;\n          }\n          oldNameParts.shift();\n        }\n\n        path.push.apply(path, nameParts.slice(oldNameParts.length));\n      }\n\n      return path.join('.');\n    }\n  });\n\n  function didBeginTransition(transition, router) {\n    var routerState = _emberRoutingSystemRouter_state.default.create({\n      emberRouter: router,\n      routerJs: router._routerMicrolib,\n      routerJsState: transition.state\n    });\n\n    if (!router.currentState) {\n      router.set('currentState', routerState);\n    }\n    router.set('targetState', routerState);\n\n    transition.promise = transition.catch(function (error) {\n      var errorId = _emberUtils.guidFor(error);\n\n      if (router._isErrorHandled(errorId)) {\n        router._clearHandledError(errorId);\n      } else {\n        throw error;\n      }\n    });\n  }\n\n  function resemblesURL(str) {\n    return typeof str === 'string' && (str === '' || str[0] === '/');\n  }\n\n  function forEachQueryParam(router, handlerInfos, queryParams, callback) {\n    var qpCache = router._queryParamsFor(handlerInfos);\n\n    for (var key in queryParams) {\n      if (!queryParams.hasOwnProperty(key)) {\n        continue;\n      }\n      var value = queryParams[key];\n      var qp = qpCache.map[key];\n\n      callback(key, value, qp);\n    }\n  }\n\n  function findLiveRoute(liveRoutes, name) {\n    if (!liveRoutes) {\n      return;\n    }\n    var stack = [liveRoutes];\n    while (stack.length > 0) {\n      var test = stack.shift();\n      if (test.render.name === name) {\n        return test;\n      }\n      var outlets = test.outlets;\n      for (var outletName in outlets) {\n        stack.push(outlets[outletName]);\n      }\n    }\n  }\n\n  function appendLiveRoute(liveRoutes, defaultParentState, renderOptions) {\n    var target = undefined;\n    var myState = {\n      render: renderOptions,\n      outlets: Object.create(null),\n      wasUsed: false\n    };\n    if (renderOptions.into) {\n      target = findLiveRoute(liveRoutes, renderOptions.into);\n    } else {\n      target = defaultParentState;\n    }\n    if (target) {\n      _emberMetal.set(target.outlets, renderOptions.outlet, myState);\n    } else {\n      if (renderOptions.into) {\n        _emberDebug.deprecate('Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated.', false, {\n          id: 'ember-routing.top-level-render-helper',\n          until: '3.0.0',\n          url: 'http://emberjs.com/deprecations/v2.x/#toc_rendering-into-a-render-helper-that-resolves-to-an-outlet'\n        });\n\n        // Megahax time. Post-3.0-breaking-changes, we will just assert\n        // right here that the user tried to target a nonexistent\n        // thing. But for now we still need to support the `render`\n        // helper, and people are allowed to target templates rendered\n        // by the render helper. So instead we defer doing anyting with\n        // these orphan renders until afterRender.\n        appendOrphan(liveRoutes, renderOptions.into, myState);\n      } else {\n        liveRoutes = myState;\n      }\n    }\n    return {\n      liveRoutes: liveRoutes,\n      ownState: myState\n    };\n  }\n\n  function appendOrphan(liveRoutes, into, myState) {\n    if (!liveRoutes.outlets.__ember_orphans__) {\n      liveRoutes.outlets.__ember_orphans__ = {\n        render: {\n          name: '__ember_orphans__'\n        },\n        outlets: Object.create(null)\n      };\n    }\n    liveRoutes.outlets.__ember_orphans__.outlets[into] = myState;\n    _emberMetal.run.schedule('afterRender', function () {\n      // `wasUsed` gets set by the render helper.\n      _emberDebug.assert('You attempted to render into \\'' + into + '\\' but it was not found', liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed);\n    });\n  }\n\n  function representEmptyRoute(liveRoutes, defaultParentState, route) {\n    // the route didn't render anything\n    var alreadyAppended = findLiveRoute(liveRoutes, route.routeName);\n    if (alreadyAppended) {\n      // But some other route has already rendered our default\n      // template, so that becomes the default target for any\n      // children we may have.\n      return alreadyAppended;\n    } else {\n      // Create an entry to represent our default template name,\n      // just so other routes can target it and inherit its place\n      // in the outlet hierarchy.\n      defaultParentState.outlets.main = {\n        render: {\n          name: route.routeName,\n          outlet: 'main'\n        },\n        outlets: {}\n      };\n      return defaultParentState;\n    }\n  }\n\n  _emberMetal.deprecateProperty(EmberRouter.prototype, 'router', '_routerMicrolib', {\n    id: 'ember-router.router',\n    until: '2.16',\n    url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-router-router-renamed-to-ember-router-_routerMicrolib'\n  });\n\n  exports.default = EmberRouter;\n});\n\n/**\n@module ember\n@submodule ember-routing\n*/\nenifed('ember-routing/system/router_state', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime'], function (exports, _emberUtils, _emberMetal, _emberRuntime) {\n  'use strict';\n\n  exports.default = _emberRuntime.Object.extend({\n    emberRouter: null,\n    routerJs: null,\n    routerJsState: null,\n\n    isActiveIntent: function (routeName, models, queryParams, queryParamsMustMatch) {\n      var state = this.routerJsState;\n      if (!this.routerJs.isActiveIntent(routeName, models, null, state)) {\n        return false;\n      }\n\n      var emptyQueryParams = _emberMetal.isEmpty(Object.keys(queryParams));\n\n      if (queryParamsMustMatch && !emptyQueryParams) {\n        var visibleQueryParams = {};\n        _emberUtils.assign(visibleQueryParams, queryParams);\n\n        this.emberRouter._prepareQueryParams(routeName, models, visibleQueryParams);\n        return shallowEqual(visibleQueryParams, state.queryParams);\n      }\n\n      return true;\n    }\n  });\n\n  function shallowEqual(a, b) {\n    var k = undefined;\n    for (k in a) {\n      if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n        return false;\n      }\n    }\n    for (k in b) {\n      if (b.hasOwnProperty(k) && a[k] !== b[k]) {\n        return false;\n      }\n    }\n    return true;\n  }\n});\nenifed('ember-routing/utils', ['exports', 'ember-utils', 'ember-metal', 'ember-debug'], function (exports, _emberUtils, _emberMetal, _emberDebug) {\n  'use strict';\n\n  exports.routeArgs = routeArgs;\n  exports.getActiveTargetName = getActiveTargetName;\n  exports.stashParamNames = stashParamNames;\n  exports.calculateCacheKey = calculateCacheKey;\n  exports.normalizeControllerQueryParams = normalizeControllerQueryParams;\n  exports.prefixRouteNameArg = prefixRouteNameArg;\n\n  var ALL_PERIODS_REGEX = /\\./g;\n\n  function routeArgs(targetRouteName, models, queryParams) {\n    var args = [];\n    if (typeof targetRouteName === 'string') {\n      args.push('' + targetRouteName);\n    }\n    args.push.apply(args, models);\n    args.push({ queryParams: queryParams });\n    return args;\n  }\n\n  function getActiveTargetName(router) {\n    var handlerInfos = router.activeTransition ? router.activeTransition.state.handlerInfos : router.state.handlerInfos;\n    return handlerInfos[handlerInfos.length - 1].name;\n  }\n\n  function stashParamNames(router, handlerInfos) {\n    if (handlerInfos._namesStashed) {\n      return;\n    }\n\n    // This helper exists because router.js/route-recognizer.js awkwardly\n    // keeps separate a handlerInfo's list of parameter names depending\n    // on whether a URL transition or named transition is happening.\n    // Hopefully we can remove this in the future.\n    var targetRouteName = handlerInfos[handlerInfos.length - 1].name;\n    var recogHandlers = router._routerMicrolib.recognizer.handlersFor(targetRouteName);\n    var dynamicParent = null;\n\n    for (var i = 0; i < handlerInfos.length; ++i) {\n      var handlerInfo = handlerInfos[i];\n      var names = recogHandlers[i].names;\n\n      if (names.length) {\n        dynamicParent = handlerInfo;\n      }\n\n      handlerInfo._names = names;\n\n      var route = handlerInfo.handler;\n      route._stashNames(handlerInfo, dynamicParent);\n    }\n\n    handlerInfos._namesStashed = true;\n  }\n\n  function _calculateCacheValuePrefix(prefix, part) {\n    // calculates the dot seperated sections from prefix that are also\n    // at the start of part - which gives us the route name\n\n    // given : prefix = site.article.comments, part = site.article.id\n    //      - returns: site.article (use get(values[site.article], 'id') to get the dynamic part - used below)\n\n    // given : prefix = site.article, part = site.article.id\n    //      - returns: site.article. (use get(values[site.article], 'id') to get the dynamic part - used below)\n\n    var prefixParts = prefix.split('.');\n    var currPrefix = '';\n\n    for (var i = 0; i < prefixParts.length; i++) {\n      var currPart = prefixParts.slice(0, i + 1).join('.');\n      if (part.indexOf(currPart) !== 0) {\n        break;\n      }\n      currPrefix = currPart;\n    }\n\n    return currPrefix;\n  }\n\n  /*\n    Stolen from Controller\n  */\n\n  function calculateCacheKey(prefix, parts, values) {\n    if (parts === undefined) parts = [];\n\n    var suffixes = '';\n    for (var i = 0; i < parts.length; ++i) {\n      var part = parts[i];\n      var cacheValuePrefix = _calculateCacheValuePrefix(prefix, part);\n      var value = undefined;\n      if (values) {\n        if (cacheValuePrefix && cacheValuePrefix in values) {\n          var partRemovedPrefix = part.indexOf(cacheValuePrefix) === 0 ? part.substr(cacheValuePrefix.length + 1) : part;\n          value = _emberMetal.get(values[cacheValuePrefix], partRemovedPrefix);\n        } else {\n          value = _emberMetal.get(values, part);\n        }\n      }\n      suffixes += '::' + part + ':' + value;\n    }\n    return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-');\n  }\n\n  /*\n    Controller-defined query parameters can come in three shapes:\n  \n    Array\n      queryParams: ['foo', 'bar']\n    Array of simple objects where value is an alias\n      queryParams: [\n        {\n          'foo': 'rename_foo_to_this'\n        },\n        {\n          'bar': 'call_bar_this_instead'\n        }\n      ]\n    Array of fully defined objects\n      queryParams: [\n        {\n          'foo': {\n            as: 'rename_foo_to_this'\n          },\n        }\n        {\n          'bar': {\n            as: 'call_bar_this_instead',\n            scope: 'controller'\n          }\n        }\n      ]\n  \n    This helper normalizes all three possible styles into the\n    'Array of fully defined objects' style.\n  */\n\n  function normalizeControllerQueryParams(queryParams) {\n    var qpMap = {};\n\n    for (var i = 0; i < queryParams.length; ++i) {\n      accumulateQueryParamDescriptors(queryParams[i], qpMap);\n    }\n\n    return qpMap;\n  }\n\n  function accumulateQueryParamDescriptors(_desc, accum) {\n    var desc = _desc;\n    var tmp = undefined;\n    if (typeof desc === 'string') {\n      tmp = {};\n      tmp[desc] = { as: null };\n      desc = tmp;\n    }\n\n    for (var key in desc) {\n      if (!desc.hasOwnProperty(key)) {\n        return;\n      }\n\n      var singleDesc = desc[key];\n      if (typeof singleDesc === 'string') {\n        singleDesc = { as: singleDesc };\n      }\n\n      tmp = accum[key] || { as: null, scope: 'model' };\n      _emberUtils.assign(tmp, singleDesc);\n\n      accum[key] = tmp;\n    }\n  }\n\n  /*\n    Check if a routeName resembles a url instead\n  \n    @private\n  */\n  function resemblesURL(str) {\n    return typeof str === 'string' && (str === '' || str.charAt(0) === '/');\n  }\n\n  /*\n    Returns an arguments array where the route name arg is prefixed based on the mount point\n  \n    @private\n  */\n\n  function prefixRouteNameArg(route, args) {\n    var routeName = args[0];\n    var owner = _emberUtils.getOwner(route);\n    var prefix = owner.mountPoint;\n\n    // only alter the routeName if it's actually referencing a route.\n    if (owner.routable && typeof routeName === 'string') {\n      if (resemblesURL(routeName)) {\n        throw new _emberDebug.Error('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');\n      } else {\n        routeName = prefix + '.' + routeName;\n        args[0] = routeName;\n      }\n    }\n\n    return args;\n  }\n});\nenifed('ember-runtime/compare', ['exports', 'ember-runtime/utils', 'ember-runtime/mixins/comparable'], function (exports, _emberRuntimeUtils, _emberRuntimeMixinsComparable) {\n  'use strict';\n\n  exports.default = compare;\n\n  var TYPE_ORDER = {\n    'undefined': 0,\n    'null': 1,\n    'boolean': 2,\n    'number': 3,\n    'string': 4,\n    'array': 5,\n    'object': 6,\n    'instance': 7,\n    'function': 8,\n    'class': 9,\n    'date': 10\n  };\n\n  //\n  // the spaceship operator\n  //\n  //                      `. ___\n  //                     __,' __`.                _..----....____\n  //         __...--.'``;.   ,.   ;``--..__     .'    ,-._    _.-'\n  //   _..-''-------'   `'   `'   `'     O ``-''._   (,;') _,'\n  // ,'________________                          \\`-._`-','\n  //  `._              ```````````------...___   '-.._'-:\n  //     ```--.._      ,.                     ````--...__\\-.\n  //             `.--. `-` \"INFINITY IS LESS     ____    |  |`\n  //               `. `.   THAN BEYOND\"        ,'`````.  ;  ;`\n  //                 `._`.        __________   `.      \\'__/`\n  //                    `-:._____/______/___/____`.     \\  `\n  //                                |       `._    `.    \\\n  //                                `._________`-.   `.   `.___\n  //                                              SSt  `------'`\n  function spaceship(a, b) {\n    var diff = a - b;\n    return (diff > 0) - (diff < 0);\n  }\n\n  /**\n   Compares two javascript values and returns:\n  \n    - -1 if the first is smaller than the second,\n    - 0 if both are equal,\n    - 1 if the first is greater than the second.\n  \n    ```javascript\n    Ember.compare('hello', 'hello');  // 0\n    Ember.compare('abc', 'dfg');      // -1\n    Ember.compare(2, 1);              // 1\n    ```\n  \n   If the types of the two objects are different precedence occurs in the\n   following order, with types earlier in the list considered `<` types\n   later in the list:\n  \n    - undefined\n    - null\n    - boolean\n    - number\n    - string\n    - array\n    - object\n    - instance\n    - function\n    - class\n    - date\n  \n    ```javascript\n    Ember.compare('hello', 50);       // 1\n    Ember.compare(50, 'hello');       // -1\n    ```\n  \n   @method compare\n   @for Ember\n   @param {Object} v First value to compare\n   @param {Object} w Second value to compare\n   @return {Number} -1 if v < w, 0 if v = w and 1 if v > w.\n   @public\n  */\n\n  function compare(v, w) {\n    if (v === w) {\n      return 0;\n    }\n\n    var type1 = _emberRuntimeUtils.typeOf(v);\n    var type2 = _emberRuntimeUtils.typeOf(w);\n\n    if (_emberRuntimeMixinsComparable.default) {\n      if (type1 === 'instance' && _emberRuntimeMixinsComparable.default.detect(v) && v.constructor.compare) {\n        return v.constructor.compare(v, w);\n      }\n\n      if (type2 === 'instance' && _emberRuntimeMixinsComparable.default.detect(w) && w.constructor.compare) {\n        return w.constructor.compare(w, v) * -1;\n      }\n    }\n\n    var res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]);\n\n    if (res !== 0) {\n      return res;\n    }\n\n    // types are equal - so we have to check values now\n    switch (type1) {\n      case 'boolean':\n      case 'number':\n        return spaceship(v, w);\n\n      case 'string':\n        return spaceship(v.localeCompare(w), 0);\n\n      case 'array':\n        {\n          var vLen = v.length;\n          var wLen = w.length;\n          var len = Math.min(vLen, wLen);\n\n          for (var i = 0; i < len; i++) {\n            var r = compare(v[i], w[i]);\n            if (r !== 0) {\n              return r;\n            }\n          }\n\n          // all elements are equal now\n          // shorter array should be ordered first\n          return spaceship(vLen, wLen);\n        }\n      case 'instance':\n        if (_emberRuntimeMixinsComparable.default && _emberRuntimeMixinsComparable.default.detect(v)) {\n          return v.compare(v, w);\n        }\n        return 0;\n\n      case 'date':\n        return spaceship(v.getTime(), w.getTime());\n\n      default:\n        return 0;\n    }\n  }\n});\nenifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  'use strict';\n\n  exports.empty = empty;\n  exports.notEmpty = notEmpty;\n  exports.none = none;\n  exports.not = not;\n  exports.bool = bool;\n  exports.match = match;\n  exports.equal = equal;\n  exports.gt = gt;\n  exports.gte = gte;\n  exports.lt = lt;\n  exports.lte = lte;\n  exports.oneWay = oneWay;\n  exports.readOnly = readOnly;\n  exports.deprecatingAlias = deprecatingAlias;\n\n  /**\n  @module ember\n  @submodule ember-metal\n  */\n\n  function expandPropertiesToArray(predicateName, properties) {\n    var expandedProperties = [];\n\n    function extractProperty(entry) {\n      expandedProperties.push(entry);\n    }\n\n    for (var i = 0; i < properties.length; i++) {\n      var property = properties[i];\n      _emberDebug.assert('Dependent keys passed to Ember.computed.' + predicateName + '() can\\'t have spaces.', property.indexOf(' ') < 0);\n\n      _emberMetal.expandProperties(property, extractProperty);\n    }\n\n    return expandedProperties;\n  }\n\n  function generateComputedWithPredicate(name, predicate) {\n    return function () {\n      for (var _len = arguments.length, properties = Array(_len), _key = 0; _key < _len; _key++) {\n        properties[_key] = arguments[_key];\n      }\n\n      var expandedProperties = expandPropertiesToArray(name, properties);\n\n      var computedFunc = _emberMetal.computed(function () {\n        var lastIdx = expandedProperties.length - 1;\n\n        for (var i = 0; i < lastIdx; i++) {\n          var value = _emberMetal.get(this, expandedProperties[i]);\n          if (!predicate(value)) {\n            return value;\n          }\n        }\n\n        return _emberMetal.get(this, expandedProperties[lastIdx]);\n      });\n\n      return computedFunc.property.apply(computedFunc, expandedProperties);\n    };\n  }\n\n  /**\n    A computed property that returns true if the value of the dependent\n    property is null, an empty string, empty array, or empty function.\n  \n    Example\n  \n    ```javascript\n    let ToDoList = Ember.Object.extend({\n      isDone: Ember.computed.empty('todos')\n    });\n  \n    let todoList = ToDoList.create({\n      todos: ['Unit Test', 'Documentation', 'Release']\n    });\n  \n    todoList.get('isDone'); // false\n    todoList.get('todos').clear();\n    todoList.get('isDone'); // true\n    ```\n  \n    @since 1.6.0\n    @method empty\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which negate\n    the original value for property\n    @public\n  */\n\n  function empty(dependentKey) {\n    return _emberMetal.computed(dependentKey + '.length', function () {\n      return _emberMetal.isEmpty(_emberMetal.get(this, dependentKey));\n    });\n  }\n\n  /**\n    A computed property that returns true if the value of the dependent\n    property is NOT null, an empty string, empty array, or empty function.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      hasStuff: Ember.computed.notEmpty('backpack')\n    });\n  \n    let hamster = Hamster.create({ backpack: ['Food', 'Sleeping Bag', 'Tent'] });\n  \n    hamster.get('hasStuff');         // true\n    hamster.get('backpack').clear(); // []\n    hamster.get('hasStuff');         // false\n    ```\n  \n    @method notEmpty\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which returns true if\n    original value for property is not empty.\n    @public\n  */\n\n  function notEmpty(dependentKey) {\n    return _emberMetal.computed(dependentKey + '.length', function () {\n      return !_emberMetal.isEmpty(_emberMetal.get(this, dependentKey));\n    });\n  }\n\n  /**\n    A computed property that returns true if the value of the dependent\n    property is null or undefined. This avoids errors from JSLint complaining\n    about use of ==, which can be technically confusing.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      isHungry: Ember.computed.none('food')\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('isHungry'); // true\n    hamster.set('food', 'Banana');\n    hamster.get('isHungry'); // false\n    hamster.set('food', null);\n    hamster.get('isHungry'); // true\n    ```\n  \n    @method none\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which\n    returns true if original value for property is null or undefined.\n    @public\n  */\n\n  function none(dependentKey) {\n    return _emberMetal.computed(dependentKey, function () {\n      return _emberMetal.isNone(_emberMetal.get(this, dependentKey));\n    });\n  }\n\n  /**\n    A computed property that returns the inverse boolean value\n    of the original value for the dependent property.\n  \n    Example\n  \n    ```javascript\n    let User = Ember.Object.extend({\n      isAnonymous: Ember.computed.not('loggedIn')\n    });\n  \n    let user = User.create({loggedIn: false});\n  \n    user.get('isAnonymous'); // true\n    user.set('loggedIn', true);\n    user.get('isAnonymous'); // false\n    ```\n  \n    @method not\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which returns\n    inverse of the original value for property\n    @public\n  */\n\n  function not(dependentKey) {\n    return _emberMetal.computed(dependentKey, function () {\n      return !_emberMetal.get(this, dependentKey);\n    });\n  }\n\n  /**\n    A computed property that converts the provided dependent property\n    into a boolean value.\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      hasBananas: Ember.computed.bool('numBananas')\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('hasBananas'); // false\n    hamster.set('numBananas', 0);\n    hamster.get('hasBananas'); // false\n    hamster.set('numBananas', 1);\n    hamster.get('hasBananas'); // true\n    hamster.set('numBananas', null);\n    hamster.get('hasBananas'); // false\n    ```\n  \n    @method bool\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which converts\n    to boolean the original value for property\n    @public\n  */\n\n  function bool(dependentKey) {\n    return _emberMetal.computed(dependentKey, function () {\n      return !!_emberMetal.get(this, dependentKey);\n    });\n  }\n\n  /**\n    A computed property which matches the original value for the\n    dependent property against a given RegExp, returning `true`\n    if the value matches the RegExp and `false` if it does not.\n  \n    Example\n  \n    ```javascript\n    let User = Ember.Object.extend({\n      hasValidEmail: Ember.computed.match('email', /^.+@.+\\..+$/)\n    });\n  \n    let user = User.create({loggedIn: false});\n  \n    user.get('hasValidEmail'); // false\n    user.set('email', '');\n    user.get('hasValidEmail'); // false\n    user.set('email', 'ember_hamster@example.com');\n    user.get('hasValidEmail'); // true\n    ```\n  \n    @method match\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {RegExp} regexp\n    @return {Ember.ComputedProperty} computed property which match\n    the original value for property against a given RegExp\n    @public\n  */\n\n  function match(dependentKey, regexp) {\n    return _emberMetal.computed(dependentKey, function () {\n      var value = _emberMetal.get(this, dependentKey);\n\n      return typeof value === 'string' ? regexp.test(value) : false;\n    });\n  }\n\n  /**\n    A computed property that returns true if the provided dependent property\n    is equal to the given value.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      satisfied: Ember.computed.equal('percentCarrotsEaten', 100)\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('satisfied'); // false\n    hamster.set('percentCarrotsEaten', 100);\n    hamster.get('satisfied'); // true\n    hamster.set('percentCarrotsEaten', 50);\n    hamster.get('satisfied'); // false\n    ```\n  \n    @method equal\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {String|Number|Object} value\n    @return {Ember.ComputedProperty} computed property which returns true if\n    the original value for property is equal to the given value.\n    @public\n  */\n\n  function equal(dependentKey, value) {\n    return _emberMetal.computed(dependentKey, function () {\n      return _emberMetal.get(this, dependentKey) === value;\n    });\n  }\n\n  /**\n    A computed property that returns true if the provided dependent property\n    is greater than the provided value.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      hasTooManyBananas: Ember.computed.gt('numBananas', 10)\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('hasTooManyBananas'); // false\n    hamster.set('numBananas', 3);\n    hamster.get('hasTooManyBananas'); // false\n    hamster.set('numBananas', 11);\n    hamster.get('hasTooManyBananas'); // true\n    ```\n  \n    @method gt\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Number} value\n    @return {Ember.ComputedProperty} computed property which returns true if\n    the original value for property is greater than given value.\n    @public\n  */\n\n  function gt(dependentKey, value) {\n    return _emberMetal.computed(dependentKey, function () {\n      return _emberMetal.get(this, dependentKey) > value;\n    });\n  }\n\n  /**\n    A computed property that returns true if the provided dependent property\n    is greater than or equal to the provided value.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      hasTooManyBananas: Ember.computed.gte('numBananas', 10)\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('hasTooManyBananas'); // false\n    hamster.set('numBananas', 3);\n    hamster.get('hasTooManyBananas'); // false\n    hamster.set('numBananas', 10);\n    hamster.get('hasTooManyBananas'); // true\n    ```\n  \n    @method gte\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Number} value\n    @return {Ember.ComputedProperty} computed property which returns true if\n    the original value for property is greater or equal then given value.\n    @public\n  */\n\n  function gte(dependentKey, value) {\n    return _emberMetal.computed(dependentKey, function () {\n      return _emberMetal.get(this, dependentKey) >= value;\n    });\n  }\n\n  /**\n    A computed property that returns true if the provided dependent property\n    is less than the provided value.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      needsMoreBananas: Ember.computed.lt('numBananas', 3)\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('needsMoreBananas'); // true\n    hamster.set('numBananas', 3);\n    hamster.get('needsMoreBananas'); // false\n    hamster.set('numBananas', 2);\n    hamster.get('needsMoreBananas'); // true\n    ```\n  \n    @method lt\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Number} value\n    @return {Ember.ComputedProperty} computed property which returns true if\n    the original value for property is less then given value.\n    @public\n  */\n\n  function lt(dependentKey, value) {\n    return _emberMetal.computed(dependentKey, function () {\n      return _emberMetal.get(this, dependentKey) < value;\n    });\n  }\n\n  /**\n    A computed property that returns true if the provided dependent property\n    is less than or equal to the provided value.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      needsMoreBananas: Ember.computed.lte('numBananas', 3)\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('needsMoreBananas'); // true\n    hamster.set('numBananas', 5);\n    hamster.get('needsMoreBananas'); // false\n    hamster.set('numBananas', 3);\n    hamster.get('needsMoreBananas'); // true\n    ```\n  \n    @method lte\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Number} value\n    @return {Ember.ComputedProperty} computed property which returns true if\n    the original value for property is less or equal than given value.\n    @public\n  */\n\n  function lte(dependentKey, value) {\n    return _emberMetal.computed(dependentKey, function () {\n      return _emberMetal.get(this, dependentKey) <= value;\n    });\n  }\n\n  /**\n    A computed property that performs a logical `and` on the\n    original values for the provided dependent properties.\n  \n    You may pass in more than two properties and even use\n    property brace expansion.  The computed property will\n    return the first falsy value or last truthy value\n    just like JavaScript's `&&` operator.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      readyForCamp: Ember.computed.and('hasTent', 'hasBackpack'),\n      readyForHike: Ember.computed.and('hasWalkingStick', 'hasBackpack')\n    });\n  \n    let tomster = Hamster.create();\n  \n    tomster.get('readyForCamp'); // false\n    tomster.set('hasTent', true);\n    tomster.get('readyForCamp'); // false\n    tomster.set('hasBackpack', true);\n    tomster.get('readyForCamp'); // true\n    tomster.set('hasBackpack', 'Yes');\n    tomster.get('readyForCamp'); // 'Yes'\n    tomster.set('hasWalkingStick', null);\n    tomster.get('readyForHike'); // null\n    ```\n  \n    @method and\n    @for Ember.computed\n    @param {String} dependentKey*\n    @return {Ember.ComputedProperty} computed property which performs\n    a logical `and` on the values of all the original values for properties.\n    @public\n  */\n  var and = generateComputedWithPredicate('and', function (value) {\n    return value;\n  });\n\n  exports.and = and;\n  /**\n    A computed property which performs a logical `or` on the\n    original values for the provided dependent properties.\n  \n    You may pass in more than two properties and even use\n    property brace expansion.  The computed property will\n    return the first truthy value or last falsy value just\n    like JavaScript's `||` operator.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      readyForRain: Ember.computed.or('hasJacket', 'hasUmbrella'),\n      readyForBeach: Ember.computed.or('{hasSunscreen,hasUmbrella}')\n    });\n  \n    let tomster = Hamster.create();\n  \n    tomster.get('readyForRain'); // undefined\n    tomster.set('hasUmbrella', true);\n    tomster.get('readyForRain'); // true\n    tomster.set('hasJacket', 'Yes');\n    tomster.get('readyForRain'); // 'Yes'\n    tomster.set('hasSunscreen', 'Check');\n    tomster.get('readyForBeach'); // 'Check'\n    ```\n  \n    @method or\n    @for Ember.computed\n    @param {String} dependentKey*\n    @return {Ember.ComputedProperty} computed property which performs\n    a logical `or` on the values of all the original values for properties.\n    @public\n  */\n  var or = generateComputedWithPredicate('or', function (value) {\n    return !value;\n  });\n\n  exports.or = or;\n  /**\n    Creates a new property that is an alias for another property\n    on an object. Calls to `get` or `set` this property behave as\n    though they were called on the original property.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      name: 'Alex Matchneer',\n      nomen: Ember.computed.alias('name')\n    });\n  \n    let alex = Person.create();\n  \n    alex.get('nomen'); // 'Alex Matchneer'\n    alex.get('name');  // 'Alex Matchneer'\n  \n    alex.set('nomen', '@machty');\n    alex.get('name');  // '@machty'\n    ```\n  \n    @method alias\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which creates an\n    alias to the original value for property.\n    @public\n  */\n\n  /**\n    Where `computed.alias` aliases `get` and `set`, and allows for bidirectional\n    data flow, `computed.oneWay` only provides an aliased `get`. The `set` will\n    not mutate the upstream property, rather causes the current property to\n    become the value set. This causes the downstream property to permanently\n    diverge from the upstream property.\n  \n    Example\n  \n    ```javascript\n    let User = Ember.Object.extend({\n      firstName: null,\n      lastName: null,\n      nickName: Ember.computed.oneWay('firstName')\n    });\n  \n    let teddy = User.create({\n      firstName: 'Teddy',\n      lastName:  'Zeenny'\n    });\n  \n    teddy.get('nickName');              // 'Teddy'\n    teddy.set('nickName', 'TeddyBear'); // 'TeddyBear'\n    teddy.get('firstName');             // 'Teddy'\n    ```\n  \n    @method oneWay\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which creates a\n    one way computed property to the original value for property.\n    @public\n  */\n\n  function oneWay(dependentKey) {\n    return _emberMetal.alias(dependentKey).oneWay();\n  }\n\n  /**\n    This is a more semantically meaningful alias of `computed.oneWay`,\n    whose name is somewhat ambiguous as to which direction the data flows.\n  \n    @method reads\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which creates a\n      one way computed property to the original value for property.\n    @public\n   */\n\n  /**\n    Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides\n    a readOnly one way binding. Very often when using `computed.oneWay` one does\n    not also want changes to propagate back up, as they will replace the value.\n  \n    This prevents the reverse flow, and also throws an exception when it occurs.\n  \n    Example\n  \n    ```javascript\n    let User = Ember.Object.extend({\n      firstName: null,\n      lastName: null,\n      nickName: Ember.computed.readOnly('firstName')\n    });\n  \n    let teddy = User.create({\n      firstName: 'Teddy',\n      lastName:  'Zeenny'\n    });\n  \n    teddy.get('nickName');              // 'Teddy'\n    teddy.set('nickName', 'TeddyBear'); // throws Exception\n    // throw new Ember.Error('Cannot Set: nickName on: <User:ember27288>' );`\n    teddy.get('firstName');             // 'Teddy'\n    ```\n  \n    @method readOnly\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computed property which creates a\n    one way computed property to the original value for property.\n    @since 1.5.0\n    @public\n  */\n\n  function readOnly(dependentKey) {\n    return _emberMetal.alias(dependentKey).readOnly();\n  }\n\n  /**\n    Creates a new property that is an alias for another property\n    on an object. Calls to `get` or `set` this property behave as\n    though they were called on the original property, but also\n    print a deprecation warning.\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      bananaCount: Ember.computed.deprecatingAlias('cavendishCount', {\n        id: 'hamster.deprecate-banana',\n        until: '3.0.0'\n      })\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.set('bananaCount', 5); // Prints a deprecation warning.\n    hamster.get('cavendishCount'); // 5\n    ```\n  \n    @method deprecatingAlias\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Object} options Options for `Ember.deprecate`.\n    @return {Ember.ComputedProperty} computed property which creates an\n    alias with a deprecation to the original value for property.\n    @since 1.7.0\n    @public\n  */\n\n  function deprecatingAlias(dependentKey, options) {\n    return _emberMetal.computed(dependentKey, {\n      get: function (key) {\n        _emberDebug.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.', false, options);\n        return _emberMetal.get(this, dependentKey);\n      },\n      set: function (key, value) {\n        _emberDebug.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.', false, options);\n        _emberMetal.set(this, dependentKey, value);\n        return value;\n      }\n    });\n  }\n});\nenifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils', 'ember-debug', 'ember-metal', 'ember-runtime/compare', 'ember-runtime/utils', 'ember-runtime/system/native_array'], function (exports, _emberUtils, _emberDebug, _emberMetal, _emberRuntimeCompare, _emberRuntimeUtils, _emberRuntimeSystemNative_array) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  exports.sum = sum;\n  exports.max = max;\n  exports.min = min;\n  exports.map = map;\n  exports.mapBy = mapBy;\n  exports.filter = filter;\n  exports.filterBy = filterBy;\n  exports.uniq = uniq;\n  exports.uniqBy = uniqBy;\n  exports.intersect = intersect;\n  exports.setDiff = setDiff;\n  exports.collect = collect;\n  exports.sort = sort;\n\n  function reduceMacro(dependentKey, callback, initialValue) {\n    return _emberMetal.computed(dependentKey + '.[]', function () {\n      var _this = this;\n\n      var arr = _emberMetal.get(this, dependentKey);\n\n      if (arr === null || typeof arr !== 'object') {\n        return initialValue;\n      }\n\n      return arr.reduce(function (previousValue, currentValue, index, array) {\n        return callback.call(_this, previousValue, currentValue, index, array);\n      }, initialValue);\n    }).readOnly();\n  }\n\n  function arrayMacro(dependentKey, callback) {\n    // This is a bit ugly\n    var propertyName = undefined;\n    if (/@each/.test(dependentKey)) {\n      propertyName = dependentKey.replace(/\\.@each.*$/, '');\n    } else {\n      propertyName = dependentKey;\n      dependentKey += '.[]';\n    }\n\n    return _emberMetal.computed(dependentKey, function () {\n      var value = _emberMetal.get(this, propertyName);\n      if (_emberRuntimeUtils.isArray(value)) {\n        return _emberRuntimeSystemNative_array.A(callback.call(this, value));\n      } else {\n        return _emberRuntimeSystemNative_array.A();\n      }\n    }).readOnly();\n  }\n\n  function multiArrayMacro(dependentKeys, callback) {\n    var args = dependentKeys.map(function (key) {\n      return key + '.[]';\n    });\n\n    args.push(function () {\n      return _emberRuntimeSystemNative_array.A(callback.call(this, dependentKeys));\n    });\n\n    return _emberMetal.computed.apply(this, args).readOnly();\n  }\n\n  /**\n    A computed property that returns the sum of the values\n    in the dependent array.\n  \n    @method sum\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computes the sum of all values in the dependentKey's array\n    @since 1.4.0\n    @public\n  */\n\n  function sum(dependentKey) {\n    return reduceMacro(dependentKey, function (sum, item) {\n      return sum + item;\n    }, 0);\n  }\n\n  /**\n    A computed property that calculates the maximum value in the\n    dependent array. This will return `-Infinity` when the dependent\n    array is empty.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      childAges: Ember.computed.mapBy('children', 'age'),\n      maxChildAge: Ember.computed.max('childAges')\n    });\n  \n    let lordByron = Person.create({ children: [] });\n  \n    lordByron.get('maxChildAge'); // -Infinity\n    lordByron.get('children').pushObject({\n      name: 'Augusta Ada Byron', age: 7\n    });\n    lordByron.get('maxChildAge'); // 7\n    lordByron.get('children').pushObjects([{\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }]);\n    lordByron.get('maxChildAge'); // 8\n    ```\n  \n    If the types of the arguments are not numbers,\n    they will be converted to numbers and the type\n    of the return value will always be `Number`.\n    For example, the max of a list of Date objects will be\n    the highest timestamp as a `Number`.\n    This behavior is consistent with `Math.max`.\n  \n    @method max\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computes the largest value in the dependentKey's array\n    @public\n  */\n\n  function max(dependentKey) {\n    return reduceMacro(dependentKey, function (max, item) {\n      return Math.max(max, item);\n    }, -Infinity);\n  }\n\n  /**\n    A computed property that calculates the minimum value in the\n    dependent array. This will return `Infinity` when the dependent\n    array is empty.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      childAges: Ember.computed.mapBy('children', 'age'),\n      minChildAge: Ember.computed.min('childAges')\n    });\n  \n    let lordByron = Person.create({ children: [] });\n  \n    lordByron.get('minChildAge'); // Infinity\n    lordByron.get('children').pushObject({\n      name: 'Augusta Ada Byron', age: 7\n    });\n    lordByron.get('minChildAge'); // 7\n    lordByron.get('children').pushObjects([{\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }]);\n    lordByron.get('minChildAge'); // 5\n    ```\n  \n    If the types of the arguments are not numbers,\n    they will be converted to numbers and the type\n    of the return value will always be `Number`.\n    For example, the min of a list of Date objects will be\n    the lowest timestamp as a `Number`.\n    This behavior is consistent with `Math.min`.\n  \n    @method min\n    @for Ember.computed\n    @param {String} dependentKey\n    @return {Ember.ComputedProperty} computes the smallest value in the dependentKey's array\n    @public\n  */\n\n  function min(dependentKey) {\n    return reduceMacro(dependentKey, function (min, item) {\n      return Math.min(min, item);\n    }, Infinity);\n  }\n\n  /**\n    Returns an array mapped via the callback\n  \n    The callback method you provide should have the following signature.\n    `item` is the current item in the iteration.\n    `index` is the integer index of the current item in the iteration.\n  \n    ```javascript\n    function(item, index);\n    ```\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      excitingChores: Ember.computed.map('chores', function(chore, index) {\n        return chore.toUpperCase() + '!';\n      })\n    });\n  \n    let hamster = Hamster.create({\n      chores: ['clean', 'write more unit tests']\n    });\n  \n    hamster.get('excitingChores'); // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n    ```\n  \n    @method map\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Function} callback\n    @return {Ember.ComputedProperty} an array mapped via the callback\n    @public\n  */\n\n  function map(dependentKey, callback) {\n    return arrayMacro(dependentKey, function (value) {\n      return value.map(callback, this);\n    });\n  }\n\n  /**\n    Returns an array mapped to the specified key.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      childAges: Ember.computed.mapBy('children', 'age')\n    });\n  \n    let lordByron = Person.create({ children: [] });\n  \n    lordByron.get('childAges'); // []\n    lordByron.get('children').pushObject({ name: 'Augusta Ada Byron', age: 7 });\n    lordByron.get('childAges'); // [7]\n    lordByron.get('children').pushObjects([{\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }]);\n    lordByron.get('childAges'); // [7, 5, 8]\n    ```\n  \n    @method mapBy\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {String} propertyKey\n    @return {Ember.ComputedProperty} an array mapped to the specified key\n    @public\n  */\n\n  function mapBy(dependentKey, propertyKey) {\n    _emberDebug.assert('Ember.computed.mapBy expects a property string for its second argument, ' + 'perhaps you meant to use \"map\"', typeof propertyKey === 'string');\n\n    return map(dependentKey + '.@each.' + propertyKey, function (item) {\n      return _emberMetal.get(item, propertyKey);\n    });\n  }\n\n  /**\n    Filters the array by the callback.\n  \n    The callback method you provide should have the following signature.\n    `item` is the current item in the iteration.\n    `index` is the integer index of the current item in the iteration.\n    `array` is the dependant array itself.\n  \n    ```javascript\n    function(item, index, array);\n    ```\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      remainingChores: Ember.computed.filter('chores', function(chore, index, array) {\n        return !chore.done;\n      })\n    });\n  \n    let hamster = Hamster.create({\n      chores: [\n        { name: 'cook', done: true },\n        { name: 'clean', done: true },\n        { name: 'write more unit tests', done: false }\n      ]\n    });\n  \n    hamster.get('remainingChores'); // [{name: 'write more unit tests', done: false}]\n    ```\n  \n    You can also use `@each.property` in your dependent key, the callback will still use the underlying array:\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      remainingChores: Ember.computed.filter('chores.@each.done', function(chore, index, array) {\n        return !chore.get('done');\n      })\n    });\n  \n    let hamster = Hamster.create({\n      chores: Ember.A([\n        Ember.Object.create({ name: 'cook', done: true }),\n        Ember.Object.create({ name: 'clean', done: true }),\n        Ember.Object.create({ name: 'write more unit tests', done: false })\n      ])\n    });\n    hamster.get('remainingChores'); // [{name: 'write more unit tests', done: false}]\n    hamster.get('chores').objectAt(2).set('done', true);\n    hamster.get('remainingChores'); // []\n    ```\n  \n  \n    @method filter\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {Function} callback\n    @return {Ember.ComputedProperty} the filtered array\n    @public\n  */\n\n  function filter(dependentKey, callback) {\n    return arrayMacro(dependentKey, function (value) {\n      return value.filter(callback, this);\n    });\n  }\n\n  /**\n    Filters the array by the property and value\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      remainingChores: Ember.computed.filterBy('chores', 'done', false)\n    });\n  \n    let hamster = Hamster.create({\n      chores: [\n        { name: 'cook', done: true },\n        { name: 'clean', done: true },\n        { name: 'write more unit tests', done: false }\n      ]\n    });\n  \n    hamster.get('remainingChores'); // [{ name: 'write more unit tests', done: false }]\n    ```\n  \n    @method filterBy\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {String} propertyKey\n    @param {*} value\n    @return {Ember.ComputedProperty} the filtered array\n    @public\n  */\n\n  function filterBy(dependentKey, propertyKey, value) {\n    var callback = undefined;\n\n    if (arguments.length === 2) {\n      callback = function (item) {\n        return _emberMetal.get(item, propertyKey);\n      };\n    } else {\n      callback = function (item) {\n        return _emberMetal.get(item, propertyKey) === value;\n      };\n    }\n\n    return filter(dependentKey + '.@each.' + propertyKey, callback);\n  }\n\n  /**\n    A computed property which returns a new array with all the unique\n    elements from one or more dependent arrays.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      uniqueFruits: Ember.computed.uniq('fruits')\n    });\n  \n    let hamster = Hamster.create({\n      fruits: [\n        'banana',\n        'grape',\n        'kale',\n        'banana'\n      ]\n    });\n  \n    hamster.get('uniqueFruits'); // ['banana', 'grape', 'kale']\n    ```\n  \n    @method uniq\n    @for Ember.computed\n    @param {String} propertyKey*\n    @return {Ember.ComputedProperty} computes a new array with all the\n    unique elements from the dependent array\n    @public\n  */\n\n  function uniq() {\n    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    return multiArrayMacro(args, function (dependentKeys) {\n      var _this2 = this;\n\n      var uniq = _emberRuntimeSystemNative_array.A();\n\n      dependentKeys.forEach(function (dependentKey) {\n        var value = _emberMetal.get(_this2, dependentKey);\n        if (_emberRuntimeUtils.isArray(value)) {\n          value.forEach(function (item) {\n            if (uniq.indexOf(item) === -1) {\n              uniq.push(item);\n            }\n          });\n        }\n      });\n\n      return uniq;\n    });\n  }\n\n  /**\n    A computed property which returns a new array with all the unique\n    elements from an array, with uniqueness determined by specific key.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      uniqueFruits: Ember.computed.uniqBy('fruits', 'id')\n    });\n    let hamster = Hamster.create({\n      fruits: [\n        { id: 1, 'banana' },\n        { id: 2, 'grape' },\n        { id: 3, 'peach' },\n        { id: 1, 'banana' }\n      ]\n    });\n    hamster.get('uniqueFruits'); // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n    ```\n  \n    @method uniqBy\n    @for Ember.computed\n    @param {String} dependentKey\n    @param {String} propertyKey\n    @return {Ember.ComputedProperty} computes a new array with all the\n    unique elements from the dependent array\n    @public\n  */\n\n  function uniqBy(dependentKey, propertyKey) {\n    return _emberMetal.computed(dependentKey + '.[]', function () {\n      var uniq = _emberRuntimeSystemNative_array.A();\n      var seen = Object.create(null);\n      var list = _emberMetal.get(this, dependentKey);\n      if (_emberRuntimeUtils.isArray(list)) {\n        list.forEach(function (item) {\n          var guid = _emberUtils.guidFor(_emberMetal.get(item, propertyKey));\n          if (!(guid in seen)) {\n            seen[guid] = true;\n            uniq.push(item);\n          }\n        });\n      }\n      return uniq;\n    }).readOnly();\n  }\n\n  /**\n    A computed property which returns a new array with all the unique\n    elements from one or more dependent arrays.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      uniqueFruits: Ember.computed.union('fruits', 'vegetables')\n    });\n  \n    let hamster = Hamster.create({\n      fruits: [\n        'banana',\n        'grape',\n        'kale',\n        'banana',\n        'tomato'\n      ],\n      vegetables: [\n        'tomato',\n        'carrot',\n        'lettuce'\n      ]\n    });\n  \n    hamster.get('uniqueFruits'); // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n    ```\n  \n    @method union\n    @for Ember.computed\n    @param {String} propertyKey*\n    @return {Ember.ComputedProperty} computes a new array with all the\n    unique elements from the dependent array\n    @public\n  */\n  var union = uniq;\n\n  exports.union = union;\n  /**\n    A computed property which returns a new array with all the elements\n    two or more dependent arrays have in common.\n  \n    Example\n  \n    ```javascript\n    let obj = Ember.Object.extend({\n      friendsInCommon: Ember.computed.intersect('adaFriends', 'charlesFriends')\n    }).create({\n      adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n      charlesFriends: ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n    });\n  \n    obj.get('friendsInCommon'); // ['William King', 'Mary Somerville']\n    ```\n  \n    @method intersect\n    @for Ember.computed\n    @param {String} propertyKey*\n    @return {Ember.ComputedProperty} computes a new array with all the\n    duplicated elements from the dependent arrays\n    @public\n  */\n\n  function intersect() {\n    for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n\n    return multiArrayMacro(args, function (dependentKeys) {\n      var _this3 = this;\n\n      var arrays = dependentKeys.map(function (dependentKey) {\n        var array = _emberMetal.get(_this3, dependentKey);\n\n        return _emberRuntimeUtils.isArray(array) ? array : [];\n      });\n\n      var results = arrays.pop().filter(function (candidate) {\n        for (var i = 0; i < arrays.length; i++) {\n          var found = false;\n          var array = arrays[i];\n          for (var j = 0; j < array.length; j++) {\n            if (array[j] === candidate) {\n              found = true;\n              break;\n            }\n          }\n\n          if (found === false) {\n            return false;\n          }\n        }\n\n        return true;\n      });\n\n      return _emberRuntimeSystemNative_array.A(results);\n    });\n  }\n\n  /**\n    A computed property which returns a new array with all the\n    properties from the first dependent array that are not in the second\n    dependent array.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      likes: ['banana', 'grape', 'kale'],\n      wants: Ember.computed.setDiff('likes', 'fruits')\n    });\n  \n    let hamster = Hamster.create({\n      fruits: [\n        'grape',\n        'kale',\n      ]\n    });\n  \n    hamster.get('wants'); // ['banana']\n    ```\n  \n    @method setDiff\n    @for Ember.computed\n    @param {String} setAProperty\n    @param {String} setBProperty\n    @return {Ember.ComputedProperty} computes a new array with all the\n    items from the first dependent array that are not in the second\n    dependent array\n    @public\n  */\n\n  function setDiff(setAProperty, setBProperty) {\n    if (arguments.length !== 2) {\n      throw new _emberDebug.Error('setDiff requires exactly two dependent arrays.');\n    }\n\n    return _emberMetal.computed(setAProperty + '.[]', setBProperty + '.[]', function () {\n      var setA = this.get(setAProperty);\n      var setB = this.get(setBProperty);\n\n      if (!_emberRuntimeUtils.isArray(setA)) {\n        return _emberRuntimeSystemNative_array.A();\n      }\n      if (!_emberRuntimeUtils.isArray(setB)) {\n        return _emberRuntimeSystemNative_array.A(setA);\n      }\n\n      return setA.filter(function (x) {\n        return setB.indexOf(x) === -1;\n      });\n    }).readOnly();\n  }\n\n  /**\n    A computed property that returns the array of values\n    for the provided dependent properties.\n  \n    Example\n  \n    ```javascript\n    let Hamster = Ember.Object.extend({\n      clothes: Ember.computed.collect('hat', 'shirt')\n    });\n  \n    let hamster = Hamster.create();\n  \n    hamster.get('clothes'); // [null, null]\n    hamster.set('hat', 'Camp Hat');\n    hamster.set('shirt', 'Camp Shirt');\n    hamster.get('clothes'); // ['Camp Hat', 'Camp Shirt']\n    ```\n  \n    @method collect\n    @for Ember.computed\n    @param {String} dependentKey*\n    @return {Ember.ComputedProperty} computed property which maps\n    values of all passed in properties to an array.\n    @public\n  */\n\n  function collect() {\n    for (var _len3 = arguments.length, dependentKeys = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n      dependentKeys[_key3] = arguments[_key3];\n    }\n\n    return multiArrayMacro(dependentKeys, function () {\n      var properties = _emberMetal.getProperties(this, dependentKeys);\n      var res = _emberRuntimeSystemNative_array.A();\n      for (var key in properties) {\n        if (properties.hasOwnProperty(key)) {\n          if (_emberMetal.isNone(properties[key])) {\n            res.push(null);\n          } else {\n            res.push(properties[key]);\n          }\n        }\n      }\n      return res;\n    });\n  }\n\n  /**\n    A computed property which returns a new array with all the\n    properties from the first dependent array sorted based on a property\n    or sort function.\n  \n    The callback method you provide should have the following signature:\n  \n    ```javascript\n    function(itemA, itemB);\n    ```\n  \n    - `itemA` the first item to compare.\n    - `itemB` the second item to compare.\n  \n    This function should return negative number (e.g. `-1`) when `itemA` should come before\n    `itemB`. It should return positive number (e.g. `1`) when `itemA` should come after\n    `itemB`. If the `itemA` and `itemB` are equal this function should return `0`.\n  \n    Therefore, if this function is comparing some numeric values, simple `itemA - itemB` or\n    `itemA.get( 'foo' ) - itemB.get( 'foo' )` can be used instead of series of `if`.\n  \n    Example\n  \n    ```javascript\n    let ToDoList = Ember.Object.extend({\n      // using standard ascending sort\n      todosSorting: ['name'],\n      sortedTodos: Ember.computed.sort('todos', 'todosSorting'),\n  \n      // using descending sort\n      todosSortingDesc: ['name:desc'],\n      sortedTodosDesc: Ember.computed.sort('todos', 'todosSortingDesc'),\n  \n      // using a custom sort function\n      priorityTodos: Ember.computed.sort('todos', function(a, b){\n        if (a.priority > b.priority) {\n          return 1;\n        } else if (a.priority < b.priority) {\n          return -1;\n        }\n  \n        return 0;\n      })\n    });\n  \n    let todoList = ToDoList.create({todos: [\n      { name: 'Unit Test', priority: 2 },\n      { name: 'Documentation', priority: 3 },\n      { name: 'Release', priority: 1 }\n    ]});\n  \n    todoList.get('sortedTodos');      // [{ name:'Documentation', priority:3 }, { name:'Release', priority:1 }, { name:'Unit Test', priority:2 }]\n    todoList.get('sortedTodosDesc');  // [{ name:'Unit Test', priority:2 }, { name:'Release', priority:1 }, { name:'Documentation', priority:3 }]\n    todoList.get('priorityTodos');    // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n    ```\n  \n    @method sort\n    @for Ember.computed\n    @param {String} itemsKey\n    @param {String or Function} sortDefinition a dependent key to an\n    array of sort properties (add `:desc` to the arrays sort properties to sort descending) or a function to use when sorting\n    @return {Ember.ComputedProperty} computes a new sorted array based\n    on the sort property array or callback function\n    @public\n  */\n\n  function sort(itemsKey, sortDefinition) {\n    _emberDebug.assert('Ember.computed.sort requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2);\n\n    if (typeof sortDefinition === 'function') {\n      return customSort(itemsKey, sortDefinition);\n    } else {\n      return propertySort(itemsKey, sortDefinition);\n    }\n  }\n\n  function customSort(itemsKey, comparator) {\n    return arrayMacro(itemsKey, function (value) {\n      var _this4 = this;\n\n      return value.slice().sort(function (x, y) {\n        return comparator.call(_this4, x, y);\n      });\n    });\n  }\n\n  // This one needs to dynamically set up and tear down observers on the itemsKey\n  // depending on the sortProperties\n  function propertySort(itemsKey, sortPropertiesKey) {\n    var cp = new _emberMetal.ComputedProperty(function (key) {\n      var _this5 = this;\n\n      var itemsKeyIsAtThis = itemsKey === '@this';\n      var sortProperties = _emberMetal.get(this, sortPropertiesKey);\n\n      _emberDebug.assert('The sort definition for \\'' + key + '\\' on ' + this + ' must be a function or an array of strings', _emberRuntimeUtils.isArray(sortProperties) && sortProperties.every(function (s) {\n        return typeof s === 'string';\n      }));\n\n      var normalizedSortProperties = normalizeSortProperties(sortProperties);\n\n      // Add/remove property observers as required.\n      var activeObserversMap = cp._activeObserverMap || (cp._activeObserverMap = new _emberMetal.WeakMap());\n      var activeObservers = activeObserversMap.get(this);\n\n      if (activeObservers) {\n        activeObservers.forEach(function (args) {\n          return _emberMetal.removeObserver.apply(undefined, args);\n        });\n      }\n\n      function sortPropertyDidChange() {\n        this.notifyPropertyChange(key);\n      }\n\n      activeObservers = normalizedSortProperties.map(function (_ref) {\n        var prop = _ref[0];\n\n        var path = itemsKeyIsAtThis ? '@each.' + prop : itemsKey + '.@each.' + prop;\n        var args = [_this5, path, sortPropertyDidChange];\n        _emberMetal.addObserver.apply(undefined, args);\n        return args;\n      });\n\n      activeObserversMap.set(this, activeObservers);\n\n      // Sort and return the array.\n      var items = itemsKeyIsAtThis ? this : _emberMetal.get(this, itemsKey);\n\n      if (_emberRuntimeUtils.isArray(items)) {\n        return sortByNormalizedSortProperties(items, normalizedSortProperties);\n      } else {\n        return _emberRuntimeSystemNative_array.A();\n      }\n    });\n\n    cp._activeObserverMap = undefined;\n\n    return cp.property(sortPropertiesKey + '.[]').readOnly();\n  }\n\n  function normalizeSortProperties(sortProperties) {\n    return sortProperties.map(function (p) {\n      var _p$split = p.split(':');\n\n      var prop = _p$split[0];\n      var direction = _p$split[1];\n\n      direction = direction || 'asc';\n\n      return [prop, direction];\n    });\n  }\n\n  function sortByNormalizedSortProperties(items, normalizedSortProperties) {\n    return _emberRuntimeSystemNative_array.A(items.slice().sort(function (itemA, itemB) {\n      for (var i = 0; i < normalizedSortProperties.length; i++) {\n        var _normalizedSortProperties$i = normalizedSortProperties[i];\n        var prop = _normalizedSortProperties$i[0];\n        var direction = _normalizedSortProperties$i[1];\n\n        var result = _emberRuntimeCompare.default(_emberMetal.get(itemA, prop), _emberMetal.get(itemB, prop));\n        if (result !== 0) {\n          return direction === 'desc' ? -1 * result : result;\n        }\n      }\n\n      return 0;\n    }));\n  }\n});\nenifed('ember-runtime/controllers/controller', ['exports', 'ember-debug', 'ember-runtime/system/object', 'ember-runtime/mixins/controller', 'ember-runtime/inject', 'ember-runtime/mixins/action_handler'], function (exports, _emberDebug, _emberRuntimeSystemObject, _emberRuntimeMixinsController, _emberRuntimeInject, _emberRuntimeMixinsAction_handler) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  /**\n    @class Controller\n    @namespace Ember\n    @extends Ember.Object\n    @uses Ember.ControllerMixin\n    @public\n  */\n  var Controller = _emberRuntimeSystemObject.default.extend(_emberRuntimeMixinsController.default);\n\n  _emberRuntimeMixinsAction_handler.deprecateUnderscoreActions(Controller);\n\n  function controllerInjectionHelper(factory) {\n    _emberDebug.assert('Defining an injected controller property on a ' + 'non-controller is not allowed.', _emberRuntimeMixinsController.default.detect(factory.PrototypeMixin));\n  }\n\n  /**\n    Creates a property that lazily looks up another controller in the container.\n    Can only be used when defining another controller.\n  \n    Example:\n  \n    ```javascript\n    App.PostController = Ember.Controller.extend({\n      posts: Ember.inject.controller()\n    });\n    ```\n  \n    This example will create a `posts` property on the `post` controller that\n    looks up the `posts` controller in the container, making it easy to\n    reference other controllers. This is functionally equivalent to:\n  \n    ```javascript\n    App.PostController = Ember.Controller.extend({\n      needs: 'posts',\n      posts: Ember.computed.alias('controllers.posts')\n    });\n    ```\n  \n    @method controller\n    @since 1.10.0\n    @for Ember.inject\n    @param {String} name (optional) name of the controller to inject, defaults\n           to the property's name\n    @return {Ember.InjectedProperty} injection descriptor instance\n    @public\n  */\n  _emberRuntimeInject.createInjectionHelper('controller', controllerInjectionHelper);\n\n  exports.default = Controller;\n});\nenifed('ember-runtime/copy', ['exports', 'ember-debug', 'ember-runtime/system/object', 'ember-runtime/mixins/copyable'], function (exports, _emberDebug, _emberRuntimeSystemObject, _emberRuntimeMixinsCopyable) {\n  'use strict';\n\n  exports.default = copy;\n\n  function _copy(obj, deep, seen, copies) {\n    var ret = undefined,\n        loc = undefined,\n        key = undefined;\n\n    // primitive data types are immutable, just return them.\n    if (typeof obj !== 'object' || obj === null) {\n      return obj;\n    }\n\n    // avoid cyclical loops\n    if (deep && (loc = seen.indexOf(obj)) >= 0) {\n      return copies[loc];\n    }\n\n    _emberDebug.assert('Cannot clone an Ember.Object that does not implement Ember.Copyable', !(obj instanceof _emberRuntimeSystemObject.default) || _emberRuntimeMixinsCopyable.default && _emberRuntimeMixinsCopyable.default.detect(obj));\n\n    // IMPORTANT: this specific test will detect a native array only. Any other\n    // object will need to implement Copyable.\n    if (Array.isArray(obj)) {\n      ret = obj.slice();\n\n      if (deep) {\n        loc = ret.length;\n\n        while (--loc >= 0) {\n          ret[loc] = _copy(ret[loc], deep, seen, copies);\n        }\n      }\n    } else if (_emberRuntimeMixinsCopyable.default && _emberRuntimeMixinsCopyable.default.detect(obj)) {\n      ret = obj.copy(deep, seen, copies);\n    } else if (obj instanceof Date) {\n      ret = new Date(obj.getTime());\n    } else {\n      ret = {};\n\n      for (key in obj) {\n        // support Null prototype\n        if (!Object.prototype.hasOwnProperty.call(obj, key)) {\n          continue;\n        }\n\n        // Prevents browsers that don't respect non-enumerability from\n        // copying internal Ember properties\n        if (key.substring(0, 2) === '__') {\n          continue;\n        }\n\n        ret[key] = deep ? _copy(obj[key], deep, seen, copies) : obj[key];\n      }\n    }\n\n    if (deep) {\n      seen.push(obj);\n      copies.push(ret);\n    }\n\n    return ret;\n  }\n\n  /**\n    Creates a shallow copy of the passed object. A deep copy of the object is\n    returned if the optional `deep` argument is `true`.\n  \n    If the passed object implements the `Ember.Copyable` interface, then this\n    function will delegate to the object's `copy()` method and return the\n    result. See `Ember.Copyable` for further details.\n  \n    For primitive values (which are immutable in JavaScript), the passed object\n    is simply returned.\n  \n    @method copy\n    @for Ember\n    @param {Object} obj The object to clone\n    @param {Boolean} [deep=false] If true, a deep copy of the object is made.\n    @return {Object} The copied object\n    @public\n  */\n\n  function copy(obj, deep) {\n    // fast paths\n    if ('object' !== typeof obj || obj === null) {\n      return obj; // can't copy primitives\n    }\n\n    if (_emberRuntimeMixinsCopyable.default && _emberRuntimeMixinsCopyable.default.detect(obj)) {\n      return obj.copy(deep);\n    }\n\n    return _copy(obj, deep, deep ? [] : null, deep ? [] : null);\n  }\n});\nenifed('ember-runtime/ext/function', ['exports', 'ember-environment', 'ember-metal', 'ember-debug'], function (exports, _emberEnvironment, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  var a_slice = Array.prototype.slice;\n  var FunctionPrototype = Function.prototype;\n\n  if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n    /**\n      The `property` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      `true`, which is the default.\n       Computed properties allow you to treat a function like a property:\n       ```javascript\n      MyApp.President = Ember.Object.extend({\n        firstName: '',\n        lastName:  '',\n         fullName: function() {\n          return this.get('firstName') + ' ' + this.get('lastName');\n        }.property() // Call this flag to mark the function as a property\n      });\n       let president = MyApp.President.create({\n        firstName: 'Barack',\n        lastName: 'Obama'\n      });\n       president.get('fullName'); // 'Barack Obama'\n      ```\n       Treating a function like a property is useful because they can work with\n      bindings, just like any other property.\n       Many computed properties have dependencies on other properties. For\n      example, in the above example, the `fullName` property depends on\n      `firstName` and `lastName` to determine its value. You can tell Ember\n      about these dependencies like this:\n       ```javascript\n      MyApp.President = Ember.Object.extend({\n        firstName: '',\n        lastName:  '',\n         fullName: function() {\n          return this.get('firstName') + ' ' + this.get('lastName');\n           // Tell Ember.js that this computed property depends on firstName\n          // and lastName\n        }.property('firstName', 'lastName')\n      });\n      ```\n       Make sure you list these dependencies so Ember knows when to update\n      bindings that connect to a computed property. Changing a dependency\n      will not immediately trigger an update of the computed property, but\n      will instead clear the cache so that it is updated when the next `get`\n      is called on the property.\n       See [Ember.ComputedProperty](/api/classes/Ember.ComputedProperty.html), [Ember.computed](/api/classes/Ember.computed.html).\n       @method property\n      @for Function\n      @public\n    */\n    FunctionPrototype.property = function () {\n      var ret = _emberMetal.computed(this);\n      // ComputedProperty.prototype.property expands properties; no need for us to\n      // do so here.\n      return ret.property.apply(ret, arguments);\n    };\n\n    /**\n      The `observes` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      true, which is the default.\n       You can observe property changes simply by adding the `observes`\n      call to the end of your method declarations in classes that you write.\n      For example:\n       ```javascript\n      Ember.Object.extend({\n        valueObserver: function() {\n          // Executes whenever the \"value\" property changes\n        }.observes('value')\n      });\n      ```\n       In the future this method may become asynchronous.\n       See `Ember.observer`.\n       @method observes\n      @for Function\n      @public\n    */\n    FunctionPrototype.observes = function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      args.push(this);\n      return _emberMetal.observer.apply(this, args);\n    };\n\n    FunctionPrototype._observesImmediately = function () {\n      _emberDebug.assert('Immediate observers must observe internal properties only, ' + 'not properties on other objects.', function checkIsInternalProperty() {\n        for (var i = 0; i < arguments.length; i++) {\n          if (arguments[i].indexOf('.') !== -1) {\n            return false;\n          }\n        }\n        return true;\n      });\n\n      // observes handles property expansion\n      return this.observes.apply(this, arguments);\n    };\n    /**\n      The `observesImmediately` extension of Javascript's Function prototype is\n      available when `EmberENV.EXTEND_PROTOTYPES` or\n      `EmberENV.EXTEND_PROTOTYPES.Function` is true, which is the default.\n       You can observe property changes simply by adding the `observesImmediately`\n      call to the end of your method declarations in classes that you write.\n      For example:\n       ```javascript\n      Ember.Object.extend({\n        valueObserver: function() {\n          // Executes immediately after the \"value\" property changes\n        }.observesImmediately('value')\n      });\n      ```\n       In the future, `observes` may become asynchronous. In this event,\n      `observesImmediately` will maintain the synchronous behavior.\n       See `Ember.immediateObserver`.\n       @method observesImmediately\n      @for Function\n      @deprecated\n      @private\n    */\n    FunctionPrototype.observesImmediately = _emberDebug.deprecateFunc('Function#observesImmediately is deprecated. Use Function#observes instead', { id: 'ember-runtime.ext-function', until: '3.0.0' }, FunctionPrototype._observesImmediately);\n\n    /**\n      The `on` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      true, which is the default.\n       You can listen for events simply by adding the `on` call to the end of\n      your method declarations in classes or mixins that you write. For example:\n       ```javascript\n      Ember.Mixin.create({\n        doSomethingWithElement: function() {\n          // Executes whenever the \"didInsertElement\" event fires\n        }.on('didInsertElement')\n      });\n      ```\n       See `Ember.on`.\n       @method on\n      @for Function\n      @public\n    */\n    FunctionPrototype.on = function () {\n      var events = a_slice.call(arguments);\n      this.__ember_listens__ = events;\n\n      return this;\n    };\n  }\n});\nenifed('ember-runtime/ext/rsvp', ['exports', 'rsvp', 'ember-metal', 'ember-debug'], function (exports, _rsvp, _emberMetal, _emberDebug) {\n  'use strict';\n\n  exports.onerrorDefault = onerrorDefault;\n\n  var backburner = _emberMetal.run.backburner;\n  _emberMetal.run._addQueue('rsvpAfter', 'destroy');\n\n  _rsvp.configure('async', function (callback, promise) {\n    backburner.schedule('actions', null, callback, promise);\n  });\n\n  _rsvp.configure('after', function (cb) {\n    backburner.schedule('rsvpAfter', null, cb);\n  });\n\n  _rsvp.on('error', onerrorDefault);\n\n  function onerrorDefault(reason) {\n    var error = errorFor(reason);\n    if (error) {\n      _emberMetal.dispatchError(error);\n    }\n  }\n\n  function errorFor(reason) {\n    if (!reason) return;\n\n    if (reason.errorThrown) {\n      return unwrapErrorThrown(reason);\n    }\n\n    if (reason.name === 'UnrecognizedURLError') {\n      _emberDebug.assert('The URL \\'' + reason.message + '\\' did not match any routes in your application', false);\n      return;\n    }\n\n    if (reason.name === 'TransitionAborted') {\n      return;\n    }\n\n    return reason;\n  }\n\n  function unwrapErrorThrown(reason) {\n    var error = reason.errorThrown;\n    if (typeof error === 'string') {\n      error = new Error(error);\n    }\n    Object.defineProperty(error, '__reason_with_error_thrown__', {\n      value: reason,\n      enumerable: false\n    });\n    return error;\n  }\n\n  exports.default = _rsvp;\n});\nenifed('ember-runtime/ext/string', ['exports', 'ember-environment', 'ember-runtime/system/string'], function (exports, _emberEnvironment, _emberRuntimeSystemString) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  var StringPrototype = String.prototype;\n\n  if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n    /**\n      See [Ember.String.fmt](/api/classes/Ember.String.html#method_fmt).\n       @method fmt\n      @for String\n      @private\n      @deprecated\n    */\n    StringPrototype.fmt = function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      return _emberRuntimeSystemString.fmt(this, args);\n    };\n\n    /**\n      See [Ember.String.w](/api/classes/Ember.String.html#method_w).\n       @method w\n      @for String\n      @private\n    */\n    StringPrototype.w = function () {\n      return _emberRuntimeSystemString.w(this);\n    };\n\n    /**\n      See [Ember.String.loc](/api/classes/Ember.String.html#method_loc).\n       @method loc\n      @for String\n      @private\n    */\n    StringPrototype.loc = function () {\n      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n\n      return _emberRuntimeSystemString.loc(this, args);\n    };\n\n    /**\n      See [Ember.String.camelize](/api/classes/Ember.String.html#method_camelize).\n       @method camelize\n      @for String\n      @private\n    */\n    StringPrototype.camelize = function () {\n      return _emberRuntimeSystemString.camelize(this);\n    };\n\n    /**\n      See [Ember.String.decamelize](/api/classes/Ember.String.html#method_decamelize).\n       @method decamelize\n      @for String\n      @private\n    */\n    StringPrototype.decamelize = function () {\n      return _emberRuntimeSystemString.decamelize(this);\n    };\n\n    /**\n      See [Ember.String.dasherize](/api/classes/Ember.String.html#method_dasherize).\n       @method dasherize\n      @for String\n      @private\n    */\n    StringPrototype.dasherize = function () {\n      return _emberRuntimeSystemString.dasherize(this);\n    };\n\n    /**\n      See [Ember.String.underscore](/api/classes/Ember.String.html#method_underscore).\n       @method underscore\n      @for String\n      @private\n    */\n    StringPrototype.underscore = function () {\n      return _emberRuntimeSystemString.underscore(this);\n    };\n\n    /**\n      See [Ember.String.classify](/api/classes/Ember.String.html#method_classify).\n       @method classify\n      @for String\n      @private\n    */\n    StringPrototype.classify = function () {\n      return _emberRuntimeSystemString.classify(this);\n    };\n\n    /**\n      See [Ember.String.capitalize](/api/classes/Ember.String.html#method_capitalize).\n       @method capitalize\n      @for String\n      @private\n    */\n    StringPrototype.capitalize = function () {\n      return _emberRuntimeSystemString.capitalize(this);\n    };\n  }\n});\nenifed('ember-runtime/index', ['exports', 'ember-runtime/ext/string', 'ember-runtime/ext/function', 'ember-runtime/system/object', 'ember-runtime/system/string', 'ember-runtime/mixins/registry_proxy', 'ember-runtime/mixins/container_proxy', 'ember-runtime/copy', 'ember-runtime/inject', 'ember-runtime/compare', 'ember-runtime/is-equal', 'ember-runtime/mixins/array', 'ember-runtime/mixins/comparable', 'ember-runtime/system/namespace', 'ember-runtime/system/array_proxy', 'ember-runtime/system/object_proxy', 'ember-runtime/system/core_object', 'ember-runtime/system/native_array', 'ember-runtime/mixins/action_handler', 'ember-runtime/mixins/copyable', 'ember-runtime/mixins/enumerable', 'ember-runtime/mixins/freezable', 'ember-runtime/mixins/-proxy', 'ember-runtime/system/lazy_load', 'ember-runtime/mixins/observable', 'ember-runtime/mixins/mutable_enumerable', 'ember-runtime/mixins/mutable_array', 'ember-runtime/mixins/target_action_support', 'ember-runtime/mixins/evented', 'ember-runtime/mixins/promise_proxy', 'ember-runtime/computed/computed_macros', 'ember-runtime/computed/reduce_computed_macros', 'ember-runtime/controllers/controller', 'ember-runtime/mixins/controller', 'ember-runtime/system/service', 'ember-runtime/ext/rsvp', 'ember-runtime/utils', 'ember-runtime/string_registry'], function (exports, _emberRuntimeExtString, _emberRuntimeExtFunction, _emberRuntimeSystemObject, _emberRuntimeSystemString, _emberRuntimeMixinsRegistry_proxy, _emberRuntimeMixinsContainer_proxy, _emberRuntimeCopy, _emberRuntimeInject, _emberRuntimeCompare, _emberRuntimeIsEqual, _emberRuntimeMixinsArray, _emberRuntimeMixinsComparable, _emberRuntimeSystemNamespace, _emberRuntimeSystemArray_proxy, _emberRuntimeSystemObject_proxy, _emberRuntimeSystemCore_object, _emberRuntimeSystemNative_array, _emberRuntimeMixinsAction_handler, _emberRuntimeMixinsCopyable, _emberRuntimeMixinsEnumerable, _emberRuntimeMixinsFreezable, _emberRuntimeMixinsProxy, _emberRuntimeSystemLazy_load, _emberRuntimeMixinsObservable, _emberRuntimeMixinsMutable_enumerable, _emberRuntimeMixinsMutable_array, _emberRuntimeMixinsTarget_action_support, _emberRuntimeMixinsEvented, _emberRuntimeMixinsPromise_proxy, _emberRuntimeComputedComputed_macros, _emberRuntimeComputedReduce_computed_macros, _emberRuntimeControllersController, _emberRuntimeMixinsController, _emberRuntimeSystemService, _emberRuntimeExtRsvp, _emberRuntimeUtils, _emberRuntimeString_registry) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  exports.Object = _emberRuntimeSystemObject.default;\n  exports.FrameworkObject = _emberRuntimeSystemObject.FrameworkObject;\n  exports.String = _emberRuntimeSystemString.default;\n  exports.RegistryProxyMixin = _emberRuntimeMixinsRegistry_proxy.default;\n  exports.buildFakeRegistryWithDeprecations = _emberRuntimeMixinsRegistry_proxy.buildFakeRegistryWithDeprecations;\n  exports.ContainerProxyMixin = _emberRuntimeMixinsContainer_proxy.default;\n  exports.copy = _emberRuntimeCopy.default;\n  exports.inject = _emberRuntimeInject.default;\n  exports.compare = _emberRuntimeCompare.default;\n  exports.isEqual = _emberRuntimeIsEqual.default;\n  exports.Array = _emberRuntimeMixinsArray.default;\n  exports.objectAt = _emberRuntimeMixinsArray.objectAt;\n  exports.isEmberArray = _emberRuntimeMixinsArray.isEmberArray;\n  exports.addArrayObserver = _emberRuntimeMixinsArray.addArrayObserver;\n  exports.removeArrayObserver = _emberRuntimeMixinsArray.removeArrayObserver;\n  exports.Comparable = _emberRuntimeMixinsComparable.default;\n  exports.Namespace = _emberRuntimeSystemNamespace.default;\n  exports.isNamespaceSearchDisabled = _emberRuntimeSystemNamespace.isSearchDisabled;\n  exports.setNamespaceSearchDisabled = _emberRuntimeSystemNamespace.setSearchDisabled;\n  exports.ArrayProxy = _emberRuntimeSystemArray_proxy.default;\n  exports.ObjectProxy = _emberRuntimeSystemObject_proxy.default;\n  exports.CoreObject = _emberRuntimeSystemCore_object.default;\n  exports.NativeArray = _emberRuntimeSystemNative_array.default;\n  exports.A = _emberRuntimeSystemNative_array.A;\n  exports.ActionHandler = _emberRuntimeMixinsAction_handler.default;\n  exports.deprecateUnderscoreActions = _emberRuntimeMixinsAction_handler.deprecateUnderscoreActions;\n  exports.Copyable = _emberRuntimeMixinsCopyable.default;\n  exports.Enumerable = _emberRuntimeMixinsEnumerable.default;\n  exports.Freezable = _emberRuntimeMixinsFreezable.Freezable;\n  exports.FROZEN_ERROR = _emberRuntimeMixinsFreezable.FROZEN_ERROR;\n  exports._ProxyMixin = _emberRuntimeMixinsProxy.default;\n  exports.onLoad = _emberRuntimeSystemLazy_load.onLoad;\n  exports.runLoadHooks = _emberRuntimeSystemLazy_load.runLoadHooks;\n  exports._loaded = _emberRuntimeSystemLazy_load._loaded;\n  exports.Observable = _emberRuntimeMixinsObservable.default;\n  exports.MutableEnumerable = _emberRuntimeMixinsMutable_enumerable.default;\n  exports.MutableArray = _emberRuntimeMixinsMutable_array.default;\n  exports.removeAt = _emberRuntimeMixinsMutable_array.removeAt;\n  exports.TargetActionSupport = _emberRuntimeMixinsTarget_action_support.default;\n  exports.Evented = _emberRuntimeMixinsEvented.default;\n  exports.PromiseProxyMixin = _emberRuntimeMixinsPromise_proxy.default;\n  exports.empty = _emberRuntimeComputedComputed_macros.empty;\n  exports.notEmpty = _emberRuntimeComputedComputed_macros.notEmpty;\n  exports.none = _emberRuntimeComputedComputed_macros.none;\n  exports.not = _emberRuntimeComputedComputed_macros.not;\n  exports.bool = _emberRuntimeComputedComputed_macros.bool;\n  exports.match = _emberRuntimeComputedComputed_macros.match;\n  exports.equal = _emberRuntimeComputedComputed_macros.equal;\n  exports.gt = _emberRuntimeComputedComputed_macros.gt;\n  exports.gte = _emberRuntimeComputedComputed_macros.gte;\n  exports.lt = _emberRuntimeComputedComputed_macros.lt;\n  exports.lte = _emberRuntimeComputedComputed_macros.lte;\n  exports.oneWay = _emberRuntimeComputedComputed_macros.oneWay;\n  exports.readOnly = _emberRuntimeComputedComputed_macros.readOnly;\n  exports.deprecatingAlias = _emberRuntimeComputedComputed_macros.deprecatingAlias;\n  exports.and = _emberRuntimeComputedComputed_macros.and;\n  exports.or = _emberRuntimeComputedComputed_macros.or;\n  exports.sum = _emberRuntimeComputedReduce_computed_macros.sum;\n  exports.min = _emberRuntimeComputedReduce_computed_macros.min;\n  exports.max = _emberRuntimeComputedReduce_computed_macros.max;\n  exports.map = _emberRuntimeComputedReduce_computed_macros.map;\n  exports.sort = _emberRuntimeComputedReduce_computed_macros.sort;\n  exports.setDiff = _emberRuntimeComputedReduce_computed_macros.setDiff;\n  exports.mapBy = _emberRuntimeComputedReduce_computed_macros.mapBy;\n  exports.filter = _emberRuntimeComputedReduce_computed_macros.filter;\n  exports.filterBy = _emberRuntimeComputedReduce_computed_macros.filterBy;\n  exports.uniq = _emberRuntimeComputedReduce_computed_macros.uniq;\n  exports.uniqBy = _emberRuntimeComputedReduce_computed_macros.uniqBy;\n  exports.union = _emberRuntimeComputedReduce_computed_macros.union;\n  exports.intersect = _emberRuntimeComputedReduce_computed_macros.intersect;\n  exports.collect = _emberRuntimeComputedReduce_computed_macros.collect;\n  exports.Controller = _emberRuntimeControllersController.default;\n  exports.ControllerMixin = _emberRuntimeMixinsController.default;\n  exports.Service = _emberRuntimeSystemService.default;\n  exports.RSVP = _emberRuntimeExtRsvp.default;\n  exports.onerrorDefault = _emberRuntimeExtRsvp.onerrorDefault;\n  // just for side effect of extending Ember.RSVP\n  exports.isArray = _emberRuntimeUtils.isArray;\n  exports.typeOf = _emberRuntimeUtils.typeOf;\n  exports.getStrings = _emberRuntimeString_registry.getStrings;\n  exports.setStrings = _emberRuntimeString_registry.setStrings;\n});\n// just for side effect of extending String.prototype\n// just for side effect of extending Function.prototype\nenifed('ember-runtime/inject', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  'use strict';\n\n  exports.default = inject;\n  exports.createInjectionHelper = createInjectionHelper;\n  exports.validatePropertyInjections = validatePropertyInjections;\n\n  /**\n    Namespace for injection helper methods.\n  \n    @class inject\n    @namespace Ember\n    @static\n    @public\n  */\n\n  function inject() {\n    _emberDebug.assert('Injected properties must be created through helpers, see \\'' + Object.keys(inject).join('\"', '\"') + '\\'');\n  }\n\n  // Dictionary of injection validations by type, added to by `createInjectionHelper`\n  var typeValidators = {};\n\n  /**\n    This method allows other Ember modules to register injection helpers for a\n    given container type. Helpers are exported to the `inject` namespace as the\n    container type itself.\n  \n    @private\n    @method createInjectionHelper\n    @since 1.10.0\n    @for Ember\n    @param {String} type The container type the helper will inject\n    @param {Function} validator A validation callback that is executed at mixin-time\n  */\n\n  function createInjectionHelper(type, validator) {\n    typeValidators[type] = validator;\n\n    inject[type] = function (name) {\n      return new _emberMetal.InjectedProperty(type, name);\n    };\n  }\n\n  /**\n    Validation function that runs per-type validation functions once for each\n    injected type encountered.\n  \n    @private\n    @method validatePropertyInjections\n    @since 1.10.0\n    @for Ember\n    @param {Object} factory The factory object\n  */\n\n  function validatePropertyInjections(factory) {\n    var proto = factory.proto();\n    var types = [];\n\n    for (var key in proto) {\n      var desc = proto[key];\n      if (desc instanceof _emberMetal.InjectedProperty && types.indexOf(desc.type) === -1) {\n        types.push(desc.type);\n      }\n    }\n\n    if (types.length) {\n      for (var i = 0; i < types.length; i++) {\n        var validator = typeValidators[types[i]];\n\n        if (typeof validator === 'function') {\n          validator(factory);\n        }\n      }\n    }\n\n    return true;\n  }\n});\nenifed('ember-runtime/is-equal', ['exports'], function (exports) {\n  /**\n    Compares two objects, returning true if they are equal.\n  \n    ```javascript\n    Ember.isEqual('hello', 'hello');                   // true\n    Ember.isEqual(1, 2);                               // false\n    ```\n  \n    `isEqual` is a more specific comparison than a triple equal comparison.\n    It will call the `isEqual` instance method on the objects being\n    compared, allowing finer control over when objects should be considered\n    equal to each other.\n  \n    ```javascript\n    let Person = Ember.Object.extend({\n      isEqual(other) { return this.ssn == other.ssn; }\n    });\n  \n    let personA = Person.create({name: 'Muhammad Ali', ssn: '123-45-6789'});\n    let personB = Person.create({name: 'Cassius Clay', ssn: '123-45-6789'});\n  \n    Ember.isEqual(personA, personB); // true\n    ```\n  \n    Due to the expense of array comparisons, collections will never be equal to\n    each other even if each of their items are equal to each other.\n  \n    ```javascript\n    Ember.isEqual([4, 2], [4, 2]);                     // false\n    ```\n  \n    @method isEqual\n    @for Ember\n    @param {Object} a first object to compare\n    @param {Object} b second object to compare\n    @return {Boolean}\n    @public\n  */\n  'use strict';\n\n  exports.default = isEqual;\n\n  function isEqual(a, b) {\n    if (a && typeof a.isEqual === 'function') {\n      return a.isEqual(b);\n    }\n\n    if (a instanceof Date && b instanceof Date) {\n      return a.getTime() === b.getTime();\n    }\n\n    return a === b;\n  }\n});\nenifed('ember-runtime/mixins/-proxy', ['exports', '@glimmer/reference', 'ember-metal', 'ember-debug', 'ember-runtime/computed/computed_macros'], function (exports, _glimmerReference, _emberMetal, _emberDebug, _emberRuntimeComputedComputed_macros) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  function contentPropertyWillChange(content, contentKey) {\n    var key = contentKey.slice(8); // remove \"content.\"\n    if (key in this) {\n      return;\n    } // if shadowed in proxy\n    _emberMetal.propertyWillChange(this, key);\n  }\n\n  function contentPropertyDidChange(content, contentKey) {\n    var key = contentKey.slice(8); // remove \"content.\"\n    if (key in this) {\n      return;\n    } // if shadowed in proxy\n    _emberMetal.propertyDidChange(this, key);\n  }\n\n  var ProxyTag = (function (_CachedTag) {\n    babelHelpers.inherits(ProxyTag, _CachedTag);\n\n    function ProxyTag(proxy) {\n      babelHelpers.classCallCheck(this, ProxyTag);\n\n      _CachedTag.call(this);\n\n      var content = _emberMetal.get(proxy, 'content');\n\n      this.proxy = proxy;\n      this.proxyWrapperTag = new _glimmerReference.DirtyableTag();\n      this.proxyContentTag = new _glimmerReference.UpdatableTag(_emberMetal.tagFor(content));\n    }\n\n    /**\n      `Ember.ProxyMixin` forwards all properties not defined by the proxy itself\n      to a proxied `content` object.  See Ember.ObjectProxy for more details.\n    \n      @class ProxyMixin\n      @namespace Ember\n      @private\n    */\n\n    ProxyTag.prototype.compute = function compute() {\n      return Math.max(this.proxyWrapperTag.value(), this.proxyContentTag.value());\n    };\n\n    ProxyTag.prototype.dirty = function dirty() {\n      this.proxyWrapperTag.dirty();\n    };\n\n    ProxyTag.prototype.contentDidChange = function contentDidChange() {\n      var content = _emberMetal.get(this.proxy, 'content');\n      this.proxyContentTag.update(_emberMetal.tagFor(content));\n    };\n\n    return ProxyTag;\n  })(_glimmerReference.CachedTag);\n\n  exports.default = _emberMetal.Mixin.create({\n    /**\n      The object whose properties will be forwarded.\n       @property content\n      @type Ember.Object\n      @default null\n      @private\n    */\n    content: null,\n\n    init: function () {\n      this._super.apply(this, arguments);\n      _emberMetal.meta(this).setProxy();\n    },\n\n    _initializeTag: _emberMetal.on('init', function () {\n      _emberMetal.meta(this)._tag = new ProxyTag(this);\n    }),\n\n    _contentDidChange: _emberMetal.observer('content', function () {\n      _emberDebug.assert('Can\\'t set Proxy\\'s content to itself', _emberMetal.get(this, 'content') !== this);\n      _emberMetal.tagFor(this).contentDidChange();\n    }),\n\n    isTruthy: _emberRuntimeComputedComputed_macros.bool('content'),\n\n    _debugContainerKey: null,\n\n    willWatchProperty: function (key) {\n      var contentKey = 'content.' + key;\n      _emberMetal._addBeforeObserver(this, contentKey, null, contentPropertyWillChange);\n      _emberMetal.addObserver(this, contentKey, null, contentPropertyDidChange);\n    },\n\n    didUnwatchProperty: function (key) {\n      var contentKey = 'content.' + key;\n      _emberMetal._removeBeforeObserver(this, contentKey, null, contentPropertyWillChange);\n      _emberMetal.removeObserver(this, contentKey, null, contentPropertyDidChange);\n    },\n\n    unknownProperty: function (key) {\n      var content = _emberMetal.get(this, 'content');\n      if (content) {\n        _emberDebug.deprecate('You attempted to access `' + key + '` from `' + this + '`, but object proxying is deprecated. Please use `model.' + key + '` instead.', !this.isController, { id: 'ember-runtime.controller-proxy', until: '3.0.0' });\n        return _emberMetal.get(content, key);\n      }\n    },\n\n    setUnknownProperty: function (key, value) {\n      var m = _emberMetal.meta(this);\n      if (m.proto === this) {\n        // if marked as prototype then just defineProperty\n        // rather than delegate\n        _emberMetal.defineProperty(this, key, null, value);\n        return value;\n      }\n\n      var content = _emberMetal.get(this, 'content');\n      _emberDebug.assert('Cannot delegate set(\\'' + key + '\\', ' + value + ') to the \\'content\\' property of object proxy ' + this + ': its \\'content\\' is undefined.', content);\n\n      _emberDebug.deprecate('You attempted to set `' + key + '` from `' + this + '`, but object proxying is deprecated. Please use `model.' + key + '` instead.', !this.isController, { id: 'ember-runtime.controller-proxy', until: '3.0.0' });\n      return _emberMetal.set(content, key, value);\n    }\n  });\n});\nenifed('ember-runtime/mixins/action_handler', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  exports.deprecateUnderscoreActions = deprecateUnderscoreActions;\n\n  /**\n    `Ember.ActionHandler` is available on some familiar classes including\n    `Ember.Route`, `Ember.Component`, and `Ember.Controller`.\n    (Internally the mixin is used by `Ember.CoreView`, `Ember.ControllerMixin`,\n    and `Ember.Route` and available to the above classes through\n    inheritance.)\n  \n    @class ActionHandler\n    @namespace Ember\n    @private\n  */\n  var ActionHandler = _emberMetal.Mixin.create({\n    mergedProperties: ['actions'],\n\n    /**\n      The collection of functions, keyed by name, available on this\n      `ActionHandler` as action targets.\n       These functions will be invoked when a matching `{{action}}` is triggered\n      from within a template and the application's current route is this route.\n       Actions can also be invoked from other parts of your application\n      via `ActionHandler#send`.\n       The `actions` hash will inherit action handlers from\n      the `actions` hash defined on extended parent classes\n      or mixins rather than just replace the entire hash, e.g.:\n       ```js\n      App.CanDisplayBanner = Ember.Mixin.create({\n        actions: {\n          displayBanner(msg) {\n            // ...\n          }\n        }\n      });\n       App.WelcomeRoute = Ember.Route.extend(App.CanDisplayBanner, {\n        actions: {\n          playMusic() {\n            // ...\n          }\n        }\n      });\n       // `WelcomeRoute`, when active, will be able to respond\n      // to both actions, since the actions hash is merged rather\n      // then replaced when extending mixins / parent classes.\n      this.send('displayBanner');\n      this.send('playMusic');\n      ```\n       Within a Controller, Route or Component's action handler,\n      the value of the `this` context is the Controller, Route or\n      Component object:\n       ```js\n      App.SongRoute = Ember.Route.extend({\n        actions: {\n          myAction() {\n            this.controllerFor(\"song\");\n            this.transitionTo(\"other.route\");\n            ...\n          }\n        }\n      });\n      ```\n       It is also possible to call `this._super(...arguments)` from within an\n      action handler if it overrides a handler defined on a parent\n      class or mixin:\n       Take for example the following routes:\n       ```js\n      App.DebugRoute = Ember.Mixin.create({\n        actions: {\n          debugRouteInformation() {\n            console.debug(\"trololo\");\n          }\n        }\n      });\n       App.AnnoyingDebugRoute = Ember.Route.extend(App.DebugRoute, {\n        actions: {\n          debugRouteInformation() {\n            // also call the debugRouteInformation of mixed in App.DebugRoute\n            this._super(...arguments);\n             // show additional annoyance\n            window.alert(...);\n          }\n        }\n      });\n      ```\n       ## Bubbling\n       By default, an action will stop bubbling once a handler defined\n      on the `actions` hash handles it. To continue bubbling the action,\n      you must return `true` from the handler:\n       ```js\n      App.Router.map(function() {\n        this.route(\"album\", function() {\n          this.route(\"song\");\n        });\n      });\n       App.AlbumRoute = Ember.Route.extend({\n        actions: {\n          startPlaying: function() {\n          }\n        }\n      });\n       App.AlbumSongRoute = Ember.Route.extend({\n        actions: {\n          startPlaying() {\n            // ...\n             if (actionShouldAlsoBeTriggeredOnParentRoute) {\n              return true;\n            }\n          }\n        }\n      });\n      ```\n       @property actions\n      @type Object\n      @default null\n      @public\n    */\n\n    /**\n      Triggers a named action on the `ActionHandler`. Any parameters\n      supplied after the `actionName` string will be passed as arguments\n      to the action target function.\n       If the `ActionHandler` has its `target` property set, actions may\n      bubble to the `target`. Bubbling happens when an `actionName` can\n      not be found in the `ActionHandler`'s `actions` hash or if the\n      action target function returns `true`.\n       Example\n       ```js\n      App.WelcomeRoute = Ember.Route.extend({\n        actions: {\n          playTheme() {\n             this.send('playMusic', 'theme.mp3');\n          },\n          playMusic(track) {\n            // ...\n          }\n        }\n      });\n      ```\n       @method send\n      @param {String} actionName The action to trigger\n      @param {*} context a context to send with the action\n      @public\n    */\n    send: function (actionName) {\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      if (this.actions && this.actions[actionName]) {\n        var shouldBubble = this.actions[actionName].apply(this, args) === true;\n        if (!shouldBubble) {\n          return;\n        }\n      }\n\n      var target = _emberMetal.get(this, 'target');\n      if (target) {\n        _emberDebug.assert('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function');\n        target.send.apply(target, arguments);\n      }\n    },\n\n    willMergeMixin: function (props) {\n      _emberDebug.assert('Specifying `_actions` and `actions` in the same mixin is not supported.', !props.actions || !props._actions);\n\n      if (props._actions) {\n        _emberDebug.deprecate('Specifying actions in `_actions` is deprecated, please use `actions` instead.', false, { id: 'ember-runtime.action-handler-_actions', until: '3.0.0' });\n\n        props.actions = props._actions;\n        delete props._actions;\n      }\n    }\n  });\n\n  exports.default = ActionHandler;\n\n  function deprecateUnderscoreActions(factory) {\n    Object.defineProperty(factory.prototype, '_actions', {\n      configurable: true,\n      enumerable: false,\n      set: function (value) {\n        _emberDebug.assert('You cannot set `_actions` on ' + this + ', please use `actions` instead.');\n      },\n      get: function () {\n        _emberDebug.deprecate('Usage of `_actions` is deprecated, use `actions` instead.', false, { id: 'ember-runtime.action-handler-_actions', until: '3.0.0' });\n        return _emberMetal.get(this, 'actions');\n      }\n    });\n  }\n});\nenifed('ember-runtime/mixins/array', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-runtime/mixins/enumerable', 'ember-runtime/system/each_proxy'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberRuntimeMixinsEnumerable, _emberRuntimeSystemEach_proxy) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  // ..........................................................\n  // HELPERS\n  //\n  'use strict';\n\n  var _Mixin$create;\n\n  exports.addArrayObserver = addArrayObserver;\n  exports.removeArrayObserver = removeArrayObserver;\n  exports.objectAt = objectAt;\n  exports.arrayContentWillChange = arrayContentWillChange;\n  exports.arrayContentDidChange = arrayContentDidChange;\n  exports.isEmberArray = isEmberArray;\n\n  function arrayObserversHelper(obj, target, opts, operation, notify) {\n    var willChange = opts && opts.willChange || 'arrayWillChange';\n    var didChange = opts && opts.didChange || 'arrayDidChange';\n    var hasObservers = _emberMetal.get(obj, 'hasArrayObservers');\n\n    if (hasObservers === notify) {\n      _emberMetal.propertyWillChange(obj, 'hasArrayObservers');\n    }\n\n    operation(obj, '@array:before', target, willChange);\n    operation(obj, '@array:change', target, didChange);\n\n    if (hasObservers === notify) {\n      _emberMetal.propertyDidChange(obj, 'hasArrayObservers');\n    }\n\n    return obj;\n  }\n\n  function addArrayObserver(array, target, opts) {\n    return arrayObserversHelper(array, target, opts, _emberMetal.addListener, false);\n  }\n\n  function removeArrayObserver(array, target, opts) {\n    return arrayObserversHelper(array, target, opts, _emberMetal.removeListener, true);\n  }\n\n  function objectAt(content, idx) {\n    if (content.objectAt) {\n      return content.objectAt(idx);\n    }\n\n    return content[idx];\n  }\n\n  function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {\n    var removing = undefined,\n        lim = undefined;\n\n    // if no args are passed assume everything changes\n    if (startIdx === undefined) {\n      startIdx = 0;\n      removeAmt = addAmt = -1;\n    } else {\n      if (removeAmt === undefined) {\n        removeAmt = -1;\n      }\n\n      if (addAmt === undefined) {\n        addAmt = -1;\n      }\n    }\n\n    if (array.__each) {\n      array.__each.arrayWillChange(array, startIdx, removeAmt, addAmt);\n    }\n\n    _emberMetal.sendEvent(array, '@array:before', [array, startIdx, removeAmt, addAmt]);\n\n    if (startIdx >= 0 && removeAmt >= 0 && _emberMetal.get(array, 'hasEnumerableObservers')) {\n      removing = [];\n      lim = startIdx + removeAmt;\n\n      for (var idx = startIdx; idx < lim; idx++) {\n        removing.push(objectAt(array, idx));\n      }\n    } else {\n      removing = removeAmt;\n    }\n\n    array.enumerableContentWillChange(removing, addAmt);\n\n    return array;\n  }\n\n  function arrayContentDidChange(array, startIdx, removeAmt, addAmt) {\n    // if no args are passed assume everything changes\n    if (startIdx === undefined) {\n      startIdx = 0;\n      removeAmt = addAmt = -1;\n    } else {\n      if (removeAmt === undefined) {\n        removeAmt = -1;\n      }\n\n      if (addAmt === undefined) {\n        addAmt = -1;\n      }\n    }\n\n    var adding = undefined;\n    if (startIdx >= 0 && addAmt >= 0 && _emberMetal.get(array, 'hasEnumerableObservers')) {\n      adding = [];\n      var lim = startIdx + addAmt;\n\n      for (var idx = startIdx; idx < lim; idx++) {\n        adding.push(objectAt(array, idx));\n      }\n    } else {\n      adding = addAmt;\n    }\n\n    array.enumerableContentDidChange(removeAmt, adding);\n\n    if (array.__each) {\n      array.__each.arrayDidChange(array, startIdx, removeAmt, addAmt);\n    }\n\n    _emberMetal.sendEvent(array, '@array:change', [array, startIdx, removeAmt, addAmt]);\n\n    var meta = _emberMetal.peekMeta(array);\n    var cache = meta && meta.readableCache();\n\n    if (cache) {\n      if (cache.firstObject !== undefined && objectAt(array, 0) !== _emberMetal.cacheFor.get(cache, 'firstObject')) {\n        _emberMetal.propertyWillChange(array, 'firstObject');\n        _emberMetal.propertyDidChange(array, 'firstObject');\n      }\n      if (cache.lastObject !== undefined && objectAt(array, _emberMetal.get(array, 'length') - 1) !== _emberMetal.cacheFor.get(cache, 'lastObject')) {\n        _emberMetal.propertyWillChange(array, 'lastObject');\n        _emberMetal.propertyDidChange(array, 'lastObject');\n      }\n    }\n    return array;\n  }\n\n  var EMBER_ARRAY = _emberUtils.symbol('EMBER_ARRAY');\n\n  function isEmberArray(obj) {\n    return obj && !!obj[EMBER_ARRAY];\n  }\n\n  // ..........................................................\n  // ARRAY\n  //\n  /**\n    This mixin implements Observer-friendly Array-like behavior. It is not a\n    concrete implementation, but it can be used up by other classes that want\n    to appear like arrays.\n  \n    For example, ArrayProxy is a concrete classes that can\n    be instantiated to implement array-like behavior. Both of these classes use\n    the Array Mixin by way of the MutableArray mixin, which allows observable\n    changes to be made to the underlying array.\n  \n    Unlike `Ember.Enumerable,` this mixin defines methods specifically for\n    collections that provide index-ordered access to their contents. When you\n    are designing code that needs to accept any kind of Array-like object, you\n    should use these methods instead of Array primitives because these will\n    properly notify observers of changes to the array.\n  \n    Although these methods are efficient, they do add a layer of indirection to\n    your application so it is a good idea to use them only when you need the\n    flexibility of using both true JavaScript arrays and \"virtual\" arrays such\n    as controllers and collections.\n  \n    You can use the methods defined in this module to access and modify array\n    contents in a KVO-friendly way. You can also be notified whenever the\n    membership of an array changes by using `.observes('myArray.[]')`.\n  \n    To support `Ember.Array` in your own class, you must override two\n    primitives to use it: `length()` and `objectAt()`.\n  \n    Note that the Ember.Array mixin also incorporates the `Ember.Enumerable`\n    mixin. All `Ember.Array`-like objects are also enumerable.\n  \n    @class Array\n    @namespace Ember\n    @uses Ember.Enumerable\n    @since Ember 0.9.0\n    @public\n  */\n  var ArrayMixin = _emberMetal.Mixin.create(_emberRuntimeMixinsEnumerable.default, (_Mixin$create = {}, _Mixin$create[EMBER_ARRAY] = true, _Mixin$create.length = null, _Mixin$create.objectAt = function (idx) {\n    if (idx < 0 || idx >= _emberMetal.get(this, 'length')) {\n      return undefined;\n    }\n\n    return _emberMetal.get(this, idx);\n  }, _Mixin$create.objectsAt = function (indexes) {\n    var _this = this;\n\n    return indexes.map(function (idx) {\n      return objectAt(_this, idx);\n    });\n  }, _Mixin$create.nextObject = function (idx) {\n    return objectAt(this, idx);\n  }, _Mixin$create['[]'] = _emberMetal.computed({\n    get: function (key) {\n      return this;\n    },\n    set: function (key, value) {\n      this.replace(0, _emberMetal.get(this, 'length'), value);\n      return this;\n    }\n  }), _Mixin$create.firstObject = _emberMetal.computed(function () {\n    return objectAt(this, 0);\n  }).readOnly(), _Mixin$create.lastObject = _emberMetal.computed(function () {\n    return objectAt(this, _emberMetal.get(this, 'length') - 1);\n  }).readOnly(), _Mixin$create.contains = function (obj) {\n    _emberDebug.deprecate('`Enumerable#contains` is deprecated, use `Enumerable#includes` instead.', false, { id: 'ember-runtime.enumerable-contains', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_enumerable-contains' });\n\n    return this.indexOf(obj) >= 0;\n  }, _Mixin$create.slice = function (beginIndex, endIndex) {\n    var ret = _emberMetal.default.A();\n    var length = _emberMetal.get(this, 'length');\n\n    if (_emberMetal.isNone(beginIndex)) {\n      beginIndex = 0;\n    }\n\n    if (_emberMetal.isNone(endIndex) || endIndex > length) {\n      endIndex = length;\n    }\n\n    if (beginIndex < 0) {\n      beginIndex = length + beginIndex;\n    }\n\n    if (endIndex < 0) {\n      endIndex = length + endIndex;\n    }\n\n    while (beginIndex < endIndex) {\n      ret[ret.length] = objectAt(this, beginIndex++);\n    }\n\n    return ret;\n  }, _Mixin$create.indexOf = function (object, startAt) {\n    var len = _emberMetal.get(this, 'length');\n\n    if (startAt === undefined) {\n      startAt = 0;\n    }\n\n    if (startAt < 0) {\n      startAt += len;\n    }\n\n    for (var idx = startAt; idx < len; idx++) {\n      if (objectAt(this, idx) === object) {\n        return idx;\n      }\n    }\n\n    return -1;\n  }, _Mixin$create.lastIndexOf = function (object, startAt) {\n    var len = _emberMetal.get(this, 'length');\n\n    if (startAt === undefined || startAt >= len) {\n      startAt = len - 1;\n    }\n\n    if (startAt < 0) {\n      startAt += len;\n    }\n\n    for (var idx = startAt; idx >= 0; idx--) {\n      if (objectAt(this, idx) === object) {\n        return idx;\n      }\n    }\n\n    return -1;\n  }, _Mixin$create.addArrayObserver = function (target, opts) {\n    return addArrayObserver(this, target, opts);\n  }, _Mixin$create.removeArrayObserver = function (target, opts) {\n    return removeArrayObserver(this, target, opts);\n  }, _Mixin$create.hasArrayObservers = _emberMetal.computed(function () {\n    return _emberMetal.hasListeners(this, '@array:change') || _emberMetal.hasListeners(this, '@array:before');\n  }), _Mixin$create.arrayContentWillChange = function (startIdx, removeAmt, addAmt) {\n    return arrayContentWillChange(this, startIdx, removeAmt, addAmt);\n  }, _Mixin$create.arrayContentDidChange = function (startIdx, removeAmt, addAmt) {\n    return arrayContentDidChange(this, startIdx, removeAmt, addAmt);\n  }, _Mixin$create.includes = function (obj, startAt) {\n    var len = _emberMetal.get(this, 'length');\n\n    if (startAt === undefined) {\n      startAt = 0;\n    }\n\n    if (startAt < 0) {\n      startAt += len;\n    }\n\n    for (var idx = startAt; idx < len; idx++) {\n      var currentObj = objectAt(this, idx);\n\n      // SameValueZero comparison (NaN !== NaN)\n      if (obj === currentObj || obj !== obj && currentObj !== currentObj) {\n        return true;\n      }\n    }\n\n    return false;\n  }, _Mixin$create['@each'] = _emberMetal.computed(function () {\n    // TODO use Symbol or add to meta\n    if (!this.__each) {\n      this.__each = new _emberRuntimeSystemEach_proxy.default(this);\n    }\n\n    return this.__each;\n  }).volatile().readOnly(), _Mixin$create));\n\n  exports.default = ArrayMixin;\n});\n// ES6TODO: Ember.A\n\n/**\n  __Required.__ You must implement this method to apply this mixin.\n   Your array must support the `length` property. Your replace methods should\n  set this property whenever it changes.\n   @property {Number} length\n  @public\n*/\n\n/**\n  Returns the object at the given `index`. If the given `index` is negative\n  or is greater or equal than the array length, returns `undefined`.\n   This is one of the primitives you must implement to support `Ember.Array`.\n  If your object supports retrieving the value of an array item using `get()`\n  (i.e. `myArray.get(0)`), then you do not need to implement this method\n  yourself.\n   ```javascript\n  let arr = ['a', 'b', 'c', 'd'];\n   arr.objectAt(0);   // 'a'\n  arr.objectAt(3);   // 'd'\n  arr.objectAt(-1);  // undefined\n  arr.objectAt(4);   // undefined\n  arr.objectAt(5);   // undefined\n  ```\n   @method objectAt\n  @param {Number} idx The index of the item to return.\n  @return {*} item at index or undefined\n  @public\n*/\n\n/**\n  This returns the objects at the specified indexes, using `objectAt`.\n   ```javascript\n  let arr = ['a', 'b', 'c', 'd'];\n   arr.objectsAt([0, 1, 2]);  // ['a', 'b', 'c']\n  arr.objectsAt([2, 3, 4]);  // ['c', 'd', undefined]\n  ```\n   @method objectsAt\n  @param {Array} indexes An array of indexes of items to return.\n  @return {Array}\n  @public\n */\n\n// overrides Ember.Enumerable version\n\n/**\n  This is the handler for the special array content property. If you get\n  this property, it will return this. If you set this property to a new\n  array, it will replace the current content.\n   This property overrides the default property defined in `Ember.Enumerable`.\n   @property []\n  @return this\n  @public\n*/\n\n// optimized version from Enumerable\n\n// Add any extra methods to Ember.Array that are native to the built-in Array.\n/**\n  Returns a new array that is a slice of the receiver. This implementation\n  uses the observable array methods to retrieve the objects for the new\n  slice.\n   ```javascript\n  let arr = ['red', 'green', 'blue'];\n   arr.slice(0);       // ['red', 'green', 'blue']\n  arr.slice(0, 2);    // ['red', 'green']\n  arr.slice(1, 100);  // ['green', 'blue']\n  ```\n   @method slice\n  @param {Number} beginIndex (Optional) index to begin slicing from.\n  @param {Number} endIndex (Optional) index to end the slice at (but not included).\n  @return {Array} New array with specified slice\n  @public\n*/\n\n/**\n  Returns the index of the given object's first occurrence.\n  If no `startAt` argument is given, the starting location to\n  search is 0. If it's negative, will count backward from\n  the end of the array. Returns -1 if no match is found.\n   ```javascript\n  let arr = ['a', 'b', 'c', 'd', 'a'];\n   arr.indexOf('a');       //  0\n  arr.indexOf('z');       // -1\n  arr.indexOf('a', 2);    //  4\n  arr.indexOf('a', -1);   //  4\n  arr.indexOf('b', 3);    // -1\n  arr.indexOf('a', 100);  // -1\n  ```\n   @method indexOf\n  @param {Object} object the item to search for\n  @param {Number} startAt optional starting location to search, default 0\n  @return {Number} index or -1 if not found\n  @public\n*/\n\n/**\n  Returns the index of the given object's last occurrence.\n  If no `startAt` argument is given, the search starts from\n  the last position. If it's negative, will count backward\n  from the end of the array. Returns -1 if no match is found.\n   ```javascript\n  let arr = ['a', 'b', 'c', 'd', 'a'];\n   arr.lastIndexOf('a');       //  4\n  arr.lastIndexOf('z');       // -1\n  arr.lastIndexOf('a', 2);    //  0\n  arr.lastIndexOf('a', -1);   //  4\n  arr.lastIndexOf('b', 3);    //  1\n  arr.lastIndexOf('a', 100);  //  4\n  ```\n   @method lastIndexOf\n  @param {Object} object the item to search for\n  @param {Number} startAt optional starting location to search, default 0\n  @return {Number} index or -1 if not found\n  @public\n*/\n\n// ..........................................................\n// ARRAY OBSERVERS\n//\n\n/**\n  Adds an array observer to the receiving array. The array observer object\n  normally must implement two methods:\n   * `arrayWillChange(observedObj, start, removeCount, addCount)` - This method will be\n    called just before the array is modified.\n  * `arrayDidChange(observedObj, start, removeCount, addCount)` - This method will be\n    called just after the array is modified.\n   Both callbacks will be passed the observed object, starting index of the\n  change as well as a count of the items to be removed and added. You can use\n  these callbacks to optionally inspect the array during the change, clear\n  caches, or do any other bookkeeping necessary.\n   In addition to passing a target, you can also include an options hash\n  which you can use to override the method names that will be invoked on the\n  target.\n   @method addArrayObserver\n  @param {Object} target The observer object.\n  @param {Object} opts Optional hash of configuration options including\n    `willChange` and `didChange` option.\n  @return {Ember.Array} receiver\n  @public\n*/\n\n/**\n  Removes an array observer from the object if the observer is current\n  registered. Calling this method multiple times with the same object will\n  have no effect.\n   @method removeArrayObserver\n  @param {Object} target The object observing the array.\n  @param {Object} opts Optional hash of configuration options including\n    `willChange` and `didChange` option.\n  @return {Ember.Array} receiver\n  @public\n*/\n\n/**\n  Becomes true whenever the array currently has observers watching changes\n  on the array.\n   @property {Boolean} hasArrayObservers\n  @public\n*/\n\n/**\n  If you are implementing an object that supports `Ember.Array`, call this\n  method just before the array content changes to notify any observers and\n  invalidate any related properties. Pass the starting index of the change\n  as well as a delta of the amounts to change.\n   @method arrayContentWillChange\n  @param {Number} startIdx The starting index in the array that will change.\n  @param {Number} removeAmt The number of items that will be removed. If you\n    pass `null` assumes 0\n  @param {Number} addAmt The number of items that will be added. If you\n    pass `null` assumes 0.\n  @return {Ember.Array} receiver\n  @public\n*/\n\n/**\n  If you are implementing an object that supports `Ember.Array`, call this\n  method just after the array content changes to notify any observers and\n  invalidate any related properties. Pass the starting index of the change\n  as well as a delta of the amounts to change.\n   @method arrayContentDidChange\n  @param {Number} startIdx The starting index in the array that did change.\n  @param {Number} removeAmt The number of items that were removed. If you\n    pass `null` assumes 0\n  @param {Number} addAmt The number of items that were added. If you\n    pass `null` assumes 0.\n  @return {Ember.Array} receiver\n  @public\n*/\n\n/**\n  Returns `true` if the passed object can be found in the array.\n  This method is a Polyfill for ES 2016 Array.includes.\n  If no `startAt` argument is given, the starting location to\n  search is 0. If it's negative, searches from the index of\n  `this.length + startAt` by asc.\n   ```javascript\n  [1, 2, 3].includes(2);     // true\n  [1, 2, 3].includes(4);     // false\n  [1, 2, 3].includes(3, 2);  // true\n  [1, 2, 3].includes(3, 3);  // false\n  [1, 2, 3].includes(3, -1); // true\n  [1, 2, 3].includes(1, -1); // false\n  [1, 2, 3].includes(1, -4); // true\n  [1, 2, NaN].includes(NaN); // true\n  ```\n   @method includes\n  @param {Object} obj The object to search for.\n  @param {Number} startAt optional starting location to search, default 0\n  @return {Boolean} `true` if object is found in the array.\n  @public\n*/\n\n/**\n  Returns a special object that can be used to observe individual properties\n  on the array. Just get an equivalent property on this object and it will\n  return an enumerable that maps automatically to the named key on the\n  member objects.\n   `@each` should only be used in a non-terminal context. Example:\n   ```javascript\n  myMethod: computed('posts.@each.author', function(){\n    ...\n  });\n  ```\n   If you merely want to watch for the array being changed, like an object being\n  replaced, added or removed, use `[]` instead of `@each`.\n   ```javascript\n  myMethod: computed('posts.[]', function(){\n    ...\n  });\n  ```\n   @property @each\n  @public\n*/\nenifed('ember-runtime/mixins/comparable', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  /**\n    Implements some standard methods for comparing objects. Add this mixin to\n    any class you create that can compare its instances.\n  \n    You should implement the `compare()` method.\n  \n    @class Comparable\n    @namespace Ember\n    @since Ember 0.9\n    @private\n  */\n  exports.default = _emberMetal.Mixin.create({\n\n    /**\n      __Required.__ You must implement this method to apply this mixin.\n       Override to return the result of the comparison of the two parameters. The\n      compare method should return:\n       - `-1` if `a < b`\n      - `0` if `a == b`\n      - `1` if `a > b`\n       Default implementation raises an exception.\n       @method compare\n      @param a {Object} the first object to compare\n      @param b {Object} the second object to compare\n      @return {Number} the result of the comparison\n      @private\n    */\n    compare: null\n  });\n});\nenifed('ember-runtime/mixins/container_proxy', ['exports', 'ember-metal', 'container', 'ember-debug'], function (exports, _emberMetal, _container, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n  'use strict';\n\n  var _containerProxyMixin;\n\n  /**\n    ContainerProxyMixin is used to provide public access to specific\n    container functionality.\n  \n    @class ContainerProxyMixin\n    @private\n  */\n  var containerProxyMixin = (_containerProxyMixin = {\n    /**\n     The container stores state.\n      @private\n     @property {Ember.Container} __container__\n     */\n    __container__: null,\n\n    /**\n     Returns an object that can be used to provide an owner to a\n     manually created instance.\n      Example:\n      ```\n     let owner = Ember.getOwner(this);\n      User.create(\n       owner.ownerInjection(),\n       { username: 'rwjblue' }\n     )\n     ```\n      @public\n     @method ownerInjection\n     @since 2.3.0\n     @return {Object}\n    */\n    ownerInjection: function () {\n      return this.__container__.ownerInjection();\n    },\n\n    /**\n     Given a fullName return a corresponding instance.\n      The default behaviour is for lookup to return a singleton instance.\n     The singleton is scoped to the container, allowing multiple containers\n     to all have their own locally scoped singletons.\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('api:twitter', Twitter);\n      let twitter = container.lookup('api:twitter');\n      twitter instanceof Twitter; // => true\n      // by default the container will return singletons\n     let twitter2 = container.lookup('api:twitter');\n     twitter2 instanceof Twitter; // => true\n      twitter === twitter2; //=> true\n     ```\n      If singletons are not wanted an optional flag can be provided at lookup.\n      ```javascript\n     let registry = new Registry();\n     let container = registry.container();\n      registry.register('api:twitter', Twitter);\n      let twitter = container.lookup('api:twitter', { singleton: false });\n     let twitter2 = container.lookup('api:twitter', { singleton: false });\n      twitter === twitter2; //=> false\n     ```\n      @public\n     @method lookup\n     @param {String} fullName\n     @param {Object} options\n     @return {any}\n     */\n    lookup: function (fullName, options) {\n      return this.__container__.lookup(fullName, options);\n    },\n\n    /**\n     Given a fullName return the corresponding factory.\n      @private\n     @method _lookupFactory\n     @param {String} fullName\n     @return {any}\n     */\n    _lookupFactory: function (fullName, options) {\n      return this.__container__.lookupFactory(fullName, options);\n    }\n\n  }, _containerProxyMixin[_container.FACTORY_FOR] = function () {\n    var _container__;\n\n    return (_container__ = this.__container__)[_container.FACTORY_FOR].apply(_container__, arguments);\n  }, _containerProxyMixin[_container.LOOKUP_FACTORY] = function () {\n    var _container__2;\n\n    return (_container__2 = this.__container__)[_container.LOOKUP_FACTORY].apply(_container__2, arguments);\n  }, _containerProxyMixin._resolveLocalLookupName = function (name, source) {\n    return this.__container__.registry.expandLocalLookup('component:' + name, {\n      source: source\n    });\n  }, _containerProxyMixin.willDestroy = function () {\n    this._super.apply(this, arguments);\n\n    if (this.__container__) {\n      _emberMetal.run(this.__container__, 'destroy');\n    }\n  }, _containerProxyMixin);\n\n  if (true) {\n    /**\n     Given a fullName return a factory manager.\n      This method returns a manager which can be used for introspection of the\n     factory's class or for the creation of factory instances with initial\n     properties. The manager is an object with the following properties:\n      * `class` - The registered or resolved class.\n     * `create` - A function that will create an instance of the class with\n       any dependencies injected.\n      For example:\n      ```javascript\n     let owner = Ember.getOwner(otherInstance);\n     // the owner is commonly the `applicationInstance`, and can be accessed via\n     // an instance initializer.\n      let factory = owner.factoryFor('service:bespoke');\n      factory.class;\n     // The registered or resolved class. For example when used with an Ember-CLI\n     // app, this would be the default export from `app/services/bespoke.js`.\n      let instance = factory.create({\n       someProperty: 'an initial property value'\n     });\n     // Create an instance with any injections and the passed options as\n     // initial properties.\n     ```\n      @public\n     @class ContainerProxyMixin\n     @method factoryFor\n     @param {String} fullName\n     @param {Object} options\n     @return {FactoryManager}\n     */\n    containerProxyMixin.factoryFor = function ContainerProxyMixin_factoryFor(fullName) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      return this.__container__.factoryFor(fullName, options);\n    };\n  }\n\n  exports.default = _emberMetal.Mixin.create(containerProxyMixin);\n});\n\n/**\n Given a name and a source path, resolve the fullName\n  @private\n @method _resolveLocalLookupName\n @param {String} fullName\n @param {String} source\n @return {String}\n */\n\n/**\n @private\n */\nenifed('ember-runtime/mixins/controller', ['exports', 'ember-metal', 'ember-runtime/mixins/action_handler', 'ember-runtime/mixins/controller_content_model_alias_deprecation'], function (exports, _emberMetal, _emberRuntimeMixinsAction_handler, _emberRuntimeMixinsController_content_model_alias_deprecation) {\n  'use strict';\n\n  /**\n    @class ControllerMixin\n    @namespace Ember\n    @uses Ember.ActionHandler\n    @private\n  */\n  exports.default = _emberMetal.Mixin.create(_emberRuntimeMixinsAction_handler.default, _emberRuntimeMixinsController_content_model_alias_deprecation.default, {\n    /* ducktype as a controller */\n    isController: true,\n\n    /**\n      The object to which actions from the view should be sent.\n       For example, when a Handlebars template uses the `{{action}}` helper,\n      it will attempt to send the action to the view's controller's `target`.\n       By default, the value of the target property is set to the router, and\n      is injected when a controller is instantiated. This injection is applied\n      as part of the application's initialization process. In most cases the\n      `target` property will automatically be set to the logical consumer of\n      actions for the controller.\n       @property target\n      @default null\n      @public\n    */\n    target: null,\n\n    store: null,\n\n    /**\n      The controller's current model. When retrieving or modifying a controller's\n      model, this property should be used instead of the `content` property.\n       @property model\n      @public\n     */\n    model: null,\n\n    /**\n      @private\n    */\n    content: _emberMetal.alias('model')\n\n  });\n});\nenifed('ember-runtime/mixins/controller_content_model_alias_deprecation', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  'use strict';\n\n  /*\n    The ControllerContentModelAliasDeprecation mixin is used to provide a useful\n    deprecation warning when specifying `content` directly on a `Ember.Controller`\n    (without also specifying `model`).\n  \n    Ember versions prior to 1.7 used `model` as an alias of `content`, but due to\n    much confusion this alias was reversed (so `content` is now an alias of `model).\n  \n    This change reduces many caveats with model/content, and also sets a\n    simple ground rule: Never set a controllers content, rather always set\n    its model and ember will do the right thing.\n  \n    Used internally by Ember in `Ember.Controller`.\n  */\n  exports.default = _emberMetal.Mixin.create({\n    /**\n      @private\n       Moves `content` to `model`  at extend time if a `model` is not also specified.\n       Note that this currently modifies the mixin themselves, which is technically\n      dubious but is practically of little consequence. This may change in the\n      future.\n       @method willMergeMixin\n      @since 1.4.0\n    */\n    willMergeMixin: function (props) {\n      // Calling super is only OK here since we KNOW that\n      // there is another Mixin loaded first.\n      this._super.apply(this, arguments);\n\n      var modelSpecified = !!props.model;\n\n      if (props.content && !modelSpecified) {\n        props.model = props.content;\n        delete props['content'];\n\n        _emberDebug.deprecate('Do not specify `content` on a Controller, use `model` instead.', false, { id: 'ember-runtime.will-merge-mixin', until: '3.0.0' });\n      }\n    }\n  });\n});\nenifed('ember-runtime/mixins/copyable', ['exports', 'ember-metal', 'ember-debug', 'ember-runtime/mixins/freezable'], function (exports, _emberMetal, _emberDebug, _emberRuntimeMixinsFreezable) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  /**\n    Implements some standard methods for copying an object. Add this mixin to\n    any object you create that can create a copy of itself. This mixin is\n    added automatically to the built-in array.\n  \n    You should generally implement the `copy()` method to return a copy of the\n    receiver.\n  \n    Note that `frozenCopy()` will only work if you also implement\n    `Ember.Freezable`.\n  \n    @class Copyable\n    @namespace Ember\n    @since Ember 0.9\n    @private\n  */\n  exports.default = _emberMetal.Mixin.create({\n    /**\n      __Required.__ You must implement this method to apply this mixin.\n       Override to return a copy of the receiver. Default implementation raises\n      an exception.\n       @method copy\n      @param {Boolean} deep if `true`, a deep copy of the object should be made\n      @return {Object} copy of receiver\n      @private\n    */\n    copy: null,\n\n    /**\n      If the object implements `Ember.Freezable`, then this will return a new\n      copy if the object is not frozen and the receiver if the object is frozen.\n       Raises an exception if you try to call this method on a object that does\n      not support freezing.\n       You should use this method whenever you want a copy of a freezable object\n      since a freezable object can simply return itself without actually\n      consuming more memory.\n       @method frozenCopy\n      @return {Object} copy of receiver or receiver\n      @deprecated Use `Object.freeze` instead.\n      @private\n    */\n    frozenCopy: function () {\n      _emberDebug.deprecate('`frozenCopy` is deprecated, use `Object.freeze` instead.', false, { id: 'ember-runtime.frozen-copy', until: '3.0.0' });\n      if (_emberRuntimeMixinsFreezable.Freezable && _emberRuntimeMixinsFreezable.Freezable.detect(this)) {\n        return _emberMetal.get(this, 'isFrozen') ? this : this.copy().freeze();\n      } else {\n        throw new _emberDebug.Error(this + ' does not support freezing');\n      }\n    }\n  });\n});\nenifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-runtime/compare', 'require'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberRuntimeCompare, _require) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  // ..........................................................\n  // HELPERS\n  //\n\n  'use strict';\n\n  var _emberA = undefined;\n\n  function emberA() {\n    return (_emberA || (_emberA = _require.default('ember-runtime/system/native_array').A))();\n  }\n\n  var contexts = [];\n\n  function popCtx() {\n    return contexts.length === 0 ? {} : contexts.pop();\n  }\n\n  function pushCtx(ctx) {\n    contexts.push(ctx);\n    return null;\n  }\n\n  function iter(key, value) {\n    var valueProvided = arguments.length === 2;\n\n    function i(item) {\n      var cur = _emberMetal.get(item, key);\n      return valueProvided ? value === cur : !!cur;\n    }\n\n    return i;\n  }\n\n  /**\n    This mixin defines the common interface implemented by enumerable objects\n    in Ember. Most of these methods follow the standard Array iteration\n    API defined up to JavaScript 1.8 (excluding language-specific features that\n    cannot be emulated in older versions of JavaScript).\n  \n    This mixin is applied automatically to the Array class on page load, so you\n    can use any of these methods on simple arrays. If Array already implements\n    one of these methods, the mixin will not override them.\n  \n    ## Writing Your Own Enumerable\n  \n    To make your own custom class enumerable, you need two items:\n  \n    1. You must have a length property. This property should change whenever\n       the number of items in your enumerable object changes. If you use this\n       with an `Ember.Object` subclass, you should be sure to change the length\n       property using `set().`\n  \n    2. You must implement `nextObject().` See documentation.\n  \n    Once you have these two methods implemented, apply the `Ember.Enumerable` mixin\n    to your class and you will be able to enumerate the contents of your object\n    like any other collection.\n  \n    ## Using Ember Enumeration with Other Libraries\n  \n    Many other libraries provide some kind of iterator or enumeration like\n    facility. This is often where the most common API conflicts occur.\n    Ember's API is designed to be as friendly as possible with other\n    libraries by implementing only methods that mostly correspond to the\n    JavaScript 1.8 API.\n  \n    @class Enumerable\n    @namespace Ember\n    @since Ember 0.9\n    @private\n  */\n  var Enumerable = _emberMetal.Mixin.create({\n\n    /**\n      __Required.__ You must implement this method to apply this mixin.\n       Implement this method to make your class enumerable.\n       This method will be called repeatedly during enumeration. The index value\n      will always begin with 0 and increment monotonically. You don't have to\n      rely on the index value to determine what object to return, but you should\n      always check the value and start from the beginning when you see the\n      requested index is 0.\n       The `previousObject` is the object that was returned from the last call\n      to `nextObject` for the current iteration. This is a useful way to\n      manage iteration if you are tracing a linked list, for example.\n       Finally the context parameter will always contain a hash you can use as\n      a \"scratchpad\" to maintain any other state you need in order to iterate\n      properly. The context object is reused and is not reset between\n      iterations so make sure you setup the context with a fresh state whenever\n      the index parameter is 0.\n       Generally iterators will continue to call `nextObject` until the index\n      reaches the current length-1. If you run out of data before this\n      time for some reason, you should simply return undefined.\n       The default implementation of this method simply looks up the index.\n      This works great on any Array-like objects.\n       @method nextObject\n      @param {Number} index the current index of the iteration\n      @param {Object} previousObject the value returned by the last call to\n        `nextObject`.\n      @param {Object} context a context object you can use to maintain state.\n      @return {Object} the next object in the iteration or undefined\n      @private\n    */\n    nextObject: null,\n\n    /**\n      Helper method returns the first object from a collection. This is usually\n      used by bindings and other parts of the framework to extract a single\n      object if the enumerable contains only one item.\n       If you override this method, you should implement it so that it will\n      always return the same value each time it is called. If your enumerable\n      contains only one object, this method should always return that object.\n      If your enumerable is empty, this method should return `undefined`.\n       ```javascript\n      let arr = ['a', 'b', 'c'];\n      arr.get('firstObject');  // 'a'\n       let arr = [];\n      arr.get('firstObject');  // undefined\n      ```\n       @property firstObject\n      @return {Object} the object or undefined\n      @readOnly\n      @public\n    */\n    firstObject: _emberMetal.computed('[]', function () {\n      if (_emberMetal.get(this, 'length') === 0) {\n        return undefined;\n      }\n\n      // handle generic enumerables\n      var context = popCtx();\n      var ret = this.nextObject(0, null, context);\n\n      pushCtx(context);\n\n      return ret;\n    }).readOnly(),\n\n    /**\n      Helper method returns the last object from a collection. If your enumerable\n      contains only one object, this method should always return that object.\n      If your enumerable is empty, this method should return `undefined`.\n       ```javascript\n      let arr = ['a', 'b', 'c'];\n      arr.get('lastObject');  // 'c'\n       let arr = [];\n      arr.get('lastObject');  // undefined\n      ```\n       @property lastObject\n      @return {Object} the last object or undefined\n      @readOnly\n      @public\n    */\n    lastObject: _emberMetal.computed('[]', function () {\n      var len = _emberMetal.get(this, 'length');\n\n      if (len === 0) {\n        return undefined;\n      }\n\n      var context = popCtx();\n      var idx = 0;\n      var last = null;\n      var cur = undefined;\n\n      do {\n        last = cur;\n        cur = this.nextObject(idx++, last, context);\n      } while (cur !== undefined);\n\n      pushCtx(context);\n\n      return last;\n    }).readOnly(),\n\n    /**\n      Returns `true` if the passed object can be found in the receiver. The\n      default version will iterate through the enumerable until the object\n      is found. You may want to override this with a more efficient version.\n       ```javascript\n      let arr = ['a', 'b', 'c'];\n       arr.contains('a'); // true\n      arr.contains('z'); // false\n      ```\n       @method contains\n      @deprecated Use `Enumerable#includes` instead. See http://emberjs.com/deprecations/v2.x#toc_enumerable-contains\n      @param {Object} obj The object to search for.\n      @return {Boolean} `true` if object is found in enumerable.\n      @public\n    */\n    contains: function (obj) {\n      _emberDebug.deprecate('`Enumerable#contains` is deprecated, use `Enumerable#includes` instead.', false, { id: 'ember-runtime.enumerable-contains', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_enumerable-contains' });\n\n      var found = this.find(function (item) {\n        return item === obj;\n      });\n\n      return found !== undefined;\n    },\n\n    /**\n      Iterates through the enumerable, calling the passed function on each\n      item. This method corresponds to the `forEach()` method defined in\n      JavaScript 1.6.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as `this` on the context. This is a good way\n      to give your iterator function access to the current object.\n       @method forEach\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Object} receiver\n      @public\n    */\n    forEach: function (callback, target) {\n      if (typeof callback !== 'function') {\n        throw new TypeError();\n      }\n\n      var context = popCtx();\n      var len = _emberMetal.get(this, 'length');\n      var last = null;\n\n      if (target === undefined) {\n        target = null;\n      }\n\n      for (var idx = 0; idx < len; idx++) {\n        var next = this.nextObject(idx, last, context);\n        callback.call(target, next, idx, this);\n        last = next;\n      }\n\n      last = null;\n      context = pushCtx(context);\n\n      return this;\n    },\n\n    /**\n      Alias for `mapBy`\n       @method getEach\n      @param {String} key name of the property\n      @return {Array} The mapped array.\n      @public\n    */\n    getEach: _emberMetal.aliasMethod('mapBy'),\n\n    /**\n      Sets the value on the named property for each member. This is more\n      ergonomic than using other methods defined on this helper. If the object\n      implements Ember.Observable, the value will be changed to `set(),` otherwise\n      it will be set directly. `null` objects are skipped.\n       @method setEach\n      @param {String} key The key to set\n      @param {Object} value The object to set\n      @return {Object} receiver\n      @public\n    */\n    setEach: function (key, value) {\n      return this.forEach(function (item) {\n        return _emberMetal.set(item, key, value);\n      });\n    },\n\n    /**\n      Maps all of the items in the enumeration to another value, returning\n      a new array. This method corresponds to `map()` defined in JavaScript 1.6.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       It should return the mapped value.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as `this` on the context. This is a good way\n      to give your iterator function access to the current object.\n       @method map\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Array} The mapped array.\n      @public\n    */\n    map: function (callback, target) {\n      var ret = emberA();\n\n      this.forEach(function (x, idx, i) {\n        return ret[idx] = callback.call(target, x, idx, i);\n      });\n\n      return ret;\n    },\n\n    /**\n      Similar to map, this specialized function returns the value of the named\n      property on all items in the enumeration.\n       @method mapBy\n      @param {String} key name of the property\n      @return {Array} The mapped array.\n      @public\n    */\n    mapBy: function (key) {\n      return this.map(function (next) {\n        return _emberMetal.get(next, key);\n      });\n    },\n\n    /**\n      Returns an array with all of the items in the enumeration that the passed\n      function returns true for. This method corresponds to `filter()` defined in\n      JavaScript 1.6.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       It should return `true` to include the item in the results, `false`\n      otherwise.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as `this` on the context. This is a good way\n      to give your iterator function access to the current object.\n       @method filter\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Array} A filtered array.\n      @public\n    */\n    filter: function (callback, target) {\n      var ret = emberA();\n\n      this.forEach(function (x, idx, i) {\n        if (callback.call(target, x, idx, i)) {\n          ret.push(x);\n        }\n      });\n\n      return ret;\n    },\n\n    /**\n      Returns an array with all of the items in the enumeration where the passed\n      function returns false. This method is the inverse of filter().\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - *item* is the current item in the iteration.\n      - *index* is the current index in the iteration\n      - *enumerable* is the enumerable object itself.\n       It should return a falsey value to include the item in the results.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as \"this\" on the context. This is a good way\n      to give your iterator function access to the current object.\n       @method reject\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Array} A rejected array.\n      @public\n    */\n    reject: function (callback, target) {\n      return this.filter(function () {\n        return !callback.apply(target, arguments);\n      });\n    },\n\n    /**\n      Returns an array with just the items with the matched property. You\n      can pass an optional second argument with the target value. Otherwise\n      this will match any property that evaluates to `true`.\n       @method filterBy\n      @param {String} key the property to test\n      @param {*} [value] optional value to test against.\n      @return {Array} filtered array\n      @public\n    */\n    filterBy: function (key, value) {\n      return this.filter(iter.apply(this, arguments));\n    },\n\n    /**\n      Returns an array with the items that do not have truthy values for\n      key.  You can pass an optional second argument with the target value.  Otherwise\n      this will match any property that evaluates to false.\n       @method rejectBy\n      @param {String} key the property to test\n      @param {String} [value] optional value to test against.\n      @return {Array} rejected array\n      @public\n    */\n    rejectBy: function (key, value) {\n      var exactValue = function (item) {\n        return _emberMetal.get(item, key) === value;\n      };\n      var hasValue = function (item) {\n        return !!_emberMetal.get(item, key);\n      };\n      var use = arguments.length === 2 ? exactValue : hasValue;\n\n      return this.reject(use);\n    },\n\n    /**\n      Returns the first item in the array for which the callback returns true.\n      This method works similar to the `filter()` method defined in JavaScript 1.6\n      except that it will stop working on the array once a match is found.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       It should return the `true` to include the item in the results, `false`\n      otherwise.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as `this` on the context. This is a good way\n      to give your iterator function access to the current object.\n       @method find\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Object} Found item or `undefined`.\n      @public\n    */\n    find: function (callback, target) {\n      var len = _emberMetal.get(this, 'length');\n\n      if (target === undefined) {\n        target = null;\n      }\n\n      var context = popCtx();\n      var found = false;\n      var last = null;\n      var next = undefined,\n          ret = undefined;\n\n      for (var idx = 0; idx < len && !found; idx++) {\n        next = this.nextObject(idx, last, context);\n\n        found = callback.call(target, next, idx, this);\n        if (found) {\n          ret = next;\n        }\n\n        last = next;\n      }\n\n      next = last = null;\n      context = pushCtx(context);\n\n      return ret;\n    },\n\n    /**\n      Returns the first item with a property matching the passed value. You\n      can pass an optional second argument with the target value. Otherwise\n      this will match any property that evaluates to `true`.\n       This method works much like the more generic `find()` method.\n       @method findBy\n      @param {String} key the property to test\n      @param {String} [value] optional value to test against.\n      @return {Object} found item or `undefined`\n      @public\n    */\n    findBy: function (key, value) {\n      return this.find(iter.apply(this, arguments));\n    },\n\n    /**\n      Returns `true` if the passed function returns true for every item in the\n      enumeration. This corresponds with the `every()` method in JavaScript 1.6.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       It should return the `true` or `false`.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as `this` on the context. This is a good way\n      to give your iterator function access to the current object.\n       Example Usage:\n       ```javascript\n      if (people.every(isEngineer)) {\n        Paychecks.addBigBonus();\n      }\n      ```\n       @method every\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Boolean}\n      @public\n    */\n    every: function (callback, target) {\n      return !this.find(function (x, idx, i) {\n        return !callback.call(target, x, idx, i);\n      });\n    },\n\n    /**\n      Returns `true` if the passed property resolves to the value of the second\n      argument for all items in the enumerable. This method is often simpler/faster\n      than using a callback.\n       @method isEvery\n      @param {String} key the property to test\n      @param {String} [value] optional value to test against. Defaults to `true`\n      @return {Boolean}\n      @since 1.3.0\n      @public\n    */\n    isEvery: function (key, value) {\n      return this.every(iter.apply(this, arguments));\n    },\n\n    /**\n      Returns `true` if the passed function returns true for any item in the\n      enumeration. This corresponds with the `some()` method in JavaScript 1.6.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(item, index, enumerable);\n      ```\n       - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       It should return the `true` to include the item in the results, `false`\n      otherwise.\n       Note that in addition to a callback, you can also pass an optional target\n      object that will be set as `this` on the context. This is a good way\n      to give your iterator function access to the current object.\n       Usage Example:\n       ```javascript\n      if (people.any(isManager)) {\n        Paychecks.addBiggerBonus();\n      }\n      ```\n       @method any\n      @param {Function} callback The callback to execute\n      @param {Object} [target] The target object to use\n      @return {Boolean} `true` if the passed function returns `true` for any item\n      @public\n    */\n    any: function (callback, target) {\n      var len = _emberMetal.get(this, 'length');\n      var context = popCtx();\n      var found = false;\n      var last = null;\n      var next = undefined;\n\n      if (target === undefined) {\n        target = null;\n      }\n\n      for (var idx = 0; idx < len && !found; idx++) {\n        next = this.nextObject(idx, last, context);\n        found = callback.call(target, next, idx, this);\n        last = next;\n      }\n\n      next = last = null;\n      context = pushCtx(context);\n      return found;\n    },\n\n    /**\n      Returns `true` if the passed property resolves to the value of the second\n      argument for any item in the enumerable. This method is often simpler/faster\n      than using a callback.\n       @method isAny\n      @param {String} key the property to test\n      @param {String} [value] optional value to test against. Defaults to `true`\n      @return {Boolean}\n      @since 1.3.0\n      @public\n    */\n    isAny: function (key, value) {\n      return this.any(iter.apply(this, arguments));\n    },\n\n    /**\n      This will combine the values of the enumerator into a single value. It\n      is a useful way to collect a summary value from an enumeration. This\n      corresponds to the `reduce()` method defined in JavaScript 1.8.\n       The callback method you provide should have the following signature (all\n      parameters are optional):\n       ```javascript\n      function(previousValue, item, index, enumerable);\n      ```\n       - `previousValue` is the value returned by the last call to the iterator.\n      - `item` is the current item in the iteration.\n      - `index` is the current index in the iteration.\n      - `enumerable` is the enumerable object itself.\n       Return the new cumulative value.\n       In addition to the callback you can also pass an `initialValue`. An error\n      will be raised if you do not pass an initial value and the enumerator is\n      empty.\n       Note that unlike the other methods, this method does not allow you to\n      pass a target object to set as this for the callback. It's part of the\n      spec. Sorry.\n       @method reduce\n      @param {Function} callback The callback to execute\n      @param {Object} initialValue Initial value for the reduce\n      @param {String} reducerProperty internal use only.\n      @return {Object} The reduced value.\n      @public\n    */\n    reduce: function (callback, initialValue, reducerProperty) {\n      if (typeof callback !== 'function') {\n        throw new TypeError();\n      }\n\n      var ret = initialValue;\n\n      this.forEach(function (item, i) {\n        ret = callback(ret, item, i, this, reducerProperty);\n      }, this);\n\n      return ret;\n    },\n\n    /**\n      Invokes the named method on every object in the receiver that\n      implements it. This method corresponds to the implementation in\n      Prototype 1.6.\n       @method invoke\n      @param {String} methodName the name of the method\n      @param {Object...} args optional arguments to pass as well.\n      @return {Array} return values from calling invoke.\n      @public\n    */\n    invoke: function (methodName) {\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      var ret = emberA();\n\n      this.forEach(function (x, idx) {\n        var method = x && x[methodName];\n\n        if ('function' === typeof method) {\n          ret[idx] = args ? method.apply(x, args) : x[methodName]();\n        }\n      }, this);\n\n      return ret;\n    },\n\n    /**\n      Simply converts the enumerable into a genuine array. The order is not\n      guaranteed. Corresponds to the method implemented by Prototype.\n       @method toArray\n      @return {Array} the enumerable as an array.\n      @public\n    */\n    toArray: function () {\n      var ret = emberA();\n\n      this.forEach(function (o, idx) {\n        return ret[idx] = o;\n      });\n\n      return ret;\n    },\n\n    /**\n      Returns a copy of the array with all `null` and `undefined` elements removed.\n       ```javascript\n      let arr = ['a', null, 'c', undefined];\n      arr.compact();  // ['a', 'c']\n      ```\n       @method compact\n      @return {Array} the array without null and undefined elements.\n      @public\n    */\n    compact: function () {\n      return this.filter(function (value) {\n        return value != null;\n      });\n    },\n\n    /**\n      Returns a new enumerable that excludes the passed value. The default\n      implementation returns an array regardless of the receiver type.\n      If the receiver does not contain the value it returns the original enumerable.\n       ```javascript\n      let arr = ['a', 'b', 'a', 'c'];\n      arr.without('a');  // ['b', 'c']\n      ```\n       @method without\n      @param {Object} value\n      @return {Ember.Enumerable}\n      @public\n    */\n    without: function (value) {\n      if (!this.includes(value)) {\n        return this; // nothing to do\n      }\n\n      var ret = emberA();\n\n      this.forEach(function (k) {\n        // SameValueZero comparison (NaN !== NaN)\n        if (!(k === value || k !== k && value !== value)) {\n          ret[ret.length] = k;\n        }\n      });\n\n      return ret;\n    },\n\n    /**\n      Returns a new enumerable that contains only unique values. The default\n      implementation returns an array regardless of the receiver type.\n       ```javascript\n      let arr = ['a', 'a', 'b', 'b'];\n      arr.uniq();  // ['a', 'b']\n      ```\n       This only works on primitive data types, e.g. Strings, Numbers, etc.\n       @method uniq\n      @return {Ember.Enumerable}\n      @public\n    */\n    uniq: function () {\n      var ret = emberA();\n\n      this.forEach(function (k) {\n        if (ret.indexOf(k) < 0) {\n          ret.push(k);\n        }\n      });\n\n      return ret;\n    },\n\n    /**\n      This property will trigger anytime the enumerable's content changes.\n      You can observe this property to be notified of changes to the enumerable's\n      content.\n       For plain enumerables, this property is read only. `Array` overrides\n      this method.\n       @property []\n      @type Array\n      @return this\n      @private\n    */\n    '[]': _emberMetal.computed({\n      get: function (key) {\n        return this;\n      }\n    }),\n\n    // ..........................................................\n    // ENUMERABLE OBSERVERS\n    //\n\n    /**\n      Registers an enumerable observer. Must implement `Ember.EnumerableObserver`\n      mixin.\n       @method addEnumerableObserver\n      @param {Object} target\n      @param {Object} [opts]\n      @return this\n      @private\n    */\n    addEnumerableObserver: function (target, opts) {\n      var willChange = opts && opts.willChange || 'enumerableWillChange';\n      var didChange = opts && opts.didChange || 'enumerableDidChange';\n      var hasObservers = _emberMetal.get(this, 'hasEnumerableObservers');\n\n      if (!hasObservers) {\n        _emberMetal.propertyWillChange(this, 'hasEnumerableObservers');\n      }\n\n      _emberMetal.addListener(this, '@enumerable:before', target, willChange);\n      _emberMetal.addListener(this, '@enumerable:change', target, didChange);\n\n      if (!hasObservers) {\n        _emberMetal.propertyDidChange(this, 'hasEnumerableObservers');\n      }\n\n      return this;\n    },\n\n    /**\n      Removes a registered enumerable observer.\n       @method removeEnumerableObserver\n      @param {Object} target\n      @param {Object} [opts]\n      @return this\n      @private\n    */\n    removeEnumerableObserver: function (target, opts) {\n      var willChange = opts && opts.willChange || 'enumerableWillChange';\n      var didChange = opts && opts.didChange || 'enumerableDidChange';\n      var hasObservers = _emberMetal.get(this, 'hasEnumerableObservers');\n\n      if (hasObservers) {\n        _emberMetal.propertyWillChange(this, 'hasEnumerableObservers');\n      }\n\n      _emberMetal.removeListener(this, '@enumerable:before', target, willChange);\n      _emberMetal.removeListener(this, '@enumerable:change', target, didChange);\n\n      if (hasObservers) {\n        _emberMetal.propertyDidChange(this, 'hasEnumerableObservers');\n      }\n\n      return this;\n    },\n\n    /**\n      Becomes true whenever the array currently has observers watching changes\n      on the array.\n       @property hasEnumerableObservers\n      @type Boolean\n      @private\n    */\n    hasEnumerableObservers: _emberMetal.computed(function () {\n      return _emberMetal.hasListeners(this, '@enumerable:change') || _emberMetal.hasListeners(this, '@enumerable:before');\n    }),\n\n    /**\n      Invoke this method just before the contents of your enumerable will\n      change. You can either omit the parameters completely or pass the objects\n      to be removed or added if available or just a count.\n       @method enumerableContentWillChange\n      @param {Ember.Enumerable|Number} removing An enumerable of the objects to\n        be removed or the number of items to be removed.\n      @param {Ember.Enumerable|Number} adding An enumerable of the objects to be\n        added or the number of items to be added.\n      @chainable\n      @private\n    */\n    enumerableContentWillChange: function (removing, adding) {\n      var removeCnt = undefined,\n          addCnt = undefined,\n          hasDelta = undefined;\n\n      if ('number' === typeof removing) {\n        removeCnt = removing;\n      } else if (removing) {\n        removeCnt = _emberMetal.get(removing, 'length');\n      } else {\n        removeCnt = removing = -1;\n      }\n\n      if ('number' === typeof adding) {\n        addCnt = adding;\n      } else if (adding) {\n        addCnt = _emberMetal.get(adding, 'length');\n      } else {\n        addCnt = adding = -1;\n      }\n\n      hasDelta = addCnt < 0 || removeCnt < 0 || addCnt - removeCnt !== 0;\n\n      if (removing === -1) {\n        removing = null;\n      }\n\n      if (adding === -1) {\n        adding = null;\n      }\n\n      _emberMetal.propertyWillChange(this, '[]');\n\n      if (hasDelta) {\n        _emberMetal.propertyWillChange(this, 'length');\n      }\n\n      _emberMetal.sendEvent(this, '@enumerable:before', [this, removing, adding]);\n\n      return this;\n    },\n\n    /**\n      Invoke this method when the contents of your enumerable has changed.\n      This will notify any observers watching for content changes. If you are\n      implementing an ordered enumerable (such as an array), also pass the\n      start and end values where the content changed so that it can be used to\n      notify range observers.\n       @method enumerableContentDidChange\n      @param {Ember.Enumerable|Number} removing An enumerable of the objects to\n        be removed or the number of items to be removed.\n      @param {Ember.Enumerable|Number} adding  An enumerable of the objects to\n        be added or the number of items to be added.\n      @chainable\n      @private\n    */\n    enumerableContentDidChange: function (removing, adding) {\n      var removeCnt = undefined,\n          addCnt = undefined,\n          hasDelta = undefined;\n\n      if ('number' === typeof removing) {\n        removeCnt = removing;\n      } else if (removing) {\n        removeCnt = _emberMetal.get(removing, 'length');\n      } else {\n        removeCnt = removing = -1;\n      }\n\n      if ('number' === typeof adding) {\n        addCnt = adding;\n      } else if (adding) {\n        addCnt = _emberMetal.get(adding, 'length');\n      } else {\n        addCnt = adding = -1;\n      }\n\n      hasDelta = addCnt < 0 || removeCnt < 0 || addCnt - removeCnt !== 0;\n\n      if (removing === -1) {\n        removing = null;\n      }\n\n      if (adding === -1) {\n        adding = null;\n      }\n\n      _emberMetal.sendEvent(this, '@enumerable:change', [this, removing, adding]);\n\n      if (hasDelta) {\n        _emberMetal.propertyDidChange(this, 'length');\n      }\n\n      _emberMetal.propertyDidChange(this, '[]');\n\n      return this;\n    },\n\n    /**\n      Converts the enumerable into an array and sorts by the keys\n      specified in the argument.\n       You may provide multiple arguments to sort by multiple properties.\n       @method sortBy\n      @param {String} property name(s) to sort on\n      @return {Array} The sorted array.\n      @since 1.2.0\n      @public\n    */\n    sortBy: function () {\n      var sortKeys = arguments;\n\n      return this.toArray().sort(function (a, b) {\n        for (var i = 0; i < sortKeys.length; i++) {\n          var key = sortKeys[i];\n          var propA = _emberMetal.get(a, key);\n          var propB = _emberMetal.get(b, key);\n          // return 1 or -1 else continue to the next sortKey\n          var compareValue = _emberRuntimeCompare.default(propA, propB);\n\n          if (compareValue) {\n            return compareValue;\n          }\n        }\n        return 0;\n      });\n    },\n\n    /**\n      Returns a new enumerable that contains only items containing a unique property value.\n      The default implementation returns an array regardless of the receiver type.\n       ```javascript\n      let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\n      arr.uniqBy('value');  // [{ value: 'a' }, { value: 'b' }]\n      ```\n       @method uniqBy\n      @return {Ember.Enumerable}\n      @public\n    */\n\n    uniqBy: function (key) {\n      var ret = emberA();\n      var seen = Object.create(null);\n\n      this.forEach(function (item) {\n        var guid = _emberUtils.guidFor(_emberMetal.get(item, key));\n        if (!(guid in seen)) {\n          seen[guid] = true;\n          ret.push(item);\n        }\n      });\n\n      return ret;\n    },\n\n    /**\n      Returns `true` if the passed object can be found in the enumerable.\n       ```javascript\n      [1, 2, 3].includes(2);                     // true\n      [1, 2, 3].includes(4);                     // false\n      [1, 2, undefined].includes(undefined);     // true\n      [1, 2, null].includes(null);               // true\n      [1, 2, NaN].includes(NaN);                 // true\n      ```\n       @method includes\n      @param {Object} obj The object to search for.\n      @return {Boolean} `true` if object is found in the enumerable.\n      @public\n    */\n    includes: function (obj) {\n      _emberDebug.assert('Enumerable#includes cannot accept a second argument \"startAt\" as enumerable items are unordered.', arguments.length === 1);\n\n      var len = _emberMetal.get(this, 'length');\n      var idx = undefined,\n          next = undefined;\n      var last = null;\n      var found = false;\n\n      var context = popCtx();\n\n      for (idx = 0; idx < len && !found; idx++) {\n        next = this.nextObject(idx, last, context);\n\n        found = obj === next || obj !== obj && next !== next;\n\n        last = next;\n      }\n\n      next = last = null;\n      context = pushCtx(context);\n\n      return found;\n    }\n  });\n\n  exports.default = Enumerable;\n});\nenifed('ember-runtime/mixins/evented', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  /**\n    This mixin allows for Ember objects to subscribe to and emit events.\n  \n    ```javascript\n    App.Person = Ember.Object.extend(Ember.Evented, {\n      greet: function() {\n        // ...\n        this.trigger('greet');\n      }\n    });\n  \n    var person = App.Person.create();\n  \n    person.on('greet', function() {\n      console.log('Our person has greeted');\n    });\n  \n    person.greet();\n  \n    // outputs: 'Our person has greeted'\n    ```\n  \n    You can also chain multiple event subscriptions:\n  \n    ```javascript\n    person.on('greet', function() {\n      console.log('Our person has greeted');\n    }).one('greet', function() {\n      console.log('Offer one-time special');\n    }).off('event', this, forgetThis);\n    ```\n  \n    @class Evented\n    @namespace Ember\n    @public\n   */\n  exports.default = _emberMetal.Mixin.create({\n\n    /**\n     Subscribes to a named event with given function.\n      ```javascript\n     person.on('didLoad', function() {\n       // fired once the person has loaded\n     });\n     ```\n      An optional target can be passed in as the 2nd argument that will\n     be set as the \"this\" for the callback. This is a good way to give your\n     function access to the object triggering the event. When the target\n     parameter is used the callback becomes the third argument.\n      @method on\n     @param {String} name The name of the event\n     @param {Object} [target] The \"this\" binding for the callback\n     @param {Function} method The callback to execute\n     @return this\n     @public\n    */\n    on: function (name, target, method) {\n      _emberMetal.addListener(this, name, target, method);\n      return this;\n    },\n\n    /**\n      Subscribes a function to a named event and then cancels the subscription\n      after the first time the event is triggered. It is good to use ``one`` when\n      you only care about the first time an event has taken place.\n       This function takes an optional 2nd argument that will become the \"this\"\n      value for the callback. If this argument is passed then the 3rd argument\n      becomes the function.\n       @method one\n      @param {String} name The name of the event\n      @param {Object} [target] The \"this\" binding for the callback\n      @param {Function} method The callback to execute\n      @return this\n      @public\n    */\n    one: function (name, target, method) {\n      if (!method) {\n        method = target;\n        target = null;\n      }\n\n      _emberMetal.addListener(this, name, target, method, true);\n      return this;\n    },\n\n    /**\n      Triggers a named event for the object. Any additional arguments\n      will be passed as parameters to the functions that are subscribed to the\n      event.\n       ```javascript\n      person.on('didEat', function(food) {\n        console.log('person ate some ' + food);\n      });\n       person.trigger('didEat', 'broccoli');\n       // outputs: person ate some broccoli\n      ```\n      @method trigger\n      @param {String} name The name of the event\n      @param {Object...} args Optional arguments to pass on\n      @public\n    */\n    trigger: function (name) {\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      _emberMetal.sendEvent(this, name, args);\n    },\n\n    /**\n      Cancels subscription for given name, target, and method.\n       @method off\n      @param {String} name The name of the event\n      @param {Object} target The target of the subscription\n      @param {Function} method The function of the subscription\n      @return this\n      @public\n    */\n    off: function (name, target, method) {\n      _emberMetal.removeListener(this, name, target, method);\n      return this;\n    },\n\n    /**\n      Checks to see if object has any subscriptions for named event.\n       @method has\n      @param {String} name The name of the event\n      @return {Boolean} does the object have a subscription for event\n      @public\n     */\n    has: function (name) {\n      return _emberMetal.hasListeners(this, name);\n    }\n  });\n});\nenifed('ember-runtime/mixins/freezable', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  /**\n    The `Ember.Freezable` mixin implements some basic methods for marking an\n    object as frozen. Once an object is frozen it should be read only. No changes\n    may be made the internal state of the object.\n  \n    ## Enforcement\n  \n    To fully support freezing in your subclass, you must include this mixin and\n    override any method that might alter any property on the object to instead\n    raise an exception. You can check the state of an object by checking the\n    `isFrozen` property.\n  \n    Although future versions of JavaScript may support language-level freezing\n    object objects, that is not the case today. Even if an object is freezable,\n    it is still technically possible to modify the object, even though it could\n    break other parts of your application that do not expect a frozen object to\n    change. It is, therefore, very important that you always respect the\n    `isFrozen` property on all freezable objects.\n  \n    ## Example Usage\n  \n    The example below shows a simple object that implement the `Ember.Freezable`\n    protocol.\n  \n    ```javascript\n    Contact = Ember.Object.extend(Ember.Freezable, {\n      firstName: null,\n      lastName: null,\n  \n      // swaps the names\n      swapNames: function() {\n        if (this.get('isFrozen')) throw Ember.FROZEN_ERROR;\n        var tmp = this.get('firstName');\n        this.set('firstName', this.get('lastName'));\n        this.set('lastName', tmp);\n        return this;\n      }\n  \n    });\n  \n    c = Contact.create({ firstName: \"John\", lastName: \"Doe\" });\n    c.swapNames();  // returns c\n    c.freeze();\n    c.swapNames();  // EXCEPTION\n    ```\n  \n    ## Copying\n  \n    Usually the `Ember.Freezable` protocol is implemented in cooperation with the\n    `Ember.Copyable` protocol, which defines a `frozenCopy()` method that will\n    return a frozen object, if the object implements this method as well.\n  \n    @class Freezable\n    @namespace Ember\n    @since Ember 0.9\n    @deprecated Use `Object.freeze` instead.\n    @private\n  */\n  var Freezable = _emberMetal.Mixin.create({\n\n    init: function () {\n      _emberDebug.deprecate('`Ember.Freezable` is deprecated, use `Object.freeze` instead.', false, { id: 'ember-runtime.freezable-init', until: '3.0.0' });\n      this._super.apply(this, arguments);\n    },\n\n    /**\n      Set to `true` when the object is frozen. Use this property to detect\n      whether your object is frozen or not.\n       @property isFrozen\n      @type Boolean\n      @private\n    */\n    isFrozen: false,\n\n    /**\n      Freezes the object. Once this method has been called the object should\n      no longer allow any properties to be edited.\n       @method freeze\n      @return {Object} receiver\n      @private\n    */\n    freeze: function () {\n      if (_emberMetal.get(this, 'isFrozen')) {\n        return this;\n      }\n\n      _emberMetal.set(this, 'isFrozen', true);\n      return this;\n    }\n\n  });\n\n  exports.Freezable = Freezable;\n  var FROZEN_ERROR = 'Frozen object cannot be modified.';\n  exports.FROZEN_ERROR = FROZEN_ERROR;\n});\nenifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-runtime/mixins/array', 'ember-runtime/mixins/mutable_enumerable', 'ember-runtime/mixins/enumerable', 'ember-debug'], function (exports, _emberMetal, _emberRuntimeMixinsArray, _emberRuntimeMixinsMutable_enumerable, _emberRuntimeMixinsEnumerable, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  exports.removeAt = removeAt;\n  var OUT_OF_RANGE_EXCEPTION = 'Index out of range';\n  var EMPTY = [];\n\n  // ..........................................................\n  // HELPERS\n  //\n\n  function removeAt(array, start, len) {\n    if ('number' === typeof start) {\n      if (start < 0 || start >= _emberMetal.get(array, 'length')) {\n        throw new _emberDebug.Error(OUT_OF_RANGE_EXCEPTION);\n      }\n\n      // fast case\n      if (len === undefined) {\n        len = 1;\n      }\n\n      array.replace(start, len, EMPTY);\n    }\n\n    return array;\n  }\n\n  /**\n    This mixin defines the API for modifying array-like objects. These methods\n    can be applied only to a collection that keeps its items in an ordered set.\n    It builds upon the Array mixin and adds methods to modify the array.\n    One concrete implementations of this class include ArrayProxy.\n  \n    It is important to use the methods in this class to modify arrays so that\n    changes are observable. This allows the binding system in Ember to function\n    correctly.\n  \n  \n    Note that an Array can change even if it does not implement this mixin.\n    For example, one might implement a SparseArray that cannot be directly\n    modified, but if its underlying enumerable changes, it will change also.\n  \n    @class MutableArray\n    @namespace Ember\n    @uses Ember.Array\n    @uses Ember.MutableEnumerable\n    @public\n  */\n  exports.default = _emberMetal.Mixin.create(_emberRuntimeMixinsArray.default, _emberRuntimeMixinsMutable_enumerable.default, {\n\n    /**\n      __Required.__ You must implement this method to apply this mixin.\n       This is one of the primitives you must implement to support `Ember.Array`.\n      You should replace amt objects started at idx with the objects in the\n      passed array. You should also call `this.enumerableContentDidChange()`\n       @method replace\n      @param {Number} idx Starting index in the array to replace. If\n        idx >= length, then append to the end of the array.\n      @param {Number} amt Number of elements that should be removed from\n        the array, starting at *idx*.\n      @param {Array} objects An array of zero or more objects that should be\n        inserted into the array at *idx*\n      @public\n    */\n    replace: null,\n\n    /**\n      Remove all elements from the array. This is useful if you\n      want to reuse an existing array without having to recreate it.\n       ```javascript\n      let colors = ['red', 'green', 'blue'];\n       colors.length;  // 3\n      colors.clear(); // []\n      colors.length;  // 0\n      ```\n       @method clear\n      @return {Ember.Array} An empty Array.\n      @public\n    */\n    clear: function () {\n      var len = _emberMetal.get(this, 'length');\n      if (len === 0) {\n        return this;\n      }\n\n      this.replace(0, len, EMPTY);\n      return this;\n    },\n\n    /**\n      This will use the primitive `replace()` method to insert an object at the\n      specified index.\n       ```javascript\n      let colors = ['red', 'green', 'blue'];\n       colors.insertAt(2, 'yellow');  // ['red', 'green', 'yellow', 'blue']\n      colors.insertAt(5, 'orange');  // Error: Index out of range\n      ```\n       @method insertAt\n      @param {Number} idx index of insert the object at.\n      @param {Object} object object to insert\n      @return {Ember.Array} receiver\n      @public\n    */\n    insertAt: function (idx, object) {\n      if (idx > _emberMetal.get(this, 'length')) {\n        throw new _emberDebug.Error(OUT_OF_RANGE_EXCEPTION);\n      }\n\n      this.replace(idx, 0, [object]);\n      return this;\n    },\n\n    /**\n      Remove an object at the specified index using the `replace()` primitive\n      method. You can pass either a single index, or a start and a length.\n       If you pass a start and length that is beyond the\n      length this method will throw an `OUT_OF_RANGE_EXCEPTION`.\n       ```javascript\n      let colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n       colors.removeAt(0);     // ['green', 'blue', 'yellow', 'orange']\n      colors.removeAt(2, 2);  // ['green', 'blue']\n      colors.removeAt(4, 2);  // Error: Index out of range\n      ```\n       @method removeAt\n      @param {Number} start index, start of range\n      @param {Number} len length of passing range\n      @return {Ember.Array} receiver\n      @public\n    */\n    removeAt: function (start, len) {\n      return removeAt(this, start, len);\n    },\n\n    /**\n      Push the object onto the end of the array. Works just like `push()` but it\n      is KVO-compliant.\n       ```javascript\n      let colors = ['red', 'green'];\n       colors.pushObject('black');     // ['red', 'green', 'black']\n      colors.pushObject(['yellow']);  // ['red', 'green', ['yellow']]\n      ```\n       @method pushObject\n      @param {*} obj object to push\n      @return object same object passed as a param\n      @public\n    */\n    pushObject: function (obj) {\n      this.insertAt(_emberMetal.get(this, 'length'), obj);\n      return obj;\n    },\n\n    /**\n      Add the objects in the passed numerable to the end of the array. Defers\n      notifying observers of the change until all objects are added.\n       ```javascript\n      let colors = ['red'];\n       colors.pushObjects(['yellow', 'orange']);  // ['red', 'yellow', 'orange']\n      ```\n       @method pushObjects\n      @param {Ember.Enumerable} objects the objects to add\n      @return {Ember.Array} receiver\n      @public\n    */\n    pushObjects: function (objects) {\n      if (!(_emberRuntimeMixinsEnumerable.default.detect(objects) || Array.isArray(objects))) {\n        throw new TypeError('Must pass Ember.Enumerable to Ember.MutableArray#pushObjects');\n      }\n      this.replace(_emberMetal.get(this, 'length'), 0, objects);\n      return this;\n    },\n\n    /**\n      Pop object from array or nil if none are left. Works just like `pop()` but\n      it is KVO-compliant.\n       ```javascript\n      let colors = ['red', 'green', 'blue'];\n       colors.popObject();   // 'blue'\n      console.log(colors);  // ['red', 'green']\n      ```\n       @method popObject\n      @return object\n      @public\n    */\n    popObject: function () {\n      var len = _emberMetal.get(this, 'length');\n      if (len === 0) {\n        return null;\n      }\n\n      var ret = _emberRuntimeMixinsArray.objectAt(this, len - 1);\n      this.removeAt(len - 1, 1);\n      return ret;\n    },\n\n    /**\n      Shift an object from start of array or nil if none are left. Works just\n      like `shift()` but it is KVO-compliant.\n       ```javascript\n      let colors = ['red', 'green', 'blue'];\n       colors.shiftObject();  // 'red'\n      console.log(colors);   // ['green', 'blue']\n      ```\n       @method shiftObject\n      @return object\n      @public\n    */\n    shiftObject: function () {\n      if (_emberMetal.get(this, 'length') === 0) {\n        return null;\n      }\n\n      var ret = _emberRuntimeMixinsArray.objectAt(this, 0);\n      this.removeAt(0);\n      return ret;\n    },\n\n    /**\n      Unshift an object to start of array. Works just like `unshift()` but it is\n      KVO-compliant.\n       ```javascript\n      let colors = ['red'];\n       colors.unshiftObject('yellow');    // ['yellow', 'red']\n      colors.unshiftObject(['black']);   // [['black'], 'yellow', 'red']\n      ```\n       @method unshiftObject\n      @param {*} obj object to unshift\n      @return object same object passed as a param\n      @public\n    */\n    unshiftObject: function (obj) {\n      this.insertAt(0, obj);\n      return obj;\n    },\n\n    /**\n      Adds the named objects to the beginning of the array. Defers notifying\n      observers until all objects have been added.\n       ```javascript\n      let colors = ['red'];\n       colors.unshiftObjects(['black', 'white']);   // ['black', 'white', 'red']\n      colors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n      ```\n       @method unshiftObjects\n      @param {Ember.Enumerable} objects the objects to add\n      @return {Ember.Array} receiver\n      @public\n    */\n    unshiftObjects: function (objects) {\n      this.replace(0, 0, objects);\n      return this;\n    },\n\n    /**\n      Reverse objects in the array. Works just like `reverse()` but it is\n      KVO-compliant.\n       @method reverseObjects\n      @return {Ember.Array} receiver\n       @public\n    */\n    reverseObjects: function () {\n      var len = _emberMetal.get(this, 'length');\n      if (len === 0) {\n        return this;\n      }\n\n      var objects = this.toArray().reverse();\n      this.replace(0, len, objects);\n      return this;\n    },\n\n    /**\n      Replace all the receiver's content with content of the argument.\n      If argument is an empty array receiver will be cleared.\n       ```javascript\n      let colors = ['red', 'green', 'blue'];\n       colors.setObjects(['black', 'white']);  // ['black', 'white']\n      colors.setObjects([]);                  // []\n      ```\n       @method setObjects\n      @param {Ember.Array} objects array whose content will be used for replacing\n          the content of the receiver\n      @return {Ember.Array} receiver with the new content\n      @public\n    */\n    setObjects: function (objects) {\n      if (objects.length === 0) {\n        return this.clear();\n      }\n\n      var len = _emberMetal.get(this, 'length');\n      this.replace(0, len, objects);\n      return this;\n    },\n\n    // ..........................................................\n    // IMPLEMENT Ember.MutableEnumerable\n    //\n\n    /**\n      Remove all occurrences of an object in the array.\n       ```javascript\n      let cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n       cities.removeObject('Chicago');  // ['Berlin', 'Lima']\n      cities.removeObject('Lima');     // ['Berlin']\n      cities.removeObject('Tokyo')     // ['Berlin']\n      ```\n       @method removeObject\n      @param {*} obj object to remove\n      @return {Ember.Array} receiver\n      @public\n    */\n    removeObject: function (obj) {\n      var loc = _emberMetal.get(this, 'length') || 0;\n      while (--loc >= 0) {\n        var curObject = _emberRuntimeMixinsArray.objectAt(this, loc);\n\n        if (curObject === obj) {\n          this.removeAt(loc);\n        }\n      }\n      return this;\n    },\n\n    /**\n      Push the object onto the end of the array if it is not already\n      present in the array.\n       ```javascript\n      let cities = ['Chicago', 'Berlin'];\n       cities.addObject('Lima');    // ['Chicago', 'Berlin', 'Lima']\n      cities.addObject('Berlin');  // ['Chicago', 'Berlin', 'Lima']\n      ```\n       @method addObject\n      @param {*} obj object to add, if not already present\n      @return {Ember.Array} receiver\n      @public\n    */\n    addObject: function (obj) {\n      var included = this.includes(obj);\n\n      if (!included) {\n        this.pushObject(obj);\n      }\n\n      return this;\n    }\n  });\n});\nenifed('ember-runtime/mixins/mutable_enumerable', ['exports', 'ember-runtime/mixins/enumerable', 'ember-metal'], function (exports, _emberRuntimeMixinsEnumerable, _emberMetal) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  /**\n    This mixin defines the API for modifying generic enumerables. These methods\n    can be applied to an object regardless of whether it is ordered or\n    unordered.\n  \n    Note that an Enumerable can change even if it does not implement this mixin.\n    For example, a MappedEnumerable cannot be directly modified but if its\n    underlying enumerable changes, it will change also.\n  \n    ## Adding Objects\n  \n    To add an object to an enumerable, use the `addObject()` method. This\n    method will only add the object to the enumerable if the object is not\n    already present and is of a type supported by the enumerable.\n  \n    ```javascript\n    set.addObject(contact);\n    ```\n  \n    ## Removing Objects\n  \n    To remove an object from an enumerable, use the `removeObject()` method. This\n    will only remove the object if it is present in the enumerable, otherwise\n    this method has no effect.\n  \n    ```javascript\n    set.removeObject(contact);\n    ```\n  \n    ## Implementing In Your Own Code\n  \n    If you are implementing an object and want to support this API, just include\n    this mixin in your class and implement the required methods. In your unit\n    tests, be sure to apply the Ember.MutableEnumerableTests to your object.\n  \n    @class MutableEnumerable\n    @namespace Ember\n    @uses Ember.Enumerable\n    @public\n  */\n  exports.default = _emberMetal.Mixin.create(_emberRuntimeMixinsEnumerable.default, {\n\n    /**\n      __Required.__ You must implement this method to apply this mixin.\n       Attempts to add the passed object to the receiver if the object is not\n      already present in the collection. If the object is present, this method\n      has no effect.\n       If the passed object is of a type not supported by the receiver,\n      then this method should raise an exception.\n       @method addObject\n      @param {Object} object The object to add to the enumerable.\n      @return {Object} the passed object\n      @public\n    */\n    addObject: null,\n\n    /**\n      Adds each object in the passed enumerable to the receiver.\n       @method addObjects\n      @param {Ember.Enumerable} objects the objects to add.\n      @return {Object} receiver\n      @public\n    */\n    addObjects: function (objects) {\n      var _this = this;\n\n      _emberMetal.beginPropertyChanges(this);\n      objects.forEach(function (obj) {\n        return _this.addObject(obj);\n      });\n      _emberMetal.endPropertyChanges(this);\n      return this;\n    },\n\n    /**\n      __Required.__ You must implement this method to apply this mixin.\n       Attempts to remove the passed object from the receiver collection if the\n      object is present in the collection. If the object is not present,\n      this method has no effect.\n       If the passed object is of a type not supported by the receiver,\n      then this method should raise an exception.\n       @method removeObject\n      @param {Object} object The object to remove from the enumerable.\n      @return {Object} the passed object\n      @public\n    */\n    removeObject: null,\n\n    /**\n      Removes each object in the passed enumerable from the receiver.\n       @method removeObjects\n      @param {Ember.Enumerable} objects the objects to remove\n      @return {Object} receiver\n      @public\n    */\n    removeObjects: function (objects) {\n      _emberMetal.beginPropertyChanges(this);\n      for (var i = objects.length - 1; i >= 0; i--) {\n        this.removeObject(objects[i]);\n      }\n      _emberMetal.endPropertyChanges(this);\n      return this;\n    }\n  });\n});\nenifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  /**\n    ## Overview\n  \n    This mixin provides properties and property observing functionality, core\n    features of the Ember object model.\n  \n    Properties and observers allow one object to observe changes to a\n    property on another object. This is one of the fundamental ways that\n    models, controllers and views communicate with each other in an Ember\n    application.\n  \n    Any object that has this mixin applied can be used in observer\n    operations. That includes `Ember.Object` and most objects you will\n    interact with as you write your Ember application.\n  \n    Note that you will not generally apply this mixin to classes yourself,\n    but you will use the features provided by this module frequently, so it\n    is important to understand how to use it.\n  \n    ## Using `get()` and `set()`\n  \n    Because of Ember's support for bindings and observers, you will always\n    access properties using the get method, and set properties using the\n    set method. This allows the observing objects to be notified and\n    computed properties to be handled properly.\n  \n    More documentation about `get` and `set` are below.\n  \n    ## Observing Property Changes\n  \n    You typically observe property changes simply by using the `Ember.observer`\n    function in classes that you write.\n  \n    For example:\n  \n    ```javascript\n    Ember.Object.extend({\n      valueObserver: Ember.observer('value', function(sender, key, value, rev) {\n        // Executes whenever the \"value\" property changes\n        // See the addObserver method for more information about the callback arguments\n      })\n    });\n    ```\n  \n    Although this is the most common way to add an observer, this capability\n    is actually built into the `Ember.Object` class on top of two methods\n    defined in this mixin: `addObserver` and `removeObserver`. You can use\n    these two methods to add and remove observers yourself if you need to\n    do so at runtime.\n  \n    To add an observer for a property, call:\n  \n    ```javascript\n    object.addObserver('propertyKey', targetObject, targetAction)\n    ```\n  \n    This will call the `targetAction` method on the `targetObject` whenever\n    the value of the `propertyKey` changes.\n  \n    Note that if `propertyKey` is a computed property, the observer will be\n    called when any of the property dependencies are changed, even if the\n    resulting value of the computed property is unchanged. This is necessary\n    because computed properties are not computed until `get` is called.\n  \n    @class Observable\n    @namespace Ember\n    @public\n  */\n  exports.default = _emberMetal.Mixin.create({\n\n    /**\n      Retrieves the value of a property from the object.\n       This method is usually similar to using `object[keyName]` or `object.keyName`,\n      however it supports both computed properties and the unknownProperty\n      handler.\n       Because `get` unifies the syntax for accessing all these kinds\n      of properties, it can make many refactorings easier, such as replacing a\n      simple property with a computed property, or vice versa.\n       ### Computed Properties\n       Computed properties are methods defined with the `property` modifier\n      declared at the end, such as:\n       ```javascript\n      fullName: Ember.computed('firstName', 'lastName', function() {\n        return this.get('firstName') + ' ' + this.get('lastName');\n      })\n      ```\n       When you call `get` on a computed property, the function will be\n      called and the return value will be returned instead of the function\n      itself.\n       ### Unknown Properties\n       Likewise, if you try to call `get` on a property whose value is\n      `undefined`, the `unknownProperty()` method will be called on the object.\n      If this method returns any value other than `undefined`, it will be returned\n      instead. This allows you to implement \"virtual\" properties that are\n      not defined upfront.\n       @method get\n      @param {String} keyName The property to retrieve\n      @return {Object} The property value or undefined.\n      @public\n    */\n    get: function (keyName) {\n      return _emberMetal.get(this, keyName);\n    },\n\n    /**\n      To get the values of multiple properties at once, call `getProperties`\n      with a list of strings or an array:\n       ```javascript\n      record.getProperties('firstName', 'lastName', 'zipCode');\n      // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n      ```\n       is equivalent to:\n       ```javascript\n      record.getProperties(['firstName', 'lastName', 'zipCode']);\n      // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n      ```\n       @method getProperties\n      @param {String...|Array} list of keys to get\n      @return {Object}\n      @public\n    */\n    getProperties: function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      return _emberMetal.getProperties.apply(undefined, [this].concat(args));\n    },\n\n    /**\n      Sets the provided key or path to the value.\n       ```javascript\n      record.set(\"key\", value);\n      ```\n       This method is generally very similar to calling `object[\"key\"] = value` or\n      `object.key = value`, except that it provides support for computed\n      properties, the `setUnknownProperty()` method and property observers.\n       ### Computed Properties\n       If you try to set a value on a key that has a computed property handler\n      defined (see the `get()` method for an example), then `set()` will call\n      that method, passing both the value and key instead of simply changing\n      the value itself. This is useful for those times when you need to\n      implement a property that is composed of one or more member\n      properties.\n       ### Unknown Properties\n       If you try to set a value on a key that is undefined in the target\n      object, then the `setUnknownProperty()` handler will be called instead. This\n      gives you an opportunity to implement complex \"virtual\" properties that\n      are not predefined on the object. If `setUnknownProperty()` returns\n      undefined, then `set()` will simply set the value on the object.\n       ### Property Observers\n       In addition to changing the property, `set()` will also register a property\n      change with the object. Unless you have placed this call inside of a\n      `beginPropertyChanges()` and `endPropertyChanges(),` any \"local\" observers\n      (i.e. observer methods declared on the same object), will be called\n      immediately. Any \"remote\" observers (i.e. observer methods declared on\n      another object) will be placed in a queue and called at a later time in a\n      coalesced manner.\n       @method set\n      @param {String} keyName The property to set\n      @param {Object} value The value to set or `null`.\n      @return {Object} The passed value\n      @public\n    */\n    set: function (keyName, value) {\n      return _emberMetal.set(this, keyName, value);\n    },\n\n    /**\n      Sets a list of properties at once. These properties are set inside\n      a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n      observers will be buffered.\n       ```javascript\n      record.setProperties({ firstName: 'Charles', lastName: 'Jolley' });\n      ```\n       @method setProperties\n      @param {Object} hash the hash of keys and values to set\n      @return {Object} The passed in hash\n      @public\n    */\n    setProperties: function (hash) {\n      return _emberMetal.setProperties(this, hash);\n    },\n\n    /**\n      Begins a grouping of property changes.\n       You can use this method to group property changes so that notifications\n      will not be sent until the changes are finished. If you plan to make a\n      large number of changes to an object at one time, you should call this\n      method at the beginning of the changes to begin deferring change\n      notifications. When you are done making changes, call\n      `endPropertyChanges()` to deliver the deferred change notifications and end\n      deferring.\n       @method beginPropertyChanges\n      @return {Ember.Observable}\n      @private\n    */\n    beginPropertyChanges: function () {\n      _emberMetal.beginPropertyChanges();\n      return this;\n    },\n\n    /**\n      Ends a grouping of property changes.\n       You can use this method to group property changes so that notifications\n      will not be sent until the changes are finished. If you plan to make a\n      large number of changes to an object at one time, you should call\n      `beginPropertyChanges()` at the beginning of the changes to defer change\n      notifications. When you are done making changes, call this method to\n      deliver the deferred change notifications and end deferring.\n       @method endPropertyChanges\n      @return {Ember.Observable}\n      @private\n    */\n    endPropertyChanges: function () {\n      _emberMetal.endPropertyChanges();\n      return this;\n    },\n\n    /**\n      Notify the observer system that a property is about to change.\n       Sometimes you need to change a value directly or indirectly without\n      actually calling `get()` or `set()` on it. In this case, you can use this\n      method and `propertyDidChange()` instead. Calling these two methods\n      together will notify all observers that the property has potentially\n      changed value.\n       Note that you must always call `propertyWillChange` and `propertyDidChange`\n      as a pair. If you do not, it may get the property change groups out of\n      order and cause notifications to be delivered more often than you would\n      like.\n       @method propertyWillChange\n      @param {String} keyName The property key that is about to change.\n      @return {Ember.Observable}\n      @private\n    */\n    propertyWillChange: function (keyName) {\n      _emberMetal.propertyWillChange(this, keyName);\n      return this;\n    },\n\n    /**\n      Notify the observer system that a property has just changed.\n       Sometimes you need to change a value directly or indirectly without\n      actually calling `get()` or `set()` on it. In this case, you can use this\n      method and `propertyWillChange()` instead. Calling these two methods\n      together will notify all observers that the property has potentially\n      changed value.\n       Note that you must always call `propertyWillChange` and `propertyDidChange`\n      as a pair. If you do not, it may get the property change groups out of\n      order and cause notifications to be delivered more often than you would\n      like.\n       @method propertyDidChange\n      @param {String} keyName The property key that has just changed.\n      @return {Ember.Observable}\n      @private\n    */\n    propertyDidChange: function (keyName) {\n      _emberMetal.propertyDidChange(this, keyName);\n      return this;\n    },\n\n    /**\n      Convenience method to call `propertyWillChange` and `propertyDidChange` in\n      succession.\n       @method notifyPropertyChange\n      @param {String} keyName The property key to be notified about.\n      @return {Ember.Observable}\n      @public\n    */\n    notifyPropertyChange: function (keyName) {\n      this.propertyWillChange(keyName);\n      this.propertyDidChange(keyName);\n      return this;\n    },\n\n    /**\n      Adds an observer on a property.\n       This is the core method used to register an observer for a property.\n       Once you call this method, any time the key's value is set, your observer\n      will be notified. Note that the observers are triggered any time the\n      value is set, regardless of whether it has actually changed. Your\n      observer should be prepared to handle that.\n       ### Observer Methods\n       Observer methods have the following signature:\n       ```javascript\n      export default Ember.Component.extend({\n        init() {\n          this._super(...arguments);\n          this.addObserver('foo', this, 'fooDidChange');\n        },\n         fooDidChange(sender, key, value, rev) {\n          // your code\n        }\n      });\n      ```\n       The `sender` is the object that changed. The `key` is the property that\n      changes. The `value` property is currently reserved and unused. The `rev`\n      is the last property revision of the object when it changed, which you can\n      use to detect if the key value has really changed or not.\n       Usually you will not need the value or revision parameters at\n      the end. In this case, it is common to write observer methods that take\n      only a sender and key value as parameters or, if you aren't interested in\n      any of these values, to write an observer that has no parameters at all.\n       @method addObserver\n      @param {String} key The key to observe\n      @param {Object} target The target object to invoke\n      @param {String|Function} method The method to invoke\n      @public\n    */\n    addObserver: function (key, target, method) {\n      _emberMetal.addObserver(this, key, target, method);\n    },\n\n    /**\n      Remove an observer you have previously registered on this object. Pass\n      the same key, target, and method you passed to `addObserver()` and your\n      target will no longer receive notifications.\n       @method removeObserver\n      @param {String} key The key to observe\n      @param {Object} target The target object to invoke\n      @param {String|Function} method The method to invoke\n      @public\n    */\n    removeObserver: function (key, target, method) {\n      _emberMetal.removeObserver(this, key, target, method);\n    },\n\n    /**\n      Returns `true` if the object currently has observers registered for a\n      particular key. You can use this method to potentially defer performing\n      an expensive action until someone begins observing a particular property\n      on the object.\n       @method hasObserverFor\n      @param {String} key Key to check\n      @return {Boolean}\n      @private\n    */\n    hasObserverFor: function (key) {\n      return _emberMetal.hasListeners(this, key + ':change');\n    },\n\n    /**\n      Retrieves the value of a property, or a default value in the case that the\n      property returns `undefined`.\n       ```javascript\n      person.getWithDefault('lastName', 'Doe');\n      ```\n       @method getWithDefault\n      @param {String} keyName The name of the property to retrieve\n      @param {Object} defaultValue The value to return if the property value is undefined\n      @return {Object} The property value or the defaultValue.\n      @public\n    */\n    getWithDefault: function (keyName, defaultValue) {\n      return _emberMetal.getWithDefault(this, keyName, defaultValue);\n    },\n\n    /**\n      Set the value of a property to the current value plus some amount.\n       ```javascript\n      person.incrementProperty('age');\n      team.incrementProperty('score', 2);\n      ```\n       @method incrementProperty\n      @param {String} keyName The name of the property to increment\n      @param {Number} increment The amount to increment by. Defaults to 1\n      @return {Number} The new property value\n      @public\n    */\n    incrementProperty: function (keyName, increment) {\n      if (_emberMetal.isNone(increment)) {\n        increment = 1;\n      }\n      _emberDebug.assert('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment));\n      return _emberMetal.set(this, keyName, (parseFloat(_emberMetal.get(this, keyName)) || 0) + increment);\n    },\n\n    /**\n      Set the value of a property to the current value minus some amount.\n       ```javascript\n      player.decrementProperty('lives');\n      orc.decrementProperty('health', 5);\n      ```\n       @method decrementProperty\n      @param {String} keyName The name of the property to decrement\n      @param {Number} decrement The amount to decrement by. Defaults to 1\n      @return {Number} The new property value\n      @public\n    */\n    decrementProperty: function (keyName, decrement) {\n      if (_emberMetal.isNone(decrement)) {\n        decrement = 1;\n      }\n      _emberDebug.assert('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement));\n      return _emberMetal.set(this, keyName, (_emberMetal.get(this, keyName) || 0) - decrement);\n    },\n\n    /**\n      Set the value of a boolean property to the opposite of its\n      current value.\n       ```javascript\n      starship.toggleProperty('warpDriveEngaged');\n      ```\n       @method toggleProperty\n      @param {String} keyName The name of the property to toggle\n      @return {Boolean} The new property value\n      @public\n    */\n    toggleProperty: function (keyName) {\n      return _emberMetal.set(this, keyName, !_emberMetal.get(this, keyName));\n    },\n\n    /**\n      Returns the cached value of a computed property, if it exists.\n      This allows you to inspect the value of a computed property\n      without accidentally invoking it if it is intended to be\n      generated lazily.\n       @method cacheFor\n      @param {String} keyName\n      @return {Object} The cached value of the computed property, if any\n      @public\n    */\n    cacheFor: function (keyName) {\n      return _emberMetal.cacheFor(this, keyName);\n    },\n\n    // intended for debugging purposes\n    observersForKey: function (keyName) {\n      return _emberMetal.observersFor(this, keyName);\n    }\n  });\n});\nenifed('ember-runtime/mixins/promise_proxy', ['exports', 'ember-metal', 'ember-debug', 'ember-runtime/computed/computed_macros'], function (exports, _emberMetal, _emberDebug, _emberRuntimeComputedComputed_macros) {\n  'use strict';\n\n  /**\n    @module ember\n    @submodule ember-runtime\n  */\n\n  function tap(proxy, promise) {\n    _emberMetal.setProperties(proxy, {\n      isFulfilled: false,\n      isRejected: false\n    });\n\n    return promise.then(function (value) {\n      if (!proxy.isDestroyed && !proxy.isDestroying) {\n        _emberMetal.setProperties(proxy, {\n          content: value,\n          isFulfilled: true\n        });\n      }\n      return value;\n    }, function (reason) {\n      if (!proxy.isDestroyed && !proxy.isDestroying) {\n        _emberMetal.setProperties(proxy, {\n          reason: reason,\n          isRejected: true\n        });\n      }\n      throw reason;\n    }, 'Ember: PromiseProxy');\n  }\n\n  /**\n    A low level mixin making ObjectProxy promise-aware.\n  \n    ```javascript\n    let ObjectPromiseProxy = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin);\n  \n    let proxy = ObjectPromiseProxy.create({\n      promise: Ember.RSVP.cast($.getJSON('/some/remote/data.json'))\n    });\n  \n    proxy.then(function(json){\n       // the json\n    }, function(reason) {\n       // the reason why you have no json\n    });\n    ```\n  \n    the proxy has bindable attributes which\n    track the promises life cycle\n  \n    ```javascript\n    proxy.get('isPending')   //=> true\n    proxy.get('isSettled')  //=> false\n    proxy.get('isRejected')  //=> false\n    proxy.get('isFulfilled') //=> false\n    ```\n  \n    When the $.getJSON completes, and the promise is fulfilled\n    with json, the life cycle attributes will update accordingly.\n    Note that $.getJSON doesn't return an ECMA specified promise,\n    it is useful to wrap this with an `RSVP.cast` so that it behaves\n    as a spec compliant promise.\n  \n    ```javascript\n    proxy.get('isPending')   //=> false\n    proxy.get('isSettled')   //=> true\n    proxy.get('isRejected')  //=> false\n    proxy.get('isFulfilled') //=> true\n    ```\n  \n    As the proxy is an ObjectProxy, and the json now its content,\n    all the json properties will be available directly from the proxy.\n  \n    ```javascript\n    // Assuming the following json:\n    {\n      firstName: 'Stefan',\n      lastName: 'Penner'\n    }\n  \n    // both properties will accessible on the proxy\n    proxy.get('firstName') //=> 'Stefan'\n    proxy.get('lastName')  //=> 'Penner'\n    ```\n  \n    @class Ember.PromiseProxyMixin\n    @public\n  */\n  exports.default = _emberMetal.Mixin.create({\n    /**\n      If the proxied promise is rejected this will contain the reason\n      provided.\n       @property reason\n      @default null\n      @public\n    */\n    reason: null,\n\n    /**\n      Once the proxied promise has settled this will become `false`.\n       @property isPending\n      @default true\n      @public\n    */\n    isPending: _emberRuntimeComputedComputed_macros.not('isSettled').readOnly(),\n\n    /**\n      Once the proxied promise has settled this will become `true`.\n       @property isSettled\n      @default false\n      @public\n    */\n    isSettled: _emberRuntimeComputedComputed_macros.or('isRejected', 'isFulfilled').readOnly(),\n\n    /**\n      Will become `true` if the proxied promise is rejected.\n       @property isRejected\n      @default false\n      @public\n    */\n    isRejected: false,\n\n    /**\n      Will become `true` if the proxied promise is fulfilled.\n       @property isFulfilled\n      @default false\n      @public\n    */\n    isFulfilled: false,\n\n    /**\n      The promise whose fulfillment value is being proxied by this object.\n       This property must be specified upon creation, and should not be\n      changed once created.\n       Example:\n       ```javascript\n      Ember.ObjectProxy.extend(Ember.PromiseProxyMixin).create({\n        promise: <thenable>\n      });\n      ```\n       @property promise\n      @public\n    */\n    promise: _emberMetal.computed({\n      get: function () {\n        throw new _emberDebug.Error('PromiseProxy\\'s promise must be set');\n      },\n      set: function (key, promise) {\n        return tap(this, promise);\n      }\n    }),\n\n    /**\n      An alias to the proxied promise's `then`.\n       See RSVP.Promise.then.\n       @method then\n      @param {Function} callback\n      @return {RSVP.Promise}\n      @public\n    */\n    then: promiseAlias('then'),\n\n    /**\n      An alias to the proxied promise's `catch`.\n       See RSVP.Promise.catch.\n       @method catch\n      @param {Function} callback\n      @return {RSVP.Promise}\n      @since 1.3.0\n      @public\n    */\n    'catch': promiseAlias('catch'),\n\n    /**\n      An alias to the proxied promise's `finally`.\n       See RSVP.Promise.finally.\n       @method finally\n      @param {Function} callback\n      @return {RSVP.Promise}\n      @since 1.3.0\n      @public\n    */\n    'finally': promiseAlias('finally')\n\n  });\n\n  function promiseAlias(name) {\n    return function () {\n      var promise = _emberMetal.get(this, 'promise');\n      return promise[name].apply(promise, arguments);\n    };\n  }\n});\nenifed('ember-runtime/mixins/registry_proxy', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  exports.buildFakeRegistryWithDeprecations = buildFakeRegistryWithDeprecations;\n\n  /**\n    RegistryProxyMixin is used to provide public access to specific\n    registry functionality.\n  \n    @class RegistryProxyMixin\n    @private\n  */\n  exports.default = _emberMetal.Mixin.create({\n    __registry__: null,\n\n    /**\n     Given a fullName return the corresponding factory.\n      @public\n     @method resolveRegistration\n     @param {String} fullName\n     @return {Function} fullName's factory\n     */\n    resolveRegistration: registryAlias('resolve'),\n\n    /**\n      Registers a factory that can be used for dependency injection (with\n      `inject`) or for service lookup. Each factory is registered with\n      a full name including two parts: `type:name`.\n       A simple example:\n       ```javascript\n      let App = Ember.Application.create();\n       App.Orange = Ember.Object.extend();\n      App.register('fruit:favorite', App.Orange);\n      ```\n       Ember will resolve factories from the `App` namespace automatically.\n      For example `App.CarsController` will be discovered and returned if\n      an application requests `controller:cars`.\n       An example of registering a controller with a non-standard name:\n       ```javascript\n      let App = Ember.Application.create();\n      let Session = Ember.Controller.extend();\n       App.register('controller:session', Session);\n       // The Session controller can now be treated like a normal controller,\n      // despite its non-standard name.\n      App.ApplicationController = Ember.Controller.extend({\n        needs: ['session']\n      });\n      ```\n       Registered factories are **instantiated** by having `create`\n      called on them. Additionally they are **singletons**, each time\n      they are looked up they return the same instance.\n       Some examples modifying that default behavior:\n       ```javascript\n      let App = Ember.Application.create();\n       App.Person = Ember.Object.extend();\n      App.Orange = Ember.Object.extend();\n      App.Email = Ember.Object.extend();\n      App.session = Ember.Object.create();\n       App.register('model:user', App.Person, { singleton: false });\n      App.register('fruit:favorite', App.Orange);\n      App.register('communication:main', App.Email, { singleton: false });\n      App.register('session', App.session, { instantiate: false });\n      ```\n       @method register\n      @param  fullName {String} type:name (e.g., 'model:user')\n      @param  factory {Function} (e.g., App.Person)\n      @param  options {Object} (optional) disable instantiation or singleton usage\n      @public\n     */\n    register: registryAlias('register'),\n\n    /**\n     Unregister a factory.\n      ```javascript\n     let App = Ember.Application.create();\n     let User = Ember.Object.extend();\n     App.register('model:user', User);\n      App.resolveRegistration('model:user').create() instanceof User //=> true\n      App.unregister('model:user')\n     App.resolveRegistration('model:user') === undefined //=> true\n     ```\n      @public\n     @method unregister\n     @param {String} fullName\n     */\n    unregister: registryAlias('unregister'),\n\n    /**\n     Check if a factory is registered.\n      @public\n     @method hasRegistration\n     @param {String} fullName\n     @return {Boolean}\n     */\n    hasRegistration: registryAlias('has'),\n\n    /**\n     Register an option for a particular factory.\n      @public\n     @method registerOption\n     @param {String} fullName\n     @param {String} optionName\n     @param {Object} options\n     */\n    registerOption: registryAlias('option'),\n\n    /**\n     Return a specific registered option for a particular factory.\n      @public\n     @method registeredOption\n     @param  {String} fullName\n     @param  {String} optionName\n     @return {Object} options\n     */\n    registeredOption: registryAlias('getOption'),\n\n    /**\n     Register options for a particular factory.\n      @public\n     @method registerOptions\n     @param {String} fullName\n     @param {Object} options\n     */\n    registerOptions: registryAlias('options'),\n\n    /**\n     Return registered options for a particular factory.\n      @public\n     @method registeredOptions\n     @param  {String} fullName\n     @return {Object} options\n     */\n    registeredOptions: registryAlias('getOptions'),\n\n    /**\n     Allow registering options for all factories of a type.\n      ```javascript\n     let App = Ember.Application.create();\n     let appInstance = App.buildInstance();\n      // if all of type `connection` must not be singletons\n     appInstance.registerOptionsForType('connection', { singleton: false });\n      appInstance.register('connection:twitter', TwitterConnection);\n     appInstance.register('connection:facebook', FacebookConnection);\n      let twitter = appInstance.lookup('connection:twitter');\n     let twitter2 = appInstance.lookup('connection:twitter');\n      twitter === twitter2; // => false\n      let facebook = appInstance.lookup('connection:facebook');\n     let facebook2 = appInstance.lookup('connection:facebook');\n      facebook === facebook2; // => false\n     ```\n      @public\n     @method registerOptionsForType\n     @param {String} type\n     @param {Object} options\n     */\n    registerOptionsForType: registryAlias('optionsForType'),\n\n    /**\n     Return the registered options for all factories of a type.\n      @public\n     @method registeredOptionsForType\n     @param {String} type\n     @return {Object} options\n     */\n    registeredOptionsForType: registryAlias('getOptionsForType'),\n\n    /**\n      Define a dependency injection onto a specific factory or all factories\n      of a type.\n       When Ember instantiates a controller, view, or other framework component\n      it can attach a dependency to that component. This is often used to\n      provide services to a set of framework components.\n       An example of providing a session object to all controllers:\n       ```javascript\n      let App = Ember.Application.create();\n      let Session = Ember.Object.extend({ isAuthenticated: false });\n       // A factory must be registered before it can be injected\n      App.register('session:main', Session);\n       // Inject 'session:main' onto all factories of the type 'controller'\n      // with the name 'session'\n      App.inject('controller', 'session', 'session:main');\n       App.IndexController = Ember.Controller.extend({\n        isLoggedIn: Ember.computed.alias('session.isAuthenticated')\n      });\n      ```\n       Injections can also be performed on specific factories.\n       ```javascript\n      App.inject(<full_name or type>, <property name>, <full_name>)\n      App.inject('route', 'source', 'source:main')\n      App.inject('route:application', 'email', 'model:email')\n      ```\n       It is important to note that injections can only be performed on\n      classes that are instantiated by Ember itself. Instantiating a class\n      directly (via `create` or `new`) bypasses the dependency injection\n      system.\n       **Note:** Ember-Data instantiates its models in a unique manner, and consequently\n      injections onto models (or all models) will not work as expected. Injections\n      on models can be enabled by setting `EmberENV.MODEL_FACTORY_INJECTIONS`\n      to `true`.\n       @public\n      @method inject\n      @param  factoryNameOrType {String}\n      @param  property {String}\n      @param  injectionName {String}\n    **/\n    inject: registryAlias('injection')\n  });\n\n  function registryAlias(name) {\n    return function () {\n      var _registry__;\n\n      return (_registry__ = this.__registry__)[name].apply(_registry__, arguments);\n    };\n  }\n\n  function buildFakeRegistryWithDeprecations(instance, typeForMessage) {\n    var fakeRegistry = {};\n    var registryProps = {\n      resolve: 'resolveRegistration',\n      register: 'register',\n      unregister: 'unregister',\n      has: 'hasRegistration',\n      option: 'registerOption',\n      options: 'registerOptions',\n      getOptions: 'registeredOptions',\n      optionsForType: 'registerOptionsForType',\n      getOptionsForType: 'registeredOptionsForType',\n      injection: 'inject'\n    };\n\n    for (var deprecatedProperty in registryProps) {\n      fakeRegistry[deprecatedProperty] = buildFakeRegistryFunction(instance, typeForMessage, deprecatedProperty, registryProps[deprecatedProperty]);\n    }\n\n    return fakeRegistry;\n  }\n\n  function buildFakeRegistryFunction(instance, typeForMessage, deprecatedProperty, nonDeprecatedProperty) {\n    return function () {\n      _emberDebug.deprecate('Using `' + typeForMessage + '.registry.' + deprecatedProperty + '` is deprecated. Please use `' + typeForMessage + '.' + nonDeprecatedProperty + '` instead.', false, {\n        id: 'ember-application.app-instance-registry',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-application-registry-ember-applicationinstance-registry'\n      });\n      return instance[nonDeprecatedProperty].apply(instance, arguments);\n    };\n  }\n});\nenifed('ember-runtime/mixins/target_action_support', ['exports', 'ember-environment', 'ember-metal', 'ember-debug'], function (exports, _emberEnvironment, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  /**\n  `Ember.TargetActionSupport` is a mixin that can be included in a class\n  to add a `triggerAction` method with semantics similar to the Handlebars\n  `{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\n  usually the best choice. This mixin is most often useful when you are\n  doing more complex event handling in Components.\n  \n  @class TargetActionSupport\n  @namespace Ember\n  @extends Ember.Mixin\n  @private\n  */\n  exports.default = _emberMetal.Mixin.create({\n    target: null,\n    action: null,\n    actionContext: null,\n\n    actionContextObject: _emberMetal.computed('actionContext', function () {\n      var actionContext = _emberMetal.get(this, 'actionContext');\n\n      if (typeof actionContext === 'string') {\n        var value = _emberMetal.get(this, actionContext);\n        if (value === undefined) {\n          value = _emberMetal.get(_emberEnvironment.context.lookup, actionContext);\n        }\n        return value;\n      } else {\n        return actionContext;\n      }\n    }),\n\n    /**\n    Send an `action` with an `actionContext` to a `target`. The action, actionContext\n    and target will be retrieved from properties of the object. For example:\n     ```javascript\n    App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n      target: Ember.computed.alias('controller'),\n      action: 'save',\n      actionContext: Ember.computed.alias('context'),\n      click() {\n        this.triggerAction(); // Sends the `save` action, along with the current context\n                              // to the current controller\n      }\n    });\n    ```\n     The `target`, `action`, and `actionContext` can be provided as properties of\n    an optional object argument to `triggerAction` as well.\n     ```javascript\n    App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n      click() {\n        this.triggerAction({\n          action: 'save',\n          target: this.get('controller'),\n          actionContext: this.get('context')\n        }); // Sends the `save` action, along with the current context\n            // to the current controller\n      }\n    });\n    ```\n     The `actionContext` defaults to the object you are mixing `TargetActionSupport` into.\n    But `target` and `action` must be specified either as properties or with the argument\n    to `triggerAction`, or a combination:\n     ```javascript\n    App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n      target: Ember.computed.alias('controller'),\n      click() {\n        this.triggerAction({\n          action: 'save'\n        }); // Sends the `save` action, along with a reference to `this`,\n            // to the current controller\n      }\n    });\n    ```\n     @method triggerAction\n    @param opts {Object} (optional, with the optional keys action, target and/or actionContext)\n    @return {Boolean} true if the action was sent successfully and did not return false\n    @private\n    */\n    triggerAction: function () {\n      var opts = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      var action = opts.action || _emberMetal.get(this, 'action');\n      var target = opts.target;\n\n      if (!target) {\n        target = getTarget(this);\n      }\n\n      var actionContext = opts.actionContext;\n\n      function args(options, actionName) {\n        var ret = [];\n        if (actionName) {\n          ret.push(actionName);\n        }\n\n        return ret.concat(options);\n      }\n\n      if (typeof actionContext === 'undefined') {\n        actionContext = _emberMetal.get(this, 'actionContextObject') || this;\n      }\n\n      if (target && action) {\n        var ret = undefined;\n\n        if (target.send) {\n          var _target;\n\n          ret = (_target = target).send.apply(_target, args(actionContext, action));\n        } else {\n          var _target2;\n\n          _emberDebug.assert('The action \\'' + action + '\\' did not exist on ' + target, typeof target[action] === 'function');\n          ret = (_target2 = target)[action].apply(_target2, args(actionContext));\n        }\n\n        if (ret !== false) {\n          ret = true;\n        }\n\n        return ret;\n      } else {\n        return false;\n      }\n    }\n  });\n\n  function getTarget(instance) {\n    // TODO: Deprecate specifying `targetObject`\n    var target = _emberMetal.get(instance, 'targetObject');\n\n    // if a `targetObject` CP was provided, use it\n    if (target) {\n      return target;\n    }\n\n    // if _targetObject use it\n    if (instance._targetObject) {\n      return instance._targetObject;\n    }\n\n    target = _emberMetal.get(instance, 'target');\n    if (target) {\n      if (typeof target === 'string') {\n        var value = _emberMetal.get(instance, target);\n        if (value === undefined) {\n          value = _emberMetal.get(_emberEnvironment.context.lookup, target);\n        }\n\n        return value;\n      } else {\n        return target;\n      }\n    }\n\n    return null;\n  }\n});\nenifed(\"ember-runtime/string_registry\", [\"exports\"], function (exports) {\n  // STATE within a module is frowned apon, this exists\n  // to support Ember.STRINGS but shield ember internals from this legacy global\n  // API.\n  \"use strict\";\n\n  exports.setStrings = setStrings;\n  exports.getStrings = getStrings;\n  exports.get = get;\n  var STRINGS = {};\n\n  function setStrings(strings) {\n    STRINGS = strings;\n  }\n\n  function getStrings() {\n    return STRINGS;\n  }\n\n  function get(name) {\n    return STRINGS[name];\n  }\n});\nenifed('ember-runtime/system/application', ['exports', 'ember-runtime/system/namespace'], function (exports, _emberRuntimeSystemNamespace) {\n  'use strict';\n\n  exports.default = _emberRuntimeSystemNamespace.default.extend();\n});\nenifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-runtime/utils', 'ember-runtime/system/object', 'ember-runtime/mixins/mutable_array', 'ember-runtime/mixins/enumerable', 'ember-runtime/mixins/array', 'ember-debug'], function (exports, _emberMetal, _emberRuntimeUtils, _emberRuntimeSystemObject, _emberRuntimeMixinsMutable_array, _emberRuntimeMixinsEnumerable, _emberRuntimeMixinsArray, _emberDebug) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  var OUT_OF_RANGE_EXCEPTION = 'Index out of range';\n  var EMPTY = [];\n\n  function K() {\n    return this;\n  }\n\n  /**\n    An ArrayProxy wraps any other object that implements `Ember.Array` and/or\n    `Ember.MutableArray,` forwarding all requests. This makes it very useful for\n    a number of binding use cases or other cases where being able to swap\n    out the underlying array is useful.\n  \n    A simple example of usage:\n  \n    ```javascript\n    let pets = ['dog', 'cat', 'fish'];\n    let ap = Ember.ArrayProxy.create({ content: Ember.A(pets) });\n  \n    ap.get('firstObject');                        // 'dog'\n    ap.set('content', ['amoeba', 'paramecium']);\n    ap.get('firstObject');                        // 'amoeba'\n    ```\n  \n    This class can also be useful as a layer to transform the contents of\n    an array, as they are accessed. This can be done by overriding\n    `objectAtContent`:\n  \n    ```javascript\n    let pets = ['dog', 'cat', 'fish'];\n    let ap = Ember.ArrayProxy.create({\n        content: Ember.A(pets),\n        objectAtContent: function(idx) {\n            return this.get('content').objectAt(idx).toUpperCase();\n        }\n    });\n  \n    ap.get('firstObject'); // . 'DOG'\n    ```\n  \n    @class ArrayProxy\n    @namespace Ember\n    @extends Ember.Object\n    @uses Ember.MutableArray\n    @public\n  */\n  exports.default = _emberRuntimeSystemObject.default.extend(_emberRuntimeMixinsMutable_array.default, {\n\n    /**\n      The content array. Must be an object that implements `Ember.Array` and/or\n      `Ember.MutableArray.`\n       @property content\n      @type Ember.Array\n      @private\n    */\n    content: null,\n\n    /**\n     The array that the proxy pretends to be. In the default `ArrayProxy`\n     implementation, this and `content` are the same. Subclasses of `ArrayProxy`\n     can override this property to provide things like sorting and filtering.\n      @property arrangedContent\n     @private\n    */\n    arrangedContent: _emberMetal.alias('content'),\n\n    /**\n      Should actually retrieve the object at the specified index from the\n      content. You can override this method in subclasses to transform the\n      content item to something new.\n       This method will only be called if content is non-`null`.\n       @method objectAtContent\n      @param {Number} idx The index to retrieve.\n      @return {Object} the value or undefined if none found\n      @public\n    */\n    objectAtContent: function (idx) {\n      return _emberRuntimeMixinsArray.objectAt(_emberMetal.get(this, 'arrangedContent'), idx);\n    },\n\n    /**\n      Should actually replace the specified objects on the content array.\n      You can override this method in subclasses to transform the content item\n      into something new.\n       This method will only be called if content is non-`null`.\n       @method replaceContent\n      @param {Number} idx The starting index\n      @param {Number} amt The number of items to remove from the content.\n      @param {Array} objects Optional array of objects to insert or null if no\n        objects.\n      @return {void}\n      @private\n    */\n    replaceContent: function (idx, amt, objects) {\n      _emberMetal.get(this, 'content').replace(idx, amt, objects);\n    },\n\n    /**\n      Invoked when the content property is about to change. Notifies observers that the\n      entire array content will change.\n       @private\n      @method _contentWillChange\n    */\n    _contentWillChange: _emberMetal._beforeObserver('content', function () {\n      this._teardownContent();\n    }),\n\n    _teardownContent: function () {\n      var content = _emberMetal.get(this, 'content');\n\n      if (content) {\n        _emberRuntimeMixinsArray.removeArrayObserver(content, this, {\n          willChange: 'contentArrayWillChange',\n          didChange: 'contentArrayDidChange'\n        });\n      }\n    },\n\n    /**\n      Override to implement content array `willChange` observer.\n       @method contentArrayWillChange\n       @param {Ember.Array} contentArray the content array\n      @param {Number} start starting index of the change\n      @param {Number} removeCount count of items removed\n      @param {Number} addCount count of items added\n      @private\n    */\n    contentArrayWillChange: K,\n    /**\n      Override to implement content array `didChange` observer.\n       @method contentArrayDidChange\n       @param {Ember.Array} contentArray the content array\n      @param {Number} start starting index of the change\n      @param {Number} removeCount count of items removed\n      @param {Number} addCount count of items added\n      @private\n    */\n    contentArrayDidChange: K,\n\n    /**\n      Invoked when the content property changes. Notifies observers that the\n      entire array content has changed.\n       @private\n      @method _contentDidChange\n    */\n    _contentDidChange: _emberMetal.observer('content', function () {\n      var content = _emberMetal.get(this, 'content');\n\n      _emberDebug.assert('Can\\'t set ArrayProxy\\'s content to itself', content !== this);\n\n      this._setupContent();\n    }),\n\n    _setupContent: function () {\n      var content = _emberMetal.get(this, 'content');\n\n      if (content) {\n        _emberDebug.assert('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof content, _emberRuntimeUtils.isArray(content) || content.isDestroyed);\n\n        _emberRuntimeMixinsArray.addArrayObserver(content, this, {\n          willChange: 'contentArrayWillChange',\n          didChange: 'contentArrayDidChange'\n        });\n      }\n    },\n\n    _arrangedContentWillChange: _emberMetal._beforeObserver('arrangedContent', function () {\n      var arrangedContent = _emberMetal.get(this, 'arrangedContent');\n      var len = arrangedContent ? _emberMetal.get(arrangedContent, 'length') : 0;\n\n      this.arrangedContentArrayWillChange(this, 0, len, undefined);\n      this.arrangedContentWillChange(this);\n\n      this._teardownArrangedContent(arrangedContent);\n    }),\n\n    _arrangedContentDidChange: _emberMetal.observer('arrangedContent', function () {\n      var arrangedContent = _emberMetal.get(this, 'arrangedContent');\n      var len = arrangedContent ? _emberMetal.get(arrangedContent, 'length') : 0;\n\n      _emberDebug.assert('Can\\'t set ArrayProxy\\'s content to itself', arrangedContent !== this);\n\n      this._setupArrangedContent();\n\n      this.arrangedContentDidChange(this);\n      this.arrangedContentArrayDidChange(this, 0, undefined, len);\n    }),\n\n    _setupArrangedContent: function () {\n      var arrangedContent = _emberMetal.get(this, 'arrangedContent');\n\n      if (arrangedContent) {\n        _emberDebug.assert('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof arrangedContent, _emberRuntimeUtils.isArray(arrangedContent) || arrangedContent.isDestroyed);\n\n        _emberRuntimeMixinsArray.addArrayObserver(arrangedContent, this, {\n          willChange: 'arrangedContentArrayWillChange',\n          didChange: 'arrangedContentArrayDidChange'\n        });\n      }\n    },\n\n    _teardownArrangedContent: function () {\n      var arrangedContent = _emberMetal.get(this, 'arrangedContent');\n\n      if (arrangedContent) {\n        _emberRuntimeMixinsArray.removeArrayObserver(arrangedContent, this, {\n          willChange: 'arrangedContentArrayWillChange',\n          didChange: 'arrangedContentArrayDidChange'\n        });\n      }\n    },\n\n    arrangedContentWillChange: K,\n    arrangedContentDidChange: K,\n\n    objectAt: function (idx) {\n      return _emberMetal.get(this, 'content') && this.objectAtContent(idx);\n    },\n\n    length: _emberMetal.computed(function () {\n      var arrangedContent = _emberMetal.get(this, 'arrangedContent');\n      return arrangedContent ? _emberMetal.get(arrangedContent, 'length') : 0;\n      // No dependencies since Enumerable notifies length of change\n    }),\n\n    _replace: function (idx, amt, objects) {\n      var content = _emberMetal.get(this, 'content');\n      _emberDebug.assert('The content property of ' + this.constructor + ' should be set before modifying it', content);\n      if (content) {\n        this.replaceContent(idx, amt, objects);\n      }\n\n      return this;\n    },\n\n    replace: function () {\n      if (_emberMetal.get(this, 'arrangedContent') === _emberMetal.get(this, 'content')) {\n        this._replace.apply(this, arguments);\n      } else {\n        throw new _emberDebug.Error('Using replace on an arranged ArrayProxy is not allowed.');\n      }\n    },\n\n    _insertAt: function (idx, object) {\n      if (idx > _emberMetal.get(this, 'content.length')) {\n        throw new _emberDebug.Error(OUT_OF_RANGE_EXCEPTION);\n      }\n\n      this._replace(idx, 0, [object]);\n      return this;\n    },\n\n    insertAt: function (idx, object) {\n      if (_emberMetal.get(this, 'arrangedContent') === _emberMetal.get(this, 'content')) {\n        return this._insertAt(idx, object);\n      } else {\n        throw new _emberDebug.Error('Using insertAt on an arranged ArrayProxy is not allowed.');\n      }\n    },\n\n    removeAt: function (start, len) {\n      if ('number' === typeof start) {\n        var content = _emberMetal.get(this, 'content');\n        var arrangedContent = _emberMetal.get(this, 'arrangedContent');\n        var indices = [];\n\n        if (start < 0 || start >= _emberMetal.get(this, 'length')) {\n          throw new _emberDebug.Error(OUT_OF_RANGE_EXCEPTION);\n        }\n\n        if (len === undefined) {\n          len = 1;\n        }\n\n        // Get a list of indices in original content to remove\n        for (var i = start; i < start + len; i++) {\n          // Use arrangedContent here so we avoid confusion with objects transformed by objectAtContent\n          indices.push(content.indexOf(_emberRuntimeMixinsArray.objectAt(arrangedContent, i)));\n        }\n\n        // Replace in reverse order since indices will change\n        indices.sort(function (a, b) {\n          return b - a;\n        });\n\n        _emberMetal.beginPropertyChanges();\n        for (var i = 0; i < indices.length; i++) {\n          this._replace(indices[i], 1, EMPTY);\n        }\n        _emberMetal.endPropertyChanges();\n      }\n\n      return this;\n    },\n\n    pushObject: function (obj) {\n      this._insertAt(_emberMetal.get(this, 'content.length'), obj);\n      return obj;\n    },\n\n    pushObjects: function (objects) {\n      if (!(_emberRuntimeMixinsEnumerable.default.detect(objects) || _emberRuntimeUtils.isArray(objects))) {\n        throw new TypeError('Must pass Ember.Enumerable to Ember.MutableArray#pushObjects');\n      }\n      this._replace(_emberMetal.get(this, 'length'), 0, objects);\n      return this;\n    },\n\n    setObjects: function (objects) {\n      if (objects.length === 0) {\n        return this.clear();\n      }\n\n      var len = _emberMetal.get(this, 'length');\n      this._replace(0, len, objects);\n      return this;\n    },\n\n    unshiftObject: function (obj) {\n      this._insertAt(0, obj);\n      return obj;\n    },\n\n    unshiftObjects: function (objects) {\n      this._replace(0, 0, objects);\n      return this;\n    },\n\n    slice: function () {\n      var arr = this.toArray();\n      return arr.slice.apply(arr, arguments);\n    },\n\n    arrangedContentArrayWillChange: function (item, idx, removedCnt, addedCnt) {\n      this.arrayContentWillChange(idx, removedCnt, addedCnt);\n    },\n\n    arrangedContentArrayDidChange: function (item, idx, removedCnt, addedCnt) {\n      this.arrayContentDidChange(idx, removedCnt, addedCnt);\n    },\n\n    init: function () {\n      this._super.apply(this, arguments);\n      this._setupContent();\n      this._setupArrangedContent();\n    },\n\n    willDestroy: function () {\n      this._teardownArrangedContent();\n      this._teardownContent();\n    }\n  });\n});\nenifed('ember-runtime/system/core_object', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime/mixins/action_handler', 'ember-runtime/inject', 'ember-debug'], function (exports, _emberUtils, _emberMetal, _emberRuntimeMixinsAction_handler, _emberRuntimeInject, _emberDebug) {\n  /**\n    @module ember\n    @submodule ember-runtime\n  */\n\n  // using ember-metal/lib/main here to ensure that ember-debug is setup\n  // if present\n  'use strict';\n\n  var _Mixin$create, _ClassMixinProps;\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['.'], ['.']);\n\n  var schedule = _emberMetal.run.schedule;\n  var applyMixin = _emberMetal.Mixin._apply;\n  var finishPartial = _emberMetal.Mixin.finishPartial;\n  var reopen = _emberMetal.Mixin.prototype.reopen;\n\n  var POST_INIT = _emberUtils.symbol('POST_INIT');\n\n  exports.POST_INIT = POST_INIT;\n  function makeCtor() {\n    // Note: avoid accessing any properties on the object since it makes the\n    // method a lot faster. This is glue code so we want it to be as fast as\n    // possible.\n\n    var wasApplied = false;\n    var initProperties = undefined,\n        initFactory = undefined;\n\n    var Class = (function () {\n      function Class() {\nbabelHelpers.classCallCheck(this, Class);\n\n        if (!wasApplied) {\n          Class.proto(); // prepare prototype...\n        }\n\n        if (arguments.length > 0) {\n          initProperties = [arguments[0]];\n        }\n\n        this.__defineNonEnumerable(_emberUtils.GUID_KEY_PROPERTY);\n        var m = _emberMetal.meta(this);\n        var proto = m.proto;\n        m.proto = this;\n\n        if (initFactory) {\n          m.factory = initFactory;\n          initFactory = null;\n        }\n        if (initProperties) {\n          // capture locally so we can clear the closed over variable\n          var props = initProperties;\n          initProperties = null;\n\n          var concatenatedProperties = this.concatenatedProperties;\n          var mergedProperties = this.mergedProperties;\n\n          for (var i = 0; i < props.length; i++) {\n            var properties = props[i];\n            _emberDebug.assert('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetal.Mixin));\n\n            if (typeof properties !== 'object' && properties !== undefined) {\n              throw new _emberDebug.Error('Ember.Object.create only accepts objects.');\n            }\n\n            if (!properties) {\n              continue;\n            }\n\n            var keyNames = Object.keys(properties);\n\n            for (var j = 0; j < keyNames.length; j++) {\n              var keyName = keyNames[j];\n              var value = properties[keyName];\n\n              if (_emberMetal.detectBinding(keyName)) {\n                m.writeBindings(keyName, value);\n              }\n\n              var possibleDesc = this[keyName];\n              var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n              _emberDebug.assert('Ember.Object.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !(value instanceof _emberMetal.ComputedProperty));\n              _emberDebug.assert('Ember.Object.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));\n              _emberDebug.assert('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && _emberRuntimeMixinsAction_handler.default.detect(this)));\n\n              if (concatenatedProperties && concatenatedProperties.length > 0 && concatenatedProperties.indexOf(keyName) >= 0) {\n                var baseValue = this[keyName];\n\n                if (baseValue) {\n                  if ('function' === typeof baseValue.concat) {\n                    value = baseValue.concat(value);\n                  } else {\n                    value = _emberUtils.makeArray(baseValue).concat(value);\n                  }\n                } else {\n                  value = _emberUtils.makeArray(value);\n                }\n              }\n\n              if (mergedProperties && mergedProperties.length && mergedProperties.indexOf(keyName) >= 0) {\n                var originalValue = this[keyName];\n\n                value = _emberUtils.assign({}, originalValue, value);\n              }\n\n              if (desc) {\n                desc.set(this, keyName, value);\n              } else {\n                if (typeof this.setUnknownProperty === 'function' && !(keyName in this)) {\n                  this.setUnknownProperty(keyName, value);\n                } else {\n                  if (true) {\n                    _emberMetal.defineProperty(this, keyName, null, value); // setup mandatory setter\n                  } else {\n                      this[keyName] = value;\n                    }\n                }\n              }\n            }\n          }\n        }\n\n        finishPartial(this, m);\n\n        this.init.apply(this, arguments);\n\n        this[POST_INIT]();\n\n        m.proto = proto;\n        _emberMetal.finishChains(m);\n        _emberMetal.sendEvent(this, 'init');\n      }\n\n      Class.willReopen = function willReopen() {\n        if (wasApplied) {\n          Class.PrototypeMixin = _emberMetal.Mixin.create(Class.PrototypeMixin);\n        }\n\n        wasApplied = false;\n      };\n\n      Class._initProperties = function _initProperties(args) {\n        initProperties = args;\n      };\n\n      Class._initFactory = function _initFactory(factory) {\n        initFactory = factory;\n      };\n\n      Class.proto = function proto() {\n        var superclass = Class.superclass;\n        if (superclass) {\n          superclass.proto();\n        }\n\n        if (!wasApplied) {\n          wasApplied = true;\n          Class.PrototypeMixin.applyPartial(Class.prototype);\n        }\n\n        return this.prototype;\n      };\n\n      return Class;\n    })();\n\n    Class.toString = _emberMetal.Mixin.prototype.toString;\n\n    return Class;\n  }\n\n  /**\n    @class CoreObject\n    @namespace Ember\n    @public\n  */\n  var CoreObject = makeCtor();\n  CoreObject.toString = function () {\n    return 'Ember.CoreObject';\n  };\n  CoreObject.PrototypeMixin = _emberMetal.Mixin.create((_Mixin$create = {\n    reopen: function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      applyMixin(this, args, true);\n      return this;\n    },\n\n    /**\n      An overridable method called when objects are instantiated. By default,\n      does nothing unless it is overridden during class definition.\n       Example:\n       ```javascript\n      const Person = Ember.Object.extend({\n        init() {\n          alert(`Name is ${this.get('name')}`);\n        }\n      });\n       let steve = Person.create({\n        name: 'Steve'\n      });\n       // alerts 'Name is Steve'.\n      ```\n       NOTE: If you do override `init` for a framework class like `Ember.View`,\n      be sure to call `this._super(...arguments)` in your\n      `init` declaration! If you don't, Ember may not have an opportunity to\n      do important setup work, and you'll see strange behavior in your\n      application.\n       @method init\n      @public\n    */\n    init: function () {}\n\n  }, _Mixin$create[POST_INIT] = function () {}, _Mixin$create.__defineNonEnumerable = function (property) {\n    Object.defineProperty(this, property.name, property.descriptor);\n    //this[property.name] = property.descriptor.value;\n  }, _Mixin$create.concatenatedProperties = null, _Mixin$create.mergedProperties = null, _Mixin$create.isDestroyed = _emberMetal.descriptor({\n    get: function () {\n      return _emberMetal.meta(this).isSourceDestroyed();\n    },\n\n    set: function (value) {\n      // prevent setting while applying mixins\n      if (typeof value === 'object' && value !== null && value.isDescriptor) {\n        return;\n      }\n\n      _emberDebug.assert(('You cannot set `' + this + '.isDestroyed` directly, please use ').destroy()(_templateObject), false);\n    }\n  }), _Mixin$create.isDestroying = _emberMetal.descriptor({\n    get: function () {\n      return _emberMetal.meta(this).isSourceDestroying();\n    },\n\n    set: function (value) {\n      // prevent setting while applying mixins\n      if (typeof value === 'object' && value !== null && value.isDescriptor) {\n        return;\n      }\n\n      _emberDebug.assert(('You cannot set `' + this + '.isDestroying` directly, please use ').destroy()(_templateObject), false);\n    }\n  }), _Mixin$create.destroy = function () {\n    var m = _emberMetal.meta(this);\n    if (m.isSourceDestroying()) {\n      return;\n    }\n\n    m.setSourceDestroying();\n\n    schedule('actions', this, this.willDestroy);\n    schedule('destroy', this, this._scheduledDestroy, m);\n\n    return this;\n  }, _Mixin$create.willDestroy = function () {}, _Mixin$create._scheduledDestroy = function (m) {\n    if (m.isSourceDestroyed()) {\n      return;\n    }\n    _emberMetal.destroy(this);\n    m.setSourceDestroyed();\n  }, _Mixin$create.bind = function (to, from) {\n    if (!(from instanceof _emberMetal.Binding)) {\n      from = _emberMetal.Binding.from(from);\n    }\n    from.to(to).connect(this);\n    return from;\n  }, _Mixin$create.toString = function () {\n    var hasToStringExtension = typeof this.toStringExtension === 'function';\n    var extension = hasToStringExtension ? ':' + this.toStringExtension() : '';\n\n    var ret = '<' + (this[_emberUtils.NAME_KEY] || _emberMetal.meta(this).factory || this.constructor.toString()) + ':' + _emberUtils.guidFor(this) + extension + '>';\n\n    return ret;\n  }, _Mixin$create));\n\n  CoreObject.PrototypeMixin.ownerConstructor = CoreObject;\n\n  CoreObject.__super__ = null;\n\n  var ClassMixinProps = (_ClassMixinProps = {\n\n    ClassMixin: _emberMetal.REQUIRED,\n\n    PrototypeMixin: _emberMetal.REQUIRED,\n\n    isClass: true,\n\n    isMethod: false\n  }, _ClassMixinProps[_emberUtils.NAME_KEY] = null, _ClassMixinProps[_emberUtils.GUID_KEY] = null, _ClassMixinProps.extend = function () {\n    var Class = makeCtor();\n    var proto = undefined;\n    Class.ClassMixin = _emberMetal.Mixin.create(this.ClassMixin);\n    Class.PrototypeMixin = _emberMetal.Mixin.create(this.PrototypeMixin);\n\n    Class.ClassMixin.ownerConstructor = Class;\n    Class.PrototypeMixin.ownerConstructor = Class;\n\n    reopen.apply(Class.PrototypeMixin, arguments);\n\n    Class.superclass = this;\n    Class.__super__ = this.prototype;\n\n    proto = Class.prototype = Object.create(this.prototype);\n    proto.constructor = Class;\n    _emberUtils.generateGuid(proto);\n    _emberMetal.meta(proto).proto = proto; // this will disable observers on prototype\n\n    Class.ClassMixin.apply(Class);\n    return Class;\n  }, _ClassMixinProps.create = function () {\n    var C = this;\n\n    for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n\n    if (args.length > 0) {\n      this._initProperties(args);\n    }\n    return new C();\n  }, _ClassMixinProps.reopen = function () {\n    this.willReopen();\n    reopen.apply(this.PrototypeMixin, arguments);\n    return this;\n  }, _ClassMixinProps.reopenClass = function () {\n    reopen.apply(this.ClassMixin, arguments);\n    applyMixin(this, arguments, false);\n    return this;\n  }, _ClassMixinProps.detect = function (obj) {\n    if ('function' !== typeof obj) {\n      return false;\n    }\n    while (obj) {\n      if (obj === this) {\n        return true;\n      }\n      obj = obj.superclass;\n    }\n    return false;\n  }, _ClassMixinProps.detectInstance = function (obj) {\n    return obj instanceof this;\n  }, _ClassMixinProps.metaForProperty = function (key) {\n    var proto = this.proto();\n    var possibleDesc = proto[key];\n    var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;\n\n    _emberDebug.assert('metaForProperty() could not find a computed property with key \\'' + key + '\\'.', !!desc && desc instanceof _emberMetal.ComputedProperty);\n    return desc._meta || {};\n  }, _ClassMixinProps._computedProperties = _emberMetal.computed(function () {\n    _emberMetal._hasCachedComputedProperties();\n    var proto = this.proto();\n    var property = undefined;\n    var properties = [];\n\n    for (var _name in proto) {\n      property = proto[_name];\n\n      if (property && property.isDescriptor) {\n        properties.push({\n          name: _name,\n          meta: property._meta\n        });\n      }\n    }\n    return properties;\n  }).readOnly(), _ClassMixinProps.eachComputedProperty = function (callback, binding) {\n    var property = undefined;\n    var empty = {};\n\n    var properties = _emberMetal.get(this, '_computedProperties');\n\n    for (var i = 0; i < properties.length; i++) {\n      property = properties[i];\n      callback.call(binding || this, property.name, property.meta || empty);\n    }\n  }, _ClassMixinProps);\n\n  function injectedPropertyAssertion() {\n    _emberDebug.assert('Injected properties are invalid', _emberRuntimeInject.validatePropertyInjections(this));\n  }\n\n  _emberDebug.runInDebug(function () {\n    /**\n      Provides lookup-time type validation for injected properties.\n       @private\n      @method _onLookup\n    */\n    ClassMixinProps._onLookup = injectedPropertyAssertion;\n  });\n\n  /**\n    Returns a hash of property names and container names that injected\n    properties will lookup on the container lazily.\n  \n    @method _lazyInjections\n    @return {Object} Hash of all lazy injected property keys to container names\n    @private\n  */\n  ClassMixinProps._lazyInjections = function () {\n    var injections = {};\n    var proto = this.proto();\n    var key = undefined;\n    var desc = undefined;\n\n    for (key in proto) {\n      desc = proto[key];\n      if (desc instanceof _emberMetal.InjectedProperty) {\n        injections[key] = desc.type + ':' + (desc.name || key);\n      }\n    }\n\n    return injections;\n  };\n\n  var ClassMixin = _emberMetal.Mixin.create(ClassMixinProps);\n\n  ClassMixin.ownerConstructor = CoreObject;\n\n  CoreObject.ClassMixin = ClassMixin;\n\n  ClassMixin.apply(CoreObject);\n  exports.default = CoreObject;\n});\n// Private, and only for didInitAttrs willRecieveAttrs\n\n/**\n  Defines the properties that will be concatenated from the superclass\n  (instead of overridden).\n   By default, when you extend an Ember class a property defined in\n  the subclass overrides a property with the same name that is defined\n  in the superclass. However, there are some cases where it is preferable\n  to build up a property's value by combining the superclass' property\n  value with the subclass' value. An example of this in use within Ember\n  is the `classNames` property of `Ember.View`.\n   Here is some sample code showing the difference between a concatenated\n  property and a normal one:\n   ```javascript\n  const Bar = Ember.Object.extend({\n    // Configure which properties to concatenate\n    concatenatedProperties: ['concatenatedProperty'],\n     someNonConcatenatedProperty: ['bar'],\n    concatenatedProperty: ['bar']\n  });\n   const FooBar = Bar.extend({\n    someNonConcatenatedProperty: ['foo'],\n    concatenatedProperty: ['foo']\n  });\n   let fooBar = FooBar.create();\n  fooBar.get('someNonConcatenatedProperty'); // ['foo']\n  fooBar.get('concatenatedProperty'); // ['bar', 'foo']\n  ```\n   This behavior extends to object creation as well. Continuing the\n  above example:\n   ```javascript\n  let fooBar = FooBar.create({\n    someNonConcatenatedProperty: ['baz'],\n    concatenatedProperty: ['baz']\n  })\n  fooBar.get('someNonConcatenatedProperty'); // ['baz']\n  fooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n  ```\n   Adding a single property that is not an array will just add it in the array:\n   ```javascript\n  let fooBar = FooBar.create({\n    concatenatedProperty: 'baz'\n  })\n  view.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n  ```\n   Using the `concatenatedProperties` property, we can tell Ember to mix the\n  content of the properties.\n   In `Ember.Component` the `classNames`, `classNameBindings` and\n  `attributeBindings` properties are concatenated.\n   This feature is available for you to use throughout the Ember object model,\n  although typical app developers are likely to use it infrequently. Since\n  it changes expectations about behavior of properties, you should properly\n  document its usage in each individual concatenated property (to not\n  mislead your users to think they can override the property in a subclass).\n   @property concatenatedProperties\n  @type Array\n  @default null\n  @public\n*/\n\n/**\n  Defines the properties that will be merged from the superclass\n  (instead of overridden).\n   By default, when you extend an Ember class a property defined in\n  the subclass overrides a property with the same name that is defined\n  in the superclass. However, there are some cases where it is preferable\n  to build up a property's value by merging the superclass property value\n  with the subclass property's value. An example of this in use within Ember\n  is the `queryParams` property of routes.\n   Here is some sample code showing the difference between a merged\n  property and a normal one:\n   ```javascript\n  const Bar = Ember.Object.extend({\n    // Configure which properties are to be merged\n    mergedProperties: ['mergedProperty'],\n     someNonMergedProperty: {\n      nonMerged: 'superclass value of nonMerged'\n    },\n    mergedProperty: {\n      page: { replace: false },\n      limit: { replace: true }\n    }\n  });\n   const FooBar = Bar.extend({\n    someNonMergedProperty: {\n      completelyNonMerged: 'subclass value of nonMerged'\n    },\n    mergedProperty: {\n      limit: { replace: false }\n    }\n  });\n   let fooBar = FooBar.create();\n   fooBar.get('someNonMergedProperty');\n  // => { completelyNonMerged: 'subclass value of nonMerged' }\n  //\n  // Note the entire object, including the nonMerged property of\n  // the superclass object, has been replaced\n   fooBar.get('mergedProperty');\n  // => {\n  //   page: {replace: false},\n  //   limit: {replace: false}\n  // }\n  //\n  // Note the page remains from the superclass, and the\n  // `limit` property's value of `false` has been merged from\n  // the subclass.\n  ```\n   This behavior is not available during object `create` calls. It is only\n  available at `extend` time.\n   In `Ember.Route` the `queryParams` property is merged.\n   This feature is available for you to use throughout the Ember object model,\n  although typical app developers are likely to use it infrequently. Since\n  it changes expectations about behavior of properties, you should properly\n  document its usage in each individual merged property (to not\n  mislead your users to think they can override the property in a subclass).\n   @property mergedProperties\n  @type Array\n  @default null\n  @public\n*/\n\n/**\n  Destroyed object property flag.\n   if this property is `true` the observers and bindings were already\n  removed by the effect of calling the `destroy()` method.\n   @property isDestroyed\n  @default false\n  @public\n*/\n\n/**\n  Destruction scheduled flag. The `destroy()` method has been called.\n   The object stays intact until the end of the run loop at which point\n  the `isDestroyed` flag is set.\n   @property isDestroying\n  @default false\n  @public\n*/\n\n/**\n  Destroys an object by setting the `isDestroyed` flag and removing its\n  metadata, which effectively destroys observers and bindings.\n   If you try to set a property on a destroyed object, an exception will be\n  raised.\n   Note that destruction is scheduled for the end of the run loop and does not\n  happen immediately.  It will set an isDestroying flag immediately.\n   @method destroy\n  @return {Ember.Object} receiver\n  @public\n*/\n\n/**\n  Override to implement teardown.\n   @method willDestroy\n  @public\n*/\n\n/**\n  Invoked by the run loop to actually destroy the object. This is\n  scheduled for execution by the `destroy` method.\n   @private\n  @method _scheduledDestroy\n*/\n\n/**\n  Returns a string representation which attempts to provide more information\n  than Javascript's `toString` typically does, in a generic way for all Ember\n  objects.\n   ```javascript\n  const Person = Ember.Object.extend()\n  person = Person.create()\n  person.toString() //=> \"<Person:ember1024>\"\n  ```\n   If the object's class is not defined on an Ember namespace, it will\n  indicate it is a subclass of the registered superclass:\n  ```javascript\n  const Student = Person.extend()\n  let student = Student.create()\n  student.toString() //=> \"<(subclass of Person):ember1025>\"\n  ```\n   If the method `toStringExtension` is defined, its return value will be\n  included in the output.\n   ```javascript\n  const Teacher = Person.extend({\n    toStringExtension() {\n      return this.get('fullName');\n    }\n  });\n  teacher = Teacher.create()\n  teacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n  ```\n   @method toString\n  @return {String} string representation\n  @public\n*/\n\n/**\n  Creates a new subclass.\n   ```javascript\n  const Person = Ember.Object.extend({\n    say(thing) {\n      alert(thing);\n     }\n  });\n  ```\n   This defines a new subclass of Ember.Object: `Person`. It contains one method: `say()`.\n   You can also create a subclass from any existing class by calling its `extend()` method.\n  For example, you might want to create a subclass of Ember's built-in `Ember.Component` class:\n   ```javascript\n  const PersonComponent = Ember.Component.extend({\n    tagName: 'li',\n    classNameBindings: ['isAdministrator']\n  });\n  ```\n   When defining a subclass, you can override methods but still access the\n  implementation of your parent class by calling the special `_super()` method:\n   ```javascript\n  const Person = Ember.Object.extend({\n    say(thing) {\n      let name = this.get('name');\n      alert(`${name} says: ${thing}`);\n    }\n  });\n   const Soldier = Person.extend({\n    say(thing) {\n      this._super(`${thing}, sir!`);\n    },\n    march(numberOfHours) {\n      alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n    }\n  });\n   let yehuda = Soldier.create({\n    name: 'Yehuda Katz'\n  });\n   yehuda.say('Yes');  // alerts \"Yehuda Katz says: Yes, sir!\"\n  ```\n   The `create()` on line #17 creates an *instance* of the `Soldier` class.\n  The `extend()` on line #8 creates a *subclass* of `Person`. Any instance\n  of the `Person` class will *not* have the `march()` method.\n   You can also pass `Mixin` classes to add additional properties to the subclass.\n   ```javascript\n  const Person = Ember.Object.extend({\n    say(thing) {\n      alert(`${this.get('name')} says: ${thing}`);\n    }\n  });\n   const SingingMixin = Mixin.create({\n    sing(thing){\n      alert(`${this.get('name')} sings: la la la ${thing}`);\n    }\n  });\n   const BroadwayStar = Person.extend(SingingMixin, {\n    dance() {\n      alert(`${this.get('name')} dances: tap tap tap tap `);\n    }\n  });\n  ```\n   The `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.\n   @method extend\n  @static\n   @param {Mixin} [mixins]* One or more Mixin classes\n  @param {Object} [arguments]* Object containing values to use within the new class\n  @public\n*/\n\n/**\n  Creates an instance of a class. Accepts either no arguments, or an object\n  containing values to initialize the newly instantiated object with.\n   ```javascript\n  const Person = Ember.Object.extend({\n    helloWorld() {\n      alert(`Hi, my name is ${this.get('name')}`);\n    }\n  });\n   let tom = Person.create({\n    name: 'Tom Dale'\n  });\n   tom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n  ```\n   `create` will call the `init` function if defined during\n  `Ember.AnyObject.extend`\n   If no arguments are passed to `create`, it will not set values to the new\n  instance during initialization:\n   ```javascript\n  let noName = Person.create();\n  noName.helloWorld(); // alerts undefined\n  ```\n   NOTE: For performance reasons, you cannot declare methods or computed\n  properties during `create`. You should instead declare methods and computed\n  properties when using `extend`.\n   @method create\n  @static\n  @param [arguments]*\n  @public\n*/\n\n/**\n  Augments a constructor's prototype with additional\n  properties and functions:\n   ```javascript\n  const MyObject = Ember.Object.extend({\n    name: 'an object'\n  });\n   o = MyObject.create();\n  o.get('name'); // 'an object'\n   MyObject.reopen({\n    say(msg) {\n      console.log(msg);\n    }\n  });\n   o2 = MyObject.create();\n  o2.say('hello'); // logs \"hello\"\n   o.say('goodbye'); // logs \"goodbye\"\n  ```\n   To add functions and properties to the constructor itself,\n  see `reopenClass`\n   @method reopen\n  @public\n*/\n\n/**\n  Augments a constructor's own properties and functions:\n   ```javascript\n  const MyObject = Ember.Object.extend({\n    name: 'an object'\n  });\n   MyObject.reopenClass({\n    canBuild: false\n  });\n   MyObject.canBuild; // false\n  o = MyObject.create();\n  ```\n   In other words, this creates static properties and functions for the class.\n  These are only available on the class and not on any instance of that class.\n   ```javascript\n  const Person = Ember.Object.extend({\n    name: '',\n    sayHello() {\n      alert(`Hello. My name is ${this.get('name')}`);\n    }\n  });\n   Person.reopenClass({\n    species: 'Homo sapiens',\n     createPerson(name) {\n      return Person.create({ name });\n    }\n  });\n   let tom = Person.create({\n    name: 'Tom Dale'\n  });\n  let yehuda = Person.createPerson('Yehuda Katz');\n   tom.sayHello(); // \"Hello. My name is Tom Dale\"\n  yehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\n  alert(Person.species); // \"Homo sapiens\"\n  ```\n   Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\n  variables. They are only valid on `Person`.\n   To add functions and properties to instances of\n  a constructor by extending the constructor's prototype\n  see `reopen`\n   @method reopenClass\n  @public\n*/\n\n/**\n  In some cases, you may want to annotate computed properties with additional\n  metadata about how they function or what values they operate on. For\n  example, computed property functions may close over variables that are then\n  no longer available for introspection.\n   You can pass a hash of these values to a computed property like this:\n   ```javascript\n  person: Ember.computed(function() {\n    let personId = this.get('personId');\n    return Person.create({ id: personId });\n  }).meta({ type: Person })\n  ```\n   Once you've done this, you can retrieve the values saved to the computed\n  property from your class like this:\n   ```javascript\n  MyClass.metaForProperty('person');\n  ```\n   This will return the original hash that was passed to `meta()`.\n   @static\n  @method metaForProperty\n  @param key {String} property name\n  @private\n*/\n\n/**\n  Iterate over each computed property for the class, passing its name\n  and any associated metadata (see `metaForProperty`) to the callback.\n   @static\n  @method eachComputedProperty\n  @param {Function} callback\n  @param {Object} binding\n  @private\n*/\nenifed('ember-runtime/system/each_proxy', ['exports', 'ember-debug', 'ember-metal', 'ember-runtime/mixins/array'], function (exports, _emberDebug, _emberMetal, _emberRuntimeMixinsArray) {\n  'use strict';\n\n  exports.default = EachProxy;\n\n  /**\n    This is the object instance returned when you get the `@each` property on an\n    array. It uses the unknownProperty handler to automatically create\n    EachArray instances for property names.\n    @class EachProxy\n    @private\n  */\n\n  function EachProxy(content) {\n    this._content = content;\n    this._keys = undefined;\n    this.__ember_meta__ = null;\n  }\n\n  EachProxy.prototype = {\n    __defineNonEnumerable: function (property) {\n      this[property.name] = property.descriptor.value;\n    },\n\n    // ..........................................................\n    // ARRAY CHANGES\n    // Invokes whenever the content array itself changes.\n\n    arrayWillChange: function (content, idx, removedCnt, addedCnt) {\n      var keys = this._keys;\n      var lim = removedCnt > 0 ? idx + removedCnt : -1;\n      for (var key in keys) {\n        if (lim > 0) {\n          removeObserverForContentKey(content, key, this, idx, lim);\n        }\n        _emberMetal.propertyWillChange(this, key);\n      }\n    },\n\n    arrayDidChange: function (content, idx, removedCnt, addedCnt) {\n      var keys = this._keys;\n      var lim = addedCnt > 0 ? idx + addedCnt : -1;\n      for (var key in keys) {\n        if (lim > 0) {\n          addObserverForContentKey(content, key, this, idx, lim);\n        }\n        _emberMetal.propertyDidChange(this, key);\n      }\n    },\n\n    // ..........................................................\n    // LISTEN FOR NEW OBSERVERS AND OTHER EVENT LISTENERS\n    // Start monitoring keys based on who is listening...\n\n    willWatchProperty: function (property) {\n      this.beginObservingContentKey(property);\n    },\n\n    didUnwatchProperty: function (property) {\n      this.stopObservingContentKey(property);\n    },\n\n    // ..........................................................\n    // CONTENT KEY OBSERVING\n    // Actual watch keys on the source content.\n\n    beginObservingContentKey: function (keyName) {\n      var keys = this._keys;\n      if (!keys) {\n        keys = this._keys = Object.create(null);\n      }\n\n      if (!keys[keyName]) {\n        keys[keyName] = 1;\n        var content = this._content;\n        var len = _emberMetal.get(content, 'length');\n\n        addObserverForContentKey(content, keyName, this, 0, len);\n      } else {\n        keys[keyName]++;\n      }\n    },\n\n    stopObservingContentKey: function (keyName) {\n      var keys = this._keys;\n      if (keys && keys[keyName] > 0 && --keys[keyName] <= 0) {\n        var content = this._content;\n        var len = _emberMetal.get(content, 'length');\n\n        removeObserverForContentKey(content, keyName, this, 0, len);\n      }\n    },\n\n    contentKeyWillChange: function (obj, keyName) {\n      _emberMetal.propertyWillChange(this, keyName);\n    },\n\n    contentKeyDidChange: function (obj, keyName) {\n      _emberMetal.propertyDidChange(this, keyName);\n    }\n  };\n\n  function addObserverForContentKey(content, keyName, proxy, idx, loc) {\n    while (--loc >= idx) {\n      var item = _emberRuntimeMixinsArray.objectAt(content, loc);\n      if (item) {\n        _emberDebug.assert('When using @each to observe the array ' + content + ', the array must return an object', typeof item === 'object');\n        _emberMetal._addBeforeObserver(item, keyName, proxy, 'contentKeyWillChange');\n        _emberMetal.addObserver(item, keyName, proxy, 'contentKeyDidChange');\n      }\n    }\n  }\n\n  function removeObserverForContentKey(content, keyName, proxy, idx, loc) {\n    while (--loc >= idx) {\n      var item = _emberRuntimeMixinsArray.objectAt(content, loc);\n      if (item) {\n        _emberMetal._removeBeforeObserver(item, keyName, proxy, 'contentKeyWillChange');\n        _emberMetal.removeObserver(item, keyName, proxy, 'contentKeyDidChange');\n      }\n    }\n  }\n});\nenifed('ember-runtime/system/lazy_load', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {\n  /*globals CustomEvent */\n\n  'use strict';\n\n  exports.onLoad = onLoad;\n  exports.runLoadHooks = runLoadHooks;\n\n  /**\n    @module ember\n    @submodule ember-runtime\n  */\n\n  var loadHooks = _emberEnvironment.ENV.EMBER_LOAD_HOOKS || {};\n  var loaded = {};\n  var _loaded = loaded;\n\n  exports._loaded = _loaded;\n  /**\n    Detects when a specific package of Ember (e.g. 'Ember.Application')\n    has fully loaded and is available for extension.\n  \n    The provided `callback` will be called with the `name` passed\n    resolved from a string into the object:\n  \n    ``` javascript\n    Ember.onLoad('Ember.Application' function(hbars) {\n      hbars.registerHelper(...);\n    });\n    ```\n  \n    @method onLoad\n    @for Ember\n    @param name {String} name of hook\n    @param callback {Function} callback to be called\n    @private\n  */\n\n  function onLoad(name, callback) {\n    var object = loaded[name];\n\n    loadHooks[name] = loadHooks[name] || [];\n    loadHooks[name].push(callback);\n\n    if (object) {\n      callback(object);\n    }\n  }\n\n  /**\n    Called when an Ember.js package (e.g Ember.Application) has finished\n    loading. Triggers any callbacks registered for this event.\n  \n    @method runLoadHooks\n    @for Ember\n    @param name {String} name of hook\n    @param object {Object} object to pass to callbacks\n    @private\n  */\n\n  function runLoadHooks(name, object) {\n    loaded[name] = object;\n    var window = _emberEnvironment.environment.window;\n\n    if (window && typeof CustomEvent === 'function') {\n      var _event = new CustomEvent(name, { detail: object, name: name });\n      window.dispatchEvent(_event);\n    }\n\n    if (loadHooks[name]) {\n      loadHooks[name].forEach(function (callback) {\n        return callback(object);\n      });\n    }\n  }\n});\nenifed('ember-runtime/system/namespace', ['exports', 'ember-utils', 'ember-metal', 'ember-environment', 'ember-runtime/system/object'], function (exports, _emberUtils, _emberMetal, _emberEnvironment, _emberRuntimeSystemObject) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n  'use strict';\n\n  exports.isSearchDisabled = isSearchDisabled;\n  exports.setSearchDisabled = setSearchDisabled;\n\n  var searchDisabled = false;\n\n  function isSearchDisabled() {\n    return searchDisabled;\n  }\n\n  function setSearchDisabled(flag) {\n    searchDisabled = !!flag;\n  }\n\n  /**\n    A Namespace is an object usually used to contain other objects or methods\n    such as an application or framework. Create a namespace anytime you want\n    to define one of these new containers.\n  \n    # Example Usage\n  \n    ```javascript\n    MyFramework = Ember.Namespace.create({\n      VERSION: '1.0.0'\n    });\n    ```\n  \n    @class Namespace\n    @namespace Ember\n    @extends Ember.Object\n    @public\n  */\n  var Namespace = _emberRuntimeSystemObject.default.extend({\n    isNamespace: true,\n\n    init: function () {\n      Namespace.NAMESPACES.push(this);\n      Namespace.PROCESSED = false;\n    },\n\n    toString: function () {\n      var name = _emberMetal.get(this, 'name') || _emberMetal.get(this, 'modulePrefix');\n      if (name) {\n        return name;\n      }\n\n      findNamespaces();\n      return this[_emberUtils.NAME_KEY];\n    },\n\n    nameClasses: function () {\n      processNamespace([this.toString()], this, {});\n    },\n\n    destroy: function () {\n      var namespaces = Namespace.NAMESPACES;\n      var toString = this.toString();\n\n      if (toString) {\n        _emberEnvironment.context.lookup[toString] = undefined;\n        delete Namespace.NAMESPACES_BY_ID[toString];\n      }\n      namespaces.splice(namespaces.indexOf(this), 1);\n      this._super.apply(this, arguments);\n    }\n  });\n\n  Namespace.reopenClass({\n    NAMESPACES: [_emberMetal.default],\n    NAMESPACES_BY_ID: {\n      Ember: _emberMetal.default\n    },\n    PROCESSED: false,\n    processAll: processAllNamespaces,\n    byName: function (name) {\n      if (!searchDisabled) {\n        processAllNamespaces();\n      }\n\n      return NAMESPACES_BY_ID[name];\n    }\n  });\n\n  var NAMESPACES_BY_ID = Namespace.NAMESPACES_BY_ID;\n\n  var hasOwnProp = ({}).hasOwnProperty;\n\n  function processNamespace(paths, root, seen) {\n    var idx = paths.length;\n\n    NAMESPACES_BY_ID[paths.join('.')] = root;\n\n    // Loop over all of the keys in the namespace, looking for classes\n    for (var key in root) {\n      if (!hasOwnProp.call(root, key)) {\n        continue;\n      }\n      var obj = root[key];\n\n      // If we are processing the `Ember` namespace, for example, the\n      // `paths` will start with `[\"Ember\"]`. Every iteration through\n      // the loop will update the **second** element of this list with\n      // the key, so processing `Ember.View` will make the Array\n      // `['Ember', 'View']`.\n      paths[idx] = key;\n\n      // If we have found an unprocessed class\n      if (obj && obj.toString === classToString && !obj[_emberUtils.NAME_KEY]) {\n        // Replace the class' `toString` with the dot-separated path\n        // and set its `NAME_KEY`\n        obj[_emberUtils.NAME_KEY] = paths.join('.');\n\n        // Support nested namespaces\n      } else if (obj && obj.isNamespace) {\n          // Skip aliased namespaces\n          if (seen[_emberUtils.guidFor(obj)]) {\n            continue;\n          }\n          seen[_emberUtils.guidFor(obj)] = true;\n\n          // Process the child namespace\n          processNamespace(paths, obj, seen);\n        }\n    }\n\n    paths.length = idx; // cut out last item\n  }\n\n  function isUppercase(code) {\n    return code >= 65 && // A\n    code <= 90; // Z\n  }\n\n  function tryIsNamespace(lookup, prop) {\n    try {\n      var obj = lookup[prop];\n      return obj && obj.isNamespace && obj;\n    } catch (e) {\n      // continue\n    }\n  }\n\n  function findNamespaces() {\n    if (Namespace.PROCESSED) {\n      return;\n    }\n    var lookup = _emberEnvironment.context.lookup;\n    var keys = Object.keys(lookup);\n    for (var i = 0; i < keys.length; i++) {\n      var key = keys[i];\n      // Only process entities that start with uppercase A-Z\n      if (!isUppercase(key.charCodeAt(0))) {\n        continue;\n      }\n      var obj = tryIsNamespace(lookup, key);\n      if (obj) {\n        obj[_emberUtils.NAME_KEY] = key;\n      }\n    }\n  }\n\n  function superClassString(mixin) {\n    var superclass = mixin.superclass;\n    if (superclass) {\n      if (superclass[_emberUtils.NAME_KEY]) {\n        return superclass[_emberUtils.NAME_KEY];\n      }\n      return superClassString(superclass);\n    }\n  }\n\n  function calculateToString(target) {\n    var str = undefined;\n\n    if (!searchDisabled) {\n      processAllNamespaces();\n      // can also be set by processAllNamespaces\n      str = target[_emberUtils.NAME_KEY];\n      if (str) {\n        return str;\n      } else {\n        str = superClassString(target);\n        str = str ? '(subclass of ' + str + ')' : str;\n      }\n    }\n    if (str) {\n      return str;\n    } else {\n      return '(unknown mixin)';\n    }\n  }\n\n  function classToString() {\n    var name = this[_emberUtils.NAME_KEY];\n    if (name) {\n      return name;\n    }\n\n    return this[_emberUtils.NAME_KEY] = calculateToString(this);\n  }\n\n  function processAllNamespaces() {\n    var unprocessedNamespaces = !Namespace.PROCESSED;\n    var unprocessedMixins = _emberMetal.hasUnprocessedMixins();\n\n    if (unprocessedNamespaces) {\n      findNamespaces();\n      Namespace.PROCESSED = true;\n    }\n\n    if (unprocessedNamespaces || unprocessedMixins) {\n      var namespaces = Namespace.NAMESPACES;\n      var namespace = undefined;\n\n      for (var i = 0; i < namespaces.length; i++) {\n        namespace = namespaces[i];\n        processNamespace([namespace.toString()], namespace, {});\n      }\n\n      _emberMetal.clearUnprocessedMixins();\n    }\n  }\n\n  _emberMetal.Mixin.prototype.toString = classToString; // ES6TODO: altering imported objects. SBB.\n\n  exports.default = Namespace;\n});\n// Preloaded into namespaces\nenifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-environment', 'ember-runtime/mixins/array', 'ember-runtime/mixins/mutable_array', 'ember-runtime/mixins/observable', 'ember-runtime/mixins/copyable', 'ember-runtime/mixins/freezable', 'ember-runtime/copy'], function (exports, _emberMetal, _emberEnvironment, _emberRuntimeMixinsArray, _emberRuntimeMixinsMutable_array, _emberRuntimeMixinsObservable, _emberRuntimeMixinsCopyable, _emberRuntimeMixinsFreezable, _emberRuntimeCopy) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n  'use strict';\n\n  var _NativeArray;\n\n  // Add Ember.Array to Array.prototype. Remove methods with native\n  // implementations and supply some more optimized versions of generic methods\n  // because they are so common.\n\n  /**\n    The NativeArray mixin contains the properties needed to make the native\n    Array support Ember.MutableArray and all of its dependent APIs. Unless you\n    have `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\n    false, this will be applied automatically. Otherwise you can apply the mixin\n    at anytime by calling `Ember.NativeArray.apply(Array.prototype)`.\n  \n    @class NativeArray\n    @namespace Ember\n    @uses Ember.MutableArray\n    @uses Ember.Observable\n    @uses Ember.Copyable\n    @public\n  */\n  var NativeArray = _emberMetal.Mixin.create(_emberRuntimeMixinsMutable_array.default, _emberRuntimeMixinsObservable.default, _emberRuntimeMixinsCopyable.default, {\n\n    // because length is a built-in property we need to know to just get the\n    // original property.\n    get: function (key) {\n      if ('number' === typeof key) {\n        return this[key];\n      } else {\n        return this._super(key);\n      }\n    },\n\n    objectAt: function (idx) {\n      return this[idx];\n    },\n\n    // primitive for array support.\n    replace: function (idx, amt, objects) {\n      if (this.isFrozen) {\n        throw _emberRuntimeMixinsFreezable.FROZEN_ERROR;\n      }\n\n      // if we replaced exactly the same number of items, then pass only the\n      // replaced range. Otherwise, pass the full remaining array length\n      // since everything has shifted\n      var len = objects ? _emberMetal.get(objects, 'length') : 0;\n      _emberRuntimeMixinsArray.arrayContentWillChange(this, idx, amt, len);\n\n      if (len === 0) {\n        this.splice(idx, amt);\n      } else {\n        _emberMetal.replace(this, idx, amt, objects);\n      }\n\n      _emberRuntimeMixinsArray.arrayContentDidChange(this, idx, amt, len);\n      return this;\n    },\n\n    // If you ask for an unknown property, then try to collect the value\n    // from member items.\n    unknownProperty: function (key, value) {\n      var ret = undefined; // = this.reducedProperty(key, value);\n      if (value !== undefined && ret === undefined) {\n        ret = this[key] = value;\n      }\n      return ret;\n    },\n\n    indexOf: Array.prototype.indexOf,\n    lastIndexOf: Array.prototype.lastIndexOf,\n\n    copy: function (deep) {\n      if (deep) {\n        return this.map(function (item) {\n          return _emberRuntimeCopy.default(item, true);\n        });\n      }\n\n      return this.slice();\n    }\n  });\n\n  // Remove any methods implemented natively so we don't override them\n  var ignore = ['length'];\n  NativeArray.keys().forEach(function (methodName) {\n    if (Array.prototype[methodName]) {\n      ignore.push(methodName);\n    }\n  });\n\n  exports.NativeArray // TODO: only use default export\n   = NativeArray = (_NativeArray = NativeArray).without.apply(_NativeArray, ignore);\n\n  /**\n    Creates an `Ember.NativeArray` from an Array like object.\n    Does not modify the original object. Ember.A is not needed if\n    `EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\n    it is recommended that you use Ember.A when creating addons for\n    ember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\n    will be `true`.\n  \n    Example\n  \n    ```js\n    export default Ember.Component.extend({\n      tagName: 'ul',\n      classNames: ['pagination'],\n  \n      init() {\n        this._super(...arguments);\n  \n        if (!this.get('content')) {\n          this.set('content', Ember.A());\n        }\n      }\n    });\n    ```\n  \n    @method A\n    @for Ember\n    @return {Ember.NativeArray}\n    @public\n  */\n  var A = undefined;\n\n  if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.Array) {\n    NativeArray.apply(Array.prototype);\n    exports.A = A = function (arr) {\n      return arr || [];\n    };\n  } else {\n    exports.A = A = function (arr) {\n      if (!arr) {\n        arr = [];\n      }\n      return _emberRuntimeMixinsArray.default.detect(arr) ? arr : NativeArray.apply(arr);\n    };\n  }\n\n  _emberMetal.default.A = A;\n  exports.A = A;\n  exports.NativeArray = NativeArray;\n  exports.default = NativeArray;\n});\n// Ember.A circular\nenifed('ember-runtime/system/object', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime/system/core_object', 'ember-runtime/mixins/observable', 'ember-debug'], function (exports, _emberUtils, _emberMetal, _emberRuntimeSystemCore_object, _emberRuntimeMixinsObservable, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  var _CoreObject$extend;\n\n  var OVERRIDE_CONTAINER_KEY = _emberUtils.symbol('OVERRIDE_CONTAINER_KEY');\n  var OVERRIDE_OWNER = _emberUtils.symbol('OVERRIDE_OWNER');\n\n  /**\n    `Ember.Object` is the main base class for all Ember objects. It is a subclass\n    of `Ember.CoreObject` with the `Ember.Observable` mixin applied. For details,\n    see the documentation for each of these.\n  \n    @class Object\n    @namespace Ember\n    @extends Ember.CoreObject\n    @uses Ember.Observable\n    @public\n  */\n  var EmberObject = _emberRuntimeSystemCore_object.default.extend(_emberRuntimeMixinsObservable.default, (_CoreObject$extend = {\n    _debugContainerKey: _emberMetal.descriptor({\n      enumerable: false,\n      get: function () {\n        if (this[OVERRIDE_CONTAINER_KEY]) {\n          return this[OVERRIDE_CONTAINER_KEY];\n        }\n\n        var meta = _emberMetal.meta(this);\n        var factory = meta.factory;\n\n        return factory && factory.fullName;\n      },\n\n      // we need a setter here largely to support the legacy\n      // `owner._lookupFactory` and its double extend\n      set: function (value) {\n        this[OVERRIDE_CONTAINER_KEY] = value;\n      }\n    })\n\n  }, _CoreObject$extend[_emberUtils.OWNER] = _emberMetal.descriptor({\n    enumerable: false,\n    get: function () {\n      if (this[OVERRIDE_OWNER]) {\n        return this[OVERRIDE_OWNER];\n      }\n\n      var meta = _emberMetal.meta(this);\n      var factory = meta.factory;\n\n      return factory && factory.owner;\n    },\n\n    // we need a setter here largely to support the legacy\n    // `owner._lookupFactory` and its double extend\n    set: function (value) {\n      this[OVERRIDE_OWNER] = value;\n    }\n  }), _CoreObject$extend));\n\n  EmberObject.toString = function () {\n    return 'Ember.Object';\n  };\n\n  var FrameworkObject = EmberObject;\n\n  exports.FrameworkObject = FrameworkObject;\n  _emberDebug.runInDebug(function () {\n    var _EmberObject$extend;\n\n    var INIT_WAS_CALLED = _emberUtils.symbol('INIT_WAS_CALLED');\n    var ASSERT_INIT_WAS_CALLED = _emberUtils.symbol('ASSERT_INIT_WAS_CALLED');\n\n    exports.FrameworkObject = FrameworkObject = EmberObject.extend((_EmberObject$extend = {\n      init: function () {\n        this._super.apply(this, arguments);\n        this[INIT_WAS_CALLED] = true;\n      }\n\n    }, _EmberObject$extend[ASSERT_INIT_WAS_CALLED] = _emberMetal.on('init', function () {\n      _emberDebug.assert('You must call `this._super(...arguments);` when overriding `init` on a framework object. Please update ' + this + ' to call `this._super(...arguments);` from `init`.', this[INIT_WAS_CALLED]);\n    }), _EmberObject$extend));\n  });\n\n  exports.default = EmberObject;\n});\nenifed('ember-runtime/system/object_proxy', ['exports', 'ember-runtime/system/object', 'ember-runtime/mixins/-proxy'], function (exports, _emberRuntimeSystemObject, _emberRuntimeMixinsProxy) {\n  'use strict';\n\n  /**\n    `Ember.ObjectProxy` forwards all properties not defined by the proxy itself\n    to a proxied `content` object.\n  \n    ```javascript\n    object = Ember.Object.create({\n      name: 'Foo'\n    });\n  \n    proxy = Ember.ObjectProxy.create({\n      content: object\n    });\n  \n    // Access and change existing properties\n    proxy.get('name')          // 'Foo'\n    proxy.set('name', 'Bar');\n    object.get('name')         // 'Bar'\n  \n    // Create new 'description' property on `object`\n    proxy.set('description', 'Foo is a whizboo baz');\n    object.get('description')  // 'Foo is a whizboo baz'\n    ```\n  \n    While `content` is unset, setting a property to be delegated will throw an\n    Error.\n  \n    ```javascript\n    proxy = Ember.ObjectProxy.create({\n      content: null,\n      flag: null\n    });\n    proxy.set('flag', true);\n    proxy.get('flag');         // true\n    proxy.get('foo');          // undefined\n    proxy.set('foo', 'data');  // throws Error\n    ```\n  \n    Delegated properties can be bound to and will change when content is updated.\n  \n    Computed properties on the proxy itself can depend on delegated properties.\n  \n    ```javascript\n    ProxyWithComputedProperty = Ember.ObjectProxy.extend({\n      fullName: Ember.computed('firstName', 'lastName', function() {\n        var firstName = this.get('firstName'),\n            lastName = this.get('lastName');\n        if (firstName && lastName) {\n          return firstName + ' ' + lastName;\n        }\n        return firstName || lastName;\n      })\n    });\n  \n    proxy = ProxyWithComputedProperty.create();\n  \n    proxy.get('fullName');  // undefined\n    proxy.set('content', {\n      firstName: 'Tom', lastName: 'Dale'\n    }); // triggers property change for fullName on proxy\n  \n    proxy.get('fullName');  // 'Tom Dale'\n    ```\n  \n    @class ObjectProxy\n    @namespace Ember\n    @extends Ember.Object\n    @uses Ember.ProxyMixin\n    @public\n  */\n\n  exports.default = _emberRuntimeSystemObject.default.extend(_emberRuntimeMixinsProxy.default);\n});\nenifed('ember-runtime/system/service', ['exports', 'ember-runtime/system/object', 'ember-runtime/inject'], function (exports, _emberRuntimeSystemObject, _emberRuntimeInject) {\n  'use strict';\n\n  /**\n    Creates a property that lazily looks up a service in the container. There\n    are no restrictions as to what objects a service can be injected into.\n  \n    Example:\n  \n    ```javascript\n    App.ApplicationRoute = Ember.Route.extend({\n      authManager: Ember.inject.service('auth'),\n  \n      model: function() {\n        return this.get('authManager').findCurrentUser();\n      }\n    });\n    ```\n  \n    This example will create an `authManager` property on the application route\n    that looks up the `auth` service in the container, making it easily\n    accessible in the `model` hook.\n  \n    @method service\n    @since 1.10.0\n    @for Ember.inject\n    @param {String} name (optional) name of the service to inject, defaults to\n           the property's name\n    @return {Ember.InjectedProperty} injection descriptor instance\n    @public\n  */\n  _emberRuntimeInject.createInjectionHelper('service');\n\n  /**\n    @class Service\n    @namespace Ember\n    @extends Ember.Object\n    @since 1.10.0\n    @public\n  */\n  var Service = _emberRuntimeSystemObject.default.extend();\n\n  Service.reopenClass({\n    isServiceFactory: true\n  });\n\n  exports.default = Service;\n});\nenifed('ember-runtime/system/string', ['exports', 'ember-metal', 'ember-debug', 'ember-utils', 'ember-runtime/utils', 'ember-runtime/string_registry'], function (exports, _emberMetal, _emberDebug, _emberUtils, _emberRuntimeUtils, _emberRuntimeString_registry) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n  'use strict';\n\n  var STRING_DASHERIZE_REGEXP = /[ _]/g;\n\n  var STRING_DASHERIZE_CACHE = new _emberMetal.Cache(1000, function (key) {\n    return decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-');\n  });\n\n  var STRING_CAMELIZE_REGEXP_1 = /(\\-|\\_|\\.|\\s)+(.)?/g;\n  var STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\n\n  var CAMELIZE_CACHE = new _emberMetal.Cache(1000, function (key) {\n    return key.replace(STRING_CAMELIZE_REGEXP_1, function (match, separator, chr) {\n      return chr ? chr.toUpperCase() : '';\n    }).replace(STRING_CAMELIZE_REGEXP_2, function (match, separator, chr) {\n      return match.toLowerCase();\n    });\n  });\n\n  var STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\n  var STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\n  var STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n\n  var CLASSIFY_CACHE = new _emberMetal.Cache(1000, function (str) {\n    var replace1 = function (match, separator, chr) {\n      return chr ? '_' + chr.toUpperCase() : '';\n    };\n    var replace2 = function (match, initialChar, separator, chr) {\n      return initialChar + (chr ? chr.toUpperCase() : '');\n    };\n    var parts = str.split('/');\n    for (var i = 0; i < parts.length; i++) {\n      parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n    }\n    return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, function (match, separator, chr) {\n      return match.toUpperCase();\n    });\n  });\n\n  var STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n  var STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\n\n  var UNDERSCORE_CACHE = new _emberMetal.Cache(1000, function (str) {\n    return str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase();\n  });\n\n  var STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z])/g;\n\n  var CAPITALIZE_CACHE = new _emberMetal.Cache(1000, function (str) {\n    return str.replace(STRING_CAPITALIZE_REGEXP, function (match, separator, chr) {\n      return match.toUpperCase();\n    });\n  });\n\n  var STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n\n  var DECAMELIZE_CACHE = new _emberMetal.Cache(1000, function (str) {\n    return str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase();\n  });\n\n  function _fmt(str, formats) {\n    var cachedFormats = formats;\n\n    if (!_emberRuntimeUtils.isArray(cachedFormats) || arguments.length > 2) {\n      cachedFormats = new Array(arguments.length - 1);\n\n      for (var i = 1; i < arguments.length; i++) {\n        cachedFormats[i - 1] = arguments[i];\n      }\n    }\n\n    // first, replace any ORDERED replacements.\n    var idx = 0; // the current index for non-numerical replacements\n    return str.replace(/%@([0-9]+)?/g, function (s, argIndex) {\n      argIndex = argIndex ? parseInt(argIndex, 10) - 1 : idx++;\n      s = cachedFormats[argIndex];\n      return s === null ? '(null)' : s === undefined ? '' : _emberUtils.inspect(s);\n    });\n  }\n\n  function fmt(str, formats) {\n    _emberDebug.deprecate('Ember.String.fmt is deprecated, use ES6 template strings instead.', false, { id: 'ember-string-utils.fmt', until: '3.0.0', url: 'http://babeljs.io/docs/learn-es2015/#template-strings' });\n    return _fmt.apply(undefined, arguments);\n  }\n\n  function loc(str, formats) {\n    if (!_emberRuntimeUtils.isArray(formats) || arguments.length > 2) {\n      formats = Array.prototype.slice.call(arguments, 1);\n    }\n\n    str = _emberRuntimeString_registry.get(str) || str;\n    return _fmt(str, formats);\n  }\n\n  function w(str) {\n    return str.split(/\\s+/);\n  }\n\n  function decamelize(str) {\n    return DECAMELIZE_CACHE.get(str);\n  }\n\n  function dasherize(str) {\n    return STRING_DASHERIZE_CACHE.get(str);\n  }\n\n  function camelize(str) {\n    return CAMELIZE_CACHE.get(str);\n  }\n\n  function classify(str) {\n    return CLASSIFY_CACHE.get(str);\n  }\n\n  function underscore(str) {\n    return UNDERSCORE_CACHE.get(str);\n  }\n\n  function capitalize(str) {\n    return CAPITALIZE_CACHE.get(str);\n  }\n\n  /**\n    Defines string helper methods including string formatting and localization.\n    Unless `EmberENV.EXTEND_PROTOTYPES.String` is `false` these methods will also be\n    added to the `String.prototype` as well.\n  \n    @class String\n    @namespace Ember\n    @static\n    @public\n  */\n  exports.default = {\n    /**\n      Apply formatting options to the string. This will look for occurrences\n      of \"%@\" in your string and substitute them with the arguments you pass into\n      this method. If you want to control the specific order of replacement,\n      you can add a number after the key as well to indicate which argument\n      you want to insert.\n       Ordered insertions are most useful when building loc strings where values\n      you need to insert may appear in different orders.\n       ```javascript\n      \"Hello %@ %@\".fmt('John', 'Doe');     // \"Hello John Doe\"\n      \"Hello %@2, %@1\".fmt('John', 'Doe');  // \"Hello Doe, John\"\n      ```\n       @method fmt\n      @param {String} str The string to format\n      @param {Array} formats An array of parameters to interpolate into string.\n      @return {String} formatted string\n      @public\n      @deprecated Use ES6 template strings instead: http://babeljs.io/docs/learn-es2015/#template-strings\n    */\n    fmt: fmt,\n\n    /**\n      Formats the passed string, but first looks up the string in the localized\n      strings hash. This is a convenient way to localize text. See\n      `Ember.String.fmt()` for more information on formatting.\n       Note that it is traditional but not required to prefix localized string\n      keys with an underscore or other character so you can easily identify\n      localized strings.\n       ```javascript\n      Ember.STRINGS = {\n        '_Hello World': 'Bonjour le monde',\n        '_Hello %@ %@': 'Bonjour %@ %@'\n      };\n       Ember.String.loc(\"_Hello World\");  // 'Bonjour le monde';\n      Ember.String.loc(\"_Hello %@ %@\", [\"John\", \"Smith\"]);  // \"Bonjour John Smith\";\n      ```\n       @method loc\n      @param {String} str The string to format\n      @param {Array} formats Optional array of parameters to interpolate into string.\n      @return {String} formatted string\n      @public\n    */\n    loc: loc,\n\n    /**\n      Splits a string into separate units separated by spaces, eliminating any\n      empty strings in the process. This is a convenience method for split that\n      is mostly useful when applied to the `String.prototype`.\n       ```javascript\n      Ember.String.w(\"alpha beta gamma\").forEach(function(key) {\n        console.log(key);\n      });\n       // > alpha\n      // > beta\n      // > gamma\n      ```\n       @method w\n      @param {String} str The string to split\n      @return {Array} array containing the split strings\n      @public\n    */\n    w: w,\n\n    /**\n      Converts a camelized string into all lower case separated by underscores.\n       ```javascript\n      'innerHTML'.decamelize();           // 'inner_html'\n      'action_name'.decamelize();        // 'action_name'\n      'css-class-name'.decamelize();     // 'css-class-name'\n      'my favorite items'.decamelize();  // 'my favorite items'\n      ```\n       @method decamelize\n      @param {String} str The string to decamelize.\n      @return {String} the decamelized string.\n      @public\n    */\n    decamelize: decamelize,\n\n    /**\n      Replaces underscores, spaces, or camelCase with dashes.\n       ```javascript\n      'innerHTML'.dasherize();          // 'inner-html'\n      'action_name'.dasherize();        // 'action-name'\n      'css-class-name'.dasherize();     // 'css-class-name'\n      'my favorite items'.dasherize();  // 'my-favorite-items'\n      'privateDocs/ownerInvoice'.dasherize(); // 'private-docs/owner-invoice'\n      ```\n       @method dasherize\n      @param {String} str The string to dasherize.\n      @return {String} the dasherized string.\n      @public\n    */\n    dasherize: dasherize,\n\n    /**\n      Returns the lowerCamelCase form of a string.\n       ```javascript\n      'innerHTML'.camelize();          // 'innerHTML'\n      'action_name'.camelize();        // 'actionName'\n      'css-class-name'.camelize();     // 'cssClassName'\n      'my favorite items'.camelize();  // 'myFavoriteItems'\n      'My Favorite Items'.camelize();  // 'myFavoriteItems'\n      'private-docs/owner-invoice'.camelize(); // 'privateDocs/ownerInvoice'\n      ```\n       @method camelize\n      @param {String} str The string to camelize.\n      @return {String} the camelized string.\n      @public\n    */\n    camelize: camelize,\n\n    /**\n      Returns the UpperCamelCase form of a string.\n       ```javascript\n      'innerHTML'.classify();          // 'InnerHTML'\n      'action_name'.classify();        // 'ActionName'\n      'css-class-name'.classify();     // 'CssClassName'\n      'my favorite items'.classify();  // 'MyFavoriteItems'\n      'private-docs/owner-invoice'.classify(); // 'PrivateDocs/OwnerInvoice'\n      ```\n       @method classify\n      @param {String} str the string to classify\n      @return {String} the classified string\n      @public\n    */\n    classify: classify,\n\n    /**\n      More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n      form of a string.\n       ```javascript\n      'innerHTML'.underscore();          // 'inner_html'\n      'action_name'.underscore();        // 'action_name'\n      'css-class-name'.underscore();     // 'css_class_name'\n      'my favorite items'.underscore();  // 'my_favorite_items'\n      'privateDocs/ownerInvoice'.underscore(); // 'private_docs/owner_invoice'\n      ```\n       @method underscore\n      @param {String} str The string to underscore.\n      @return {String} the underscored string.\n      @public\n    */\n    underscore: underscore,\n\n    /**\n      Returns the Capitalized form of a string\n       ```javascript\n      'innerHTML'.capitalize()         // 'InnerHTML'\n      'action_name'.capitalize()       // 'Action_name'\n      'css-class-name'.capitalize()    // 'Css-class-name'\n      'my favorite items'.capitalize() // 'My favorite items'\n      'privateDocs/ownerInvoice'.capitalize(); // 'PrivateDocs/ownerInvoice'\n      ```\n       @method capitalize\n      @param {String} str The string to capitalize.\n      @return {String} The capitalized string.\n      @public\n    */\n    capitalize: capitalize\n  };\n  exports.fmt = fmt;\n  exports.loc = loc;\n  exports.w = w;\n  exports.decamelize = decamelize;\n  exports.dasherize = dasherize;\n  exports.camelize = camelize;\n  exports.classify = classify;\n  exports.underscore = underscore;\n  exports.capitalize = capitalize;\n});\nenifed('ember-runtime/utils', ['exports', 'ember-runtime/mixins/array', 'ember-runtime/system/object'], function (exports, _emberRuntimeMixinsArray, _emberRuntimeSystemObject) {\n  'use strict';\n\n  exports.isArray = isArray;\n  exports.typeOf = typeOf;\n\n  // ........................................\n  // TYPING & ARRAY MESSAGING\n  //\n  var TYPE_MAP = {\n    '[object Boolean]': 'boolean',\n    '[object Number]': 'number',\n    '[object String]': 'string',\n    '[object Function]': 'function',\n    '[object Array]': 'array',\n    '[object Date]': 'date',\n    '[object RegExp]': 'regexp',\n    '[object Object]': 'object',\n    '[object FileList]': 'filelist'\n  };\n\n  var toString = Object.prototype.toString;\n\n  /**\n    Returns true if the passed object is an array or Array-like.\n  \n    Objects are considered Array-like if any of the following are true:\n  \n      - the object is a native Array\n      - the object has an objectAt property\n      - the object is an Object, and has a length property\n  \n    Unlike `Ember.typeOf` this method returns true even if the passed object is\n    not formally an array but appears to be array-like (i.e. implements `Ember.Array`)\n  \n    ```javascript\n    Ember.isArray();                                          // false\n    Ember.isArray([]);                                        // true\n    Ember.isArray(Ember.ArrayProxy.create({ content: [] }));  // true\n    ```\n  \n    @method isArray\n    @for Ember\n    @param {Object} obj The object to test\n    @return {Boolean} true if the passed object is an array or Array-like\n    @public\n  */\n\n  function isArray(obj) {\n    if (!obj || obj.setInterval) {\n      return false;\n    }\n    if (Array.isArray(obj)) {\n      return true;\n    }\n    if (_emberRuntimeMixinsArray.default.detect(obj)) {\n      return true;\n    }\n\n    var type = typeOf(obj);\n    if ('array' === type) {\n      return true;\n    }\n    if (obj.length !== undefined && 'object' === type) {\n      return true;\n    }\n    return false;\n  }\n\n  /**\n    Returns a consistent type for the passed object.\n  \n    Use this instead of the built-in `typeof` to get the type of an item.\n    It will return the same result across all browsers and includes a bit\n    more detail. Here is what will be returned:\n  \n        | Return Value  | Meaning                                              |\n        |---------------|------------------------------------------------------|\n        | 'string'      | String primitive or String object.                   |\n        | 'number'      | Number primitive or Number object.                   |\n        | 'boolean'     | Boolean primitive or Boolean object.                 |\n        | 'null'        | Null value                                           |\n        | 'undefined'   | Undefined value                                      |\n        | 'function'    | A function                                           |\n        | 'array'       | An instance of Array                                 |\n        | 'regexp'      | An instance of RegExp                                |\n        | 'date'        | An instance of Date                                  |\n        | 'filelist'    | An instance of FileList                              |\n        | 'class'       | An Ember class (created using Ember.Object.extend()) |\n        | 'instance'    | An Ember object instance                             |\n        | 'error'       | An instance of the Error object                      |\n        | 'object'      | A JavaScript object not inheriting from Ember.Object |\n  \n    Examples:\n  \n    ```javascript\n    Ember.typeOf();                       // 'undefined'\n    Ember.typeOf(null);                   // 'null'\n    Ember.typeOf(undefined);              // 'undefined'\n    Ember.typeOf('michael');              // 'string'\n    Ember.typeOf(new String('michael'));  // 'string'\n    Ember.typeOf(101);                    // 'number'\n    Ember.typeOf(new Number(101));        // 'number'\n    Ember.typeOf(true);                   // 'boolean'\n    Ember.typeOf(new Boolean(true));      // 'boolean'\n    Ember.typeOf(Ember.makeArray);        // 'function'\n    Ember.typeOf([1, 2, 90]);             // 'array'\n    Ember.typeOf(/abc/);                  // 'regexp'\n    Ember.typeOf(new Date());             // 'date'\n    Ember.typeOf(event.target.files);     // 'filelist'\n    Ember.typeOf(Ember.Object.extend());  // 'class'\n    Ember.typeOf(Ember.Object.create());  // 'instance'\n    Ember.typeOf(new Error('teamocil'));  // 'error'\n  \n    // 'normal' JavaScript object\n    Ember.typeOf({ a: 'b' });             // 'object'\n    ```\n  \n    @method typeOf\n    @for Ember\n    @param {Object} item the item to check\n    @return {String} the type\n    @public\n  */\n\n  function typeOf(item) {\n    if (item === null) {\n      return 'null';\n    }\n    if (item === undefined) {\n      return 'undefined';\n    }\n    var ret = TYPE_MAP[toString.call(item)] || 'object';\n\n    if (ret === 'function') {\n      if (_emberRuntimeSystemObject.default.detect(item)) {\n        ret = 'class';\n      }\n    } else if (ret === 'object') {\n      if (item instanceof Error) {\n        ret = 'error';\n      } else if (item instanceof _emberRuntimeSystemObject.default) {\n        ret = 'instance';\n      } else if (item instanceof Date) {\n        ret = 'date';\n      }\n    }\n\n    return ret;\n  }\n});\nenifed('ember-testing/adapters/adapter', ['exports', 'ember-runtime'], function (exports, _emberRuntime) {\n  'use strict';\n\n  function K() {\n    return this;\n  }\n\n  /**\n   @module ember\n   @submodule ember-testing\n  */\n\n  /**\n    The primary purpose of this class is to create hooks that can be implemented\n    by an adapter for various test frameworks.\n  \n    @class Adapter\n    @namespace Ember.Test\n    @public\n  */\n  exports.default = _emberRuntime.Object.extend({\n    /**\n      This callback will be called whenever an async operation is about to start.\n       Override this to call your framework's methods that handle async\n      operations.\n       @public\n      @method asyncStart\n    */\n    asyncStart: K,\n\n    /**\n      This callback will be called whenever an async operation has completed.\n       @public\n      @method asyncEnd\n    */\n    asyncEnd: K,\n\n    /**\n      Override this method with your testing framework's false assertion.\n      This function is called whenever an exception occurs causing the testing\n      promise to fail.\n       QUnit example:\n       ```javascript\n        exception: function(error) {\n          ok(false, error);\n        };\n      ```\n       @public\n      @method exception\n      @param {String} error The exception to be raised.\n    */\n    exception: function (error) {\n      throw error;\n    }\n  });\n});\nenifed('ember-testing/adapters/qunit', ['exports', 'ember-utils', 'ember-testing/adapters/adapter'], function (exports, _emberUtils, _emberTestingAdaptersAdapter) {\n  'use strict';\n\n  /**\n    This class implements the methods defined by Ember.Test.Adapter for the\n    QUnit testing framework.\n  \n    @class QUnitAdapter\n    @namespace Ember.Test\n    @extends Ember.Test.Adapter\n    @public\n  */\n  exports.default = _emberTestingAdaptersAdapter.default.extend({\n    asyncStart: function () {\n      QUnit.stop();\n    },\n    asyncEnd: function () {\n      QUnit.start();\n    },\n    exception: function (error) {\n      ok(false, _emberUtils.inspect(error));\n    }\n  });\n});\nenifed('ember-testing/events', ['exports', 'ember-views', 'ember-metal'], function (exports, _emberViews, _emberMetal) {\n  'use strict';\n\n  exports.focus = focus;\n  exports.fireEvent = fireEvent;\n\n  var DEFAULT_EVENT_OPTIONS = { canBubble: true, cancelable: true };\n  var KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup'];\n  var MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];\n\n  function focus(el) {\n    if (!el) {\n      return;\n    }\n    var $el = _emberViews.jQuery(el);\n    if ($el.is(':input, [contenteditable=true]')) {\n      var type = $el.prop('type');\n      if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {\n        _emberMetal.run(null, function () {\n          // Firefox does not trigger the `focusin` event if the window\n          // does not have focus. If the document doesn't have focus just\n          // use trigger('focusin') instead.\n\n          if (!document.hasFocus || document.hasFocus()) {\n            el.focus();\n          } else {\n            $el.trigger('focusin');\n          }\n        });\n      }\n    }\n  }\n\n  function fireEvent(element, type) {\n    var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n    if (!element) {\n      return;\n    }\n    var event = undefined;\n    if (KEYBOARD_EVENT_TYPES.indexOf(type) > -1) {\n      event = buildKeyboardEvent(type, options);\n    } else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) {\n      var rect = element.getBoundingClientRect();\n      var x = rect.left + 1;\n      var y = rect.top + 1;\n      var simulatedCoordinates = {\n        screenX: x + 5,\n        screenY: y + 95,\n        clientX: x,\n        clientY: y\n      };\n      event = buildMouseEvent(type, _emberViews.jQuery.extend(simulatedCoordinates, options));\n    } else {\n      event = buildBasicEvent(type, options);\n    }\n    element.dispatchEvent(event);\n  }\n\n  function buildBasicEvent(type) {\n    var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n    var event = document.createEvent('Events');\n    event.initEvent(type, true, true);\n    _emberViews.jQuery.extend(event, options);\n    return event;\n  }\n\n  function buildMouseEvent(type) {\n    var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n    var event = undefined;\n    try {\n      event = document.createEvent('MouseEvents');\n      var eventOpts = _emberViews.jQuery.extend({}, DEFAULT_EVENT_OPTIONS, options);\n      event.initMouseEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.detail, eventOpts.screenX, eventOpts.screenY, eventOpts.clientX, eventOpts.clientY, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.button, eventOpts.relatedTarget);\n    } catch (e) {\n      event = buildBasicEvent(type, options);\n    }\n    return event;\n  }\n\n  function buildKeyboardEvent(type) {\n    var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n    var event = undefined;\n    try {\n      event = document.createEvent('KeyEvents');\n      var eventOpts = _emberViews.jQuery.extend({}, DEFAULT_EVENT_OPTIONS, options);\n      event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);\n    } catch (e) {\n      event = buildBasicEvent(type, options);\n    }\n    return event;\n  }\n});\nenifed('ember-testing/ext/application', ['exports', 'ember-application', 'ember-testing/setup_for_testing', 'ember-testing/test/helpers', 'ember-testing/test/promise', 'ember-testing/test/run', 'ember-testing/test/on_inject_helpers', 'ember-testing/test/adapter'], function (exports, _emberApplication, _emberTestingSetup_for_testing, _emberTestingTestHelpers, _emberTestingTestPromise, _emberTestingTestRun, _emberTestingTestOn_inject_helpers, _emberTestingTestAdapter) {\n  'use strict';\n\n  _emberApplication.Application.reopen({\n    /**\n     This property contains the testing helpers for the current application. These\n     are created once you call `injectTestHelpers` on your `Ember.Application`\n     instance. The included helpers are also available on the `window` object by\n     default, but can be used from this object on the individual application also.\n       @property testHelpers\n      @type {Object}\n      @default {}\n      @public\n    */\n    testHelpers: {},\n\n    /**\n     This property will contain the original methods that were registered\n     on the `helperContainer` before `injectTestHelpers` is called.\n      When `removeTestHelpers` is called, these methods are restored to the\n     `helperContainer`.\n       @property originalMethods\n      @type {Object}\n      @default {}\n      @private\n      @since 1.3.0\n    */\n    originalMethods: {},\n\n    /**\n    This property indicates whether or not this application is currently in\n    testing mode. This is set when `setupForTesting` is called on the current\n    application.\n     @property testing\n    @type {Boolean}\n    @default false\n    @since 1.3.0\n    @public\n    */\n    testing: false,\n\n    /**\n      This hook defers the readiness of the application, so that you can start\n      the app when your tests are ready to run. It also sets the router's\n      location to 'none', so that the window's location will not be modified\n      (preventing both accidental leaking of state between tests and interference\n      with your testing framework).\n       Example:\n       ```\n      App.setupForTesting();\n      ```\n       @method setupForTesting\n      @public\n    */\n    setupForTesting: function () {\n      _emberTestingSetup_for_testing.default();\n\n      this.testing = true;\n\n      this.Router.reopen({\n        location: 'none'\n      });\n    },\n\n    /**\n      This will be used as the container to inject the test helpers into. By\n      default the helpers are injected into `window`.\n       @property helperContainer\n      @type {Object} The object to be used for test helpers.\n      @default window\n      @since 1.2.0\n      @private\n    */\n    helperContainer: null,\n\n    /**\n      This injects the test helpers into the `helperContainer` object. If an object is provided\n      it will be used as the helperContainer. If `helperContainer` is not set it will default\n      to `window`. If a function of the same name has already been defined it will be cached\n      (so that it can be reset if the helper is removed with `unregisterHelper` or\n      `removeTestHelpers`).\n       Any callbacks registered with `onInjectHelpers` will be called once the\n      helpers have been injected.\n       Example:\n      ```\n      App.injectTestHelpers();\n      ```\n       @method injectTestHelpers\n      @public\n    */\n    injectTestHelpers: function (helperContainer) {\n      if (helperContainer) {\n        this.helperContainer = helperContainer;\n      } else {\n        this.helperContainer = window;\n      }\n\n      this.reopen({\n        willDestroy: function () {\n          this._super.apply(this, arguments);\n          this.removeTestHelpers();\n        }\n      });\n\n      this.testHelpers = {};\n      for (var _name in _emberTestingTestHelpers.helpers) {\n        this.originalMethods[_name] = this.helperContainer[_name];\n        this.testHelpers[_name] = this.helperContainer[_name] = helper(this, _name);\n        protoWrap(_emberTestingTestPromise.default.prototype, _name, helper(this, _name), _emberTestingTestHelpers.helpers[_name].meta.wait);\n      }\n\n      _emberTestingTestOn_inject_helpers.invokeInjectHelpersCallbacks(this);\n    },\n\n    /**\n      This removes all helpers that have been registered, and resets and functions\n      that were overridden by the helpers.\n       Example:\n       ```javascript\n      App.removeTestHelpers();\n      ```\n       @public\n      @method removeTestHelpers\n    */\n    removeTestHelpers: function () {\n      if (!this.helperContainer) {\n        return;\n      }\n\n      for (var _name2 in _emberTestingTestHelpers.helpers) {\n        this.helperContainer[_name2] = this.originalMethods[_name2];\n        delete _emberTestingTestPromise.default.prototype[_name2];\n        delete this.testHelpers[_name2];\n        delete this.originalMethods[_name2];\n      }\n    }\n  });\n\n  // This method is no longer needed\n  // But still here for backwards compatibility\n  // of helper chaining\n  function protoWrap(proto, name, callback, isAsync) {\n    proto[name] = function () {\n      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      if (isAsync) {\n        return callback.apply(this, args);\n      } else {\n        return this.then(function () {\n          return callback.apply(this, args);\n        });\n      }\n    };\n  }\n\n  function helper(app, name) {\n    var fn = _emberTestingTestHelpers.helpers[name].method;\n    var meta = _emberTestingTestHelpers.helpers[name].meta;\n    if (!meta.wait) {\n      return function () {\n        for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n          args[_key2] = arguments[_key2];\n        }\n\n        return fn.apply(app, [app].concat(args));\n      };\n    }\n\n    return function () {\n      for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n        args[_key3] = arguments[_key3];\n      }\n\n      var lastPromise = _emberTestingTestRun.default(function () {\n        return _emberTestingTestPromise.resolve(_emberTestingTestPromise.getLastPromise());\n      });\n\n      // wait for last helper's promise to resolve and then\n      // execute. To be safe, we need to tell the adapter we're going\n      // asynchronous here, because fn may not be invoked before we\n      // return.\n      _emberTestingTestAdapter.asyncStart();\n      return lastPromise.then(function () {\n        return fn.apply(app, [app].concat(args));\n      }).finally(_emberTestingTestAdapter.asyncEnd);\n    };\n  }\n});\nenifed('ember-testing/ext/rsvp', ['exports', 'ember-runtime', 'ember-metal', 'ember-debug', 'ember-testing/test/adapter'], function (exports, _emberRuntime, _emberMetal, _emberDebug, _emberTestingTestAdapter) {\n  'use strict';\n\n  _emberRuntime.RSVP.configure('async', function (callback, promise) {\n    // if schedule will cause autorun, we need to inform adapter\n    if (_emberDebug.isTesting() && !_emberMetal.run.backburner.currentInstance) {\n      _emberTestingTestAdapter.asyncStart();\n      _emberMetal.run.backburner.schedule('actions', function () {\n        _emberTestingTestAdapter.asyncEnd();\n        callback(promise);\n      });\n    } else {\n      _emberMetal.run.backburner.schedule('actions', function () {\n        return callback(promise);\n      });\n    }\n  });\n\n  exports.default = _emberRuntime.RSVP;\n});\nenifed('ember-testing/helpers', ['exports', 'ember-debug', 'ember-testing/test/helpers', 'ember-testing/helpers/and_then', 'ember-testing/helpers/click', 'ember-testing/helpers/current_path', 'ember-testing/helpers/current_route_name', 'ember-testing/helpers/current_url', 'ember-testing/helpers/fill_in', 'ember-testing/helpers/find', 'ember-testing/helpers/find_with_assert', 'ember-testing/helpers/key_event', 'ember-testing/helpers/pause_test', 'ember-testing/helpers/trigger_event', 'ember-testing/helpers/visit', 'ember-testing/helpers/wait'], function (exports, _emberDebug, _emberTestingTestHelpers, _emberTestingHelpersAnd_then, _emberTestingHelpersClick, _emberTestingHelpersCurrent_path, _emberTestingHelpersCurrent_route_name, _emberTestingHelpersCurrent_url, _emberTestingHelpersFill_in, _emberTestingHelpersFind, _emberTestingHelpersFind_with_assert, _emberTestingHelpersKey_event, _emberTestingHelpersPause_test, _emberTestingHelpersTrigger_event, _emberTestingHelpersVisit, _emberTestingHelpersWait) {\n  'use strict';\n\n  _emberTestingTestHelpers.registerAsyncHelper('visit', _emberTestingHelpersVisit.default);\n  _emberTestingTestHelpers.registerAsyncHelper('click', _emberTestingHelpersClick.default);\n  _emberTestingTestHelpers.registerAsyncHelper('keyEvent', _emberTestingHelpersKey_event.default);\n  _emberTestingTestHelpers.registerAsyncHelper('fillIn', _emberTestingHelpersFill_in.default);\n  _emberTestingTestHelpers.registerAsyncHelper('wait', _emberTestingHelpersWait.default);\n  _emberTestingTestHelpers.registerAsyncHelper('andThen', _emberTestingHelpersAnd_then.default);\n  _emberTestingTestHelpers.registerAsyncHelper('pauseTest', _emberTestingHelpersPause_test.pauseTest);\n  _emberTestingTestHelpers.registerAsyncHelper('triggerEvent', _emberTestingHelpersTrigger_event.default);\n\n  _emberTestingTestHelpers.registerHelper('find', _emberTestingHelpersFind.default);\n  _emberTestingTestHelpers.registerHelper('findWithAssert', _emberTestingHelpersFind_with_assert.default);\n  _emberTestingTestHelpers.registerHelper('currentRouteName', _emberTestingHelpersCurrent_route_name.default);\n  _emberTestingTestHelpers.registerHelper('currentPath', _emberTestingHelpersCurrent_path.default);\n  _emberTestingTestHelpers.registerHelper('currentURL', _emberTestingHelpersCurrent_url.default);\n\n  if (true) {\n    _emberTestingTestHelpers.registerHelper('resumeTest', _emberTestingHelpersPause_test.resumeTest);\n  }\n});\nenifed(\"ember-testing/helpers/and_then\", [\"exports\"], function (exports) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  \"use strict\";\n\n  exports.default = andThen;\n\n  function andThen(app, callback) {\n    return app.testHelpers.wait(callback(app));\n  }\n});\nenifed('ember-testing/helpers/click', ['exports', 'ember-testing/events'], function (exports, _emberTestingEvents) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = click;\n\n  /**\n    Clicks an element and triggers any actions triggered by the element's `click`\n    event.\n  \n    Example:\n  \n    ```javascript\n    click('.some-jQuery-selector').then(function() {\n      // assert something\n    });\n    ```\n  \n    @method click\n    @param {String} selector jQuery selector for finding element on the DOM\n    @param {Object} context A DOM Element, Document, or jQuery to use as context\n    @return {RSVP.Promise}\n    @public\n  */\n\n  function click(app, selector, context) {\n    var $el = app.testHelpers.findWithAssert(selector, context);\n    var el = $el[0];\n\n    _emberTestingEvents.fireEvent(el, 'mousedown');\n\n    _emberTestingEvents.focus(el);\n\n    _emberTestingEvents.fireEvent(el, 'mouseup');\n    _emberTestingEvents.fireEvent(el, 'click');\n\n    return app.testHelpers.wait();\n  }\n});\nenifed('ember-testing/helpers/current_path', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = currentPath;\n\n  /**\n    Returns the current path.\n  \n  Example:\n  \n  ```javascript\n  function validateURL() {\n    equal(currentPath(), 'some.path.index', \"correct path was transitioned into.\");\n  }\n  \n  click('#some-link-id').then(validateURL);\n  ```\n  \n  @method currentPath\n  @return {Object} The currently active path.\n  @since 1.5.0\n  @public\n  */\n\n  function currentPath(app) {\n    var routingService = app.__container__.lookup('service:-routing');\n    return _emberMetal.get(routingService, 'currentPath');\n  }\n});\nenifed('ember-testing/helpers/current_route_name', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = currentRouteName;\n\n  /**\n    Returns the currently active route name.\n  Example:\n  ```javascript\n  function validateRouteName() {\n    equal(currentRouteName(), 'some.path', \"correct route was transitioned into.\");\n  }\n  visit('/some/path').then(validateRouteName)\n  ```\n  @method currentRouteName\n  @return {Object} The name of the currently active route.\n  @since 1.5.0\n  @public\n  */\n\n  function currentRouteName(app) {\n    var routingService = app.__container__.lookup('service:-routing');\n    return _emberMetal.get(routingService, 'currentRouteName');\n  }\n});\nenifed('ember-testing/helpers/current_url', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = currentURL;\n\n  /**\n    Returns the current URL.\n  \n  Example:\n  \n  ```javascript\n  function validateURL() {\n    equal(currentURL(), '/some/path', \"correct URL was transitioned into.\");\n  }\n  \n  click('#some-link-id').then(validateURL);\n  ```\n  \n  @method currentURL\n  @return {Object} The currently active URL.\n  @since 1.5.0\n  @public\n  */\n\n  function currentURL(app) {\n    var router = app.__container__.lookup('router:main');\n    return _emberMetal.get(router, 'location').getURL();\n  }\n});\nenifed('ember-testing/helpers/fill_in', ['exports', 'ember-testing/events'], function (exports, _emberTestingEvents) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = fillIn;\n\n  /**\n    Fills in an input element with some text.\n  \n    Example:\n  \n    ```javascript\n    fillIn('#email', 'you@example.com').then(function() {\n      // assert something\n    });\n    ```\n  \n    @method fillIn\n    @param {String} selector jQuery selector finding an input element on the DOM\n    to fill text with\n    @param {String} text text to place inside the input element\n    @return {RSVP.Promise}\n    @public\n  */\n\n  function fillIn(app, selector, contextOrText, text) {\n    var $el = undefined,\n        el = undefined,\n        context = undefined;\n    if (typeof text === 'undefined') {\n      text = contextOrText;\n    } else {\n      context = contextOrText;\n    }\n    $el = app.testHelpers.findWithAssert(selector, context);\n    el = $el[0];\n    _emberTestingEvents.focus(el);\n\n    $el.eq(0).val(text);\n    _emberTestingEvents.fireEvent(el, 'input');\n    _emberTestingEvents.fireEvent(el, 'change');\n\n    return app.testHelpers.wait();\n  }\n});\nenifed('ember-testing/helpers/find', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = find;\n\n  /**\n    Finds an element in the context of the app's container element. A simple alias\n    for `app.$(selector)`.\n  \n    Example:\n  \n    ```javascript\n    var $el = find('.my-selector');\n    ```\n  \n    With the `context` param:\n  \n    ```javascript\n    var $el = find('.my-selector', '.parent-element-class');\n    ```\n  \n    @method find\n    @param {String} selector jQuery string selector for element lookup\n    @param {String} [context] (optional) jQuery selector that will limit the selector\n                              argument to find only within the context's children\n    @return {Object} jQuery object representing the results of the query\n    @public\n  */\n\n  function find(app, selector, context) {\n    var $el = undefined;\n    context = context || _emberMetal.get(app, 'rootElement');\n    $el = app.$(selector, context);\n    return $el;\n  }\n});\nenifed('ember-testing/helpers/find_with_assert', ['exports'], function (exports) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  /**\n    Like `find`, but throws an error if the element selector returns no results.\n  \n    Example:\n  \n    ```javascript\n    var $el = findWithAssert('.doesnt-exist'); // throws error\n    ```\n  \n    With the `context` param:\n  \n    ```javascript\n    var $el = findWithAssert('.selector-id', '.parent-element-class'); // assert will pass\n    ```\n  \n    @method findWithAssert\n    @param {String} selector jQuery selector string for finding an element within\n    the DOM\n    @param {String} [context] (optional) jQuery selector that will limit the\n    selector argument to find only within the context's children\n    @return {Object} jQuery object representing the results of the query\n    @throws {Error} throws error if jQuery object returned has a length of 0\n    @public\n  */\n  'use strict';\n\n  exports.default = findWithAssert;\n\n  function findWithAssert(app, selector, context) {\n    var $el = app.testHelpers.find(selector, context);\n    if ($el.length === 0) {\n      throw new Error('Element ' + selector + ' not found.');\n    }\n    return $el;\n  }\n});\nenifed('ember-testing/helpers/key_event', ['exports'], function (exports) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  /**\n    Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode\n    Example:\n    ```javascript\n    keyEvent('.some-jQuery-selector', 'keypress', 13).then(function() {\n     // assert something\n    });\n    ```\n    @method keyEvent\n    @param {String} selector jQuery selector for finding element on the DOM\n    @param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup`\n    @param {Number} keyCode the keyCode of the simulated key event\n    @return {RSVP.Promise}\n    @since 1.5.0\n    @public\n  */\n  'use strict';\n\n  exports.default = keyEvent;\n\n  function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {\n    var context = undefined,\n        type = undefined;\n\n    if (typeof keyCode === 'undefined') {\n      context = null;\n      keyCode = typeOrKeyCode;\n      type = contextOrType;\n    } else {\n      context = contextOrType;\n      type = typeOrKeyCode;\n    }\n\n    return app.testHelpers.triggerEvent(selector, context, type, { keyCode: keyCode, which: keyCode });\n  }\n});\nenifed('ember-testing/helpers/pause_test', ['exports', 'ember-runtime', 'ember-console', 'ember-debug'], function (exports, _emberRuntime, _emberConsole, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.resumeTest = resumeTest;\n  exports.pauseTest = pauseTest;\n\n  var resume = undefined;\n\n  /**\n   Resumes a test paused by `pauseTest`.\n  \n   @method resumeTest\n   @return {void}\n   @public\n  */\n\n  function resumeTest() {\n    _emberDebug.assert('Testing has not been paused. There is nothing to resume.', resume);\n    resume();\n    resume = undefined;\n  }\n\n  /**\n   Pauses the current test - this is useful for debugging while testing or for test-driving.\n   It allows you to inspect the state of your application at any point.\n   Example (The test will pause before clicking the button):\n  \n   ```javascript\n   visit('/')\n   return pauseTest();\n   click('.btn');\n   ```\n   @since 1.9.0\n   @method pauseTest\n   @return {Object} A promise that will never resolve\n   @public\n  */\n\n  function pauseTest() {\n    if (true) {\n      _emberConsole.default.info('Testing paused. Use `resumeTest()` to continue.');\n    }\n\n    return new _emberRuntime.RSVP.Promise(function (resolve) {\n      if (true) {\n        resume = resolve;\n      }\n    }, 'TestAdapter paused promise');\n  }\n});\nenifed('ember-testing/helpers/trigger_event', ['exports', 'ember-testing/events'], function (exports, _emberTestingEvents) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = triggerEvent;\n\n  /**\n    Triggers the given DOM event on the element identified by the provided selector.\n    Example:\n    ```javascript\n    triggerEvent('#some-elem-id', 'blur');\n    ```\n    This is actually used internally by the `keyEvent` helper like so:\n    ```javascript\n    triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });\n    ```\n   @method triggerEvent\n   @param {String} selector jQuery selector for finding element on the DOM\n   @param {String} [context] jQuery selector that will limit the selector\n                             argument to find only within the context's children\n   @param {String} type The event type to be triggered.\n   @param {Object} [options] The options to be passed to jQuery.Event.\n   @return {RSVP.Promise}\n   @since 1.5.0\n   @public\n  */\n\n  function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) {\n    var arity = arguments.length;\n    var context = undefined,\n        type = undefined,\n        options = undefined;\n\n    if (arity === 3) {\n      // context and options are optional, so this is\n      // app, selector, type\n      context = null;\n      type = contextOrType;\n      options = {};\n    } else if (arity === 4) {\n      // context and options are optional, so this is\n      if (typeof typeOrOptions === 'object') {\n        // either\n        // app, selector, type, options\n        context = null;\n        type = contextOrType;\n        options = typeOrOptions;\n      } else {\n        // or\n        // app, selector, context, type\n        context = contextOrType;\n        type = typeOrOptions;\n        options = {};\n      }\n    } else {\n      context = contextOrType;\n      type = typeOrOptions;\n      options = possibleOptions;\n    }\n\n    var $el = app.testHelpers.findWithAssert(selector, context);\n    var el = $el[0];\n\n    _emberTestingEvents.fireEvent(el, type, options);\n\n    return app.testHelpers.wait();\n  }\n});\nenifed('ember-testing/helpers/visit', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = visit;\n\n  /**\n    Loads a route, sets up any controllers, and renders any templates associated\n    with the route as though a real user had triggered the route change while\n    using your app.\n  \n    Example:\n  \n    ```javascript\n    visit('posts/index').then(function() {\n      // assert something\n    });\n    ```\n  \n    @method visit\n    @param {String} url the name of the route\n    @return {RSVP.Promise}\n    @public\n  */\n\n  function visit(app, url) {\n    var router = app.__container__.lookup('router:main');\n    var shouldHandleURL = false;\n\n    app.boot().then(function () {\n      router.location.setURL(url);\n\n      if (shouldHandleURL) {\n        _emberMetal.run(app.__deprecatedInstance__, 'handleURL', url);\n      }\n    });\n\n    if (app._readinessDeferrals > 0) {\n      router['initialURL'] = url;\n      _emberMetal.run(app, 'advanceReadiness');\n      delete router['initialURL'];\n    } else {\n      shouldHandleURL = true;\n    }\n\n    return app.testHelpers.wait();\n  }\n});\nenifed('ember-testing/helpers/wait', ['exports', 'ember-testing/test/waiters', 'ember-runtime', 'ember-metal', 'ember-testing/test/pending_requests'], function (exports, _emberTestingTestWaiters, _emberRuntime, _emberMetal, _emberTestingTestPending_requests) {\n  /**\n  @module ember\n  @submodule ember-testing\n  */\n  'use strict';\n\n  exports.default = wait;\n\n  /**\n    Causes the run loop to process any pending events. This is used to ensure that\n    any async operations from other helpers (or your assertions) have been processed.\n  \n    This is most often used as the return value for the helper functions (see 'click',\n    'fillIn','visit',etc). However, there is a method to register a test helper which\n    utilizes this method without the need to actually call `wait()` in your helpers.\n  \n    The `wait` helper is built into `registerAsyncHelper` by default. You will not need\n    to `return app.testHelpers.wait();` - the wait behavior is provided for you.\n  \n    Example:\n  \n    ```javascript\n    Ember.Test.registerAsyncHelper('loginUser', function(app, username, password) {\n      visit('secured/path/here')\n        .fillIn('#username', username)\n        .fillIn('#password', password)\n        .click('.submit');\n    });\n  \n    @method wait\n    @param {Object} value The value to be returned.\n    @return {RSVP.Promise}\n    @public\n    @since 1.0.0\n  */\n\n  function wait(app, value) {\n    return new _emberRuntime.RSVP.Promise(function (resolve) {\n      var router = app.__container__.lookup('router:main');\n\n      // Every 10ms, poll for the async thing to have finished\n      var watcher = setInterval(function () {\n        // 1. If the router is loading, keep polling\n        var routerIsLoading = router._routerMicrolib && !!router._routerMicrolib.activeTransition;\n        if (routerIsLoading) {\n          return;\n        }\n\n        // 2. If there are pending Ajax requests, keep polling\n        if (_emberTestingTestPending_requests.pendingRequests()) {\n          return;\n        }\n\n        // 3. If there are scheduled timers or we are inside of a run loop, keep polling\n        if (_emberMetal.run.hasScheduledTimers() || _emberMetal.run.currentRunLoop) {\n          return;\n        }\n\n        if (_emberTestingTestWaiters.checkWaiters()) {\n          return;\n        }\n\n        // Stop polling\n        clearInterval(watcher);\n\n        // Synchronously resolve the promise\n        _emberMetal.run(null, resolve, value);\n      }, 10);\n    });\n  }\n});\nenifed('ember-testing/index', ['exports', 'ember-testing/support', 'ember-testing/ext/application', 'ember-testing/ext/rsvp', 'ember-testing/helpers', 'ember-testing/initializers', 'ember-testing/test', 'ember-testing/adapters/adapter', 'ember-testing/setup_for_testing', 'ember-testing/adapters/qunit'], function (exports, _emberTestingSupport, _emberTestingExtApplication, _emberTestingExtRsvp, _emberTestingHelpers, _emberTestingInitializers, _emberTestingTest, _emberTestingAdaptersAdapter, _emberTestingSetup_for_testing, _emberTestingAdaptersQunit) {\n  'use strict';\n\n  exports.Test = _emberTestingTest.default;\n  exports.Adapter = _emberTestingAdaptersAdapter.default;\n  exports.setupForTesting = _emberTestingSetup_for_testing.default;\n  exports.QUnitAdapter = _emberTestingAdaptersQunit.default;\n});\n// to handle various edge cases\n// setup RSVP + run loop integration\n// adds helpers to helpers object in Test\n// to setup initializer\n\n/**\n  @module ember\n  @submodule ember-testing\n*/\nenifed('ember-testing/initializers', ['exports', 'ember-runtime'], function (exports, _emberRuntime) {\n  'use strict';\n\n  var name = 'deferReadiness in `testing` mode';\n\n  _emberRuntime.onLoad('Ember.Application', function (Application) {\n    if (!Application.initializers[name]) {\n      Application.initializer({\n        name: name,\n\n        initialize: function (application) {\n          if (application.testing) {\n            application.deferReadiness();\n          }\n        }\n      });\n    }\n  });\n});\nenifed('ember-testing/setup_for_testing', ['exports', 'ember-debug', 'ember-views', 'ember-testing/test/adapter', 'ember-testing/test/pending_requests', 'ember-testing/adapters/adapter', 'ember-testing/adapters/qunit'], function (exports, _emberDebug, _emberViews, _emberTestingTestAdapter, _emberTestingTestPending_requests, _emberTestingAdaptersAdapter, _emberTestingAdaptersQunit) {\n  /* global self */\n\n  'use strict';\n\n  exports.default = setupForTesting;\n\n  /**\n    Sets Ember up for testing. This is useful to perform\n    basic setup steps in order to unit test.\n  \n    Use `App.setupForTesting` to perform integration tests (full\n    application testing).\n  \n    @method setupForTesting\n    @namespace Ember\n    @since 1.5.0\n    @private\n  */\n\n  function setupForTesting() {\n    _emberDebug.setTesting(true);\n\n    var adapter = _emberTestingTestAdapter.getAdapter();\n    // if adapter is not manually set default to QUnit\n    if (!adapter) {\n      _emberTestingTestAdapter.setAdapter(typeof self.QUnit === 'undefined' ? new _emberTestingAdaptersAdapter.default() : new _emberTestingAdaptersQunit.default());\n    }\n\n    if (_emberViews.jQuery) {\n      _emberViews.jQuery(document).off('ajaxSend', _emberTestingTestPending_requests.incrementPendingRequests);\n      _emberViews.jQuery(document).off('ajaxComplete', _emberTestingTestPending_requests.decrementPendingRequests);\n\n      _emberTestingTestPending_requests.clearPendingRequests();\n\n      _emberViews.jQuery(document).on('ajaxSend', _emberTestingTestPending_requests.incrementPendingRequests);\n      _emberViews.jQuery(document).on('ajaxComplete', _emberTestingTestPending_requests.decrementPendingRequests);\n    }\n  }\n});\nenifed('ember-testing/support', ['exports', 'ember-debug', 'ember-views', 'ember-environment'], function (exports, _emberDebug, _emberViews, _emberEnvironment) {\n  'use strict';\n\n  /**\n    @module ember\n    @submodule ember-testing\n  */\n\n  var $ = _emberViews.jQuery;\n\n  /**\n    This method creates a checkbox and triggers the click event to fire the\n    passed in handler. It is used to correct for a bug in older versions\n    of jQuery (e.g 1.8.3).\n  \n    @private\n    @method testCheckboxClick\n  */\n  function testCheckboxClick(handler) {\n    var input = document.createElement('input');\n    $(input).attr('type', 'checkbox').css({ position: 'absolute', left: '-1000px', top: '-1000px' }).appendTo('body').on('click', handler).trigger('click').remove();\n  }\n\n  if (_emberEnvironment.environment.hasDOM && typeof $ === 'function') {\n    $(function () {\n      /*\n        Determine whether a checkbox checked using jQuery's \"click\" method will have\n        the correct value for its checked property.\n         If we determine that the current jQuery version exhibits this behavior,\n        patch it to work correctly as in the commit for the actual fix:\n        https://github.com/jquery/jquery/commit/1fb2f92.\n      */\n      testCheckboxClick(function () {\n        if (!this.checked && !$.event.special.click) {\n          $.event.special.click = {\n            // For checkbox, fire native event so checked state will be right\n            trigger: function () {\n              if ($.nodeName(this, 'input') && this.type === 'checkbox' && this.click) {\n                this.click();\n                return false;\n              }\n            }\n          };\n        }\n      });\n\n      // Try again to verify that the patch took effect or blow up.\n      testCheckboxClick(function () {\n        _emberDebug.warn('clicked checkboxes should be checked! the jQuery patch didn\\'t work', this.checked, { id: 'ember-testing.test-checkbox-click' });\n      });\n    });\n  }\n});\nenifed('ember-testing/test', ['exports', 'ember-testing/test/helpers', 'ember-testing/test/on_inject_helpers', 'ember-testing/test/promise', 'ember-testing/test/waiters', 'ember-testing/test/adapter'], function (exports, _emberTestingTestHelpers, _emberTestingTestOn_inject_helpers, _emberTestingTestPromise, _emberTestingTestWaiters, _emberTestingTestAdapter) {\n  /**\n    @module ember\n    @submodule ember-testing\n  */\n  'use strict';\n\n  /**\n    This is a container for an assortment of testing related functionality:\n  \n    * Choose your default test adapter (for your framework of choice).\n    * Register/Unregister additional test helpers.\n    * Setup callbacks to be fired when the test helpers are injected into\n      your application.\n  \n    @class Test\n    @namespace Ember\n    @public\n  */\n  var Test = {\n    /**\n      Hash containing all known test helpers.\n       @property _helpers\n      @private\n      @since 1.7.0\n    */\n    _helpers: _emberTestingTestHelpers.helpers,\n\n    registerHelper: _emberTestingTestHelpers.registerHelper,\n    registerAsyncHelper: _emberTestingTestHelpers.registerAsyncHelper,\n    unregisterHelper: _emberTestingTestHelpers.unregisterHelper,\n    onInjectHelpers: _emberTestingTestOn_inject_helpers.onInjectHelpers,\n    Promise: _emberTestingTestPromise.default,\n    promise: _emberTestingTestPromise.promise,\n    resolve: _emberTestingTestPromise.resolve,\n    registerWaiter: _emberTestingTestWaiters.registerWaiter,\n    unregisterWaiter: _emberTestingTestWaiters.unregisterWaiter,\n    checkWaiters: _emberTestingTestWaiters.checkWaiters\n  };\n\n  /**\n   Used to allow ember-testing to communicate with a specific testing\n   framework.\n  \n   You can manually set it before calling `App.setupForTesting()`.\n  \n   Example:\n  \n   ```javascript\n   Ember.Test.adapter = MyCustomAdapter.create()\n   ```\n  \n   If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`.\n  \n   @public\n   @for Ember.Test\n   @property adapter\n   @type {Class} The adapter to be used.\n   @default Ember.Test.QUnitAdapter\n  */\n  Object.defineProperty(Test, 'adapter', {\n    get: _emberTestingTestAdapter.getAdapter,\n    set: _emberTestingTestAdapter.setAdapter\n  });\n\n  Object.defineProperty(Test, 'waiters', {\n    get: _emberTestingTestWaiters.generateDeprecatedWaitersArray\n  });\n\n  exports.default = Test;\n});\nenifed('ember-testing/test/adapter', ['exports', 'ember-console', 'ember-metal'], function (exports, _emberConsole, _emberMetal) {\n  'use strict';\n\n  exports.getAdapter = getAdapter;\n  exports.setAdapter = setAdapter;\n  exports.asyncStart = asyncStart;\n  exports.asyncEnd = asyncEnd;\n\n  var adapter = undefined;\n\n  function getAdapter() {\n    return adapter;\n  }\n\n  function setAdapter(value) {\n    adapter = value;\n    if (value) {\n      _emberMetal.setDispatchOverride(adapterDispatch);\n    } else {\n      _emberMetal.setDispatchOverride(null);\n    }\n  }\n\n  function asyncStart() {\n    if (adapter) {\n      adapter.asyncStart();\n    }\n  }\n\n  function asyncEnd() {\n    if (adapter) {\n      adapter.asyncEnd();\n    }\n  }\n\n  function adapterDispatch(error) {\n    adapter.exception(error);\n    _emberConsole.default.error(error.stack);\n  }\n});\nenifed('ember-testing/test/helpers', ['exports', 'ember-testing/test/promise'], function (exports, _emberTestingTestPromise) {\n  'use strict';\n\n  exports.registerHelper = registerHelper;\n  exports.registerAsyncHelper = registerAsyncHelper;\n  exports.unregisterHelper = unregisterHelper;\n  var helpers = {};\n\n  exports.helpers = helpers;\n  /**\n    `registerHelper` is used to register a test helper that will be injected\n    when `App.injectTestHelpers` is called.\n  \n    The helper method will always be called with the current Application as\n    the first parameter.\n  \n    For example:\n  \n    ```javascript\n    Ember.Test.registerHelper('boot', function(app) {\n      Ember.run(app, app.advanceReadiness);\n    });\n    ```\n  \n    This helper can later be called without arguments because it will be\n    called with `app` as the first parameter.\n  \n    ```javascript\n    App = Ember.Application.create();\n    App.injectTestHelpers();\n    boot();\n    ```\n  \n    @public\n    @for Ember.Test\n    @method registerHelper\n    @param {String} name The name of the helper method to add.\n    @param {Function} helperMethod\n    @param options {Object}\n  */\n\n  function registerHelper(name, helperMethod) {\n    helpers[name] = {\n      method: helperMethod,\n      meta: { wait: false }\n    };\n  }\n\n  /**\n    `registerAsyncHelper` is used to register an async test helper that will be injected\n    when `App.injectTestHelpers` is called.\n  \n    The helper method will always be called with the current Application as\n    the first parameter.\n  \n    For example:\n  \n    ```javascript\n    Ember.Test.registerAsyncHelper('boot', function(app) {\n      Ember.run(app, app.advanceReadiness);\n    });\n    ```\n  \n    The advantage of an async helper is that it will not run\n    until the last async helper has completed.  All async helpers\n    after it will wait for it complete before running.\n  \n  \n    For example:\n  \n    ```javascript\n    Ember.Test.registerAsyncHelper('deletePost', function(app, postId) {\n      click('.delete-' + postId);\n    });\n  \n    // ... in your test\n    visit('/post/2');\n    deletePost(2);\n    visit('/post/3');\n    deletePost(3);\n    ```\n  \n    @public\n    @for Ember.Test\n    @method registerAsyncHelper\n    @param {String} name The name of the helper method to add.\n    @param {Function} helperMethod\n    @since 1.2.0\n  */\n\n  function registerAsyncHelper(name, helperMethod) {\n    helpers[name] = {\n      method: helperMethod,\n      meta: { wait: true }\n    };\n  }\n\n  /**\n    Remove a previously added helper method.\n  \n    Example:\n  \n    ```javascript\n    Ember.Test.unregisterHelper('wait');\n    ```\n  \n    @public\n    @method unregisterHelper\n    @param {String} name The helper to remove.\n  */\n\n  function unregisterHelper(name) {\n    delete helpers[name];\n    delete _emberTestingTestPromise.default.prototype[name];\n  }\n});\nenifed(\"ember-testing/test/on_inject_helpers\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.onInjectHelpers = onInjectHelpers;\n  exports.invokeInjectHelpersCallbacks = invokeInjectHelpersCallbacks;\n  var callbacks = [];\n\n  exports.callbacks = callbacks;\n  /**\n    Used to register callbacks to be fired whenever `App.injectTestHelpers`\n    is called.\n  \n    The callback will receive the current application as an argument.\n  \n    Example:\n  \n    ```javascript\n    Ember.Test.onInjectHelpers(function() {\n      Ember.$(document).ajaxSend(function() {\n        Test.pendingRequests++;\n      });\n  \n      Ember.$(document).ajaxComplete(function() {\n        Test.pendingRequests--;\n      });\n    });\n    ```\n  \n    @public\n    @for Ember.Test\n    @method onInjectHelpers\n    @param {Function} callback The function to be called.\n  */\n\n  function onInjectHelpers(callback) {\n    callbacks.push(callback);\n  }\n\n  function invokeInjectHelpersCallbacks(app) {\n    for (var i = 0; i < callbacks.length; i++) {\n      callbacks[i](app);\n    }\n  }\n});\nenifed(\"ember-testing/test/pending_requests\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.pendingRequests = pendingRequests;\n  exports.clearPendingRequests = clearPendingRequests;\n  exports.incrementPendingRequests = incrementPendingRequests;\n  exports.decrementPendingRequests = decrementPendingRequests;\n  var requests = [];\n\n  function pendingRequests() {\n    return requests.length;\n  }\n\n  function clearPendingRequests() {\n    requests.length = 0;\n  }\n\n  function incrementPendingRequests(_, xhr) {\n    requests.push(xhr);\n  }\n\n  function decrementPendingRequests(_, xhr) {\n    for (var i = 0; i < requests.length; i++) {\n      if (xhr === requests[i]) {\n        requests.splice(i, 1);\n        break;\n      }\n    }\n  }\n});\nenifed('ember-testing/test/promise', ['exports', 'ember-runtime', 'ember-testing/test/run'], function (exports, _emberRuntime, _emberTestingTestRun) {\n  'use strict';\n\n  exports.promise = promise;\n  exports.resolve = resolve;\n  exports.getLastPromise = getLastPromise;\n\n  var lastPromise = undefined;\n\n  var TestPromise = (function (_RSVP$Promise) {\n    babelHelpers.inherits(TestPromise, _RSVP$Promise);\n\n    function TestPromise() {\n      babelHelpers.classCallCheck(this, TestPromise);\n\n      _RSVP$Promise.apply(this, arguments);\n      lastPromise = this;\n    }\n\n    /**\n      This returns a thenable tailored for testing.  It catches failed\n      `onSuccess` callbacks and invokes the `Ember.Test.adapter.exception`\n      callback in the last chained then.\n    \n      This method should be returned by async helpers such as `wait`.\n    \n      @public\n      @for Ember.Test\n      @method promise\n      @param {Function} resolver The function used to resolve the promise.\n      @param {String} label An optional string for identifying the promise.\n    */\n\n    TestPromise.prototype.then = function then(onFulfillment) {\n      var _RSVP$Promise$prototype$then;\n\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      return (_RSVP$Promise$prototype$then = _RSVP$Promise.prototype.then).call.apply(_RSVP$Promise$prototype$then, [this, function (result) {\n        return isolate(onFulfillment, result);\n      }].concat(args));\n    };\n\n    return TestPromise;\n  })(_emberRuntime.RSVP.Promise);\n\n  exports.default = TestPromise;\n\n  function promise(resolver, label) {\n    var fullLabel = 'Ember.Test.promise: ' + (label || '<Unknown Promise>');\n    return new TestPromise(resolver, fullLabel);\n  }\n\n  /**\n    Replacement for `Ember.RSVP.resolve`\n    The only difference is this uses\n    an instance of `Ember.Test.Promise`\n  \n    @public\n    @for Ember.Test\n    @method resolve\n    @param {Mixed} The value to resolve\n    @since 1.2.0\n  */\n\n  function resolve(result, label) {\n    return TestPromise.resolve(result, label);\n  }\n\n  function getLastPromise() {\n    return lastPromise;\n  }\n\n  // This method isolates nested async methods\n  // so that they don't conflict with other last promises.\n  //\n  // 1. Set `Ember.Test.lastPromise` to null\n  // 2. Invoke method\n  // 3. Return the last promise created during method\n  function isolate(onFulfillment, result) {\n    // Reset lastPromise for nested helpers\n    lastPromise = null;\n\n    var value = onFulfillment(result);\n\n    var promise = lastPromise;\n    lastPromise = null;\n\n    // If the method returned a promise\n    // return that promise. If not,\n    // return the last async helper's promise\n    if (value && value instanceof TestPromise || !promise) {\n      return value;\n    } else {\n      return _emberTestingTestRun.default(function () {\n        return resolve(promise).then(function () {\n          return value;\n        });\n      });\n    }\n  }\n});\nenifed('ember-testing/test/run', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  'use strict';\n\n  exports.default = run;\n\n  function run(fn) {\n    if (!_emberMetal.run.currentRunLoop) {\n      return _emberMetal.run(fn);\n    } else {\n      return fn();\n    }\n  }\n});\nenifed('ember-testing/test/waiters', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  exports.registerWaiter = registerWaiter;\n  exports.unregisterWaiter = unregisterWaiter;\n  exports.checkWaiters = checkWaiters;\n  exports.generateDeprecatedWaitersArray = generateDeprecatedWaitersArray;\n\n  var contexts = [];\n  var callbacks = [];\n\n  /**\n     This allows ember-testing to play nicely with other asynchronous\n     events, such as an application that is waiting for a CSS3\n     transition or an IndexDB transaction. The waiter runs periodically\n     after each async helper (i.e. `click`, `andThen`, `visit`, etc) has executed,\n     until the returning result is truthy. After the waiters finish, the next async helper\n     is executed and the process repeats.\n  \n     For example:\n  \n     ```javascript\n     Ember.Test.registerWaiter(function() {\n       return myPendingTransactions() == 0;\n     });\n     ```\n     The `context` argument allows you to optionally specify the `this`\n     with which your callback will be invoked.\n  \n     For example:\n  \n     ```javascript\n     Ember.Test.registerWaiter(MyDB, MyDB.hasPendingTransactions);\n     ```\n  \n     @public\n     @for Ember.Test\n     @method registerWaiter\n     @param {Object} context (optional)\n     @param {Function} callback\n     @since 1.2.0\n  */\n\n  function registerWaiter(context, callback) {\n    if (arguments.length === 1) {\n      callback = context;\n      context = null;\n    }\n    if (indexOf(context, callback) > -1) {\n      return;\n    }\n    contexts.push(context);\n    callbacks.push(callback);\n  }\n\n  /**\n     `unregisterWaiter` is used to unregister a callback that was\n     registered with `registerWaiter`.\n  \n     @public\n     @for Ember.Test\n     @method unregisterWaiter\n     @param {Object} context (optional)\n     @param {Function} callback\n     @since 1.2.0\n  */\n\n  function unregisterWaiter(context, callback) {\n    if (!callbacks.length) {\n      return;\n    }\n    if (arguments.length === 1) {\n      callback = context;\n      context = null;\n    }\n    var i = indexOf(context, callback);\n    if (i === -1) {\n      return;\n    }\n    contexts.splice(i, 1);\n    callbacks.splice(i, 1);\n  }\n\n  /**\n    Iterates through each registered test waiter, and invokes\n    its callback. If any waiter returns false, this method will return\n    true indicating that the waiters have not settled yet.\n  \n    This is generally used internally from the acceptance/integration test\n    infrastructure.\n  \n    @public\n    @for Ember.Test\n    @static\n    @method checkWaiters\n  */\n\n  function checkWaiters() {\n    if (!callbacks.length) {\n      return false;\n    }\n    for (var i = 0; i < callbacks.length; i++) {\n      var context = contexts[i];\n      var callback = callbacks[i];\n      if (!callback.call(context)) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  function indexOf(context, callback) {\n    for (var i = 0; i < callbacks.length; i++) {\n      if (callbacks[i] === callback && contexts[i] === context) {\n        return i;\n      }\n    }\n    return -1;\n  }\n\n  function generateDeprecatedWaitersArray() {\n    _emberDebug.deprecate('Usage of `Ember.Test.waiters` is deprecated. Please refactor to `Ember.Test.checkWaiters`.', false, { until: '2.8.0', id: 'ember-testing.test-waiters' });\n\n    var array = new Array(callbacks.length);\n    for (var i = 0; i < callbacks.length; i++) {\n      var context = contexts[i];\n      var callback = callbacks[i];\n\n      array[i] = [context, callback];\n    }\n\n    return array;\n  }\n});\nenifed(\"ember-utils/apply-str\", [\"exports\"], function (exports) {\n  /**\n   @param {Object} t target\n   @param {String} m method\n   @param {Array} a args\n   @private\n   */\n  \"use strict\";\n\n  exports.default = applyStr;\n\n  function applyStr(t, m, a) {\n    var l = a && a.length;\n    if (!a || !l) {\n      return t[m]();\n    }\n    switch (l) {\n      case 1:\n        return t[m](a[0]);\n      case 2:\n        return t[m](a[0], a[1]);\n      case 3:\n        return t[m](a[0], a[1], a[2]);\n      case 4:\n        return t[m](a[0], a[1], a[2], a[3]);\n      case 5:\n        return t[m](a[0], a[1], a[2], a[3], a[4]);\n      default:\n        return t[m].apply(t, a);\n    }\n  }\n});\nenifed(\"ember-utils/assign\", [\"exports\"], function (exports) {\n  /**\n    Copy properties from a source object to a target object.\n  \n    ```javascript\n    var a = { first: 'Yehuda' };\n    var b = { last: 'Katz' };\n    var c = { company: 'Tilde Inc.' };\n    Ember.assign(a, b, c); // a === { first: 'Yehuda', last: 'Katz', company: 'Tilde Inc.' }, b === { last: 'Katz' }, c === { company: 'Tilde Inc.' }\n    ```\n  \n    @method assign\n    @for Ember\n    @param {Object} original The object to assign into\n    @param {Object} ...args The objects to copy properties from\n    @return {Object}\n    @public\n  */\n  \"use strict\";\n\n  exports.default = assign;\n\n  function assign(original) {\n    for (var i = 1; i < arguments.length; i++) {\n      var arg = arguments[i];\n      if (!arg) {\n        continue;\n      }\n\n      var updates = Object.keys(arg);\n\n      for (var _i = 0; _i < updates.length; _i++) {\n        var prop = updates[_i];\n        original[prop] = arg[prop];\n      }\n    }\n\n    return original;\n  }\n});\nenifed('ember-utils/dictionary', ['exports'], function (exports) {\n  // the delete is meant to hint at runtimes that this object should remain in\n  // dictionary mode. This is clearly a runtime specific hack, but currently it\n  // appears worthwhile in some usecases. Please note, these deletes do increase\n  // the cost of creation dramatically over a plain Object.create. And as this\n  // only makes sense for long-lived dictionaries that aren't instantiated often.\n  'use strict';\n\n  exports.default = makeDictionary;\n\n  function makeDictionary(parent) {\n    var dict = Object.create(parent);\n    dict['_dict'] = null;\n    delete dict['_dict'];\n    return dict;\n  }\n});\nenifed('ember-utils/guid', ['exports', 'ember-utils/intern'], function (exports, _emberUtilsIntern) {\n  'use strict';\n\n  exports.uuid = uuid;\n  exports.generateGuid = generateGuid;\n  exports.guidFor = guidFor;\n\n  /**\n   Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from\n   jQuery master. We'll just bootstrap our own uuid now.\n  \n   @private\n   @return {Number} the uuid\n   */\n  var _uuid = 0;\n\n  /**\n   Generates a universally unique identifier. This method\n   is used internally by Ember for assisting with\n   the generation of GUID's and other unique identifiers.\n  \n   @public\n   @return {Number} [description]\n   */\n\n  function uuid() {\n    return ++_uuid;\n  }\n\n  /**\n   Prefix used for guids through out Ember.\n   @private\n   @property GUID_PREFIX\n   @for Ember\n   @type String\n   @final\n   */\n  var GUID_PREFIX = 'ember';\n\n  // Used for guid generation...\n  var numberCache = [];\n  var stringCache = {};\n\n  /**\n    A unique key used to assign guids and other private metadata to objects.\n    If you inspect an object in your browser debugger you will often see these.\n    They can be safely ignored.\n  \n    On browsers that support it, these properties are added with enumeration\n    disabled so they won't show up when you iterate over your properties.\n  \n    @private\n    @property GUID_KEY\n    @for Ember\n    @type String\n    @final\n  */\n  var GUID_KEY = _emberUtilsIntern.default('__ember' + +new Date());\n\n  exports.GUID_KEY = GUID_KEY;\n  var GUID_DESC = {\n    writable: true,\n    configurable: true,\n    enumerable: false,\n    value: null\n  };\n\n  exports.GUID_DESC = GUID_DESC;\n  var nullDescriptor = {\n    configurable: true,\n    writable: true,\n    enumerable: false,\n    value: null\n  };\n\n  var GUID_KEY_PROPERTY = {\n    name: GUID_KEY,\n    descriptor: nullDescriptor\n  };\n\n  exports.GUID_KEY_PROPERTY = GUID_KEY_PROPERTY;\n  /**\n    Generates a new guid, optionally saving the guid to the object that you\n    pass in. You will rarely need to use this method. Instead you should\n    call `Ember.guidFor(obj)`, which return an existing guid if available.\n  \n    @private\n    @method generateGuid\n    @for Ember\n    @param {Object} [obj] Object the guid will be used for. If passed in, the guid will\n      be saved on the object and reused whenever you pass the same object\n      again.\n  \n      If no object is passed, just generate a new guid.\n    @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to\n      separate the guid into separate namespaces.\n    @return {String} the guid\n  */\n\n  function generateGuid(obj, prefix) {\n    if (!prefix) {\n      prefix = GUID_PREFIX;\n    }\n\n    var ret = prefix + uuid();\n    if (obj) {\n      if (obj[GUID_KEY] === null) {\n        obj[GUID_KEY] = ret;\n      } else {\n        GUID_DESC.value = ret;\n        if (obj.__defineNonEnumerable) {\n          obj.__defineNonEnumerable(GUID_KEY_PROPERTY);\n        } else {\n          Object.defineProperty(obj, GUID_KEY, GUID_DESC);\n        }\n      }\n    }\n    return ret;\n  }\n\n  /**\n    Returns a unique id for the object. If the object does not yet have a guid,\n    one will be assigned to it. You can call this on any object,\n    `Ember.Object`-based or not, but be aware that it will add a `_guid`\n    property.\n  \n    You can also use this method on DOM Element objects.\n  \n    @public\n    @method guidFor\n    @for Ember\n    @param {Object} obj any object, string, number, Element, or primitive\n    @return {String} the unique guid for this instance.\n  */\n\n  function guidFor(obj) {\n    var type = typeof obj;\n    var isObject = type === 'object' && obj !== null;\n    var isFunction = type === 'function';\n\n    if ((isObject || isFunction) && obj[GUID_KEY]) {\n      return obj[GUID_KEY];\n    }\n\n    // special cases where we don't want to add a key to object\n    if (obj === undefined) {\n      return '(undefined)';\n    }\n\n    if (obj === null) {\n      return '(null)';\n    }\n\n    var ret = undefined;\n\n    // Don't allow prototype changes to String etc. to change the guidFor\n    switch (type) {\n      case 'number':\n        ret = numberCache[obj];\n\n        if (!ret) {\n          ret = numberCache[obj] = 'nu' + obj;\n        }\n\n        return ret;\n\n      case 'string':\n        ret = stringCache[obj];\n\n        if (!ret) {\n          ret = stringCache[obj] = 'st' + uuid();\n        }\n\n        return ret;\n\n      case 'boolean':\n        return obj ? '(true)' : '(false)';\n\n      default:\n        if (obj === Object) {\n          return '(Object)';\n        }\n\n        if (obj === Array) {\n          return '(Array)';\n        }\n\n        ret = GUID_PREFIX + uuid();\n\n        if (obj[GUID_KEY] === null) {\n          obj[GUID_KEY] = ret;\n        } else {\n          GUID_DESC.value = ret;\n\n          if (obj.__defineNonEnumerable) {\n            obj.__defineNonEnumerable(GUID_KEY_PROPERTY);\n          } else {\n            Object.defineProperty(obj, GUID_KEY, GUID_DESC);\n          }\n        }\n        return ret;\n    }\n  }\n});\nenifed('ember-utils/index', ['exports', 'ember-utils/symbol', 'ember-utils/owner', 'ember-utils/assign', 'ember-utils/dictionary', 'ember-utils/guid', 'ember-utils/intern', 'ember-utils/super', 'ember-utils/inspect', 'ember-utils/lookup-descriptor', 'ember-utils/invoke', 'ember-utils/make-array', 'ember-utils/apply-str', 'ember-utils/name', 'ember-utils/to-string', 'ember-utils/weak-map-utils', 'ember-utils/proxy-utils'], function (exports, _emberUtilsSymbol, _emberUtilsOwner, _emberUtilsAssign, _emberUtilsDictionary, _emberUtilsGuid, _emberUtilsIntern, _emberUtilsSuper, _emberUtilsInspect, _emberUtilsLookupDescriptor, _emberUtilsInvoke, _emberUtilsMakeArray, _emberUtilsApplyStr, _emberUtilsName, _emberUtilsToString, _emberUtilsWeakMapUtils, _emberUtilsProxyUtils) {\n  /*\n   This package will be eagerly parsed and should have no dependencies on external\n   packages.\n  \n   It is intended to be used to share utility methods that will be needed\n   by every Ember application (and is **not** a dumping ground of useful utilities).\n  \n   Utility methods that are needed in < 80% of cases should be placed\n   elsewhere (so they can be lazily evaluated / parsed).\n  */\n  'use strict';\n\n  exports.symbol = _emberUtilsSymbol.default;\n  exports.getOwner = _emberUtilsOwner.getOwner;\n  exports.setOwner = _emberUtilsOwner.setOwner;\n  exports.OWNER = _emberUtilsOwner.OWNER;\n  exports.assign = _emberUtilsAssign.default;\n  exports.dictionary = _emberUtilsDictionary.default;\n  exports.uuid = _emberUtilsGuid.uuid;\n  exports.GUID_KEY = _emberUtilsGuid.GUID_KEY;\n  exports.GUID_DESC = _emberUtilsGuid.GUID_DESC;\n  exports.GUID_KEY_PROPERTY = _emberUtilsGuid.GUID_KEY_PROPERTY;\n  exports.generateGuid = _emberUtilsGuid.generateGuid;\n  exports.guidFor = _emberUtilsGuid.guidFor;\n  exports.intern = _emberUtilsIntern.default;\n  exports.checkHasSuper = _emberUtilsSuper.checkHasSuper;\n  exports.ROOT = _emberUtilsSuper.ROOT;\n  exports.wrap = _emberUtilsSuper.wrap;\n  exports.inspect = _emberUtilsInspect.default;\n  exports.lookupDescriptor = _emberUtilsLookupDescriptor.default;\n  exports.canInvoke = _emberUtilsInvoke.canInvoke;\n  exports.tryInvoke = _emberUtilsInvoke.tryInvoke;\n  exports.makeArray = _emberUtilsMakeArray.default;\n  exports.applyStr = _emberUtilsApplyStr.default;\n  exports.NAME_KEY = _emberUtilsName.default;\n  exports.toString = _emberUtilsToString.default;\n  exports.HAS_NATIVE_WEAKMAP = _emberUtilsWeakMapUtils.HAS_NATIVE_WEAKMAP;\n  exports.HAS_NATIVE_PROXY = _emberUtilsProxyUtils.HAS_NATIVE_PROXY;\n});\nenifed('ember-utils/inspect', ['exports'], function (exports) {\n  'use strict';\n\n  exports.default = inspect;\n  var objectToString = Object.prototype.toString;\n\n  /**\n    Convenience method to inspect an object. This method will attempt to\n    convert the object into a useful string description.\n  \n    It is a pretty simple implementation. If you want something more robust,\n    use something like JSDump: https://github.com/NV/jsDump\n  \n    @method inspect\n    @for Ember\n    @param {Object} obj The object you want to inspect.\n    @return {String} A description of the object\n    @since 1.4.0\n    @private\n  */\n\n  function inspect(obj) {\n    if (obj === null) {\n      return 'null';\n    }\n    if (obj === undefined) {\n      return 'undefined';\n    }\n    if (Array.isArray(obj)) {\n      return '[' + obj + ']';\n    }\n    // for non objects\n    var type = typeof obj;\n    if (type !== 'object' && type !== 'symbol') {\n      return '' + obj;\n    }\n    // overridden toString\n    if (typeof obj.toString === 'function' && obj.toString !== objectToString) {\n      return obj.toString();\n    }\n\n    // Object.prototype.toString === {}.toString\n    var v = undefined;\n    var ret = [];\n    for (var key in obj) {\n      if (obj.hasOwnProperty(key)) {\n        v = obj[key];\n        if (v === 'toString') {\n          continue;\n        } // ignore useless items\n        if (typeof v === 'function') {\n          v = 'function() { ... }';\n        }\n\n        if (v && typeof v.toString !== 'function') {\n          ret.push(key + ': ' + objectToString.call(v));\n        } else {\n          ret.push(key + ': ' + v);\n        }\n      }\n    }\n    return '{' + ret.join(', ') + '}';\n  }\n});\nenifed(\"ember-utils/intern\", [\"exports\"], function (exports) {\n  /**\n    Strongly hint runtimes to intern the provided string.\n  \n    When do I need to use this function?\n  \n    For the most part, never. Pre-mature optimization is bad, and often the\n    runtime does exactly what you need it to, and more often the trade-off isn't\n    worth it.\n  \n    Why?\n  \n    Runtimes store strings in at least 2 different representations:\n    Ropes and Symbols (interned strings). The Rope provides a memory efficient\n    data-structure for strings created from concatenation or some other string\n    manipulation like splitting.\n  \n    Unfortunately checking equality of different ropes can be quite costly as\n    runtimes must resort to clever string comparison algorithms. These\n    algorithms typically cost in proportion to the length of the string.\n    Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n    unique by their string content, equality checks can be done by pointer\n    comparison.\n  \n    How do I know if my string is a rope or symbol?\n  \n    Typically (warning general sweeping statement, but truthy in runtimes at\n    present) static strings created as part of the JS source are interned.\n    Strings often used for comparisons can be interned at runtime if some\n    criteria are met.  One of these criteria can be the size of the entire rope.\n    For example, in chrome 38 a rope longer then 12 characters will not\n    intern, nor will segments of that rope.\n  \n    Some numbers: http://jsperf.com/eval-vs-keys/8\n  \n    Known Trick™\n  \n    @private\n    @return {String} interned version of the provided string\n  */\n  \"use strict\";\n\n  exports.default = intern;\n\n  function intern(str) {\n    var obj = {};\n    obj[str] = 1;\n    for (var key in obj) {\n      if (key === str) {\n        return key;\n      }\n    }\n    return str;\n  }\n});\nenifed('ember-utils/invoke', ['exports', 'ember-utils/apply-str'], function (exports, _emberUtilsApplyStr) {\n  'use strict';\n\n  exports.canInvoke = canInvoke;\n  exports.tryInvoke = tryInvoke;\n\n  /**\n    Checks to see if the `methodName` exists on the `obj`.\n  \n    ```javascript\n    let foo = { bar: function() { return 'bar'; }, baz: null };\n  \n    Ember.canInvoke(foo, 'bar'); // true\n    Ember.canInvoke(foo, 'baz'); // false\n    Ember.canInvoke(foo, 'bat'); // false\n    ```\n  \n    @method canInvoke\n    @for Ember\n    @param {Object} obj The object to check for the method\n    @param {String} methodName The method name to check for\n    @return {Boolean}\n    @private\n  */\n\n  function canInvoke(obj, methodName) {\n    return !!(obj && typeof obj[methodName] === 'function');\n  }\n\n  /**\n    Checks to see if the `methodName` exists on the `obj`,\n    and if it does, invokes it with the arguments passed.\n  \n    ```javascript\n    let d = new Date('03/15/2013');\n  \n    Ember.tryInvoke(d, 'getTime');              // 1363320000000\n    Ember.tryInvoke(d, 'setFullYear', [2014]);  // 1394856000000\n    Ember.tryInvoke(d, 'noSuchMethod', [2014]); // undefined\n    ```\n  \n    @method tryInvoke\n    @for Ember\n    @param {Object} obj The object to check for the method\n    @param {String} methodName The method name to check for\n    @param {Array} [args] The arguments to pass to the method\n    @return {*} the return value of the invoked method or undefined if it cannot be invoked\n    @public\n  */\n\n  function tryInvoke(obj, methodName, args) {\n    if (canInvoke(obj, methodName)) {\n      return args ? _emberUtilsApplyStr.default(obj, methodName, args) : _emberUtilsApplyStr.default(obj, methodName);\n    }\n  }\n});\nenifed(\"ember-utils/lookup-descriptor\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.default = lookupDescriptor;\n\n  function lookupDescriptor(obj, keyName) {\n    var current = obj;\n    while (current) {\n      var descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n\n      if (descriptor) {\n        return descriptor;\n      }\n\n      current = Object.getPrototypeOf(current);\n    }\n\n    return null;\n  }\n});\nenifed(\"ember-utils/make-array\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.default = makeArray;\n  var isArray = Array.isArray;\n\n  /**\n   Forces the passed object to be part of an array. If the object is already\n   an array, it will return the object. Otherwise, it will add the object to\n   an array. If obj is `null` or `undefined`, it will return an empty array.\n  \n   ```javascript\n   Ember.makeArray();            // []\n   Ember.makeArray(null);        // []\n   Ember.makeArray(undefined);   // []\n   Ember.makeArray('lindsay');   // ['lindsay']\n   Ember.makeArray([1, 2, 42]);  // [1, 2, 42]\n  \n   let controller = Ember.ArrayProxy.create({ content: [] });\n  \n   Ember.makeArray(controller) === controller;  // true\n   ```\n  \n   @method makeArray\n   @for Ember\n   @param {Object} obj the object\n   @return {Array}\n   @private\n   */\n\n  function makeArray(obj) {\n    if (obj === null || obj === undefined) {\n      return [];\n    }\n    return isArray(obj) ? obj : [obj];\n  }\n});\nenifed('ember-utils/name', ['exports', 'ember-utils/symbol'], function (exports, _emberUtilsSymbol) {\n  'use strict';\n\n  exports.default = _emberUtilsSymbol.default('NAME_KEY');\n});\nenifed('ember-utils/owner', ['exports', 'ember-utils/symbol'], function (exports, _emberUtilsSymbol) {\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  'use strict';\n\n  exports.getOwner = getOwner;\n  exports.setOwner = setOwner;\n  var OWNER = _emberUtilsSymbol.default('OWNER');\n\n  exports.OWNER = OWNER;\n  /**\n    Framework objects in an Ember application (components, services, routes, etc.)\n    are created via a factory and dependency injection system. Each of these\n    objects is the responsibility of an \"owner\", which handled its\n    instantiation and manages its lifetime.\n  \n    `getOwner` fetches the owner object responsible for an instance. This can\n    be used to lookup or resolve other class instances, or register new factories\n    into the owner.\n  \n    For example, this component dynamically looks up a service based on the\n    `audioType` passed as an attribute:\n  \n    ```app/components/play-audio.js\n    import Ember from 'ember';\n  \n    // Usage:\n    //\n    //   {{play-audio audioType=model.audioType audioFile=model.file}}\n    //\n    export default Ember.Component.extend({\n      audioService: Ember.computed('audioType', function() {\n        let owner = Ember.getOwner(this);\n        return owner.lookup(`service:${this.get('audioType')}`);\n      }),\n      click() {\n        let player = this.get('audioService');\n        player.play(this.get('audioFile'));\n      }\n    });\n    ```\n  \n    @method getOwner\n    @for Ember\n    @param {Object} object An object with an owner.\n    @return {Object} An owner object.\n    @since 2.3.0\n    @public\n  */\n\n  function getOwner(object) {\n    return object[OWNER];\n  }\n\n  /**\n    `setOwner` forces a new owner on a given object instance. This is primarily\n    useful in some testing cases.\n  \n    @method setOwner\n    @for Ember\n    @param {Object} object An object instance.\n    @param {Object} object The new owner object of the object instance.\n    @since 2.3.0\n    @public\n  */\n\n  function setOwner(object, owner) {\n    object[OWNER] = owner;\n  }\n});\nenifed('ember-utils/proxy-utils', ['exports'], function (exports) {\n  'use strict';\n\n  var HAS_NATIVE_PROXY = typeof Proxy === 'function';\n  exports.HAS_NATIVE_PROXY = HAS_NATIVE_PROXY;\n});\nenifed('ember-utils/super', ['exports'], function (exports) {\n  'use strict';\n\n  exports.ROOT = ROOT;\n  exports.wrap = wrap;\n  var HAS_SUPER_PATTERN = /\\.(_super|call\\(this|apply\\(this)/;\n  var fnToString = Function.prototype.toString;\n\n  var checkHasSuper = (function () {\n    var sourceAvailable = fnToString.call(function () {\n      return this;\n    }).indexOf('return this') > -1;\n\n    if (sourceAvailable) {\n      return function checkHasSuper(func) {\n        return HAS_SUPER_PATTERN.test(fnToString.call(func));\n      };\n    }\n\n    return function checkHasSuper() {\n      return true;\n    };\n  })();\n\n  exports.checkHasSuper = checkHasSuper;\n\n  function ROOT() {}\n\n  ROOT.__hasSuper = false;\n\n  function hasSuper(func) {\n    if (func.__hasSuper === undefined) {\n      func.__hasSuper = checkHasSuper(func);\n    }\n    return func.__hasSuper;\n  }\n\n  /**\n    Wraps the passed function so that `this._super` will point to the superFunc\n    when the function is invoked. This is the primitive we use to implement\n    calls to super.\n  \n    @private\n    @method wrap\n    @for Ember\n    @param {Function} func The function to call\n    @param {Function} superFunc The super function.\n    @return {Function} wrapped function.\n  */\n\n  function wrap(func, superFunc) {\n    if (!hasSuper(func)) {\n      return func;\n    }\n    // ensure an unwrapped super that calls _super is wrapped with a terminal _super\n    if (!superFunc.wrappedFunction && hasSuper(superFunc)) {\n      return _wrap(func, _wrap(superFunc, ROOT));\n    }\n    return _wrap(func, superFunc);\n  }\n\n  function _wrap(func, superFunc) {\n    function superWrapper() {\n      var orig = this._super;\n      this._super = superFunc;\n      var ret = func.apply(this, arguments);\n      this._super = orig;\n      return ret;\n    }\n\n    superWrapper.wrappedFunction = func;\n    superWrapper.__ember_observes__ = func.__ember_observes__;\n    superWrapper.__ember_observesBefore__ = func.__ember_observesBefore__;\n    superWrapper.__ember_listens__ = func.__ember_listens__;\n\n    return superWrapper;\n  }\n});\nenifed('ember-utils/symbol', ['exports', 'ember-utils/guid', 'ember-utils/intern'], function (exports, _emberUtilsGuid, _emberUtilsIntern) {\n  'use strict';\n\n  exports.default = symbol;\n\n  function symbol(debugName) {\n    // TODO: Investigate using platform symbols, but we do not\n    // want to require non-enumerability for this API, which\n    // would introduce a large cost.\n    var id = _emberUtilsGuid.GUID_KEY + Math.floor(Math.random() * new Date());\n    return _emberUtilsIntern.default('__' + debugName + '__ [id=' + id + ']');\n  }\n});\nenifed('ember-utils/to-string', ['exports'], function (exports) {\n  'use strict';\n\n  exports.default = toString;\n  var objectToString = Object.prototype.toString;\n\n  function isNone(obj) {\n    return obj === null || obj === undefined;\n  }\n\n  /*\n   A `toString` util function that supports objects without a `toString`\n   method, e.g. an object created with `Object.create(null)`.\n  */\n\n  function toString(obj) {\n    var type = typeof obj;\n    if (type === \"string\") {\n      return obj;\n    }\n\n    if (Array.isArray(obj)) {\n      // Reimplement Array.prototype.join according to spec (22.1.3.13)\n      // Changing ToString(element) with this safe version of ToString.\n      var len = obj.length;\n      var sep = ',';\n      var r = '';\n\n      for (var k = 0; k < len; k++) {\n        if (k > 0) {\n          r += ',';\n        }\n\n        if (!isNone(obj[k])) {\n          r += toString(obj[k]);\n        }\n      }\n\n      return r;\n    } else if (obj != null && typeof obj.toString === 'function') {\n      return obj.toString();\n    } else {\n      return objectToString.call(obj);\n    }\n  }\n});\nenifed('ember-utils/weak-map-utils', ['exports'], function (exports) {\n  'use strict';\n\n  var HAS_NATIVE_WEAKMAP = (function () {\n    // detect if `WeakMap` is even present\n    var hasWeakMap = typeof WeakMap === 'function';\n    if (!hasWeakMap) {\n      return false;\n    }\n\n    var instance = new WeakMap();\n    // use `Object`'s `.toString` directly to prevent us from detecting\n    // polyfills as native weakmaps\n    return Object.prototype.toString.call(instance) === '[object WeakMap]';\n  })();\n  exports.HAS_NATIVE_WEAKMAP = HAS_NATIVE_WEAKMAP;\n});\nenifed('ember-views/compat/attrs', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  'use strict';\n\n  var MUTABLE_CELL = _emberUtils.symbol('MUTABLE_CELL');\n  exports.MUTABLE_CELL = MUTABLE_CELL;\n});\nenifed('ember-views/compat/fallback-view-registry', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  'use strict';\n\n  exports.default = _emberUtils.dictionary(null);\n});\nenifed('ember-views/component_lookup', ['exports', 'ember-debug', 'ember-runtime', 'container'], function (exports, _emberDebug, _emberRuntime, _container) {\n  'use strict';\n\n  exports.default = _emberRuntime.Object.extend({\n    componentFor: function (name, owner, options) {\n      _emberDebug.assert('You cannot use \\'' + name + '\\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-'));\n      var fullName = 'component:' + name;\n      return owner[_container.FACTORY_FOR](fullName, options);\n    },\n\n    layoutFor: function (name, owner, options) {\n      _emberDebug.assert('You cannot use \\'' + name + '\\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-'));\n\n      var templateFullName = 'template:components/' + name;\n      return owner.lookup(templateFullName, options);\n    }\n  });\n});\nenifed('ember-views/index', ['exports', 'ember-views/system/ext', 'ember-views/system/jquery', 'ember-views/system/utils', 'ember-views/system/event_dispatcher', 'ember-views/component_lookup', 'ember-views/mixins/text_support', 'ember-views/views/core_view', 'ember-views/mixins/class_names_support', 'ember-views/mixins/child_views_support', 'ember-views/mixins/view_state_support', 'ember-views/mixins/view_support', 'ember-views/mixins/action_support', 'ember-views/compat/attrs', 'ember-views/system/lookup_partial', 'ember-views/utils/lookup-component', 'ember-views/system/action_manager', 'ember-views/compat/fallback-view-registry'], function (exports, _emberViewsSystemExt, _emberViewsSystemJquery, _emberViewsSystemUtils, _emberViewsSystemEvent_dispatcher, _emberViewsComponent_lookup, _emberViewsMixinsText_support, _emberViewsViewsCore_view, _emberViewsMixinsClass_names_support, _emberViewsMixinsChild_views_support, _emberViewsMixinsView_state_support, _emberViewsMixinsView_support, _emberViewsMixinsAction_support, _emberViewsCompatAttrs, _emberViewsSystemLookup_partial, _emberViewsUtilsLookupComponent, _emberViewsSystemAction_manager, _emberViewsCompatFallbackViewRegistry) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  'use strict';\n\n  exports.jQuery = _emberViewsSystemJquery.default;\n  exports.isSimpleClick = _emberViewsSystemUtils.isSimpleClick;\n  exports.getViewBounds = _emberViewsSystemUtils.getViewBounds;\n  exports.getViewClientRects = _emberViewsSystemUtils.getViewClientRects;\n  exports.getViewBoundingClientRect = _emberViewsSystemUtils.getViewBoundingClientRect;\n  exports.getRootViews = _emberViewsSystemUtils.getRootViews;\n  exports.getChildViews = _emberViewsSystemUtils.getChildViews;\n  exports.getViewId = _emberViewsSystemUtils.getViewId;\n  exports.getViewElement = _emberViewsSystemUtils.getViewElement;\n  exports.setViewElement = _emberViewsSystemUtils.setViewElement;\n  exports.constructStyleDeprecationMessage = _emberViewsSystemUtils.constructStyleDeprecationMessage;\n  exports.EventDispatcher = _emberViewsSystemEvent_dispatcher.default;\n  exports.ComponentLookup = _emberViewsComponent_lookup.default;\n  exports.TextSupport = _emberViewsMixinsText_support.default;\n  exports.CoreView = _emberViewsViewsCore_view.default;\n  exports.ClassNamesSupport = _emberViewsMixinsClass_names_support.default;\n  exports.ChildViewsSupport = _emberViewsMixinsChild_views_support.default;\n  exports.ViewStateSupport = _emberViewsMixinsView_state_support.default;\n  exports.ViewMixin = _emberViewsMixinsView_support.default;\n  exports.dispatchLifeCycleHook = _emberViewsMixinsView_support.dispatchLifeCycleHook;\n  exports.ActionSupport = _emberViewsMixinsAction_support.default;\n  exports.MUTABLE_CELL = _emberViewsCompatAttrs.MUTABLE_CELL;\n  exports.lookupPartial = _emberViewsSystemLookup_partial.default;\n  exports.hasPartial = _emberViewsSystemLookup_partial.hasPartial;\n  exports.lookupComponent = _emberViewsUtilsLookupComponent.default;\n  exports.ActionManager = _emberViewsSystemAction_manager.default;\n  exports.fallbackViewRegistry = _emberViewsCompatFallbackViewRegistry.default;\n});\n// for the side effect of extending Ember.run.queues\nenifed('ember-views/mixins/action_support', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-views/compat/attrs'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberViewsCompatAttrs) {\n  /**\n   @module ember\n   @submodule ember-views\n  */\n  'use strict';\n\n  function validateAction(component, actionName) {\n    if (actionName && actionName[_emberViewsCompatAttrs.MUTABLE_CELL]) {\n      actionName = actionName.value;\n    }\n\n    _emberDebug.assert('The default action was triggered on the component ' + component.toString() + ', but the action name (' + actionName + ') was not a string.', _emberMetal.isNone(actionName) || typeof actionName === 'string' || typeof actionName === 'function');\n    return actionName;\n  }\n\n  /**\n   @class ActionSupport\n   @namespace Ember\n   @private\n  */\n  exports.default = _emberMetal.Mixin.create({\n    /**\n      Calls an action passed to a component.\n       For example a component for playing or pausing music may translate click events\n      into action notifications of \"play\" or \"stop\" depending on some internal state\n      of the component:\n       ```javascript\n      // app/components/play-button.js\n      export default Ember.Component.extend({\n        click() {\n          if (this.get('isPlaying')) {\n            this.sendAction('play');\n          } else {\n            this.sendAction('stop');\n          }\n        }\n      });\n      ```\n       The actions \"play\" and \"stop\" must be passed to this `play-button` component:\n       ```handlebars\n      {{! app/templates/application.hbs }}\n      {{play-button play=(action \"musicStarted\") stop=(action \"musicStopped\")}}\n      ```\n       When the component receives a browser `click` event it translate this\n      interaction into application-specific semantics (\"play\" or \"stop\") and\n      calls the specified action.\n       ```javascript\n      // app/controller/application.js\n      export default Ember.Controller.extend({\n        actions: {\n          musicStarted() {\n            // called when the play button is clicked\n            // and the music started playing\n          },\n          musicStopped() {\n            // called when the play button is clicked\n            // and the music stopped playing\n          }\n        }\n      });\n      ```\n       If no action is passed to `sendAction` a default name of \"action\"\n      is assumed.\n       ```javascript\n      // app/components/next-button.js\n      export default Ember.Component.extend({\n        click() {\n          this.sendAction();\n        }\n      });\n      ```\n       ```handlebars\n      {{! app/templates/application.hbs }}\n      {{next-button action=(action \"playNextSongInAlbum\")}}\n      ```\n       ```javascript\n      // app/controllers/application.js\n      App.ApplicationController = Ember.Controller.extend({\n        actions: {\n          playNextSongInAlbum() {\n            ...\n          }\n        }\n      });\n      ```\n       @method sendAction\n      @param [action] {String} the action to call\n      @param [params] {*} arguments for the action\n      @public\n    */\n    sendAction: function (action) {\n      for (var _len = arguments.length, contexts = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        contexts[_key - 1] = arguments[_key];\n      }\n\n      var actionName = undefined;\n\n      // Send the default action\n      if (action === undefined) {\n        action = 'action';\n      }\n      actionName = _emberMetal.get(this, 'attrs.' + action) || _emberMetal.get(this, action);\n      actionName = validateAction(this, actionName);\n\n      // If no action name for that action could be found, just abort.\n      if (actionName === undefined) {\n        return;\n      }\n\n      if (typeof actionName === 'function') {\n        actionName.apply(undefined, contexts);\n      } else {\n        this.triggerAction({\n          action: actionName,\n          actionContext: contexts\n        });\n      }\n    },\n\n    send: function (actionName) {\n      for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      var action = this.actions && this.actions[actionName];\n\n      if (action) {\n        var shouldBubble = action.apply(this, args) === true;\n        if (!shouldBubble) {\n          return;\n        }\n      }\n\n      var target = _emberMetal.get(this, 'target');\n      if (target) {\n        _emberDebug.assert('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function');\n        target.send.apply(target, arguments);\n      } else {\n        _emberDebug.assert(_emberUtils.inspect(this) + ' had no action handler for: ' + actionName, action);\n      }\n    }\n  });\n});\nenifed('ember-views/mixins/child_views_support', ['exports', 'ember-utils', 'ember-metal', 'ember-views/system/utils'], function (exports, _emberUtils, _emberMetal, _emberViewsSystemUtils) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n  'use strict';\n\n  exports.default = _emberMetal.Mixin.create({\n    init: function () {\n      this._super.apply(this, arguments);\n      _emberViewsSystemUtils.initChildViews(this);\n    },\n\n    /**\n      Array of child views. You should never edit this array directly.\n       @property childViews\n      @type Array\n      @default []\n      @private\n    */\n    childViews: _emberMetal.descriptor({\n      configurable: false,\n      enumerable: false,\n      get: function () {\n        return _emberViewsSystemUtils.getChildViews(this);\n      }\n    }),\n\n    appendChild: function (view) {\n      this.linkChild(view);\n      _emberViewsSystemUtils.addChildView(this, view);\n    },\n\n    linkChild: function (instance) {\n      if (!_emberUtils.getOwner(instance)) {\n        _emberUtils.setOwner(instance, _emberUtils.getOwner(this));\n      }\n    }\n  });\n});\nenifed('ember-views/mixins/class_names_support', ['exports', 'ember-metal', 'ember-debug'], function (exports, _emberMetal, _emberDebug) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  'use strict';\n\n  var EMPTY_ARRAY = Object.freeze([]);\n\n  /**\n    @class ClassNamesSupport\n    @namespace Ember\n    @private\n  */\n  exports.default = _emberMetal.Mixin.create({\n    concatenatedProperties: ['classNames', 'classNameBindings'],\n\n    init: function () {\n      this._super.apply(this, arguments);\n\n      _emberDebug.assert('Only arrays are allowed for \\'classNameBindings\\'', Array.isArray(this.classNameBindings));\n      _emberDebug.assert('Only arrays of static class strings are allowed for \\'classNames\\'. For dynamic classes, use \\'classNameBindings\\'.', Array.isArray(this.classNames));\n    },\n\n    /**\n      Standard CSS class names to apply to the view's outer element. This\n      property automatically inherits any class names defined by the view's\n      superclasses as well.\n       @property classNames\n      @type Array\n      @default ['ember-view']\n      @public\n    */\n    classNames: EMPTY_ARRAY,\n\n    /**\n      A list of properties of the view to apply as class names. If the property\n      is a string value, the value of that string will be applied as a class\n      name.\n       ```javascript\n      // Applies the 'high' class to the view element\n      Ember.Component.extend({\n        classNameBindings: ['priority'],\n        priority: 'high'\n      });\n      ```\n       If the value of the property is a Boolean, the name of that property is\n      added as a dasherized class name.\n       ```javascript\n      // Applies the 'is-urgent' class to the view element\n      Ember.Component.extend({\n        classNameBindings: ['isUrgent'],\n        isUrgent: true\n      });\n      ```\n       If you would prefer to use a custom value instead of the dasherized\n      property name, you can pass a binding like this:\n       ```javascript\n      // Applies the 'urgent' class to the view element\n      Ember.Component.extend({\n        classNameBindings: ['isUrgent:urgent'],\n        isUrgent: true\n      });\n      ```\n       This list of properties is inherited from the component's superclasses as well.\n       @property classNameBindings\n      @type Array\n      @default []\n      @public\n    */\n    classNameBindings: EMPTY_ARRAY\n  });\n});\nenifed('ember-views/mixins/text_support', ['exports', 'ember-metal', 'ember-runtime'], function (exports, _emberMetal, _emberRuntime) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  'use strict';\n\n  var KEY_EVENTS = {\n    13: 'insertNewline',\n    27: 'cancel'\n  };\n\n  /**\n    `TextSupport` is a shared mixin used by both `Ember.TextField` and\n    `Ember.TextArea`. `TextSupport` adds a number of methods that allow you to\n    specify a controller action to invoke when a certain event is fired on your\n    text field or textarea. The specifed controller action would get the current\n    value of the field passed in as the only argument unless the value of\n    the field is empty. In that case, the instance of the field itself is passed\n    in as the only argument.\n  \n    Let's use the pressing of the escape key as an example. If you wanted to\n    invoke a controller action when a user presses the escape key while on your\n    field, you would use the `escape-press` attribute on your field like so:\n  \n    ```handlebars\n      {{! application.hbs}}\n  \n      {{input escape-press='alertUser'}}\n    ```\n  \n    ```javascript\n        App = Ember.Application.create();\n  \n        App.ApplicationController = Ember.Controller.extend({\n          actions: {\n            alertUser: function ( currentValue ) {\n              alert( 'escape pressed, current value: ' + currentValue );\n            }\n          }\n        });\n    ```\n  \n    The following chart is a visual representation of what takes place when the\n    escape key is pressed in this scenario:\n  \n    ```\n    The Template\n    +---------------------------+\n    |                           |\n    | escape-press='alertUser'  |\n    |                           |          TextSupport Mixin\n    +----+----------------------+          +-------------------------------+\n         |                                 | cancel method                 |\n         |      escape button pressed      |                               |\n         +-------------------------------> | checks for the `escape-press` |\n                                           | attribute and pulls out the   |\n         +-------------------------------+ | `alertUser` value             |\n         |     action name 'alertUser'     +-------------------------------+\n         |     sent to controller\n         v\n    Controller\n    +------------------------------------------ +\n    |                                           |\n    |  actions: {                               |\n    |     alertUser: function( currentValue ){  |\n    |       alert( 'the esc key was pressed!' ) |\n    |     }                                     |\n    |  }                                        |\n    |                                           |\n    +-------------------------------------------+\n    ```\n  \n    Here are the events that we currently support along with the name of the\n    attribute you would need to use on your field. To reiterate, you would use the\n    attribute name like so:\n  \n    ```handlebars\n      {{input attribute-name='controllerAction'}}\n    ```\n  \n    ```\n    +--------------------+----------------+\n    |                    |                |\n    | event              | attribute name |\n    +--------------------+----------------+\n    | new line inserted  | insert-newline |\n    |                    |                |\n    | enter key pressed  | insert-newline |\n    |                    |                |\n    | cancel key pressed | escape-press   |\n    |                    |                |\n    | focusin            | focus-in       |\n    |                    |                |\n    | focusout           | focus-out      |\n    |                    |                |\n    | keypress           | key-press      |\n    |                    |                |\n    | keyup              | key-up         |\n    |                    |                |\n    | keydown            | key-down       |\n    +--------------------+----------------+\n    ```\n  \n    @class TextSupport\n    @namespace Ember\n    @uses Ember.TargetActionSupport\n    @extends Ember.Mixin\n    @private\n  */\n  exports.default = _emberMetal.Mixin.create(_emberRuntime.TargetActionSupport, {\n    value: '',\n\n    attributeBindings: ['autocapitalize', 'autocorrect', 'autofocus', 'disabled', 'form', 'maxlength', 'placeholder', 'readonly', 'required', 'selectionDirection', 'spellcheck', 'tabindex', 'title'],\n    placeholder: null,\n    disabled: false,\n    maxlength: null,\n\n    init: function () {\n      this._super.apply(this, arguments);\n      this.on('paste', this, this._elementValueDidChange);\n      this.on('cut', this, this._elementValueDidChange);\n      this.on('input', this, this._elementValueDidChange);\n    },\n\n    /**\n      The action to be sent when the user presses the return key.\n       This is similar to the `{{action}}` helper, but is fired when\n      the user presses the return key when editing a text field, and sends\n      the value of the field as the context.\n       @property action\n      @type String\n      @default null\n      @private\n    */\n    action: null,\n\n    /**\n      The event that should send the action.\n       Options are:\n       * `enter`: the user pressed enter\n      * `keyPress`: the user pressed a key\n       @property onEvent\n      @type String\n      @default enter\n      @private\n    */\n    onEvent: 'enter',\n\n    /**\n      Whether the `keyUp` event that triggers an `action` to be sent continues\n      propagating to other views.\n       By default, when the user presses the return key on their keyboard and\n      the text field has an `action` set, the action will be sent to the view's\n      controller and the key event will stop propagating.\n       If you would like parent views to receive the `keyUp` event even after an\n      action has been dispatched, set `bubbles` to true.\n       @property bubbles\n      @type Boolean\n      @default false\n      @private\n    */\n    bubbles: false,\n\n    interpretKeyEvents: function (event) {\n      var map = KEY_EVENTS;\n      var method = map[event.keyCode];\n\n      this._elementValueDidChange();\n      if (method) {\n        return this[method](event);\n      }\n    },\n\n    _elementValueDidChange: function () {\n      _emberMetal.set(this, 'value', this.element.value);\n    },\n\n    change: function (event) {\n      this._elementValueDidChange(event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when either the `enter`\n      key is pressed or, in the case of the field being a textarea, when a newline\n      is inserted. To use this method, give your field an `insert-newline`\n      attribute. The value of that attribute should be the name of the action\n      in your controller that you wish to invoke.\n       For an example on how to use the `insert-newline` attribute, please\n      reference the example near the top of this file.\n       @method insertNewline\n      @param {Event} event\n      @private\n    */\n    insertNewline: function (event) {\n      sendAction('enter', this, event);\n      sendAction('insert-newline', this, event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when the escape button\n      is pressed. To use this method, give your field an `escape-press`\n      attribute. The value of that attribute should be the name of the action\n      in your controller that you wish to invoke.\n       For an example on how to use the `escape-press` attribute, please reference\n      the example near the top of this file.\n       @method cancel\n      @param {Event} event\n      @private\n    */\n    cancel: function (event) {\n      sendAction('escape-press', this, event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when a field receives\n      focus. To use this method, give your field a `focus-in` attribute. The value\n      of that attribute should be the name of the action in your controller\n      that you wish to invoke.\n       For an example on how to use the `focus-in` attribute, please reference the\n      example near the top of this file.\n       @method focusIn\n      @param {Event} event\n      @private\n    */\n    focusIn: function (event) {\n      sendAction('focus-in', this, event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when a field loses\n      focus. To use this method, give your field a `focus-out` attribute. The value\n      of that attribute should be the name of the action in your controller\n      that you wish to invoke.\n       For an example on how to use the `focus-out` attribute, please reference the\n      example near the top of this file.\n       @method focusOut\n      @param {Event} event\n      @private\n    */\n    focusOut: function (event) {\n      this._elementValueDidChange(event);\n      sendAction('focus-out', this, event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when a key is pressed.\n      To use this method, give your field a `key-press` attribute. The value of\n      that attribute should be the name of the action in your controller you\n      that wish to invoke.\n       For an example on how to use the `key-press` attribute, please reference the\n      example near the top of this file.\n       @method keyPress\n      @param {Event} event\n      @private\n    */\n    keyPress: function (event) {\n      sendAction('key-press', this, event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when a key-up event is\n      fired. To use this method, give your field a `key-up` attribute. The value\n      of that attribute should be the name of the action in your controller\n      that you wish to invoke.\n       For an example on how to use the `key-up` attribute, please reference the\n      example near the top of this file.\n       @method keyUp\n      @param {Event} event\n      @private\n    */\n    keyUp: function (event) {\n      this.interpretKeyEvents(event);\n\n      this.sendAction('key-up', _emberMetal.get(this, 'value'), event);\n    },\n\n    /**\n      Allows you to specify a controller action to invoke when a key-down event is\n      fired. To use this method, give your field a `key-down` attribute. The value\n      of that attribute should be the name of the action in your controller that\n      you wish to invoke.\n       For an example on how to use the `key-down` attribute, please reference the\n      example near the top of this file.\n       @method keyDown\n      @param {Event} event\n      @private\n    */\n    keyDown: function (event) {\n      this.sendAction('key-down', _emberMetal.get(this, 'value'), event);\n    }\n  });\n\n  // In principle, this shouldn't be necessary, but the legacy\n  // sendAction semantics for TextField are different from\n  // the component semantics so this method normalizes them.\n  function sendAction(eventName, view, event) {\n    var action = _emberMetal.get(view, 'attrs.' + eventName) || _emberMetal.get(view, eventName);\n    var on = _emberMetal.get(view, 'onEvent');\n    var value = _emberMetal.get(view, 'value');\n\n    // back-compat support for keyPress as an event name even though\n    // it's also a method name that consumes the event (and therefore\n    // incompatible with sendAction semantics).\n    if (on === eventName || on === 'keyPress' && eventName === 'key-press') {\n      view.sendAction('action', value);\n    }\n\n    view.sendAction(eventName, value);\n\n    if (action || on === eventName) {\n      if (!_emberMetal.get(view, 'bubbles')) {\n        event.stopPropagation();\n      }\n    }\n  }\n});\nenifed('ember-views/mixins/view_state_support', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n  'use strict';\n\n  exports.default = _emberMetal.Mixin.create({\n    _transitionTo: function (state) {\n      var priorState = this._currentState;\n      var currentState = this._currentState = this._states[state];\n      this._state = state;\n\n      if (priorState && priorState.exit) {\n        priorState.exit(this);\n      }\n      if (currentState.enter) {\n        currentState.enter(this);\n      }\n    }\n  });\n});\nenifed('ember-views/mixins/view_support', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-environment', 'ember-views/system/utils', 'ember-runtime/system/core_object', 'ember-views/system/jquery'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberEnvironment, _emberViewsSystemUtils, _emberRuntimeSystemCore_object, _emberViewsSystemJquery) {\n  'use strict';\n\n  var _Mixin$create;\n\n  function K() {\n    return this;\n  }\n\n  var dispatchLifeCycleHook = function (component, hook, oldAttrs, newAttrs) {\n    component.trigger(hook, { attrs: newAttrs, oldAttrs: oldAttrs, newAttrs: newAttrs });\n  };\n\n  exports.dispatchLifeCycleHook = dispatchLifeCycleHook;\n  _emberDebug.runInDebug(function () {\n    var Attrs = (function () {\n      function Attrs(oldAttrs, newAttrs, message) {\n        babelHelpers.classCallCheck(this, Attrs);\n\n        this._oldAttrs = oldAttrs;\n        this._newAttrs = newAttrs;\n        this._message = message;\n      }\n\n      babelHelpers.createClass(Attrs, [{\n        key: 'attrs',\n        get: function () {\n          return this.newAttrs;\n        }\n      }, {\n        key: 'oldAttrs',\n        get: function () {\n          _emberDebug.deprecate(this._message, false, {\n            id: 'ember-views.lifecycle-hook-arguments',\n            until: '2.13.0',\n            url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'\n          });\n\n          return this._oldAttrs;\n        }\n      }, {\n        key: 'newAttrs',\n        get: function () {\n          _emberDebug.deprecate(this._message, false, {\n            id: 'ember-views.lifecycle-hook-arguments',\n            until: '2.13.0',\n            url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'\n          });\n\n          return this._newAttrs;\n        }\n      }]);\n      return Attrs;\n    })();\n\n    exports.dispatchLifeCycleHook = dispatchLifeCycleHook = function (component, hook, oldAttrs, newAttrs) {\n      if (typeof component[hook] === 'function' && component[hook].length !== 0) {\n        // Already warned in init\n        component.trigger(hook, { attrs: newAttrs, oldAttrs: oldAttrs, newAttrs: newAttrs });\n      } else {\n        component.trigger(hook, new Attrs(oldAttrs, newAttrs, '[DEPRECATED] Ember will stop passing arguments to component lifecycle hooks. Please change `' + component.toString() + '#' + hook + '` to stop taking arguments.'));\n      }\n    };\n  });\n\n  /**\n   @class ViewMixin\n   @namespace Ember\n   @private\n  */\n  exports.default = _emberMetal.Mixin.create((_Mixin$create = {\n    /**\n      A list of properties of the view to apply as attributes. If the property\n      is a string value, the value of that string will be applied as the value\n      for an attribute of the property's name.\n       The following example creates a tag like `<div priority=\"high\" />`.\n       ```javascript\n      Ember.Component.extend({\n        attributeBindings: ['priority'],\n        priority: 'high'\n      });\n      ```\n       If the value of the property is a Boolean, the attribute is treated as\n      an HTML Boolean attribute. It will be present if the property is `true`\n      and omitted if the property is `false`.\n       The following example creates markup like `<div visible />`.\n       ```javascript\n      Ember.Component.extend({\n        attributeBindings: ['visible'],\n        visible: true\n      });\n      ```\n       If you would prefer to use a custom value instead of the property name,\n      you can create the same markup as the last example with a binding like\n      this:\n       ```javascript\n      Ember.Component.extend({\n        attributeBindings: ['isVisible:visible'],\n        isVisible: true\n      });\n      ```\n       This list of attributes is inherited from the component's superclasses,\n      as well.\n       @property attributeBindings\n      @type Array\n      @default []\n      @public\n     */\n    concatenatedProperties: ['attributeBindings']\n  }, _Mixin$create[_emberRuntimeSystemCore_object.POST_INIT] = function () {\n    dispatchLifeCycleHook(this, 'didInitAttrs', undefined, this.attrs);\n    dispatchLifeCycleHook(this, 'didReceiveAttrs', undefined, this.attrs);\n  }, _Mixin$create.nearestOfType = function (klass) {\n    var view = this.parentView;\n    var isOfType = klass instanceof _emberMetal.Mixin ? function (view) {\n      return klass.detect(view);\n    } : function (view) {\n      return klass.detect(view.constructor);\n    };\n\n    while (view) {\n      if (isOfType(view)) {\n        return view;\n      }\n      view = view.parentView;\n    }\n  }, _Mixin$create.nearestWithProperty = function (property) {\n    var view = this.parentView;\n\n    while (view) {\n      if (property in view) {\n        return view;\n      }\n      view = view.parentView;\n    }\n  }, _Mixin$create.rerender = function () {\n    return this._currentState.rerender(this);\n  }, _Mixin$create.element = _emberMetal.descriptor({\n    configurable: false,\n    enumerable: false,\n    get: function () {\n      return this.renderer.getElement(this);\n    }\n  }), _Mixin$create.$ = function (sel) {\n    _emberDebug.assert('You cannot access this.$() on a component with `tagName: \\'\\'` specified.', this.tagName !== '');\n    if (this.element) {\n      return sel ? _emberViewsSystemJquery.default(sel, this.element) : _emberViewsSystemJquery.default(this.element);\n    }\n  }, _Mixin$create.appendTo = function (selector) {\n    var env = this._environment || _emberEnvironment.environment;\n    var target = undefined;\n\n    if (env.hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n\n      _emberDebug.assert('You tried to append to (' + selector + ') but that isn\\'t in the DOM', target);\n      _emberDebug.assert('You cannot append to an existing Ember.View.', !_emberViewsSystemUtils.matches(target, '.ember-view'));\n      _emberDebug.assert('You cannot append to an existing Ember.View.', (function () {\n        var node = target.parentNode;\n        while (node) {\n          if (node.nodeType !== 9 && _emberViewsSystemUtils.matches(node, '.ember-view')) {\n            return false;\n          }\n\n          node = node.parentNode;\n        }\n\n        return true;\n      })());\n    } else {\n      target = selector;\n\n      _emberDebug.assert('You tried to append to a selector string (' + selector + ') in an environment without jQuery', typeof target !== 'string');\n      _emberDebug.assert('You tried to append to a non-Element (' + selector + ') in an environment without jQuery', typeof selector.appendChild === 'function');\n    }\n\n    this.renderer.appendTo(this, target);\n\n    return this;\n  }, _Mixin$create.renderToElement = function () {\n    var tagName = arguments.length <= 0 || arguments[0] === undefined ? 'body' : arguments[0];\n\n    _emberDebug.deprecate('Using the `renderToElement` is deprecated in favor of `appendTo`. Called in ' + this.toString(), false, {\n      id: 'ember-views.render-to-element',\n      until: '2.12.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_code-rendertoelement-code'\n    });\n\n    var element = this.renderer.createElement(tagName);\n\n    this.renderer.appendTo(this, element);\n    return element;\n  }, _Mixin$create.replaceIn = function (selector) {\n    var target = _emberViewsSystemJquery.default(selector);\n\n    _emberDebug.assert('You tried to replace in (' + selector + ') but that isn\\'t in the DOM', target.length > 0);\n    _emberDebug.assert('You cannot replace an existing Ember.View.', !target.is('.ember-view') && !target.parents().is('.ember-view'));\n\n    this.renderer.replaceIn(this, target[0]);\n\n    return this;\n  }, _Mixin$create.append = function () {\n    return this.appendTo(document.body);\n  }, _Mixin$create.elementId = null, _Mixin$create.findElementInParentElement = function (parentElem) {\n    var id = '#' + this.elementId;\n    return _emberViewsSystemJquery.default(id)[0] || _emberViewsSystemJquery.default(id, parentElem)[0];\n  }, _Mixin$create.willInsertElement = K, _Mixin$create.didInsertElement = K, _Mixin$create.willClearRender = K, _Mixin$create.destroy = function () {\n    this._super.apply(this, arguments);\n    this._currentState.destroy(this);\n  }, _Mixin$create.willDestroyElement = K, _Mixin$create.parentViewDidChange = K, _Mixin$create.tagName = null, _Mixin$create.init = function () {\n    this._super.apply(this, arguments);\n\n    if (!this.elementId && this.tagName !== '') {\n      this.elementId = _emberUtils.guidFor(this);\n    }\n\n    // if we find an `eventManager` property, deopt the\n    // `EventDispatcher`'s `canDispatchToEventManager` property\n    // if `null`\n    if (this.eventManager) {\n      var owner = _emberUtils.getOwner(this);\n      var dispatcher = owner && owner.lookup('event_dispatcher:main');\n\n      if (dispatcher && dispatcher.canDispatchToEventManager === null) {\n        dispatcher.canDispatchToEventManager = true;\n      }\n    }\n\n    _emberDebug.deprecate('[DEPRECATED] didInitAttrs called in ' + this.toString() + '.', typeof this.didInitAttrs !== 'function', {\n      id: 'ember-views.did-init-attrs',\n      until: '3.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_ember-component-didinitattrs'\n    });\n\n    _emberDebug.deprecate('[DEPRECATED] Ember will stop passing arguments to component lifecycle hooks. Please change `' + this.toString() + '#didInitAttrs` to stop taking arguments.', typeof this.didInitAttrs !== 'function' || this.didInitAttrs.length === 0, {\n      id: 'ember-views.lifecycle-hook-arguments',\n      until: '2.13.0',\n      url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'\n    });\n\n    _emberDebug.deprecate('[DEPRECATED] Ember will stop passing arguments to component lifecycle hooks. Please change `' + this.toString() + '#didReceiveAttrs` to stop taking arguments.', typeof this.didReceiveAttrs !== 'function' || this.didReceiveAttrs.length === 0, {\n      id: 'ember-views.lifecycle-hook-arguments',\n      until: '2.13.0',\n      url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'\n    });\n\n    _emberDebug.deprecate('[DEPRECATED] Ember will stop passing arguments to component lifecycle hooks. Please change `' + this.toString() + '#didUpdateAttrs` to stop taking arguments.', typeof this.didUpdateAttrs !== 'function' || this.didUpdateAttrs.length === 0, {\n      id: 'ember-views.lifecycle-hook-arguments',\n      until: '2.13.0',\n      url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'\n    });\n\n    _emberDebug.assert('Using a custom `.render` function is no longer supported.', !this.render);\n  }, _Mixin$create.__defineNonEnumerable = function (property) {\n    this[property.name] = property.descriptor.value;\n  }, _Mixin$create.handleEvent = function (eventName, evt) {\n    return this._currentState.handleEvent(this, eventName, evt);\n  }, _Mixin$create));\n});\n\n// ..........................................................\n// TEMPLATE SUPPORT\n//\n\n/**\n  Return the nearest ancestor that is an instance of the provided\n  class or mixin.\n   @method nearestOfType\n  @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),\n         or an instance of Ember.Mixin.\n  @return Ember.View\n  @deprecated use `yield` and contextual components for composition instead.\n  @private\n*/\n\n/**\n  Return the nearest ancestor that has a given property.\n   @method nearestWithProperty\n  @param {String} property A property name\n  @return Ember.View\n  @deprecated use `yield` and contextual components for composition instead.\n  @private\n*/\n\n/**\n  Renders the view again. This will work regardless of whether the\n  view is already in the DOM or not. If the view is in the DOM, the\n  rendering process will be deferred to give bindings a chance\n  to synchronize.\n   If children were added during the rendering process using `appendChild`,\n  `rerender` will remove them, because they will be added again\n  if needed by the next `render`.\n   In general, if the display of your view changes, you should modify\n  the DOM element directly instead of manually calling `rerender`, which can\n  be slow.\n   @method rerender\n  @public\n*/\n\n// ..........................................................\n// ELEMENT SUPPORT\n//\n\n/**\n  Returns the current DOM element for the view.\n   @property element\n  @type DOMElement\n  @public\n*/\n\n/**\n  Returns a jQuery object for this view's element. If you pass in a selector\n  string, this method will return a jQuery object, using the current element\n  as its buffer.\n   For example, calling `view.$('li')` will return a jQuery object containing\n  all of the `li` elements inside the DOM element of this view.\n   @method $\n  @param {String} [selector] a jQuery-compatible selector string\n  @return {jQuery} the jQuery object for the DOM node\n  @public\n*/\n\n/**\n  Appends the view's element to the specified parent element.\n   Note that this method just schedules the view to be appended; the DOM\n  element will not be appended to the given element until all bindings have\n  finished synchronizing.\n   This is not typically a function that you will need to call directly when\n  building your application. If you do need to use `appendTo`, be sure that\n  the target element you are providing is associated with an `Ember.Application`\n  and does not have an ancestor element that is associated with an Ember view.\n   @method appendTo\n  @param {String|DOMElement|jQuery} A selector, element, HTML string, or jQuery object\n  @return {Ember.View} receiver\n  @private\n*/\n\n/**\n  Creates a new DOM element, renders the view into it, then returns the\n  element.\n   By default, the element created and rendered into will be a `BODY` element,\n  since this is the default context that views are rendered into when being\n  inserted directly into the DOM.\n   ```js\n  let element = view.renderToElement();\n  element.tagName; // => \"BODY\"\n  ```\n   You can override the kind of element rendered into and returned by\n  specifying an optional tag name as the first argument.\n   ```js\n  let element = view.renderToElement('table');\n  element.tagName; // => \"TABLE\"\n  ```\n   This method is useful if you want to render the view into an element that\n  is not in the document's body. Instead, a new `body` element, detached from\n  the DOM is returned. FastBoot uses this to serialize the rendered view into\n  a string for transmission over the network.\n   ```js\n  app.visit('/').then(function(instance) {\n    let element;\n    Ember.run(function() {\n      element = renderToElement(instance);\n    });\n     res.send(serialize(element));\n  });\n  ```\n   @method renderToElement\n  @param {String} tagName The tag of the element to create and render into. Defaults to \"body\".\n  @return {HTMLBodyElement} element\n  @deprecated Use appendTo instead.\n  @private\n*/\n\n/**\n  Replaces the content of the specified parent element with this view's\n  element. If the view does not have an HTML representation yet,\n  the element will be generated automatically.\n   Note that this method just schedules the view to be appended; the DOM\n  element will not be appended to the given element until all bindings have\n  finished synchronizing\n   @method replaceIn\n  @param {String|DOMElement|jQuery} target A selector, element, HTML string, or jQuery object\n  @return {Ember.View} received\n  @private\n*/\n\n/**\n  Appends the view's element to the document body. If the view does\n  not have an HTML representation yet\n  the element will be generated automatically.\n   If your application uses the `rootElement` property, you must append\n  the view within that element. Rendering views outside of the `rootElement`\n  is not supported.\n   Note that this method just schedules the view to be appended; the DOM\n  element will not be appended to the document body until all bindings have\n  finished synchronizing.\n   @method append\n  @return {Ember.View} receiver\n  @private\n*/\n\n/**\n  The HTML `id` of the view's element in the DOM. You can provide this\n  value yourself but it must be unique (just as in HTML):\n   ```handlebars\n    {{my-component elementId=\"a-really-cool-id\"}}\n  ```\n   If not manually set a default value will be provided by the framework.\n   Once rendered an element's `elementId` is considered immutable and you\n  should never change it. If you need to compute a dynamic value for the\n  `elementId`, you should do this when the component or element is being\n  instantiated:\n   ```javascript\n    export default Ember.Component.extend({\n      init() {\n        this._super(...arguments);\n        let index = this.get('index');\n        this.set('elementId', 'component-id' + index);\n      }\n    });\n  ```\n   @property elementId\n  @type String\n  @public\n*/\n\n/**\n  Attempts to discover the element in the parent element. The default\n  implementation looks for an element with an ID of `elementId` (or the\n  view's guid if `elementId` is null). You can override this method to\n  provide your own form of lookup. For example, if you want to discover your\n  element using a CSS class name instead of an ID.\n   @method findElementInParentElement\n  @param {DOMElement} parentElement The parent's DOM element\n  @return {DOMElement} The discovered element\n  @private\n*/\n\n/**\n  Called when a view is going to insert an element into the DOM.\n   @event willInsertElement\n  @public\n*/\n\n/**\n  Called when the element of the view has been inserted into the DOM.\n  Override this function to do any set up that requires an element\n  in the document body.\n   When a view has children, didInsertElement will be called on the\n  child view(s) first and on itself afterwards.\n   @event didInsertElement\n  @public\n*/\n\n/**\n  Called when the view is about to rerender, but before anything has\n  been torn down. This is a good opportunity to tear down any manual\n  observers you have installed based on the DOM state\n   @event willClearRender\n  @public\n*/\n\n/**\n  You must call `destroy` on a view to destroy the view (and all of its\n  child views). This will remove the view from any parent node, then make\n  sure that the DOM element managed by the view can be released by the\n  memory manager.\n   @method destroy\n  @private\n*/\n\n/**\n  Called when the element of the view is going to be destroyed. Override\n  this function to do any teardown that requires an element, like removing\n  event listeners.\n   Please note: any property changes made during this event will have no\n  effect on object observers.\n   @event willDestroyElement\n  @public\n*/\n\n/**\n  Called when the parentView property has changed.\n   @event parentViewDidChange\n  @private\n*/\n\n// ..........................................................\n// STANDARD RENDER PROPERTIES\n//\n\n/**\n  Tag name for the view's outer element. The tag name is only used when an\n  element is first created. If you change the `tagName` for an element, you\n  must destroy and recreate the view element.\n   By default, the render buffer will use a `<div>` tag for views.\n   @property tagName\n  @type String\n  @default null\n  @public\n*/\n\n// We leave this null by default so we can tell the difference between\n// the default case and a user-specified tag.\n\n// .......................................................\n// CORE DISPLAY METHODS\n//\n\n/**\n  Setup a view, but do not finish waking it up.\n   * configure `childViews`\n  * register the view with the global views hash, which is used for event\n    dispatch\n   @method init\n  @private\n*/\n\n// .......................................................\n// EVENT HANDLING\n//\n\n/**\n  Handle events from `Ember.EventDispatcher`\n   @method handleEvent\n  @param eventName {String}\n  @param evt {Event}\n  @private\n*/\nenifed(\"ember-views/system/action_manager\", [\"exports\"], function (exports) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  \"use strict\";\n\n  exports.default = ActionManager;\n\n  function ActionManager() {}\n\n  /**\n    Global action id hash.\n  \n    @private\n    @property registeredActions\n    @type Object\n  */\n  ActionManager.registeredActions = {};\n});\nenifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views/system/jquery', 'ember-views/system/action_manager', 'ember-environment', 'ember-views/compat/fallback-view-registry'], function (exports, _emberUtils, _emberDebug, _emberMetal, _emberRuntime, _emberViewsSystemJquery, _emberViewsSystemAction_manager, _emberEnvironment, _emberViewsCompatFallbackViewRegistry) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  'use strict';\n\n  var ROOT_ELEMENT_CLASS = 'ember-application';\n  var ROOT_ELEMENT_SELECTOR = '.' + ROOT_ELEMENT_CLASS;\n\n  /**\n    `Ember.EventDispatcher` handles delegating browser events to their\n    corresponding `Ember.Views.` For example, when you click on a view,\n    `Ember.EventDispatcher` ensures that that view's `mouseDown` method gets\n    called.\n  \n    @class EventDispatcher\n    @namespace Ember\n    @private\n    @extends Ember.Object\n  */\n  exports.default = _emberRuntime.Object.extend({\n\n    /**\n      The set of events names (and associated handler function names) to be setup\n      and dispatched by the `EventDispatcher`. Modifications to this list can be done\n      at setup time, generally via the `Ember.Application.customEvents` hash.\n       To add new events to be listened to:\n       ```javascript\n      let App = Ember.Application.create({\n        customEvents: {\n          paste: 'paste'\n        }\n      });\n      ```\n       To prevent default events from being listened to:\n       ```javascript\n      let App = Ember.Application.create({\n        customEvents: {\n          mouseenter: null,\n          mouseleave: null\n        }\n      });\n      ```\n      @property events\n      @type Object\n      @private\n    */\n    events: {\n      touchstart: 'touchStart',\n      touchmove: 'touchMove',\n      touchend: 'touchEnd',\n      touchcancel: 'touchCancel',\n      keydown: 'keyDown',\n      keyup: 'keyUp',\n      keypress: 'keyPress',\n      mousedown: 'mouseDown',\n      mouseup: 'mouseUp',\n      contextmenu: 'contextMenu',\n      click: 'click',\n      dblclick: 'doubleClick',\n      mousemove: 'mouseMove',\n      focusin: 'focusIn',\n      focusout: 'focusOut',\n      mouseenter: 'mouseEnter',\n      mouseleave: 'mouseLeave',\n      submit: 'submit',\n      input: 'input',\n      change: 'change',\n      dragstart: 'dragStart',\n      drag: 'drag',\n      dragenter: 'dragEnter',\n      dragleave: 'dragLeave',\n      dragover: 'dragOver',\n      drop: 'drop',\n      dragend: 'dragEnd'\n    },\n\n    /**\n      The root DOM element to which event listeners should be attached. Event\n      listeners will be attached to the document unless this is overridden.\n       Can be specified as a DOMElement or a selector string.\n       The default body is a string since this may be evaluated before document.body\n      exists in the DOM.\n       @private\n      @property rootElement\n      @type DOMElement\n      @default 'body'\n    */\n    rootElement: 'body',\n\n    /**\n      It enables events to be dispatched to the view's `eventManager.` When present,\n      this object takes precedence over handling of events on the view itself.\n       Note that most Ember applications do not use this feature. If your app also\n      does not use it, consider setting this property to false to gain some performance\n      improvement by allowing the EventDispatcher to skip the search for the\n      `eventManager` on the view tree.\n       ```javascript\n      let EventDispatcher = Em.EventDispatcher.extend({\n        events: {\n            click       : 'click',\n            focusin     : 'focusIn',\n            focusout    : 'focusOut',\n            change      : 'change'\n        },\n        canDispatchToEventManager: false\n      });\n      container.register('event_dispatcher:main', EventDispatcher);\n      ```\n       @property canDispatchToEventManager\n      @type boolean\n      @default false\n      @since 1.7.0\n      @private\n    */\n    canDispatchToEventManager: null,\n\n    init: function () {\n      this._super();\n      _emberDebug.assert('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', _emberEnvironment.environment.hasDOM);\n    },\n\n    /**\n      Sets up event listeners for standard browser events.\n       This will be called after the browser sends a `DOMContentReady` event. By\n      default, it will set up all of the listeners on the document body. If you\n      would like to register the listeners on a different element, set the event\n      dispatcher's `root` property.\n       @private\n      @method setup\n      @param addedEvents {Object}\n    */\n    setup: function (addedEvents, rootElement) {\n      var event = undefined;\n      var events = this._finalEvents = _emberUtils.assign({}, _emberMetal.get(this, 'events'), addedEvents);\n\n      if (_emberMetal.isNone(rootElement)) {\n        rootElement = _emberMetal.get(this, 'rootElement');\n      } else {\n        _emberMetal.set(this, 'rootElement', rootElement);\n      }\n\n      rootElement = _emberViewsSystemJquery.default(rootElement);\n\n      _emberDebug.assert('You cannot use the same root element (' + (rootElement.selector || rootElement[0].tagName) + ') multiple times in an Ember.Application', !rootElement.is(ROOT_ELEMENT_SELECTOR));\n      _emberDebug.assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length);\n      _emberDebug.assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length);\n\n      rootElement.addClass(ROOT_ELEMENT_CLASS);\n\n      if (!rootElement.is(ROOT_ELEMENT_SELECTOR)) {\n        throw new TypeError('Unable to add \\'' + ROOT_ELEMENT_CLASS + '\\' class to root element (' + (rootElement.selector || rootElement[0].tagName) + '). Make sure you set rootElement to the body or an element in the body.');\n      }\n\n      var viewRegistry = this._getViewRegistry();\n\n      for (event in events) {\n        if (events.hasOwnProperty(event)) {\n          this.setupHandler(rootElement, event, events[event], viewRegistry);\n        }\n      }\n    },\n\n    /**\n      Registers an event listener on the rootElement. If the given event is\n      triggered, the provided event handler will be triggered on the target view.\n       If the target view does not implement the event handler, or if the handler\n      returns `false`, the parent view will be called. The event will continue to\n      bubble to each successive parent view until it reaches the top.\n       @private\n      @method setupHandler\n      @param {Element} rootElement\n      @param {String} event the browser-originated event to listen to\n      @param {String} eventName the name of the method to call on the view\n      @param {Object} viewRegistry\n    */\n    setupHandler: function (rootElement, event, eventName, viewRegistry) {\n      var self = this;\n\n      if (eventName === null) {\n        return;\n      }\n\n      rootElement.on(event + '.ember', '.ember-view', function (evt, triggeringManager) {\n        var view = viewRegistry[this.id];\n        var result = true;\n\n        var manager = self.canDispatchToEventManager ? self._findNearestEventManager(view, eventName) : null;\n\n        if (manager && manager !== triggeringManager) {\n          result = self._dispatchEvent(manager, evt, eventName, view);\n        } else if (view) {\n          result = self._bubbleEvent(view, evt, eventName);\n        }\n\n        return result;\n      });\n\n      rootElement.on(event + '.ember', '[data-ember-action]', function (evt) {\n        var attributes = evt.currentTarget.attributes;\n        var handledActions = [];\n\n        for (var i = 0; i < attributes.length; i++) {\n          var attr = attributes.item(i);\n          var attrName = attr.name;\n\n          if (attrName.lastIndexOf('data-ember-action-', 0) !== -1) {\n            var action = _emberViewsSystemAction_manager.default.registeredActions[attr.value];\n\n            // We have to check for action here since in some cases, jQuery will trigger\n            // an event on `removeChild` (i.e. focusout) after we've already torn down the\n            // action handlers for the view.\n            if (action && action.eventName === eventName && handledActions.indexOf(action) === -1) {\n              action.handler(evt);\n              // Action handlers can mutate state which in turn creates new attributes on the element.\n              // This effect could cause the `data-ember-action` attribute to shift down and be invoked twice.\n              // To avoid this, we keep track of which actions have been handled.\n              handledActions.push(action);\n            }\n          }\n        }\n      });\n    },\n\n    _getViewRegistry: function () {\n      var owner = _emberUtils.getOwner(this);\n      var viewRegistry = owner && owner.lookup('-view-registry:main') || _emberViewsCompatFallbackViewRegistry.default;\n\n      return viewRegistry;\n    },\n\n    _findNearestEventManager: function (view, eventName) {\n      var manager = null;\n\n      while (view) {\n        manager = _emberMetal.get(view, 'eventManager');\n        if (manager && manager[eventName]) {\n          break;\n        }\n\n        view = _emberMetal.get(view, 'parentView');\n      }\n\n      return manager;\n    },\n\n    _dispatchEvent: function (object, evt, eventName, view) {\n      var result = true;\n\n      var handler = object[eventName];\n      if (typeof handler === 'function') {\n        result = _emberMetal.run(object, handler, evt, view);\n        // Do not preventDefault in eventManagers.\n        evt.stopPropagation();\n      } else {\n        result = this._bubbleEvent(view, evt, eventName);\n      }\n\n      return result;\n    },\n\n    _bubbleEvent: function (view, evt, eventName) {\n      return view.handleEvent(eventName, evt);\n    },\n\n    destroy: function () {\n      var rootElement = _emberMetal.get(this, 'rootElement');\n      _emberViewsSystemJquery.default(rootElement).off('.ember', '**').removeClass(ROOT_ELEMENT_CLASS);\n      return this._super.apply(this, arguments);\n    },\n\n    toString: function () {\n      return '(EventDispatcher)';\n    }\n  });\n});\nenifed('ember-views/system/ext', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  'use strict';\n\n  // Add a new named queue for rendering views that happens\n  // after bindings have synced, and a queue for scheduling actions\n  // that should occur after view rendering.\n  _emberMetal.run._addQueue('render', 'actions');\n  _emberMetal.run._addQueue('afterRender', 'render');\n});\nenifed('ember-views/system/jquery', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {\n  'use strict';\n\n  var jQuery = undefined;\n\n  if (_emberEnvironment.environment.hasDOM) {\n    jQuery = _emberEnvironment.context.imports.jQuery;\n\n    if (jQuery) {\n      if (jQuery.event.addProp) {\n        jQuery.event.addProp('dataTransfer');\n      } else {\n        // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents\n        ['dragstart', 'drag', 'dragenter', 'dragleave', 'dragover', 'drop', 'dragend'].forEach(function (eventName) {\n          jQuery.event.fixHooks[eventName] = {\n            props: ['dataTransfer']\n          };\n        });\n      }\n    }\n  }\n\n  exports.default = jQuery;\n});\nenifed('ember-views/system/lookup_partial', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  exports.default = lookupPartial;\n  exports.hasPartial = hasPartial;\n\n  function parseUnderscoredName(templateName) {\n    var nameParts = templateName.split('/');\n    var lastPart = nameParts[nameParts.length - 1];\n\n    nameParts[nameParts.length - 1] = '_' + lastPart;\n\n    return nameParts.join('/');\n  }\n\n  function lookupPartial(templateName, owner) {\n    if (templateName == null) {\n      return;\n    }\n\n    var template = templateFor(owner, parseUnderscoredName(templateName), templateName);\n\n    _emberDebug.assert('Unable to find partial with name \"' + templateName + '\"', !!template);\n\n    return template;\n  }\n\n  function hasPartial(name, owner) {\n    if (!owner) {\n      throw new _emberDebug.Error('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');\n    }\n\n    return owner.hasRegistration('template:' + parseUnderscoredName(name)) || owner.hasRegistration('template:' + name);\n  }\n\n  function templateFor(owner, underscored, name) {\n    if (!name) {\n      return;\n    }\n    _emberDebug.assert('templateNames are not allowed to contain periods: ' + name, name.indexOf('.') === -1);\n\n    if (!owner) {\n      throw new _emberDebug.Error('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');\n    }\n\n    return owner.lookup('template:' + underscored) || owner.lookup('template:' + name);\n  }\n});\nenifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  /* globals Element */\n  'use strict';\n\n  exports.isSimpleClick = isSimpleClick;\n  exports.constructStyleDeprecationMessage = constructStyleDeprecationMessage;\n  exports.getRootViews = getRootViews;\n  exports.getViewId = getViewId;\n  exports.getViewElement = getViewElement;\n  exports.initViewElement = initViewElement;\n  exports.setViewElement = setViewElement;\n  exports.getChildViews = getChildViews;\n  exports.initChildViews = initChildViews;\n  exports.addChildView = addChildView;\n  exports.collectChildViews = collectChildViews;\n  exports.getViewBounds = getViewBounds;\n  exports.getViewRange = getViewRange;\n  exports.getViewClientRects = getViewClientRects;\n  exports.getViewBoundingClientRect = getViewBoundingClientRect;\n  exports.matches = matches;\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  function isSimpleClick(event) {\n    var modifier = event.shiftKey || event.metaKey || event.altKey || event.ctrlKey;\n    var secondaryClick = event.which > 1; // IE9 may return undefined\n\n    return !modifier && !secondaryClick;\n  }\n\n  function constructStyleDeprecationMessage(affectedStyle) {\n    return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: \"' + affectedStyle + '\"';\n  }\n\n  /**\n    @private\n    @method getRootViews\n    @param {Object} owner\n  */\n\n  function getRootViews(owner) {\n    var registry = owner.lookup('-view-registry:main');\n\n    var rootViews = [];\n\n    Object.keys(registry).forEach(function (id) {\n      var view = registry[id];\n\n      if (view.parentView === null) {\n        rootViews.push(view);\n      }\n    });\n\n    return rootViews;\n  }\n\n  /**\n    @private\n    @method getViewId\n    @param {Ember.View} view\n   */\n\n  function getViewId(view) {\n    if (view.tagName === '') {\n      return _emberUtils.guidFor(view);\n    } else {\n      return view.elementId || _emberUtils.guidFor(view);\n    }\n  }\n\n  var VIEW_ELEMENT = _emberUtils.symbol('VIEW_ELEMENT');\n\n  /**\n    @private\n    @method getViewElement\n    @param {Ember.View} view\n   */\n\n  function getViewElement(view) {\n    return view[VIEW_ELEMENT];\n  }\n\n  function initViewElement(view) {\n    view[VIEW_ELEMENT] = null;\n  }\n\n  function setViewElement(view, element) {\n    return view[VIEW_ELEMENT] = element;\n  }\n\n  var CHILD_VIEW_IDS = _emberUtils.symbol('CHILD_VIEW_IDS');\n\n  /**\n    @private\n    @method getChildViews\n    @param {Ember.View} view\n  */\n\n  function getChildViews(view) {\n    var owner = _emberUtils.getOwner(view);\n    var registry = owner.lookup('-view-registry:main');\n    return collectChildViews(view, registry);\n  }\n\n  function initChildViews(view) {\n    view[CHILD_VIEW_IDS] = [];\n  }\n\n  function addChildView(parent, child) {\n    parent[CHILD_VIEW_IDS].push(getViewId(child));\n  }\n\n  function collectChildViews(view, registry) {\n    var ids = [];\n    var views = [];\n\n    view[CHILD_VIEW_IDS].forEach(function (id) {\n      var view = registry[id];\n\n      if (view && !view.isDestroying && !view.isDestroyed && ids.indexOf(id) === -1) {\n        ids.push(id);\n        views.push(view);\n      }\n    });\n\n    view[CHILD_VIEW_IDS] = ids;\n\n    return views;\n  }\n\n  /**\n    @private\n    @method getViewBounds\n    @param {Ember.View} view\n  */\n\n  function getViewBounds(view) {\n    return view.renderer.getBounds(view);\n  }\n\n  /**\n    @private\n    @method getViewRange\n    @param {Ember.View} view\n  */\n\n  function getViewRange(view) {\n    var bounds = getViewBounds(view);\n\n    var range = document.createRange();\n    range.setStartBefore(bounds.firstNode);\n    range.setEndAfter(bounds.lastNode);\n\n    return range;\n  }\n\n  /**\n    `getViewClientRects` provides information about the position of the border\n    box edges of a view relative to the viewport.\n  \n    It is only intended to be used by development tools like the Ember Inspector\n    and may not work on older browsers.\n  \n    @private\n    @method getViewClientRects\n    @param {Ember.View} view\n  */\n\n  function getViewClientRects(view) {\n    var range = getViewRange(view);\n    return range.getClientRects();\n  }\n\n  /**\n    `getViewBoundingClientRect` provides information about the position of the\n    bounding border box edges of a view relative to the viewport.\n  \n    It is only intended to be used by development tools like the Ember Inpsector\n    and may not work on older browsers.\n  \n    @private\n    @method getViewBoundingClientRect\n    @param {Ember.View} view\n  */\n\n  function getViewBoundingClientRect(view) {\n    var range = getViewRange(view);\n    return range.getBoundingClientRect();\n  }\n\n  /**\n    Determines if the element matches the specified selector.\n  \n    @private\n    @method matches\n    @param {DOMElement} el\n    @param {String} selector\n  */\n  var elMatches = typeof Element !== 'undefined' && (Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector);\n\n  exports.elMatches = elMatches;\n\n  function matches(el, selector) {\n    return elMatches.call(el, selector);\n  }\n});\nenifed('ember-views/utils/lookup-component', ['exports', 'container'], function (exports, _container) {\n  'use strict';\n\n  exports.default = lookupComponent;\n\n  var _templateObject = babelHelpers.taggedTemplateLiteralLoose(['component:-default'], ['component:-default']);\n\n  function lookupComponentPair(componentLookup, owner, name, options) {\n    var component = componentLookup.componentFor(name, owner, options);\n    var layout = componentLookup.layoutFor(name, owner, options);\n\n    var result = { layout: layout, component: component };\n\n    if (layout && !component) {\n      result.component = owner[_container.FACTORY_FOR](_container.privatize(_templateObject));\n    }\n\n    return result;\n  }\n\n  function lookupComponent(owner, name, options) {\n    var componentLookup = owner.lookup('component-lookup:main');\n\n    var source = options && options.source;\n\n    if (source) {\n      var localResult = lookupComponentPair(componentLookup, owner, name, options);\n\n      if (localResult.component || localResult.layout) {\n        return localResult;\n      }\n    }\n\n    return lookupComponentPair(componentLookup, owner, name);\n  }\n});\nenifed('ember-views/views/core_view', ['exports', 'ember-runtime', 'ember-views/system/utils', 'ember-views/views/states'], function (exports, _emberRuntime, _emberViewsSystemUtils, _emberViewsViewsStates) {\n  'use strict';\n\n  /**\n    `Ember.CoreView` is an abstract class that exists to give view-like behavior\n    to both Ember's main view class `Ember.Component` and other classes that don't need\n    the full functionality of `Ember.Component`.\n  \n    Unless you have specific needs for `CoreView`, you will use `Ember.Component`\n    in your applications.\n  \n    @class CoreView\n    @namespace Ember\n    @extends Ember.Object\n    @deprecated Use `Ember.Component` instead.\n    @uses Ember.Evented\n    @uses Ember.ActionHandler\n    @private\n  */\n  var CoreView = _emberRuntime.FrameworkObject.extend(_emberRuntime.Evented, _emberRuntime.ActionHandler, {\n    isView: true,\n\n    _states: _emberViewsViewsStates.cloneStates(_emberViewsViewsStates.states),\n\n    init: function () {\n      this._super.apply(this, arguments);\n      this._state = 'preRender';\n      this._currentState = this._states.preRender;\n\n      _emberViewsSystemUtils.initViewElement(this);\n\n      if (!this.renderer) {\n        throw new Error('Cannot instantiate a component without a renderer. Please ensure that you are creating ' + this + ' with a proper container/registry.');\n      }\n    },\n\n    /**\n      If the view is currently inserted into the DOM of a parent view, this\n      property will point to the parent of the view.\n       @property parentView\n      @type Ember.View\n      @default null\n      @private\n    */\n    parentView: null,\n\n    instrumentDetails: function (hash) {\n      hash.object = this.toString();\n      hash.containerKey = this._debugContainerKey;\n      hash.view = this;\n      return hash;\n    },\n\n    /**\n      Override the default event firing from `Ember.Evented` to\n      also call methods with the given name.\n       @method trigger\n      @param name {String}\n      @private\n    */\n    trigger: function () {\n      this._super.apply(this, arguments);\n      var name = arguments[0];\n      var method = this[name];\n      if (method) {\n        var args = new Array(arguments.length - 1);\n        for (var i = 1; i < arguments.length; i++) {\n          args[i - 1] = arguments[i];\n        }\n        return method.apply(this, args);\n      }\n    },\n\n    has: function (name) {\n      return _emberRuntime.typeOf(this[name]) === 'function' || this._super(name);\n    }\n  });\n\n  _emberRuntime.deprecateUnderscoreActions(CoreView);\n\n  CoreView.reopenClass({\n    isViewFactory: true\n  });\n\n  exports.default = CoreView;\n});\nenifed('ember-views/views/states', ['exports', 'ember-utils', 'ember-views/views/states/default', 'ember-views/views/states/pre_render', 'ember-views/views/states/has_element', 'ember-views/views/states/in_dom', 'ember-views/views/states/destroying'], function (exports, _emberUtils, _emberViewsViewsStatesDefault, _emberViewsViewsStatesPre_render, _emberViewsViewsStatesHas_element, _emberViewsViewsStatesIn_dom, _emberViewsViewsStatesDestroying) {\n  'use strict';\n\n  exports.cloneStates = cloneStates;\n\n  function cloneStates(from) {\n    var into = {};\n\n    into._default = {};\n    into.preRender = Object.create(into._default);\n    into.destroying = Object.create(into._default);\n    into.hasElement = Object.create(into._default);\n    into.inDOM = Object.create(into.hasElement);\n\n    for (var stateName in from) {\n      if (!from.hasOwnProperty(stateName)) {\n        continue;\n      }\n      _emberUtils.assign(into[stateName], from[stateName]);\n    }\n\n    return into;\n  }\n\n  /*\n    Describe how the specified actions should behave in the various\n    states that a view can exist in. Possible states:\n  \n    * preRender: when a view is first instantiated, and after its\n      element was destroyed, it is in the preRender state\n    * hasElement: the DOM representation of the view is created,\n      and is ready to be inserted\n    * inDOM: once a view has been inserted into the DOM it is in\n      the inDOM state. A view spends the vast majority of its\n      existence in this state.\n    * destroyed: once a view has been destroyed (using the destroy\n      method), it is in this state. No further actions can be invoked\n      on a destroyed view.\n  */\n  var states = {\n    _default: _emberViewsViewsStatesDefault.default,\n    preRender: _emberViewsViewsStatesPre_render.default,\n    inDOM: _emberViewsViewsStatesIn_dom.default,\n    hasElement: _emberViewsViewsStatesHas_element.default,\n    destroying: _emberViewsViewsStatesDestroying.default\n  };\n  exports.states = states;\n});\nenifed('ember-views/views/states/default', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n  exports.default = {\n    // appendChild is only legal while rendering the buffer.\n    appendChild: function () {\n      throw new _emberDebug.EmberError('You can\\'t use appendChild outside of the rendering process');\n    },\n\n    // Handle events from `Ember.EventDispatcher`\n    handleEvent: function () {\n      return true; // continue event propagation\n    },\n\n    rerender: function () {},\n\n    destroy: function () {}\n  };\n});\nenifed('ember-views/views/states/destroying', ['exports', 'ember-utils', 'ember-debug', 'ember-views/views/states/default'], function (exports, _emberUtils, _emberDebug, _emberViewsViewsStatesDefault) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  var destroying = Object.create(_emberViewsViewsStatesDefault.default);\n\n  _emberUtils.assign(destroying, {\n    appendChild: function () {\n      throw new _emberDebug.Error('You can\\'t call appendChild on a view being destroyed');\n    },\n    rerender: function () {\n      throw new _emberDebug.Error('You can\\'t call rerender on a view being destroyed');\n    }\n  });\n\n  exports.default = destroying;\n});\nenifed('ember-views/views/states/has_element', ['exports', 'ember-utils', 'ember-views/views/states/default', 'ember-metal'], function (exports, _emberUtils, _emberViewsViewsStatesDefault, _emberMetal) {\n  'use strict';\n\n  var hasElement = Object.create(_emberViewsViewsStatesDefault.default);\n\n  _emberUtils.assign(hasElement, {\n\n    rerender: function (view) {\n      view.renderer.rerender(view);\n    },\n\n    destroy: function (view) {\n      view.renderer.remove(view);\n    },\n\n    // Handle events from `Ember.EventDispatcher`\n    handleEvent: function (view, eventName, event) {\n      if (view.has(eventName)) {\n        // Handler should be able to re-dispatch events, so we don't\n        // preventDefault or stopPropagation.\n        return _emberMetal.flaggedInstrument('interaction.' + eventName, { event: event, view: view }, function () {\n          return _emberMetal.run.join(view, view.trigger, eventName, event);\n        });\n      } else {\n        return true; // continue event propagation\n      }\n    }\n  });\n\n  exports.default = hasElement;\n});\nenifed('ember-views/views/states/in_dom', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-views/views/states/has_element'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberViewsViewsStatesHas_element) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  var inDOM = Object.create(_emberViewsViewsStatesHas_element.default);\n\n  _emberUtils.assign(inDOM, {\n    enter: function (view) {\n      // Register the view for event handling. This hash is used by\n      // Ember.EventDispatcher to dispatch incoming events.\n      view.renderer.register(view);\n\n      _emberDebug.runInDebug(function () {\n        _emberMetal._addBeforeObserver(view, 'elementId', function () {\n          throw new _emberDebug.Error('Changing a view\\'s elementId after creation is not allowed');\n        });\n      });\n    },\n\n    exit: function (view) {\n      view.renderer.unregister(view);\n    }\n  });\n\n  exports.default = inDOM;\n});\nenifed('ember-views/views/states/pre_render', ['exports', 'ember-views/views/states/default'], function (exports, _emberViewsViewsStatesDefault) {\n  'use strict';\n\n  /**\n  @module ember\n  @submodule ember-views\n  */\n\n  exports.default = Object.create(_emberViewsViewsStatesDefault.default);\n});\nenifed(\"ember-views/views/view\", [\"exports\"], function (exports) {\n  \"use strict\";\n});\n/**\n@module ember\n@submodule ember-views\n*/\n\n/**\n  @class View\n  @namespace Ember\n  @extends Ember.CoreView\n  @deprecated See http://emberjs.com/deprecations/v1.x/#toc_ember-view\n  @uses Ember.ClassNamesSupport\n  @private\n*/\nenifed(\"ember/features\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.default = { \"features-stripped-test\": false, \"ember-libraries-isregistered\": false, \"ember-improved-instrumentation\": false, \"ember-metal-weakmap\": false, \"ember-glimmer-allow-backtracking-rerender\": false, \"ember-testing-resume-test\": true, \"ember-factory-for\": true, \"ember-no-double-extend\": true, \"ember-routing-router-service\": false, \"ember-unique-location-history-state\": true, \"mandatory-setter\": true, \"ember-glimmer-detect-backtracking-rerender\": true };\n});\nenifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils', 'container', 'ember-metal', 'ember-debug', 'backburner', 'ember-console', 'ember-runtime', 'ember-glimmer', 'ember/version', 'ember-views', 'ember-routing', 'ember-application', 'ember-extension-support'], function (exports, _require, _emberEnvironment, _emberUtils, _container, _emberMetal, _emberDebug, _backburner, _emberConsole, _emberRuntime, _emberGlimmer, _emberVersion, _emberViews, _emberRouting, _emberApplication, _emberExtensionSupport) {\n  'use strict';\n\n  // ember-utils exports\n  _emberMetal.default.getOwner = _emberUtils.getOwner;\n  _emberMetal.default.setOwner = _emberUtils.setOwner;\n  _emberMetal.default.generateGuid = _emberUtils.generateGuid;\n  _emberMetal.default.GUID_KEY = _emberUtils.GUID_KEY;\n  _emberMetal.default.guidFor = _emberUtils.guidFor;\n  _emberMetal.default.inspect = _emberUtils.inspect;\n  _emberMetal.default.makeArray = _emberUtils.makeArray;\n  _emberMetal.default.canInvoke = _emberUtils.canInvoke;\n  _emberMetal.default.tryInvoke = _emberUtils.tryInvoke;\n  _emberMetal.default.wrap = _emberUtils.wrap;\n  _emberMetal.default.applyStr = _emberUtils.applyStr;\n  _emberMetal.default.uuid = _emberUtils.uuid;\n  _emberMetal.default.assign = Object.assign || _emberUtils.assign;\n\n  // container exports\n  _emberMetal.default.Container = _container.Container;\n  _emberMetal.default.Registry = _container.Registry;\n\n  // need to import this directly, to ensure the babel feature\n  // flag plugin works properly\n\n  var computed = _emberMetal.computed;\n  computed.alias = _emberMetal.alias;\n  _emberMetal.default.computed = computed;\n  _emberMetal.default.ComputedProperty = _emberMetal.ComputedProperty;\n  _emberMetal.default.cacheFor = _emberMetal.cacheFor;\n\n  _emberMetal.default.assert = _emberDebug.assert;\n  _emberMetal.default.warn = _emberDebug.warn;\n  _emberMetal.default.debug = _emberDebug.debug;\n  _emberMetal.default.deprecate = function () {};\n  _emberMetal.default.deprecateFunc = function () {};\n  _emberDebug.runInDebug(function () {\n    _emberMetal.default.deprecate = _emberDebug.deprecate;\n    _emberMetal.default.deprecateFunc = _emberDebug.deprecateFunc;\n  });\n  _emberMetal.default.deprecateFunc = _emberDebug.deprecateFunc;\n  _emberMetal.default.runInDebug = _emberDebug.runInDebug;\n  /**\n    @public\n    @class Ember.Debug\n  */\n  _emberMetal.default.Debug = {\n    registerDeprecationHandler: _emberDebug.registerDeprecationHandler,\n    registerWarnHandler: _emberDebug.registerWarnHandler\n  };\n  _emberMetal.default.merge = _emberMetal.merge;\n\n  _emberMetal.default.instrument = _emberMetal.instrument;\n  _emberMetal.default.subscribe = _emberMetal.instrumentationSubscribe;\n  _emberMetal.default.Instrumentation = {\n    instrument: _emberMetal.instrument,\n    subscribe: _emberMetal.instrumentationSubscribe,\n    unsubscribe: _emberMetal.instrumentationUnsubscribe,\n    reset: _emberMetal.instrumentationReset\n  };\n\n  _emberMetal.default.Error = _emberDebug.Error;\n  _emberMetal.default.META_DESC = _emberMetal.META_DESC;\n  _emberMetal.default.meta = _emberMetal.meta;\n  _emberMetal.default.get = _emberMetal.get;\n  _emberMetal.default.getWithDefault = _emberMetal.getWithDefault;\n  _emberMetal.default._getPath = _emberMetal._getPath;\n  _emberMetal.default.set = _emberMetal.set;\n  _emberMetal.default.trySet = _emberMetal.trySet;\n  _emberMetal.default.FEATURES = _emberDebug.FEATURES;\n  _emberMetal.default.FEATURES.isEnabled = _emberDebug.isFeatureEnabled;\n  _emberMetal.default._Cache = _emberMetal.Cache;\n  _emberMetal.default.on = _emberMetal.on;\n  _emberMetal.default.addListener = _emberMetal.addListener;\n  _emberMetal.default.removeListener = _emberMetal.removeListener;\n  _emberMetal.default._suspendListener = _emberMetal.suspendListener;\n  _emberMetal.default._suspendListeners = _emberMetal.suspendListeners;\n  _emberMetal.default.sendEvent = _emberMetal.sendEvent;\n  _emberMetal.default.hasListeners = _emberMetal.hasListeners;\n  _emberMetal.default.watchedEvents = _emberMetal.watchedEvents;\n  _emberMetal.default.listenersFor = _emberMetal.listenersFor;\n  _emberMetal.default.accumulateListeners = _emberMetal.accumulateListeners;\n  _emberMetal.default.isNone = _emberMetal.isNone;\n  _emberMetal.default.isEmpty = _emberMetal.isEmpty;\n  _emberMetal.default.isBlank = _emberMetal.isBlank;\n  _emberMetal.default.isPresent = _emberMetal.isPresent;\n  _emberMetal.default.run = _emberMetal.run;\n  _emberMetal.default._ObserverSet = _emberMetal.ObserverSet;\n  _emberMetal.default.propertyWillChange = _emberMetal.propertyWillChange;\n  _emberMetal.default.propertyDidChange = _emberMetal.propertyDidChange;\n  _emberMetal.default.overrideChains = _emberMetal.overrideChains;\n  _emberMetal.default.beginPropertyChanges = _emberMetal.beginPropertyChanges;\n  _emberMetal.default.endPropertyChanges = _emberMetal.endPropertyChanges;\n  _emberMetal.default.changeProperties = _emberMetal.changeProperties;\n  _emberMetal.default.platform = {\n    defineProperty: true,\n    hasPropertyAccessors: true\n  };\n  _emberMetal.default.defineProperty = _emberMetal.defineProperty;\n  _emberMetal.default.watchKey = _emberMetal.watchKey;\n  _emberMetal.default.unwatchKey = _emberMetal.unwatchKey;\n  _emberMetal.default.removeChainWatcher = _emberMetal.removeChainWatcher;\n  _emberMetal.default._ChainNode = _emberMetal.ChainNode;\n  _emberMetal.default.finishChains = _emberMetal.finishChains;\n  _emberMetal.default.watchPath = _emberMetal.watchPath;\n  _emberMetal.default.unwatchPath = _emberMetal.unwatchPath;\n  _emberMetal.default.watch = _emberMetal.watch;\n  _emberMetal.default.isWatching = _emberMetal.isWatching;\n  _emberMetal.default.unwatch = _emberMetal.unwatch;\n  _emberMetal.default.destroy = _emberMetal.destroy;\n  _emberMetal.default.libraries = _emberMetal.libraries;\n  _emberMetal.default.OrderedSet = _emberMetal.OrderedSet;\n  _emberMetal.default.Map = _emberMetal.Map;\n  _emberMetal.default.MapWithDefault = _emberMetal.MapWithDefault;\n  _emberMetal.default.getProperties = _emberMetal.getProperties;\n  _emberMetal.default.setProperties = _emberMetal.setProperties;\n  _emberMetal.default.expandProperties = _emberMetal.expandProperties;\n  _emberMetal.default.NAME_KEY = _emberUtils.NAME_KEY;\n  _emberMetal.default.addObserver = _emberMetal.addObserver;\n  _emberMetal.default.observersFor = _emberMetal.observersFor;\n  _emberMetal.default.removeObserver = _emberMetal.removeObserver;\n  _emberMetal.default._suspendObserver = _emberMetal._suspendObserver;\n  _emberMetal.default._suspendObservers = _emberMetal._suspendObservers;\n  _emberMetal.default.required = _emberMetal.required;\n  _emberMetal.default.aliasMethod = _emberMetal.aliasMethod;\n  _emberMetal.default.observer = _emberMetal.observer;\n  _emberMetal.default.immediateObserver = _emberMetal._immediateObserver;\n  _emberMetal.default.mixin = _emberMetal.mixin;\n  _emberMetal.default.Mixin = _emberMetal.Mixin;\n  _emberMetal.default.bind = _emberMetal.bind;\n  _emberMetal.default.Binding = _emberMetal.Binding;\n  _emberMetal.default.isGlobalPath = _emberMetal.isGlobalPath;\n\n  if (_emberDebug.isFeatureEnabled('ember-metal-weakmap')) {\n    _emberMetal.default.WeakMap = _emberMetal.WeakMap;\n  }\n\n  Object.defineProperty(_emberMetal.default, 'ENV', {\n    get: function () {\n      return _emberEnvironment.ENV;\n    },\n    enumerable: false\n  });\n\n  /**\n   The context that Ember searches for namespace instances on.\n  \n   @private\n   */\n  Object.defineProperty(_emberMetal.default, 'lookup', {\n    get: function () {\n      return _emberEnvironment.context.lookup;\n    },\n    set: function (value) {\n      _emberEnvironment.context.lookup = value;\n    },\n    enumerable: false\n  });\n\n  _emberMetal.default.EXTEND_PROTOTYPES = _emberEnvironment.ENV.EXTEND_PROTOTYPES;\n\n  // BACKWARDS COMPAT ACCESSORS FOR ENV FLAGS\n  Object.defineProperty(_emberMetal.default, 'LOG_STACKTRACE_ON_DEPRECATION', {\n    get: function () {\n      return _emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION;\n    },\n    set: function (value) {\n      _emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION = !!value;\n    },\n    enumerable: false\n  });\n\n  Object.defineProperty(_emberMetal.default, 'LOG_VERSION', {\n    get: function () {\n      return _emberEnvironment.ENV.LOG_VERSION;\n    },\n    set: function (value) {\n      _emberEnvironment.ENV.LOG_VERSION = !!value;\n    },\n    enumerable: false\n  });\n\n  Object.defineProperty(_emberMetal.default, 'MODEL_FACTORY_INJECTIONS', {\n    get: function () {\n      return _emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS;\n    },\n    set: function (value) {\n      _emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS = !!value;\n    },\n    enumerable: false\n  });\n\n  Object.defineProperty(_emberMetal.default, 'LOG_BINDINGS', {\n    get: function () {\n      return _emberEnvironment.ENV.LOG_BINDINGS;\n    },\n    set: function (value) {\n      _emberEnvironment.ENV.LOG_BINDINGS = !!value;\n    },\n    enumerable: false\n  });\n\n  /**\n    A function may be assigned to `Ember.onerror` to be called when Ember\n    internals encounter an error. This is useful for specialized error handling\n    and reporting code.\n  \n    ```javascript\n    Ember.onerror = function(error) {\n      Em.$.ajax('/report-error', 'POST', {\n        stack: error.stack,\n        otherInformation: 'whatever app state you want to provide'\n      });\n    };\n    ```\n  \n    Internally, `Ember.onerror` is used as Backburner's error handler.\n  \n    @event onerror\n    @for Ember\n    @param {Exception} error the error object\n    @public\n  */\n  Object.defineProperty(_emberMetal.default, 'onerror', {\n    get: _emberMetal.getOnerror,\n    set: _emberMetal.setOnerror,\n    enumerable: false\n  });\n\n  /**\n    An empty function useful for some operations. Always returns `this`.\n  \n    @method K\n    @return {Object}\n    @public\n  */\n  function deprecatedEmberK() {\n    return this;\n  }\n\n  Object.defineProperty(_emberMetal.default, 'K', {\n    get: function () {\n      _emberDebug.deprecate('Ember.K is deprecated in favor of defining a function inline.', false, {\n        id: 'ember-metal.ember-k',\n        until: '3.0.0',\n        url: 'http://emberjs.com/deprecations/v2.x#toc_code-ember-k-code'\n      });\n\n      return deprecatedEmberK;\n    }\n  });\n\n  Object.defineProperty(_emberMetal.default, 'testing', {\n    get: _emberDebug.isTesting,\n    set: _emberDebug.setTesting,\n    enumerable: false\n  });\n\n  /**\n   @class Backburner\n   @for Ember\n   @private\n   */\n  _emberMetal.default.Backburner = function () {\n    _emberDebug.deprecate('Usage of Ember.Backburner is deprecated.', false, {\n      id: 'ember-metal.ember-backburner',\n      until: '2.8.0',\n      url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-backburner'\n    });\n\n    function BackburnerAlias(args) {\n      return _backburner.default.apply(this, args);\n    }\n\n    BackburnerAlias.prototype = _backburner.default.prototype;\n\n    return new BackburnerAlias(arguments);\n  };\n\n  _emberMetal.default._Backburner = _backburner.default;\n\n  _emberMetal.default.Logger = _emberConsole.default;\n\n  // ****ember-runtime****\n\n  _emberMetal.default.String = _emberRuntime.String;\n  _emberMetal.default.Object = _emberRuntime.Object;\n  _emberMetal.default._RegistryProxyMixin = _emberRuntime.RegistryProxyMixin;\n  _emberMetal.default._ContainerProxyMixin = _emberRuntime.ContainerProxyMixin;\n  _emberMetal.default.compare = _emberRuntime.compare;\n  _emberMetal.default.copy = _emberRuntime.copy;\n  _emberMetal.default.isEqual = _emberRuntime.isEqual;\n  _emberMetal.default.inject = _emberRuntime.inject;\n  _emberMetal.default.Array = _emberRuntime.Array;\n  _emberMetal.default.Comparable = _emberRuntime.Comparable;\n  _emberMetal.default.Enumerable = _emberRuntime.Enumerable;\n  _emberMetal.default.ArrayProxy = _emberRuntime.ArrayProxy;\n  _emberMetal.default.ObjectProxy = _emberRuntime.ObjectProxy;\n  _emberMetal.default.ActionHandler = _emberRuntime.ActionHandler;\n  _emberMetal.default.CoreObject = _emberRuntime.CoreObject;\n  _emberMetal.default.NativeArray = _emberRuntime.NativeArray;\n  _emberMetal.default.Copyable = _emberRuntime.Copyable;\n  _emberMetal.default.Freezable = _emberRuntime.Freezable;\n  _emberMetal.default.FROZEN_ERROR = _emberRuntime.FROZEN_ERROR;\n  _emberMetal.default.MutableEnumerable = _emberRuntime.MutableEnumerable;\n  _emberMetal.default.MutableArray = _emberRuntime.MutableArray;\n  _emberMetal.default.TargetActionSupport = _emberRuntime.TargetActionSupport;\n  _emberMetal.default.Evented = _emberRuntime.Evented;\n  _emberMetal.default.PromiseProxyMixin = _emberRuntime.PromiseProxyMixin;\n  _emberMetal.default.Observable = _emberRuntime.Observable;\n  _emberMetal.default.typeOf = _emberRuntime.typeOf;\n  _emberMetal.default.isArray = _emberRuntime.isArray;\n  _emberMetal.default.Object = _emberRuntime.Object;\n  _emberMetal.default.onLoad = _emberRuntime.onLoad;\n  _emberMetal.default.runLoadHooks = _emberRuntime.runLoadHooks;\n  _emberMetal.default.Controller = _emberRuntime.Controller;\n  _emberMetal.default.ControllerMixin = _emberRuntime.ControllerMixin;\n  _emberMetal.default.Service = _emberRuntime.Service;\n  _emberMetal.default._ProxyMixin = _emberRuntime._ProxyMixin;\n  _emberMetal.default.RSVP = _emberRuntime.RSVP;\n  _emberMetal.default.Namespace = _emberRuntime.Namespace;\n\n  // ES6TODO: this seems a less than ideal way/place to add properties to Ember.computed\n  computed.empty = _emberRuntime.empty;\n  computed.notEmpty = _emberRuntime.notEmpty;\n  computed.none = _emberRuntime.none;\n  computed.not = _emberRuntime.not;\n  computed.bool = _emberRuntime.bool;\n  computed.match = _emberRuntime.match;\n  computed.equal = _emberRuntime.equal;\n  computed.gt = _emberRuntime.gt;\n  computed.gte = _emberRuntime.gte;\n  computed.lt = _emberRuntime.lt;\n  computed.lte = _emberRuntime.lte;\n  computed.oneWay = _emberRuntime.oneWay;\n  computed.reads = _emberRuntime.oneWay;\n  computed.readOnly = _emberRuntime.readOnly;\n  computed.deprecatingAlias = _emberRuntime.deprecatingAlias;\n  computed.and = _emberRuntime.and;\n  computed.or = _emberRuntime.or;\n  computed.any = _emberRuntime.any;\n\n  computed.sum = _emberRuntime.sum;\n  computed.min = _emberRuntime.min;\n  computed.max = _emberRuntime.max;\n  computed.map = _emberRuntime.map;\n  computed.sort = _emberRuntime.sort;\n  computed.setDiff = _emberRuntime.setDiff;\n  computed.mapBy = _emberRuntime.mapBy;\n  computed.filter = _emberRuntime.filter;\n  computed.filterBy = _emberRuntime.filterBy;\n  computed.uniq = _emberRuntime.uniq;\n\n  computed.uniqBy = _emberRuntime.uniqBy;\n  computed.union = _emberRuntime.union;\n  computed.intersect = _emberRuntime.intersect;\n  computed.collect = _emberRuntime.collect;\n\n  /**\n   Defines the hash of localized strings for the current language. Used by\n   the `Ember.String.loc()` helper. To localize, add string values to this\n   hash.\n  \n   @property STRINGS\n   @for Ember\n   @type Object\n   @private\n   */\n  Object.defineProperty(_emberMetal.default, 'STRINGS', {\n    configurable: false,\n    get: _emberRuntime.getStrings,\n    set: _emberRuntime.setStrings\n  });\n\n  /**\n   Whether searching on the global for new Namespace instances is enabled.\n  \n   This is only exported here as to not break any addons.  Given the new\n   visit API, you will have issues if you treat this as a indicator of\n   booted.\n  \n   Internally this is only exposing a flag in Namespace.\n  \n   @property BOOTED\n   @for Ember\n   @type Boolean\n   @private\n   */\n  Object.defineProperty(_emberMetal.default, 'BOOTED', {\n    configurable: false,\n    enumerable: false,\n    get: _emberRuntime.isNamespaceSearchDisabled,\n    set: _emberRuntime.setNamespaceSearchDisabled\n  });\n\n  _emberMetal.default.Component = _emberGlimmer.Component;\n  _emberGlimmer.Helper.helper = _emberGlimmer.helper;\n  _emberMetal.default.Helper = _emberGlimmer.Helper;\n  _emberMetal.default.Checkbox = _emberGlimmer.Checkbox;\n  _emberMetal.default.TextField = _emberGlimmer.TextField;\n  _emberMetal.default.TextArea = _emberGlimmer.TextArea;\n  _emberMetal.default.LinkComponent = _emberGlimmer.LinkComponent;\n\n  if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n    String.prototype.htmlSafe = function () {\n      return _emberGlimmer.htmlSafe(this);\n    };\n  }\n\n  var EmberHandlebars = _emberMetal.default.Handlebars = _emberMetal.default.Handlebars || {};\n  var EmberHTMLBars = _emberMetal.default.HTMLBars = _emberMetal.default.HTMLBars || {};\n  var EmberHandleBarsUtils = EmberHandlebars.Utils = EmberHandlebars.Utils || {};\n\n  Object.defineProperty(EmberHandlebars, 'SafeString', {\n    get: _emberGlimmer._getSafeString\n  });\n\n  EmberHTMLBars.template = EmberHandlebars.template = _emberGlimmer.template;\n  EmberHandleBarsUtils.escapeExpression = _emberGlimmer.escapeExpression;\n  _emberRuntime.String.htmlSafe = _emberGlimmer.htmlSafe;\n\n  _emberRuntime.String.isHTMLSafe = _emberGlimmer.isHTMLSafe;\n  EmberHTMLBars.makeBoundHelper = _emberGlimmer.makeBoundHelper;\n\n  /**\n   Global hash of shared templates. This will automatically be populated\n   by the build tools so that you can store your Handlebars templates in\n   separate files that get loaded into JavaScript at buildtime.\n  \n   @property TEMPLATES\n   @for Ember\n   @type Object\n   @private\n   */\n  Object.defineProperty(_emberMetal.default, 'TEMPLATES', {\n    get: _emberGlimmer.getTemplates,\n    set: _emberGlimmer.setTemplates,\n    configurable: false,\n    enumerable: false\n  });\n\n  exports.VERSION = _emberVersion.default;\n\n  /**\n   The semantic version\n   @property VERSION\n   @type String\n   @public\n   */\n  _emberMetal.default.VERSION = _emberVersion.default;\n\n  _emberMetal.libraries.registerCoreLibrary('Ember', _emberVersion.default);\n\n  _emberMetal.default.create = _emberDebug.deprecateFunc('Ember.create is deprecated in favor of Object.create', { id: 'ember-metal.ember-create', until: '3.0.0' }, Object.create);\n  _emberMetal.default.keys = _emberDebug.deprecateFunc('Ember.keys is deprecated in favor of Object.keys', { id: 'ember-metal.ember.keys', until: '3.0.0' }, Object.keys);\n\n  // require the main entry points for each of these packages\n  // this is so that the global exports occur properly\n\n  /**\n   Alias for jQuery\n  \n   @method $\n   @for Ember\n   @public\n   */\n  _emberMetal.default.$ = _emberViews.jQuery;\n\n  _emberMetal.default.ViewTargetActionSupport = _emberViews.ViewTargetActionSupport;\n\n  _emberMetal.default.ViewUtils = {\n    isSimpleClick: _emberViews.isSimpleClick,\n    getViewElement: _emberViews.getViewElement,\n    getViewBounds: _emberViews.getViewBounds,\n    getViewClientRects: _emberViews.getViewClientRects,\n    getViewBoundingClientRect: _emberViews.getViewBoundingClientRect,\n    getRootViews: _emberViews.getRootViews,\n    getChildViews: _emberViews.getChildViews\n  };\n\n  _emberMetal.default.TextSupport = _emberViews.TextSupport;\n  _emberMetal.default.ComponentLookup = _emberViews.ComponentLookup;\n  _emberMetal.default.EventDispatcher = _emberViews.EventDispatcher;\n\n  _emberMetal.default.Location = _emberRouting.Location;\n  _emberMetal.default.AutoLocation = _emberRouting.AutoLocation;\n  _emberMetal.default.HashLocation = _emberRouting.HashLocation;\n  _emberMetal.default.HistoryLocation = _emberRouting.HistoryLocation;\n  _emberMetal.default.NoneLocation = _emberRouting.NoneLocation;\n  _emberMetal.default.controllerFor = _emberRouting.controllerFor;\n  _emberMetal.default.generateControllerFactory = _emberRouting.generateControllerFactory;\n  _emberMetal.default.generateController = _emberRouting.generateController;\n  _emberMetal.default.RouterDSL = _emberRouting.RouterDSL;\n  _emberMetal.default.Router = _emberRouting.Router;\n  _emberMetal.default.Route = _emberRouting.Route;\n\n  _emberMetal.default.Application = _emberApplication.Application;\n  _emberMetal.default.ApplicationInstance = _emberApplication.ApplicationInstance;\n  _emberMetal.default.Engine = _emberApplication.Engine;\n  _emberMetal.default.EngineInstance = _emberApplication.EngineInstance;\n  _emberMetal.default.DefaultResolver = _emberMetal.default.Resolver = _emberApplication.Resolver;\n\n  _emberRuntime.runLoadHooks('Ember.Application', _emberApplication.Application);\n\n  _emberMetal.default.DataAdapter = _emberExtensionSupport.DataAdapter;\n  _emberMetal.default.ContainerDebugAdapter = _emberExtensionSupport.ContainerDebugAdapter;\n\n  if (_require.has('ember-template-compiler')) {\n    _require.default('ember-template-compiler');\n  }\n\n  // do this to ensure that Ember.Test is defined properly on the global\n  // if it is present.\n  if (_require.has('ember-testing')) {\n    var testing = _require.default('ember-testing');\n\n    _emberMetal.default.Test = testing.Test;\n    _emberMetal.default.Test.Adapter = testing.Adapter;\n    _emberMetal.default.Test.QUnitAdapter = testing.QUnitAdapter;\n    _emberMetal.default.setupForTesting = testing.setupForTesting;\n  }\n\n  _emberRuntime.runLoadHooks('Ember');\n\n  /**\n  @module ember\n  */\n  exports.default = _emberMetal.default;\n\n  /* globals module */\n  if (typeof module === 'object' && module.exports) {\n    module.exports = _emberMetal.default;\n  } else {\n    _emberEnvironment.context.exports.Ember = _emberEnvironment.context.exports.Em = _emberMetal.default;\n  }\n});\n\n// ****ember-environment****\n\n// ****ember-metal****\n\n// computed macros\n\n// reduced computed macros\nenifed(\"ember/version\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.default = \"2.13.0\";\n});\nenifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n  'use strict';\n\n  exports.default = applyMixins;\n\n  function isGenerator(mixin) {\n    return Array.isArray(mixin.cases) && typeof mixin.generate === 'function';\n  }\n\n  function applyMixins(TestClass) {\n    for (var _len = arguments.length, mixins = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      mixins[_key - 1] = arguments[_key];\n    }\n\n    mixins.forEach(function (mixinOrGenerator) {\n      var mixin = undefined;\n\n      if (isGenerator(mixinOrGenerator)) {\n        (function () {\n          var generator = mixinOrGenerator;\n          mixin = {};\n\n          generator.cases.forEach(function (value, idx) {\n            _emberUtils.assign(mixin, generator.generate(value, idx));\n          });\n        })();\n      } else {\n        mixin = mixinOrGenerator;\n      }\n\n      _emberUtils.assign(TestClass.prototype, mixin);\n    });\n\n    return TestClass;\n  }\n});\nenifed('internal-test-helpers/build-owner', ['exports', 'container', 'ember-routing', 'ember-application', 'ember-debug', 'ember-runtime'], function (exports, _container, _emberRouting, _emberApplication, _emberDebug, _emberRuntime) {\n  'use strict';\n\n  exports.default = buildOwner;\n\n  function buildOwner() {\n    var _EmberObject$extend;\n\n    var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n    var ownerOptions = options.ownerOptions || {};\n    var resolver = options.resolver;\n    var bootOptions = options.bootOptions || {};\n\n    var Owner = _emberRuntime.Object.extend(_emberRuntime.RegistryProxyMixin, _emberRuntime.ContainerProxyMixin, (_EmberObject$extend = {}, _EmberObject$extend[_container.FACTORY_FOR] = function () {\n      var _container__;\n\n      return (_container__ = this.__container__)[_container.FACTORY_FOR].apply(_container__, arguments);\n    }, _EmberObject$extend[_container.LOOKUP_FACTORY] = function () {\n      var _container__2;\n\n      return (_container__2 = this.__container__)[_container.LOOKUP_FACTORY].apply(_container__2, arguments);\n    }, _EmberObject$extend));\n\n    if (true) {\n      Owner.reopen({\n        factoryFor: function () {\n          var _container__3;\n\n          return (_container__3 = this.__container__).factoryFor.apply(_container__3, arguments);\n        }\n      });\n    }\n\n    var namespace = _emberRuntime.Object.create({\n      Resolver: { create: function () {\n          return resolver;\n        } }\n    });\n\n    var fallbackRegistry = _emberApplication.Application.buildRegistry(namespace);\n    fallbackRegistry.register('router:main', _emberRouting.Router);\n\n    var registry = new _container.Registry({\n      fallback: fallbackRegistry\n    });\n\n    _emberApplication.ApplicationInstance.setupRegistry(registry, bootOptions);\n\n    var owner = Owner.create({\n      __registry__: registry,\n      __container__: null\n    }, ownerOptions);\n\n    var container = registry.container({ owner: owner });\n    owner.__container__ = container;\n\n    return owner;\n  }\n});\nenifed('internal-test-helpers/confirm-export', ['exports', 'require'], function (exports, _require) {\n  'use strict';\n\n  exports.default = confirmExport;\n\n  function getDescriptor(obj, path) {\n    var parts = path.split('.');\n    var value = obj;\n    for (var i = 0; i < parts.length - 1; i++) {\n      var part = parts[i];\n      value = value[part];\n      if (!value) {\n        return undefined;\n      }\n    }\n    var last = parts[parts.length - 1];\n    return Object.getOwnPropertyDescriptor(value, last);\n  }\n\n  function confirmExport(Ember, assert, path, moduleId, exportName) {\n    var desc = getDescriptor(Ember, path);\n    assert.ok(desc, 'the property exists on the global');\n\n    var mod = _require.default(moduleId);\n    if (typeof exportName === 'string') {\n      assert.equal(desc.value, mod[exportName], 'Ember.' + path + ' is exported correctly');\n      assert.notEqual(mod[exportName], undefined, 'Ember.' + path + ' is not `undefined`');\n    } else {\n      assert.equal(desc.get, mod[exportName.get], 'Ember.' + path + ' getter is exported correctly');\n      assert.notEqual(desc.get, undefined, 'Ember.' + path + ' getter is not undefined');\n\n      if (exportName.set) {\n        assert.equal(desc.set, mod[exportName.set], 'Ember.' + path + ' setter is exported correctly');\n        assert.notEqual(desc.set, undefined, 'Ember.' + path + ' setter is not undefined');\n      }\n    }\n  }\n});\nenifed('internal-test-helpers/equal-inner-html', ['exports'], function (exports) {\n  // detect side-effects of cloning svg elements in IE9-11\n  'use strict';\n\n  exports.default = equalInnerHTML;\n  var ieSVGInnerHTML = (function () {\n    if (!document.createElementNS) {\n      return false;\n    }\n    var div = document.createElement('div');\n    var node = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n    div.appendChild(node);\n    var clone = div.cloneNode(true);\n    return clone.innerHTML === '<svg xmlns=\"http://www.w3.org/2000/svg\" />';\n  })();\n\n  function normalizeInnerHTML(actualHTML) {\n    if (ieSVGInnerHTML) {\n      // Replace `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"50%\" />` with `<svg height=\"50%\"></svg>`, etc.\n      // drop namespace attribute\n      actualHTML = actualHTML.replace(/ xmlns=\"[^\"]+\"/, '');\n      // replace self-closing elements\n      actualHTML = actualHTML.replace(/<([^ >]+) [^\\/>]*\\/>/gi, function (tag, tagName) {\n        return tag.slice(0, tag.length - 3) + '></' + tagName + '>';\n      });\n    }\n\n    return actualHTML;\n  }\n\n  function equalInnerHTML(fragment, html) {\n    var actualHTML = normalizeInnerHTML(fragment.innerHTML);\n    QUnit.push(actualHTML === html, actualHTML, html);\n  }\n});\nenifed('internal-test-helpers/equal-tokens', ['exports', 'simple-html-tokenizer'], function (exports, _simpleHtmlTokenizer) {\n  'use strict';\n\n  exports.default = equalTokens;\n\n  function generateTokens(containerOrHTML) {\n    if (typeof containerOrHTML === 'string') {\n      return {\n        tokens: _simpleHtmlTokenizer.tokenize(containerOrHTML),\n        html: containerOrHTML\n      };\n    } else {\n      return {\n        tokens: _simpleHtmlTokenizer.tokenize(containerOrHTML.innerHTML),\n        html: containerOrHTML.innerHTML\n      };\n    }\n  }\n\n  function normalizeTokens(tokens) {\n    tokens.forEach(function (token) {\n      if (token.type === 'StartTag') {\n        token.attributes = token.attributes.sort(function (a, b) {\n          if (a[0] > b[0]) {\n            return 1;\n          }\n          if (a[0] < b[0]) {\n            return -1;\n          }\n          return 0;\n        });\n      }\n    });\n  }\n\n  function equalTokens(actualContainer, expectedHTML) {\n    var message = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2];\n\n    var actual = generateTokens(actualContainer);\n    var expected = generateTokens(expectedHTML);\n\n    normalizeTokens(actual.tokens);\n    normalizeTokens(expected.tokens);\n\n    var equiv = QUnit.equiv(actual.tokens, expected.tokens);\n\n    if (equiv && expected.html !== actual.html) {\n      deepEqual(actual.tokens, expected.tokens, message);\n    } else {\n      QUnit.push(QUnit.equiv(actual.tokens, expected.tokens), actual.html, expected.html, message);\n    }\n  }\n});\nenifed('internal-test-helpers/factory', ['exports'], function (exports) {\n  'use strict';\n\n  exports.default = factory;\n  function setProperties(object, properties) {\n    for (var key in properties) {\n      if (properties.hasOwnProperty(key)) {\n        object[key] = properties[key];\n      }\n    }\n  }\n\n  var guids = 0;\n\n  function factory() {\n    /*jshint validthis: true */\n\n    function Klass(options) {\n      setProperties(this, options);\n      this._guid = guids++;\n      this.isDestroyed = false;\n    }\n\n    Klass.prototype.constructor = Klass;\n    Klass.prototype.destroy = function () {\n      this.isDestroyed = true;\n    };\n\n    Klass.prototype.toString = function () {\n      return '<Factory:' + this._guid + '>';\n    };\n\n    Klass.create = create;\n    Klass.extend = extend;\n    Klass.reopen = extend;\n    Klass.reopenClass = reopenClass;\n\n    return Klass;\n\n    function create(options) {\n      return new this.prototype.constructor(options);\n    }\n\n    function reopenClass(options) {\n      setProperties(this, options);\n    }\n\n    function extend(options) {\n      function Child(options) {\n        Klass.call(this, options);\n      }\n\n      var Parent = this;\n\n      Child.prototype = new Parent();\n      Child.prototype.constructor = Child;\n\n      setProperties(Child, Klass);\n      setProperties(Child.prototype, options);\n\n      Child.create = create;\n      Child.extend = extend;\n      Child.reopen = extend;\n\n      Child.reopenClass = reopenClass;\n\n      return Child;\n    }\n  }\n});\nenifed('internal-test-helpers/index', ['exports', 'internal-test-helpers/factory', 'internal-test-helpers/build-owner', 'internal-test-helpers/confirm-export', 'internal-test-helpers/equal-inner-html', 'internal-test-helpers/equal-tokens', 'internal-test-helpers/module-for', 'internal-test-helpers/strip', 'internal-test-helpers/apply-mixins', 'internal-test-helpers/matchers', 'internal-test-helpers/run', 'internal-test-helpers/test-groups', 'internal-test-helpers/test-cases/abstract', 'internal-test-helpers/test-cases/abstract-application', 'internal-test-helpers/test-cases/application', 'internal-test-helpers/test-cases/query-param', 'internal-test-helpers/test-cases/abstract-rendering', 'internal-test-helpers/test-cases/rendering', 'internal-test-helpers/test-cases/router'], function (exports, _internalTestHelpersFactory, _internalTestHelpersBuildOwner, _internalTestHelpersConfirmExport, _internalTestHelpersEqualInnerHtml, _internalTestHelpersEqualTokens, _internalTestHelpersModuleFor, _internalTestHelpersStrip, _internalTestHelpersApplyMixins, _internalTestHelpersMatchers, _internalTestHelpersRun, _internalTestHelpersTestGroups, _internalTestHelpersTestCasesAbstract, _internalTestHelpersTestCasesAbstractApplication, _internalTestHelpersTestCasesApplication, _internalTestHelpersTestCasesQueryParam, _internalTestHelpersTestCasesAbstractRendering, _internalTestHelpersTestCasesRendering, _internalTestHelpersTestCasesRouter) {\n  'use strict';\n\n  exports.factory = _internalTestHelpersFactory.default;\n  exports.buildOwner = _internalTestHelpersBuildOwner.default;\n  exports.confirmExport = _internalTestHelpersConfirmExport.default;\n  exports.equalInnerHTML = _internalTestHelpersEqualInnerHtml.default;\n  exports.equalTokens = _internalTestHelpersEqualTokens.default;\n  exports.moduleFor = _internalTestHelpersModuleFor.default;\n  exports.strip = _internalTestHelpersStrip.default;\n  exports.applyMixins = _internalTestHelpersApplyMixins.default;\n  exports.equalsElement = _internalTestHelpersMatchers.equalsElement;\n  exports.classes = _internalTestHelpersMatchers.classes;\n  exports.styles = _internalTestHelpersMatchers.styles;\n  exports.regex = _internalTestHelpersMatchers.regex;\n  exports.runAppend = _internalTestHelpersRun.runAppend;\n  exports.runDestroy = _internalTestHelpersRun.runDestroy;\n  exports.testBoth = _internalTestHelpersTestGroups.testBoth;\n  exports.testWithDefault = _internalTestHelpersTestGroups.testWithDefault;\n  exports.AbstractTestCase = _internalTestHelpersTestCasesAbstract.default;\n  exports.AbstractApplicationTestCase = _internalTestHelpersTestCasesAbstractApplication.default;\n  exports.ApplicationTestCase = _internalTestHelpersTestCasesApplication.default;\n  exports.QueryParamTestCase = _internalTestHelpersTestCasesQueryParam.default;\n  exports.AbstractRenderingTestCase = _internalTestHelpersTestCasesAbstractRendering.default;\n  exports.RenderingTestCase = _internalTestHelpersTestCasesRendering.default;\n  exports.RouterTestCase = _internalTestHelpersTestCasesRouter.default;\n});\nenifed('internal-test-helpers/matchers', ['exports'], function (exports) {\n  'use strict';\n\n  exports.regex = regex;\n  exports.classes = classes;\n  exports.styles = styles;\n  exports.equalsElement = equalsElement;\n  var HTMLElement = window.HTMLElement;\n  var MATCHER_BRAND = '3d4ef194-13be-4ccf-8dc7-862eea02c93e';\n\n  function isMatcher(obj) {\n    return typeof obj === 'object' && obj !== null && MATCHER_BRAND in obj;\n  }\n\n  function equalsAttr(expected) {\n    var _ref;\n\n    return _ref = {}, _ref[MATCHER_BRAND] = true, _ref.match = function (actual) {\n      return expected === actual;\n    }, _ref.expected = function () {\n      return expected;\n    }, _ref.message = function () {\n      return 'should equal ' + this.expected();\n    }, _ref;\n  }\n\n  function regex(r) {\n    var _ref2;\n\n    return _ref2 = {}, _ref2[MATCHER_BRAND] = true, _ref2.match = function (v) {\n      return r.test(v);\n    }, _ref2.expected = function () {\n      return r.toString();\n    }, _ref2.message = function () {\n      return 'should match ' + this.expected();\n    }, _ref2;\n  }\n\n  function classes(expected) {\n    var _ref3;\n\n    return _ref3 = {}, _ref3[MATCHER_BRAND] = true, _ref3.match = function (actual) {\n      actual = actual.trim();\n      return actual && expected.split(/\\s+/).sort().join(' ') === actual.trim().split(/\\s+/).sort().join(' ');\n    }, _ref3.expected = function () {\n      return expected;\n    }, _ref3.message = function () {\n      return 'should match ' + this.expected();\n    }, _ref3;\n  }\n\n  function styles(expected) {\n    var _ref4;\n\n    return _ref4 = {}, _ref4[MATCHER_BRAND] = true, _ref4.match = function (actual) {\n      // coerce `null` or `undefined` to an empty string\n      // needed for matching empty styles on IE9 - IE11\n      actual = actual || '';\n      actual = actual.trim();\n\n      return expected.split(';').map(function (s) {\n        return s.trim();\n      }).filter(function (s) {\n        return s;\n      }).sort().join('; ') === actual.split(';').map(function (s) {\n        return s.trim();\n      }).filter(function (s) {\n        return s;\n      }).sort().join('; ');\n    }, _ref4.expected = function () {\n      return expected;\n    }, _ref4.message = function () {\n      return 'should match ' + this.expected();\n    }, _ref4;\n  }\n\n  function equalsElement(element, tagName, attributes, content) {\n    QUnit.push(element.tagName === tagName.toUpperCase(), element.tagName.toLowerCase(), tagName, 'expect tagName to be ' + tagName);\n\n    var expectedAttrs = {};\n    var expectedCount = 0;\n\n    for (var _name in attributes) {\n      var expected = attributes[_name];\n      if (expected !== null) {\n        expectedCount++;\n      }\n\n      var matcher = isMatcher(expected) ? expected : equalsAttr(expected);\n\n      expectedAttrs[_name] = matcher;\n\n      QUnit.push(expectedAttrs[_name].match(element.getAttribute(_name)), element.getAttribute(_name), matcher.expected(), 'Element\\'s ' + _name + ' attribute ' + matcher.message());\n    }\n\n    var actualAttributes = {};\n\n    for (var i = 0, l = element.attributes.length; i < l; i++) {\n      actualAttributes[element.attributes[i].name] = element.attributes[i].value;\n    }\n\n    if (!(element instanceof HTMLElement)) {\n      QUnit.push(element instanceof HTMLElement, null, null, 'Element must be an HTML Element, not an SVG Element');\n    } else {\n      QUnit.push(element.attributes.length === expectedCount || !attributes, element.attributes.length, expectedCount, 'Expected ' + expectedCount + ' attributes; got ' + element.outerHTML);\n\n      if (content !== null) {\n        QUnit.push(element.innerHTML === content, element.innerHTML, content, 'The element had \\'' + content + '\\' as its content');\n      }\n    }\n  }\n});\nenifed('internal-test-helpers/module-for', ['exports', 'internal-test-helpers/apply-mixins'], function (exports, _internalTestHelpersApplyMixins) {\n  'use strict';\n\n  exports.default = moduleFor;\n\n  function moduleFor(description, TestClass) {\n    var context = undefined;\n\n    QUnit.module(description, {\n      setup: function () {\n        context = new TestClass();\n      },\n\n      teardown: function () {\n        context.teardown();\n      }\n    });\n\n    for (var _len = arguments.length, mixins = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n      mixins[_key - 2] = arguments[_key];\n    }\n\n    _internalTestHelpersApplyMixins.default(TestClass, mixins);\n\n    var proto = TestClass.prototype;\n\n    while (proto !== Object.prototype) {\n      Object.keys(proto).forEach(generateTest);\n      proto = Object.getPrototypeOf(proto);\n    }\n\n    function generateTest(name) {\n      if (name.indexOf('@test ') === 0) {\n        QUnit.test(name.slice(5), function (assert) {\n          return context[name](assert);\n        });\n      } else if (name.indexOf('@skip ') === 0) {\n        QUnit.skip(name.slice(5), function (assert) {\n          return context[name](assert);\n        });\n      }\n    }\n  }\n});\nenifed('internal-test-helpers/run', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n  'use strict';\n\n  exports.runAppend = runAppend;\n  exports.runDestroy = runDestroy;\n\n  function runAppend(view) {\n    _emberMetal.run(view, 'appendTo', '#qunit-fixture');\n  }\n\n  function runDestroy(toDestroy) {\n    if (toDestroy) {\n      _emberMetal.run(toDestroy, 'destroy');\n    }\n  }\n});\nenifed('internal-test-helpers/strip', ['exports'], function (exports) {\n  'use strict';\n\n  exports.default = strip;\n\n  function strip(_ref) {\n    for (var _len = arguments.length, values = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      values[_key - 1] = arguments[_key];\n    }\n\n    var strings = _ref;\n\n    var str = strings.map(function (string, index) {\n      var interpolated = values[index];\n      return string + (interpolated !== undefined ? interpolated : '');\n    }).join('');\n    return str.split('\\n').map(function (s) {\n      return s.trim();\n    }).join('');\n  }\n});\nenifed('internal-test-helpers/test-cases/abstract-application', ['exports', 'ember-metal', 'ember-views', 'ember-application', 'ember-routing', 'ember-template-compiler', 'internal-test-helpers/test-cases/abstract', 'internal-test-helpers/run'], function (exports, _emberMetal, _emberViews, _emberApplication, _emberRouting, _emberTemplateCompiler, _internalTestHelpersTestCasesAbstract, _internalTestHelpersRun) {\n  'use strict';\n\n  var AbstractApplicationTestCase = (function (_AbstractTestCase) {\n    babelHelpers.inherits(AbstractApplicationTestCase, _AbstractTestCase);\n\n    function AbstractApplicationTestCase() {\n      babelHelpers.classCallCheck(this, AbstractApplicationTestCase);\n\n      _AbstractTestCase.call(this);\n\n      this.element = _emberViews.jQuery('#qunit-fixture')[0];\n\n      this.application = _emberMetal.run(_emberApplication.Application, 'create', this.applicationOptions);\n\n      this.router = this.application.Router = _emberRouting.Router.extend(this.routerOptions);\n\n      this.applicationInstance = null;\n    }\n\n    AbstractApplicationTestCase.prototype.teardown = function teardown() {\n      if (this.applicationInstance) {\n        _internalTestHelpersRun.runDestroy(this.applicationInstance);\n      }\n\n      _internalTestHelpersRun.runDestroy(this.application);\n    };\n\n    AbstractApplicationTestCase.prototype.visit = function visit(url, options) {\n      var _this = this;\n\n      var applicationInstance = this.applicationInstance;\n\n      if (applicationInstance) {\n        return _emberMetal.run(applicationInstance, 'visit', url, options);\n      } else {\n        return _emberMetal.run(this.application, 'visit', url, options).then(function (instance) {\n          _this.applicationInstance = instance;\n        });\n      }\n    };\n\n    AbstractApplicationTestCase.prototype.transitionTo = function transitionTo() {\n      return _emberMetal.run.apply(undefined, [this.appRouter, 'transitionTo'].concat(babelHelpers.slice.call(arguments)));\n    };\n\n    AbstractApplicationTestCase.prototype.compile = function compile(string, options) {\n      return _emberTemplateCompiler.compile.apply(undefined, arguments);\n    };\n\n    AbstractApplicationTestCase.prototype.registerRoute = function registerRoute(name, route) {\n      this.application.register('route:' + name, route);\n    };\n\n    AbstractApplicationTestCase.prototype.registerTemplate = function registerTemplate(name, template) {\n      this.application.register('template:' + name, this.compile(template, {\n        moduleName: name\n      }));\n    };\n\n    AbstractApplicationTestCase.prototype.registerComponent = function registerComponent(name, _ref) {\n      var _ref$ComponentClass = _ref.ComponentClass;\n      var ComponentClass = _ref$ComponentClass === undefined ? null : _ref$ComponentClass;\n      var _ref$template = _ref.template;\n      var template = _ref$template === undefined ? null : _ref$template;\n\n      if (ComponentClass) {\n        this.application.register('component:' + name, ComponentClass);\n      }\n\n      if (typeof template === 'string') {\n        this.application.register('template:components/' + name, this.compile(template, {\n          moduleName: 'components/' + name\n        }));\n      }\n    };\n\n    AbstractApplicationTestCase.prototype.registerController = function registerController(name, controller) {\n      this.application.register('controller:' + name, controller);\n    };\n\n    AbstractApplicationTestCase.prototype.registerEngine = function registerEngine(name, engine) {\n      this.application.register('engine:' + name, engine);\n    };\n\n    babelHelpers.createClass(AbstractApplicationTestCase, [{\n      key: 'applicationOptions',\n      get: function () {\n        return {\n          rootElement: '#qunit-fixture',\n          autoboot: false\n        };\n      }\n    }, {\n      key: 'routerOptions',\n      get: function () {\n        return {\n          location: 'none'\n        };\n      }\n    }, {\n      key: 'appRouter',\n      get: function () {\n        return this.applicationInstance.lookup('router:main');\n      }\n    }]);\n    return AbstractApplicationTestCase;\n  })(_internalTestHelpersTestCasesAbstract.default);\n\n  exports.default = AbstractApplicationTestCase;\n});\nenifed('internal-test-helpers/test-cases/abstract-rendering', ['exports', 'ember-utils', 'ember-template-compiler', 'ember-views', 'ember-glimmer', 'internal-test-helpers/test-cases/abstract', 'internal-test-helpers/build-owner', 'internal-test-helpers/run'], function (exports, _emberUtils, _emberTemplateCompiler, _emberViews, _emberGlimmer, _internalTestHelpersTestCasesAbstract, _internalTestHelpersBuildOwner, _internalTestHelpersRun) {\n  'use strict';\n\n  var TextNode = window.Text;\n\n  var AbstractRenderingTestCase = (function (_AbstractTestCase) {\n    babelHelpers.inherits(AbstractRenderingTestCase, _AbstractTestCase);\n\n    function AbstractRenderingTestCase() {\n      babelHelpers.classCallCheck(this, AbstractRenderingTestCase);\n\n      _AbstractTestCase.call(this);\n      var owner = this.owner = _internalTestHelpersBuildOwner.default({\n        ownerOptions: this.getOwnerOptions(),\n        bootOptions: this.getBootOptions(),\n        resolver: this.getResolver()\n      });\n\n      this.renderer = this.owner.lookup('renderer:-dom');\n      this.element = _emberViews.jQuery('#qunit-fixture')[0];\n      this.component = null;\n\n      owner.register('event_dispatcher:main', _emberViews.EventDispatcher);\n      owner.inject('event_dispatcher:main', '_viewRegistry', '-view-registry:main');\n      owner.lookup('event_dispatcher:main').setup(this.getCustomDispatcherEvents(), this.element);\n    }\n\n    AbstractRenderingTestCase.prototype.compile = function compile() {\n      return _emberTemplateCompiler.compile.apply(undefined, arguments);\n    };\n\n    AbstractRenderingTestCase.prototype.getCustomDispatcherEvents = function getCustomDispatcherEvents() {\n      return {};\n    };\n\n    AbstractRenderingTestCase.prototype.getOwnerOptions = function getOwnerOptions() {};\n\n    AbstractRenderingTestCase.prototype.getBootOptions = function getBootOptions() {};\n\n    AbstractRenderingTestCase.prototype.getResolver = function getResolver() {};\n\n    AbstractRenderingTestCase.prototype.teardown = function teardown() {\n      if (this.component) {\n        _internalTestHelpersRun.runDestroy(this.component);\n      }\n      if (this.owner) {\n        _internalTestHelpersRun.runDestroy(this.owner);\n      }\n    };\n\n    AbstractRenderingTestCase.prototype.render = function render(templateStr) {\n      var context = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n      var owner = this.owner;\n\n      owner.register('template:-top-level', this.compile(templateStr, {\n        moduleName: '-top-level'\n      }));\n\n      var attrs = _emberUtils.assign({}, context, {\n        tagName: '',\n        layoutName: '-top-level'\n      });\n\n      owner.register('component:-top-level', _emberGlimmer.Component.extend(attrs));\n\n      this.component = owner.lookup('component:-top-level');\n\n      _internalTestHelpersRun.runAppend(this.component);\n    };\n\n    AbstractRenderingTestCase.prototype.rerender = function rerender() {\n      this.component.rerender();\n    };\n\n    AbstractRenderingTestCase.prototype.registerHelper = function registerHelper(name, funcOrClassBody) {\n      var type = typeof funcOrClassBody;\n\n      if (type === 'function') {\n        this.owner.register('helper:' + name, _emberGlimmer.helper(funcOrClassBody));\n      } else if (type === 'object' && type !== null) {\n        this.owner.register('helper:' + name, _emberGlimmer.Helper.extend(funcOrClassBody));\n      } else {\n        throw new Error('Cannot register ' + funcOrClassBody + ' as a helper');\n      }\n    };\n\n    AbstractRenderingTestCase.prototype.registerPartial = function registerPartial(name, template) {\n      var owner = this.env.owner || this.owner;\n      if (typeof template === 'string') {\n        var moduleName = 'template:' + name;\n        owner.register(moduleName, this.compile(template, { moduleName: moduleName }));\n      }\n    };\n\n    AbstractRenderingTestCase.prototype.registerComponent = function registerComponent(name, _ref) {\n      var _ref$ComponentClass = _ref.ComponentClass;\n      var ComponentClass = _ref$ComponentClass === undefined ? null : _ref$ComponentClass;\n      var _ref$template = _ref.template;\n      var template = _ref$template === undefined ? null : _ref$template;\n      var owner = this.owner;\n\n      if (ComponentClass) {\n        owner.register('component:' + name, ComponentClass);\n      }\n\n      if (typeof template === 'string') {\n        owner.register('template:components/' + name, this.compile(template, {\n          moduleName: 'components/' + name\n        }));\n      }\n    };\n\n    AbstractRenderingTestCase.prototype.registerTemplate = function registerTemplate(name, template) {\n      var owner = this.owner;\n\n      if (typeof template === 'string') {\n        owner.register('template:' + name, this.compile(template, {\n          moduleName: name\n        }));\n      } else {\n        throw new Error('Registered template \"' + name + '\" must be a string');\n      }\n    };\n\n    AbstractRenderingTestCase.prototype.registerService = function registerService(name, klass) {\n      this.owner.register('service:' + name, klass);\n    };\n\n    AbstractRenderingTestCase.prototype.assertTextNode = function assertTextNode(node, text) {\n      if (!(node instanceof TextNode)) {\n        throw new Error('Expecting a text node, but got ' + node);\n      }\n\n      this.assert.strictEqual(node.textContent, text, 'node.textContent');\n    };\n\n    babelHelpers.createClass(AbstractRenderingTestCase, [{\n      key: 'context',\n      get: function () {\n        return this.component;\n      }\n    }]);\n    return AbstractRenderingTestCase;\n  })(_internalTestHelpersTestCasesAbstract.default);\n\n  exports.default = AbstractRenderingTestCase;\n});\nenifed('internal-test-helpers/test-cases/abstract', ['exports', 'ember-utils', 'ember-metal', 'ember-views', 'internal-test-helpers/equal-inner-html', 'internal-test-helpers/equal-tokens', 'internal-test-helpers/matchers'], function (exports, _emberUtils, _emberMetal, _emberViews, _internalTestHelpersEqualInnerHtml, _internalTestHelpersEqualTokens, _internalTestHelpersMatchers) {\n  'use strict';\n\n  var TextNode = window.Text;\n  var HTMLElement = window.HTMLElement;\n  var Comment = window.Comment;\n\n  function isMarker(node) {\n    if (node instanceof Comment && node.textContent === '') {\n      return true;\n    }\n\n    if (node instanceof TextNode && node.textContent === '') {\n      return true;\n    }\n\n    return false;\n  }\n\n  var AbstractTestCase = (function () {\n    function AbstractTestCase() {\n      babelHelpers.classCallCheck(this, AbstractTestCase);\n\n      this.element = null;\n      this.snapshot = null;\n      this.assert = QUnit.config.current.assert;\n    }\n\n    AbstractTestCase.prototype.teardown = function teardown() {};\n\n    AbstractTestCase.prototype.runTask = function runTask(callback) {\n      _emberMetal.run(callback);\n    };\n\n    AbstractTestCase.prototype.runTaskNext = function runTaskNext(callback) {\n      _emberMetal.run.next(callback);\n    };\n\n    // The following methods require `this.element` to work\n\n    AbstractTestCase.prototype.nthChild = function nthChild(n) {\n      var i = 0;\n      var node = this.element.firstChild;\n\n      while (node) {\n        if (!isMarker(node)) {\n          i++;\n        }\n\n        if (i > n) {\n          break;\n        } else {\n          node = node.nextSibling;\n        }\n      }\n\n      return node;\n    };\n\n    AbstractTestCase.prototype.$ = function $(sel) {\n      return sel ? _emberViews.jQuery(sel, this.element) : _emberViews.jQuery(this.element);\n    };\n\n    AbstractTestCase.prototype.textValue = function textValue() {\n      return this.$().text();\n    };\n\n    AbstractTestCase.prototype.takeSnapshot = function takeSnapshot() {\n      var snapshot = this.snapshot = [];\n\n      var node = this.element.firstChild;\n\n      while (node) {\n        if (!isMarker(node)) {\n          snapshot.push(node);\n        }\n\n        node = node.nextSibling;\n      }\n\n      return snapshot;\n    };\n\n    AbstractTestCase.prototype.assertText = function assertText(text) {\n      this.assert.strictEqual(this.textValue(), text, '#qunit-fixture content should be: `' + text + '`');\n    };\n\n    AbstractTestCase.prototype.assertInnerHTML = function assertInnerHTML(html) {\n      _internalTestHelpersEqualInnerHtml.default(this.element, html);\n    };\n\n    AbstractTestCase.prototype.assertHTML = function assertHTML(html) {\n      _internalTestHelpersEqualTokens.default(this.element, html, '#qunit-fixture content should be: `' + html + '`');\n    };\n\n    AbstractTestCase.prototype.assertElement = function assertElement(node, _ref) {\n      var _ref$ElementType = _ref.ElementType;\n      var ElementType = _ref$ElementType === undefined ? HTMLElement : _ref$ElementType;\n      var tagName = _ref.tagName;\n      var _ref$attrs = _ref.attrs;\n      var attrs = _ref$attrs === undefined ? null : _ref$attrs;\n      var _ref$content = _ref.content;\n      var content = _ref$content === undefined ? null : _ref$content;\n\n      if (!(node instanceof ElementType)) {\n        throw new Error('Expecting a ' + ElementType.name + ', but got ' + node);\n      }\n\n      _internalTestHelpersMatchers.equalsElement(node, tagName, attrs, content);\n    };\n\n    AbstractTestCase.prototype.assertComponentElement = function assertComponentElement(node, _ref2) {\n      var _ref2$ElementType = _ref2.ElementType;\n      var ElementType = _ref2$ElementType === undefined ? HTMLElement : _ref2$ElementType;\n      var _ref2$tagName = _ref2.tagName;\n      var tagName = _ref2$tagName === undefined ? 'div' : _ref2$tagName;\n      var _ref2$attrs = _ref2.attrs;\n      var attrs = _ref2$attrs === undefined ? null : _ref2$attrs;\n      var _ref2$content = _ref2.content;\n      var content = _ref2$content === undefined ? null : _ref2$content;\n\n      attrs = _emberUtils.assign({}, { id: _internalTestHelpersMatchers.regex(/^ember\\d*$/), class: _internalTestHelpersMatchers.classes('ember-view') }, attrs || {});\n      this.assertElement(node, { ElementType: ElementType, tagName: tagName, attrs: attrs, content: content });\n    };\n\n    AbstractTestCase.prototype.assertSameNode = function assertSameNode(actual, expected) {\n      this.assert.strictEqual(actual, expected, 'DOM node stability');\n    };\n\n    AbstractTestCase.prototype.assertInvariants = function assertInvariants(oldSnapshot, newSnapshot) {\n      oldSnapshot = oldSnapshot || this.snapshot;\n      newSnapshot = newSnapshot || this.takeSnapshot();\n\n      this.assert.strictEqual(newSnapshot.length, oldSnapshot.length, 'Same number of nodes');\n\n      for (var i = 0; i < oldSnapshot.length; i++) {\n        this.assertSameNode(newSnapshot[i], oldSnapshot[i]);\n      }\n    };\n\n    AbstractTestCase.prototype.assertPartialInvariants = function assertPartialInvariants(start, end) {\n      this.assertInvariants(this.snapshot, this.takeSnapshot().slice(start, end));\n    };\n\n    AbstractTestCase.prototype.assertStableRerender = function assertStableRerender() {\n      var _this = this;\n\n      this.takeSnapshot();\n      this.runTask(function () {\n        return _this.rerender();\n      });\n      this.assertInvariants();\n    };\n\n    babelHelpers.createClass(AbstractTestCase, [{\n      key: 'firstChild',\n      get: function () {\n        return this.nthChild(0);\n      }\n    }, {\n      key: 'nodesCount',\n      get: function () {\n        var count = 0;\n        var node = this.element.firstChild;\n\n        while (node) {\n          if (!isMarker(node)) {\n            count++;\n          }\n\n          node = node.nextSibling;\n        }\n\n        return count;\n      }\n    }]);\n    return AbstractTestCase;\n  })();\n\n  exports.default = AbstractTestCase;\n});\nenifed('internal-test-helpers/test-cases/application', ['exports', 'internal-test-helpers/test-cases/abstract-application'], function (exports, _internalTestHelpersTestCasesAbstractApplication) {\n  'use strict';\n\n  var ApplicationTestCase = (function (_AbstractApplicationTestCase) {\n    babelHelpers.inherits(ApplicationTestCase, _AbstractApplicationTestCase);\n\n    function ApplicationTestCase() {\n      babelHelpers.classCallCheck(this, ApplicationTestCase);\n\n      _AbstractApplicationTestCase.apply(this, arguments);\n    }\n\n    return ApplicationTestCase;\n  })(_internalTestHelpersTestCasesAbstractApplication.default);\n\n  exports.default = ApplicationTestCase;\n});\nenifed('internal-test-helpers/test-cases/query-param', ['exports', 'ember-runtime', 'ember-routing', 'ember-metal', 'internal-test-helpers/test-cases/application'], function (exports, _emberRuntime, _emberRouting, _emberMetal, _internalTestHelpersTestCasesApplication) {\n  'use strict';\n\n  var QueryParamTestCase = (function (_ApplicationTestCase) {\n    babelHelpers.inherits(QueryParamTestCase, _ApplicationTestCase);\n\n    function QueryParamTestCase() {\n      babelHelpers.classCallCheck(this, QueryParamTestCase);\n\n      _ApplicationTestCase.call(this);\n\n      var testCase = this;\n      testCase.expectedPushURL = null;\n      testCase.expectedReplaceURL = null;\n      this.application.register('location:test', _emberRouting.NoneLocation.extend({\n        setURL: function (path) {\n          if (testCase.expectedReplaceURL) {\n            testCase.assert.ok(false, 'pushState occurred but a replaceState was expected');\n          }\n\n          if (testCase.expectedPushURL) {\n            testCase.assert.equal(path, testCase.expectedPushURL, 'an expected pushState occurred');\n            testCase.expectedPushURL = null;\n          }\n\n          this.set('path', path);\n        },\n\n        replaceURL: function (path) {\n          if (testCase.expectedPushURL) {\n            testCase.assert.ok(false, 'replaceState occurred but a pushState was expected');\n          }\n\n          if (testCase.expectedReplaceURL) {\n            testCase.assert.equal(path, testCase.expectedReplaceURL, 'an expected replaceState occurred');\n            testCase.expectedReplaceURL = null;\n          }\n\n          this.set('path', path);\n        }\n      }));\n    }\n\n    QueryParamTestCase.prototype.visitAndAssert = function visitAndAssert(path) {\n      var _this = this;\n\n      return this.visit.apply(this, arguments).then(function () {\n        _this.assertCurrentPath(path);\n      });\n    };\n\n    QueryParamTestCase.prototype.getController = function getController(name) {\n      return this.applicationInstance.lookup('controller:' + name);\n    };\n\n    QueryParamTestCase.prototype.getRoute = function getRoute(name) {\n      return this.applicationInstance.lookup('route:' + name);\n    };\n\n    QueryParamTestCase.prototype.setAndFlush = function setAndFlush(obj, prop, value) {\n      return _emberMetal.run(obj, 'set', prop, value);\n    };\n\n    QueryParamTestCase.prototype.assertCurrentPath = function assertCurrentPath(path) {\n      var message = arguments.length <= 1 || arguments[1] === undefined ? 'current path equals \\'' + path + '\\'' : arguments[1];\n      return (function () {\n        this.assert.equal(this.appRouter.get('location.path'), path, message);\n      }).apply(this, arguments);\n    };\n\n    /**\n      Sets up a Controller for a given route with a single query param and default\n      value. Can optionally extend the controller with an object.\n       @public\n      @method setSingleQPController\n    */\n\n    QueryParamTestCase.prototype.setSingleQPController = function setSingleQPController(routeName) {\n      var param = arguments.length <= 1 || arguments[1] === undefined ? 'foo' : arguments[1];\n      var defaultValue = arguments.length <= 2 || arguments[2] === undefined ? 'bar' : arguments[2];\n\n      var _Controller$extend;\n\n      var options = arguments.length <= 3 || arguments[3] === undefined ? {} : arguments[3];\n\n      this.registerController(routeName, _emberRuntime.Controller.extend((_Controller$extend = {\n        queryParams: [param]\n      }, _Controller$extend[param] = defaultValue, _Controller$extend), options));\n    };\n\n    /**\n      Sets up a Controller for a given route with a custom property/url key mapping.\n       @public\n      @method setMappedQPController\n    */\n\n    QueryParamTestCase.prototype.setMappedQPController = function setMappedQPController(routeName) {\n      var prop = arguments.length <= 1 || arguments[1] === undefined ? 'page' : arguments[1];\n      var urlKey = arguments.length <= 2 || arguments[2] === undefined ? 'parentPage' : arguments[2];\n      var defaultValue = arguments.length <= 3 || arguments[3] === undefined ? 1 : arguments[3];\n\n      var _queryParams, _Controller$extend2;\n\n      var options = arguments.length <= 4 || arguments[4] === undefined ? {} : arguments[4];\n\n      this.registerController(routeName, _emberRuntime.Controller.extend((_Controller$extend2 = {\n        queryParams: (_queryParams = {}, _queryParams[prop] = urlKey, _queryParams)\n      }, _Controller$extend2[prop] = defaultValue, _Controller$extend2), options));\n    };\n\n    babelHelpers.createClass(QueryParamTestCase, [{\n      key: 'routerOptions',\n      get: function () {\n        return {\n          location: 'test'\n        };\n      }\n    }]);\n    return QueryParamTestCase;\n  })(_internalTestHelpersTestCasesApplication.default);\n\n  exports.default = QueryParamTestCase;\n});\nenifed('internal-test-helpers/test-cases/rendering', ['exports', 'ember-views', 'internal-test-helpers/test-cases/abstract-rendering'], function (exports, _emberViews, _internalTestHelpersTestCasesAbstractRendering) {\n  'use strict';\n\n  var RenderingTestCase = (function (_AbstractRenderingTestCase) {\n    babelHelpers.inherits(RenderingTestCase, _AbstractRenderingTestCase);\n\n    function RenderingTestCase() {\n      babelHelpers.classCallCheck(this, RenderingTestCase);\n\n      _AbstractRenderingTestCase.call(this);\n      var owner = this.owner;\n\n      this.env = owner.lookup('service:-glimmer-environment');\n      owner.register('component-lookup:main', _emberViews.ComponentLookup);\n      owner.registerOptionsForType('helper', { instantiate: false });\n      owner.registerOptionsForType('component', { singleton: false });\n    }\n\n    return RenderingTestCase;\n  })(_internalTestHelpersTestCasesAbstractRendering.default);\n\n  exports.default = RenderingTestCase;\n});\nenifed('internal-test-helpers/test-cases/router', ['exports', 'internal-test-helpers/test-cases/application'], function (exports, _internalTestHelpersTestCasesApplication) {\n  'use strict';\n\n  var RouterTestCase = (function (_ApplicationTestCase) {\n    babelHelpers.inherits(RouterTestCase, _ApplicationTestCase);\n\n    function RouterTestCase() {\n      babelHelpers.classCallCheck(this, RouterTestCase);\n\n      _ApplicationTestCase.call(this);\n\n      this.router.map(function () {\n        this.route('parent', { path: '/' }, function () {\n          this.route('child');\n          this.route('sister');\n          this.route('brother');\n        });\n        this.route('dynamic', { path: '/dynamic/:dynamic_id' });\n      });\n    }\n\n    babelHelpers.createClass(RouterTestCase, [{\n      key: 'routerService',\n      get: function () {\n        return this.applicationInstance.lookup('service:router');\n      }\n    }]);\n    return RouterTestCase;\n  })(_internalTestHelpersTestCasesApplication.default);\n\n  exports.default = RouterTestCase;\n});\nenifed('internal-test-helpers/test-groups', ['exports', 'ember-environment', 'ember-metal'], function (exports, _emberEnvironment, _emberMetal) {\n  'use strict';\n\n  exports.testBoth = testBoth;\n  exports.testWithDefault = testWithDefault;\n\n  // used by unit tests to test both accessor mode and non-accessor mode\n\n  function testBoth(testname, callback) {\n    function emberget(x, y) {\n      return _emberMetal.get(x, y);\n    }\n    function emberset(x, y, z) {\n      return _emberMetal.set(x, y, z);\n    }\n    function aget(x, y) {\n      return x[y];\n    }\n    function aset(x, y, z) {\n      return x[y] = z;\n    }\n\n    QUnit.test(testname + ' using getFromEmberMetal()/Ember.set()', function () {\n      callback(emberget, emberset);\n    });\n\n    QUnit.test(testname + ' using accessors', function () {\n      if (_emberEnvironment.ENV.USES_ACCESSORS) {\n        callback(aget, aset);\n      } else {\n        ok('SKIPPING ACCESSORS');\n      }\n    });\n  }\n\n  function testWithDefault(testname, callback) {\n    function emberget(x, y) {\n      return _emberMetal.get(x, y);\n    }\n    function embergetwithdefault(x, y, z) {\n      return _emberMetal.getWithDefault(x, y, z);\n    }\n    function getwithdefault(x, y, z) {\n      return x.getWithDefault(y, z);\n    }\n    function emberset(x, y, z) {\n      return _emberMetal.set(x, y, z);\n    }\n    function aget(x, y) {\n      return x[y];\n    }\n    function aset(x, y, z) {\n      return x[y] = z;\n    }\n\n    QUnit.test(testname + ' using obj.get()', function () {\n      callback(emberget, emberset);\n    });\n\n    QUnit.test(testname + ' using obj.getWithDefault()', function () {\n      callback(getwithdefault, emberset);\n    });\n\n    QUnit.test(testname + ' using getFromEmberMetal()', function () {\n      callback(emberget, emberset);\n    });\n\n    QUnit.test(testname + ' using Ember.getWithDefault()', function () {\n      callback(embergetwithdefault, emberset);\n    });\n\n    QUnit.test(testname + ' using accessors', function () {\n      if (_emberEnvironment.ENV.USES_ACCESSORS) {\n        callback(aget, aset);\n      } else {\n        ok('SKIPPING ACCESSORS');\n      }\n    });\n  }\n});\nenifed('route-recognizer', ['exports'], function (exports) { 'use strict';\n\nvar createObject = Object.create;\nfunction createMap() {\n    var map = createObject(null);\n    map[\"__\"] = undefined;\n    delete map[\"__\"];\n    return map;\n}\n\nvar Target = function Target(path, matcher, delegate) {\n    this.path = path;\n    this.matcher = matcher;\n    this.delegate = delegate;\n};\nTarget.prototype.to = function to (target, callback) {\n    var delegate = this.delegate;\n    if (delegate && delegate.willAddRoute) {\n        target = delegate.willAddRoute(this.matcher.target, target);\n    }\n    this.matcher.add(this.path, target);\n    if (callback) {\n        if (callback.length === 0) {\n            throw new Error(\"You must have an argument in the function passed to `to`\");\n        }\n        this.matcher.addChild(this.path, target, callback, this.delegate);\n    }\n};\nvar Matcher = function Matcher(target) {\n    this.routes = createMap();\n    this.children = createMap();\n    this.target = target;\n};\nMatcher.prototype.add = function add (path, target) {\n    this.routes[path] = target;\n};\nMatcher.prototype.addChild = function addChild (path, target, callback, delegate) {\n    var matcher = new Matcher(target);\n    this.children[path] = matcher;\n    var match = generateMatch(path, matcher, delegate);\n    if (delegate && delegate.contextEntered) {\n        delegate.contextEntered(target, match);\n    }\n    callback(match);\n};\nfunction generateMatch(startingPath, matcher, delegate) {\n    function match(path, callback) {\n        var fullPath = startingPath + path;\n        if (callback) {\n            callback(generateMatch(fullPath, matcher, delegate));\n        }\n        else {\n            return new Target(fullPath, matcher, delegate);\n        }\n    }\n    ;\n    return match;\n}\nfunction addRoute(routeArray, path, handler) {\n    var len = 0;\n    for (var i = 0; i < routeArray.length; i++) {\n        len += routeArray[i].path.length;\n    }\n    path = path.substr(len);\n    var route = { path: path, handler: handler };\n    routeArray.push(route);\n}\nfunction eachRoute(baseRoute, matcher, callback, binding) {\n    var routes = matcher.routes;\n    var paths = Object.keys(routes);\n    for (var i = 0; i < paths.length; i++) {\n        var path = paths[i];\n        var routeArray = baseRoute.slice();\n        addRoute(routeArray, path, routes[path]);\n        var nested = matcher.children[path];\n        if (nested) {\n            eachRoute(routeArray, nested, callback, binding);\n        }\n        else {\n            callback.call(binding, routeArray);\n        }\n    }\n}\nfunction map (callback, addRouteCallback) {\n    var matcher = new Matcher();\n    callback(generateMatch(\"\", matcher, this.delegate));\n    eachRoute([], matcher, function (routes) {\n        if (addRouteCallback) {\n            addRouteCallback(this, routes);\n        }\n        else {\n            this.add(routes);\n        }\n    }, this);\n}\n\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n// values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n// chars are \"/\" and \"%\".\n// Safe to call multiple times on the same path.\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\nfunction normalizePath(path) {\n    return path.split(\"/\")\n        .map(normalizeSegment)\n        .join(\"/\");\n}\n// We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n// form when normalizing paths, so replace them with their encoded form after\n// decoding the rest of the path\nvar SEGMENT_RESERVED_CHARS = /%|\\//g;\nfunction normalizeSegment(segment) {\n    if (segment.length < 3 || segment.indexOf(\"%\") === -1)\n        { return segment; }\n    return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n}\n// We do not want to encode these characters when generating dynamic path segments\n// See https://tools.ietf.org/html/rfc3986#section-3.3\n// sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n// others allowed by RFC 3986: \":\", \"@\"\n//\n// First encode the entire path segment, then decode any of the encoded special chars.\n//\n// The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n// so the possible encoded chars are:\n// ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\nvar PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\nfunction encodePathSegment(str) {\n    return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n}\n\nvar escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\nvar isArray = Array.isArray;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction getParam(params, key) {\n    if (typeof params !== \"object\" || params === null) {\n        throw new Error(\"You must pass an object as the second argument to `generate`.\");\n    }\n    if (!hasOwnProperty.call(params, key)) {\n        throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n    }\n    var value = params[key];\n    var str = typeof value === \"string\" ? value : \"\" + value;\n    if (str.length === 0) {\n        throw new Error(\"You must provide a param `\" + key + \"`.\");\n    }\n    return str;\n}\nvar eachChar = [];\neachChar[0 /* Static */] = function (segment, currentState) {\n    var state = currentState;\n    var value = segment.value;\n    for (var i = 0; i < value.length; i++) {\n        var ch = value.charCodeAt(i);\n        state = state.put(ch, false, false);\n    }\n    return state;\n};\neachChar[1 /* Dynamic */] = function (_, currentState) {\n    return currentState.put(47 /* SLASH */, true, true);\n};\neachChar[2 /* Star */] = function (_, currentState) {\n    return currentState.put(-1 /* ANY */, false, true);\n};\neachChar[4 /* Epsilon */] = function (_, currentState) {\n    return currentState;\n};\nvar regex = [];\nregex[0 /* Static */] = function (segment) {\n    return segment.value.replace(escapeRegex, \"\\\\$1\");\n};\nregex[1 /* Dynamic */] = function () {\n    return \"([^/]+)\";\n};\nregex[2 /* Star */] = function () {\n    return \"(.+)\";\n};\nregex[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar generate = [];\ngenerate[0 /* Static */] = function (segment) {\n    return segment.value;\n};\ngenerate[1 /* Dynamic */] = function (segment, params) {\n    var value = getParam(params, segment.value);\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        return encodePathSegment(value);\n    }\n    else {\n        return value;\n    }\n};\ngenerate[2 /* Star */] = function (segment, params) {\n    return getParam(params, segment.value);\n};\ngenerate[4 /* Epsilon */] = function () {\n    return \"\";\n};\n// The `names` will be populated with the paramter name for each dynamic/star\n// segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n// segment, indicating whether it should be decoded during recognition.\nfunction parse(segments, route, names, types, shouldDecodes) {\n    // normalize route as not starting with a \"/\". Recognition will\n    // also normalize.\n    if (route.length > 0 && route.charCodeAt(0) === 47 /* SLASH */) {\n        route = route.substr(1);\n    }\n    var parts = route.split(\"/\");\n    for (var i = 0; i < parts.length; i++) {\n        var part = parts[i];\n        var flags = 0;\n        var type = 0;\n        if (part === \"\") {\n            type = 4 /* Epsilon */;\n        }\n        else if (part.charCodeAt(0) === 58 /* COLON */) {\n            type = 1 /* Dynamic */;\n        }\n        else if (part.charCodeAt(0) === 42 /* STAR */) {\n            type = 2 /* Star */;\n        }\n        else {\n            type = 0 /* Static */;\n        }\n        flags = 2 << type;\n        if (flags & 12 /* Named */) {\n            part = part.slice(1);\n            names.push(part);\n            shouldDecodes.push((flags & 4 /* Decoded */) !== 0);\n        }\n        if (flags & 14 /* Counted */) {\n            types[type]++;\n        }\n        segments.push({ type: type, value: normalizeSegment(part) });\n    }\n}\nfunction isEqualCharSpec(spec, char, negate) {\n    return spec.char === char && spec.negate === negate;\n}\n// A State has a character specification and (`charSpec`) and a list of possible\n// subsequent states (`nextStates`).\n//\n// If a State is an accepting state, it will also have several additional\n// properties:\n//\n// * `regex`: A regular expression that is used to extract parameters from paths\n//   that reached this accepting state.\n// * `handlers`: Information on how to convert the list of captures into calls\n//   to registered handlers with the specified parameters\n// * `types`: How many static, dynamic or star segments in this route. Used to\n//   decide which route to use if multiple registered routes match a path.\n//\n// Currently, State is implemented naively by looping over `nextStates` and\n// comparing a character specification against a character. A more efficient\n// implementation would use a hash of keys pointing at one or more next states.\nvar State = function State(states, id, char, negate, repeat) {\n    this.states = states;\n    this.id = id;\n    this.char = char;\n    this.negate = negate;\n    this.nextStates = repeat ? id : null;\n    this.pattern = \"\";\n    this._regex = undefined;\n    this.handlers = undefined;\n    this.types = undefined;\n};\nState.prototype.regex = function regex$1 () {\n    if (!this._regex) {\n        this._regex = new RegExp(this.pattern);\n    }\n    return this._regex;\n};\nState.prototype.get = function get (char, negate) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (nextStates === null)\n        { return; }\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isEqualCharSpec(child, char, negate)) {\n                return child;\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isEqualCharSpec(child$1, char, negate)) {\n            return child$1;\n        }\n    }\n};\nState.prototype.put = function put (char, negate, repeat) {\n    var state;\n    // If the character specification already exists in a child of the current\n    // state, just return that state.\n    if (state = this.get(char, negate)) {\n        return state;\n    }\n    // Make a new state for the character spec\n    var states = this.states;\n    state = new State(states, states.length, char, negate, repeat);\n    states[states.length] = state;\n    // Insert the new state as a child of the current state\n    if (this.nextStates == null) {\n        this.nextStates = state.id;\n    }\n    else if (isArray(this.nextStates)) {\n        this.nextStates.push(state.id);\n    }\n    else {\n        this.nextStates = [this.nextStates, state.id];\n    }\n    // Return the new state\n    return state;\n};\n// Find a list of child states matching the next character\nState.prototype.match = function match (ch) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (!nextStates)\n        { return []; }\n    var returned = [];\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isMatch(child, ch)) {\n                returned.push(child);\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isMatch(child$1, ch)) {\n            returned.push(child$1);\n        }\n    }\n    return returned;\n};\nfunction isMatch(spec, char) {\n    return spec.negate ? spec.char !== char && spec.char !== -1 /* ANY */ : spec.char === char || spec.char === -1 /* ANY */;\n}\n// This is a somewhat naive strategy, but should work in a lot of cases\n// A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n//\n// This strategy generally prefers more static and less dynamic matching.\n// Specifically, it\n//\n//  * prefers fewer stars to more, then\n//  * prefers using stars for less of the match to more, then\n//  * prefers fewer dynamic segments to more, then\n//  * prefers more static segments to more\nfunction sortSolutions(states) {\n    return states.sort(function (a, b) {\n        var ref = a.types || [0, 0, 0];\n        var astatics = ref[0];\n        var adynamics = ref[1];\n        var astars = ref[2];\n        var ref$1 = b.types || [0, 0, 0];\n        var bstatics = ref$1[0];\n        var bdynamics = ref$1[1];\n        var bstars = ref$1[2];\n        if (astars !== bstars) {\n            return astars - bstars;\n        }\n        if (astars) {\n            if (astatics !== bstatics) {\n                return bstatics - astatics;\n            }\n            if (adynamics !== bdynamics) {\n                return bdynamics - adynamics;\n            }\n        }\n        if (adynamics !== bdynamics) {\n            return adynamics - bdynamics;\n        }\n        if (astatics !== bstatics) {\n            return bstatics - astatics;\n        }\n        return 0;\n    });\n}\nfunction recognizeChar(states, ch) {\n    var nextStates = [];\n    for (var i = 0, l = states.length; i < l; i++) {\n        var state = states[i];\n        nextStates = nextStates.concat(state.match(ch));\n    }\n    return nextStates;\n}\nvar RecognizeResults = function RecognizeResults(queryParams) {\n    this.length = 0;\n    this.queryParams = queryParams || {};\n};\n;\nRecognizeResults.prototype.splice = Array.prototype.splice;\nRecognizeResults.prototype.slice = Array.prototype.slice;\nRecognizeResults.prototype.push = Array.prototype.push;\nfunction findHandler(state, originalPath, queryParams) {\n    var handlers = state.handlers;\n    var regex = state.regex();\n    if (!regex || !handlers)\n        { throw new Error(\"state not initialized\"); }\n    var captures = originalPath.match(regex);\n    var currentCapture = 1;\n    var result = new RecognizeResults(queryParams);\n    result.length = handlers.length;\n    for (var i = 0; i < handlers.length; i++) {\n        var handler = handlers[i];\n        var names = handler.names;\n        var shouldDecodes = handler.shouldDecodes;\n        var params = {};\n        for (var j = 0; j < names.length; j++) {\n            var name = names[j];\n            var capture = captures && captures[currentCapture++];\n            if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n                params[name] = capture && decodeURIComponent(capture);\n            }\n            else {\n                params[name] = capture;\n            }\n        }\n        result[i] = { handler: handler.handler, params: params, isDynamic: !!names.length };\n    }\n    return result;\n}\nfunction decodeQueryParamPart(part) {\n    // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n    part = part.replace(/\\+/gm, \"%20\");\n    var result;\n    try {\n        result = decodeURIComponent(part);\n    }\n    catch (error) {\n        result = \"\";\n    }\n    return result;\n}\nvar RouteRecognizer = function RouteRecognizer() {\n    this.names = createMap();\n    var states = [];\n    var state = new State(states, 0, -1 /* ANY */, true, false);\n    states[0] = state;\n    this.states = states;\n    this.rootState = state;\n};\nRouteRecognizer.prototype.add = function add (routes, options) {\n    var currentState = this.rootState;\n    var pattern = \"^\";\n    var types = [0, 0, 0];\n    var handlers = new Array(routes.length);\n    var allSegments = [];\n    var isEmpty = true;\n    var j = 0;\n    for (var i = 0; i < routes.length; i++) {\n        var route = routes[i];\n        var names = [];\n        var shouldDecodes = [];\n        parse(allSegments, route.path, names, types, shouldDecodes);\n        // preserve j so it points to the start of newly added segments\n        for (; j < allSegments.length; j++) {\n            var segment = allSegments[j];\n            if (segment.type === 4 /* Epsilon */) {\n                continue;\n            }\n            isEmpty = false;\n            // Add a \"/\" for the new segment\n            currentState = currentState.put(47 /* SLASH */, false, false);\n            pattern += \"/\";\n            // Add a representation of the segment to the NFA and regex\n            currentState = eachChar[segment.type](segment, currentState);\n            pattern += regex[segment.type](segment);\n        }\n        var handler = { handler: route.handler, names: names, shouldDecodes: shouldDecodes };\n        handlers[i] = handler;\n    }\n    if (isEmpty) {\n        currentState = currentState.put(47 /* SLASH */, false, false);\n        pattern += \"/\";\n    }\n    currentState.handlers = handlers;\n    currentState.pattern = pattern + \"$\";\n    currentState.types = types;\n    var name;\n    if (typeof options === \"object\" && options !== null && options.as) {\n        name = options.as;\n    }\n    if (name) {\n        // if (this.names[name]) {\n        //   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n        // }\n        this.names[name] = {\n            segments: allSegments,\n            handlers: handlers\n        };\n    }\n};\nRouteRecognizer.prototype.handlersFor = function handlersFor (name) {\n    var route = this.names[name];\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var result = new Array(route.handlers.length);\n    for (var i = 0; i < route.handlers.length; i++) {\n        result[i] = route.handlers[i];\n    }\n    return result;\n};\nRouteRecognizer.prototype.hasRoute = function hasRoute (name) {\n    return !!this.names[name];\n};\nRouteRecognizer.prototype.generate = function generate$1 (name, params) {\n    var route = this.names[name];\n    var output = \"\";\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var segments = route.segments;\n    for (var i = 0; i < segments.length; i++) {\n        var segment = segments[i];\n        if (segment.type === 4 /* Epsilon */) {\n            continue;\n        }\n        output += \"/\";\n        output += generate[segment.type](segment, params);\n    }\n    if (output.charAt(0) !== \"/\") {\n        output = \"/\" + output;\n    }\n    if (params && params.queryParams) {\n        output += this.generateQueryString(params.queryParams);\n    }\n    return output;\n};\nRouteRecognizer.prototype.generateQueryString = function generateQueryString (params) {\n    var pairs = [];\n    var keys = Object.keys(params);\n    keys.sort();\n    for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        var value = params[key];\n        if (value == null) {\n            continue;\n        }\n        var pair = encodeURIComponent(key);\n        if (isArray(value)) {\n            for (var j = 0; j < value.length; j++) {\n                var arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n                pairs.push(arrayPair);\n            }\n        }\n        else {\n            pair += \"=\" + encodeURIComponent(value);\n            pairs.push(pair);\n        }\n    }\n    if (pairs.length === 0) {\n        return \"\";\n    }\n    return \"?\" + pairs.join(\"&\");\n};\nRouteRecognizer.prototype.parseQueryString = function parseQueryString (queryString) {\n    var pairs = queryString.split(\"&\");\n    var queryParams = {};\n    for (var i = 0; i < pairs.length; i++) {\n        var pair = pairs[i].split(\"=\"), key = decodeQueryParamPart(pair[0]), keyLength = key.length, isArray = false, value = (void 0);\n        if (pair.length === 1) {\n            value = \"true\";\n        }\n        else {\n            // Handle arrays\n            if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n                isArray = true;\n                key = key.slice(0, keyLength - 2);\n                if (!queryParams[key]) {\n                    queryParams[key] = [];\n                }\n            }\n            value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n        }\n        if (isArray) {\n            queryParams[key].push(value);\n        }\n        else {\n            queryParams[key] = value;\n        }\n    }\n    return queryParams;\n};\nRouteRecognizer.prototype.recognize = function recognize (path) {\n    var results;\n    var states = [this.rootState];\n    var queryParams = {};\n    var isSlashDropped = false;\n    var hashStart = path.indexOf(\"#\");\n    if (hashStart !== -1) {\n        path = path.substr(0, hashStart);\n    }\n    var queryStart = path.indexOf(\"?\");\n    if (queryStart !== -1) {\n        var queryString = path.substr(queryStart + 1, path.length);\n        path = path.substr(0, queryStart);\n        queryParams = this.parseQueryString(queryString);\n    }\n    if (path.charAt(0) !== \"/\") {\n        path = \"/\" + path;\n    }\n    var originalPath = path;\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        path = normalizePath(path);\n    }\n    else {\n        path = decodeURI(path);\n        originalPath = decodeURI(originalPath);\n    }\n    var pathLen = path.length;\n    if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n        path = path.substr(0, pathLen - 1);\n        originalPath = originalPath.substr(0, originalPath.length - 1);\n        isSlashDropped = true;\n    }\n    for (var i = 0; i < path.length; i++) {\n        states = recognizeChar(states, path.charCodeAt(i));\n        if (!states.length) {\n            break;\n        }\n    }\n    var solutions = [];\n    for (var i$1 = 0; i$1 < states.length; i$1++) {\n        if (states[i$1].handlers) {\n            solutions.push(states[i$1]);\n        }\n    }\n    states = sortSolutions(solutions);\n    var state = solutions[0];\n    if (state && state.handlers) {\n        // if a trailing slash was dropped and a star segment is the last segment\n        // specified, put the trailing slash back\n        if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n            originalPath = originalPath + \"/\";\n        }\n        results = findHandler(state, originalPath, queryParams);\n    }\n    return results;\n};\nRouteRecognizer.VERSION = \"0.3.0\";\n// Set to false to opt-out of encoding and decoding path segments.\n// See https://github.com/tildeio/route-recognizer/pull/55\nRouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS = true;\nRouteRecognizer.Normalizer = {\n    normalizeSegment: normalizeSegment, normalizePath: normalizePath, encodePathSegment: encodePathSegment\n};\nRouteRecognizer.prototype.map = map;\n\nexports['default'] = RouteRecognizer;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n});\nenifed('router', ['exports', 'route-recognizer', 'rsvp'], function (exports, RouteRecognizer, rsvp) { 'use strict';\n\nRouteRecognizer = 'default' in RouteRecognizer ? RouteRecognizer['default'] : RouteRecognizer;\n\nvar slice = Array.prototype.slice;\n\nvar _isArray;\nif (!Array.isArray) {\n  _isArray = function (x) {\n    return Object.prototype.toString.call(x) === \"[object Array]\";\n  };\n} else {\n  _isArray = Array.isArray;\n}\n\nvar isArray = _isArray;\n\n/**\n  Determines if an object is Promise by checking if it is \"thenable\".\n**/\nfunction isPromise(obj) {\n  return ((typeof obj === 'object' && obj !== null) || typeof obj === 'function') && typeof obj.then === 'function';\n}\n\nfunction merge(hash, other) {\n  for (var prop in other) {\n    if (other.hasOwnProperty(prop)) { hash[prop] = other[prop]; }\n  }\n}\n\nvar oCreate = Object.create || function(proto) {\n  function F() {}\n  F.prototype = proto;\n  return new F();\n};\n\n/**\n  @private\n\n  Extracts query params from the end of an array\n**/\nfunction extractQueryParams(array) {\n  var len = (array && array.length), head, queryParams;\n\n  if(len && len > 0 && array[len - 1] && array[len - 1].hasOwnProperty('queryParams')) {\n    queryParams = array[len - 1].queryParams;\n    head = slice.call(array, 0, len - 1);\n    return [head, queryParams];\n  } else {\n    return [array, null];\n  }\n}\n\n/**\n  @private\n\n  Coerces query param properties and array elements into strings.\n**/\nfunction coerceQueryParamsToString(queryParams) {\n  for (var key in queryParams) {\n    if (typeof queryParams[key] === 'number') {\n      queryParams[key] = '' + queryParams[key];\n    } else if (isArray(queryParams[key])) {\n      for (var i = 0, l = queryParams[key].length; i < l; i++) {\n        queryParams[key][i] = '' + queryParams[key][i];\n      }\n    }\n  }\n}\n/**\n  @private\n */\nfunction log(router, sequence, msg) {\n  if (!router.log) { return; }\n\n  if (arguments.length === 3) {\n    router.log(\"Transition #\" + sequence + \": \" + msg);\n  } else {\n    msg = sequence;\n    router.log(msg);\n  }\n}\n\nfunction bind(context, fn) {\n  var boundArgs = arguments;\n  return function(value) {\n    var args = slice.call(boundArgs, 2);\n    args.push(value);\n    return fn.apply(context, args);\n  };\n}\n\nfunction isParam(object) {\n  return (typeof object === \"string\" || object instanceof String || typeof object === \"number\" || object instanceof Number);\n}\n\n\nfunction forEach(array, callback) {\n  for (var i=0, l=array.length; i < l && false !== callback(array[i]); i++) { }\n}\n\nfunction trigger(router, handlerInfos, ignoreFailure, args) {\n  if (router.triggerEvent) {\n    router.triggerEvent(handlerInfos, ignoreFailure, args);\n    return;\n  }\n\n  var name = args.shift();\n\n  if (!handlerInfos) {\n    if (ignoreFailure) { return; }\n    throw new Error(\"Could not trigger event '\" + name + \"'. There are no active handlers\");\n  }\n\n  var eventWasHandled = false;\n\n  function delayedEvent(name, args, handler) {\n    handler.events[name].apply(handler, args);\n  }\n\n  for (var i=handlerInfos.length-1; i>=0; i--) {\n    var handlerInfo = handlerInfos[i],\n        handler = handlerInfo.handler;\n\n    // If there is no handler, it means the handler hasn't resolved yet which\n    // means that we should trigger the event later when the handler is available\n    if (!handler) {\n      handlerInfo.handlerPromise.then(bind(null, delayedEvent, name, args));\n      continue;\n    }\n\n    if (handler.events && handler.events[name]) {\n      if (handler.events[name].apply(handler, args) === true) {\n        eventWasHandled = true;\n      } else {\n        return;\n      }\n    }\n  }\n\n  // In the case that we got an UnrecognizedURLError as an event with no handler,\n  // let it bubble up\n  if (name === 'error' && args[0].name === 'UnrecognizedURLError') {\n    throw args[0];\n  } else if (!eventWasHandled && !ignoreFailure) {\n    throw new Error(\"Nothing handled the event '\" + name + \"'.\");\n  }\n}\n\nfunction getChangelist(oldObject, newObject) {\n  var key;\n  var results = {\n    all: {},\n    changed: {},\n    removed: {}\n  };\n\n  merge(results.all, newObject);\n\n  var didChange = false;\n  coerceQueryParamsToString(oldObject);\n  coerceQueryParamsToString(newObject);\n\n  // Calculate removals\n  for (key in oldObject) {\n    if (oldObject.hasOwnProperty(key)) {\n      if (!newObject.hasOwnProperty(key)) {\n        didChange = true;\n        results.removed[key] = oldObject[key];\n      }\n    }\n  }\n\n  // Calculate changes\n  for (key in newObject) {\n    if (newObject.hasOwnProperty(key)) {\n      if (isArray(oldObject[key]) && isArray(newObject[key])) {\n        if (oldObject[key].length !== newObject[key].length) {\n          results.changed[key] = newObject[key];\n          didChange = true;\n        } else {\n          for (var i = 0, l = oldObject[key].length; i < l; i++) {\n            if (oldObject[key][i] !== newObject[key][i]) {\n              results.changed[key] = newObject[key];\n              didChange = true;\n            }\n          }\n        }\n      }\n      else {\n        if (oldObject[key] !== newObject[key]) {\n          results.changed[key] = newObject[key];\n          didChange = true;\n        }\n      }\n    }\n  }\n\n  return didChange && results;\n}\n\nfunction promiseLabel(label) {\n  return 'Router: ' + label;\n}\n\nfunction subclass(parentConstructor, proto) {\n  function C(props) {\n    parentConstructor.call(this, props || {});\n  }\n  C.prototype = oCreate(parentConstructor.prototype);\n  merge(C.prototype, proto);\n  return C;\n}\n\nfunction resolveHook(obj, hookName) {\n  if (!obj) { return; }\n  var underscored = \"_\" + hookName;\n  return obj[underscored] && underscored ||\n         obj[hookName] && hookName;\n}\n\nfunction callHook(obj, _hookName, arg1, arg2) {\n  var hookName = resolveHook(obj, _hookName);\n  return hookName && obj[hookName].call(obj, arg1, arg2);\n}\n\nfunction applyHook(obj, _hookName, args) {\n  var hookName = resolveHook(obj, _hookName);\n  if (hookName) {\n    if (args.length === 0) {\n      return obj[hookName].call(obj);\n    } else if (args.length === 1) {\n      return obj[hookName].call(obj, args[0]);\n    } else if (args.length === 2) {\n      return obj[hookName].call(obj, args[0], args[1]);\n    } else {\n      return obj[hookName].apply(obj, args);\n    }\n  }\n}\n\nfunction TransitionState() {\n  this.handlerInfos = [];\n  this.queryParams = {};\n  this.params = {};\n}\n\nTransitionState.prototype = {\n  promiseLabel: function(label) {\n    var targetName = '';\n    forEach(this.handlerInfos, function(handlerInfo) {\n      if (targetName !== '') {\n        targetName += '.';\n      }\n      targetName += handlerInfo.name;\n    });\n    return promiseLabel(\"'\" + targetName + \"': \" + label);\n  },\n\n  resolve: function(shouldContinue, payload) {\n    // First, calculate params for this state. This is useful\n    // information to provide to the various route hooks.\n    var params = this.params;\n    forEach(this.handlerInfos, function(handlerInfo) {\n      params[handlerInfo.name] = handlerInfo.params || {};\n    });\n\n    payload = payload || {};\n    payload.resolveIndex = 0;\n\n    var currentState = this;\n    var wasAborted = false;\n\n    // The prelude RSVP.resolve() asyncs us into the promise land.\n    return rsvp.Promise.resolve(null, this.promiseLabel(\"Start transition\"))\n    .then(resolveOneHandlerInfo, null, this.promiseLabel('Resolve handler'))['catch'](handleError, this.promiseLabel('Handle error'));\n\n    function innerShouldContinue() {\n      return rsvp.Promise.resolve(shouldContinue(), currentState.promiseLabel(\"Check if should continue\"))['catch'](function(reason) {\n        // We distinguish between errors that occurred\n        // during resolution (e.g. beforeModel/model/afterModel),\n        // and aborts due to a rejecting promise from shouldContinue().\n        wasAborted = true;\n        return rsvp.Promise.reject(reason);\n      }, currentState.promiseLabel(\"Handle abort\"));\n    }\n\n    function handleError(error) {\n      // This is the only possible\n      // reject value of TransitionState#resolve\n      var handlerInfos = currentState.handlerInfos;\n      var errorHandlerIndex = payload.resolveIndex >= handlerInfos.length ?\n                              handlerInfos.length - 1 : payload.resolveIndex;\n      return rsvp.Promise.reject({\n        error: error,\n        handlerWithError: currentState.handlerInfos[errorHandlerIndex].handler,\n        wasAborted: wasAborted,\n        state: currentState\n      });\n    }\n\n    function proceed(resolvedHandlerInfo) {\n      var wasAlreadyResolved = currentState.handlerInfos[payload.resolveIndex].isResolved;\n\n      // Swap the previously unresolved handlerInfo with\n      // the resolved handlerInfo\n      currentState.handlerInfos[payload.resolveIndex++] = resolvedHandlerInfo;\n\n      if (!wasAlreadyResolved) {\n        // Call the redirect hook. The reason we call it here\n        // vs. afterModel is so that redirects into child\n        // routes don't re-run the model hooks for this\n        // already-resolved route.\n        var handler = resolvedHandlerInfo.handler;\n        callHook(handler, 'redirect', resolvedHandlerInfo.context, payload);\n      }\n\n      // Proceed after ensuring that the redirect hook\n      // didn't abort this transition by transitioning elsewhere.\n      return innerShouldContinue().then(resolveOneHandlerInfo, null, currentState.promiseLabel('Resolve handler'));\n    }\n\n    function resolveOneHandlerInfo() {\n      if (payload.resolveIndex === currentState.handlerInfos.length) {\n        // This is is the only possible\n        // fulfill value of TransitionState#resolve\n        return {\n          error: null,\n          state: currentState\n        };\n      }\n\n      var handlerInfo = currentState.handlerInfos[payload.resolveIndex];\n\n      return handlerInfo.resolve(innerShouldContinue, payload)\n                        .then(proceed, null, currentState.promiseLabel('Proceed'));\n    }\n  }\n};\n\nfunction TransitionAbortedError(message) {\n  if (!(this instanceof TransitionAbortedError)) {\n    return new TransitionAbortedError(message);\n  }\n\n  var error = Error.call(this, message);\n\n  if (Error.captureStackTrace) {\n    Error.captureStackTrace(this, TransitionAbortedError);\n  } else {\n    this.stack = error.stack;\n  }\n\n  this.description = error.description;\n  this.fileName = error.fileName;\n  this.lineNumber = error.lineNumber;\n  this.message = error.message || 'TransitionAborted';\n  this.name = 'TransitionAborted';\n  this.number = error.number;\n  this.code = error.code;\n}\n\nTransitionAbortedError.prototype = oCreate(Error.prototype);\n\n/**\n  A Transition is a thennable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @constructor\n  @param {Object} router\n  @param {Object} intent\n  @param {Object} state\n  @param {Object} error\n  @private\n */\nfunction Transition(router, intent, state, error, previousTransition) {\n  var transition = this;\n  this.state = state || router.state;\n  this.intent = intent;\n  this.router = router;\n  this.data = this.intent && this.intent.data || {};\n  this.resolvedModels = {};\n  this.queryParams = {};\n  this.promise = undefined;\n  this.error = undefined;\n  this.params = undefined;\n  this.handlerInfos = undefined;\n  this.targetName = undefined;\n  this.pivotHandler = undefined;\n  this.sequence = undefined;\n  this.isAborted = false;\n  this.isActive = true;\n\n  if (error) {\n    this.promise = rsvp.Promise.reject(error);\n    this.error = error;\n    return;\n  }\n\n  // if you're doing multiple redirects, need the new transition to know if it\n  // is actually part of the first transition or not. Any further redirects\n  // in the initial transition also need to know if they are part of the\n  // initial transition\n  this.isCausedByAbortingTransition = !!previousTransition;\n  this.isCausedByInitialTransition = (\n    previousTransition && (\n      previousTransition.isCausedByInitialTransition ||\n      previousTransition.sequence === 0\n    )\n  );\n\n  if (state) {\n    this.params = state.params;\n    this.queryParams = state.queryParams;\n    this.handlerInfos = state.handlerInfos;\n\n    var len = state.handlerInfos.length;\n    if (len) {\n      this.targetName = state.handlerInfos[len-1].name;\n    }\n\n    for (var i = 0; i < len; ++i) {\n      var handlerInfo = state.handlerInfos[i];\n\n      // TODO: this all seems hacky\n      if (!handlerInfo.isResolved) { break; }\n      this.pivotHandler = handlerInfo.handler;\n    }\n\n    this.sequence = router.currentSequence++;\n    this.promise = state.resolve(checkForAbort, this)['catch'](\n      catchHandlerForTransition(transition), promiseLabel('Handle Abort'));\n  } else {\n    this.promise = rsvp.Promise.resolve(this.state);\n    this.params = {};\n  }\n\n  function checkForAbort() {\n    if (transition.isAborted) {\n      return rsvp.Promise.reject(undefined, promiseLabel(\"Transition aborted - reject\"));\n    }\n  }\n}\n\nfunction catchHandlerForTransition(transition) {\n  return function(result) {\n    if (result.wasAborted || transition.isAborted) {\n      return rsvp.Promise.reject(logAbort(transition));\n    } else {\n      transition.trigger('error', result.error, transition, result.handlerWithError);\n      transition.abort();\n      return rsvp.Promise.reject(result.error);\n    }\n  };\n}\n\n\nTransition.prototype = {\n  targetName: null,\n  urlMethod: 'update',\n  intent: null,\n  pivotHandler: null,\n  resolveIndex: 0,\n  resolvedModels: null,\n  state: null,\n  queryParamsOnly: false,\n\n  isTransition: true,\n\n  isExiting: function(handler) {\n    var handlerInfos = this.handlerInfos;\n    for (var i = 0, len = handlerInfos.length; i < len; ++i) {\n      var handlerInfo = handlerInfos[i];\n      if (handlerInfo.name === handler || handlerInfo.handler === handler) {\n        return false;\n      }\n    }\n    return true;\n  },\n\n  /**\n    The Transition's internal promise. Calling `.then` on this property\n    is that same as calling `.then` on the Transition object itself, but\n    this property is exposed for when you want to pass around a\n    Transition's promise, but not the Transition object itself, since\n    Transition object can be externally `abort`ed, while the promise\n    cannot.\n\n    @property promise\n    @type {Object}\n    @public\n   */\n  promise: null,\n\n  /**\n    Custom state can be stored on a Transition's `data` object.\n    This can be useful for decorating a Transition within an earlier\n    hook and shared with a later hook. Properties set on `data` will\n    be copied to new transitions generated by calling `retry` on this\n    transition.\n\n    @property data\n    @type {Object}\n    @public\n   */\n  data: null,\n\n  /**\n    A standard promise hook that resolves if the transition\n    succeeds and rejects if it fails/redirects/aborts.\n\n    Forwards to the internal `promise` property which you can\n    use in situations where you want to pass around a thennable,\n    but not the Transition itself.\n\n    @method then\n    @param {Function} onFulfilled\n    @param {Function} onRejected\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n    @public\n   */\n  then: function(onFulfilled, onRejected, label) {\n    return this.promise.then(onFulfilled, onRejected, label);\n  },\n\n  /**\n\n    Forwards to the internal `promise` property which you can\n    use in situations where you want to pass around a thennable,\n    but not the Transition itself.\n\n    @method catch\n    @param {Function} onRejection\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n    @public\n   */\n  catch: function(onRejection, label) {\n    return this.promise.catch(onRejection, label);\n  },\n\n  /**\n\n    Forwards to the internal `promise` property which you can\n    use in situations where you want to pass around a thennable,\n    but not the Transition itself.\n\n    @method finally\n    @param {Function} callback\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n    @public\n   */\n  finally: function(callback, label) {\n    return this.promise.finally(callback, label);\n  },\n\n  /**\n    Aborts the Transition. Note you can also implicitly abort a transition\n    by initiating another transition while a previous one is underway.\n\n    @method abort\n    @return {Transition} this transition\n    @public\n   */\n  abort: function() {\n    if (this.isAborted) { return this; }\n    log(this.router, this.sequence, this.targetName + \": transition was aborted\");\n    this.intent.preTransitionState = this.router.state;\n    this.isAborted = true;\n    this.isActive = false;\n    this.router.activeTransition = null;\n    return this;\n  },\n\n  /**\n\n    Retries a previously-aborted transition (making sure to abort the\n    transition if it's still active). Returns a new transition that\n    represents the new attempt to transition.\n\n    @method retry\n    @return {Transition} new transition\n    @public\n   */\n  retry: function() {\n    // TODO: add tests for merged state retry()s\n    this.abort();\n    return this.router.transitionByIntent(this.intent, false);\n  },\n\n  /**\n\n    Sets the URL-changing method to be employed at the end of a\n    successful transition. By default, a new Transition will just\n    use `updateURL`, but passing 'replace' to this method will\n    cause the URL to update using 'replaceWith' instead. Omitting\n    a parameter will disable the URL change, allowing for transitions\n    that don't update the URL at completion (this is also used for\n    handleURL, since the URL has already changed before the\n    transition took place).\n\n    @method method\n    @param {String} method the type of URL-changing method to use\n      at the end of a transition. Accepted values are 'replace',\n      falsy values, or any other non-falsy value (which is\n      interpreted as an updateURL transition).\n\n    @return {Transition} this transition\n    @public\n   */\n  method: function(method) {\n    this.urlMethod = method;\n    return this;\n  },\n\n  /**\n\n    Fires an event on the current list of resolved/resolving\n    handlers within this transition. Useful for firing events\n    on route hierarchies that haven't fully been entered yet.\n\n    Note: This method is also aliased as `send`\n\n    @method trigger\n    @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n    @param {String} name the name of the event to fire\n    @public\n   */\n  trigger: function (ignoreFailure) {\n    var args = slice.call(arguments);\n    if (typeof ignoreFailure === 'boolean') {\n      args.shift();\n    } else {\n      // Throw errors on unhandled trigger events by default\n      ignoreFailure = false;\n    }\n    trigger(this.router, this.state.handlerInfos.slice(0, this.resolveIndex + 1), ignoreFailure, args);\n  },\n\n  /**\n    Transitions are aborted and their promises rejected\n    when redirects occur; this method returns a promise\n    that will follow any redirects that occur and fulfill\n    with the value fulfilled by any redirecting transitions\n    that occur.\n\n    @method followRedirects\n    @return {Promise} a promise that fulfills with the same\n      value that the final redirecting transition fulfills with\n    @public\n   */\n  followRedirects: function() {\n    var router = this.router;\n    return this.promise['catch'](function(reason) {\n      if (router.activeTransition) {\n        return router.activeTransition.followRedirects();\n      }\n      return rsvp.Promise.reject(reason);\n    });\n  },\n\n  toString: function() {\n    return \"Transition (sequence \" + this.sequence + \")\";\n  },\n\n  /**\n    @private\n   */\n  log: function(message) {\n    log(this.router, this.sequence, message);\n  }\n};\n\n// Alias 'trigger' as 'send'\nTransition.prototype.send = Transition.prototype.trigger;\n\n/**\n  @private\n\n  Logs and returns an instance of TransitionAbortedError.\n */\nfunction logAbort(transition) {\n  log(transition.router, transition.sequence, \"detected abort.\");\n  return new TransitionAbortedError();\n}\n\nfunction TransitionIntent(props) {\n  this.initialize(props);\n\n  // TODO: wat\n  this.data = this.data || {};\n}\n\nTransitionIntent.prototype = {\n  initialize: null,\n  applyToState: null\n};\n\nvar DEFAULT_HANDLER = Object.freeze({});\n\nfunction HandlerInfo(_props) {\n  var props = _props || {};\n\n  // Set a default handler to ensure consistent object shape\n  this._handler = DEFAULT_HANDLER;\n\n  if (props.handler) {\n    var name = props.name;\n\n    // Setup a handlerPromise so that we can wait for asynchronously loaded handlers\n    this.handlerPromise = rsvp.Promise.resolve(props.handler);\n\n    // Wait until the 'handler' property has been updated when chaining to a handler\n    // that is a promise\n    if (isPromise(props.handler)) {\n      this.handlerPromise = this.handlerPromise.then(bind(this, this.updateHandler));\n      props.handler = undefined;\n    } else if (props.handler) {\n      // Store the name of the handler on the handler for easy checks later\n      props.handler._handlerName = name;\n    }\n  }\n\n  merge(this, props);\n  this.initialize(props);\n}\n\nHandlerInfo.prototype = {\n  name: null,\n\n  getHandler: function() {},\n\n  fetchHandler: function() {\n    var handler = this.getHandler(this.name);\n\n    // Setup a handlerPromise so that we can wait for asynchronously loaded handlers\n    this.handlerPromise = rsvp.Promise.resolve(handler);\n\n    // Wait until the 'handler' property has been updated when chaining to a handler\n    // that is a promise\n    if (isPromise(handler)) {\n      this.handlerPromise = this.handlerPromise.then(bind(this, this.updateHandler));\n    } else if (handler) {\n      // Store the name of the handler on the handler for easy checks later\n      handler._handlerName = this.name;\n      return this.handler = handler;\n    }\n\n    return this.handler = undefined;\n  },\n\n  _handlerPromise: undefined,\n\n  params: null,\n  context: null,\n\n  // Injected by the handler info factory.\n  factory: null,\n\n  initialize: function() {},\n\n  log: function(payload, message) {\n    if (payload.log) {\n      payload.log(this.name + ': ' + message);\n    }\n  },\n\n  promiseLabel: function(label) {\n    return promiseLabel(\"'\" + this.name + \"' \" + label);\n  },\n\n  getUnresolved: function() {\n    return this;\n  },\n\n  serialize: function() {\n    return this.params || {};\n  },\n\n  updateHandler: function(handler) {\n    // Store the name of the handler on the handler for easy checks later\n    handler._handlerName = this.name;\n    return this.handler = handler;\n  },\n\n  resolve: function(shouldContinue, payload) {\n    var checkForAbort  = bind(this, this.checkForAbort,      shouldContinue),\n        beforeModel    = bind(this, this.runBeforeModelHook, payload),\n        model          = bind(this, this.getModel,           payload),\n        afterModel     = bind(this, this.runAfterModelHook,  payload),\n        becomeResolved = bind(this, this.becomeResolved,     payload),\n        self = this;\n\n    return rsvp.Promise.resolve(this.handlerPromise, this.promiseLabel(\"Start handler\"))\n            .then(function(handler) {\n              // We nest this chain in case the handlerPromise has an error so that\n              // we don't have to bubble it through every step\n              return rsvp.Promise.resolve(handler)\n                .then(checkForAbort, null, self.promiseLabel(\"Check for abort\"))\n                .then(beforeModel, null, self.promiseLabel(\"Before model\"))\n                .then(checkForAbort, null, self.promiseLabel(\"Check if aborted during 'beforeModel' hook\"))\n                .then(model, null, self.promiseLabel(\"Model\"))\n                .then(checkForAbort, null, self.promiseLabel(\"Check if aborted in 'model' hook\"))\n                .then(afterModel, null, self.promiseLabel(\"After model\"))\n                .then(checkForAbort, null, self.promiseLabel(\"Check if aborted in 'afterModel' hook\"))\n                .then(becomeResolved, null, self.promiseLabel(\"Become resolved\"));\n            }, function(error) {\n              throw error;\n            });\n  },\n\n  runBeforeModelHook: function(payload) {\n    if (payload.trigger) {\n      payload.trigger(true, 'willResolveModel', payload, this.handler);\n    }\n    return this.runSharedModelHook(payload, 'beforeModel', []);\n  },\n\n  runAfterModelHook: function(payload, resolvedModel) {\n    // Stash the resolved model on the payload.\n    // This makes it possible for users to swap out\n    // the resolved model in afterModel.\n    var name = this.name;\n    this.stashResolvedModel(payload, resolvedModel);\n\n    return this.runSharedModelHook(payload, 'afterModel', [resolvedModel])\n               .then(function() {\n                 // Ignore the fulfilled value returned from afterModel.\n                 // Return the value stashed in resolvedModels, which\n                 // might have been swapped out in afterModel.\n                 return payload.resolvedModels[name];\n               }, null, this.promiseLabel(\"Ignore fulfillment value and return model value\"));\n  },\n\n  runSharedModelHook: function(payload, hookName, args) {\n    this.log(payload, \"calling \" + hookName + \" hook\");\n\n    if (this.queryParams) {\n      args.push(this.queryParams);\n    }\n    args.push(payload);\n\n    var result = applyHook(this.handler, hookName, args);\n\n    if (result && result.isTransition) {\n      result = null;\n    }\n\n    return rsvp.Promise.resolve(result, this.promiseLabel(\"Resolve value returned from one of the model hooks\"));\n  },\n\n  // overridden by subclasses\n  getModel: null,\n\n  checkForAbort: function(shouldContinue, promiseValue) {\n    return rsvp.Promise.resolve(shouldContinue(), this.promiseLabel(\"Check for abort\")).then(function() {\n      // We don't care about shouldContinue's resolve value;\n      // pass along the original value passed to this fn.\n      return promiseValue;\n    }, null, this.promiseLabel(\"Ignore fulfillment value and continue\"));\n  },\n\n  stashResolvedModel: function(payload, resolvedModel) {\n    payload.resolvedModels = payload.resolvedModels || {};\n    payload.resolvedModels[this.name] = resolvedModel;\n  },\n\n  becomeResolved: function(payload, resolvedContext) {\n    var params = this.serialize(resolvedContext);\n\n    if (payload) {\n      this.stashResolvedModel(payload, resolvedContext);\n      payload.params = payload.params || {};\n      payload.params[this.name] = params;\n    }\n\n    return this.factory('resolved', {\n      context: resolvedContext,\n      name: this.name,\n      handler: this.handler,\n      params: params\n    });\n  },\n\n  shouldSupercede: function(other) {\n    // Prefer this newer handlerInfo over `other` if:\n    // 1) The other one doesn't exist\n    // 2) The names don't match\n    // 3) This handler has a context that doesn't match\n    //    the other one (or the other one doesn't have one).\n    // 4) This handler has parameters that don't match the other.\n    if (!other) { return true; }\n\n    var contextsMatch = (other.context === this.context);\n    return other.name !== this.name ||\n           (this.hasOwnProperty('context') && !contextsMatch) ||\n           (this.hasOwnProperty('params') && !paramsMatch(this.params, other.params));\n  }\n};\n\nObject.defineProperty(HandlerInfo.prototype, 'handler', {\n  get: function() {\n    // _handler could be set to either a handler object or undefined, so we\n    // compare against a default reference to know when it's been set\n    if (this._handler !== DEFAULT_HANDLER) {\n      return this._handler;\n    }\n\n    return this.fetchHandler();\n  },\n\n  set: function(handler) {\n    return this._handler = handler;\n  }\n});\n\nObject.defineProperty(HandlerInfo.prototype, 'handlerPromise', {\n  get: function() {\n    if (this._handlerPromise) {\n      return this._handlerPromise;\n    }\n\n    this.fetchHandler();\n\n    return this._handlerPromise;\n  },\n\n  set: function(handlerPromise) {\n    return this._handlerPromise = handlerPromise;\n  }\n});\n\nfunction paramsMatch(a, b) {\n  if ((!a) ^ (!b)) {\n    // Only one is null.\n    return false;\n  }\n\n  if (!a) {\n    // Both must be null.\n    return true;\n  }\n\n  // Note: this assumes that both params have the same\n  // number of keys, but since we're comparing the\n  // same handlers, they should.\n  for (var k in a) {\n    if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n      return false;\n    }\n  }\n  return true;\n}\n\nvar ResolvedHandlerInfo = subclass(HandlerInfo, {\n  resolve: function(shouldContinue, payload) {\n    // A ResolvedHandlerInfo just resolved with itself.\n    if (payload && payload.resolvedModels) {\n      payload.resolvedModels[this.name] = this.context;\n    }\n    return rsvp.Promise.resolve(this, this.promiseLabel(\"Resolve\"));\n  },\n\n  getUnresolved: function() {\n    return this.factory('param', {\n      name: this.name,\n      handler: this.handler,\n      params: this.params\n    });\n  },\n\n  isResolved: true\n});\n\nvar UnresolvedHandlerInfoByObject = subclass(HandlerInfo, {\n  getModel: function(payload) {\n    this.log(payload, this.name + \": resolving provided model\");\n    return rsvp.Promise.resolve(this.context);\n  },\n\n  initialize: function(props) {\n    this.names = props.names || [];\n    this.context = props.context;\n  },\n\n  /**\n    @private\n\n    Serializes a handler using its custom `serialize` method or\n    by a default that looks up the expected property name from\n    the dynamic segment.\n\n    @param {Object} model the model to be serialized for this handler\n  */\n  serialize: function(_model) {\n    var model = _model || this.context,\n        names = this.names,\n        serializer = this.serializer || (this.handler && this.handler.serialize);\n\n    var object = {};\n    if (isParam(model)) {\n      object[names[0]] = model;\n      return object;\n    }\n\n    // Use custom serialize if it exists.\n    if (serializer) {\n      return serializer(model, names);\n    }\n\n    if (names.length !== 1) { return; }\n\n    var name = names[0];\n\n    if (/_id$/.test(name)) {\n      object[name] = model.id;\n    } else {\n      object[name] = model;\n    }\n    return object;\n  }\n});\n\n// Generated by URL transitions and non-dynamic route segments in named Transitions.\nvar UnresolvedHandlerInfoByParam = subclass (HandlerInfo, {\n  initialize: function(props) {\n    this.params = props.params || {};\n  },\n\n  getModel: function(payload) {\n    var fullParams = this.params;\n    if (payload && payload.queryParams) {\n      fullParams = {};\n      merge(fullParams, this.params);\n      fullParams.queryParams = payload.queryParams;\n    }\n\n    var handler = this.handler;\n    var hookName = resolveHook(handler, 'deserialize') ||\n                   resolveHook(handler, 'model');\n\n    return this.runSharedModelHook(payload, hookName, [fullParams]);\n  }\n});\n\nhandlerInfoFactory.klasses = {\n  resolved: ResolvedHandlerInfo,\n  param: UnresolvedHandlerInfoByParam,\n  object: UnresolvedHandlerInfoByObject\n};\n\nfunction handlerInfoFactory(name, props) {\n  var Ctor = handlerInfoFactory.klasses[name],\n      handlerInfo = new Ctor(props || {});\n  handlerInfo.factory = handlerInfoFactory;\n  return handlerInfo;\n}\n\nvar NamedTransitionIntent = subclass(TransitionIntent, {\n  name: null,\n  pivotHandler: null,\n  contexts: null,\n  queryParams: null,\n\n  initialize: function(props) {\n    this.name = props.name;\n    this.pivotHandler = props.pivotHandler;\n    this.contexts = props.contexts || [];\n    this.queryParams = props.queryParams;\n  },\n\n  applyToState: function(oldState, recognizer, getHandler, isIntermediate, getSerializer) {\n\n    var partitionedArgs     = extractQueryParams([this.name].concat(this.contexts)),\n      pureArgs              = partitionedArgs[0],\n      handlers              = recognizer.handlersFor(pureArgs[0]);\n\n    var targetRouteName = handlers[handlers.length-1].handler;\n\n    return this.applyToHandlers(oldState, handlers, getHandler, targetRouteName, isIntermediate, null, getSerializer);\n  },\n\n  applyToHandlers: function(oldState, handlers, getHandler, targetRouteName, isIntermediate, checkingIfActive, getSerializer) {\n\n    var i, len;\n    var newState = new TransitionState();\n    var objects = this.contexts.slice(0);\n\n    var invalidateIndex = handlers.length;\n\n    // Pivot handlers are provided for refresh transitions\n    if (this.pivotHandler) {\n      for (i = 0, len = handlers.length; i < len; ++i) {\n        if (handlers[i].handler === this.pivotHandler._handlerName) {\n          invalidateIndex = i;\n          break;\n        }\n      }\n    }\n\n    for (i = handlers.length - 1; i >= 0; --i) {\n      var result = handlers[i];\n      var name = result.handler;\n\n      var oldHandlerInfo = oldState.handlerInfos[i];\n      var newHandlerInfo = null;\n\n      if (result.names.length > 0) {\n        if (i >= invalidateIndex) {\n          newHandlerInfo = this.createParamHandlerInfo(name, getHandler, result.names, objects, oldHandlerInfo);\n        } else {\n          var serializer = getSerializer(name);\n          newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, getHandler, result.names, objects, oldHandlerInfo, targetRouteName, i, serializer);\n        }\n      } else {\n        // This route has no dynamic segment.\n        // Therefore treat as a param-based handlerInfo\n        // with empty params. This will cause the `model`\n        // hook to be called with empty params, which is desirable.\n        newHandlerInfo = this.createParamHandlerInfo(name, getHandler, result.names, objects, oldHandlerInfo);\n      }\n\n      if (checkingIfActive) {\n        // If we're performing an isActive check, we want to\n        // serialize URL params with the provided context, but\n        // ignore mismatches between old and new context.\n        newHandlerInfo = newHandlerInfo.becomeResolved(null, newHandlerInfo.context);\n        var oldContext = oldHandlerInfo && oldHandlerInfo.context;\n        if (result.names.length > 0 && newHandlerInfo.context === oldContext) {\n          // If contexts match in isActive test, assume params also match.\n          // This allows for flexibility in not requiring that every last\n          // handler provide a `serialize` method\n          newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params;\n        }\n        newHandlerInfo.context = oldContext;\n      }\n\n      var handlerToUse = oldHandlerInfo;\n      if (i >= invalidateIndex || newHandlerInfo.shouldSupercede(oldHandlerInfo)) {\n        invalidateIndex = Math.min(i, invalidateIndex);\n        handlerToUse = newHandlerInfo;\n      }\n\n      if (isIntermediate && !checkingIfActive) {\n        handlerToUse = handlerToUse.becomeResolved(null, handlerToUse.context);\n      }\n\n      newState.handlerInfos.unshift(handlerToUse);\n    }\n\n    if (objects.length > 0) {\n      throw new Error(\"More context objects were passed than there are dynamic segments for the route: \" + targetRouteName);\n    }\n\n    if (!isIntermediate) {\n      this.invalidateChildren(newState.handlerInfos, invalidateIndex);\n    }\n\n    merge(newState.queryParams, this.queryParams || {});\n\n    return newState;\n  },\n\n  invalidateChildren: function(handlerInfos, invalidateIndex) {\n    for (var i = invalidateIndex, l = handlerInfos.length; i < l; ++i) {\n      var handlerInfo = handlerInfos[i];\n      handlerInfos[i] = handlerInfo.getUnresolved();\n    }\n  },\n\n  getHandlerInfoForDynamicSegment: function(name, getHandler, names, objects, oldHandlerInfo, targetRouteName, i, serializer) {\n    var objectToUse;\n    if (objects.length > 0) {\n\n      // Use the objects provided for this transition.\n      objectToUse = objects[objects.length - 1];\n      if (isParam(objectToUse)) {\n        return this.createParamHandlerInfo(name, getHandler, names, objects, oldHandlerInfo);\n      } else {\n        objects.pop();\n      }\n    } else if (oldHandlerInfo && oldHandlerInfo.name === name) {\n      // Reuse the matching oldHandlerInfo\n      return oldHandlerInfo;\n    } else {\n      if (this.preTransitionState) {\n        var preTransitionHandlerInfo = this.preTransitionState.handlerInfos[i];\n        objectToUse = preTransitionHandlerInfo && preTransitionHandlerInfo.context;\n      } else {\n        // Ideally we should throw this error to provide maximal\n        // information to the user that not enough context objects\n        // were provided, but this proves too cumbersome in Ember\n        // in cases where inner template helpers are evaluated\n        // before parent helpers un-render, in which cases this\n        // error somewhat prematurely fires.\n        //throw new Error(\"Not enough context objects were provided to complete a transition to \" + targetRouteName + \". Specifically, the \" + name + \" route needs an object that can be serialized into its dynamic URL segments [\" + names.join(', ') + \"]\");\n        return oldHandlerInfo;\n      }\n    }\n\n    return handlerInfoFactory('object', {\n      name: name,\n      getHandler: getHandler,\n      serializer: serializer,\n      context: objectToUse,\n      names: names\n    });\n  },\n\n  createParamHandlerInfo: function(name, getHandler, names, objects, oldHandlerInfo) {\n    var params = {};\n\n    // Soak up all the provided string/numbers\n    var numNames = names.length;\n    while (numNames--) {\n\n      // Only use old params if the names match with the new handler\n      var oldParams = (oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params) || {};\n\n      var peek = objects[objects.length - 1];\n      var paramName = names[numNames];\n      if (isParam(peek)) {\n        params[paramName] = \"\" + objects.pop();\n      } else {\n        // If we're here, this means only some of the params\n        // were string/number params, so try and use a param\n        // value from a previous handler.\n        if (oldParams.hasOwnProperty(paramName)) {\n          params[paramName] = oldParams[paramName];\n        } else {\n          throw new Error(\"You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route \" + name);\n        }\n      }\n    }\n\n    return handlerInfoFactory('param', {\n      name: name,\n      getHandler: getHandler,\n      params: params\n    });\n  }\n});\n\nfunction UnrecognizedURLError(message) {\n  if (!(this instanceof UnrecognizedURLError)) {\n    return new UnrecognizedURLError(message);\n  }\n\n  var error = Error.call(this, message);\n\n  if (Error.captureStackTrace) {\n    Error.captureStackTrace(this, UnrecognizedURLError);\n  } else {\n    this.stack = error.stack;\n  }\n\n  this.description = error.description;\n  this.fileName = error.fileName;\n  this.lineNumber = error.lineNumber;\n  this.message = error.message || 'UnrecognizedURL';\n  this.name = 'UnrecognizedURLError';\n  this.number = error.number;\n  this.code = error.code;\n}\n\nUnrecognizedURLError.prototype = oCreate(Error.prototype);\n\nvar URLTransitionIntent = subclass(TransitionIntent, {\n  url: null,\n\n  initialize: function(props) {\n    this.url = props.url;\n  },\n\n  applyToState: function(oldState, recognizer, getHandler) {\n    var newState = new TransitionState();\n\n    var results = recognizer.recognize(this.url),\n        i, len;\n\n    if (!results) {\n      throw new UnrecognizedURLError(this.url);\n    }\n\n    var statesDiffer = false;\n    var url = this.url;\n\n    // Checks if a handler is accessible by URL. If it is not, an error is thrown.\n    // For the case where the handler is loaded asynchronously, the error will be\n    // thrown once it is loaded.\n    function checkHandlerAccessibility(handler) {\n      if (handler && handler.inaccessibleByURL) {\n        throw new UnrecognizedURLError(url);\n      }\n\n      return handler;\n    }\n\n    for (i = 0, len = results.length; i < len; ++i) {\n      var result = results[i];\n      var name = result.handler;\n      var newHandlerInfo = handlerInfoFactory('param', {\n        name: name,\n        getHandler: getHandler,\n        params: result.params\n      });\n      var handler = newHandlerInfo.handler;\n\n      if (handler) {\n        checkHandlerAccessibility(handler);\n      } else {\n        // If the hanlder is being loaded asynchronously, check if we can\n        // access it after it has resolved\n        newHandlerInfo.handlerPromise = newHandlerInfo.handlerPromise.then(checkHandlerAccessibility);\n      }\n\n      var oldHandlerInfo = oldState.handlerInfos[i];\n      if (statesDiffer || newHandlerInfo.shouldSupercede(oldHandlerInfo)) {\n        statesDiffer = true;\n        newState.handlerInfos[i] = newHandlerInfo;\n      } else {\n        newState.handlerInfos[i] = oldHandlerInfo;\n      }\n    }\n\n    merge(newState.queryParams, results.queryParams);\n\n    return newState;\n  }\n});\n\nvar pop = Array.prototype.pop;\n\nfunction Router(_options) {\n  var options = _options || {};\n  this.getHandler = options.getHandler || this.getHandler;\n  this.getSerializer = options.getSerializer || this.getSerializer;\n  this.updateURL = options.updateURL || this.updateURL;\n  this.replaceURL = options.replaceURL || this.replaceURL;\n  this.didTransition = options.didTransition || this.didTransition;\n  this.willTransition = options.willTransition || this.willTransition;\n  this.delegate = options.delegate || this.delegate;\n  this.triggerEvent = options.triggerEvent || this.triggerEvent;\n  this.log = options.log || this.log;\n  this.dslCallBacks = []; // NOTE: set by Ember\n  this.state = undefined;\n  this.activeTransition = undefined;\n  this._changedQueryParams = undefined;\n  this.oldState = undefined;\n  this.currentHandlerInfos = undefined;\n  this.state = undefined;\n  this.currentSequence = 0;\n\n  this.recognizer = new RouteRecognizer();\n  this.reset();\n}\n\nfunction getTransitionByIntent(intent, isIntermediate) {\n  var wasTransitioning = !!this.activeTransition;\n  var oldState = wasTransitioning ? this.activeTransition.state : this.state;\n  var newTransition;\n\n  var newState = intent.applyToState(oldState, this.recognizer, this.getHandler, isIntermediate, this.getSerializer);\n  var queryParamChangelist = getChangelist(oldState.queryParams, newState.queryParams);\n\n  if (handlerInfosEqual(newState.handlerInfos, oldState.handlerInfos)) {\n\n    // This is a no-op transition. See if query params changed.\n    if (queryParamChangelist) {\n      newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);\n      if (newTransition) {\n        return newTransition;\n      }\n    }\n\n    // No-op. No need to create a new transition.\n    return this.activeTransition || new Transition(this);\n  }\n\n  if (isIntermediate) {\n    setupContexts(this, newState);\n    return;\n  }\n\n  // Create a new transition to the destination route.\n  newTransition = new Transition(this, intent, newState, undefined, this.activeTransition);\n\n  // Abort and usurp any previously active transition.\n  if (this.activeTransition) {\n    this.activeTransition.abort();\n  }\n  this.activeTransition = newTransition;\n\n  // Transition promises by default resolve with resolved state.\n  // For our purposes, swap out the promise to resolve\n  // after the transition has been finalized.\n  newTransition.promise = newTransition.promise.then(function(result) {\n    return finalizeTransition(newTransition, result.state);\n  }, null, promiseLabel(\"Settle transition promise when transition is finalized\"));\n\n  if (!wasTransitioning) {\n    notifyExistingHandlers(this, newState, newTransition);\n  }\n\n  fireQueryParamDidChange(this, newState, queryParamChangelist);\n\n  return newTransition;\n}\n\nRouter.prototype = {\n\n  /**\n    The main entry point into the router. The API is essentially\n    the same as the `map` method in `route-recognizer`.\n\n    This method extracts the String handler at the last `.to()`\n    call and uses it as the name of the whole route.\n\n    @param {Function} callback\n  */\n  map: function(callback) {\n    this.recognizer.delegate = this.delegate;\n\n    this.recognizer.map(callback, function(recognizer, routes) {\n      for (var i = routes.length - 1, proceed = true; i >= 0 && proceed; --i) {\n        var route = routes[i];\n        recognizer.add(routes, { as: route.handler });\n        proceed = route.path === '/' || route.path === '' || route.handler.slice(-6) === '.index';\n      }\n    });\n  },\n\n  hasRoute: function(route) {\n    return this.recognizer.hasRoute(route);\n  },\n\n  getHandler: function() {},\n\n  getSerializer: function() {},\n\n  queryParamsTransition: function(changelist, wasTransitioning, oldState, newState) {\n    var router = this;\n\n    fireQueryParamDidChange(this, newState, changelist);\n\n    if (!wasTransitioning && this.activeTransition) {\n      // One of the handlers in queryParamsDidChange\n      // caused a transition. Just return that transition.\n      return this.activeTransition;\n    } else {\n      // Running queryParamsDidChange didn't change anything.\n      // Just update query params and be on our way.\n\n      // We have to return a noop transition that will\n      // perform a URL update at the end. This gives\n      // the user the ability to set the url update\n      // method (default is replaceState).\n      var newTransition = new Transition(this);\n      newTransition.queryParamsOnly = true;\n\n      oldState.queryParams = finalizeQueryParamChange(this, newState.handlerInfos, newState.queryParams, newTransition);\n\n      newTransition.promise = newTransition.promise.then(function(result) {\n        updateURL(newTransition, oldState, true);\n        if (router.didTransition) {\n          router.didTransition(router.currentHandlerInfos);\n        }\n        return result;\n      }, null, promiseLabel(\"Transition complete\"));\n      return newTransition;\n    }\n  },\n\n  // NOTE: this doesn't really belong here, but here\n  // it shall remain until our ES6 transpiler can\n  // handle cyclical deps.\n  transitionByIntent: function(intent/*, isIntermediate*/) {\n    try {\n      return getTransitionByIntent.apply(this, arguments);\n    } catch(e) {\n      return new Transition(this, intent, null, e);\n    }\n  },\n\n  /**\n    Clears the current and target route handlers and triggers exit\n    on each of them starting at the leaf and traversing up through\n    its ancestors.\n  */\n  reset: function() {\n    if (this.state) {\n      forEach(this.state.handlerInfos.slice().reverse(), function(handlerInfo) {\n        var handler = handlerInfo.handler;\n        callHook(handler, 'exit');\n      });\n    }\n\n    this.oldState = undefined;\n    this.state = new TransitionState();\n    this.currentHandlerInfos = null;\n  },\n\n  activeTransition: null,\n\n  /**\n    var handler = handlerInfo.handler;\n    The entry point for handling a change to the URL (usually\n    via the back and forward button).\n\n    Returns an Array of handlers and the parameters associated\n    with those parameters.\n\n    @param {String} url a URL to process\n\n    @return {Array} an Array of `[handler, parameter]` tuples\n  */\n  handleURL: function(url) {\n    // Perform a URL-based transition, but don't change\n    // the URL afterward, since it already happened.\n    var args = slice.call(arguments);\n    if (url.charAt(0) !== '/') { args[0] = '/' + url; }\n\n    return doTransition(this, args).method(null);\n  },\n\n  /**\n    Hook point for updating the URL.\n\n    @param {String} url a URL to update to\n  */\n  updateURL: function() {\n    throw new Error(\"updateURL is not implemented\");\n  },\n\n  /**\n    Hook point for replacing the current URL, i.e. with replaceState\n\n    By default this behaves the same as `updateURL`\n\n    @param {String} url a URL to update to\n  */\n  replaceURL: function(url) {\n    this.updateURL(url);\n  },\n\n  /**\n    Transition into the specified named route.\n\n    If necessary, trigger the exit callback on any handlers\n    that are no longer represented by the target route.\n\n    @param {String} name the name of the route\n  */\n  transitionTo: function(/*name*/) {\n    return doTransition(this, arguments);\n  },\n\n  intermediateTransitionTo: function(/*name*/) {\n    return doTransition(this, arguments, true);\n  },\n\n  refresh: function(pivotHandler) {\n    var state = this.activeTransition ? this.activeTransition.state : this.state;\n    var handlerInfos = state.handlerInfos;\n    var params = {};\n    for (var i = 0, len = handlerInfos.length; i < len; ++i) {\n      var handlerInfo = handlerInfos[i];\n      params[handlerInfo.name] = handlerInfo.params || {};\n    }\n\n    log(this, \"Starting a refresh transition\");\n    var intent = new NamedTransitionIntent({\n      name: handlerInfos[handlerInfos.length - 1].name,\n      pivotHandler: pivotHandler || handlerInfos[0].handler,\n      contexts: [], // TODO collect contexts...?\n      queryParams: this._changedQueryParams || state.queryParams || {}\n    });\n\n    return this.transitionByIntent(intent, false);\n  },\n\n  /**\n    Identical to `transitionTo` except that the current URL will be replaced\n    if possible.\n\n    This method is intended primarily for use with `replaceState`.\n\n    @param {String} name the name of the route\n  */\n  replaceWith: function(/*name*/) {\n    return doTransition(this, arguments).method('replace');\n  },\n\n  /**\n    Take a named route and context objects and generate a\n    URL.\n\n    @param {String} name the name of the route to generate\n      a URL for\n    @param {...Object} objects a list of objects to serialize\n\n    @return {String} a URL\n  */\n  generate: function(handlerName) {\n\n    var partitionedArgs = extractQueryParams(slice.call(arguments, 1)),\n      suppliedParams = partitionedArgs[0],\n      queryParams = partitionedArgs[1];\n\n    // Construct a TransitionIntent with the provided params\n    // and apply it to the present state of the router.\n    var intent = new NamedTransitionIntent({ name: handlerName, contexts: suppliedParams });\n    var state = intent.applyToState(this.state, this.recognizer, this.getHandler, null, this.getSerializer);\n    var params = {};\n\n    for (var i = 0, len = state.handlerInfos.length; i < len; ++i) {\n      var handlerInfo = state.handlerInfos[i];\n      var handlerParams = handlerInfo.serialize();\n      merge(params, handlerParams);\n    }\n    params.queryParams = queryParams;\n\n    return this.recognizer.generate(handlerName, params);\n  },\n\n  applyIntent: function(handlerName, contexts) {\n    var intent = new NamedTransitionIntent({\n      name: handlerName,\n      contexts: contexts\n    });\n\n    var state = this.activeTransition && this.activeTransition.state || this.state;\n    return intent.applyToState(state, this.recognizer, this.getHandler, null, this.getSerializer);\n  },\n\n  isActiveIntent: function(handlerName, contexts, queryParams, _state) {\n    var state = _state || this.state,\n        targetHandlerInfos = state.handlerInfos,\n        handlerInfo, len;\n\n    if (!targetHandlerInfos.length) { return false; }\n\n    var targetHandler = targetHandlerInfos[targetHandlerInfos.length - 1].name;\n    var recogHandlers = this.recognizer.handlersFor(targetHandler);\n\n    var index = 0;\n    for (len = recogHandlers.length; index < len; ++index) {\n      handlerInfo = targetHandlerInfos[index];\n      if (handlerInfo.name === handlerName) { break; }\n    }\n\n    if (index === recogHandlers.length) {\n      // The provided route name isn't even in the route hierarchy.\n      return false;\n    }\n\n    var testState = new TransitionState();\n    testState.handlerInfos = targetHandlerInfos.slice(0, index + 1);\n    recogHandlers = recogHandlers.slice(0, index + 1);\n\n    var intent = new NamedTransitionIntent({\n      name: targetHandler,\n      contexts: contexts\n    });\n\n    var newState = intent.applyToHandlers(testState, recogHandlers, this.getHandler, targetHandler, true, true, this.getSerializer);\n\n    var handlersEqual = handlerInfosEqual(newState.handlerInfos, testState.handlerInfos);\n    if (!queryParams || !handlersEqual) {\n      return handlersEqual;\n    }\n\n    // Get a hash of QPs that will still be active on new route\n    var activeQPsOnNewHandler = {};\n    merge(activeQPsOnNewHandler, queryParams);\n\n    var activeQueryParams  = state.queryParams;\n    for (var key in activeQueryParams) {\n      if (activeQueryParams.hasOwnProperty(key) &&\n          activeQPsOnNewHandler.hasOwnProperty(key)) {\n        activeQPsOnNewHandler[key] = activeQueryParams[key];\n      }\n    }\n\n    return handlersEqual && !getChangelist(activeQPsOnNewHandler, queryParams);\n  },\n\n  isActive: function(handlerName) {\n    var partitionedArgs = extractQueryParams(slice.call(arguments, 1));\n    return this.isActiveIntent(handlerName, partitionedArgs[0], partitionedArgs[1]);\n  },\n\n  trigger: function(/*name*/) {\n    var args = slice.call(arguments);\n    trigger(this, this.currentHandlerInfos, false, args);\n  },\n\n  /**\n    Hook point for logging transition status updates.\n\n    @param {String} message The message to log.\n  */\n  log: null\n};\n\n/**\n  @private\n\n  Fires queryParamsDidChange event\n*/\nfunction fireQueryParamDidChange(router, newState, queryParamChangelist) {\n  // If queryParams changed trigger event\n  if (queryParamChangelist) {\n\n    // This is a little hacky but we need some way of storing\n    // changed query params given that no activeTransition\n    // is guaranteed to have occurred.\n    router._changedQueryParams = queryParamChangelist.all;\n    trigger(router, newState.handlerInfos, true, ['queryParamsDidChange', queryParamChangelist.changed, queryParamChangelist.all, queryParamChangelist.removed]);\n    router._changedQueryParams = null;\n  }\n}\n\n/**\n  @private\n\n  Takes an Array of `HandlerInfo`s, figures out which ones are\n  exiting, entering, or changing contexts, and calls the\n  proper handler hooks.\n\n  For example, consider the following tree of handlers. Each handler is\n  followed by the URL segment it handles.\n\n  ```\n  |~index (\"/\")\n  | |~posts (\"/posts\")\n  | | |-showPost (\"/:id\")\n  | | |-newPost (\"/new\")\n  | | |-editPost (\"/edit\")\n  | |~about (\"/about/:id\")\n  ```\n\n  Consider the following transitions:\n\n  1. A URL transition to `/posts/1`.\n     1. Triggers the `*model` callbacks on the\n        `index`, `posts`, and `showPost` handlers\n     2. Triggers the `enter` callback on the same\n     3. Triggers the `setup` callback on the same\n  2. A direct transition to `newPost`\n     1. Triggers the `exit` callback on `showPost`\n     2. Triggers the `enter` callback on `newPost`\n     3. Triggers the `setup` callback on `newPost`\n  3. A direct transition to `about` with a specified\n     context object\n     1. Triggers the `exit` callback on `newPost`\n        and `posts`\n     2. Triggers the `serialize` callback on `about`\n     3. Triggers the `enter` callback on `about`\n     4. Triggers the `setup` callback on `about`\n\n  @param {Router} transition\n  @param {TransitionState} newState\n*/\nfunction setupContexts(router, newState, transition) {\n  var partition = partitionHandlers(router.state, newState);\n  var i, l, handler;\n\n  for (i=0, l=partition.exited.length; i<l; i++) {\n    handler = partition.exited[i].handler;\n    delete handler.context;\n\n    callHook(handler, 'reset', true, transition);\n    callHook(handler, 'exit', transition);\n  }\n\n  var oldState = router.oldState = router.state;\n  router.state = newState;\n  var currentHandlerInfos = router.currentHandlerInfos = partition.unchanged.slice();\n\n  try {\n    for (i=0, l=partition.reset.length; i<l; i++) {\n      handler = partition.reset[i].handler;\n      callHook(handler, 'reset', false, transition);\n    }\n\n    for (i=0, l=partition.updatedContext.length; i<l; i++) {\n      handlerEnteredOrUpdated(currentHandlerInfos, partition.updatedContext[i], false, transition);\n    }\n\n    for (i=0, l=partition.entered.length; i<l; i++) {\n      handlerEnteredOrUpdated(currentHandlerInfos, partition.entered[i], true, transition);\n    }\n  } catch(e) {\n    router.state = oldState;\n    router.currentHandlerInfos = oldState.handlerInfos;\n    throw e;\n  }\n\n  router.state.queryParams = finalizeQueryParamChange(router, currentHandlerInfos, newState.queryParams, transition);\n}\n\n\n/**\n  @private\n\n  Helper method used by setupContexts. Handles errors or redirects\n  that may happen in enter/setup.\n*/\nfunction handlerEnteredOrUpdated(currentHandlerInfos, handlerInfo, enter, transition) {\n  var handler = handlerInfo.handler,\n      context = handlerInfo.context;\n\n  function _handlerEnteredOrUpdated(handler) {\n    if (enter) {\n      callHook(handler, 'enter', transition);\n    }\n\n    if (transition && transition.isAborted) {\n      throw new TransitionAbortedError();\n    }\n\n    handler.context = context;\n    callHook(handler, 'contextDidChange');\n\n    callHook(handler, 'setup', context, transition);\n    if (transition && transition.isAborted) {\n      throw new TransitionAbortedError();\n    }\n\n    currentHandlerInfos.push(handlerInfo);\n  }\n\n  // If the handler doesn't exist, it means we haven't resolved the handler promise yet\n  if (!handler) {\n    handlerInfo.handlerPromise = handlerInfo.handlerPromise.then(_handlerEnteredOrUpdated);\n  } else {\n    _handlerEnteredOrUpdated(handler);\n  }\n\n  return true;\n}\n\n\n/**\n  @private\n\n  This function is called when transitioning from one URL to\n  another to determine which handlers are no longer active,\n  which handlers are newly active, and which handlers remain\n  active but have their context changed.\n\n  Take a list of old handlers and new handlers and partition\n  them into four buckets:\n\n  * unchanged: the handler was active in both the old and\n    new URL, and its context remains the same\n  * updated context: the handler was active in both the\n    old and new URL, but its context changed. The handler's\n    `setup` method, if any, will be called with the new\n    context.\n  * exited: the handler was active in the old URL, but is\n    no longer active.\n  * entered: the handler was not active in the old URL, but\n    is now active.\n\n  The PartitionedHandlers structure has four fields:\n\n  * `updatedContext`: a list of `HandlerInfo` objects that\n    represent handlers that remain active but have a changed\n    context\n  * `entered`: a list of `HandlerInfo` objects that represent\n    handlers that are newly active\n  * `exited`: a list of `HandlerInfo` objects that are no\n    longer active.\n  * `unchanged`: a list of `HanderInfo` objects that remain active.\n\n  @param {Array[HandlerInfo]} oldHandlers a list of the handler\n    information for the previous URL (or `[]` if this is the\n    first handled transition)\n  @param {Array[HandlerInfo]} newHandlers a list of the handler\n    information for the new URL\n\n  @return {Partition}\n*/\nfunction partitionHandlers(oldState, newState) {\n  var oldHandlers = oldState.handlerInfos;\n  var newHandlers = newState.handlerInfos;\n\n  var handlers = {\n        updatedContext: [],\n        exited: [],\n        entered: [],\n        unchanged: [],\n        reset: undefined\n      };\n\n  var handlerChanged, contextChanged = false, i, l;\n\n  for (i=0, l=newHandlers.length; i<l; i++) {\n    var oldHandler = oldHandlers[i], newHandler = newHandlers[i];\n\n    if (!oldHandler || oldHandler.handler !== newHandler.handler) {\n      handlerChanged = true;\n    }\n\n    if (handlerChanged) {\n      handlers.entered.push(newHandler);\n      if (oldHandler) { handlers.exited.unshift(oldHandler); }\n    } else if (contextChanged || oldHandler.context !== newHandler.context) {\n      contextChanged = true;\n      handlers.updatedContext.push(newHandler);\n    } else {\n      handlers.unchanged.push(oldHandler);\n    }\n  }\n\n  for (i=newHandlers.length, l=oldHandlers.length; i<l; i++) {\n    handlers.exited.unshift(oldHandlers[i]);\n  }\n\n  handlers.reset = handlers.updatedContext.slice();\n  handlers.reset.reverse();\n\n  return handlers;\n}\n\nfunction updateURL(transition, state/*, inputUrl*/) {\n  var urlMethod = transition.urlMethod;\n\n  if (!urlMethod) {\n    return;\n  }\n\n  var router = transition.router,\n      handlerInfos = state.handlerInfos,\n      handlerName = handlerInfos[handlerInfos.length - 1].name,\n      params = {};\n\n  for (var i = handlerInfos.length - 1; i >= 0; --i) {\n    var handlerInfo = handlerInfos[i];\n    merge(params, handlerInfo.params);\n    if (handlerInfo.handler.inaccessibleByURL) {\n      urlMethod = null;\n    }\n  }\n\n  if (urlMethod) {\n    params.queryParams = transition._visibleQueryParams || state.queryParams;\n    var url = router.recognizer.generate(handlerName, params);\n\n    // transitions during the initial transition must always use replaceURL.\n    // When the app boots, you are at a url, e.g. /foo. If some handler\n    // redirects to bar as part of the initial transition, you don't want to\n    // add a history entry for /foo. If you do, pressing back will immediately\n    // hit the redirect again and take you back to /bar, thus killing the back\n    // button\n    var initial = transition.isCausedByInitialTransition;\n\n    // say you are at / and you click a link to route /foo. In /foo's\n    // handler, the transition is aborted using replacewith('/bar').\n    // Because the current url is still /, the history entry for / is\n    // removed from the history. Clicking back will take you to the page\n    // you were on before /, which is often not even the app, thus killing\n    // the back button. That's why updateURL is always correct for an\n    // aborting transition that's not the initial transition\n    var replaceAndNotAborting = (\n      urlMethod === 'replace' &&\n      !transition.isCausedByAbortingTransition\n    );\n\n    if (initial || replaceAndNotAborting) {\n      router.replaceURL(url);\n    } else {\n      router.updateURL(url);\n    }\n  }\n}\n\n/**\n  @private\n\n  Updates the URL (if necessary) and calls `setupContexts`\n  to update the router's array of `currentHandlerInfos`.\n */\nfunction finalizeTransition(transition, newState) {\n\n  try {\n    log(transition.router, transition.sequence, \"Resolved all models on destination route; finalizing transition.\");\n\n    var router = transition.router,\n        handlerInfos = newState.handlerInfos;\n\n    // Run all the necessary enter/setup/exit hooks\n    setupContexts(router, newState, transition);\n\n    // Check if a redirect occurred in enter/setup\n    if (transition.isAborted) {\n      // TODO: cleaner way? distinguish b/w targetHandlerInfos?\n      router.state.handlerInfos = router.currentHandlerInfos;\n      return rsvp.Promise.reject(logAbort(transition));\n    }\n\n    updateURL(transition, newState, transition.intent.url);\n\n    transition.isActive = false;\n    router.activeTransition = null;\n\n    trigger(router, router.currentHandlerInfos, true, ['didTransition']);\n\n    if (router.didTransition) {\n      router.didTransition(router.currentHandlerInfos);\n    }\n\n    log(router, transition.sequence, \"TRANSITION COMPLETE.\");\n\n    // Resolve with the final handler.\n    return handlerInfos[handlerInfos.length - 1].handler;\n  } catch(e) {\n    if (!(e instanceof TransitionAbortedError)) {\n      //var erroneousHandler = handlerInfos.pop();\n      var infos = transition.state.handlerInfos;\n      transition.trigger(true, 'error', e, transition, infos[infos.length-1].handler);\n      transition.abort();\n    }\n\n    throw e;\n  }\n}\n\n/**\n  @private\n\n  Begins and returns a Transition based on the provided\n  arguments. Accepts arguments in the form of both URL\n  transitions and named transitions.\n\n  @param {Router} router\n  @param {Array[Object]} args arguments passed to transitionTo,\n    replaceWith, or handleURL\n*/\nfunction doTransition(router, args, isIntermediate) {\n  // Normalize blank transitions to root URL transitions.\n  var name = args[0] || '/';\n\n  var lastArg = args[args.length-1];\n  var queryParams = {};\n  if (lastArg && lastArg.hasOwnProperty('queryParams')) {\n    queryParams = pop.call(args).queryParams;\n  }\n\n  var intent;\n  if (args.length === 0) {\n\n    log(router, \"Updating query params\");\n\n    // A query param update is really just a transition\n    // into the route you're already on.\n    var handlerInfos = router.state.handlerInfos;\n    intent = new NamedTransitionIntent({\n      name: handlerInfos[handlerInfos.length - 1].name,\n      contexts: [],\n      queryParams: queryParams\n    });\n\n  } else if (name.charAt(0) === '/') {\n\n    log(router, \"Attempting URL transition to \" + name);\n    intent = new URLTransitionIntent({ url: name });\n\n  } else {\n\n    log(router, \"Attempting transition to \" + name);\n    intent = new NamedTransitionIntent({\n      name: args[0],\n      contexts: slice.call(args, 1),\n      queryParams: queryParams\n    });\n  }\n\n  return router.transitionByIntent(intent, isIntermediate);\n}\n\nfunction handlerInfosEqual(handlerInfos, otherHandlerInfos) {\n  if (handlerInfos.length !== otherHandlerInfos.length) {\n    return false;\n  }\n\n  for (var i = 0, len = handlerInfos.length; i < len; ++i) {\n    if (handlerInfos[i] !== otherHandlerInfos[i]) {\n      return false;\n    }\n  }\n  return true;\n}\n\nfunction finalizeQueryParamChange(router, resolvedHandlers, newQueryParams, transition) {\n  // We fire a finalizeQueryParamChange event which\n  // gives the new route hierarchy a chance to tell\n  // us which query params it's consuming and what\n  // their final values are. If a query param is\n  // no longer consumed in the final route hierarchy,\n  // its serialized segment will be removed\n  // from the URL.\n\n  for (var k in newQueryParams) {\n    if (newQueryParams.hasOwnProperty(k) &&\n        newQueryParams[k] === null) {\n      delete newQueryParams[k];\n    }\n  }\n\n  var finalQueryParamsArray = [];\n  trigger(router, resolvedHandlers, true, ['finalizeQueryParamChange', newQueryParams, finalQueryParamsArray, transition]);\n\n  if (transition) {\n    transition._visibleQueryParams = {};\n  }\n\n  var finalQueryParams = {};\n  for (var i = 0, len = finalQueryParamsArray.length; i < len; ++i) {\n    var qp = finalQueryParamsArray[i];\n    finalQueryParams[qp.key] = qp.value;\n    if (transition && qp.visible !== false) {\n      transition._visibleQueryParams[qp.key] = qp.value;\n    }\n  }\n  return finalQueryParams;\n}\n\nfunction notifyExistingHandlers(router, newState, newTransition) {\n  var oldHandlers = router.state.handlerInfos,\n      changing = [],\n      leavingIndex = null,\n      leaving, leavingChecker, i, oldHandlerLen, oldHandler, newHandler;\n\n  oldHandlerLen = oldHandlers.length;\n  for (i = 0; i < oldHandlerLen; i++) {\n    oldHandler = oldHandlers[i];\n    newHandler = newState.handlerInfos[i];\n\n    if (!newHandler || oldHandler.name !== newHandler.name) {\n      leavingIndex = i;\n      break;\n    }\n\n    if (!newHandler.isResolved) {\n      changing.push(oldHandler);\n    }\n  }\n\n  if (leavingIndex !== null) {\n    leaving = oldHandlers.slice(leavingIndex, oldHandlerLen);\n    leavingChecker = function(name) {\n      for (var h = 0, len = leaving.length; h < len; h++) {\n        if (leaving[h].name === name) {\n          return true;\n        }\n      }\n      return false;\n    };\n  }\n\n  trigger(router, oldHandlers, true, ['willTransition', newTransition]);\n\n  if (router.willTransition) {\n    router.willTransition(oldHandlers, newState.handlerInfos, newTransition);\n  }\n}\n\nexports['default'] = Router;\nexports.Transition = Transition;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n});\nenifed('rsvp', ['exports'], function (exports) {\n  'use strict';\n\n  var _rsvp;\n\n  function indexOf(callbacks, callback) {\n    for (var i = 0, l = callbacks.length; i < l; i++) {\n      if (callbacks[i] === callback) {\n        return i;\n      }\n    }\n\n    return -1;\n  }\n\n  function callbacksFor(object) {\n    var callbacks = object._promiseCallbacks;\n\n    if (!callbacks) {\n      callbacks = object._promiseCallbacks = {};\n    }\n\n    return callbacks;\n  }\n\n  /**\n    @class RSVP.EventTarget\n  */\n  var EventTarget = {\n\n    /**\n      `RSVP.EventTarget.mixin` extends an object with EventTarget methods. For\n      Example:\n       ```javascript\n      let object = {};\n       RSVP.EventTarget.mixin(object);\n       object.on('finished', function(event) {\n        // handle event\n      });\n       object.trigger('finished', { detail: value });\n      ```\n       `EventTarget.mixin` also works with prototypes:\n       ```javascript\n      let Person = function() {};\n      RSVP.EventTarget.mixin(Person.prototype);\n       let yehuda = new Person();\n      let tom = new Person();\n       yehuda.on('poke', function(event) {\n        console.log('Yehuda says OW');\n      });\n       tom.on('poke', function(event) {\n        console.log('Tom says OW');\n      });\n       yehuda.trigger('poke');\n      tom.trigger('poke');\n      ```\n       @method mixin\n      @for RSVP.EventTarget\n      @private\n      @param {Object} object object to extend with EventTarget methods\n    */\n    mixin: function (object) {\n      object['on'] = this['on'];\n      object['off'] = this['off'];\n      object['trigger'] = this['trigger'];\n      object._promiseCallbacks = undefined;\n      return object;\n    },\n\n    /**\n      Registers a callback to be executed when `eventName` is triggered\n       ```javascript\n      object.on('event', function(eventInfo){\n        // handle the event\n      });\n       object.trigger('event');\n      ```\n       @method on\n      @for RSVP.EventTarget\n      @private\n      @param {String} eventName name of the event to listen for\n      @param {Function} callback function to be called when the event is triggered.\n    */\n    on: function (eventName, callback) {\n      if (typeof callback !== 'function') {\n        throw new TypeError('Callback must be a function');\n      }\n\n      var allCallbacks = callbacksFor(this),\n          callbacks = undefined;\n\n      callbacks = allCallbacks[eventName];\n\n      if (!callbacks) {\n        callbacks = allCallbacks[eventName] = [];\n      }\n\n      if (indexOf(callbacks, callback) === -1) {\n        callbacks.push(callback);\n      }\n    },\n\n    /**\n      You can use `off` to stop firing a particular callback for an event:\n       ```javascript\n      function doStuff() { // do stuff! }\n      object.on('stuff', doStuff);\n       object.trigger('stuff'); // doStuff will be called\n       // Unregister ONLY the doStuff callback\n      object.off('stuff', doStuff);\n      object.trigger('stuff'); // doStuff will NOT be called\n      ```\n       If you don't pass a `callback` argument to `off`, ALL callbacks for the\n      event will not be executed when the event fires. For example:\n       ```javascript\n      let callback1 = function(){};\n      let callback2 = function(){};\n       object.on('stuff', callback1);\n      object.on('stuff', callback2);\n       object.trigger('stuff'); // callback1 and callback2 will be executed.\n       object.off('stuff');\n      object.trigger('stuff'); // callback1 and callback2 will not be executed!\n      ```\n       @method off\n      @for RSVP.EventTarget\n      @private\n      @param {String} eventName event to stop listening to\n      @param {Function} callback optional argument. If given, only the function\n      given will be removed from the event's callback queue. If no `callback`\n      argument is given, all callbacks will be removed from the event's callback\n      queue.\n    */\n    off: function (eventName, callback) {\n      var allCallbacks = callbacksFor(this),\n          callbacks = undefined,\n          index = undefined;\n\n      if (!callback) {\n        allCallbacks[eventName] = [];\n        return;\n      }\n\n      callbacks = allCallbacks[eventName];\n\n      index = indexOf(callbacks, callback);\n\n      if (index !== -1) {\n        callbacks.splice(index, 1);\n      }\n    },\n\n    /**\n      Use `trigger` to fire custom events. For example:\n       ```javascript\n      object.on('foo', function(){\n        console.log('foo event happened!');\n      });\n      object.trigger('foo');\n      // 'foo event happened!' logged to the console\n      ```\n       You can also pass a value as a second argument to `trigger` that will be\n      passed as an argument to all event listeners for the event:\n       ```javascript\n      object.on('foo', function(value){\n        console.log(value.name);\n      });\n       object.trigger('foo', { name: 'bar' });\n      // 'bar' logged to the console\n      ```\n       @method trigger\n      @for RSVP.EventTarget\n      @private\n      @param {String} eventName name of the event to be triggered\n      @param {*} options optional value to be passed to any event handlers for\n      the given `eventName`\n    */\n    trigger: function (eventName, options, label) {\n      var allCallbacks = callbacksFor(this),\n          callbacks = undefined,\n          callback = undefined;\n\n      if (callbacks = allCallbacks[eventName]) {\n        // Don't cache the callbacks.length since it may grow\n        for (var i = 0; i < callbacks.length; i++) {\n          callback = callbacks[i];\n\n          callback(options, label);\n        }\n      }\n    }\n  };\n\n  var config = {\n    instrument: false\n  };\n\n  EventTarget['mixin'](config);\n\n  function configure(name, value) {\n    if (name === 'onerror') {\n      // handle for legacy users that expect the actual\n      // error to be passed to their function added via\n      // `RSVP.configure('onerror', someFunctionHere);`\n      config['on']('error', value);\n      return;\n    }\n\n    if (arguments.length === 2) {\n      config[name] = value;\n    } else {\n      return config[name];\n    }\n  }\n\n  function objectOrFunction(x) {\n    return typeof x === 'function' || typeof x === 'object' && x !== null;\n  }\n\n  function isFunction(x) {\n    return typeof x === 'function';\n  }\n\n  function isMaybeThenable(x) {\n    return typeof x === 'object' && x !== null;\n  }\n\n  var _isArray = undefined;\n  if (!Array.isArray) {\n    _isArray = function (x) {\n      return Object.prototype.toString.call(x) === '[object Array]';\n    };\n  } else {\n    _isArray = Array.isArray;\n  }\n\n  var isArray = _isArray;\n\n  // Date.now is not available in browsers < IE9\n  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility\n  var now = Date.now || function () {\n    return new Date().getTime();\n  };\n\n  function F() {}\n\n  var o_create = Object.create || function (o) {\n    if (arguments.length > 1) {\n      throw new Error('Second argument not supported');\n    }\n    if (typeof o !== 'object') {\n      throw new TypeError('Argument must be an object');\n    }\n    F.prototype = o;\n    return new F();\n  };\n\n  var queue = [];\n\n  function scheduleFlush() {\n    setTimeout(function () {\n      for (var i = 0; i < queue.length; i++) {\n        var entry = queue[i];\n\n        var payload = entry.payload;\n\n        payload.guid = payload.key + payload.id;\n        payload.childGuid = payload.key + payload.childId;\n        if (payload.error) {\n          payload.stack = payload.error.stack;\n        }\n\n        config['trigger'](entry.name, entry.payload);\n      }\n      queue.length = 0;\n    }, 50);\n  }\n\n  function instrument(eventName, promise, child) {\n    if (1 === queue.push({\n      name: eventName,\n      payload: {\n        key: promise._guidKey,\n        id: promise._id,\n        eventName: eventName,\n        detail: promise._result,\n        childId: child && child._id,\n        label: promise._label,\n        timeStamp: now(),\n        error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n      } })) {\n      scheduleFlush();\n    }\n  }\n\n  /**\n    `RSVP.Promise.resolve` returns a promise that will become resolved with the\n    passed `value`. It is shorthand for the following:\n  \n    ```javascript\n    let promise = new RSVP.Promise(function(resolve, reject){\n      resolve(1);\n    });\n  \n    promise.then(function(value){\n      // value === 1\n    });\n    ```\n  \n    Instead of writing the above, your code now simply becomes the following:\n  \n    ```javascript\n    let promise = RSVP.Promise.resolve(1);\n  \n    promise.then(function(value){\n      // value === 1\n    });\n    ```\n  \n    @method resolve\n    @static\n    @param {*} object value that the returned promise will be resolved with\n    @param {String} label optional string for identifying the returned promise.\n    Useful for tooling.\n    @return {Promise} a promise that will become fulfilled with the given\n    `value`\n  */\n  function resolve$1(object, label) {\n    /*jshint validthis:true */\n    var Constructor = this;\n\n    if (object && typeof object === 'object' && object.constructor === Constructor) {\n      return object;\n    }\n\n    var promise = new Constructor(noop, label);\n    resolve(promise, object);\n    return promise;\n  }\n\n  function withOwnPromise() {\n    return new TypeError('A promises callback cannot return that same promise.');\n  }\n\n  function noop() {}\n\n  var PENDING = void 0;\n  var FULFILLED = 1;\n  var REJECTED = 2;\n\n  var GET_THEN_ERROR = new ErrorObject();\n\n  function getThen(promise) {\n    try {\n      return promise.then;\n    } catch (error) {\n      GET_THEN_ERROR.error = error;\n      return GET_THEN_ERROR;\n    }\n  }\n\n  function tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n    try {\n      then.call(value, fulfillmentHandler, rejectionHandler);\n    } catch (e) {\n      return e;\n    }\n  }\n\n  function handleForeignThenable(promise, thenable, then) {\n    config.async(function (promise) {\n      var sealed = false;\n      var error = tryThen(then, thenable, function (value) {\n        if (sealed) {\n          return;\n        }\n        sealed = true;\n        if (thenable !== value) {\n          resolve(promise, value, undefined);\n        } else {\n          fulfill(promise, value);\n        }\n      }, function (reason) {\n        if (sealed) {\n          return;\n        }\n        sealed = true;\n\n        reject(promise, reason);\n      }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n      if (!sealed && error) {\n        sealed = true;\n        reject(promise, error);\n      }\n    }, promise);\n  }\n\n  function handleOwnThenable(promise, thenable) {\n    if (thenable._state === FULFILLED) {\n      fulfill(promise, thenable._result);\n    } else if (thenable._state === REJECTED) {\n      thenable._onError = null;\n      reject(promise, thenable._result);\n    } else {\n      subscribe(thenable, undefined, function (value) {\n        if (thenable !== value) {\n          resolve(promise, value, undefined);\n        } else {\n          fulfill(promise, value);\n        }\n      }, function (reason) {\n        return reject(promise, reason);\n      });\n    }\n  }\n\n  function handleMaybeThenable(promise, maybeThenable, then$$) {\n    if (maybeThenable.constructor === promise.constructor && then$$ === then && promise.constructor.resolve === resolve$1) {\n      handleOwnThenable(promise, maybeThenable);\n    } else {\n      if (then$$ === GET_THEN_ERROR) {\n        reject(promise, GET_THEN_ERROR.error);\n        GET_THEN_ERROR.error = null;\n      } else if (then$$ === undefined) {\n        fulfill(promise, maybeThenable);\n      } else if (isFunction(then$$)) {\n        handleForeignThenable(promise, maybeThenable, then$$);\n      } else {\n        fulfill(promise, maybeThenable);\n      }\n    }\n  }\n\n  function resolve(promise, value) {\n    if (promise === value) {\n      fulfill(promise, value);\n    } else if (objectOrFunction(value)) {\n      handleMaybeThenable(promise, value, getThen(value));\n    } else {\n      fulfill(promise, value);\n    }\n  }\n\n  function publishRejection(promise) {\n    if (promise._onError) {\n      promise._onError(promise._result);\n    }\n\n    publish(promise);\n  }\n\n  function fulfill(promise, value) {\n    if (promise._state !== PENDING) {\n      return;\n    }\n\n    promise._result = value;\n    promise._state = FULFILLED;\n\n    if (promise._subscribers.length === 0) {\n      if (config.instrument) {\n        instrument('fulfilled', promise);\n      }\n    } else {\n      config.async(publish, promise);\n    }\n  }\n\n  function reject(promise, reason) {\n    if (promise._state !== PENDING) {\n      return;\n    }\n    promise._state = REJECTED;\n    promise._result = reason;\n    config.async(publishRejection, promise);\n  }\n\n  function subscribe(parent, child, onFulfillment, onRejection) {\n    var subscribers = parent._subscribers;\n    var length = subscribers.length;\n\n    parent._onError = null;\n\n    subscribers[length] = child;\n    subscribers[length + FULFILLED] = onFulfillment;\n    subscribers[length + REJECTED] = onRejection;\n\n    if (length === 0 && parent._state) {\n      config.async(publish, parent);\n    }\n  }\n\n  function publish(promise) {\n    var subscribers = promise._subscribers;\n    var settled = promise._state;\n\n    if (config.instrument) {\n      instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n    }\n\n    if (subscribers.length === 0) {\n      return;\n    }\n\n    var child = undefined,\n        callback = undefined,\n        detail = promise._result;\n\n    for (var i = 0; i < subscribers.length; i += 3) {\n      child = subscribers[i];\n      callback = subscribers[i + settled];\n\n      if (child) {\n        invokeCallback(settled, child, callback, detail);\n      } else {\n        callback(detail);\n      }\n    }\n\n    promise._subscribers.length = 0;\n  }\n\n  function ErrorObject() {\n    this.error = null;\n  }\n\n  var TRY_CATCH_ERROR = new ErrorObject();\n\n  function tryCatch(callback, detail) {\n    try {\n      return callback(detail);\n    } catch (e) {\n      TRY_CATCH_ERROR.error = e;\n      return TRY_CATCH_ERROR;\n    }\n  }\n\n  function invokeCallback(settled, promise, callback, detail) {\n    var hasCallback = isFunction(callback),\n        value = undefined,\n        error = undefined,\n        succeeded = undefined,\n        failed = undefined;\n\n    if (hasCallback) {\n      value = tryCatch(callback, detail);\n\n      if (value === TRY_CATCH_ERROR) {\n        failed = true;\n        error = value.error;\n        value.error = null; // release\n      } else {\n          succeeded = true;\n        }\n\n      if (promise === value) {\n        reject(promise, withOwnPromise());\n        return;\n      }\n    } else {\n      value = detail;\n      succeeded = true;\n    }\n\n    if (promise._state !== PENDING) {\n      // noop\n    } else if (hasCallback && succeeded) {\n        resolve(promise, value);\n      } else if (failed) {\n        reject(promise, error);\n      } else if (settled === FULFILLED) {\n        fulfill(promise, value);\n      } else if (settled === REJECTED) {\n        reject(promise, value);\n      }\n  }\n\n  function initializePromise(promise, resolver) {\n    var resolved = false;\n    try {\n      resolver(function (value) {\n        if (resolved) {\n          return;\n        }\n        resolved = true;\n        resolve(promise, value);\n      }, function (reason) {\n        if (resolved) {\n          return;\n        }\n        resolved = true;\n        reject(promise, reason);\n      });\n    } catch (e) {\n      reject(promise, e);\n    }\n  }\n\n  function then(onFulfillment, onRejection, label) {\n    var _arguments = arguments;\n\n    var parent = this;\n    var state = parent._state;\n\n    if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n      config.instrument && instrument('chained', parent, parent);\n      return parent;\n    }\n\n    parent._onError = null;\n\n    var child = new parent.constructor(noop, label);\n    var result = parent._result;\n\n    config.instrument && instrument('chained', parent, child);\n\n    if (state) {\n      (function () {\n        var callback = _arguments[state - 1];\n        config.async(function () {\n          return invokeCallback(state, child, callback, result);\n        });\n      })();\n    } else {\n      subscribe(parent, child, onFulfillment, onRejection);\n    }\n\n    return child;\n  }\n\n  function makeSettledResult(state, position, value) {\n    if (state === FULFILLED) {\n      return {\n        state: 'fulfilled',\n        value: value\n      };\n    } else {\n      return {\n        state: 'rejected',\n        reason: value\n      };\n    }\n  }\n\n  function Enumerator(Constructor, input, abortOnReject, label) {\n    this._instanceConstructor = Constructor;\n    this.promise = new Constructor(noop, label);\n    this._abortOnReject = abortOnReject;\n\n    if (this._validateInput(input)) {\n      this._input = input;\n      this.length = input.length;\n      this._remaining = input.length;\n\n      this._init();\n\n      if (this.length === 0) {\n        fulfill(this.promise, this._result);\n      } else {\n        this.length = this.length || 0;\n        this._enumerate();\n        if (this._remaining === 0) {\n          fulfill(this.promise, this._result);\n        }\n      }\n    } else {\n      reject(this.promise, this._validationError());\n    }\n  }\n\n  Enumerator.prototype._validateInput = function (input) {\n    return isArray(input);\n  };\n\n  Enumerator.prototype._validationError = function () {\n    return new Error('Array Methods must be provided an Array');\n  };\n\n  Enumerator.prototype._init = function () {\n    this._result = new Array(this.length);\n  };\n\n  Enumerator.prototype._enumerate = function () {\n    var length = this.length;\n    var promise = this.promise;\n    var input = this._input;\n\n    for (var i = 0; promise._state === PENDING && i < length; i++) {\n      this._eachEntry(input[i], i);\n    }\n  };\n\n  Enumerator.prototype._settleMaybeThenable = function (entry, i) {\n    var c = this._instanceConstructor;\n    var resolve = c.resolve;\n\n    if (resolve === resolve$1) {\n      var then$$ = getThen(entry);\n\n      if (then$$ === then && entry._state !== PENDING) {\n        entry._onError = null;\n        this._settledAt(entry._state, i, entry._result);\n      } else if (typeof then$$ !== 'function') {\n        this._remaining--;\n        this._result[i] = this._makeResult(FULFILLED, i, entry);\n      } else if (c === Promise) {\n        var promise = new c(noop);\n        handleMaybeThenable(promise, entry, then$$);\n        this._willSettleAt(promise, i);\n      } else {\n        this._willSettleAt(new c(function (resolve) {\n          return resolve(entry);\n        }), i);\n      }\n    } else {\n      this._willSettleAt(resolve(entry), i);\n    }\n  };\n\n  Enumerator.prototype._eachEntry = function (entry, i) {\n    if (isMaybeThenable(entry)) {\n      this._settleMaybeThenable(entry, i);\n    } else {\n      this._remaining--;\n      this._result[i] = this._makeResult(FULFILLED, i, entry);\n    }\n  };\n\n  Enumerator.prototype._settledAt = function (state, i, value) {\n    var promise = this.promise;\n\n    if (promise._state === PENDING) {\n      this._remaining--;\n\n      if (this._abortOnReject && state === REJECTED) {\n        reject(promise, value);\n      } else {\n        this._result[i] = this._makeResult(state, i, value);\n      }\n    }\n\n    if (this._remaining === 0) {\n      fulfill(promise, this._result);\n    }\n  };\n\n  Enumerator.prototype._makeResult = function (state, i, value) {\n    return value;\n  };\n\n  Enumerator.prototype._willSettleAt = function (promise, i) {\n    var enumerator = this;\n\n    subscribe(promise, undefined, function (value) {\n      return enumerator._settledAt(FULFILLED, i, value);\n    }, function (reason) {\n      return enumerator._settledAt(REJECTED, i, reason);\n    });\n  };\n\n  /**\n    `RSVP.Promise.all` accepts an array of promises, and returns a new promise which\n    is fulfilled with an array of fulfillment values for the passed promises, or\n    rejected with the reason of the first passed promise to be rejected. It casts all\n    elements of the passed iterable to promises as it runs this algorithm.\n  \n    Example:\n  \n    ```javascript\n    let promise1 = RSVP.resolve(1);\n    let promise2 = RSVP.resolve(2);\n    let promise3 = RSVP.resolve(3);\n    let promises = [ promise1, promise2, promise3 ];\n  \n    RSVP.Promise.all(promises).then(function(array){\n      // The array here would be [ 1, 2, 3 ];\n    });\n    ```\n  \n    If any of the `promises` given to `RSVP.all` are rejected, the first promise\n    that is rejected will be given as an argument to the returned promises's\n    rejection handler. For example:\n  \n    Example:\n  \n    ```javascript\n    let promise1 = RSVP.resolve(1);\n    let promise2 = RSVP.reject(new Error(\"2\"));\n    let promise3 = RSVP.reject(new Error(\"3\"));\n    let promises = [ promise1, promise2, promise3 ];\n  \n    RSVP.Promise.all(promises).then(function(array){\n      // Code here never runs because there are rejected promises!\n    }, function(error) {\n      // error.message === \"2\"\n    });\n    ```\n  \n    @method all\n    @static\n    @param {Array} entries array of promises\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise} promise that is fulfilled when all `promises` have been\n    fulfilled, or rejected if any of them become rejected.\n    @static\n  */\n  function all(entries, label) {\n    return new Enumerator(this, entries, true, /* abort on reject */label).promise;\n  }\n\n  /**\n    `RSVP.Promise.race` returns a new promise which is settled in the same way as the\n    first passed promise to settle.\n  \n    Example:\n  \n    ```javascript\n    let promise1 = new RSVP.Promise(function(resolve, reject){\n      setTimeout(function(){\n        resolve('promise 1');\n      }, 200);\n    });\n  \n    let promise2 = new RSVP.Promise(function(resolve, reject){\n      setTimeout(function(){\n        resolve('promise 2');\n      }, 100);\n    });\n  \n    RSVP.Promise.race([promise1, promise2]).then(function(result){\n      // result === 'promise 2' because it was resolved before promise1\n      // was resolved.\n    });\n    ```\n  \n    `RSVP.Promise.race` is deterministic in that only the state of the first\n    settled promise matters. For example, even if other promises given to the\n    `promises` array argument are resolved, but the first settled promise has\n    become rejected before the other promises became fulfilled, the returned\n    promise will become rejected:\n  \n    ```javascript\n    let promise1 = new RSVP.Promise(function(resolve, reject){\n      setTimeout(function(){\n        resolve('promise 1');\n      }, 200);\n    });\n  \n    let promise2 = new RSVP.Promise(function(resolve, reject){\n      setTimeout(function(){\n        reject(new Error('promise 2'));\n      }, 100);\n    });\n  \n    RSVP.Promise.race([promise1, promise2]).then(function(result){\n      // Code here never runs\n    }, function(reason){\n      // reason.message === 'promise 2' because promise 2 became rejected before\n      // promise 1 became fulfilled\n    });\n    ```\n  \n    An example real-world use case is implementing timeouts:\n  \n    ```javascript\n    RSVP.Promise.race([ajax('foo.json'), timeout(5000)])\n    ```\n  \n    @method race\n    @static\n    @param {Array} entries array of promises to observe\n    @param {String} label optional string for describing the promise returned.\n    Useful for tooling.\n    @return {Promise} a promise which settles in the same way as the first passed\n    promise to settle.\n  */\n  function race(entries, label) {\n    /*jshint validthis:true */\n    var Constructor = this;\n\n    var promise = new Constructor(noop, label);\n\n    if (!isArray(entries)) {\n      reject(promise, new TypeError('You must pass an array to race.'));\n      return promise;\n    }\n\n    for (var i = 0; promise._state === PENDING && i < entries.length; i++) {\n      subscribe(Constructor.resolve(entries[i]), undefined, function (value) {\n        return resolve(promise, value);\n      }, function (reason) {\n        return reject(promise, reason);\n      });\n    }\n\n    return promise;\n  }\n\n  /**\n    `RSVP.Promise.reject` returns a promise rejected with the passed `reason`.\n    It is shorthand for the following:\n  \n    ```javascript\n    let promise = new RSVP.Promise(function(resolve, reject){\n      reject(new Error('WHOOPS'));\n    });\n  \n    promise.then(function(value){\n      // Code here doesn't run because the promise is rejected!\n    }, function(reason){\n      // reason.message === 'WHOOPS'\n    });\n    ```\n  \n    Instead of writing the above, your code now simply becomes the following:\n  \n    ```javascript\n    let promise = RSVP.Promise.reject(new Error('WHOOPS'));\n  \n    promise.then(function(value){\n      // Code here doesn't run because the promise is rejected!\n    }, function(reason){\n      // reason.message === 'WHOOPS'\n    });\n    ```\n  \n    @method reject\n    @static\n    @param {*} reason value that the returned promise will be rejected with.\n    @param {String} label optional string for identifying the returned promise.\n    Useful for tooling.\n    @return {Promise} a promise rejected with the given `reason`.\n  */\n  function reject$1(reason, label) {\n    /*jshint validthis:true */\n    var Constructor = this;\n    var promise = new Constructor(noop, label);\n    reject(promise, reason);\n    return promise;\n  }\n\n  var guidKey = 'rsvp_' + now() + '-';\n  var counter = 0;\n\n  function needsResolver() {\n    throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n  }\n\n  function needsNew() {\n    throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n  }\n\n  /**\n    Promise objects represent the eventual result of an asynchronous operation. The\n    primary way of interacting with a promise is through its `then` method, which\n    registers callbacks to receive either a promise’s eventual value or the reason\n    why the promise cannot be fulfilled.\n  \n    Terminology\n    -----------\n  \n    - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n    - `thenable` is an object or function that defines a `then` method.\n    - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n    - `exception` is a value that is thrown using the throw statement.\n    - `reason` is a value that indicates why a promise was rejected.\n    - `settled` the final resting state of a promise, fulfilled or rejected.\n  \n    A promise can be in one of three states: pending, fulfilled, or rejected.\n  \n    Promises that are fulfilled have a fulfillment value and are in the fulfilled\n    state.  Promises that are rejected have a rejection reason and are in the\n    rejected state.  A fulfillment value is never a thenable.\n  \n    Promises can also be said to *resolve* a value.  If this value is also a\n    promise, then the original promise's settled state will match the value's\n    settled state.  So a promise that *resolves* a promise that rejects will\n    itself reject, and a promise that *resolves* a promise that fulfills will\n    itself fulfill.\n  \n  \n    Basic Usage:\n    ------------\n  \n    ```js\n    let promise = new Promise(function(resolve, reject) {\n      // on success\n      resolve(value);\n  \n      // on failure\n      reject(reason);\n    });\n  \n    promise.then(function(value) {\n      // on fulfillment\n    }, function(reason) {\n      // on rejection\n    });\n    ```\n  \n    Advanced Usage:\n    ---------------\n  \n    Promises shine when abstracting away asynchronous interactions such as\n    `XMLHttpRequest`s.\n  \n    ```js\n    function getJSON(url) {\n      return new Promise(function(resolve, reject){\n        let xhr = new XMLHttpRequest();\n  \n        xhr.open('GET', url);\n        xhr.onreadystatechange = handler;\n        xhr.responseType = 'json';\n        xhr.setRequestHeader('Accept', 'application/json');\n        xhr.send();\n  \n        function handler() {\n          if (this.readyState === this.DONE) {\n            if (this.status === 200) {\n              resolve(this.response);\n            } else {\n              reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n            }\n          }\n        };\n      });\n    }\n  \n    getJSON('/posts.json').then(function(json) {\n      // on fulfillment\n    }, function(reason) {\n      // on rejection\n    });\n    ```\n  \n    Unlike callbacks, promises are great composable primitives.\n  \n    ```js\n    Promise.all([\n      getJSON('/posts'),\n      getJSON('/comments')\n    ]).then(function(values){\n      values[0] // => postsJSON\n      values[1] // => commentsJSON\n  \n      return values;\n    });\n    ```\n  \n    @class RSVP.Promise\n    @param {function} resolver\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @constructor\n  */\n  function Promise(resolver, label) {\n    this._id = counter++;\n    this._label = label;\n    this._state = undefined;\n    this._result = undefined;\n    this._subscribers = [];\n\n    config.instrument && instrument('created', this);\n\n    if (noop !== resolver) {\n      typeof resolver !== 'function' && needsResolver();\n      this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n    }\n  }\n\n  Promise.cast = resolve$1; // deprecated\n  Promise.all = all;\n  Promise.race = race;\n  Promise.resolve = resolve$1;\n  Promise.reject = reject$1;\n\n  Promise.prototype = {\n    constructor: Promise,\n\n    _guidKey: guidKey,\n\n    _onError: function (reason) {\n      var promise = this;\n      config.after(function () {\n        if (promise._onError) {\n          config['trigger']('error', reason, promise._label);\n        }\n      });\n    },\n\n    /**\n      The primary way of interacting with a promise is through its `then` method,\n      which registers callbacks to receive either a promise's eventual value or the\n      reason why the promise cannot be fulfilled.\n    \n      ```js\n      findUser().then(function(user){\n        // user is available\n      }, function(reason){\n        // user is unavailable, and you are given the reason why\n      });\n      ```\n    \n      Chaining\n      --------\n    \n      The return value of `then` is itself a promise.  This second, 'downstream'\n      promise is resolved with the return value of the first promise's fulfillment\n      or rejection handler, or rejected if the handler throws an exception.\n    \n      ```js\n      findUser().then(function (user) {\n        return user.name;\n      }, function (reason) {\n        return 'default name';\n      }).then(function (userName) {\n        // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n        // will be `'default name'`\n      });\n    \n      findUser().then(function (user) {\n        throw new Error('Found user, but still unhappy');\n      }, function (reason) {\n        throw new Error('`findUser` rejected and we\\'re unhappy');\n      }).then(function (value) {\n        // never reached\n      }, function (reason) {\n        // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n        // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n      });\n      ```\n      If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n    \n      ```js\n      findUser().then(function (user) {\n        throw new PedagogicalException('Upstream error');\n      }).then(function (value) {\n        // never reached\n      }).then(function (value) {\n        // never reached\n      }, function (reason) {\n        // The `PedgagocialException` is propagated all the way down to here\n      });\n      ```\n    \n      Assimilation\n      ------------\n    \n      Sometimes the value you want to propagate to a downstream promise can only be\n      retrieved asynchronously. This can be achieved by returning a promise in the\n      fulfillment or rejection handler. The downstream promise will then be pending\n      until the returned promise is settled. This is called *assimilation*.\n    \n      ```js\n      findUser().then(function (user) {\n        return findCommentsByAuthor(user);\n      }).then(function (comments) {\n        // The user's comments are now available\n      });\n      ```\n    \n      If the assimliated promise rejects, then the downstream promise will also reject.\n    \n      ```js\n      findUser().then(function (user) {\n        return findCommentsByAuthor(user);\n      }).then(function (comments) {\n        // If `findCommentsByAuthor` fulfills, we'll have the value here\n      }, function (reason) {\n        // If `findCommentsByAuthor` rejects, we'll have the reason here\n      });\n      ```\n    \n      Simple Example\n      --------------\n    \n      Synchronous Example\n    \n      ```javascript\n      let result;\n    \n      try {\n        result = findResult();\n        // success\n      } catch(reason) {\n        // failure\n      }\n      ```\n    \n      Errback Example\n    \n      ```js\n      findResult(function(result, err){\n        if (err) {\n          // failure\n        } else {\n          // success\n        }\n      });\n      ```\n    \n      Promise Example;\n    \n      ```javascript\n      findResult().then(function(result){\n        // success\n      }, function(reason){\n        // failure\n      });\n      ```\n    \n      Advanced Example\n      --------------\n    \n      Synchronous Example\n    \n      ```javascript\n      let author, books;\n    \n      try {\n        author = findAuthor();\n        books  = findBooksByAuthor(author);\n        // success\n      } catch(reason) {\n        // failure\n      }\n      ```\n    \n      Errback Example\n    \n      ```js\n    \n      function foundBooks(books) {\n    \n      }\n    \n      function failure(reason) {\n    \n      }\n    \n      findAuthor(function(author, err){\n        if (err) {\n          failure(err);\n          // failure\n        } else {\n          try {\n            findBoooksByAuthor(author, function(books, err) {\n              if (err) {\n                failure(err);\n              } else {\n                try {\n                  foundBooks(books);\n                } catch(reason) {\n                  failure(reason);\n                }\n              }\n            });\n          } catch(error) {\n            failure(err);\n          }\n          // success\n        }\n      });\n      ```\n    \n      Promise Example;\n    \n      ```javascript\n      findAuthor().\n        then(findBooksByAuthor).\n        then(function(books){\n          // found books\n      }).catch(function(reason){\n        // something went wrong\n      });\n      ```\n    \n      @method then\n      @param {Function} onFulfillment\n      @param {Function} onRejection\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n    */\n    then: then,\n\n    /**\n      `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n      as the catch block of a try/catch statement.\n    \n      ```js\n      function findAuthor(){\n        throw new Error('couldn\\'t find that author');\n      }\n    \n      // synchronous\n      try {\n        findAuthor();\n      } catch(reason) {\n        // something went wrong\n      }\n    \n      // async with promises\n      findAuthor().catch(function(reason){\n        // something went wrong\n      });\n      ```\n    \n      @method catch\n      @param {Function} onRejection\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n    */\n    catch: function (onRejection, label) {\n      return this.then(undefined, onRejection, label);\n    },\n\n    /**\n      `finally` will be invoked regardless of the promise's fate just as native\n      try/catch/finally behaves\n    \n      Synchronous example:\n    \n      ```js\n      findAuthor() {\n        if (Math.random() > 0.5) {\n          throw new Error();\n        }\n        return new Author();\n      }\n    \n      try {\n        return findAuthor(); // succeed or fail\n      } catch(error) {\n        return findOtherAuthor();\n      } finally {\n        // always runs\n        // doesn't affect the return value\n      }\n      ```\n    \n      Asynchronous example:\n    \n      ```js\n      findAuthor().catch(function(reason){\n        return findOtherAuthor();\n      }).finally(function(){\n        // author was either found, or not\n      });\n      ```\n    \n      @method finally\n      @param {Function} callback\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n    */\n    finally: function (callback, label) {\n      var promise = this;\n      var constructor = promise.constructor;\n\n      return promise.then(function (value) {\n        return constructor.resolve(callback()).then(function () {\n          return value;\n        });\n      }, function (reason) {\n        return constructor.resolve(callback()).then(function () {\n          throw reason;\n        });\n      }, label);\n    }\n  };\n\n  function Result() {\n    this.value = undefined;\n  }\n\n  var ERROR = new Result();\n  var GET_THEN_ERROR$1 = new Result();\n\n  function getThen$1(obj) {\n    try {\n      return obj.then;\n    } catch (error) {\n      ERROR.value = error;\n      return ERROR;\n    }\n  }\n\n  function tryApply(f, s, a) {\n    try {\n      f.apply(s, a);\n    } catch (error) {\n      ERROR.value = error;\n      return ERROR;\n    }\n  }\n\n  function makeObject(_, argumentNames) {\n    var obj = {};\n    var length = _.length;\n    var args = new Array(length);\n\n    for (var x = 0; x < length; x++) {\n      args[x] = _[x];\n    }\n\n    for (var i = 0; i < argumentNames.length; i++) {\n      var _name = argumentNames[i];\n      obj[_name] = args[i + 1];\n    }\n\n    return obj;\n  }\n\n  function arrayResult(_) {\n    var length = _.length;\n    var args = new Array(length - 1);\n\n    for (var i = 1; i < length; i++) {\n      args[i - 1] = _[i];\n    }\n\n    return args;\n  }\n\n  function wrapThenable(then, promise) {\n    return {\n      then: function (onFulFillment, onRejection) {\n        return then.call(promise, onFulFillment, onRejection);\n      }\n    };\n  }\n\n  /**\n    `RSVP.denodeify` takes a 'node-style' function and returns a function that\n    will return an `RSVP.Promise`. You can use `denodeify` in Node.js or the\n    browser when you'd prefer to use promises over using callbacks. For example,\n    `denodeify` transforms the following:\n  \n    ```javascript\n    let fs = require('fs');\n  \n    fs.readFile('myfile.txt', function(err, data){\n      if (err) return handleError(err);\n      handleData(data);\n    });\n    ```\n  \n    into:\n  \n    ```javascript\n    let fs = require('fs');\n    let readFile = RSVP.denodeify(fs.readFile);\n  \n    readFile('myfile.txt').then(handleData, handleError);\n    ```\n  \n    If the node function has multiple success parameters, then `denodeify`\n    just returns the first one:\n  \n    ```javascript\n    let request = RSVP.denodeify(require('request'));\n  \n    request('http://example.com').then(function(res) {\n      // ...\n    });\n    ```\n  \n    However, if you need all success parameters, setting `denodeify`'s\n    second parameter to `true` causes it to return all success parameters\n    as an array:\n  \n    ```javascript\n    let request = RSVP.denodeify(require('request'), true);\n  \n    request('http://example.com').then(function(result) {\n      // result[0] -> res\n      // result[1] -> body\n    });\n    ```\n  \n    Or if you pass it an array with names it returns the parameters as a hash:\n  \n    ```javascript\n    let request = RSVP.denodeify(require('request'), ['res', 'body']);\n  \n    request('http://example.com').then(function(result) {\n      // result.res\n      // result.body\n    });\n    ```\n  \n    Sometimes you need to retain the `this`:\n  \n    ```javascript\n    let app = require('express')();\n    let render = RSVP.denodeify(app.render.bind(app));\n    ```\n  \n    The denodified function inherits from the original function. It works in all\n    environments, except IE 10 and below. Consequently all properties of the original\n    function are available to you. However, any properties you change on the\n    denodeified function won't be changed on the original function. Example:\n  \n    ```javascript\n    let request = RSVP.denodeify(require('request')),\n        cookieJar = request.jar(); // <- Inheritance is used here\n  \n    request('http://example.com', {jar: cookieJar}).then(function(res) {\n      // cookieJar.cookies holds now the cookies returned by example.com\n    });\n    ```\n  \n    Using `denodeify` makes it easier to compose asynchronous operations instead\n    of using callbacks. For example, instead of:\n  \n    ```javascript\n    let fs = require('fs');\n  \n    fs.readFile('myfile.txt', function(err, data){\n      if (err) { ... } // Handle error\n      fs.writeFile('myfile2.txt', data, function(err){\n        if (err) { ... } // Handle error\n        console.log('done')\n      });\n    });\n    ```\n  \n    you can chain the operations together using `then` from the returned promise:\n  \n    ```javascript\n    let fs = require('fs');\n    let readFile = RSVP.denodeify(fs.readFile);\n    let writeFile = RSVP.denodeify(fs.writeFile);\n  \n    readFile('myfile.txt').then(function(data){\n      return writeFile('myfile2.txt', data);\n    }).then(function(){\n      console.log('done')\n    }).catch(function(error){\n      // Handle error\n    });\n    ```\n  \n    @method denodeify\n    @static\n    @for RSVP\n    @param {Function} nodeFunc a 'node-style' function that takes a callback as\n    its last argument. The callback expects an error to be passed as its first\n    argument (if an error occurred, otherwise null), and the value from the\n    operation as its second argument ('function(err, value){ }').\n    @param {Boolean|Array} [options] An optional paramter that if set\n    to `true` causes the promise to fulfill with the callback's success arguments\n    as an array. This is useful if the node function has multiple success\n    paramters. If you set this paramter to an array with names, the promise will\n    fulfill with a hash with these names as keys and the success parameters as\n    values.\n    @return {Function} a function that wraps `nodeFunc` to return an\n    `RSVP.Promise`\n    @static\n  */\n  function denodeify(nodeFunc, options) {\n    var fn = function () {\n      var self = this;\n      var l = arguments.length;\n      var args = new Array(l + 1);\n      var promiseInput = false;\n\n      for (var i = 0; i < l; ++i) {\n        var arg = arguments[i];\n\n        if (!promiseInput) {\n          // TODO: clean this up\n          promiseInput = needsPromiseInput(arg);\n          if (promiseInput === GET_THEN_ERROR$1) {\n            var p = new Promise(noop);\n            reject(p, GET_THEN_ERROR$1.value);\n            return p;\n          } else if (promiseInput && promiseInput !== true) {\n            arg = wrapThenable(promiseInput, arg);\n          }\n        }\n        args[i] = arg;\n      }\n\n      var promise = new Promise(noop);\n\n      args[l] = function (err, val) {\n        if (err) reject(promise, err);else if (options === undefined) resolve(promise, val);else if (options === true) resolve(promise, arrayResult(arguments));else if (isArray(options)) resolve(promise, makeObject(arguments, options));else resolve(promise, val);\n      };\n\n      if (promiseInput) {\n        return handlePromiseInput(promise, args, nodeFunc, self);\n      } else {\n        return handleValueInput(promise, args, nodeFunc, self);\n      }\n    };\n\n    babelHelpers.defaults(fn, nodeFunc);\n\n    return fn;\n  }\n\n  function handleValueInput(promise, args, nodeFunc, self) {\n    var result = tryApply(nodeFunc, self, args);\n    if (result === ERROR) {\n      reject(promise, result.value);\n    }\n    return promise;\n  }\n\n  function handlePromiseInput(promise, args, nodeFunc, self) {\n    return Promise.all(args).then(function (args) {\n      var result = tryApply(nodeFunc, self, args);\n      if (result === ERROR) {\n        reject(promise, result.value);\n      }\n      return promise;\n    });\n  }\n\n  function needsPromiseInput(arg) {\n    if (arg && typeof arg === 'object') {\n      if (arg.constructor === Promise) {\n        return true;\n      } else {\n        return getThen$1(arg);\n      }\n    } else {\n      return false;\n    }\n  }\n\n  /**\n    This is a convenient alias for `RSVP.Promise.all`.\n  \n    @method all\n    @static\n    @for RSVP\n    @param {Array} array Array of promises.\n    @param {String} label An optional label. This is useful\n    for tooling.\n  */\n  function all$1(array, label) {\n    return Promise.all(array, label);\n  }\n\n  function AllSettled(Constructor, entries, label) {\n    this._superConstructor(Constructor, entries, false, /* don't abort on reject */label);\n  }\n\n  AllSettled.prototype = o_create(Enumerator.prototype);\n  AllSettled.prototype._superConstructor = Enumerator;\n  AllSettled.prototype._makeResult = makeSettledResult;\n  AllSettled.prototype._validationError = function () {\n    return new Error('allSettled must be called with an array');\n  };\n\n  /**\n    `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\n    a fail-fast method, it waits until all the promises have returned and\n    shows you all the results. This is useful if you want to handle multiple\n    promises' failure states together as a set.\n  \n    Returns a promise that is fulfilled when all the given promises have been\n    settled. The return promise is fulfilled with an array of the states of\n    the promises passed into the `promises` array argument.\n  \n    Each state object will either indicate fulfillment or rejection, and\n    provide the corresponding value or reason. The states will take one of\n    the following formats:\n  \n    ```javascript\n    { state: 'fulfilled', value: value }\n      or\n    { state: 'rejected', reason: reason }\n    ```\n  \n    Example:\n  \n    ```javascript\n    let promise1 = RSVP.Promise.resolve(1);\n    let promise2 = RSVP.Promise.reject(new Error('2'));\n    let promise3 = RSVP.Promise.reject(new Error('3'));\n    let promises = [ promise1, promise2, promise3 ];\n  \n    RSVP.allSettled(promises).then(function(array){\n      // array == [\n      //   { state: 'fulfilled', value: 1 },\n      //   { state: 'rejected', reason: Error },\n      //   { state: 'rejected', reason: Error }\n      // ]\n      // Note that for the second item, reason.message will be '2', and for the\n      // third item, reason.message will be '3'.\n    }, function(error) {\n      // Not run. (This block would only be called if allSettled had failed,\n      // for instance if passed an incorrect argument type.)\n    });\n    ```\n  \n    @method allSettled\n    @static\n    @for RSVP\n    @param {Array} entries\n    @param {String} label - optional string that describes the promise.\n    Useful for tooling.\n    @return {Promise} promise that is fulfilled with an array of the settled\n    states of the constituent promises.\n  */\n\n  function allSettled(entries, label) {\n    return new AllSettled(Promise, entries, label).promise;\n  }\n\n  /**\n    This is a convenient alias for `RSVP.Promise.race`.\n  \n    @method race\n    @static\n    @for RSVP\n    @param {Array} array Array of promises.\n    @param {String} label An optional label. This is useful\n    for tooling.\n   */\n  function race$1(array, label) {\n    return Promise.race(array, label);\n  }\n\n  function PromiseHash(Constructor, object, label) {\n    this._superConstructor(Constructor, object, true, label);\n  }\n\n  PromiseHash.prototype = o_create(Enumerator.prototype);\n  PromiseHash.prototype._superConstructor = Enumerator;\n  PromiseHash.prototype._init = function () {\n    this._result = {};\n  };\n\n  PromiseHash.prototype._validateInput = function (input) {\n    return input && typeof input === 'object';\n  };\n\n  PromiseHash.prototype._validationError = function () {\n    return new Error('Promise.hash must be called with an object');\n  };\n\n  PromiseHash.prototype._enumerate = function () {\n    var enumerator = this;\n    var promise = enumerator.promise;\n    var input = enumerator._input;\n    var results = [];\n\n    for (var key in input) {\n      if (promise._state === PENDING && Object.prototype.hasOwnProperty.call(input, key)) {\n        results.push({\n          position: key,\n          entry: input[key]\n        });\n      }\n    }\n\n    var length = results.length;\n    enumerator._remaining = length;\n    var result = undefined;\n\n    for (var i = 0; promise._state === PENDING && i < length; i++) {\n      result = results[i];\n      enumerator._eachEntry(result.entry, result.position);\n    }\n  };\n\n  /**\n    `RSVP.hash` is similar to `RSVP.all`, but takes an object instead of an array\n    for its `promises` argument.\n  \n    Returns a promise that is fulfilled when all the given promises have been\n    fulfilled, or rejected if any of them become rejected. The returned promise\n    is fulfilled with a hash that has the same key names as the `promises` object\n    argument. If any of the values in the object are not promises, they will\n    simply be copied over to the fulfilled object.\n  \n    Example:\n  \n    ```javascript\n    let promises = {\n      myPromise: RSVP.resolve(1),\n      yourPromise: RSVP.resolve(2),\n      theirPromise: RSVP.resolve(3),\n      notAPromise: 4\n    };\n  \n    RSVP.hash(promises).then(function(hash){\n      // hash here is an object that looks like:\n      // {\n      //   myPromise: 1,\n      //   yourPromise: 2,\n      //   theirPromise: 3,\n      //   notAPromise: 4\n      // }\n    });\n    ````\n  \n    If any of the `promises` given to `RSVP.hash` are rejected, the first promise\n    that is rejected will be given as the reason to the rejection handler.\n  \n    Example:\n  \n    ```javascript\n    let promises = {\n      myPromise: RSVP.resolve(1),\n      rejectedPromise: RSVP.reject(new Error('rejectedPromise')),\n      anotherRejectedPromise: RSVP.reject(new Error('anotherRejectedPromise')),\n    };\n  \n    RSVP.hash(promises).then(function(hash){\n      // Code here never runs because there are rejected promises!\n    }, function(reason) {\n      // reason.message === 'rejectedPromise'\n    });\n    ```\n  \n    An important note: `RSVP.hash` is intended for plain JavaScript objects that\n    are just a set of keys and values. `RSVP.hash` will NOT preserve prototype\n    chains.\n  \n    Example:\n  \n    ```javascript\n    function MyConstructor(){\n      this.example = RSVP.resolve('Example');\n    }\n  \n    MyConstructor.prototype = {\n      protoProperty: RSVP.resolve('Proto Property')\n    };\n  \n    let myObject = new MyConstructor();\n  \n    RSVP.hash(myObject).then(function(hash){\n      // protoProperty will not be present, instead you will just have an\n      // object that looks like:\n      // {\n      //   example: 'Example'\n      // }\n      //\n      // hash.hasOwnProperty('protoProperty'); // false\n      // 'undefined' === typeof hash.protoProperty\n    });\n    ```\n  \n    @method hash\n    @static\n    @for RSVP\n    @param {Object} object\n    @param {String} label optional string that describes the promise.\n    Useful for tooling.\n    @return {Promise} promise that is fulfilled when all properties of `promises`\n    have been fulfilled, or rejected if any of them become rejected.\n  */\n  function hash(object, label) {\n    return new PromiseHash(Promise, object, label).promise;\n  }\n\n  function HashSettled(Constructor, object, label) {\n    this._superConstructor(Constructor, object, false, label);\n  }\n\n  HashSettled.prototype = o_create(PromiseHash.prototype);\n  HashSettled.prototype._superConstructor = Enumerator;\n  HashSettled.prototype._makeResult = makeSettledResult;\n\n  HashSettled.prototype._validationError = function () {\n    return new Error('hashSettled must be called with an object');\n  };\n\n  /**\n    `RSVP.hashSettled` is similar to `RSVP.allSettled`, but takes an object\n    instead of an array for its `promises` argument.\n  \n    Unlike `RSVP.all` or `RSVP.hash`, which implement a fail-fast method,\n    but like `RSVP.allSettled`, `hashSettled` waits until all the\n    constituent promises have returned and then shows you all the results\n    with their states and values/reasons. This is useful if you want to\n    handle multiple promises' failure states together as a set.\n  \n    Returns a promise that is fulfilled when all the given promises have been\n    settled, or rejected if the passed parameters are invalid.\n  \n    The returned promise is fulfilled with a hash that has the same key names as\n    the `promises` object argument. If any of the values in the object are not\n    promises, they will be copied over to the fulfilled object and marked with state\n    'fulfilled'.\n  \n    Example:\n  \n    ```javascript\n    let promises = {\n      myPromise: RSVP.Promise.resolve(1),\n      yourPromise: RSVP.Promise.resolve(2),\n      theirPromise: RSVP.Promise.resolve(3),\n      notAPromise: 4\n    };\n  \n    RSVP.hashSettled(promises).then(function(hash){\n      // hash here is an object that looks like:\n      // {\n      //   myPromise: { state: 'fulfilled', value: 1 },\n      //   yourPromise: { state: 'fulfilled', value: 2 },\n      //   theirPromise: { state: 'fulfilled', value: 3 },\n      //   notAPromise: { state: 'fulfilled', value: 4 }\n      // }\n    });\n    ```\n  \n    If any of the `promises` given to `RSVP.hash` are rejected, the state will\n    be set to 'rejected' and the reason for rejection provided.\n  \n    Example:\n  \n    ```javascript\n    let promises = {\n      myPromise: RSVP.Promise.resolve(1),\n      rejectedPromise: RSVP.Promise.reject(new Error('rejection')),\n      anotherRejectedPromise: RSVP.Promise.reject(new Error('more rejection')),\n    };\n  \n    RSVP.hashSettled(promises).then(function(hash){\n      // hash here is an object that looks like:\n      // {\n      //   myPromise:              { state: 'fulfilled', value: 1 },\n      //   rejectedPromise:        { state: 'rejected', reason: Error },\n      //   anotherRejectedPromise: { state: 'rejected', reason: Error },\n      // }\n      // Note that for rejectedPromise, reason.message == 'rejection',\n      // and for anotherRejectedPromise, reason.message == 'more rejection'.\n    });\n    ```\n  \n    An important note: `RSVP.hashSettled` is intended for plain JavaScript objects that\n    are just a set of keys and values. `RSVP.hashSettled` will NOT preserve prototype\n    chains.\n  \n    Example:\n  \n    ```javascript\n    function MyConstructor(){\n      this.example = RSVP.Promise.resolve('Example');\n    }\n  \n    MyConstructor.prototype = {\n      protoProperty: RSVP.Promise.resolve('Proto Property')\n    };\n  \n    let myObject = new MyConstructor();\n  \n    RSVP.hashSettled(myObject).then(function(hash){\n      // protoProperty will not be present, instead you will just have an\n      // object that looks like:\n      // {\n      //   example: { state: 'fulfilled', value: 'Example' }\n      // }\n      //\n      // hash.hasOwnProperty('protoProperty'); // false\n      // 'undefined' === typeof hash.protoProperty\n    });\n    ```\n  \n    @method hashSettled\n    @for RSVP\n    @param {Object} object\n    @param {String} label optional string that describes the promise.\n    Useful for tooling.\n    @return {Promise} promise that is fulfilled when when all properties of `promises`\n    have been settled.\n    @static\n  */\n  function hashSettled(object, label) {\n    return new HashSettled(Promise, object, label).promise;\n  }\n\n  /**\n    `RSVP.rethrow` will rethrow an error on the next turn of the JavaScript event\n    loop in order to aid debugging.\n  \n    Promises A+ specifies that any exceptions that occur with a promise must be\n    caught by the promises implementation and bubbled to the last handler. For\n    this reason, it is recommended that you always specify a second rejection\n    handler function to `then`. However, `RSVP.rethrow` will throw the exception\n    outside of the promise, so it bubbles up to your console if in the browser,\n    or domain/cause uncaught exception in Node. `rethrow` will also throw the\n    error again so the error can be handled by the promise per the spec.\n  \n    ```javascript\n    function throws(){\n      throw new Error('Whoops!');\n    }\n  \n    let promise = new RSVP.Promise(function(resolve, reject){\n      throws();\n    });\n  \n    promise.catch(RSVP.rethrow).then(function(){\n      // Code here doesn't run because the promise became rejected due to an\n      // error!\n    }, function (err){\n      // handle the error here\n    });\n    ```\n  \n    The 'Whoops' error will be thrown on the next turn of the event loop\n    and you can watch for it in your console. You can also handle it using a\n    rejection handler given to `.then` or `.catch` on the returned promise.\n  \n    @method rethrow\n    @static\n    @for RSVP\n    @param {Error} reason reason the promise became rejected.\n    @throws Error\n    @static\n  */\n  function rethrow(reason) {\n    setTimeout(function () {\n      throw reason;\n    });\n    throw reason;\n  }\n\n  /**\n    `RSVP.defer` returns an object similar to jQuery's `$.Deferred`.\n    `RSVP.defer` should be used when porting over code reliant on `$.Deferred`'s\n    interface. New code should use the `RSVP.Promise` constructor instead.\n  \n    The object returned from `RSVP.defer` is a plain object with three properties:\n  \n    * promise - an `RSVP.Promise`.\n    * reject - a function that causes the `promise` property on this object to\n      become rejected\n    * resolve - a function that causes the `promise` property on this object to\n      become fulfilled.\n  \n    Example:\n  \n     ```javascript\n     let deferred = RSVP.defer();\n  \n     deferred.resolve(\"Success!\");\n  \n     deferred.promise.then(function(value){\n       // value here is \"Success!\"\n     });\n     ```\n  \n    @method defer\n    @static\n    @for RSVP\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Object}\n   */\n\n  function defer(label) {\n    var deferred = { resolve: undefined, reject: undefined };\n\n    deferred.promise = new Promise(function (resolve, reject) {\n      deferred.resolve = resolve;\n      deferred.reject = reject;\n    }, label);\n\n    return deferred;\n  }\n\n  /**\n   `RSVP.map` is similar to JavaScript's native `map` method, except that it\n    waits for all promises to become fulfilled before running the `mapFn` on\n    each item in given to `promises`. `RSVP.map` returns a promise that will\n    become fulfilled with the result of running `mapFn` on the values the promises\n    become fulfilled with.\n  \n    For example:\n  \n    ```javascript\n  \n    let promise1 = RSVP.resolve(1);\n    let promise2 = RSVP.resolve(2);\n    let promise3 = RSVP.resolve(3);\n    let promises = [ promise1, promise2, promise3 ];\n  \n    let mapFn = function(item){\n      return item + 1;\n    };\n  \n    RSVP.map(promises, mapFn).then(function(result){\n      // result is [ 2, 3, 4 ]\n    });\n    ```\n  \n    If any of the `promises` given to `RSVP.map` are rejected, the first promise\n    that is rejected will be given as an argument to the returned promise's\n    rejection handler. For example:\n  \n    ```javascript\n    let promise1 = RSVP.resolve(1);\n    let promise2 = RSVP.reject(new Error('2'));\n    let promise3 = RSVP.reject(new Error('3'));\n    let promises = [ promise1, promise2, promise3 ];\n  \n    let mapFn = function(item){\n      return item + 1;\n    };\n  \n    RSVP.map(promises, mapFn).then(function(array){\n      // Code here never runs because there are rejected promises!\n    }, function(reason) {\n      // reason.message === '2'\n    });\n    ```\n  \n    `RSVP.map` will also wait if a promise is returned from `mapFn`. For example,\n    say you want to get all comments from a set of blog posts, but you need\n    the blog posts first because they contain a url to those comments.\n  \n    ```javscript\n  \n    let mapFn = function(blogPost){\n      // getComments does some ajax and returns an RSVP.Promise that is fulfilled\n      // with some comments data\n      return getComments(blogPost.comments_url);\n    };\n  \n    // getBlogPosts does some ajax and returns an RSVP.Promise that is fulfilled\n    // with some blog post data\n    RSVP.map(getBlogPosts(), mapFn).then(function(comments){\n      // comments is the result of asking the server for the comments\n      // of all blog posts returned from getBlogPosts()\n    });\n    ```\n  \n    @method map\n    @static\n    @for RSVP\n    @param {Array} promises\n    @param {Function} mapFn function to be called on each fulfilled promise.\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise} promise that is fulfilled with the result of calling\n    `mapFn` on each fulfilled promise or value when they become fulfilled.\n     The promise will be rejected if any of the given `promises` become rejected.\n    @static\n  */\n  function map(promises, mapFn, label) {\n    return Promise.all(promises, label).then(function (values) {\n      if (!isFunction(mapFn)) {\n        throw new TypeError(\"You must pass a function as map's second argument.\");\n      }\n\n      var length = values.length;\n      var results = new Array(length);\n\n      for (var i = 0; i < length; i++) {\n        results[i] = mapFn(values[i]);\n      }\n\n      return Promise.all(results, label);\n    });\n  }\n\n  /**\n    This is a convenient alias for `RSVP.Promise.resolve`.\n  \n    @method resolve\n    @static\n    @for RSVP\n    @param {*} value value that the returned promise will be resolved with\n    @param {String} label optional string for identifying the returned promise.\n    Useful for tooling.\n    @return {Promise} a promise that will become fulfilled with the given\n    `value`\n  */\n  function resolve$2(value, label) {\n    return Promise.resolve(value, label);\n  }\n\n  /**\n    This is a convenient alias for `RSVP.Promise.reject`.\n  \n    @method reject\n    @static\n    @for RSVP\n    @param {*} reason value that the returned promise will be rejected with.\n    @param {String} label optional string for identifying the returned promise.\n    Useful for tooling.\n    @return {Promise} a promise rejected with the given `reason`.\n  */\n  function reject$2(reason, label) {\n    return Promise.reject(reason, label);\n  }\n\n  /**\n   `RSVP.filter` is similar to JavaScript's native `filter` method, except that it\n    waits for all promises to become fulfilled before running the `filterFn` on\n    each item in given to `promises`. `RSVP.filter` returns a promise that will\n    become fulfilled with the result of running `filterFn` on the values the\n    promises become fulfilled with.\n  \n    For example:\n  \n    ```javascript\n  \n    let promise1 = RSVP.resolve(1);\n    let promise2 = RSVP.resolve(2);\n    let promise3 = RSVP.resolve(3);\n  \n    let promises = [promise1, promise2, promise3];\n  \n    let filterFn = function(item){\n      return item > 1;\n    };\n  \n    RSVP.filter(promises, filterFn).then(function(result){\n      // result is [ 2, 3 ]\n    });\n    ```\n  \n    If any of the `promises` given to `RSVP.filter` are rejected, the first promise\n    that is rejected will be given as an argument to the returned promise's\n    rejection handler. For example:\n  \n    ```javascript\n    let promise1 = RSVP.resolve(1);\n    let promise2 = RSVP.reject(new Error('2'));\n    let promise3 = RSVP.reject(new Error('3'));\n    let promises = [ promise1, promise2, promise3 ];\n  \n    let filterFn = function(item){\n      return item > 1;\n    };\n  \n    RSVP.filter(promises, filterFn).then(function(array){\n      // Code here never runs because there are rejected promises!\n    }, function(reason) {\n      // reason.message === '2'\n    });\n    ```\n  \n    `RSVP.filter` will also wait for any promises returned from `filterFn`.\n    For instance, you may want to fetch a list of users then return a subset\n    of those users based on some asynchronous operation:\n  \n    ```javascript\n  \n    let alice = { name: 'alice' };\n    let bob   = { name: 'bob' };\n    let users = [ alice, bob ];\n  \n    let promises = users.map(function(user){\n      return RSVP.resolve(user);\n    });\n  \n    let filterFn = function(user){\n      // Here, Alice has permissions to create a blog post, but Bob does not.\n      return getPrivilegesForUser(user).then(function(privs){\n        return privs.can_create_blog_post === true;\n      });\n    };\n    RSVP.filter(promises, filterFn).then(function(users){\n      // true, because the server told us only Alice can create a blog post.\n      users.length === 1;\n      // false, because Alice is the only user present in `users`\n      users[0] === bob;\n    });\n    ```\n  \n    @method filter\n    @static\n    @for RSVP\n    @param {Array} promises\n    @param {Function} filterFn - function to be called on each resolved value to\n    filter the final results.\n    @param {String} label optional string describing the promise. Useful for\n    tooling.\n    @return {Promise}\n  */\n\n  function resolveAll(promises, label) {\n    return Promise.all(promises, label);\n  }\n\n  function resolveSingle(promise, label) {\n    return Promise.resolve(promise, label).then(function (promises) {\n      return resolveAll(promises, label);\n    });\n  }\n\n  function filter(promises, filterFn, label) {\n    var promise = isArray(promises) ? resolveAll(promises, label) : resolveSingle(promises, label);\n    return promise.then(function (values) {\n      if (!isFunction(filterFn)) {\n        throw new TypeError(\"You must pass a function as filter's second argument.\");\n      }\n\n      var length = values.length;\n      var filtered = new Array(length);\n\n      for (var i = 0; i < length; i++) {\n        filtered[i] = filterFn(values[i]);\n      }\n\n      return resolveAll(filtered, label).then(function (filtered) {\n        var results = new Array(length);\n        var newLength = 0;\n\n        for (var i = 0; i < length; i++) {\n          if (filtered[i]) {\n            results[newLength] = values[i];\n            newLength++;\n          }\n        }\n\n        results.length = newLength;\n\n        return results;\n      });\n    });\n  }\n\n  var len = 0;\n  var vertxNext = undefined;\n  function asap(callback, arg) {\n    queue$1[len] = callback;\n    queue$1[len + 1] = arg;\n    len += 2;\n    if (len === 2) {\n      // If len is 1, that means that we need to schedule an async flush.\n      // If additional callbacks are queued before the queue is flushed, they\n      // will be processed by this flush that we are scheduling.\n      scheduleFlush$1();\n    }\n  }\n\n  var browserWindow = typeof window !== 'undefined' ? window : undefined;\n  var browserGlobal = browserWindow || {};\n  var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n  var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && ({}).toString.call(process) === '[object process]';\n\n  // test for web worker but not in IE10\n  var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n  // node\n  function useNextTick() {\n    var nextTick = process.nextTick;\n    // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n    // setImmediate should be used instead instead\n    var version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n    if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n      nextTick = setImmediate;\n    }\n    return function () {\n      return nextTick(flush);\n    };\n  }\n\n  // vertx\n  function useVertxTimer() {\n    if (typeof vertxNext !== 'undefined') {\n      return function () {\n        vertxNext(flush);\n      };\n    }\n    return useSetTimeout();\n  }\n\n  function useMutationObserver() {\n    var iterations = 0;\n    var observer = new BrowserMutationObserver(flush);\n    var node = document.createTextNode('');\n    observer.observe(node, { characterData: true });\n\n    return function () {\n      return node.data = iterations = ++iterations % 2;\n    };\n  }\n\n  // web worker\n  function useMessageChannel() {\n    var channel = new MessageChannel();\n    channel.port1.onmessage = flush;\n    return function () {\n      return channel.port2.postMessage(0);\n    };\n  }\n\n  function useSetTimeout() {\n    return function () {\n      return setTimeout(flush, 1);\n    };\n  }\n\n  var queue$1 = new Array(1000);\n\n  function flush() {\n    for (var i = 0; i < len; i += 2) {\n      var callback = queue$1[i];\n      var arg = queue$1[i + 1];\n\n      callback(arg);\n\n      queue$1[i] = undefined;\n      queue$1[i + 1] = undefined;\n    }\n\n    len = 0;\n  }\n\n  function attemptVertex() {\n    try {\n      var r = require;\n      var vertx = r('vertx');\n      vertxNext = vertx.runOnLoop || vertx.runOnContext;\n      return useVertxTimer();\n    } catch (e) {\n      return useSetTimeout();\n    }\n  }\n\n  var scheduleFlush$1 = undefined;\n  // Decide what async method to use to triggering processing of queued callbacks:\n  if (isNode) {\n    scheduleFlush$1 = useNextTick();\n  } else if (BrowserMutationObserver) {\n    scheduleFlush$1 = useMutationObserver();\n  } else if (isWorker) {\n    scheduleFlush$1 = useMessageChannel();\n  } else if (browserWindow === undefined && typeof require === 'function') {\n    scheduleFlush$1 = attemptVertex();\n  } else {\n    scheduleFlush$1 = useSetTimeout();\n  }\n\n  var platform = undefined;\n\n  /* global self */\n  if (typeof self === 'object') {\n    platform = self;\n\n    /* global global */\n  } else if (typeof global === 'object') {\n      platform = global;\n    } else {\n      throw new Error('no global: `self` or `global` found');\n    }\n\n  // defaults\n  config.async = asap;\n  config.after = function (cb) {\n    return setTimeout(cb, 0);\n  };\n  var cast = resolve$2;\n\n  var async = function (callback, arg) {\n    return config.async(callback, arg);\n  };\n\n  function on() {\n    config['on'].apply(config, arguments);\n  }\n\n  function off() {\n    config['off'].apply(config, arguments);\n  }\n\n  // Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\n  if (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n    var callbacks = window['__PROMISE_INSTRUMENTATION__'];\n    configure('instrument', true);\n    for (var eventName in callbacks) {\n      if (callbacks.hasOwnProperty(eventName)) {\n        on(eventName, callbacks[eventName]);\n      }\n    }\n  }\n\n  // the default export here is for backwards compat:\n  //   https://github.com/tildeio/rsvp.js/issues/434\n  var rsvp = (_rsvp = {\n    cast: cast,\n    Promise: Promise,\n    EventTarget: EventTarget,\n    all: all$1,\n    allSettled: allSettled,\n    race: race$1,\n    hash: hash,\n    hashSettled: hashSettled,\n    rethrow: rethrow,\n    defer: defer,\n    denodeify: denodeify,\n    configure: configure,\n    on: on,\n    off: off,\n    resolve: resolve$2,\n    reject: reject$2,\n    map: map\n  }, _rsvp['async'] = async, _rsvp.filter = // babel seems to error if async isn't a computed prop here...\n  filter, _rsvp);\n\n  exports.cast = cast;\n  exports.Promise = Promise;\n  exports.EventTarget = EventTarget;\n  exports.all = all$1;\n  exports.allSettled = allSettled;\n  exports.race = race$1;\n  exports.hash = hash;\n  exports.hashSettled = hashSettled;\n  exports.rethrow = rethrow;\n  exports.defer = defer;\n  exports.denodeify = denodeify;\n  exports.configure = configure;\n  exports.on = on;\n  exports.off = off;\n  exports.resolve = resolve$2;\n  exports.reject = reject$2;\n  exports.map = map;\n  exports.async = async;\n  exports.filter = filter;\n  exports.default = rsvp;\n});\nrequireModule(\"ember\");\n\n}());\n"
  },
  {
    "path": "test/bench/fixtures/jquery.js",
    "content": "/*!\n * jQuery JavaScript Library v3.2.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2017-03-20T18:59Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar document = window.document;\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar concat = arr.concat;\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\n\n\n\tfunction DOMEval( code, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar script = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar\n\tversion = \"3.2.1\",\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t},\n\n\t// Support: Android <=4.0 only\n\t// Make sure we trim BOM and NBSP\n\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\n\n\t// Matches dashed string for camelizing\n\trmsPrefix = /^-ms-/,\n\trdashAlpha = /-([a-z])/g,\n\n\t// Used by jQuery.camelCase as callback to replace()\n\tfcamelCase = function( all, letter ) {\n\t\treturn letter.toUpperCase();\n\t};\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !jQuery.isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tsrc = target[ name ];\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\n\t\t\t\t\tif ( copyIsArray ) {\n\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\tclone = src && Array.isArray( src ) ? src : [];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject( src ) ? src : {};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisFunction: function( obj ) {\n\t\treturn jQuery.type( obj ) === \"function\";\n\t},\n\n\tisWindow: function( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t},\n\n\tisNumeric: function( obj ) {\n\n\t\t// As of jQuery 3.0, isNumeric is limited to\n\t\t// strings and numbers (primitives or objects)\n\t\t// that can be coerced to finite numbers (gh-2662)\n\t\tvar type = jQuery.type( obj );\n\t\treturn ( type === \"number\" || type === \"string\" ) &&\n\n\t\t\t// parseFloat NaNs numeric-cast false positives (\"\")\n\t\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n\t\t\t// subtraction forces infinities to NaN\n\t\t\t!isNaN( obj - parseFloat( obj ) );\n\t},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\n\t\t/* eslint-disable no-unused-vars */\n\t\t// See https://github.com/eslint/eslint/issues/6125\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\ttype: function( obj ) {\n\t\tif ( obj == null ) {\n\t\t\treturn obj + \"\";\n\t\t}\n\n\t\t// Support: Android <=2.3 only (functionish RegExp)\n\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\t\ttypeof obj;\n\t},\n\n\t// Evaluates a script in a global context\n\tglobalEval: function( code ) {\n\t\tDOMEval( code );\n\t},\n\n\t// Convert dashed to camelCase; used by the css and data modules\n\t// Support: IE <=9 - 11, Edge 12 - 13\n\t// Microsoft forgot to hump their vendor prefix (#9572)\n\tcamelCase: function( string ) {\n\t\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// Support: Android <=4.0 only\n\ttrim: function( text ) {\n\t\treturn text == null ?\n\t\t\t\"\" :\n\t\t\t( text + \"\" ).replace( rtrim, \"\" );\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn concat.apply( [], ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// Bind a function to a context, optionally partially applying any\n\t// arguments.\n\tproxy: function( fn, context ) {\n\t\tvar tmp, args, proxy;\n\n\t\tif ( typeof context === \"string\" ) {\n\t\t\ttmp = fn[ context ];\n\t\t\tcontext = fn;\n\t\t\tfn = tmp;\n\t\t}\n\n\t\t// Quick check to determine if target is callable, in the spec\n\t\t// this throws a TypeError, but we will just return undefined.\n\t\tif ( !jQuery.isFunction( fn ) ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\t// Simulated bind\n\t\targs = slice.call( arguments, 2 );\n\t\tproxy = function() {\n\t\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\n\t\t};\n\n\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\t\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\n\t\treturn proxy;\n\t},\n\n\tnow: Date.now,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\nfunction( i, name ) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = jQuery.type( obj );\n\n\tif ( type === \"function\" || jQuery.isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\nvar Sizzle =\n/*!\n * Sizzle CSS Selector Engine v2.3.3\n * https://sizzlejs.com/\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n *\n * Date: 2016-08-08\n */\n(function( window ) {\n\nvar i,\n\tsupport,\n\tExpr,\n\tgetText,\n\tisXML,\n\ttokenize,\n\tcompile,\n\tselect,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + 1 * new Date(),\n\tpreferredDoc = window.document,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\t// Instance methods\n\thasOwn = ({}).hasOwnProperty,\n\tarr = [],\n\tpop = arr.pop,\n\tpush_native = arr.push,\n\tpush = arr.push,\n\tslice = arr.slice,\n\t// Use a stripped-down indexOf as it's faster than native\n\t// https://jsperf.com/thor-indexof-vs-for/5\n\tindexOf = function( list, elem ) {\n\t\tvar i = 0,\n\t\t\tlen = list.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( list[i] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\n\t// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\n\tidentifier = \"(?:\\\\\\\\.|[\\\\w-]|[^\\0-\\\\xa0])+\",\n\n\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" + whitespace +\n\t\t\"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace + \"*\" ),\n\n\trattributeQuotes = new RegExp( \"=\" + whitespace + \"*([^\\\\]'\\\"]*?)\" + whitespace + \"*\\\\]\", \"g\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" + whitespace +\n\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\n\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\n\t\t\twhitespace + \"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\([\\\\da-f]{1,6}\" + whitespace + \"?|(\" + whitespace + \")|.)\", \"ig\" ),\n\tfunescape = function( _, escaped, escapedWhitespace ) {\n\t\tvar high = \"0x\" + escaped - 0x10000;\n\t\t// NaN means non-codepoint\n\t\t// Support: Firefox<24\n\t\t// Workaround erroneous numeric interpretation of +\"0x\"\n\t\treturn high !== high || escapedWhitespace ?\n\t\t\tescaped :\n\t\t\thigh < 0 ?\n\t\t\t\t// BMP codepoint\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\t// Supplemental Plane codepoint (surrogate pair)\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// CSS string/identifier serialization\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\tfcssescape = function( ch, asCodePoint ) {\n\t\tif ( asCodePoint ) {\n\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\tif ( ch === \"\\0\" ) {\n\t\t\t\treturn \"\\uFFFD\";\n\t\t\t}\n\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t\t}\n\n\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\treturn \"\\\\\" + ch;\n\t},\n\n\t// Used for iframes\n\t// See setDocument()\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tdisabledAncestor = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && (\"form\" in elem || \"label\" in elem);\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t(arr = slice.call( preferredDoc.childNodes )),\n\t\tpreferredDoc.childNodes\n\t);\n\t// Support: Android<4.0\n\t// Detect silently failing push.apply\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = { apply: arr.length ?\n\n\t\t// Leverage slice if possible\n\t\tfunction( target, els ) {\n\t\t\tpush_native.apply( target, slice.call(els) );\n\t\t} :\n\n\t\t// Support: IE<9\n\t\t// Otherwise append directly\n\t\tfunction( target, els ) {\n\t\t\tvar j = target.length,\n\t\t\t\ti = 0;\n\t\t\t// Can't trust NodeList.length\n\t\t\twhile ( (target[j++] = els[i++]) ) {}\n\t\t\ttarget.length = j - 1;\n\t\t}\n\t};\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\n\t\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\n\t\t\tsetDocument( context );\n\t\t}\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( (m = match[1]) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( (elem = context.getElementById( m )) ) {\n\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && (elem = newContext.getElementById( m )) &&\n\t\t\t\t\t\t\tcontains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[2] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( (m = match[3]) && support.getElementsByClassName &&\n\t\t\t\t\tcontext.getElementsByClassName ) {\n\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( support.qsa &&\n\t\t\t\t!compilerCache[ selector + \" \" ] &&\n\t\t\t\t(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\n\n\t\t\t\tif ( nodeType !== 1 ) {\n\t\t\t\t\tnewContext = context;\n\t\t\t\t\tnewSelector = selector;\n\n\t\t\t\t// qSA looks outside Element context, which is not what we want\n\t\t\t\t// Thanks to Andrew Dupont for this workaround technique\n\t\t\t\t// Support: IE <=8\n\t\t\t\t// Exclude object elements\n\t\t\t\t} else if ( context.nodeName.toLowerCase() !== \"object\" ) {\n\n\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\tif ( (nid = context.getAttribute( \"id\" )) ) {\n\t\t\t\t\t\tnid = nid.replace( rcssescape, fcssescape );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontext.setAttribute( \"id\", (nid = expando) );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[i] = \"#\" + nid + \" \" + toSelector( groups[i] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\t\t\t\t}\n\n\t\t\t\tif ( newSelector ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t\t);\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn (cache[ key + \" \" ] = value);\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement(\"fieldset\");\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch (e) {\n\t\treturn false;\n\t} finally {\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */\nfunction addHandle( attrs, handler ) {\n\tvar arr = attrs.split(\"|\"),\n\t\ti = arr.length;\n\n\twhile ( i-- ) {\n\t\tExpr.attrHandle[ arr[i] ] = handler;\n\t}\n}\n\n/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( (cur = cur.nextSibling) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\t/* jshint -W018 */\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\t\tdisabledAncestor( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction(function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction(function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ (j = matchIndexes[i]) ] ) {\n\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n * Checks a node for validity as a Sizzle context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n// Expose support vars for convenience\nsupport = Sizzle.support = {};\n\n/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */\nisXML = Sizzle.isXML = function( elem ) {\n\t// documentElement is verified for cases where it doesn't yet exist\n\t// (such as loading iframes in IE - #4833)\n\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar hasCompare, subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocElem = document.documentElement;\n\tdocumentIsHTML = !isXML( document );\n\n\t// Support: IE 9-11, Edge\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\tif ( preferredDoc !== document &&\n\t\t(subWindow = document.defaultView) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 11, Edge\n\t\tif ( subWindow.addEventListener ) {\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t// Support: IE 9 - 10 only\n\t\t} else if ( subWindow.attachEvent ) {\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\n\t\t}\n\t}\n\n\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t// Support: IE<8\n\t// Verify that getAttribute really returns attributes and not properties\n\t// (excepting IE8 booleans)\n\tsupport.attributes = assert(function( el ) {\n\t\tel.className = \"i\";\n\t\treturn !el.getAttribute(\"className\");\n\t});\n\n\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.getElementsByTagName = assert(function( el ) {\n\t\tel.appendChild( document.createComment(\"\") );\n\t\treturn !el.getElementsByTagName(\"*\").length;\n\t});\n\n\t// Support: IE<9\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\n\n\t// Support: IE<10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert(function( el ) {\n\t\tdocElem.appendChild( el ).id = expando;\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\n\t});\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter[\"ID\"] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter[\"ID\"] =  function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode(\"id\");\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode(\"id\");\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( (elem = elems[i++]) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode(\"id\");\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find[\"TAG\"] = support.getElementsByTagName ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t} else if ( support.qsa ) {\n\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t}\n\t\t} :\n\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( (elem = results[i++]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Class\n\tExpr.find[\"CLASS\"] = support.getElementsByClassName && function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21)\n\t// We allow this because of a bug in IE8/9 that throws an error\n\t// whenever `document.activeElement` is accessed on an iframe\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t// See https://bugs.jquery.com/ticket/13378\n\trbuggyQSA = [];\n\n\tif ( (support.qsa = rnative.test( document.querySelectorAll )) ) {\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert(function( el ) {\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\tdocElem.appendChild( el ).innerHTML = \"<a id='\" + expando + \"'></a>\" +\n\t\t\t\t\"<select id='\" + expando + \"-\\r\\\\' msallowcapture=''>\" +\n\t\t\t\t\"<option selected=''></option></select>\";\n\n\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\tif ( el.querySelectorAll(\"[msallowcapture^='']\").length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Support: IE8\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\tif ( !el.querySelectorAll(\"[selected]\").length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t}\n\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\trbuggyQSA.push(\"~=\");\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !el.querySelectorAll(\":checked\").length ) {\n\t\t\t\trbuggyQSA.push(\":checked\");\n\t\t\t}\n\n\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\trbuggyQSA.push(\".#.+[+~]\");\n\t\t\t}\n\t\t});\n\n\t\tassert(function( el ) {\n\t\t\tel.innerHTML = \"<a href='' disabled='disabled'></a>\" +\n\t\t\t\t\"<select disabled='disabled'><option/></select>\";\n\n\t\t\t// Support: Windows 8 Native Apps\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\tvar input = document.createElement(\"input\");\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t// Support: IE8\n\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\tif ( el.querySelectorAll(\"[name=d]\").length ) {\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( el.querySelectorAll(\":enabled\").length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\tdocElem.appendChild( el ).disabled = true;\n\t\t\tif ( el.querySelectorAll(\":disabled\").length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tel.querySelectorAll(\"*,:x\");\n\t\t\trbuggyQSA.push(\",.*:\");\n\t\t});\n\t}\n\n\tif ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector) )) ) {\n\n\t\tassert(function( el ) {\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( el, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t});\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\"|\") );\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join(\"|\") );\n\n\t/* Contains\n\t---------------------------------------------------------------------- */\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t// Element contains another\n\t// Purposefully self-exclusive\n\t// As in, an element does not contain itself\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\tfunction( a, b ) {\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\tbup = b && b.parentNode;\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\tadown.contains ?\n\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t));\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\tif ( b ) {\n\t\t\t\twhile ( (b = b.parentNode) ) {\n\t\t\t\t\tif ( b === a ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = hasCompare ?\n\tfunction( a, b ) {\n\n\t\t// Flag for duplicate removal\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\tif ( compare ) {\n\t\t\treturn compare;\n\t\t}\n\n\t\t// Calculate position if both inputs belong to the same document\n\t\tcompare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?\n\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t// Otherwise we know they are disconnected\n\t\t\t1;\n\n\t\t// Disconnected nodes\n\t\tif ( compare & 1 ||\n\t\t\t(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {\n\n\t\t\t// Choose the first element that is related to our preferred document\n\t\t\tif ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// Maintain original order\n\t\t\treturn sortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\t\t// Exit early if the nodes are identical\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tap = [ a ],\n\t\t\tbp = [ b ];\n\n\t\t// Parentless nodes are either documents or disconnected\n\t\tif ( !aup || !bup ) {\n\t\t\treturn a === document ? -1 :\n\t\t\t\tb === document ? 1 :\n\t\t\t\taup ? -1 :\n\t\t\t\tbup ? 1 :\n\t\t\t\tsortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\n\t\t// If the nodes are siblings, we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\t\t}\n\n\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\tcur = a;\n\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\tap.unshift( cur );\n\t\t}\n\t\tcur = b;\n\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\tbp.unshift( cur );\n\t\t}\n\n\t\t// Walk down the tree looking for a discrepancy\n\t\twhile ( ap[i] === bp[i] ) {\n\t\t\ti++;\n\t\t}\n\n\t\treturn i ?\n\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\tsiblingCheck( ap[i], bp[i] ) :\n\n\t\t\t// Otherwise nodes in our document sort first\n\t\t\tap[i] === preferredDoc ? -1 :\n\t\t\tbp[i] === preferredDoc ? 1 :\n\t\t\t0;\n\t};\n\n\treturn document;\n};\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\t// Set document vars if needed\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\tsetDocument( elem );\n\t}\n\n\t// Make sure that attribute selectors are quoted\n\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\n\n\tif ( support.matchesSelector && documentIsHTML &&\n\t\t!compilerCache[ expr + \" \" ] &&\n\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\n\t\t( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {\n\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch (e) {}\n\t}\n\n\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\n};\n\nSizzle.contains = function( context, elem ) {\n\t// Set document vars if needed\n\tif ( ( context.ownerDocument || context ) !== document ) {\n\t\tsetDocument( context );\n\t}\n\treturn contains( context, elem );\n};\n\nSizzle.attr = function( elem, name ) {\n\t// Set document vars if needed\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\treturn val !== undefined ?\n\t\tval :\n\t\tsupport.attributes || !documentIsHTML ?\n\t\t\telem.getAttribute( name ) :\n\t\t\t(val = elem.getAttributeNode(name)) && val.specified ?\n\t\t\t\tval.value :\n\t\t\t\tnull;\n};\n\nSizzle.escape = function( sel ) {\n\treturn (sel + \"\").replace( rcssescape, fcssescape );\n};\n\nSizzle.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */\nSizzle.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\tj = 0,\n\t\ti = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\thasDuplicate = !support.detectDuplicates;\n\tsortInput = !support.sortStable && results.slice( 0 );\n\tresults.sort( sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\twhile ( (elem = results[i++]) ) {\n\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tresults.splice( duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\t// Clear input after sorting to release objects\n\t// See https://github.com/jquery/sizzle/pull/225\n\tsortInput = null;\n\n\treturn results;\n};\n\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( !nodeType ) {\n\t\t// If no nodeType, this is expected to be an array\n\t\twhile ( (node = elem[i++]) ) {\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\t\t// Use textContent for elements\n\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\treturn elem.textContent;\n\t\t} else {\n\t\t\t// Traverse its children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tret += getText( elem );\n\t\t\t}\n\t\t}\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\treturn elem.nodeValue;\n\t}\n\t// Do not include comment or processing instruction nodes\n\n\treturn ret;\n};\n\nExpr = Sizzle.selectors = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tattrHandle: {},\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\t\"ATTR\": function( match ) {\n\t\t\tmatch[1] = match[1].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[3] = ( match[3] || match[4] || match[5] || \"\" ).replace( runescape, funescape );\n\n\t\t\tif ( match[2] === \"~=\" ) {\n\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\t\"CHILD\": function( match ) {\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[1] = match[1].toLowerCase();\n\n\t\t\tif ( match[1].slice( 0, 3 ) === \"nth\" ) {\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[3] ) {\n\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \"even\" || match[3] === \"odd\" ) );\n\t\t\t\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \"odd\" );\n\n\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[3] ) {\n\t\t\t\tSizzle.error( match[0] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[6] && match[2];\n\n\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[3] ) {\n\t\t\t\tmatch[2] = match[4] || match[5] || \"\";\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t(excess = tokenize( unquoted, true )) &&\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t(excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[0] = match[0].slice( 0, excess );\n\t\t\t\tmatch[2] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\t\"TAG\": function( nodeNameSelector ) {\n\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\tfunction() { return true; } :\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t(pattern = new RegExp( \"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\" )) &&\n\t\t\t\tclassCache( className, function( elem ) {\n\t\t\t\t\treturn pattern.test( typeof elem.className === \"string\" && elem.className || typeof elem.getAttribute !== \"undefined\" && elem.getAttribute(\"class\") || \"\" );\n\t\t\t\t});\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\tfalse;\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": function( type, what, argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( (node = node[ dir ]) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\n\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\tif ( diff === false ) {\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\t\"PSEUDO\": function( pseudo, argument ) {\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as Sizzle does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction(function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf( seed, matched[i] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[i] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\t\t// Potentially complex pseudos\n\t\t\"not\": markFunction(function( selector ) {\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction(function( seed, matches, context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = unmatched[i]) ) {\n\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}) :\n\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\tinput[0] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\t\t\t\t\t// Don't keep the element (issue #299)\n\t\t\t\t\tinput[0] = null;\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t}),\n\n\t\t\"has\": markFunction(function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t}),\n\n\t\t\"contains\": markFunction(function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t}),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\"lang\": markFunction( function( lang ) {\n\t\t\t// lang value must be a valid identifier\n\t\t\tif ( !ridentifier.test(lang || \"\") ) {\n\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( (elemLang = documentIsHTML ?\n\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\telem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\")) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t}),\n\n\t\t// Miscellaneous\n\t\t\"target\": function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\t\"root\": function( elem ) {\n\t\t\treturn elem === docElem;\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\n\t\t},\n\n\t\t// Boolean properties\n\t\t\"enabled\": createDisabledPseudo( false ),\n\t\t\"disabled\": createDisabledPseudo( true ),\n\n\t\t\"checked\": function( elem ) {\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\t\"empty\": function( elem ) {\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t//   but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\telem.type === \"text\" &&\n\n\t\t\t\t// Support: IE<8\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === \"text\" );\n\t\t},\n\n\t\t// Position-in-collection\n\t\t\"first\": createPositionalPseudo(function() {\n\t\t\treturn [ 0 ];\n\t\t}),\n\n\t\t\"last\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t}),\n\n\t\t\"eq\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t}),\n\n\t\t\"even\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"odd\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"lt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"gt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t})\n\t}\n};\n\nExpr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nsetFilters.prototype = Expr.filters = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\ntokenize = Sizzle.tokenize = function( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\n\t\t\tif ( match ) {\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[0].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( (tokens = []) );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( (match = rcombinators.exec( soFar )) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push({\n\t\t\t\tvalue: matched,\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[0].replace( rtrim, \" \" )\n\t\t\t});\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\n\t\t\t\t(match = preFilters[ type ]( match ))) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push({\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t});\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\t\t\t// Cache the tokens\n\t\t\ttokenCache( selector, groups ).slice( 0 );\n};\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[i].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tskip = combinator.next,\n\t\tkey = skip || dir,\n\t\tcheckNonElements = base && key === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar oldCache, uniqueCache, outerCache,\n\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || (elem[ expando ] = {});\n\n\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});\n\n\t\t\t\t\t\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( (oldCache = uniqueCache[ key ]) &&\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\treturn (newCache[ 2 ] = oldCache[ 2 ]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\tuniqueCache[ key ] = newCache;\n\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\tif ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[i]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[0];\n}\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tSizzle( selector, contexts[i], results );\n\t}\n\treturn results;\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( (elem = unmatched[i]) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction(function( seed, results, context, xml ) {\n\t\tvar temp, i, elem,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed || multipleContexts( selector || \"*\", context.nodeType ? [ context ] : context, [] ),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems,\n\n\t\t\tmatcherOut = matcher ?\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t[] :\n\n\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\tresults :\n\t\t\t\tmatcherIn;\n\n\t\t// Find primary matches\n\t\tif ( matcher ) {\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( (elem = temp[i]) ) {\n\t\t\t\t\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = matcherOut[i]) ) {\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( (matcherIn[i] = elem) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, (matcherOut = []), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( (elem = matcherOut[i]) &&\n\t\t\t\t\t\t(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {\n\n\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t});\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[0].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\t\t\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\t\t\t\t(checkContext = context).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\t\t\t// Avoid hanging onto element (issue #299)\n\t\t\tcheckContext = null;\n\t\t\treturn ret;\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\n\t\t\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[j].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector(\n\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\t\ttokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" })\n\t\t\t\t\t).replace( rtrim, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\tvar bySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\tsetMatched = [],\n\t\t\t\tcontextBackup = outermostContext,\n\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\telems = seed || byElement && Expr.find[\"TAG\"]( \"*\", outermost ),\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),\n\t\t\t\tlen = elems.length;\n\n\t\t\tif ( outermost ) {\n\t\t\t\toutermostContext = context === document || context || outermost;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Support: IE<9, Safari\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching elements by id\n\t\t\tfor ( ; i !== len && (elem = elems[i]) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\tif ( !context && elem.ownerDocument !== document ) {\n\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t}\n\t\t\t\t\twhile ( (matcher = elementMatchers[j++]) ) {\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml) ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( (elem = !matcher && elem) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t// makes the latter nonnegative.\n\t\t\tmatchedCount += i;\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t// no element matchers and no seed.\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t// numerically zero.\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( (matcher = setMatchers[j++]) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !(unmatched[i] || setMatched[i]) ) {\n\t\t\t\t\t\t\t\tsetMatched[i] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tSizzle.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\ncompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !match ) {\n\t\t\tmatch = tokenize( selector );\n\t\t}\n\t\ti = match.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( match[i] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\n\t\t// Save selector and tokenization\n\t\tcached.selector = selector;\n\t}\n\treturn cached;\n};\n\n/**\n * A low-level selection function that works with Sizzle's compiled\n *  selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n *  selector function built with Sizzle.compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nselect = Sizzle.select = function( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tcompiled = typeof selector === \"function\" && selector,\n\t\tmatch = !seed && tokenize( (selector = compiled.selector || selector) );\n\n\tresults = results || [];\n\n\t// Try to minimize operations if there is only one selector in the list and no seed\n\t// (the latter of which guarantees us context)\n\tif ( match.length === 1 ) {\n\n\t\t// Reduce context if the leading compound selector is an ID\n\t\ttokens = match[0] = match[0].slice( 0 );\n\t\tif ( tokens.length > 2 && (token = tokens[0]).type === \"ID\" &&\n\t\t\t\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {\n\n\t\t\tcontext = ( Expr.find[\"ID\"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t} else if ( compiled ) {\n\t\t\t\tcontext = context.parentNode;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t}\n\n\t\t// Fetch a seed set for right-to-left matching\n\t\ti = matchExpr[\"needsContext\"].test( selector ) ? 0 : tokens.length;\n\t\twhile ( i-- ) {\n\t\t\ttoken = tokens[i];\n\n\t\t\t// Abort if we hit a combinator\n\t\t\tif ( Expr.relative[ (type = token.type) ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( (find = Expr.find[ type ]) ) {\n\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\tif ( (seed = find(\n\t\t\t\t\ttoken.matches[0].replace( runescape, funescape ),\n\t\t\t\t\trsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context\n\t\t\t\t)) ) {\n\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function if one is not provided\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\t( compiled || compile( selector, match ) )(\n\t\tseed,\n\t\tcontext,\n\t\t!documentIsHTML,\n\t\tresults,\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t);\n\treturn results;\n};\n\n// One-time assignments\n\n// Sort stability\nsupport.sortStable = expando.split(\"\").sort( sortOrder ).join(\"\") === expando;\n\n// Support: Chrome 14-35+\n// Always assume duplicates if they aren't passed to the comparison function\nsupport.detectDuplicates = !!hasDuplicate;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached = assert(function( el ) {\n\t// Should return 1, but returns 4 (following)\n\treturn el.compareDocumentPosition( document.createElement(\"fieldset\") ) & 1;\n});\n\n// Support: IE<8\n// Prevent attribute/property \"interpolation\"\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif ( !assert(function( el ) {\n\tel.innerHTML = \"<a href='#'></a>\";\n\treturn el.firstChild.getAttribute(\"href\") === \"#\" ;\n}) ) {\n\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\t\tif ( !isXML ) {\n\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\t\t}\n\t});\n}\n\n// Support: IE<9\n// Use defaultValue in place of getAttribute(\"value\")\nif ( !support.attributes || !assert(function( el ) {\n\tel.innerHTML = \"<input/>\";\n\tel.firstChild.setAttribute( \"value\", \"\" );\n\treturn el.firstChild.getAttribute( \"value\" ) === \"\";\n}) ) {\n\taddHandle( \"value\", function( elem, name, isXML ) {\n\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\t\t\treturn elem.defaultValue;\n\t\t}\n\t});\n}\n\n// Support: IE<9\n// Use getAttributeNode to fetch booleans when getAttribute lies\nif ( !assert(function( el ) {\n\treturn el.getAttribute(\"disabled\") == null;\n}) ) {\n\taddHandle( booleans, function( elem, name, isXML ) {\n\t\tvar val;\n\t\tif ( !isXML ) {\n\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\t\t\t\t\t(val = elem.getAttributeNode( name )) && val.specified ?\n\t\t\t\t\tval.value :\n\t\t\t\tnull;\n\t\t}\n\t});\n}\n\nreturn Sizzle;\n\n})( window );\n\n\n\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\njQuery.escapeSelector = Sizzle.escape;\n\n\n\n\nvar dir = function( elem, dir, until ) {\n\tvar matched = [],\n\t\ttruncate = until !== undefined;\n\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmatched.push( elem );\n\t\t}\n\t}\n\treturn matched;\n};\n\n\nvar siblings = function( n, elem ) {\n\tvar matched = [];\n\n\tfor ( ; n; n = n.nextSibling ) {\n\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\tmatched.push( n );\n\t\t}\n\t}\n\n\treturn matched;\n};\n\n\nvar rneedsContext = jQuery.expr.match.needsContext;\n\n\n\nfunction nodeName( elem, name ) {\n\n  return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\n};\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\n\n\n\nvar risSimple = /^.[^:#\\[\\.,]*$/;\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, not ) {\n\tif ( jQuery.isFunction( qualifier ) ) {\n\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t} );\n\t}\n\n\t// Single element\n\tif ( qualifier.nodeType ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) !== not;\n\t\t} );\n\t}\n\n\t// Arraylike of elements (jQuery, arguments, Array)\n\tif ( typeof qualifier !== \"string\" ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\t// Simple selector that can be filtered directly, removing non-Elements\n\tif ( risSimple.test( qualifier ) ) {\n\t\treturn jQuery.filter( qualifier, elements, not );\n\t}\n\n\t// Complex selector, compare the two sets, removing non-Elements\n\tqualifier = jQuery.filter( qualifier, elements );\n\treturn jQuery.grep( elements, function( elem ) {\n\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;\n\t} );\n}\n\njQuery.filter = function( expr, elems, not ) {\n\tvar elem = elems[ 0 ];\n\n\tif ( not ) {\n\t\texpr = \":not(\" + expr + \")\";\n\t}\n\n\tif ( elems.length === 1 && elem.nodeType === 1 ) {\n\t\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\n\t}\n\n\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\treturn elem.nodeType === 1;\n\t} ) );\n};\n\njQuery.fn.extend( {\n\tfind: function( selector ) {\n\t\tvar i, ret,\n\t\t\tlen = this.length,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} ) );\n\t\t}\n\n\t\tret = this.pushStack( [] );\n\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t}\n\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\n\t},\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t},\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t},\n\tis: function( selector ) {\n\t\treturn !!winnow(\n\t\t\tthis,\n\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\tjQuery( selector ) :\n\t\t\t\tselector || [],\n\t\t\tfalse\n\t\t).length;\n\t}\n} );\n\n\n// Initialize a jQuery object\n\n\n// A central reference to the root jQuery(document)\nvar rootjQuery,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\n\t// Strict HTML recognition (#11290: must start with <)\n\t// Shortcut simple #id case for speed\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\n\n\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Method init() accepts an alternate rootjQuery\n\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\troot = root || rootjQuery;\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( jQuery.isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis[ 0 ] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( jQuery.isFunction( selector ) ) {\n\t\t\treturn root.ready !== undefined ?\n\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\tselector( jQuery );\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t};\n\n// Give the init function the jQuery prototype for later instantiation\ninit.prototype = jQuery.fn;\n\n// Initialize central reference\nrootjQuery = jQuery( document );\n\n\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t// Methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend( {\n\thas: function( target ) {\n\t\tvar targets = jQuery( target, this ),\n\t\t\tl = targets.length;\n\n\t\treturn this.filter( function() {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tmatched = [],\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\n\n\t\t// Positional selectors never match, since there's no _selection_ context\n\t\tif ( !rneedsContext.test( selectors ) ) {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to Sizzle\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t},\n\n\t// Determine the position of an element within the set\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// Index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn indexOf.call( this,\n\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t);\n\t},\n\n\tadd: function( selector, context ) {\n\t\treturn this.pushStack(\n\t\t\tjQuery.uniqueSort(\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t)\n\t\t);\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t);\n\t}\n} );\n\nfunction sibling( cur, dir ) {\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\treturn cur;\n}\n\njQuery.each( {\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, i, until ) {\n\t\treturn dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, i, until ) {\n\t\treturn dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, i, until ) {\n\t\treturn dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn siblings( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n        if ( nodeName( elem, \"iframe\" ) ) {\n            return elem.contentDocument;\n        }\n\n        // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n        // Treat the template element as a regular one in browsers that\n        // don't support it.\n        if ( nodeName( elem, \"template\" ) ) {\n            elem = elem.content || elem;\n        }\n\n        return jQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t}\n\n\t\tif ( this.length > 1 ) {\n\n\t\t\t// Remove duplicates\n\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t}\n\n\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\tmatched.reverse();\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched );\n\t};\n} );\nvar rnothtmlwhite = ( /[^\\x20\\t\\r\\n\\f]+/g );\n\n\n\n// Convert String-formatted options into Object-formatted ones\nfunction createOptions( options ) {\n\tvar object = {};\n\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t} );\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\tcreateOptions( options ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\n\t\t// Last fire value for non-forgettable lists\n\t\tmemory,\n\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\n\t\t// Flag to prevent firing\n\t\tlocked,\n\n\t\t// Actual callback list\n\t\tlist = [],\n\n\t\t// Queue of execution data for repeatable lists\n\t\tqueue = [],\n\n\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\tfiringIndex = -1,\n\n\t\t// Fire callbacks\n\t\tfire = function() {\n\n\t\t\t// Enforce single-firing\n\t\t\tlocked = locked || options.once;\n\n\t\t\t// Execute callbacks for all pending executions,\n\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\tfired = firing = true;\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\tmemory = queue.shift();\n\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Forget the data if we're done with it\n\t\t\tif ( !options.memory ) {\n\t\t\t\tmemory = false;\n\t\t\t}\n\n\t\t\tfiring = false;\n\n\t\t\t// Clean up if we're done firing for good\n\t\t\tif ( locked ) {\n\n\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\tif ( memory ) {\n\t\t\t\t\tlist = [];\n\n\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t} else {\n\t\t\t\t\tlist = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Actual Callbacks object\n\t\tself = {\n\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t}\n\n\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tif ( jQuery.isFunction( arg ) ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && jQuery.type( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\tvar index;\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ?\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\tlist.length > 0;\n\t\t\t},\n\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Disable .fire and .add\n\t\t\t// Abort any current/pending executions\n\t\t\t// Clear all callbacks and values\n\t\t\tdisable: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tlist = memory = \"\";\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\n\t\t\t// Disable .fire\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t// Abort any pending executions\n\t\t\tlock: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tif ( !memory && !firing ) {\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tlocked: function() {\n\t\t\t\treturn !!locked;\n\t\t\t},\n\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\tif ( !locked ) {\n\t\t\t\t\targs = args || [];\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\tqueue.push( args );\n\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\n\n\nfunction Identity( v ) {\n\treturn v;\n}\nfunction Thrower( ex ) {\n\tthrow ex;\n}\n\nfunction adoptValue( value, resolve, reject, noValue ) {\n\tvar method;\n\n\ttry {\n\n\t\t// Check for promise aspect first to privilege synchronous behavior\n\t\tif ( value && jQuery.isFunction( ( method = value.promise ) ) ) {\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\n\n\t\t// Other thenables\n\t\t} else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {\n\t\t\tmethod.call( value, resolve, reject );\n\n\t\t// Other non-thenables\n\t\t} else {\n\n\t\t\t// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n\t\t\t// * false: [ value ].slice( 0 ) => resolve( value )\n\t\t\t// * true: [ value ].slice( 1 ) => resolve()\n\t\t\tresolve.apply( undefined, [ value ].slice( noValue ) );\n\t\t}\n\n\t// For Promises/A+, convert exceptions into rejections\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\n\t// Deferred#then to conditionally suppress rejection.\n\t} catch ( value ) {\n\n\t\t// Support: Android 4.0 only\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\n\t\treject.apply( undefined, [ value ] );\n\t}\n}\n\njQuery.extend( {\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\n\t\t\t\t// action, add listener, callbacks,\n\t\t\t\t// ... .then handlers, argument index, [final state]\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\t\"catch\": function( fn ) {\n\t\t\t\t\treturn promise.then( null, fn );\n\t\t\t\t},\n\n\t\t\t\t// Keep pipe for back-compat\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\n\t\t\t\t\t\t\tvar fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\n\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && jQuery.isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\n\t\t\t\t\tvar maxDepth = 0;\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tvar that = this,\n\t\t\t\t\t\t\t\targs = arguments,\n\t\t\t\t\t\t\t\tmightThrow = function() {\n\t\t\t\t\t\t\t\t\tvar returned, then;\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\n\t\t\t\t\t\t\t\t\tthen = returned &&\n\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\n\t\t\t\t\t\t\t\t\t\treturned.then;\n\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\n\t\t\t\t\t\t\t\t\tif ( jQuery.isFunction( then ) ) {\n\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\n\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\n\t\t\t\t\t\t\t\tprocess = special ?\n\t\t\t\t\t\t\t\t\tmightThrow :\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.stackTrace );\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\n\t\t\t\t\t\t\t// subsequent errors\n\t\t\t\t\t\t\tif ( depth ) {\n\t\t\t\t\t\t\t\tprocess();\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Call an optional hook to record the stack, in case of exception\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.stackTrace = jQuery.Deferred.getStackHook();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\n\t\t\t\t\t\t// progress_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tjQuery.isFunction( onProgress ) ?\n\t\t\t\t\t\t\t\t\tonProgress :\n\t\t\t\t\t\t\t\t\tIdentity,\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tjQuery.isFunction( onFulfilled ) ?\n\t\t\t\t\t\t\t\t\tonFulfilled :\n\t\t\t\t\t\t\t\t\tIdentity\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// rejected_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tjQuery.isFunction( onRejected ) ?\n\t\t\t\t\t\t\t\t\tonRejected :\n\t\t\t\t\t\t\t\t\tThrower\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 5 ];\n\n\t\t\t// promise.progress = list.add\n\t\t\t// promise.done = list.add\n\t\t\t// promise.fail = list.add\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(\n\t\t\t\t\tfunction() {\n\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\n\t\t\t\t\t\t// state = \"rejected\"\n\t\t\t\t\t\tstate = stateString;\n\t\t\t\t\t},\n\n\t\t\t\t\t// rejected_callbacks.disable\n\t\t\t\t\t// fulfilled_callbacks.disable\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\n\n\t\t\t\t\t// progress_callbacks.lock\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// progress_handlers.fire\n\t\t\t// fulfilled_handlers.fire\n\t\t\t// rejected_handlers.fire\n\t\t\tlist.add( tuple[ 3 ].fire );\n\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\n\t\t\t// deferred.notifyWith = list.fireWith\n\t\t\t// deferred.resolveWith = list.fireWith\n\t\t\t// deferred.rejectWith = list.fireWith\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t} );\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( singleValue ) {\n\t\tvar\n\n\t\t\t// count of uncompleted subordinates\n\t\t\tremaining = arguments.length,\n\n\t\t\t// count of unprocessed arguments\n\t\t\ti = remaining,\n\n\t\t\t// subordinate fulfillment data\n\t\t\tresolveContexts = Array( i ),\n\t\t\tresolveValues = slice.call( arguments ),\n\n\t\t\t// the master Deferred\n\t\t\tmaster = jQuery.Deferred(),\n\n\t\t\t// subordinate callback factory\n\t\t\tupdateFunc = function( i ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tresolveContexts[ i ] = this;\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\tif ( !( --remaining ) ) {\n\t\t\t\t\t\tmaster.resolveWith( resolveContexts, resolveValues );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\n\t\t// Single- and empty arguments are adopted like Promise.resolve\n\t\tif ( remaining <= 1 ) {\n\t\t\tadoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,\n\t\t\t\t!remaining );\n\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\n\t\t\tif ( master.state() === \"pending\" ||\n\t\t\t\tjQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\n\n\t\t\t\treturn master.then();\n\t\t\t}\n\t\t}\n\n\t\t// Multiple arguments are aggregated like Promise.all array elements\n\t\twhile ( i-- ) {\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), master.reject );\n\t\t}\n\n\t\treturn master.promise();\n\t}\n} );\n\n\n// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n\njQuery.Deferred.exceptionHook = function( error, stack ) {\n\n\t// Support: IE 8 - 9 only\n\t// Console exists when dev tools are open, which can happen at any time\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message, error.stack, stack );\n\t}\n};\n\n\n\n\njQuery.readyException = function( error ) {\n\twindow.setTimeout( function() {\n\t\tthrow error;\n\t} );\n};\n\n\n\n\n// The deferred used on DOM ready\nvar readyList = jQuery.Deferred();\n\njQuery.fn.ready = function( fn ) {\n\n\treadyList\n\t\t.then( fn )\n\n\t\t// Wrap jQuery.readyException in a function so that the lookup\n\t\t// happens at the time of error handling instead of callback\n\t\t// registration.\n\t\t.catch( function( error ) {\n\t\t\tjQuery.readyException( error );\n\t\t} );\n\n\treturn this;\n};\n\njQuery.extend( {\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\t}\n} );\n\njQuery.ready.then = readyList.then;\n\n// The ready event handler and self cleanup method\nfunction completed() {\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\twindow.removeEventListener( \"load\", completed );\n\tjQuery.ready();\n}\n\n// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals \"interactive\" too soon\nif ( document.readyState === \"complete\" ||\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\twindow.setTimeout( jQuery.ready );\n\n} else {\n\n\t// Use the handy event callback\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t// A fallback to window.onload, that will always work\n\twindow.addEventListener( \"load\", completed );\n}\n\n\n\n\n// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it's a function\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\tvar i = 0,\n\t\tlen = elems.length,\n\t\tbulk = key == null;\n\n\t// Sets many values\n\tif ( jQuery.type( key ) === \"object\" ) {\n\t\tchainable = true;\n\t\tfor ( i in key ) {\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t}\n\n\t// Sets one value\n\t} else if ( value !== undefined ) {\n\t\tchainable = true;\n\n\t\tif ( !jQuery.isFunction( value ) ) {\n\t\t\traw = true;\n\t\t}\n\n\t\tif ( bulk ) {\n\n\t\t\t// Bulk operations run against the entire set\n\t\t\tif ( raw ) {\n\t\t\t\tfn.call( elems, value );\n\t\t\t\tfn = null;\n\n\t\t\t// ...except when executing function values\n\t\t\t} else {\n\t\t\t\tbulk = fn;\n\t\t\t\tfn = function( elem, key, value ) {\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tfn(\n\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\tvalue :\n\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( chainable ) {\n\t\treturn elems;\n\t}\n\n\t// Gets\n\tif ( bulk ) {\n\t\treturn fn.call( elems );\n\t}\n\n\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\n};\nvar acceptData = function( owner ) {\n\n\t// Accepts only:\n\t//  - Node\n\t//    - Node.ELEMENT_NODE\n\t//    - Node.DOCUMENT_NODE\n\t//  - Object\n\t//    - Any\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n};\n\n\n\n\nfunction Data() {\n\tthis.expando = jQuery.expando + Data.uid++;\n}\n\nData.uid = 1;\n\nData.prototype = {\n\n\tcache: function( owner ) {\n\n\t\t// Check if the owner object already has a cache\n\t\tvar value = owner[ this.expando ];\n\n\t\t// If not, create one\n\t\tif ( !value ) {\n\t\t\tvalue = {};\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see #8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t// use plain assignment\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t// deleted when data is removed\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t},\n\tset: function( owner, data, value ) {\n\t\tvar prop,\n\t\t\tcache = this.cache( owner );\n\n\t\t// Handle: [ owner, key, value ] args\n\t\t// Always use camelCase key (gh-2257)\n\t\tif ( typeof data === \"string\" ) {\n\t\t\tcache[ jQuery.camelCase( data ) ] = value;\n\n\t\t// Handle: [ owner, { properties } ] args\n\t\t} else {\n\n\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\tfor ( prop in data ) {\n\t\t\t\tcache[ jQuery.camelCase( prop ) ] = data[ prop ];\n\t\t\t}\n\t\t}\n\t\treturn cache;\n\t},\n\tget: function( owner, key ) {\n\t\treturn key === undefined ?\n\t\t\tthis.cache( owner ) :\n\n\t\t\t// Always use camelCase key (gh-2257)\n\t\t\towner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];\n\t},\n\taccess: function( owner, key, value ) {\n\n\t\t// In cases where either:\n\t\t//\n\t\t//   1. No key was specified\n\t\t//   2. A string key was specified, but no value provided\n\t\t//\n\t\t// Take the \"read\" path and allow the get method to determine\n\t\t// which value to return, respectively either:\n\t\t//\n\t\t//   1. The entire cache object\n\t\t//   2. The data stored at the key\n\t\t//\n\t\tif ( key === undefined ||\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\treturn this.get( owner, key );\n\t\t}\n\n\t\t// When the key is not a string, or both a key and value\n\t\t// are specified, set or extend (existing objects) with either:\n\t\t//\n\t\t//   1. An object of properties\n\t\t//   2. A key and value\n\t\t//\n\t\tthis.set( owner, key, value );\n\n\t\t// Since the \"set\" path can have two possible entry points\n\t\t// return the expected data based on which path was taken[*]\n\t\treturn value !== undefined ? value : key;\n\t},\n\tremove: function( owner, key ) {\n\t\tvar i,\n\t\t\tcache = owner[ this.expando ];\n\n\t\tif ( cache === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key !== undefined ) {\n\n\t\t\t// Support array or space separated string of keys\n\t\t\tif ( Array.isArray( key ) ) {\n\n\t\t\t\t// If key is an array of keys...\n\t\t\t\t// We always set camelCase keys, so remove that.\n\t\t\t\tkey = key.map( jQuery.camelCase );\n\t\t\t} else {\n\t\t\t\tkey = jQuery.camelCase( key );\n\n\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\tkey = key in cache ?\n\t\t\t\t\t[ key ] :\n\t\t\t\t\t( key.match( rnothtmlwhite ) || [] );\n\t\t\t}\n\n\t\t\ti = key.length;\n\n\t\t\twhile ( i-- ) {\n\t\t\t\tdelete cache[ key[ i ] ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if there's no more data\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t// Support: Chrome <=35 - 45\n\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t} else {\n\t\t\t\tdelete owner[ this.expando ];\n\t\t\t}\n\t\t}\n\t},\n\thasData: function( owner ) {\n\t\tvar cache = owner[ this.expando ];\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t}\n};\nvar dataPriv = new Data();\n\nvar dataUser = new Data();\n\n\n\n//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module's maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\trmultiDash = /[A-Z]/g;\n\nfunction getData( data ) {\n\tif ( data === \"true\" ) {\n\t\treturn true;\n\t}\n\n\tif ( data === \"false\" ) {\n\t\treturn false;\n\t}\n\n\tif ( data === \"null\" ) {\n\t\treturn null;\n\t}\n\n\t// Only convert to a number if it doesn't change the string\n\tif ( data === +data + \"\" ) {\n\t\treturn +data;\n\t}\n\n\tif ( rbrace.test( data ) ) {\n\t\treturn JSON.parse( data );\n\t}\n\n\treturn data;\n}\n\nfunction dataAttr( elem, key, data ) {\n\tvar name;\n\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = getData( data );\n\t\t\t} catch ( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tdataUser.set( elem, key, data );\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\treturn data;\n}\n\njQuery.extend( {\n\thasData: function( elem ) {\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn dataUser.access( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\tdataUser.remove( elem, name );\n\t},\n\n\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t// with direct calls to dataPriv methods, these can be deprecated.\n\t_data: function( elem, name, data ) {\n\t\treturn dataPriv.access( elem, name, data );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\tdataPriv.remove( elem, name );\n\t}\n} );\n\njQuery.fn.extend( {\n\tdata: function( key, value ) {\n\t\tvar i, name, data,\n\t\t\telem = this[ 0 ],\n\t\t\tattrs = elem && elem.attributes;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\ti = attrs.length;\n\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t// Support: IE 11 only\n\t\t\t\t\t\t// The attrs elements can be null (#14894)\n\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\tname = jQuery.camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.set( this, key );\n\t\t\t} );\n\t\t}\n\n\t\treturn access( this, function( value ) {\n\t\t\tvar data;\n\n\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t// The key will always be camelCased in Data\n\t\t\t\tdata = dataUser.get( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\tdata = dataAttr( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Set the data...\n\t\t\tthis.each( function() {\n\n\t\t\t\t// We always store the camelCased key\n\t\t\t\tdataUser.set( this, key, value );\n\t\t\t} );\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each( function() {\n\t\t\tdataUser.remove( this, key );\n\t\t} );\n\t}\n} );\n\n\njQuery.extend( {\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || Array.isArray( data ) ) {\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// Clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// Not public - generate a queueHooks object, or return the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t} )\n\t\t} );\n\t}\n} );\n\njQuery.fn.extend( {\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each( function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t} );\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile ( i-- ) {\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n} );\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\nvar isHiddenWithinTree = function( elem, el ) {\n\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\n\t\t// in that case, element will be second argument\n\t\telem = el || elem;\n\n\t\t// Inline style trumps all\n\t\treturn elem.style.display === \"none\" ||\n\t\t\telem.style.display === \"\" &&\n\n\t\t\t// Otherwise, check computed style\n\t\t\t// Support: Firefox <=43 - 45\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\n\t\t\t// in the document.\n\t\t\tjQuery.contains( elem.ownerDocument, elem ) &&\n\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\n\t};\n\nvar swap = function( elem, options, callback, args ) {\n\tvar ret, name,\n\t\told = {};\n\n\t// Remember the old values, and insert the new ones\n\tfor ( name in options ) {\n\t\told[ name ] = elem.style[ name ];\n\t\telem.style[ name ] = options[ name ];\n\t}\n\n\tret = callback.apply( elem, args || [] );\n\n\t// Revert the old values\n\tfor ( name in options ) {\n\t\telem.style[ name ] = old[ name ];\n\t}\n\n\treturn ret;\n};\n\n\n\n\nfunction adjustCSS( elem, prop, valueParts, tween ) {\n\tvar adjusted,\n\t\tscale = 1,\n\t\tmaxIterations = 20,\n\t\tcurrentValue = tween ?\n\t\t\tfunction() {\n\t\t\t\treturn tween.cur();\n\t\t\t} :\n\t\t\tfunction() {\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\n\t\t\t},\n\t\tinitial = currentValue(),\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t// Starting value computation is required for potential unit mismatches\n\t\tinitialInUnit = ( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t// Trust units reported by jQuery.css\n\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t// Make sure we update the tween properties later on\n\t\tvalueParts = valueParts || [];\n\n\t\t// Iteratively approximate from a nonzero starting point\n\t\tinitialInUnit = +initial || 1;\n\n\t\tdo {\n\n\t\t\t// If previous iteration zeroed out, double until we get *something*.\n\t\t\t// Use string for doubling so we don't accidentally see scale as unchanged below\n\t\t\tscale = scale || \".5\";\n\n\t\t\t// Adjust and apply\n\t\t\tinitialInUnit = initialInUnit / scale;\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t// Update scale, tolerating zero or NaN from tween.cur()\n\t\t// Break the loop if scale is unchanged or perfect, or if we've just had enough.\n\t\t} while (\n\t\t\tscale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations\n\t\t);\n\t}\n\n\tif ( valueParts ) {\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t// Apply relative offset (+=/-=) if specified\n\t\tadjusted = valueParts[ 1 ] ?\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t+valueParts[ 2 ];\n\t\tif ( tween ) {\n\t\t\ttween.unit = unit;\n\t\t\ttween.start = initialInUnit;\n\t\t\ttween.end = adjusted;\n\t\t}\n\t}\n\treturn adjusted;\n}\n\n\nvar defaultDisplayMap = {};\n\nfunction getDefaultDisplay( elem ) {\n\tvar temp,\n\t\tdoc = elem.ownerDocument,\n\t\tnodeName = elem.nodeName,\n\t\tdisplay = defaultDisplayMap[ nodeName ];\n\n\tif ( display ) {\n\t\treturn display;\n\t}\n\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\n\tdisplay = jQuery.css( temp, \"display\" );\n\n\ttemp.parentNode.removeChild( temp );\n\n\tif ( display === \"none\" ) {\n\t\tdisplay = \"block\";\n\t}\n\tdefaultDisplayMap[ nodeName ] = display;\n\n\treturn display;\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\t// Determine new display value for elements that need to change\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\n\t\t\t// inline or about-to-be-restored)\n\t\t\tif ( display === \"none\" ) {\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\n\t\t\t\tif ( !values[ index ] ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( display !== \"none\" ) {\n\t\t\t\tvalues[ index ] = \"none\";\n\n\t\t\t\t// Remember what we're overwriting\n\t\t\t\tdataPriv.set( elem, \"display\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of the elements in a second loop to avoid constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\tif ( values[ index ] != null ) {\n\t\t\telements[ index ].style.display = values[ index ];\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend( {\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tif ( typeof state === \"boolean\" ) {\n\t\t\treturn state ? this.show() : this.hide();\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tif ( isHiddenWithinTree( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]+)/i );\n\nvar rscriptType = ( /^$|\\/(?:java|ecma)script/i );\n\n\n\n// We have to close these tags to support XHTML (#13200)\nvar wrapMap = {\n\n\t// Support: IE <=9 only\n\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\n\n\t// XHTML parsers do not magically insert elements in the\n\t// same way that tag soup parsers do. So we cannot shorten\n\t// this by omitting <tbody> or other required elements.\n\tthead: [ 1, \"<table>\", \"</table>\" ],\n\tcol: [ 2, \"<table><colgroup>\", \"</colgroup></table>\" ],\n\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\n\t_default: [ 0, \"\", \"\" ]\n};\n\n// Support: IE <=9 only\nwrapMap.optgroup = wrapMap.option;\n\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n\nfunction getAll( context, tag ) {\n\n\t// Support: IE <=9 - 11 only\n\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\n\tvar ret;\n\n\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\tret = context.getElementsByTagName( tag || \"*\" );\n\n\t} else if ( typeof context.querySelectorAll !== \"undefined\" ) {\n\t\tret = context.querySelectorAll( tag || \"*\" );\n\n\t} else {\n\t\tret = [];\n\t}\n\n\tif ( tag === undefined || tag && nodeName( context, tag ) ) {\n\t\treturn jQuery.merge( [ context ], ret );\n\t}\n\n\treturn ret;\n}\n\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t);\n\t}\n}\n\n\nvar rhtml = /<|&#?\\w+;/;\n\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\tvar elem, tmp, tag, wrap, contains, j,\n\t\tfragment = context.createDocumentFragment(),\n\t\tnodes = [],\n\t\ti = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\telem = elems[ i ];\n\n\t\tif ( elem || elem === 0 ) {\n\n\t\t\t// Add nodes directly\n\t\t\tif ( jQuery.type( elem ) === \"object\" ) {\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t// Convert non-html into a text node\n\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t// Convert html into DOM nodes\n\t\t\t} else {\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t// Deserialize a standard representation\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\tj = wrap[ 0 ];\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t// Remember the top-level container\n\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t// Ensure the created nodes are orphaned (#12392)\n\t\t\t\ttmp.textContent = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove wrapper from fragment\n\tfragment.textContent = \"\";\n\n\ti = 0;\n\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t// Skip elements already in the context collection (trac-4087)\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\tif ( ignored ) {\n\t\t\t\tignored.push( elem );\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tcontains = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t// Append to fragment\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t// Preserve script evaluation history\n\t\tif ( contains ) {\n\t\t\tsetGlobalEval( tmp );\n\t\t}\n\n\t\t// Capture executables\n\t\tif ( scripts ) {\n\t\t\tj = 0;\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\tscripts.push( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn fragment;\n}\n\n\n( function() {\n\tvar fragment = document.createDocumentFragment(),\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\tinput = document.createElement( \"input\" );\n\n\t// Support: Android 4.0 - 4.3 only\n\t// Check state lost if the name is set (#11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (#14901)\n\tinput.setAttribute( \"type\", \"radio\" );\n\tinput.setAttribute( \"checked\", \"checked\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\n\t// Support: Android <=4.1 only\n\t// Older WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE <=11 only\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\tdiv.innerHTML = \"<textarea>x</textarea>\";\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n} )();\nvar documentElement = document.documentElement;\n\n\n\nvar\n\trkeyEvent = /^key/,\n\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\n\trtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\n// Support: IE <=9 only\n// See #13393 for more info\nfunction safeActiveElement() {\n\ttry {\n\t\treturn document.activeElement;\n\t} catch ( err ) { }\n}\n\nfunction on( elem, types, selector, data, fn, one ) {\n\tvar origFn, type;\n\n\t// Types can be a map of types/handlers\n\tif ( typeof types === \"object\" ) {\n\n\t\t// ( types-Object, selector, data )\n\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t// ( types-Object, data )\n\t\t\tdata = data || selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tfor ( type in types ) {\n\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t}\n\t\treturn elem;\n\t}\n\n\tif ( data == null && fn == null ) {\n\n\t\t// ( types, fn )\n\t\tfn = selector;\n\t\tdata = selector = undefined;\n\t} else if ( fn == null ) {\n\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t// ( types, selector, fn )\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t} else {\n\n\t\t\t// ( types, data, fn )\n\t\t\tfn = data;\n\t\t\tdata = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t}\n\tif ( fn === false ) {\n\t\tfn = returnFalse;\n\t} else if ( !fn ) {\n\t\treturn elem;\n\t}\n\n\tif ( one === 1 ) {\n\t\torigFn = fn;\n\t\tfn = function( event ) {\n\n\t\t\t// Can use an empty set, since event contains the info\n\t\t\tjQuery().off( event );\n\t\t\treturn origFn.apply( this, arguments );\n\t\t};\n\n\t\t// Use same guid so caller can remove using origFn\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t}\n\treturn elem.each( function() {\n\t\tjQuery.event.add( this, types, fn, data, selector );\n\t} );\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.get( elem );\n\n\t\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\n\t\tif ( !elemData ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Ensure that invalid selectors throw exceptions at attach time\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\n\t\tif ( selector ) {\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !( events = elemData.events ) ) {\n\t\t\tevents = elemData.events = {};\n\t\t}\n\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t};\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\tif ( !type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend( {\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\tif ( !special.setup ||\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar j, origCount, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove data and the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t}\n\t},\n\n\tdispatch: function( nativeEvent ) {\n\n\t\t// Make a writable jQuery.Event from the native event object\n\t\tvar event = jQuery.event.fix( nativeEvent );\n\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\n\t\t\targs = new Array( arguments.length ),\n\t\t\thandlers = ( dataPriv.get( this, \"events\" ) || {} )[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[ 0 ] = event;\n\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// Triggered event must either 1) have no namespace, or 2) have namespace(s)\n\t\t\t\t// a subset or equal to those in the bound event (both can have no namespace).\n\t\t\t\tif ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\tif ( delegateCount &&\n\n\t\t\t// Support: IE <=9\n\t\t\t// Black-hole SVG <use> instance trees (trac-13180)\n\t\t\tcur.nodeType &&\n\n\t\t\t// Support: Firefox <=42\n\t\t\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n\t\t\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n\t\t\t// Support: IE 11 only\n\t\t\t// ...but not arrow key \"clicks\" of radio inputs, which can have `button` -1 (gh-2343)\n\t\t\t!( event.type === \"click\" && event.button >= 1 ) ) {\n\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (#13208)\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\tif ( cur.nodeType === 1 && !( event.type === \"click\" && cur.disabled === true ) ) {\n\t\t\t\t\tmatchedHandlers = [];\n\t\t\t\t\tmatchedSelectors = {};\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatchedSelectors[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] ) {\n\t\t\t\t\t\t\tmatchedHandlers.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matchedHandlers.length ) {\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tcur = this;\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\taddProp: function( name, hook ) {\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\n\t\t\tget: jQuery.isFunction( hook ) ?\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn hook( this.originalEvent );\n\t\t\t\t\t}\n\t\t\t\t} :\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn this.originalEvent[ name ];\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\tset: function( value ) {\n\t\t\t\tObject.defineProperty( this, name, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: value\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t},\n\n\tfix: function( originalEvent ) {\n\t\treturn originalEvent[ jQuery.expando ] ?\n\t\t\toriginalEvent :\n\t\t\tnew jQuery.Event( originalEvent );\n\t},\n\n\tspecial: {\n\t\tload: {\n\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tfocus: {\n\n\t\t\t// Fire native event if possible so blur/focus sequence is correct\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this !== safeActiveElement() && this.focus ) {\n\t\t\t\t\tthis.focus();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdelegateType: \"focusin\"\n\t\t},\n\t\tblur: {\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this === safeActiveElement() && this.blur ) {\n\t\t\t\t\tthis.blur();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdelegateType: \"focusout\"\n\t\t},\n\t\tclick: {\n\n\t\t\t// For checkbox, fire native event so checked state will be right\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this.type === \"checkbox\" && this.click && nodeName( this, \"input\" ) ) {\n\t\t\t\t\tthis.click();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t// For cross-browser consistency, don't fire native .click() on links\n\t\t\t_default: function( event ) {\n\t\t\t\treturn nodeName( event.target, \"a\" );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Support: Firefox 20+\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\njQuery.removeEvent = function( elem, type, handle ) {\n\n\t// This \"if\" is needed for plain objects\n\tif ( elem.removeEventListener ) {\n\t\telem.removeEventListener( type, handle );\n\t}\n};\n\njQuery.Event = function( src, props ) {\n\n\t// Allow instantiation without the 'new' keyword\n\tif ( !( this instanceof jQuery.Event ) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t// Support: Android <=2.3 only\n\t\t\t\tsrc.returnValue === false ?\n\t\t\treturnTrue :\n\t\t\treturnFalse;\n\n\t\t// Create target properties\n\t\t// Support: Safari <=6 - 7 only\n\t\t// Target should not be a text node (#504, #13143)\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\n\t\t\tsrc.target.parentNode :\n\t\t\tsrc.target;\n\n\t\tthis.currentTarget = src.currentTarget;\n\t\tthis.relatedTarget = src.relatedTarget;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || jQuery.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tconstructor: jQuery.Event,\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\tisSimulated: false,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.preventDefault();\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t},\n\tstopImmediatePropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each( {\n\taltKey: true,\n\tbubbles: true,\n\tcancelable: true,\n\tchangedTouches: true,\n\tctrlKey: true,\n\tdetail: true,\n\teventPhase: true,\n\tmetaKey: true,\n\tpageX: true,\n\tpageY: true,\n\tshiftKey: true,\n\tview: true,\n\t\"char\": true,\n\tcharCode: true,\n\tkey: true,\n\tkeyCode: true,\n\tbutton: true,\n\tbuttons: true,\n\tclientX: true,\n\tclientY: true,\n\toffsetX: true,\n\toffsetY: true,\n\tpointerId: true,\n\tpointerType: true,\n\tscreenX: true,\n\tscreenY: true,\n\ttargetTouches: true,\n\ttoElement: true,\n\ttouches: true,\n\n\twhich: function( event ) {\n\t\tvar button = event.button;\n\n\t\t// Add which for key events\n\t\tif ( event.which == null && rkeyEvent.test( event.type ) ) {\n\t\t\treturn event.charCode != null ? event.charCode : event.keyCode;\n\t\t}\n\n\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\tif ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {\n\t\t\tif ( button & 1 ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif ( button & 2 ) {\n\t\t\t\treturn 3;\n\t\t\t}\n\n\t\t\tif ( button & 4 ) {\n\t\t\t\treturn 2;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn event.which;\n\t}\n}, jQuery.event.addProp );\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each( {\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\",\n\tpointerenter: \"pointerover\",\n\tpointerleave: \"pointerout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n} );\n\njQuery.fn.extend( {\n\n\ton: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn );\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t// ( event )  dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ?\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\thandleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t} );\n\t}\n} );\n\n\nvar\n\n\t/* eslint-disable max-len */\n\n\t// See https://github.com/eslint/eslint/issues/3229\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,\n\n\t/* eslint-enable */\n\n\t// Support: IE <=10 - 11, Edge 12 - 13\n\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\trnoInnerhtml = /<script|<style|<link/i,\n\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\trscriptTypeMasked = /^true\\/(.*)/,\n\trcleanScript = /^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;\n\n// Prefer a tbody over its parent table for containing new rows\nfunction manipulationTarget( elem, content ) {\n\tif ( nodeName( elem, \"table\" ) &&\n\t\tnodeName( content.nodeType !== 11 ? content : content.firstChild, \"tr\" ) ) {\n\n\t\treturn jQuery( \">tbody\", elem )[ 0 ] || elem;\n\t}\n\n\treturn elem;\n}\n\n// Replace/restore the type attribute of script elements for safe DOM manipulation\nfunction disableScript( elem ) {\n\telem.type = ( elem.getAttribute( \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}\nfunction restoreScript( elem ) {\n\tvar match = rscriptTypeMasked.exec( elem.type );\n\n\tif ( match ) {\n\t\telem.type = match[ 1 ];\n\t} else {\n\t\telem.removeAttribute( \"type\" );\n\t}\n\n\treturn elem;\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\tvar i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;\n\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\t// 1. Copy private data: events, handlers, etc.\n\tif ( dataPriv.hasData( src ) ) {\n\t\tpdataOld = dataPriv.access( src );\n\t\tpdataCur = dataPriv.set( dest, pdataOld );\n\t\tevents = pdataOld.events;\n\n\t\tif ( events ) {\n\t\t\tdelete pdataCur.handle;\n\t\t\tpdataCur.events = {};\n\n\t\t\tfor ( type in events ) {\n\t\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 2. Copy user data\n\tif ( dataUser.hasData( src ) ) {\n\t\tudataOld = dataUser.access( src );\n\t\tudataCur = jQuery.extend( {}, udataOld );\n\n\t\tdataUser.set( dest, udataCur );\n\t}\n}\n\n// Fix IE bugs, see support tests\nfunction fixInput( src, dest ) {\n\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t// Fails to persist the checked state of a cloned checkbox or radio button.\n\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n\t\tdest.checked = src.checked;\n\n\t// Fails to return the selected option to the default selected state when cloning options\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\t}\n}\n\nfunction domManip( collection, args, callback, ignored ) {\n\n\t// Flatten any nested arrays\n\targs = concat.apply( [], args );\n\n\tvar fragment, first, scripts, hasScripts, node, doc,\n\t\ti = 0,\n\t\tl = collection.length,\n\t\tiNoClone = l - 1,\n\t\tvalue = args[ 0 ],\n\t\tisFunction = jQuery.isFunction( value );\n\n\t// We can't cloneNode fragments that contain checked, in WebKit\n\tif ( isFunction ||\n\t\t\t( l > 1 && typeof value === \"string\" &&\n\t\t\t\t!support.checkClone && rchecked.test( value ) ) ) {\n\t\treturn collection.each( function( index ) {\n\t\t\tvar self = collection.eq( index );\n\t\t\tif ( isFunction ) {\n\t\t\t\targs[ 0 ] = value.call( this, index, self.html() );\n\t\t\t}\n\t\t\tdomManip( self, args, callback, ignored );\n\t\t} );\n\t}\n\n\tif ( l ) {\n\t\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\n\t\tfirst = fragment.firstChild;\n\n\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\tfragment = first;\n\t\t}\n\n\t\t// Require either new content or an interest in ignored elements to invoke the callback\n\t\tif ( first || ignored ) {\n\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\n\t\t\thasScripts = scripts.length;\n\n\t\t\t// Use the original fragment for the last item\n\t\t\t// instead of the first because it can end up\n\t\t\t// being emptied incorrectly in certain situations (#8070).\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tnode = fragment;\n\n\t\t\t\tif ( i !== iNoClone ) {\n\t\t\t\t\tnode = jQuery.clone( node, true, true );\n\n\t\t\t\t\t// Keep references to cloned scripts for later restoration\n\t\t\t\t\tif ( hasScripts ) {\n\n\t\t\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcallback.call( collection[ i ], node, i );\n\t\t\t}\n\n\t\t\tif ( hasScripts ) {\n\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\n\n\t\t\t\t// Reenable scripts\n\t\t\t\tjQuery.map( scripts, restoreScript );\n\n\t\t\t\t// Evaluate executable scripts on first document insertion\n\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\n\t\t\t\t\tnode = scripts[ i ];\n\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\n\t\t\t\t\t\t!dataPriv.access( node, \"globalEval\" ) &&\n\t\t\t\t\t\tjQuery.contains( doc, node ) ) {\n\n\t\t\t\t\t\tif ( node.src ) {\n\n\t\t\t\t\t\t\t// Optional AJAX dependency, but won't run scripts if not present\n\t\t\t\t\t\t\tif ( jQuery._evalUrl ) {\n\t\t\t\t\t\t\t\tjQuery._evalUrl( node.src );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tDOMEval( node.textContent.replace( rcleanScript, \"\" ), doc );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn collection;\n}\n\nfunction remove( elem, selector, keepData ) {\n\tvar node,\n\t\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\n\t\ti = 0;\n\n\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\n\t\tif ( !keepData && node.nodeType === 1 ) {\n\t\t\tjQuery.cleanData( getAll( node ) );\n\t\t}\n\n\t\tif ( node.parentNode ) {\n\t\t\tif ( keepData && jQuery.contains( node.ownerDocument, node ) ) {\n\t\t\t\tsetGlobalEval( getAll( node, \"script\" ) );\n\t\t\t}\n\t\t\tnode.parentNode.removeChild( node );\n\t\t}\n\t}\n\n\treturn elem;\n}\n\njQuery.extend( {\n\thtmlPrefilter: function( html ) {\n\t\treturn html.replace( rxhtmlTag, \"<$1></$2>\" );\n\t},\n\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar i, l, srcElements, destElements,\n\t\t\tclone = elem.cloneNode( true ),\n\t\t\tinPage = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t// Fix IE cloning issues\n\t\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\n\t\t\t\t!jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2\n\t\t\tdestElements = getAll( clone );\n\t\t\tsrcElements = getAll( elem );\n\n\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\tfixInput( srcElements[ i ], destElements[ i ] );\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = srcElements || getAll( elem );\n\t\t\t\tdestElements = destElements || getAll( clone );\n\n\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\t\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcloneCopyEvent( elem, clone );\n\t\t\t}\n\t\t}\n\n\t\t// Preserve script evaluation history\n\t\tdestElements = getAll( clone, \"script\" );\n\t\tif ( destElements.length > 0 ) {\n\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\n\t\t}\n\n\t\t// Return the cloned set\n\t\treturn clone;\n\t},\n\n\tcleanData: function( elems ) {\n\t\tvar data, elem, type,\n\t\t\tspecial = jQuery.event.special,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\n\t\t\tif ( acceptData( elem ) ) {\n\t\t\t\tif ( ( data = elem[ dataPriv.expando ] ) ) {\n\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataPriv.expando ] = undefined;\n\t\t\t\t}\n\t\t\t\tif ( elem[ dataUser.expando ] ) {\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataUser.expando ] = undefined;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n} );\n\njQuery.fn.extend( {\n\tdetach: function( selector ) {\n\t\treturn remove( this, selector, true );\n\t},\n\n\tremove: function( selector ) {\n\t\treturn remove( this, selector );\n\t},\n\n\ttext: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\treturn value === undefined ?\n\t\t\t\tjQuery.text( this ) :\n\t\t\t\tthis.empty().each( function() {\n\t\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\t\tthis.textContent = value;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t}, null, value, arguments.length );\n\t},\n\n\tappend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.appendChild( elem );\n\t\t\t}\n\t\t} );\n\t},\n\n\tprepend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.insertBefore( elem, target.firstChild );\n\t\t\t}\n\t\t} );\n\t},\n\n\tbefore: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t}\n\t\t} );\n\t},\n\n\tafter: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t}\n\t\t} );\n\t},\n\n\tempty: function() {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\n\t\t\tif ( elem.nodeType === 1 ) {\n\n\t\t\t\t// Prevent memory leaks\n\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\n\t\t\t\t// Remove any remaining nodes\n\t\t\t\telem.textContent = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function() {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t} );\n\t},\n\n\thtml: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\tvar elem = this[ 0 ] || {},\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length;\n\n\t\t\tif ( value === undefined && elem.nodeType === 1 ) {\n\t\t\t\treturn elem.innerHTML;\n\t\t\t}\n\n\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [ \"\", \"\" ] )[ 1 ].toLowerCase() ] ) {\n\n\t\t\t\tvalue = jQuery.htmlPrefilter( value );\n\n\t\t\t\ttry {\n\t\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\t\telem = this[ i ] || {};\n\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telem = 0;\n\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t} catch ( e ) {}\n\t\t\t}\n\n\t\t\tif ( elem ) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\t\t}, null, value, arguments.length );\n\t},\n\n\treplaceWith: function() {\n\t\tvar ignored = [];\n\n\t\t// Make the changes, replacing each non-ignored context element with the new content\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tvar parent = this.parentNode;\n\n\t\t\tif ( jQuery.inArray( this, ignored ) < 0 ) {\n\t\t\t\tjQuery.cleanData( getAll( this ) );\n\t\t\t\tif ( parent ) {\n\t\t\t\t\tparent.replaceChild( elem, this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Force callback invocation\n\t\t}, ignored );\n\t}\n} );\n\njQuery.each( {\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar elems,\n\t\t\tret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tlast = insert.length - 1,\n\t\t\ti = 0;\n\n\t\tfor ( ; i <= last; i++ ) {\n\t\t\telems = i === last ? this : this.clone( true );\n\t\t\tjQuery( insert[ i ] )[ original ]( elems );\n\n\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t// .get() because push.apply(_, arraylike) throws on ancient WebKit\n\t\t\tpush.apply( ret, elems.get() );\n\t\t}\n\n\t\treturn this.pushStack( ret );\n\t};\n} );\nvar rmargin = ( /^margin/ );\n\nvar rnumnonpx = new RegExp( \"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\" );\n\nvar getStyles = function( elem ) {\n\n\t\t// Support: IE <=11 only, Firefox <=30 (#15098, #14150)\n\t\t// IE throws on elements created in popups\n\t\t// FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n\t\tvar view = elem.ownerDocument.defaultView;\n\n\t\tif ( !view || !view.opener ) {\n\t\t\tview = window;\n\t\t}\n\n\t\treturn view.getComputedStyle( elem );\n\t};\n\n\n\n( function() {\n\n\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\n\t// so they're executed at the same time to save the second computation.\n\tfunction computeStyleTests() {\n\n\t\t// This is a singleton, we need to execute it only once\n\t\tif ( !div ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdiv.style.cssText =\n\t\t\t\"box-sizing:border-box;\" +\n\t\t\t\"position:relative;display:block;\" +\n\t\t\t\"margin:auto;border:1px;padding:1px;\" +\n\t\t\t\"top:1%;width:50%\";\n\t\tdiv.innerHTML = \"\";\n\t\tdocumentElement.appendChild( container );\n\n\t\tvar divStyle = window.getComputedStyle( div );\n\t\tpixelPositionVal = divStyle.top !== \"1%\";\n\n\t\t// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\n\t\treliableMarginLeftVal = divStyle.marginLeft === \"2px\";\n\t\tboxSizingReliableVal = divStyle.width === \"4px\";\n\n\t\t// Support: Android 4.0 - 4.3 only\n\t\t// Some styles come back with percentage values, even though they shouldn't\n\t\tdiv.style.marginRight = \"50%\";\n\t\tpixelMarginRightVal = divStyle.marginRight === \"4px\";\n\n\t\tdocumentElement.removeChild( container );\n\n\t\t// Nullify the div so it wouldn't be stored in the memory and\n\t\t// it will also be a sign that checks already performed\n\t\tdiv = null;\n\t}\n\n\tvar pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,\n\t\tcontainer = document.createElement( \"div\" ),\n\t\tdiv = document.createElement( \"div\" );\n\n\t// Finish early in limited (non-browser) environments\n\tif ( !div.style ) {\n\t\treturn;\n\t}\n\n\t// Support: IE <=9 - 11 only\n\t// Style of cloned element affects source element cloned (#8908)\n\tdiv.style.backgroundClip = \"content-box\";\n\tdiv.cloneNode( true ).style.backgroundClip = \"\";\n\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\n\n\tcontainer.style.cssText = \"border:0;width:8px;height:0;top:0;left:-9999px;\" +\n\t\t\"padding:0;margin-top:1px;position:absolute\";\n\tcontainer.appendChild( div );\n\n\tjQuery.extend( support, {\n\t\tpixelPosition: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelPositionVal;\n\t\t},\n\t\tboxSizingReliable: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn boxSizingReliableVal;\n\t\t},\n\t\tpixelMarginRight: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelMarginRightVal;\n\t\t},\n\t\treliableMarginLeft: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn reliableMarginLeftVal;\n\t\t}\n\t} );\n} )();\n\n\nfunction curCSS( elem, name, computed ) {\n\tvar width, minWidth, maxWidth, ret,\n\n\t\t// Support: Firefox 51+\n\t\t// Retrieving style before computed somehow\n\t\t// fixes an issue with getting wrong values\n\t\t// on detached elements\n\t\tstyle = elem.style;\n\n\tcomputed = computed || getStyles( elem );\n\n\t// getPropertyValue is needed for:\n\t//   .css('filter') (IE 9 only, #12537)\n\t//   .css('--customProperty) (#3144)\n\tif ( computed ) {\n\t\tret = computed.getPropertyValue( name ) || computed[ name ];\n\n\t\tif ( ret === \"\" && !jQuery.contains( elem.ownerDocument, elem ) ) {\n\t\t\tret = jQuery.style( elem, name );\n\t\t}\n\n\t\t// A tribute to the \"awesome hack by Dean Edwards\"\n\t\t// Android Browser returns percentage for some values,\n\t\t// but width seems to be reliably pixels.\n\t\t// This is against the CSSOM draft spec:\n\t\t// https://drafts.csswg.org/cssom/#resolved-values\n\t\tif ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {\n\n\t\t\t// Remember the original values\n\t\t\twidth = style.width;\n\t\t\tminWidth = style.minWidth;\n\t\t\tmaxWidth = style.maxWidth;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\tret = computed.width;\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.width = width;\n\t\t\tstyle.minWidth = minWidth;\n\t\t\tstyle.maxWidth = maxWidth;\n\t\t}\n\t}\n\n\treturn ret !== undefined ?\n\n\t\t// Support: IE <=9 - 11 only\n\t\t// IE returns zIndex value as an integer.\n\t\tret + \"\" :\n\t\tret;\n}\n\n\nfunction addGetHookIf( conditionFn, hookFn ) {\n\n\t// Define the hook, we'll check on the first run if it's really needed.\n\treturn {\n\t\tget: function() {\n\t\t\tif ( conditionFn() ) {\n\n\t\t\t\t// Hook not needed (or it's not possible to use it due\n\t\t\t\t// to missing dependency), remove it.\n\t\t\t\tdelete this.get;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Hook needed; redefine it so that the support test is not executed again.\n\t\t\treturn ( this.get = hookFn ).apply( this, arguments );\n\t\t}\n\t};\n}\n\n\nvar\n\n\t// Swappable if display is none or starts with table\n\t// except \"table\", \"table-cell\", or \"table-caption\"\n\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\trcustomProp = /^--/,\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssNormalTransform = {\n\t\tletterSpacing: \"0\",\n\t\tfontWeight: \"400\"\n\t},\n\n\tcssPrefixes = [ \"Webkit\", \"Moz\", \"ms\" ],\n\temptyStyle = document.createElement( \"div\" ).style;\n\n// Return a css property mapped to a potentially vendor prefixed property\nfunction vendorPropName( name ) {\n\n\t// Shortcut for names that are not vendor prefixed\n\tif ( name in emptyStyle ) {\n\t\treturn name;\n\t}\n\n\t// Check for vendor prefixed names\n\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\n\t\ti = cssPrefixes.length;\n\n\twhile ( i-- ) {\n\t\tname = cssPrefixes[ i ] + capName;\n\t\tif ( name in emptyStyle ) {\n\t\t\treturn name;\n\t\t}\n\t}\n}\n\n// Return a property mapped along what jQuery.cssProps suggests or to\n// a vendor prefixed property.\nfunction finalPropName( name ) {\n\tvar ret = jQuery.cssProps[ name ];\n\tif ( !ret ) {\n\t\tret = jQuery.cssProps[ name ] = vendorPropName( name ) || name;\n\t}\n\treturn ret;\n}\n\nfunction setPositiveNumber( elem, value, subtract ) {\n\n\t// Any relative (+/-) values have already been\n\t// normalized at this point\n\tvar matches = rcssNum.exec( value );\n\treturn matches ?\n\n\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\n\t\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \"px\" ) :\n\t\tvalue;\n}\n\nfunction augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {\n\tvar i,\n\t\tval = 0;\n\n\t// If we already have the right measurement, avoid augmentation\n\tif ( extra === ( isBorderBox ? \"border\" : \"content\" ) ) {\n\t\ti = 4;\n\n\t// Otherwise initialize for horizontal or vertical properties\n\t} else {\n\t\ti = name === \"width\" ? 1 : 0;\n\t}\n\n\tfor ( ; i < 4; i += 2 ) {\n\n\t\t// Both box models exclude margin, so add it if we want it\n\t\tif ( extra === \"margin\" ) {\n\t\t\tval += jQuery.css( elem, extra + cssExpand[ i ], true, styles );\n\t\t}\n\n\t\tif ( isBorderBox ) {\n\n\t\t\t// border-box includes padding, so remove it if we want content\n\t\t\tif ( extra === \"content\" ) {\n\t\t\t\tval -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\t\t\t}\n\n\t\t\t// At this point, extra isn't border nor margin, so remove border\n\t\t\tif ( extra !== \"margin\" ) {\n\t\t\t\tval -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t} else {\n\n\t\t\t// At this point, extra isn't content, so add padding\n\t\t\tval += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\n\t\t\t// At this point, extra isn't content nor padding, so add border\n\t\t\tif ( extra !== \"padding\" ) {\n\t\t\t\tval += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn val;\n}\n\nfunction getWidthOrHeight( elem, name, extra ) {\n\n\t// Start with computed style\n\tvar valueIsBorderBox,\n\t\tstyles = getStyles( elem ),\n\t\tval = curCSS( elem, name, styles ),\n\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\";\n\n\t// Computed unit is not pixels. Stop here and return.\n\tif ( rnumnonpx.test( val ) ) {\n\t\treturn val;\n\t}\n\n\t// Check for style in case a browser which returns unreliable values\n\t// for getComputedStyle silently falls back to the reliable elem.style\n\tvalueIsBorderBox = isBorderBox &&\n\t\t( support.boxSizingReliable() || val === elem.style[ name ] );\n\n\t// Fall back to offsetWidth/Height when value is \"auto\"\n\t// This happens for inline elements with no explicit setting (gh-3571)\n\tif ( val === \"auto\" ) {\n\t\tval = elem[ \"offset\" + name[ 0 ].toUpperCase() + name.slice( 1 ) ];\n\t}\n\n\t// Normalize \"\", auto, and prepare for extra\n\tval = parseFloat( val ) || 0;\n\n\t// Use the active box-sizing model to add/subtract irrelevant styles\n\treturn ( val +\n\t\taugmentWidthOrHeight(\n\t\t\telem,\n\t\t\tname,\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\tvalueIsBorderBox,\n\t\t\tstyles\n\t\t)\n\t) + \"px\";\n}\n\njQuery.extend( {\n\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Don't automatically add \"px\" to these possibly-unitless properties\n\tcssNumber: {\n\t\t\"animationIterationCount\": true,\n\t\t\"columnCount\": true,\n\t\t\"fillOpacity\": true,\n\t\t\"flexGrow\": true,\n\t\t\"flexShrink\": true,\n\t\t\"fontWeight\": true,\n\t\t\"lineHeight\": true,\n\t\t\"opacity\": true,\n\t\t\"order\": true,\n\t\t\"orphans\": true,\n\t\t\"widows\": true,\n\t\t\"zIndex\": true,\n\t\t\"zoom\": true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {\n\t\t\"float\": \"cssFloat\"\n\t},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, type, hooks,\n\t\t\torigName = jQuery.camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name ),\n\t\t\tstyle = elem.style;\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to query the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Gets hook for the prefixed version, then unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\ttype = typeof value;\n\n\t\t\t// Convert \"+=\" or \"-=\" to relative numbers (#7345)\n\t\t\tif ( type === \"string\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\n\t\t\t\tvalue = adjustCSS( elem, name, ret );\n\n\t\t\t\t// Fixes bug #9237\n\t\t\t\ttype = \"number\";\n\t\t\t}\n\n\t\t\t// Make sure that null and NaN values aren't set (#7116)\n\t\t\tif ( value == null || value !== value ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add the unit (except for certain CSS properties)\n\t\t\tif ( type === \"number\" ) {\n\t\t\t\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \"\" : \"px\" );\n\t\t\t}\n\n\t\t\t// background-* props affect original clone's values\n\t\t\tif ( !support.clearCloneStyle && value === \"\" && name.indexOf( \"background\" ) === 0 ) {\n\t\t\t\tstyle[ name ] = \"inherit\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !( \"set\" in hooks ) ||\n\t\t\t\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\n\n\t\t\t\tif ( isCustomProp ) {\n\t\t\t\t\tstyle.setProperty( name, value );\n\t\t\t\t} else {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks &&\n\t\t\t\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\n\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, extra, styles ) {\n\t\tvar val, num, hooks,\n\t\t\torigName = jQuery.camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name );\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to modify the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Try prefixed name followed by the unprefixed name\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\tval = hooks.get( elem, true, extra );\n\t\t}\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\tif ( val === undefined ) {\n\t\t\tval = curCSS( elem, name, styles );\n\t\t}\n\n\t\t// Convert \"normal\" to computed value\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\tval = cssNormalTransform[ name ];\n\t\t}\n\n\t\t// Make numeric if forced or a qualifier was provided and val looks numeric\n\t\tif ( extra === \"\" || extra ) {\n\t\t\tnum = parseFloat( val );\n\t\t\treturn extra === true || isFinite( num ) ? num || 0 : val;\n\t\t}\n\n\t\treturn val;\n\t}\n} );\n\njQuery.each( [ \"height\", \"width\" ], function( i, name ) {\n\tjQuery.cssHooks[ name ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tif ( computed ) {\n\n\t\t\t\t// Certain elements can have dimension info if we invisibly show them\n\t\t\t\t// but it must have a current display style that would benefit\n\t\t\t\treturn rdisplayswap.test( jQuery.css( elem, \"display\" ) ) &&\n\n\t\t\t\t\t// Support: Safari 8+\n\t\t\t\t\t// Table columns in Safari have non-zero offsetWidth & zero\n\t\t\t\t\t// getBoundingClientRect().width unless display is changed.\n\t\t\t\t\t// Support: IE <=11 only\n\t\t\t\t\t// Running getBoundingClientRect on a disconnected node\n\t\t\t\t\t// in IE throws an error.\n\t\t\t\t\t( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?\n\t\t\t\t\t\tswap( elem, cssShow, function() {\n\t\t\t\t\t\t\treturn getWidthOrHeight( elem, name, extra );\n\t\t\t\t\t\t} ) :\n\t\t\t\t\t\tgetWidthOrHeight( elem, name, extra );\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value, extra ) {\n\t\t\tvar matches,\n\t\t\t\tstyles = extra && getStyles( elem ),\n\t\t\t\tsubtract = extra && augmentWidthOrHeight(\n\t\t\t\t\telem,\n\t\t\t\t\tname,\n\t\t\t\t\textra,\n\t\t\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\t\t\t\tstyles\n\t\t\t\t);\n\n\t\t\t// Convert to pixels if value adjustment is needed\n\t\t\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\n\t\t\t\t( matches[ 3 ] || \"px\" ) !== \"px\" ) {\n\n\t\t\t\telem.style[ name ] = value;\n\t\t\t\tvalue = jQuery.css( elem, name );\n\t\t\t}\n\n\t\t\treturn setPositiveNumber( elem, value, subtract );\n\t\t}\n\t};\n} );\n\njQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\n\tfunction( elem, computed ) {\n\t\tif ( computed ) {\n\t\t\treturn ( parseFloat( curCSS( elem, \"marginLeft\" ) ) ||\n\t\t\t\telem.getBoundingClientRect().left -\n\t\t\t\t\tswap( elem, { marginLeft: 0 }, function() {\n\t\t\t\t\t\treturn elem.getBoundingClientRect().left;\n\t\t\t\t\t} )\n\t\t\t\t) + \"px\";\n\t\t}\n\t}\n);\n\n// These hooks are used by animate to expand properties\njQuery.each( {\n\tmargin: \"\",\n\tpadding: \"\",\n\tborder: \"Width\"\n}, function( prefix, suffix ) {\n\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\texpand: function( value ) {\n\t\t\tvar i = 0,\n\t\t\t\texpanded = {},\n\n\t\t\t\t// Assumes a single number if not a string\n\t\t\t\tparts = typeof value === \"string\" ? value.split( \" \" ) : [ value ];\n\n\t\t\tfor ( ; i < 4; i++ ) {\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t}\n\n\t\t\treturn expanded;\n\t\t}\n\t};\n\n\tif ( !rmargin.test( prefix ) ) {\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t}\n} );\n\njQuery.fn.extend( {\n\tcss: function( name, value ) {\n\t\treturn access( this, function( elem, name, value ) {\n\t\t\tvar styles, len,\n\t\t\t\tmap = {},\n\t\t\t\ti = 0;\n\n\t\t\tif ( Array.isArray( name ) ) {\n\t\t\t\tstyles = getStyles( elem );\n\t\t\t\tlen = name.length;\n\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\n\t\t\t\t}\n\n\t\t\t\treturn map;\n\t\t\t}\n\n\t\t\treturn value !== undefined ?\n\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\tjQuery.css( elem, name );\n\t\t}, name, value, arguments.length > 1 );\n\t}\n} );\n\n\nfunction Tween( elem, options, prop, end, easing ) {\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n}\njQuery.Tween = Tween;\n\nTween.prototype = {\n\tconstructor: Tween,\n\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\t\tthis.easing = easing || jQuery.easing._default;\n\t\tthis.options = options;\n\t\tthis.start = this.now = this.cur();\n\t\tthis.end = end;\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t},\n\tcur: function() {\n\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\treturn hooks && hooks.get ?\n\t\t\thooks.get( this ) :\n\t\t\tTween.propHooks._default.get( this );\n\t},\n\trun: function( percent ) {\n\t\tvar eased,\n\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\tif ( this.options.duration ) {\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t);\n\t\t} else {\n\t\t\tthis.pos = eased = percent;\n\t\t}\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\tif ( hooks && hooks.set ) {\n\t\t\thooks.set( this );\n\t\t} else {\n\t\t\tTween.propHooks._default.set( this );\n\t\t}\n\t\treturn this;\n\t}\n};\n\nTween.prototype.init.prototype = Tween.prototype;\n\nTween.propHooks = {\n\t_default: {\n\t\tget: function( tween ) {\n\t\t\tvar result;\n\n\t\t\t// Use a property on the element directly when it is not a DOM element,\n\t\t\t// or when there is no matching style property that exists.\n\t\t\tif ( tween.elem.nodeType !== 1 ||\n\t\t\t\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\n\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t}\n\n\t\t\t// Passing an empty string as a 3rd parameter to .css will automatically\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails.\n\t\t\t// Simple values such as \"10px\" are parsed to Float;\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as-is.\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\n\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t},\n\t\tset: function( tween ) {\n\n\t\t\t// Use step hook for back compat.\n\t\t\t// Use cssHook if its there.\n\t\t\t// Use .style if available and use plain properties where available.\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t} else if ( tween.elem.nodeType === 1 &&\n\t\t\t\t( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||\n\t\t\t\t\tjQuery.cssHooks[ tween.prop ] ) ) {\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t} else {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Support: IE <=9 only\n// Panic based approach to setting things on disconnected nodes\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\tset: function( tween ) {\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t}\n\t}\n};\n\njQuery.easing = {\n\tlinear: function( p ) {\n\t\treturn p;\n\t},\n\tswing: function( p ) {\n\t\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\n\t},\n\t_default: \"swing\"\n};\n\njQuery.fx = Tween.prototype.init;\n\n// Back compat <1.8 extension point\njQuery.fx.step = {};\n\n\n\n\nvar\n\tfxNow, inProgress,\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trrun = /queueHooks$/;\n\nfunction schedule() {\n\tif ( inProgress ) {\n\t\tif ( document.hidden === false && window.requestAnimationFrame ) {\n\t\t\twindow.requestAnimationFrame( schedule );\n\t\t} else {\n\t\t\twindow.setTimeout( schedule, jQuery.fx.interval );\n\t\t}\n\n\t\tjQuery.fx.tick();\n\t}\n}\n\n// Animations created synchronously will run synchronously\nfunction createFxNow() {\n\twindow.setTimeout( function() {\n\t\tfxNow = undefined;\n\t} );\n\treturn ( fxNow = jQuery.now() );\n}\n\n// Generate parameters to create a standard animation\nfunction genFx( type, includeWidth ) {\n\tvar which,\n\t\ti = 0,\n\t\tattrs = { height: type };\n\n\t// If we include width, step value is 1 to do all cssExpand values,\n\t// otherwise step value is 2 to skip over Left and Right\n\tincludeWidth = includeWidth ? 1 : 0;\n\tfor ( ; i < 4; i += 2 - includeWidth ) {\n\t\twhich = cssExpand[ i ];\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t}\n\n\tif ( includeWidth ) {\n\t\tattrs.opacity = attrs.width = type;\n\t}\n\n\treturn attrs;\n}\n\nfunction createTween( value, prop, animation ) {\n\tvar tween,\n\t\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \"*\" ] ),\n\t\tindex = 0,\n\t\tlength = collection.length;\n\tfor ( ; index < length; index++ ) {\n\t\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\n\n\t\t\t// We're done with this property\n\t\t\treturn tween;\n\t\t}\n\t}\n}\n\nfunction defaultPrefilter( elem, props, opts ) {\n\tvar prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,\n\t\tisBox = \"width\" in props || \"height\" in props,\n\t\tanim = this,\n\t\torig = {},\n\t\tstyle = elem.style,\n\t\thidden = elem.nodeType && isHiddenWithinTree( elem ),\n\t\tdataShow = dataPriv.get( elem, \"fxshow\" );\n\n\t// Queue-skipping animations hijack the fx hooks\n\tif ( !opts.queue ) {\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\tif ( hooks.unqueued == null ) {\n\t\t\thooks.unqueued = 0;\n\t\t\toldfire = hooks.empty.fire;\n\t\t\thooks.empty.fire = function() {\n\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\toldfire();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\thooks.unqueued++;\n\n\t\tanim.always( function() {\n\n\t\t\t// Ensure the complete handler is called before this completes\n\t\t\tanim.always( function() {\n\t\t\t\thooks.unqueued--;\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\thooks.empty.fire();\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\t}\n\n\t// Detect show/hide animations\n\tfor ( prop in props ) {\n\t\tvalue = props[ prop ];\n\t\tif ( rfxtypes.test( value ) ) {\n\t\t\tdelete props[ prop ];\n\t\t\ttoggle = toggle || value === \"toggle\";\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\n\t\t\t\t// Pretend to be hidden if this is a \"show\" and\n\t\t\t\t// there is still data from a stopped show/hide\n\t\t\t\tif ( value === \"show\" && dataShow && dataShow[ prop ] !== undefined ) {\n\t\t\t\t\thidden = true;\n\n\t\t\t\t// Ignore all other no-op show/hide data\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\n\t\t}\n\t}\n\n\t// Bail out if this is a no-op like .hide().hide()\n\tpropTween = !jQuery.isEmptyObject( props );\n\tif ( !propTween && jQuery.isEmptyObject( orig ) ) {\n\t\treturn;\n\t}\n\n\t// Restrict \"overflow\" and \"display\" styles during box animations\n\tif ( isBox && elem.nodeType === 1 ) {\n\n\t\t// Support: IE <=9 - 11, Edge 12 - 13\n\t\t// Record all 3 overflow attributes because IE does not infer the shorthand\n\t\t// from identically-valued overflowX and overflowY\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t// Identify a display type, preferring old show/hide data over the CSS cascade\n\t\trestoreDisplay = dataShow && dataShow.display;\n\t\tif ( restoreDisplay == null ) {\n\t\t\trestoreDisplay = dataPriv.get( elem, \"display\" );\n\t\t}\n\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\tif ( display === \"none\" ) {\n\t\t\tif ( restoreDisplay ) {\n\t\t\t\tdisplay = restoreDisplay;\n\t\t\t} else {\n\n\t\t\t\t// Get nonempty value(s) by temporarily forcing visibility\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t\trestoreDisplay = elem.style.display || restoreDisplay;\n\t\t\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\t\t\tshowHide( [ elem ] );\n\t\t\t}\n\t\t}\n\n\t\t// Animate inline elements as inline-block\n\t\tif ( display === \"inline\" || display === \"inline-block\" && restoreDisplay != null ) {\n\t\t\tif ( jQuery.css( elem, \"float\" ) === \"none\" ) {\n\n\t\t\t\t// Restore the original display value at the end of pure show/hide animations\n\t\t\t\tif ( !propTween ) {\n\t\t\t\t\tanim.done( function() {\n\t\t\t\t\t\tstyle.display = restoreDisplay;\n\t\t\t\t\t} );\n\t\t\t\t\tif ( restoreDisplay == null ) {\n\t\t\t\t\t\tdisplay = style.display;\n\t\t\t\t\t\trestoreDisplay = display === \"none\" ? \"\" : display;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstyle.display = \"inline-block\";\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opts.overflow ) {\n\t\tstyle.overflow = \"hidden\";\n\t\tanim.always( function() {\n\t\t\tstyle.overflow = opts.overflow[ 0 ];\n\t\t\tstyle.overflowX = opts.overflow[ 1 ];\n\t\t\tstyle.overflowY = opts.overflow[ 2 ];\n\t\t} );\n\t}\n\n\t// Implement show/hide animations\n\tpropTween = false;\n\tfor ( prop in orig ) {\n\n\t\t// General show/hide setup for this element animation\n\t\tif ( !propTween ) {\n\t\t\tif ( dataShow ) {\n\t\t\t\tif ( \"hidden\" in dataShow ) {\n\t\t\t\t\thidden = dataShow.hidden;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdataShow = dataPriv.access( elem, \"fxshow\", { display: restoreDisplay } );\n\t\t\t}\n\n\t\t\t// Store hidden/visible for toggle so `.stop().toggle()` \"reverses\"\n\t\t\tif ( toggle ) {\n\t\t\t\tdataShow.hidden = !hidden;\n\t\t\t}\n\n\t\t\t// Show elements before animating them\n\t\t\tif ( hidden ) {\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t}\n\n\t\t\t/* eslint-disable no-loop-func */\n\n\t\t\tanim.done( function() {\n\n\t\t\t/* eslint-enable no-loop-func */\n\n\t\t\t\t// The final step of a \"hide\" animation is actually hiding the element\n\t\t\t\tif ( !hidden ) {\n\t\t\t\t\tshowHide( [ elem ] );\n\t\t\t\t}\n\t\t\t\tdataPriv.remove( elem, \"fxshow\" );\n\t\t\t\tfor ( prop in orig ) {\n\t\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\t// Per-property setup\n\t\tpropTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\n\t\tif ( !( prop in dataShow ) ) {\n\t\t\tdataShow[ prop ] = propTween.start;\n\t\t\tif ( hidden ) {\n\t\t\t\tpropTween.end = propTween.start;\n\t\t\t\tpropTween.start = 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction propFilter( props, specialEasing ) {\n\tvar index, name, easing, value, hooks;\n\n\t// camelCase, specialEasing and expand cssHook pass\n\tfor ( index in props ) {\n\t\tname = jQuery.camelCase( index );\n\t\teasing = specialEasing[ name ];\n\t\tvalue = props[ index ];\n\t\tif ( Array.isArray( value ) ) {\n\t\t\teasing = value[ 1 ];\n\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t}\n\n\t\tif ( index !== name ) {\n\t\t\tprops[ name ] = value;\n\t\t\tdelete props[ index ];\n\t\t}\n\n\t\thooks = jQuery.cssHooks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// Not quite $.extend, this won't overwrite existing keys.\n\t\t\t// Reusing 'index' because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tspecialEasing[ name ] = easing;\n\t\t}\n\t}\n}\n\nfunction Animation( elem, properties, options ) {\n\tvar result,\n\t\tstopped,\n\t\tindex = 0,\n\t\tlength = Animation.prefilters.length,\n\t\tdeferred = jQuery.Deferred().always( function() {\n\n\t\t\t// Don't match elem in the :animated selector\n\t\t\tdelete tick.elem;\n\t\t} ),\n\t\ttick = function() {\n\t\t\tif ( stopped ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\n\t\t\t\t// Support: Android 2.3 only\n\t\t\t\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)\n\t\t\t\ttemp = remaining / animation.duration || 0,\n\t\t\t\tpercent = 1 - temp,\n\t\t\t\tindex = 0,\n\t\t\t\tlength = animation.tweens.length;\n\n\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t}\n\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\n\n\t\t\t// If there's more to do, yield\n\t\t\tif ( percent < 1 && length ) {\n\t\t\t\treturn remaining;\n\t\t\t}\n\n\t\t\t// If this was an empty animation, synthesize a final progress notification\n\t\t\tif ( !length ) {\n\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t}\n\n\t\t\t// Resolve the animation and report its conclusion\n\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\treturn false;\n\t\t},\n\t\tanimation = deferred.promise( {\n\t\t\telem: elem,\n\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\topts: jQuery.extend( true, {\n\t\t\t\tspecialEasing: {},\n\t\t\t\teasing: jQuery.easing._default\n\t\t\t}, options ),\n\t\t\toriginalProperties: properties,\n\t\t\toriginalOptions: options,\n\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\tduration: options.duration,\n\t\t\ttweens: [],\n\t\t\tcreateTween: function( prop, end ) {\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\treturn tween;\n\t\t\t},\n\t\t\tstop: function( gotoEnd ) {\n\t\t\t\tvar index = 0,\n\n\t\t\t\t\t// If we are going to the end, we want to run all the tweens\n\t\t\t\t\t// otherwise we skip this part\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\t\t\t\tif ( stopped ) {\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tstopped = true;\n\t\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t}\n\n\t\t\t\t// Resolve when we played the last frame; otherwise, reject\n\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t} ),\n\t\tprops = animation.props;\n\n\tpropFilter( props, animation.opts.specialEasing );\n\n\tfor ( ; index < length; index++ ) {\n\t\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\n\t\tif ( result ) {\n\t\t\tif ( jQuery.isFunction( result.stop ) ) {\n\t\t\t\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\n\t\t\t\t\tjQuery.proxy( result.stop, result );\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tjQuery.map( props, createTween, animation );\n\n\tif ( jQuery.isFunction( animation.opts.start ) ) {\n\t\tanimation.opts.start.call( elem, animation );\n\t}\n\n\t// Attach callbacks from options\n\tanimation\n\t\t.progress( animation.opts.progress )\n\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t.fail( animation.opts.fail )\n\t\t.always( animation.opts.always );\n\n\tjQuery.fx.timer(\n\t\tjQuery.extend( tick, {\n\t\t\telem: elem,\n\t\t\tanim: animation,\n\t\t\tqueue: animation.opts.queue\n\t\t} )\n\t);\n\n\treturn animation;\n}\n\njQuery.Animation = jQuery.extend( Animation, {\n\n\ttweeners: {\n\t\t\"*\": [ function( prop, value ) {\n\t\t\tvar tween = this.createTween( prop, value );\n\t\t\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\n\t\t\treturn tween;\n\t\t} ]\n\t},\n\n\ttweener: function( props, callback ) {\n\t\tif ( jQuery.isFunction( props ) ) {\n\t\t\tcallback = props;\n\t\t\tprops = [ \"*\" ];\n\t\t} else {\n\t\t\tprops = props.match( rnothtmlwhite );\n\t\t}\n\n\t\tvar prop,\n\t\t\tindex = 0,\n\t\t\tlength = props.length;\n\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tprop = props[ index ];\n\t\t\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\n\t\t\tAnimation.tweeners[ prop ].unshift( callback );\n\t\t}\n\t},\n\n\tprefilters: [ defaultPrefilter ],\n\n\tprefilter: function( callback, prepend ) {\n\t\tif ( prepend ) {\n\t\t\tAnimation.prefilters.unshift( callback );\n\t\t} else {\n\t\t\tAnimation.prefilters.push( callback );\n\t\t}\n\t}\n} );\n\njQuery.speed = function( speed, easing, fn ) {\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\tcomplete: fn || !fn && easing ||\n\t\t\tjQuery.isFunction( speed ) && speed,\n\t\tduration: speed,\n\t\teasing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\n\t};\n\n\t// Go to the end state if fx are off\n\tif ( jQuery.fx.off ) {\n\t\topt.duration = 0;\n\n\t} else {\n\t\tif ( typeof opt.duration !== \"number\" ) {\n\t\t\tif ( opt.duration in jQuery.fx.speeds ) {\n\t\t\t\topt.duration = jQuery.fx.speeds[ opt.duration ];\n\n\t\t\t} else {\n\t\t\t\topt.duration = jQuery.fx.speeds._default;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Normalize opt.queue - true/undefined/null -> \"fx\"\n\tif ( opt.queue == null || opt.queue === true ) {\n\t\topt.queue = \"fx\";\n\t}\n\n\t// Queueing\n\topt.old = opt.complete;\n\n\topt.complete = function() {\n\t\tif ( jQuery.isFunction( opt.old ) ) {\n\t\t\topt.old.call( this );\n\t\t}\n\n\t\tif ( opt.queue ) {\n\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t}\n\t};\n\n\treturn opt;\n};\n\njQuery.fn.extend( {\n\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t// Show any hidden elements after setting opacity to 0\n\t\treturn this.filter( isHiddenWithinTree ).css( \"opacity\", 0 ).show()\n\n\t\t\t// Animate to the value specified\n\t\t\t.end().animate( { opacity: to }, speed, easing, callback );\n\t},\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\tdoAnimation = function() {\n\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\n\t\t\t\t// Empty animations, or finishing resolves immediately\n\t\t\t\tif ( empty || dataPriv.get( this, \"finish\" ) ) {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t}\n\t\t\t};\n\t\t\tdoAnimation.finish = doAnimation;\n\n\t\treturn empty || optall.queue === false ?\n\t\t\tthis.each( doAnimation ) :\n\t\t\tthis.queue( optall.queue, doAnimation );\n\t},\n\tstop: function( type, clearQueue, gotoEnd ) {\n\t\tvar stopQueue = function( hooks ) {\n\t\t\tvar stop = hooks.stop;\n\t\t\tdelete hooks.stop;\n\t\t\tstop( gotoEnd );\n\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tgotoEnd = clearQueue;\n\t\t\tclearQueue = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\tif ( clearQueue && type !== false ) {\n\t\t\tthis.queue( type || \"fx\", [] );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar dequeue = true,\n\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tdata = dataPriv.get( this );\n\n\t\t\tif ( index ) {\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( index in data ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this &&\n\t\t\t\t\t( type == null || timers[ index ].queue === type ) ) {\n\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\tdequeue = false;\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Start the next in the queue if the last step wasn't forced.\n\t\t\t// Timers currently will call their complete callbacks, which\n\t\t\t// will dequeue but only if they were gotoEnd.\n\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t} );\n\t},\n\tfinish: function( type ) {\n\t\tif ( type !== false ) {\n\t\t\ttype = type || \"fx\";\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tvar index,\n\t\t\t\tdata = dataPriv.get( this ),\n\t\t\t\tqueue = data[ type + \"queue\" ],\n\t\t\t\thooks = data[ type + \"queueHooks\" ],\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tlength = queue ? queue.length : 0;\n\n\t\t\t// Enable finishing flag on private data\n\t\t\tdata.finish = true;\n\n\t\t\t// Empty the queue first\n\t\t\tjQuery.queue( this, type, [] );\n\n\t\t\tif ( hooks && hooks.stop ) {\n\t\t\t\thooks.stop.call( this, true );\n\t\t\t}\n\n\t\t\t// Look for any active animations, and finish them\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\n\t\t\t\t\ttimers[ index ].anim.stop( true );\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look for any animations in the old queue and finish them\n\t\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\n\t\t\t\t\tqueue[ index ].finish.call( this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Turn off finishing flag\n\t\t\tdelete data.finish;\n\t\t} );\n\t}\n} );\n\njQuery.each( [ \"toggle\", \"show\", \"hide\" ], function( i, name ) {\n\tvar cssFn = jQuery.fn[ name ];\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn speed == null || typeof speed === \"boolean\" ?\n\t\t\tcssFn.apply( this, arguments ) :\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t};\n} );\n\n// Generate shortcuts for custom animations\njQuery.each( {\n\tslideDown: genFx( \"show\" ),\n\tslideUp: genFx( \"hide\" ),\n\tslideToggle: genFx( \"toggle\" ),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n} );\n\njQuery.timers = [];\njQuery.fx.tick = function() {\n\tvar timer,\n\t\ti = 0,\n\t\ttimers = jQuery.timers;\n\n\tfxNow = jQuery.now();\n\n\tfor ( ; i < timers.length; i++ ) {\n\t\ttimer = timers[ i ];\n\n\t\t// Run the timer and safely remove it when done (allowing for external removal)\n\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\ttimers.splice( i--, 1 );\n\t\t}\n\t}\n\n\tif ( !timers.length ) {\n\t\tjQuery.fx.stop();\n\t}\n\tfxNow = undefined;\n};\n\njQuery.fx.timer = function( timer ) {\n\tjQuery.timers.push( timer );\n\tjQuery.fx.start();\n};\n\njQuery.fx.interval = 13;\njQuery.fx.start = function() {\n\tif ( inProgress ) {\n\t\treturn;\n\t}\n\n\tinProgress = true;\n\tschedule();\n};\n\njQuery.fx.stop = function() {\n\tinProgress = null;\n};\n\njQuery.fx.speeds = {\n\tslow: 600,\n\tfast: 200,\n\n\t// Default speed\n\t_default: 400\n};\n\n\n// Based off of the plugin by Clint Helfers, with permission.\n// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\njQuery.fn.delay = function( time, type ) {\n\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\n\ttype = type || \"fx\";\n\n\treturn this.queue( type, function( next, hooks ) {\n\t\tvar timeout = window.setTimeout( next, time );\n\t\thooks.stop = function() {\n\t\t\twindow.clearTimeout( timeout );\n\t\t};\n\t} );\n};\n\n\n( function() {\n\tvar input = document.createElement( \"input\" ),\n\t\tselect = document.createElement( \"select\" ),\n\t\topt = select.appendChild( document.createElement( \"option\" ) );\n\n\tinput.type = \"checkbox\";\n\n\t// Support: Android <=4.3 only\n\t// Default value for a checkbox should be \"on\"\n\tsupport.checkOn = input.value !== \"\";\n\n\t// Support: IE <=11 only\n\t// Must access selectedIndex to make default options select\n\tsupport.optSelected = opt.selected;\n\n\t// Support: IE <=11 only\n\t// An input loses its value after becoming a radio\n\tinput = document.createElement( \"input\" );\n\tinput.value = \"t\";\n\tinput.type = \"radio\";\n\tsupport.radioValue = input.value === \"t\";\n} )();\n\n\nvar boolHook,\n\tattrHandle = jQuery.expr.attrHandle;\n\njQuery.fn.extend( {\n\tattr: function( name, value ) {\n\t\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t},\n\n\tremoveAttr: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.removeAttr( this, name );\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tattr: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set attributes on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Fallback to prop when attributes are not supported\n\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\n\t\t\treturn jQuery.prop( elem, name, value );\n\t\t}\n\n\t\t// Attribute hooks are determined by the lowercase version\n\t\t// Grab necessary hook if one is defined\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\t\t\thooks = jQuery.attrHooks[ name.toLowerCase() ] ||\n\t\t\t\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( value === null ) {\n\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\telem.setAttribute( name, value + \"\" );\n\t\t\treturn value;\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\tret = jQuery.find.attr( elem, name );\n\n\t\t// Non-existent attributes return null, we normalize to undefined\n\t\treturn ret == null ? undefined : ret;\n\t},\n\n\tattrHooks: {\n\t\ttype: {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( !support.radioValue && value === \"radio\" &&\n\t\t\t\t\tnodeName( elem, \"input\" ) ) {\n\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tremoveAttr: function( elem, value ) {\n\t\tvar name,\n\t\t\ti = 0,\n\n\t\t\t// Attribute names can contain non-HTML whitespace characters\n\t\t\t// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n\t\t\tattrNames = value && value.match( rnothtmlwhite );\n\n\t\tif ( attrNames && elem.nodeType === 1 ) {\n\t\t\twhile ( ( name = attrNames[ i++ ] ) ) {\n\t\t\t\telem.removeAttribute( name );\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Hooks for boolean attributes\nboolHook = {\n\tset: function( elem, value, name ) {\n\t\tif ( value === false ) {\n\n\t\t\t// Remove boolean attributes when set to false\n\t\t\tjQuery.removeAttr( elem, name );\n\t\t} else {\n\t\t\telem.setAttribute( name, name );\n\t\t}\n\t\treturn name;\n\t}\n};\n\njQuery.each( jQuery.expr.match.bool.source.match( /\\w+/g ), function( i, name ) {\n\tvar getter = attrHandle[ name ] || jQuery.find.attr;\n\n\tattrHandle[ name ] = function( elem, name, isXML ) {\n\t\tvar ret, handle,\n\t\t\tlowercaseName = name.toLowerCase();\n\n\t\tif ( !isXML ) {\n\n\t\t\t// Avoid an infinite loop by temporarily removing this function from the getter\n\t\t\thandle = attrHandle[ lowercaseName ];\n\t\t\tattrHandle[ lowercaseName ] = ret;\n\t\t\tret = getter( elem, name, isXML ) != null ?\n\t\t\t\tlowercaseName :\n\t\t\t\tnull;\n\t\t\tattrHandle[ lowercaseName ] = handle;\n\t\t}\n\t\treturn ret;\n\t};\n} );\n\n\n\n\nvar rfocusable = /^(?:input|select|textarea|button)$/i,\n\trclickable = /^(?:a|area)$/i;\n\njQuery.fn.extend( {\n\tprop: function( name, value ) {\n\t\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t},\n\n\tremoveProp: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tdelete this[ jQuery.propFix[ name ] || name ];\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tprop: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set properties on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// Fix name and attach hooks\n\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\thooks = jQuery.propHooks[ name ];\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\treturn ( elem[ name ] = value );\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\treturn elem[ name ];\n\t},\n\n\tpropHooks: {\n\t\ttabIndex: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\t// Support: IE <=9 - 11 only\n\t\t\t\t// elem.tabIndex doesn't always return the\n\t\t\t\t// correct value when it hasn't been explicitly set\n\t\t\t\t// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\t// Use proper attribute retrieval(#12072)\n\t\t\t\tvar tabindex = jQuery.find.attr( elem, \"tabindex\" );\n\n\t\t\t\tif ( tabindex ) {\n\t\t\t\t\treturn parseInt( tabindex, 10 );\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\trfocusable.test( elem.nodeName ) ||\n\t\t\t\t\trclickable.test( elem.nodeName ) &&\n\t\t\t\t\telem.href\n\t\t\t\t) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t},\n\n\tpropFix: {\n\t\t\"for\": \"htmlFor\",\n\t\t\"class\": \"className\"\n\t}\n} );\n\n// Support: IE <=11 only\n// Accessing the selectedIndex property\n// forces the browser to respect setting selected\n// on the option\n// The getter ensures a default option is selected\n// when in an optgroup\n// eslint rule \"no-unused-expressions\" is disabled for this code\n// since it considers such accessions noop\nif ( !support.optSelected ) {\n\tjQuery.propHooks.selected = {\n\t\tget: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent && parent.parentNode ) {\n\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tset: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent ) {\n\t\t\t\tparent.selectedIndex;\n\n\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\njQuery.each( [\n\t\"tabIndex\",\n\t\"readOnly\",\n\t\"maxLength\",\n\t\"cellSpacing\",\n\t\"cellPadding\",\n\t\"rowSpan\",\n\t\"colSpan\",\n\t\"useMap\",\n\t\"frameBorder\",\n\t\"contentEditable\"\n], function() {\n\tjQuery.propFix[ this.toLowerCase() ] = this;\n} );\n\n\n\n\n\t// Strip and collapse whitespace according to HTML spec\n\t// https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace\n\tfunction stripAndCollapse( value ) {\n\t\tvar tokens = value.match( rnothtmlwhite ) || [];\n\t\treturn tokens.join( \" \" );\n\t}\n\n\nfunction getClass( elem ) {\n\treturn elem.getAttribute && elem.getAttribute( \"class\" ) || \"\";\n}\n\njQuery.fn.extend( {\n\taddClass: function( value ) {\n\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\ti = 0;\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tif ( typeof value === \"string\" && value ) {\n\t\t\tclasses = value.match( rnothtmlwhite ) || [];\n\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tcurValue = getClass( elem );\n\t\t\t\tcur = elem.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + clazz + \" \" ) < 0 ) {\n\t\t\t\t\t\t\tcur += clazz + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\ti = 0;\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tif ( !arguments.length ) {\n\t\t\treturn this.attr( \"class\", \"\" );\n\t\t}\n\n\t\tif ( typeof value === \"string\" && value ) {\n\t\t\tclasses = value.match( rnothtmlwhite ) || [];\n\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tcurValue = getClass( elem );\n\n\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\tcur = elem.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\n\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + clazz + \" \" ) > -1 ) {\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + clazz + \" \", \" \" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar type = typeof value;\n\n\t\tif ( typeof stateVal === \"boolean\" && type === \"string\" ) {\n\t\t\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\n\t\t}\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).toggleClass(\n\t\t\t\t\tvalue.call( this, i, getClass( this ), stateVal ),\n\t\t\t\t\tstateVal\n\t\t\t\t);\n\t\t\t} );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar className, i, self, classNames;\n\n\t\t\tif ( type === \"string\" ) {\n\n\t\t\t\t// Toggle individual class names\n\t\t\t\ti = 0;\n\t\t\t\tself = jQuery( this );\n\t\t\t\tclassNames = value.match( rnothtmlwhite ) || [];\n\n\t\t\t\twhile ( ( className = classNames[ i++ ] ) ) {\n\n\t\t\t\t\t// Check each className given, space separated list\n\t\t\t\t\tif ( self.hasClass( className ) ) {\n\t\t\t\t\t\tself.removeClass( className );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.addClass( className );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Toggle whole class name\n\t\t\t} else if ( value === undefined || type === \"boolean\" ) {\n\t\t\t\tclassName = getClass( this );\n\t\t\t\tif ( className ) {\n\n\t\t\t\t\t// Store className if set\n\t\t\t\t\tdataPriv.set( this, \"__className__\", className );\n\t\t\t\t}\n\n\t\t\t\t// If the element has a class name or if we're passed `false`,\n\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\n\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\n\t\t\t\t// falling back to the empty string if nothing was stored.\n\t\t\t\tif ( this.setAttribute ) {\n\t\t\t\t\tthis.setAttribute( \"class\",\n\t\t\t\t\t\tclassName || value === false ?\n\t\t\t\t\t\t\"\" :\n\t\t\t\t\t\tdataPriv.get( this, \"__className__\" ) || \"\"\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className, elem,\n\t\t\ti = 0;\n\n\t\tclassName = \" \" + selector + \" \";\n\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\tif ( elem.nodeType === 1 &&\n\t\t\t\t( \" \" + stripAndCollapse( getClass( elem ) ) + \" \" ).indexOf( className ) > -1 ) {\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n} );\n\n\n\n\nvar rreturn = /\\r/g;\n\njQuery.fn.extend( {\n\tval: function( value ) {\n\t\tvar hooks, ret, isFunction,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !arguments.length ) {\n\t\t\tif ( elem ) {\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] ||\n\t\t\t\t\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\tif ( hooks &&\n\t\t\t\t\t\"get\" in hooks &&\n\t\t\t\t\t( ret = hooks.get( elem, \"value\" ) ) !== undefined\n\t\t\t\t) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\tret = elem.value;\n\n\t\t\t\t// Handle most common string cases\n\t\t\t\tif ( typeof ret === \"string\" ) {\n\t\t\t\t\treturn ret.replace( rreturn, \"\" );\n\t\t\t\t}\n\n\t\t\t\t// Handle cases where value is null/undef or number\n\t\t\t\treturn ret == null ? \"\" : ret;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tisFunction = jQuery.isFunction( value );\n\n\t\treturn this.each( function( i ) {\n\t\t\tvar val;\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( isFunction ) {\n\t\t\t\tval = value.call( this, i, jQuery( this ).val() );\n\t\t\t} else {\n\t\t\t\tval = value;\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\n\t\t\t} else if ( Array.isArray( val ) ) {\n\t\t\t\tval = jQuery.map( val, function( value ) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\tif ( !hooks || !( \"set\" in hooks ) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tvalHooks: {\n\t\toption: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\tvar val = jQuery.find.attr( elem, \"value\" );\n\t\t\t\treturn val != null ?\n\t\t\t\t\tval :\n\n\t\t\t\t\t// Support: IE <=10 - 11 only\n\t\t\t\t\t// option.text throws exceptions (#14686, #14858)\n\t\t\t\t\t// Strip and collapse whitespace\n\t\t\t\t\t// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\n\t\t\t\t\tstripAndCollapse( jQuery.text( elem ) );\n\t\t\t}\n\t\t},\n\t\tselect: {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar value, option, i,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\tone = elem.type === \"select-one\",\n\t\t\t\t\tvalues = one ? null : [],\n\t\t\t\t\tmax = one ? index + 1 : options.length;\n\n\t\t\t\tif ( index < 0 ) {\n\t\t\t\t\ti = max;\n\n\t\t\t\t} else {\n\t\t\t\t\ti = one ? index : 0;\n\t\t\t\t}\n\n\t\t\t\t// Loop through all the selected options\n\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t// IE8-9 doesn't update selected after form reset (#2551)\n\t\t\t\t\tif ( ( option.selected || i === index ) &&\n\n\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\t\t!option.disabled &&\n\t\t\t\t\t\t\t( !option.parentNode.disabled ||\n\t\t\t\t\t\t\t\t!nodeName( option.parentNode, \"optgroup\" ) ) ) {\n\n\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t},\n\n\t\t\tset: function( elem, value ) {\n\t\t\t\tvar optionSet, option,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tvalues = jQuery.makeArray( value ),\n\t\t\t\t\ti = options.length;\n\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t/* eslint-disable no-cond-assign */\n\n\t\t\t\t\tif ( option.selected =\n\t\t\t\t\t\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\n\t\t\t\t\t) {\n\t\t\t\t\t\toptionSet = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* eslint-enable no-cond-assign */\n\t\t\t\t}\n\n\t\t\t\t// Force browsers to behave consistently when non-matching value is set\n\t\t\t\tif ( !optionSet ) {\n\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t}\n\t\t\t\treturn values;\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Radios and checkboxes getter/setter\njQuery.each( [ \"radio\", \"checkbox\" ], function() {\n\tjQuery.valHooks[ this ] = {\n\t\tset: function( elem, value ) {\n\t\t\tif ( Array.isArray( value ) ) {\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\n\t\t\t}\n\t\t}\n\t};\n\tif ( !support.checkOn ) {\n\t\tjQuery.valHooks[ this ].get = function( elem ) {\n\t\t\treturn elem.getAttribute( \"value\" ) === null ? \"on\" : elem.value;\n\t\t};\n\t}\n} );\n\n\n\n\n// Return jQuery for attributes-only inclusion\n\n\nvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;\n\njQuery.extend( jQuery.event, {\n\n\ttrigger: function( event, data, elem, onlyHandlers ) {\n\n\t\tvar i, cur, tmp, bubbleType, ontype, handle, special,\n\t\t\teventPath = [ elem || document ],\n\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\n\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split( \".\" ) : [];\n\n\t\tcur = tmp = elem = elem || document;\n\n\t\t// Don't do events on text and comment nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( type.indexOf( \".\" ) > -1 ) {\n\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\tnamespaces = type.split( \".\" );\n\t\t\ttype = namespaces.shift();\n\t\t\tnamespaces.sort();\n\t\t}\n\t\tontype = type.indexOf( \":\" ) < 0 && \"on\" + type;\n\n\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\t\tevent = event[ jQuery.expando ] ?\n\t\t\tevent :\n\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\n\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\n\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\n\t\tevent.namespace = namespaces.join( \".\" );\n\t\tevent.rnamespace = event.namespace ?\n\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" ) :\n\t\t\tnull;\n\n\t\t// Clean up the event in case it is being reused\n\t\tevent.result = undefined;\n\t\tif ( !event.target ) {\n\t\t\tevent.target = elem;\n\t\t}\n\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\tdata = data == null ?\n\t\t\t[ event ] :\n\t\t\tjQuery.makeArray( data, [ event ] );\n\n\t\t// Allow special events to draw outside the lines\n\t\tspecial = jQuery.event.special[ type ] || {};\n\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\n\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\n\n\t\t\tbubbleType = special.delegateType || type;\n\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\t\t\t\teventPath.push( cur );\n\t\t\t\ttmp = cur;\n\t\t\t}\n\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\tif ( tmp === ( elem.ownerDocument || document ) ) {\n\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\t\t\t}\n\t\t}\n\n\t\t// Fire handlers on the event path\n\t\ti = 0;\n\t\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\n\n\t\t\tevent.type = i > 1 ?\n\t\t\t\tbubbleType :\n\t\t\t\tspecial.bindType || type;\n\n\t\t\t// jQuery handler\n\t\t\thandle = ( dataPriv.get( cur, \"events\" ) || {} )[ event.type ] &&\n\t\t\t\tdataPriv.get( cur, \"handle\" );\n\t\t\tif ( handle ) {\n\t\t\t\thandle.apply( cur, data );\n\t\t\t}\n\n\t\t\t// Native handler\n\t\t\thandle = ontype && cur[ ontype ];\n\t\t\tif ( handle && handle.apply && acceptData( cur ) ) {\n\t\t\t\tevent.result = handle.apply( cur, data );\n\t\t\t\tif ( event.result === false ) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tevent.type = type;\n\n\t\t// If nobody prevented the default action, do it now\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\tif ( ( !special._default ||\n\t\t\t\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\n\t\t\t\tacceptData( elem ) ) {\n\n\t\t\t\t// Call a native DOM method on the target with the same name as the event.\n\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\n\t\t\t\tif ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {\n\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\ttmp = elem[ ontype ];\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\tjQuery.event.triggered = type;\n\t\t\t\t\telem[ type ]();\n\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\t// Piggyback on a donor event to simulate a different one\n\t// Used only for `focus(in | out)` events\n\tsimulate: function( type, elem, event ) {\n\t\tvar e = jQuery.extend(\n\t\t\tnew jQuery.Event(),\n\t\t\tevent,\n\t\t\t{\n\t\t\t\ttype: type,\n\t\t\t\tisSimulated: true\n\t\t\t}\n\t\t);\n\n\t\tjQuery.event.trigger( e, null, elem );\n\t}\n\n} );\n\njQuery.fn.extend( {\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t} );\n\t},\n\ttriggerHandler: function( type, data ) {\n\t\tvar elem = this[ 0 ];\n\t\tif ( elem ) {\n\t\t\treturn jQuery.event.trigger( type, data, elem, true );\n\t\t}\n\t}\n} );\n\n\njQuery.each( ( \"blur focus focusin focusout resize scroll click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup contextmenu\" ).split( \" \" ),\n\tfunction( i, name ) {\n\n\t// Handle event binding\n\tjQuery.fn[ name ] = function( data, fn ) {\n\t\treturn arguments.length > 0 ?\n\t\t\tthis.on( name, null, data, fn ) :\n\t\t\tthis.trigger( name );\n\t};\n} );\n\njQuery.fn.extend( {\n\thover: function( fnOver, fnOut ) {\n\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n\t}\n} );\n\n\n\n\nsupport.focusin = \"onfocusin\" in window;\n\n\n// Support: Firefox <=44\n// Firefox doesn't have focus(in | out) events\n// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n//\n// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\n// focus(in | out) events fire after focus & blur events,\n// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\nif ( !support.focusin ) {\n\tjQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\n\t\t// Attach a single capturing handler on the document while someone wants focusin/focusout\n\t\tvar handler = function( event ) {\n\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );\n\t\t};\n\n\t\tjQuery.event.special[ fix ] = {\n\t\t\tsetup: function() {\n\t\t\t\tvar doc = this.ownerDocument || this,\n\t\t\t\t\tattaches = dataPriv.access( doc, fix );\n\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tdoc.addEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t\tdataPriv.access( doc, fix, ( attaches || 0 ) + 1 );\n\t\t\t},\n\t\t\tteardown: function() {\n\t\t\t\tvar doc = this.ownerDocument || this,\n\t\t\t\t\tattaches = dataPriv.access( doc, fix ) - 1;\n\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tdoc.removeEventListener( orig, handler, true );\n\t\t\t\t\tdataPriv.remove( doc, fix );\n\n\t\t\t\t} else {\n\t\t\t\t\tdataPriv.access( doc, fix, attaches );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t} );\n}\nvar location = window.location;\n\nvar nonce = jQuery.now();\n\nvar rquery = ( /\\?/ );\n\n\n\n// Cross-browser xml parsing\njQuery.parseXML = function( data ) {\n\tvar xml;\n\tif ( !data || typeof data !== \"string\" ) {\n\t\treturn null;\n\t}\n\n\t// Support: IE 9 - 11 only\n\t// IE throws on parseFromString with invalid input.\n\ttry {\n\t\txml = ( new window.DOMParser() ).parseFromString( data, \"text/xml\" );\n\t} catch ( e ) {\n\t\txml = undefined;\n\t}\n\n\tif ( !xml || xml.getElementsByTagName( \"parsererror\" ).length ) {\n\t\tjQuery.error( \"Invalid XML: \" + data );\n\t}\n\treturn xml;\n};\n\n\nvar\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\n\trsubmittable = /^(?:input|select|textarea|keygen)/i;\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tvar name;\n\n\tif ( Array.isArray( obj ) ) {\n\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\n\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\n\t\t\t\tbuildParams(\n\t\t\t\t\tprefix + \"[\" + ( typeof v === \"object\" && v != null ? i : \"\" ) + \"]\",\n\t\t\t\t\tv,\n\t\t\t\t\ttraditional,\n\t\t\t\t\tadd\n\t\t\t\t);\n\t\t\t}\n\t\t} );\n\n\t} else if ( !traditional && jQuery.type( obj ) === \"object\" ) {\n\n\t\t// Serialize object item.\n\t\tfor ( name in obj ) {\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t}\n\n\t} else {\n\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\n\n// Serialize an array of form elements or a set of\n// key/values into a query string\njQuery.param = function( a, traditional ) {\n\tvar prefix,\n\t\ts = [],\n\t\tadd = function( key, valueOrFunction ) {\n\n\t\t\t// If value is a function, invoke it and use its return value\n\t\t\tvar value = jQuery.isFunction( valueOrFunction ) ?\n\t\t\t\tvalueOrFunction() :\n\t\t\t\tvalueOrFunction;\n\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" +\n\t\t\t\tencodeURIComponent( value == null ? \"\" : value );\n\t\t};\n\n\t// If an array was passed in, assume that it is an array of form elements.\n\tif ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\n\t\t// Serialize the form elements\n\t\tjQuery.each( a, function() {\n\t\t\tadd( this.name, this.value );\n\t\t} );\n\n\t} else {\n\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t// did it), otherwise encode params recursively.\n\t\tfor ( prefix in a ) {\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t}\n\t}\n\n\t// Return the resulting serialization\n\treturn s.join( \"&\" );\n};\n\njQuery.fn.extend( {\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\tserializeArray: function() {\n\t\treturn this.map( function() {\n\n\t\t\t// Can add propHook for \"elements\" to filter or add form elements\n\t\t\tvar elements = jQuery.prop( this, \"elements\" );\n\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\n\t\t} )\n\t\t.filter( function() {\n\t\t\tvar type = this.type;\n\n\t\t\t// Use .is( \":disabled\" ) so that fieldset[disabled] works\n\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\n\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\n\t\t\t\t( this.checked || !rcheckableType.test( type ) );\n\t\t} )\n\t\t.map( function( i, elem ) {\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\tif ( val == null ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif ( Array.isArray( val ) ) {\n\t\t\t\treturn jQuery.map( val, function( val ) {\n\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t} ).get();\n\t}\n} );\n\n\nvar\n\tr20 = /%20/g,\n\trhash = /#.*$/,\n\trantiCache = /([?&])_=[^&]*/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)$/mg,\n\n\t// #7653, #8125, #8152: local protocol detection\n\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t *    - BEFORE asking for a transport\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\n\tallTypes = \"*/\".concat( \"*\" ),\n\n\t// Anchor tag for parsing the document origin\n\toriginAnchor = document.createElement( \"a\" );\n\toriginAnchor.href = location.href;\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tvar dataType,\n\t\t\ti = 0,\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];\n\n\t\tif ( jQuery.isFunction( func ) ) {\n\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\n\n\t\t\t\t// Prepend if requested\n\t\t\t\tif ( dataType[ 0 ] === \"+\" ) {\n\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\n\n\t\t\t\t// Otherwise append\n\t\t\t\t} else {\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\n// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\tvar inspected = {},\n\t\tseekingTransport = ( structure === transports );\n\n\tfunction inspect( dataType ) {\n\t\tvar selected;\n\t\tinspected[ dataType ] = true;\n\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\n\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\n\t\t\tif ( typeof dataTypeOrTransport === \"string\" &&\n\t\t\t\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\n\n\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\n\t\t\t\tinspect( dataTypeOrTransport );\n\t\t\t\treturn false;\n\t\t\t} else if ( seekingTransport ) {\n\t\t\t\treturn !( selected = dataTypeOrTransport );\n\t\t\t}\n\t\t} );\n\t\treturn selected;\n\t}\n\n\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\n}\n\n// A special extend for ajax options\n// that takes \"flat\" options (not to be deep extended)\n// Fixes #9887\nfunction ajaxExtend( target, src ) {\n\tvar key, deep,\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\n\tfor ( key in src ) {\n\t\tif ( src[ key ] !== undefined ) {\n\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\n\t\t}\n\t}\n\tif ( deep ) {\n\t\tjQuery.extend( true, target, deep );\n\t}\n\n\treturn target;\n}\n\n/* Handles responses to an ajax request:\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\tvar ct, type, finalDataType, firstDataType,\n\t\tcontents = s.contents,\n\t\tdataTypes = s.dataTypes;\n\n\t// Remove auto dataType and get content-type in the process\n\twhile ( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"Content-Type\" );\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[ 0 ] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n/* Chain conversions given the request and the original response\n * Also sets the responseXXX fields on the jqXHR instance\n */\nfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\n\tvar conv2, current, conv, tmp, prev,\n\t\tconverters = {},\n\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\tdataTypes = s.dataTypes.slice();\n\n\t// Create converters map with lowercased keys\n\tif ( dataTypes[ 1 ] ) {\n\t\tfor ( conv in s.converters ) {\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t}\n\t}\n\n\tcurrent = dataTypes.shift();\n\n\t// Convert to each sequential dataType\n\twhile ( current ) {\n\n\t\tif ( s.responseFields[ current ] ) {\n\t\t\tjqXHR[ s.responseFields[ current ] ] = response;\n\t\t}\n\n\t\t// Apply the dataFilter if provided\n\t\tif ( !prev && isSuccess && s.dataFilter ) {\n\t\t\tresponse = s.dataFilter( response, s.dataType );\n\t\t}\n\n\t\tprev = current;\n\t\tcurrent = dataTypes.shift();\n\n\t\tif ( current ) {\n\n\t\t\t// There's only work to do if current dataType is non-auto\n\t\t\tif ( current === \"*\" ) {\n\n\t\t\t\tcurrent = prev;\n\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\t} else if ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t// Seek a direct converter\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t// If none found, seek a pair\n\t\t\t\tif ( !conv ) {\n\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\ttmp = conv2.split( \" \" );\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\tif ( conv ) {\n\n\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\tdataTypes.unshift( tmp[ 1 ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\tif ( conv && s.throws ) {\n\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tstate: \"parsererror\",\n\t\t\t\t\t\t\t\terror: conv ? e : \"No conversion from \" + prev + \" to \" + current\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { state: \"success\", data: response };\n}\n\njQuery.extend( {\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {},\n\n\tajaxSettings: {\n\t\turl: location.href,\n\t\ttype: \"GET\",\n\t\tisLocal: rlocalProtocol.test( location.protocol ),\n\t\tglobal: true,\n\t\tprocessData: true,\n\t\tasync: true,\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/\n\n\t\taccepts: {\n\t\t\t\"*\": allTypes,\n\t\t\ttext: \"text/plain\",\n\t\t\thtml: \"text/html\",\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\tjson: \"application/json, text/javascript\"\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /\\bxml\\b/,\n\t\t\thtml: /\\bhtml/,\n\t\t\tjson: /\\bjson\\b/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\",\n\t\t\tjson: \"responseJSON\"\n\t\t},\n\n\t\t// Data converters\n\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": JSON.parse,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t},\n\n\t\t// For options that shouldn't be deep extended:\n\t\t// you can add your own custom options here if\n\t\t// and when you create one that shouldn't be\n\t\t// deep extended (see ajaxExtend)\n\t\tflatOptions: {\n\t\t\turl: true,\n\t\t\tcontext: true\n\t\t}\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function( target, settings ) {\n\t\treturn settings ?\n\n\t\t\t// Building a settings object\n\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\n\n\t\t\t// Extending ajaxSettings\n\t\t\tajaxExtend( jQuery.ajaxSettings, target );\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar transport,\n\n\t\t\t// URL without anti-cache param\n\t\t\tcacheURL,\n\n\t\t\t// Response headers\n\t\t\tresponseHeadersString,\n\t\t\tresponseHeaders,\n\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\n\t\t\t// Url cleanup var\n\t\t\turlAnchor,\n\n\t\t\t// Request state (becomes false upon send and true upon completion)\n\t\t\tcompleted,\n\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\n\t\t\t// Loop variable\n\t\t\ti,\n\n\t\t\t// uncached part of the url\n\t\t\tuncached,\n\n\t\t\t// Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\n\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\n\t\t\tglobalEventContext = s.context &&\n\t\t\t\t( callbackContext.nodeType || callbackContext.jquery ) ?\n\t\t\t\t\tjQuery( callbackContext ) :\n\t\t\t\t\tjQuery.event,\n\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\n\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\trequestHeadersNames = {},\n\n\t\t\t// Default abort message\n\t\t\tstrAbort = \"canceled\",\n\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( completed ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match == null ? null : match;\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn completed ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\tname = requestHeadersNames[ name.toLowerCase() ] =\n\t\t\t\t\t\t\trequestHeadersNames[ name.toLowerCase() ] || name;\n\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tstatusCode: function( map ) {\n\t\t\t\t\tvar code;\n\t\t\t\t\tif ( map ) {\n\t\t\t\t\t\tif ( completed ) {\n\n\t\t\t\t\t\t\t// Execute the appropriate callbacks\n\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Lazy-add the new callbacks in a way that preserves old ones\n\t\t\t\t\t\t\tfor ( code in map ) {\n\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tvar finalText = statusText || strAbort;\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( finalText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, finalText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR );\n\n\t\t// Add protocol if not provided (prefilters might expect it)\n\t\t// Handle falsy url in the settings object (#10093: consistency with old signature)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url || location.href ) + \"\" )\n\t\t\t.replace( rprotocol, location.protocol + \"//\" );\n\n\t\t// Alias method option to type as per ticket #12004\n\t\ts.type = options.method || options.type || s.method || s.type;\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = ( s.dataType || \"*\" ).toLowerCase().match( rnothtmlwhite ) || [ \"\" ];\n\n\t\t// A cross-domain request is in order when the origin doesn't match the current origin.\n\t\tif ( s.crossDomain == null ) {\n\t\t\turlAnchor = document.createElement( \"a\" );\n\n\t\t\t// Support: IE <=8 - 11, Edge 12 - 13\n\t\t\t// IE throws exception on accessing the href property if url is malformed,\n\t\t\t// e.g. http://example.com:80x/\n\t\t\ttry {\n\t\t\t\turlAnchor.href = s.url;\n\n\t\t\t\t// Support: IE <=8 - 11 only\n\t\t\t\t// Anchor's host property isn't correctly set when s.url is relative\n\t\t\t\turlAnchor.href = urlAnchor.href;\n\t\t\t\ts.crossDomain = originAnchor.protocol + \"//\" + originAnchor.host !==\n\t\t\t\t\turlAnchor.protocol + \"//\" + urlAnchor.host;\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// If there is an error parsing the URL, assume it is crossDomain,\n\t\t\t\t// it can be rejected by the transport if it is invalid\n\t\t\t\ts.crossDomain = true;\n\t\t\t}\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefilter, stop there\n\t\tif ( completed ) {\n\t\t\treturn jqXHR;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)\n\t\tfireGlobals = jQuery.event && s.global;\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t}\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Save the URL in case we're toying with the If-Modified-Since\n\t\t// and/or If-None-Match header later on\n\t\t// Remove hash to simplify url manipulation\n\t\tcacheURL = s.url.replace( rhash, \"\" );\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// Remember the hash so we can put it back\n\t\t\tuncached = s.url.slice( cacheURL.length );\n\n\t\t\t// If data is available, append data to url\n\t\t\tif ( s.data ) {\n\t\t\t\tcacheURL += ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data;\n\n\t\t\t\t// #9682: remove data so that it's not used in an eventual retry\n\t\t\t\tdelete s.data;\n\t\t\t}\n\n\t\t\t// Add or update anti-cache param if needed\n\t\t\tif ( s.cache === false ) {\n\t\t\t\tcacheURL = cacheURL.replace( rantiCache, \"$1\" );\n\t\t\t\tuncached = ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + ( nonce++ ) + uncached;\n\t\t\t}\n\n\t\t\t// Put hash and anti-cache on the URL that will be requested (gh-1732)\n\t\t\ts.url = cacheURL + uncached;\n\n\t\t// Change '%20' to '+' if this is encoded form body content (gh-2658)\n\t\t} else if ( s.data && s.processData &&\n\t\t\t( s.contentType || \"\" ).indexOf( \"application/x-www-form-urlencoded\" ) === 0 ) {\n\t\t\ts.data = s.data.replace( r20, \"+\" );\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\n\t\t\t}\n\t\t\tif ( jQuery.etag[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\tjqXHR.setRequestHeader(\n\t\t\t\"Accept\",\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\n\t\t\t\ts.accepts[ s.dataTypes[ 0 ] ] +\n\t\t\t\t\t( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\ts.accepts[ \"*\" ]\n\t\t);\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend &&\n\t\t\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {\n\n\t\t\t// Abort if not done already and return\n\t\t\treturn jqXHR.abort();\n\t\t}\n\n\t\t// Aborting is no longer a cancellation\n\t\tstrAbort = \"abort\";\n\n\t\t// Install callbacks on deferreds\n\t\tcompleteDeferred.add( s.complete );\n\t\tjqXHR.done( s.success );\n\t\tjqXHR.fail( s.error );\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\n\t\t\t// If request was aborted inside ajaxSend, stop there\n\t\t\tif ( completed ) {\n\t\t\t\treturn jqXHR;\n\t\t\t}\n\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = window.setTimeout( function() {\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tcompleted = false;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// Rethrow post-completion exceptions\n\t\t\t\tif ( completed ) {\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\n\t\t\t\t// Propagate others as results\n\t\t\t\tdone( -1, e );\n\t\t\t}\n\t\t}\n\n\t\t// Callback for when everything is done\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t// Ignore repeat invocations\n\t\t\tif ( completed ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcompleted = true;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\twindow.clearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t// Determine if successful\n\t\t\tisSuccess = status >= 200 && status < 300 || status === 304;\n\n\t\t\t// Get response data\n\t\t\tif ( responses ) {\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t}\n\n\t\t\t// Convert no matter what (that way responseXXX fields are always set)\n\t\t\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( isSuccess ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"Last-Modified\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"etag\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if no content\n\t\t\t\tif ( status === 204 || s.type === \"HEAD\" ) {\n\t\t\t\t\tstatusText = \"nocontent\";\n\n\t\t\t\t// if not modified\n\t\t\t\t} else if ( status === 304 ) {\n\t\t\t\t\tstatusText = \"notmodified\";\n\n\t\t\t\t// If we have data, let's convert it\n\t\t\t\t} else {\n\t\t\t\t\tstatusText = response.state;\n\t\t\t\t\tsuccess = response.data;\n\t\t\t\t\terror = response.error;\n\t\t\t\t\tisSuccess = !error;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// Extract error from statusText and normalize for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif ( status || !statusText ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\n\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t},\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t}\n} );\n\njQuery.each( [ \"get\", \"post\" ], function( i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\n\t\t// Shift arguments if data argument was omitted\n\t\tif ( jQuery.isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\t// The url can be an options object (which then must have .url)\n\t\treturn jQuery.ajax( jQuery.extend( {\n\t\t\turl: url,\n\t\t\ttype: method,\n\t\t\tdataType: type,\n\t\t\tdata: data,\n\t\t\tsuccess: callback\n\t\t}, jQuery.isPlainObject( url ) && url ) );\n\t};\n} );\n\n\njQuery._evalUrl = function( url ) {\n\treturn jQuery.ajax( {\n\t\turl: url,\n\n\t\t// Make this explicit, since user can override this through ajaxSetup (#11264)\n\t\ttype: \"GET\",\n\t\tdataType: \"script\",\n\t\tcache: true,\n\t\tasync: false,\n\t\tglobal: false,\n\t\t\"throws\": true\n\t} );\n};\n\n\njQuery.fn.extend( {\n\twrapAll: function( html ) {\n\t\tvar wrap;\n\n\t\tif ( this[ 0 ] ) {\n\t\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\t\thtml = html.call( this[ 0 ] );\n\t\t\t}\n\n\t\t\t// The elements to wrap the target around\n\t\t\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\n\n\t\t\tif ( this[ 0 ].parentNode ) {\n\t\t\t\twrap.insertBefore( this[ 0 ] );\n\t\t\t}\n\n\t\t\twrap.map( function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstElementChild ) {\n\t\t\t\t\telem = elem.firstElementChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t} ).append( this );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).wrapInner( html.call( this, i ) );\n\t\t\t} );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t} );\n\t},\n\n\twrap: function( html ) {\n\t\tvar isFunction = jQuery.isFunction( html );\n\n\t\treturn this.each( function( i ) {\n\t\t\tjQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );\n\t\t} );\n\t},\n\n\tunwrap: function( selector ) {\n\t\tthis.parent( selector ).not( \"body\" ).each( function() {\n\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t} );\n\t\treturn this;\n\t}\n} );\n\n\njQuery.expr.pseudos.hidden = function( elem ) {\n\treturn !jQuery.expr.pseudos.visible( elem );\n};\njQuery.expr.pseudos.visible = function( elem ) {\n\treturn !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\n};\n\n\n\n\njQuery.ajaxSettings.xhr = function() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch ( e ) {}\n};\n\nvar xhrSuccessStatus = {\n\n\t\t// File protocol always yields status code 0, assume 200\n\t\t0: 200,\n\n\t\t// Support: IE <=9 only\n\t\t// #1450: sometimes IE returns 1223 when it should be 204\n\t\t1223: 204\n\t},\n\txhrSupported = jQuery.ajaxSettings.xhr();\n\nsupport.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\nsupport.ajax = xhrSupported = !!xhrSupported;\n\njQuery.ajaxTransport( function( options ) {\n\tvar callback, errorCallback;\n\n\t// Cross domain only allowed if supported through XMLHttpRequest\n\tif ( support.cors || xhrSupported && !options.crossDomain ) {\n\t\treturn {\n\t\t\tsend: function( headers, complete ) {\n\t\t\t\tvar i,\n\t\t\t\t\txhr = options.xhr();\n\n\t\t\t\txhr.open(\n\t\t\t\t\toptions.type,\n\t\t\t\t\toptions.url,\n\t\t\t\t\toptions.async,\n\t\t\t\t\toptions.username,\n\t\t\t\t\toptions.password\n\t\t\t\t);\n\n\t\t\t\t// Apply custom fields if provided\n\t\t\t\tif ( options.xhrFields ) {\n\t\t\t\t\tfor ( i in options.xhrFields ) {\n\t\t\t\t\t\txhr[ i ] = options.xhrFields[ i ];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Override mime type if needed\n\t\t\t\tif ( options.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\txhr.overrideMimeType( options.mimeType );\n\t\t\t\t}\n\n\t\t\t\t// X-Requested-With header\n\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\n\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\n\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\n\t\t\t\t// For same-domain requests, won't change header if already provided.\n\t\t\t\tif ( !options.crossDomain && !headers[ \"X-Requested-With\" ] ) {\n\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\n\t\t\t\t}\n\n\t\t\t\t// Set headers\n\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t}\n\n\t\t\t\t// Callback\n\t\t\t\tcallback = function( type ) {\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\tcallback = errorCallback = xhr.onload =\n\t\t\t\t\t\t\t\txhr.onerror = xhr.onabort = xhr.onreadystatechange = null;\n\n\t\t\t\t\t\t\tif ( type === \"abort\" ) {\n\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t} else if ( type === \"error\" ) {\n\n\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t// On a manual native abort, IE9 throws\n\t\t\t\t\t\t\t\t// errors on any property access that is not readyState\n\t\t\t\t\t\t\t\tif ( typeof xhr.status !== \"number\" ) {\n\t\t\t\t\t\t\t\t\tcomplete( 0, \"error\" );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcomplete(\n\n\t\t\t\t\t\t\t\t\t\t// File: protocol always yields status 0; see #8605, #14207\n\t\t\t\t\t\t\t\t\t\txhr.status,\n\t\t\t\t\t\t\t\t\t\txhr.statusText\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcomplete(\n\t\t\t\t\t\t\t\t\txhrSuccessStatus[ xhr.status ] || xhr.status,\n\t\t\t\t\t\t\t\t\txhr.statusText,\n\n\t\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t\t// IE9 has no XHR2 but throws on binary (trac-11426)\n\t\t\t\t\t\t\t\t\t// For XHR2 non-text, let the caller handle it (gh-2498)\n\t\t\t\t\t\t\t\t\t( xhr.responseType || \"text\" ) !== \"text\"  ||\n\t\t\t\t\t\t\t\t\ttypeof xhr.responseText !== \"string\" ?\n\t\t\t\t\t\t\t\t\t\t{ binary: xhr.response } :\n\t\t\t\t\t\t\t\t\t\t{ text: xhr.responseText },\n\t\t\t\t\t\t\t\t\txhr.getAllResponseHeaders()\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t};\n\n\t\t\t\t// Listen to events\n\t\t\t\txhr.onload = callback();\n\t\t\t\terrorCallback = xhr.onerror = callback( \"error\" );\n\n\t\t\t\t// Support: IE 9 only\n\t\t\t\t// Use onreadystatechange to replace onabort\n\t\t\t\t// to handle uncaught aborts\n\t\t\t\tif ( xhr.onabort !== undefined ) {\n\t\t\t\t\txhr.onabort = errorCallback;\n\t\t\t\t} else {\n\t\t\t\t\txhr.onreadystatechange = function() {\n\n\t\t\t\t\t\t// Check readyState before timeout as it changes\n\t\t\t\t\t\tif ( xhr.readyState === 4 ) {\n\n\t\t\t\t\t\t\t// Allow onerror to be called first,\n\t\t\t\t\t\t\t// but that will not handle a native abort\n\t\t\t\t\t\t\t// Also, save errorCallback to a variable\n\t\t\t\t\t\t\t// as xhr.onerror cannot be accessed\n\t\t\t\t\t\t\twindow.setTimeout( function() {\n\t\t\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\t\t\terrorCallback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Create the abort callback\n\t\t\t\tcallback = callback( \"abort\" );\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Do send the request (this may raise an exception)\n\t\t\t\t\txhr.send( options.hasContent && options.data || null );\n\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t// #14683: Only rethrow if this hasn't been notified as an error yet\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\n// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\njQuery.ajaxPrefilter( function( s ) {\n\tif ( s.crossDomain ) {\n\t\ts.contents.script = false;\n\t}\n} );\n\n// Install script dataType\njQuery.ajaxSetup( {\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, \" +\n\t\t\t\"application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /\\b(?:java|ecma)script\\b/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n} );\n\n// Handle cache's special case and crossDomain\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t}\n} );\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function( s ) {\n\n\t// This transport only deals with cross domain requests\n\tif ( s.crossDomain ) {\n\t\tvar script, callback;\n\t\treturn {\n\t\t\tsend: function( _, complete ) {\n\t\t\t\tscript = jQuery( \"<script>\" ).prop( {\n\t\t\t\t\tcharset: s.scriptCharset,\n\t\t\t\t\tsrc: s.url\n\t\t\t\t} ).on(\n\t\t\t\t\t\"load error\",\n\t\t\t\t\tcallback = function( evt ) {\n\t\t\t\t\t\tscript.remove();\n\t\t\t\t\t\tcallback = null;\n\t\t\t\t\t\tif ( evt ) {\n\t\t\t\t\t\t\tcomplete( evt.type === \"error\" ? 404 : 200, evt.type );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\n\t\t\t\tdocument.head.appendChild( script[ 0 ] );\n\t\t\t},\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\nvar oldCallbacks = [],\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\n\n// Default jsonp settings\njQuery.ajaxSetup( {\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce++ ) );\n\t\tthis[ callback ] = true;\n\t\treturn callback;\n\t}\n} );\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar callbackName, overwritten, responseContainer,\n\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\n\t\t\t\"url\" :\n\t\t\ttypeof s.data === \"string\" &&\n\t\t\t\t( s.contentType || \"\" )\n\t\t\t\t\t.indexOf( \"application/x-www-form-urlencoded\" ) === 0 &&\n\t\t\t\trjsonp.test( s.data ) && \"data\"\n\t\t);\n\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\n\n\t\t// Get callback name, remembering preexisting value associated with it\n\t\tcallbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?\n\t\t\ts.jsonpCallback() :\n\t\t\ts.jsonpCallback;\n\n\t\t// Insert callback into url or form data\n\t\tif ( jsonProp ) {\n\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( s.jsonp !== false ) {\n\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t}\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[ \"script json\" ] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// Force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Install callback\n\t\toverwritten = window[ callbackName ];\n\t\twindow[ callbackName ] = function() {\n\t\t\tresponseContainer = arguments;\n\t\t};\n\n\t\t// Clean-up function (fires after converters)\n\t\tjqXHR.always( function() {\n\n\t\t\t// If previous value didn't exist - remove it\n\t\t\tif ( overwritten === undefined ) {\n\t\t\t\tjQuery( window ).removeProp( callbackName );\n\n\t\t\t// Otherwise restore preexisting value\n\t\t\t} else {\n\t\t\t\twindow[ callbackName ] = overwritten;\n\t\t\t}\n\n\t\t\t// Save back as free\n\t\t\tif ( s[ callbackName ] ) {\n\n\t\t\t\t// Make sure that re-using the options doesn't screw things around\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t// Save the callback name for future use\n\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t}\n\n\t\t\t// Call if it was a function and we have a response\n\t\t\tif ( responseContainer && jQuery.isFunction( overwritten ) ) {\n\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t}\n\n\t\t\tresponseContainer = overwritten = undefined;\n\t\t} );\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n} );\n\n\n\n\n// Support: Safari 8 only\n// In Safari 8 documents created via document.implementation.createHTMLDocument\n// collapse sibling forms: the second one becomes a child of the first one.\n// Because of that, this security measure has to be disabled in Safari 8.\n// https://bugs.webkit.org/show_bug.cgi?id=137337\nsupport.createHTMLDocument = ( function() {\n\tvar body = document.implementation.createHTMLDocument( \"\" ).body;\n\tbody.innerHTML = \"<form></form><form></form>\";\n\treturn body.childNodes.length === 2;\n} )();\n\n\n// Argument \"data\" should be string of html\n// context (optional): If specified, the fragment will be created in this context,\n// defaults to document\n// keepScripts (optional): If true, will include scripts passed in the html string\njQuery.parseHTML = function( data, context, keepScripts ) {\n\tif ( typeof data !== \"string\" ) {\n\t\treturn [];\n\t}\n\tif ( typeof context === \"boolean\" ) {\n\t\tkeepScripts = context;\n\t\tcontext = false;\n\t}\n\n\tvar base, parsed, scripts;\n\n\tif ( !context ) {\n\n\t\t// Stop scripts or inline event handlers from being executed immediately\n\t\t// by using document.implementation\n\t\tif ( support.createHTMLDocument ) {\n\t\t\tcontext = document.implementation.createHTMLDocument( \"\" );\n\n\t\t\t// Set the base href for the created document\n\t\t\t// so any parsed elements with URLs\n\t\t\t// are based on the document's URL (gh-2965)\n\t\t\tbase = context.createElement( \"base\" );\n\t\t\tbase.href = document.location.href;\n\t\t\tcontext.head.appendChild( base );\n\t\t} else {\n\t\t\tcontext = document;\n\t\t}\n\t}\n\n\tparsed = rsingleTag.exec( data );\n\tscripts = !keepScripts && [];\n\n\t// Single tag\n\tif ( parsed ) {\n\t\treturn [ context.createElement( parsed[ 1 ] ) ];\n\t}\n\n\tparsed = buildFragment( [ data ], context, scripts );\n\n\tif ( scripts && scripts.length ) {\n\t\tjQuery( scripts ).remove();\n\t}\n\n\treturn jQuery.merge( [], parsed.childNodes );\n};\n\n\n/**\n * Load a url into a page\n */\njQuery.fn.load = function( url, params, callback ) {\n\tvar selector, type, response,\n\t\tself = this,\n\t\toff = url.indexOf( \" \" );\n\n\tif ( off > -1 ) {\n\t\tselector = stripAndCollapse( url.slice( off ) );\n\t\turl = url.slice( 0, off );\n\t}\n\n\t// If it's a function\n\tif ( jQuery.isFunction( params ) ) {\n\n\t\t// We assume that it's the callback\n\t\tcallback = params;\n\t\tparams = undefined;\n\n\t// Otherwise, build a param string\n\t} else if ( params && typeof params === \"object\" ) {\n\t\ttype = \"POST\";\n\t}\n\n\t// If we have elements to modify, make the request\n\tif ( self.length > 0 ) {\n\t\tjQuery.ajax( {\n\t\t\turl: url,\n\n\t\t\t// If \"type\" variable is undefined, then \"GET\" method will be used.\n\t\t\t// Make value of this field explicit since\n\t\t\t// user can override it through ajaxSetup method\n\t\t\ttype: type || \"GET\",\n\t\t\tdataType: \"html\",\n\t\t\tdata: params\n\t\t} ).done( function( responseText ) {\n\n\t\t\t// Save response for use in complete callback\n\t\t\tresponse = arguments;\n\n\t\t\tself.html( selector ?\n\n\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\n\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\n\t\t\t\tjQuery( \"<div>\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\n\n\t\t\t\t// Otherwise use the full result\n\t\t\t\tresponseText );\n\n\t\t// If the request succeeds, this function gets \"data\", \"status\", \"jqXHR\"\n\t\t// but they are ignored because response was set above.\n\t\t// If it fails, this function gets \"jqXHR\", \"status\", \"error\"\n\t\t} ).always( callback && function( jqXHR, status ) {\n\t\t\tself.each( function() {\n\t\t\t\tcallback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t\t} );\n\t\t} );\n\t}\n\n\treturn this;\n};\n\n\n\n\n// Attach a bunch of functions for handling common AJAX events\njQuery.each( [\n\t\"ajaxStart\",\n\t\"ajaxStop\",\n\t\"ajaxComplete\",\n\t\"ajaxError\",\n\t\"ajaxSuccess\",\n\t\"ajaxSend\"\n], function( i, type ) {\n\tjQuery.fn[ type ] = function( fn ) {\n\t\treturn this.on( type, fn );\n\t};\n} );\n\n\n\n\njQuery.expr.pseudos.animated = function( elem ) {\n\treturn jQuery.grep( jQuery.timers, function( fn ) {\n\t\treturn elem === fn.elem;\n\t} ).length;\n};\n\n\n\n\njQuery.offset = {\n\tsetOffset: function( elem, options, i ) {\n\t\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\n\t\t\tposition = jQuery.css( elem, \"position\" ),\n\t\t\tcurElem = jQuery( elem ),\n\t\t\tprops = {};\n\n\t\t// Set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tcurOffset = curElem.offset();\n\t\tcurCSSTop = jQuery.css( elem, \"top\" );\n\t\tcurCSSLeft = jQuery.css( elem, \"left\" );\n\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) &&\n\t\t\t( curCSSTop + curCSSLeft ).indexOf( \"auto\" ) > -1;\n\n\t\t// Need to be able to calculate position if either\n\t\t// top or left is auto and position is either absolute or fixed\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t\tcurTop = curPosition.top;\n\t\t\tcurLeft = curPosition.left;\n\n\t\t} else {\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t}\n\n\t\tif ( jQuery.isFunction( options ) ) {\n\n\t\t\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\n\t\t\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\n\t\t}\n\n\t\tif ( options.top != null ) {\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t}\n\t\tif ( options.left != null ) {\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\njQuery.fn.extend( {\n\toffset: function( options ) {\n\n\t\t// Preserve chaining for setter\n\t\tif ( arguments.length ) {\n\t\t\treturn options === undefined ?\n\t\t\t\tthis :\n\t\t\t\tthis.each( function( i ) {\n\t\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t\t} );\n\t\t}\n\n\t\tvar doc, docElem, rect, win,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !elem ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Return zeros for disconnected and hidden (display: none) elements (gh-2310)\n\t\t// Support: IE <=11 only\n\t\t// Running getBoundingClientRect on a\n\t\t// disconnected node in IE throws an error\n\t\tif ( !elem.getClientRects().length ) {\n\t\t\treturn { top: 0, left: 0 };\n\t\t}\n\n\t\trect = elem.getBoundingClientRect();\n\n\t\tdoc = elem.ownerDocument;\n\t\tdocElem = doc.documentElement;\n\t\twin = doc.defaultView;\n\n\t\treturn {\n\t\t\ttop: rect.top + win.pageYOffset - docElem.clientTop,\n\t\t\tleft: rect.left + win.pageXOffset - docElem.clientLeft\n\t\t};\n\t},\n\n\tposition: function() {\n\t\tif ( !this[ 0 ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar offsetParent, offset,\n\t\t\telem = this[ 0 ],\n\t\t\tparentOffset = { top: 0, left: 0 };\n\n\t\t// Fixed elements are offset from window (parentOffset = {top:0, left: 0},\n\t\t// because it is its only offset parent\n\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\n\n\t\t\t// Assume getBoundingClientRect is there when computed position is fixed\n\t\t\toffset = elem.getBoundingClientRect();\n\n\t\t} else {\n\n\t\t\t// Get *real* offsetParent\n\t\t\toffsetParent = this.offsetParent();\n\n\t\t\t// Get correct offsets\n\t\t\toffset = this.offset();\n\t\t\tif ( !nodeName( offsetParent[ 0 ], \"html\" ) ) {\n\t\t\t\tparentOffset = offsetParent.offset();\n\t\t\t}\n\n\t\t\t// Add offsetParent borders\n\t\t\tparentOffset = {\n\t\t\t\ttop: parentOffset.top + jQuery.css( offsetParent[ 0 ], \"borderTopWidth\", true ),\n\t\t\t\tleft: parentOffset.left + jQuery.css( offsetParent[ 0 ], \"borderLeftWidth\", true )\n\t\t\t};\n\t\t}\n\n\t\t// Subtract parent offsets and element margins\n\t\treturn {\n\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\n\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true )\n\t\t};\n\t},\n\n\t// This method will return documentElement in the following cases:\n\t// 1) For the element inside the iframe without offsetParent, this method will return\n\t//    documentElement of the parent window\n\t// 2) For the hidden or detached element\n\t// 3) For body or html element, i.e. in case of the html node - it will return itself\n\t//\n\t// but those exceptions were never presented as a real life use-cases\n\t// and might be considered as more preferable results.\n\t//\n\t// This logic, however, is not guaranteed and can change at any point in the future\n\toffsetParent: function() {\n\t\treturn this.map( function() {\n\t\t\tvar offsetParent = this.offsetParent;\n\n\t\t\twhile ( offsetParent && jQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\n\t\t\treturn offsetParent || documentElement;\n\t\t} );\n\t}\n} );\n\n// Create scrollLeft and scrollTop methods\njQuery.each( { scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\" }, function( method, prop ) {\n\tvar top = \"pageYOffset\" === prop;\n\n\tjQuery.fn[ method ] = function( val ) {\n\t\treturn access( this, function( elem, method, val ) {\n\n\t\t\t// Coalesce documents and windows\n\t\t\tvar win;\n\t\t\tif ( jQuery.isWindow( elem ) ) {\n\t\t\t\twin = elem;\n\t\t\t} else if ( elem.nodeType === 9 ) {\n\t\t\t\twin = elem.defaultView;\n\t\t\t}\n\n\t\t\tif ( val === undefined ) {\n\t\t\t\treturn win ? win[ prop ] : elem[ method ];\n\t\t\t}\n\n\t\t\tif ( win ) {\n\t\t\t\twin.scrollTo(\n\t\t\t\t\t!top ? val : win.pageXOffset,\n\t\t\t\t\ttop ? val : win.pageYOffset\n\t\t\t\t);\n\n\t\t\t} else {\n\t\t\t\telem[ method ] = val;\n\t\t\t}\n\t\t}, method, val, arguments.length );\n\t};\n} );\n\n// Support: Safari <=7 - 9.1, Chrome <=37 - 49\n// Add the top/left cssHooks using jQuery.fn.position\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\n// getComputedStyle returns percent when specified for top/left/bottom/right;\n// rather than make the css module depend on the offset module, just check for it here\njQuery.each( [ \"top\", \"left\" ], function( i, prop ) {\n\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\n\t\tfunction( elem, computed ) {\n\t\t\tif ( computed ) {\n\t\t\t\tcomputed = curCSS( elem, prop );\n\n\t\t\t\t// If curCSS returns percentage, fallback to offset\n\t\t\t\treturn rnumnonpx.test( computed ) ?\n\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\n\t\t\t\t\tcomputed;\n\t\t\t}\n\t\t}\n\t);\n} );\n\n\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\tjQuery.each( { padding: \"inner\" + name, content: type, \"\": \"outer\" + name },\n\t\tfunction( defaultExtra, funcName ) {\n\n\t\t// Margin is only for outerHeight, outerWidth\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\treturn access( this, function( elem, type, value ) {\n\t\t\t\tvar doc;\n\n\t\t\t\tif ( jQuery.isWindow( elem ) ) {\n\n\t\t\t\t\t// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\n\t\t\t\t\treturn funcName.indexOf( \"outer\" ) === 0 ?\n\t\t\t\t\t\telem[ \"inner\" + name ] :\n\t\t\t\t\t\telem.document.documentElement[ \"client\" + name ];\n\t\t\t\t}\n\n\t\t\t\t// Get document width or height\n\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\n\t\t\t\t\t// whichever is greatest\n\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value === undefined ?\n\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\tjQuery.css( elem, type, extra ) :\n\n\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t}, type, chainable ? margin : undefined, chainable );\n\t\t};\n\t} );\n} );\n\n\njQuery.fn.extend( {\n\n\tbind: function( types, data, fn ) {\n\t\treturn this.on( types, null, data, fn );\n\t},\n\tunbind: function( types, fn ) {\n\t\treturn this.off( types, null, fn );\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.on( types, selector, data, fn );\n\t},\n\tundelegate: function( selector, types, fn ) {\n\n\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\treturn arguments.length === 1 ?\n\t\t\tthis.off( selector, \"**\" ) :\n\t\t\tthis.off( types, selector || \"**\", fn );\n\t}\n} );\n\njQuery.holdReady = function( hold ) {\n\tif ( hold ) {\n\t\tjQuery.readyWait++;\n\t} else {\n\t\tjQuery.ready( true );\n\t}\n};\njQuery.isArray = Array.isArray;\njQuery.parseJSON = JSON.parse;\njQuery.nodeName = nodeName;\n\n\n\n\n// Register as a named AMD module, since jQuery can be concatenated with other\n// files that may use define, but not via a proper concatenation script that\n// understands anonymous AMD modules. A named AMD is safest and most robust\n// way to register. Lowercase jquery is used because AMD module names are\n// derived from file names, and jQuery is normally delivered in a lowercase\n// file name. Do this after creating the global so that if an AMD module wants\n// to call noConflict to hide this version of jQuery, it will work.\n\n// Note that for maximum portability, libraries that are not jQuery should\n// declare themselves as anonymous modules, and avoid setting a global if an\n// AMD loader is present. jQuery is a special case. For more information, see\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\n\nif ( typeof define === \"function\" && define.amd ) {\n\tdefine( \"jquery\", [], function() {\n\t\treturn jQuery;\n\t} );\n}\n\n\n\n\nvar\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$;\n\njQuery.noConflict = function( deep ) {\n\tif ( window.$ === jQuery ) {\n\t\twindow.$ = _$;\n\t}\n\n\tif ( deep && window.jQuery === jQuery ) {\n\t\twindow.jQuery = _jQuery;\n\t}\n\n\treturn jQuery;\n};\n\n// Expose jQuery and $ identifiers, even in AMD\n// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\n// and CommonJS for browser emulators (#13566)\nif ( !noGlobal ) {\n\twindow.jQuery = window.$ = jQuery;\n}\n\n\n\n\nreturn jQuery;\n} );\n"
  },
  {
    "path": "test/bench/fixtures/react-dom.js",
    "content": " /**\n  * ReactDOM v15.5.4\n  */\n\n;(function(f) {\n  // CommonJS\n  if (typeof exports === \"object\" && typeof module !== \"undefined\") {\n    module.exports = f(require('react'));\n\n  // RequireJS\n  } else if (typeof define === \"function\" && define.amd) {\n    define(['react'], f);\n\n  // <script>\n  } else {\n    var g;\n    if (typeof window !== \"undefined\") {\n      g = window;\n    } else if (typeof global !== \"undefined\") {\n      g = global;\n    } else if (typeof self !== \"undefined\") {\n      g = self;\n    } else {\n      // works providing we're not in \"use strict\";\n      // needed for Java 8 Nashorn\n      // see https://github.com/facebook/react/issues/3037\n      g = this;\n    }\n    g.ReactDOM = f(g.React);\n  }\n})(function(React) {\n  return (function(f){return f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ARIADOMPropertyConfig = {\n  Properties: {\n    // Global States and Properties\n    'aria-current': 0, // state\n    'aria-details': 0,\n    'aria-disabled': 0, // state\n    'aria-hidden': 0, // state\n    'aria-invalid': 0, // state\n    'aria-keyshortcuts': 0,\n    'aria-label': 0,\n    'aria-roledescription': 0,\n    // Widget Attributes\n    'aria-autocomplete': 0,\n    'aria-checked': 0,\n    'aria-expanded': 0,\n    'aria-haspopup': 0,\n    'aria-level': 0,\n    'aria-modal': 0,\n    'aria-multiline': 0,\n    'aria-multiselectable': 0,\n    'aria-orientation': 0,\n    'aria-placeholder': 0,\n    'aria-pressed': 0,\n    'aria-readonly': 0,\n    'aria-required': 0,\n    'aria-selected': 0,\n    'aria-sort': 0,\n    'aria-valuemax': 0,\n    'aria-valuemin': 0,\n    'aria-valuenow': 0,\n    'aria-valuetext': 0,\n    // Live Region Attributes\n    'aria-atomic': 0,\n    'aria-busy': 0,\n    'aria-live': 0,\n    'aria-relevant': 0,\n    // Drag-and-Drop Attributes\n    'aria-dropeffect': 0,\n    'aria-grabbed': 0,\n    // Relationship Attributes\n    'aria-activedescendant': 0,\n    'aria-colcount': 0,\n    'aria-colindex': 0,\n    'aria-colspan': 0,\n    'aria-controls': 0,\n    'aria-describedby': 0,\n    'aria-errormessage': 0,\n    'aria-flowto': 0,\n    'aria-labelledby': 0,\n    'aria-owns': 0,\n    'aria-posinset': 0,\n    'aria-rowcount': 0,\n    'aria-rowindex': 0,\n    'aria-rowspan': 0,\n    'aria-setsize': 0\n  },\n  DOMAttributeNames: {},\n  DOMPropertyNames: {}\n};\n\nmodule.exports = ARIADOMPropertyConfig;\n},{}],2:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactDOMComponentTree = _dereq_(34);\n\nvar focusNode = _dereq_(144);\n\nvar AutoFocusUtils = {\n  focusDOMComponent: function () {\n    focusNode(ReactDOMComponentTree.getNodeFromInstance(this));\n  }\n};\n\nmodule.exports = AutoFocusUtils;\n},{\"144\":144,\"34\":34}],3:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPropagators = _dereq_(20);\nvar ExecutionEnvironment = _dereq_(136);\nvar FallbackCompositionState = _dereq_(21);\nvar SyntheticCompositionEvent = _dereq_(89);\nvar SyntheticInputEvent = _dereq_(93);\n\nvar END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space\nvar START_KEYCODE = 229;\n\nvar canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;\n\nvar documentMode = null;\nif (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {\n  documentMode = document.documentMode;\n}\n\n// Webkit offers a very useful `textInput` event that can be used to\n// directly represent `beforeInput`. The IE `textinput` event is not as\n// useful, so we don't use it.\nvar canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();\n\n// In IE9+, we have access to composition events, but the data supplied\n// by the native compositionend event may be incorrect. Japanese ideographic\n// spaces, for instance (\\u3000) are not recorded correctly.\nvar useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);\n\n/**\n * Opera <= 12 includes TextEvent in window, but does not fire\n * text input events. Rely on keypress instead.\n */\nfunction isPresto() {\n  var opera = window.opera;\n  return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;\n}\n\nvar SPACEBAR_CODE = 32;\nvar SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);\n\n// Events and their corresponding property names.\nvar eventTypes = {\n  beforeInput: {\n    phasedRegistrationNames: {\n      bubbled: 'onBeforeInput',\n      captured: 'onBeforeInputCapture'\n    },\n    dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']\n  },\n  compositionEnd: {\n    phasedRegistrationNames: {\n      bubbled: 'onCompositionEnd',\n      captured: 'onCompositionEndCapture'\n    },\n    dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']\n  },\n  compositionStart: {\n    phasedRegistrationNames: {\n      bubbled: 'onCompositionStart',\n      captured: 'onCompositionStartCapture'\n    },\n    dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']\n  },\n  compositionUpdate: {\n    phasedRegistrationNames: {\n      bubbled: 'onCompositionUpdate',\n      captured: 'onCompositionUpdateCapture'\n    },\n    dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']\n  }\n};\n\n// Track whether we've ever handled a keypress on the space key.\nvar hasSpaceKeypress = false;\n\n/**\n * Return whether a native keypress event is assumed to be a command.\n * This is required because Firefox fires `keypress` events for key commands\n * (cut, copy, select-all, etc.) even though no character is inserted.\n */\nfunction isKeypressCommand(nativeEvent) {\n  return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&\n  // ctrlKey && altKey is equivalent to AltGr, and is not a command.\n  !(nativeEvent.ctrlKey && nativeEvent.altKey);\n}\n\n/**\n * Translate native top level events into event types.\n *\n * @param {string} topLevelType\n * @return {object}\n */\nfunction getCompositionEventType(topLevelType) {\n  switch (topLevelType) {\n    case 'topCompositionStart':\n      return eventTypes.compositionStart;\n    case 'topCompositionEnd':\n      return eventTypes.compositionEnd;\n    case 'topCompositionUpdate':\n      return eventTypes.compositionUpdate;\n  }\n}\n\n/**\n * Does our fallback best-guess model think this event signifies that\n * composition has begun?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isFallbackCompositionStart(topLevelType, nativeEvent) {\n  return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;\n}\n\n/**\n * Does our fallback mode think that this event is the end of composition?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isFallbackCompositionEnd(topLevelType, nativeEvent) {\n  switch (topLevelType) {\n    case 'topKeyUp':\n      // Command keys insert or clear IME input.\n      return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;\n    case 'topKeyDown':\n      // Expect IME keyCode on each keydown. If we get any other\n      // code we must have exited earlier.\n      return nativeEvent.keyCode !== START_KEYCODE;\n    case 'topKeyPress':\n    case 'topMouseDown':\n    case 'topBlur':\n      // Events are not possible without cancelling IME.\n      return true;\n    default:\n      return false;\n  }\n}\n\n/**\n * Google Input Tools provides composition data via a CustomEvent,\n * with the `data` property populated in the `detail` object. If this\n * is available on the event object, use it. If not, this is a plain\n * composition event and we have nothing special to extract.\n *\n * @param {object} nativeEvent\n * @return {?string}\n */\nfunction getDataFromCustomEvent(nativeEvent) {\n  var detail = nativeEvent.detail;\n  if (typeof detail === 'object' && 'data' in detail) {\n    return detail.data;\n  }\n  return null;\n}\n\n// Track the current IME composition fallback object, if any.\nvar currentComposition = null;\n\n/**\n * @return {?object} A SyntheticCompositionEvent.\n */\nfunction extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n  var eventType;\n  var fallbackData;\n\n  if (canUseCompositionEvent) {\n    eventType = getCompositionEventType(topLevelType);\n  } else if (!currentComposition) {\n    if (isFallbackCompositionStart(topLevelType, nativeEvent)) {\n      eventType = eventTypes.compositionStart;\n    }\n  } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n    eventType = eventTypes.compositionEnd;\n  }\n\n  if (!eventType) {\n    return null;\n  }\n\n  if (useFallbackCompositionData) {\n    // The current composition is stored statically and must not be\n    // overwritten while composition continues.\n    if (!currentComposition && eventType === eventTypes.compositionStart) {\n      currentComposition = FallbackCompositionState.getPooled(nativeEventTarget);\n    } else if (eventType === eventTypes.compositionEnd) {\n      if (currentComposition) {\n        fallbackData = currentComposition.getData();\n      }\n    }\n  }\n\n  var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);\n\n  if (fallbackData) {\n    // Inject data generated from fallback path into the synthetic event.\n    // This matches the property of native CompositionEventInterface.\n    event.data = fallbackData;\n  } else {\n    var customData = getDataFromCustomEvent(nativeEvent);\n    if (customData !== null) {\n      event.data = customData;\n    }\n  }\n\n  EventPropagators.accumulateTwoPhaseDispatches(event);\n  return event;\n}\n\n/**\n * @param {string} topLevelType Record from `EventConstants`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The string corresponding to this `beforeInput` event.\n */\nfunction getNativeBeforeInputChars(topLevelType, nativeEvent) {\n  switch (topLevelType) {\n    case 'topCompositionEnd':\n      return getDataFromCustomEvent(nativeEvent);\n    case 'topKeyPress':\n      /**\n       * If native `textInput` events are available, our goal is to make\n       * use of them. However, there is a special case: the spacebar key.\n       * In Webkit, preventing default on a spacebar `textInput` event\n       * cancels character insertion, but it *also* causes the browser\n       * to fall back to its default spacebar behavior of scrolling the\n       * page.\n       *\n       * Tracking at:\n       * https://code.google.com/p/chromium/issues/detail?id=355103\n       *\n       * To avoid this issue, use the keypress event as if no `textInput`\n       * event is available.\n       */\n      var which = nativeEvent.which;\n      if (which !== SPACEBAR_CODE) {\n        return null;\n      }\n\n      hasSpaceKeypress = true;\n      return SPACEBAR_CHAR;\n\n    case 'topTextInput':\n      // Record the characters to be added to the DOM.\n      var chars = nativeEvent.data;\n\n      // If it's a spacebar character, assume that we have already handled\n      // it at the keypress level and bail immediately. Android Chrome\n      // doesn't give us keycodes, so we need to blacklist it.\n      if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {\n        return null;\n      }\n\n      return chars;\n\n    default:\n      // For other native event types, do nothing.\n      return null;\n  }\n}\n\n/**\n * For browsers that do not provide the `textInput` event, extract the\n * appropriate string to use for SyntheticInputEvent.\n *\n * @param {string} topLevelType Record from `EventConstants`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The fallback string for this `beforeInput` event.\n */\nfunction getFallbackBeforeInputChars(topLevelType, nativeEvent) {\n  // If we are currently composing (IME) and using a fallback to do so,\n  // try to extract the composed characters from the fallback object.\n  // If composition event is available, we extract a string only at\n  // compositionevent, otherwise extract it at fallback events.\n  if (currentComposition) {\n    if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n      var chars = currentComposition.getData();\n      FallbackCompositionState.release(currentComposition);\n      currentComposition = null;\n      return chars;\n    }\n    return null;\n  }\n\n  switch (topLevelType) {\n    case 'topPaste':\n      // If a paste event occurs after a keypress, throw out the input\n      // chars. Paste events should not lead to BeforeInput events.\n      return null;\n    case 'topKeyPress':\n      /**\n       * As of v27, Firefox may fire keypress events even when no character\n       * will be inserted. A few possibilities:\n       *\n       * - `which` is `0`. Arrow keys, Esc key, etc.\n       *\n       * - `which` is the pressed key code, but no char is available.\n       *   Ex: 'AltGr + d` in Polish. There is no modified character for\n       *   this key combination and no character is inserted into the\n       *   document, but FF fires the keypress for char code `100` anyway.\n       *   No `input` event will occur.\n       *\n       * - `which` is the pressed key code, but a command combination is\n       *   being used. Ex: `Cmd+C`. No character is inserted, and no\n       *   `input` event will occur.\n       */\n      if (nativeEvent.which && !isKeypressCommand(nativeEvent)) {\n        return String.fromCharCode(nativeEvent.which);\n      }\n      return null;\n    case 'topCompositionEnd':\n      return useFallbackCompositionData ? null : nativeEvent.data;\n    default:\n      return null;\n  }\n}\n\n/**\n * Extract a SyntheticInputEvent for `beforeInput`, based on either native\n * `textInput` or fallback behavior.\n *\n * @return {?object} A SyntheticInputEvent.\n */\nfunction extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n  var chars;\n\n  if (canUseTextInputEvent) {\n    chars = getNativeBeforeInputChars(topLevelType, nativeEvent);\n  } else {\n    chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);\n  }\n\n  // If no characters are being inserted, no BeforeInput event should\n  // be fired.\n  if (!chars) {\n    return null;\n  }\n\n  var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);\n\n  event.data = chars;\n  EventPropagators.accumulateTwoPhaseDispatches(event);\n  return event;\n}\n\n/**\n * Create an `onBeforeInput` event to match\n * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.\n *\n * This event plugin is based on the native `textInput` event\n * available in Chrome, Safari, Opera, and IE. This event fires after\n * `onKeyPress` and `onCompositionEnd`, but before `onInput`.\n *\n * `beforeInput` is spec'd but not implemented in any browsers, and\n * the `input` event does not provide any useful information about what has\n * actually been added, contrary to the spec. Thus, `textInput` is the best\n * available event to identify the characters that have actually been inserted\n * into the target node.\n *\n * This plugin is also responsible for emitting `composition` events, thus\n * allowing us to share composition fallback code for both `beforeInput` and\n * `composition` event types.\n */\nvar BeforeInputEventPlugin = {\n\n  eventTypes: eventTypes,\n\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];\n  }\n};\n\nmodule.exports = BeforeInputEventPlugin;\n},{\"136\":136,\"20\":20,\"21\":21,\"89\":89,\"93\":93}],4:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\n\nvar isUnitlessNumber = {\n  animationIterationCount: true,\n  borderImageOutset: true,\n  borderImageSlice: true,\n  borderImageWidth: true,\n  boxFlex: true,\n  boxFlexGroup: true,\n  boxOrdinalGroup: true,\n  columnCount: true,\n  flex: true,\n  flexGrow: true,\n  flexPositive: true,\n  flexShrink: true,\n  flexNegative: true,\n  flexOrder: true,\n  gridRow: true,\n  gridColumn: true,\n  fontWeight: true,\n  lineClamp: true,\n  lineHeight: true,\n  opacity: true,\n  order: true,\n  orphans: true,\n  tabSize: true,\n  widows: true,\n  zIndex: true,\n  zoom: true,\n\n  // SVG-related properties\n  fillOpacity: true,\n  floodOpacity: true,\n  stopOpacity: true,\n  strokeDasharray: true,\n  strokeDashoffset: true,\n  strokeMiterlimit: true,\n  strokeOpacity: true,\n  strokeWidth: true\n};\n\n/**\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\nfunction prefixKey(prefix, key) {\n  return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O'];\n\n// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n  prefixes.forEach(function (prefix) {\n    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n  });\n});\n\n/**\n * Most style properties can be unset by doing .style[prop] = '' but IE8\n * doesn't like doing that with shorthand properties so for the properties that\n * IE8 breaks on, which are listed here, we instead unset each of the\n * individual properties. See http://bugs.jquery.com/ticket/12385.\n * The 4-value 'clock' properties like margin, padding, border-width seem to\n * behave without any problems. Curiously, list-style works too without any\n * special prodding.\n */\nvar shorthandPropertyExpansions = {\n  background: {\n    backgroundAttachment: true,\n    backgroundColor: true,\n    backgroundImage: true,\n    backgroundPositionX: true,\n    backgroundPositionY: true,\n    backgroundRepeat: true\n  },\n  backgroundPosition: {\n    backgroundPositionX: true,\n    backgroundPositionY: true\n  },\n  border: {\n    borderWidth: true,\n    borderStyle: true,\n    borderColor: true\n  },\n  borderBottom: {\n    borderBottomWidth: true,\n    borderBottomStyle: true,\n    borderBottomColor: true\n  },\n  borderLeft: {\n    borderLeftWidth: true,\n    borderLeftStyle: true,\n    borderLeftColor: true\n  },\n  borderRight: {\n    borderRightWidth: true,\n    borderRightStyle: true,\n    borderRightColor: true\n  },\n  borderTop: {\n    borderTopWidth: true,\n    borderTopStyle: true,\n    borderTopColor: true\n  },\n  font: {\n    fontStyle: true,\n    fontVariant: true,\n    fontWeight: true,\n    fontSize: true,\n    lineHeight: true,\n    fontFamily: true\n  },\n  outline: {\n    outlineWidth: true,\n    outlineStyle: true,\n    outlineColor: true\n  }\n};\n\nvar CSSProperty = {\n  isUnitlessNumber: isUnitlessNumber,\n  shorthandPropertyExpansions: shorthandPropertyExpansions\n};\n\nmodule.exports = CSSProperty;\n},{}],5:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar CSSProperty = _dereq_(4);\nvar ExecutionEnvironment = _dereq_(136);\nvar ReactInstrumentation = _dereq_(64);\n\nvar camelizeStyleName = _dereq_(138);\nvar dangerousStyleValue = _dereq_(106);\nvar hyphenateStyleName = _dereq_(149);\nvar memoizeStringOnly = _dereq_(153);\nvar warning = _dereq_(157);\n\nvar processStyleName = memoizeStringOnly(function (styleName) {\n  return hyphenateStyleName(styleName);\n});\n\nvar hasShorthandPropertyBug = false;\nvar styleFloatAccessor = 'cssFloat';\nif (ExecutionEnvironment.canUseDOM) {\n  var tempStyle = document.createElement('div').style;\n  try {\n    // IE8 throws \"Invalid argument.\" if resetting shorthand style properties.\n    tempStyle.font = '';\n  } catch (e) {\n    hasShorthandPropertyBug = true;\n  }\n  // IE8 only supports accessing cssFloat (standard) as styleFloat\n  if (document.documentElement.style.cssFloat === undefined) {\n    styleFloatAccessor = 'styleFloat';\n  }\n}\n\nif (\"development\" !== 'production') {\n  // 'msTransform' is correct, but the other prefixes should be capitalized\n  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;\n\n  // style values shouldn't contain a semicolon\n  var badStyleValueWithSemicolonPattern = /;\\s*$/;\n\n  var warnedStyleNames = {};\n  var warnedStyleValues = {};\n  var warnedForNaNValue = false;\n\n  var warnHyphenatedStyleName = function (name, owner) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n    \"development\" !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0;\n  };\n\n  var warnBadVendoredStyleName = function (name, owner) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n    \"development\" !== 'production' ? warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0;\n  };\n\n  var warnStyleValueWithSemicolon = function (name, value, owner) {\n    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {\n      return;\n    }\n\n    warnedStyleValues[value] = true;\n    \"development\" !== 'production' ? warning(false, 'Style property values shouldn\\'t contain a semicolon.%s ' + 'Try \"%s: %s\" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;\n  };\n\n  var warnStyleValueIsNaN = function (name, value, owner) {\n    if (warnedForNaNValue) {\n      return;\n    }\n\n    warnedForNaNValue = true;\n    \"development\" !== 'production' ? warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;\n  };\n\n  var checkRenderMessage = function (owner) {\n    if (owner) {\n      var name = owner.getName();\n      if (name) {\n        return ' Check the render method of `' + name + '`.';\n      }\n    }\n    return '';\n  };\n\n  /**\n   * @param {string} name\n   * @param {*} value\n   * @param {ReactDOMComponent} component\n   */\n  var warnValidStyle = function (name, value, component) {\n    var owner;\n    if (component) {\n      owner = component._currentElement._owner;\n    }\n    if (name.indexOf('-') > -1) {\n      warnHyphenatedStyleName(name, owner);\n    } else if (badVendoredStyleNamePattern.test(name)) {\n      warnBadVendoredStyleName(name, owner);\n    } else if (badStyleValueWithSemicolonPattern.test(value)) {\n      warnStyleValueWithSemicolon(name, value, owner);\n    }\n\n    if (typeof value === 'number' && isNaN(value)) {\n      warnStyleValueIsNaN(name, value, owner);\n    }\n  };\n}\n\n/**\n * Operations for dealing with CSS properties.\n */\nvar CSSPropertyOperations = {\n\n  /**\n   * Serializes a mapping of style properties for use as inline styles:\n   *\n   *   > createMarkupForStyles({width: '200px', height: 0})\n   *   \"width:200px;height:0;\"\n   *\n   * Undefined values are ignored so that declarative programming is easier.\n   * The result should be HTML-escaped before insertion into the DOM.\n   *\n   * @param {object} styles\n   * @param {ReactDOMComponent} component\n   * @return {?string}\n   */\n  createMarkupForStyles: function (styles, component) {\n    var serialized = '';\n    for (var styleName in styles) {\n      if (!styles.hasOwnProperty(styleName)) {\n        continue;\n      }\n      var styleValue = styles[styleName];\n      if (\"development\" !== 'production') {\n        warnValidStyle(styleName, styleValue, component);\n      }\n      if (styleValue != null) {\n        serialized += processStyleName(styleName) + ':';\n        serialized += dangerousStyleValue(styleName, styleValue, component) + ';';\n      }\n    }\n    return serialized || null;\n  },\n\n  /**\n   * Sets the value for multiple styles on a node.  If a value is specified as\n   * '' (empty string), the corresponding style property will be unset.\n   *\n   * @param {DOMElement} node\n   * @param {object} styles\n   * @param {ReactDOMComponent} component\n   */\n  setValueForStyles: function (node, styles, component) {\n    if (\"development\" !== 'production') {\n      ReactInstrumentation.debugTool.onHostOperation({\n        instanceID: component._debugID,\n        type: 'update styles',\n        payload: styles\n      });\n    }\n\n    var style = node.style;\n    for (var styleName in styles) {\n      if (!styles.hasOwnProperty(styleName)) {\n        continue;\n      }\n      if (\"development\" !== 'production') {\n        warnValidStyle(styleName, styles[styleName], component);\n      }\n      var styleValue = dangerousStyleValue(styleName, styles[styleName], component);\n      if (styleName === 'float' || styleName === 'cssFloat') {\n        styleName = styleFloatAccessor;\n      }\n      if (styleValue) {\n        style[styleName] = styleValue;\n      } else {\n        var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName];\n        if (expansion) {\n          // Shorthand property that IE8 won't like unsetting, so unset each\n          // component to placate it\n          for (var individualStyleName in expansion) {\n            style[individualStyleName] = '';\n          }\n        } else {\n          style[styleName] = '';\n        }\n      }\n    }\n  }\n\n};\n\nmodule.exports = CSSPropertyOperations;\n},{\"106\":106,\"136\":136,\"138\":138,\"149\":149,\"153\":153,\"157\":157,\"4\":4,\"64\":64}],6:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar PooledClass = _dereq_(25);\n\nvar invariant = _dereq_(150);\n\n/**\n * A specialized pseudo-event module to help keep track of components waiting to\n * be notified when their DOM representations are available for use.\n *\n * This implements `PooledClass`, so you should never need to instantiate this.\n * Instead, use `CallbackQueue.getPooled()`.\n *\n * @class ReactMountReady\n * @implements PooledClass\n * @internal\n */\n\nvar CallbackQueue = function () {\n  function CallbackQueue(arg) {\n    _classCallCheck(this, CallbackQueue);\n\n    this._callbacks = null;\n    this._contexts = null;\n    this._arg = arg;\n  }\n\n  /**\n   * Enqueues a callback to be invoked when `notifyAll` is invoked.\n   *\n   * @param {function} callback Invoked when `notifyAll` is invoked.\n   * @param {?object} context Context to call `callback` with.\n   * @internal\n   */\n\n\n  CallbackQueue.prototype.enqueue = function enqueue(callback, context) {\n    this._callbacks = this._callbacks || [];\n    this._callbacks.push(callback);\n    this._contexts = this._contexts || [];\n    this._contexts.push(context);\n  };\n\n  /**\n   * Invokes all enqueued callbacks and clears the queue. This is invoked after\n   * the DOM representation of a component has been created or updated.\n   *\n   * @internal\n   */\n\n\n  CallbackQueue.prototype.notifyAll = function notifyAll() {\n    var callbacks = this._callbacks;\n    var contexts = this._contexts;\n    var arg = this._arg;\n    if (callbacks && contexts) {\n      !(callbacks.length === contexts.length) ? \"development\" !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;\n      this._callbacks = null;\n      this._contexts = null;\n      for (var i = 0; i < callbacks.length; i++) {\n        callbacks[i].call(contexts[i], arg);\n      }\n      callbacks.length = 0;\n      contexts.length = 0;\n    }\n  };\n\n  CallbackQueue.prototype.checkpoint = function checkpoint() {\n    return this._callbacks ? this._callbacks.length : 0;\n  };\n\n  CallbackQueue.prototype.rollback = function rollback(len) {\n    if (this._callbacks && this._contexts) {\n      this._callbacks.length = len;\n      this._contexts.length = len;\n    }\n  };\n\n  /**\n   * Resets the internal queue.\n   *\n   * @internal\n   */\n\n\n  CallbackQueue.prototype.reset = function reset() {\n    this._callbacks = null;\n    this._contexts = null;\n  };\n\n  /**\n   * `PooledClass` looks for this.\n   */\n\n\n  CallbackQueue.prototype.destructor = function destructor() {\n    this.reset();\n  };\n\n  return CallbackQueue;\n}();\n\nmodule.exports = PooledClass.addPoolingTo(CallbackQueue);\n},{\"124\":124,\"150\":150,\"25\":25}],7:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPluginHub = _dereq_(17);\nvar EventPropagators = _dereq_(20);\nvar ExecutionEnvironment = _dereq_(136);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactUpdates = _dereq_(82);\nvar SyntheticEvent = _dereq_(91);\n\nvar getEventTarget = _dereq_(114);\nvar isEventSupported = _dereq_(121);\nvar isTextInputElement = _dereq_(122);\n\nvar eventTypes = {\n  change: {\n    phasedRegistrationNames: {\n      bubbled: 'onChange',\n      captured: 'onChangeCapture'\n    },\n    dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']\n  }\n};\n\n/**\n * For IE shims\n */\nvar activeElement = null;\nvar activeElementInst = null;\nvar activeElementValue = null;\nvar activeElementValueProp = null;\n\n/**\n * SECTION: handle `change` event\n */\nfunction shouldUseChangeEvent(elem) {\n  var nodeName = elem.nodeName && elem.nodeName.toLowerCase();\n  return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';\n}\n\nvar doesChangeEventBubble = false;\nif (ExecutionEnvironment.canUseDOM) {\n  // See `handleChange` comment below\n  doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8);\n}\n\nfunction manualDispatchChangeEvent(nativeEvent) {\n  var event = SyntheticEvent.getPooled(eventTypes.change, activeElementInst, nativeEvent, getEventTarget(nativeEvent));\n  EventPropagators.accumulateTwoPhaseDispatches(event);\n\n  // If change and propertychange bubbled, we'd just bind to it like all the\n  // other events and have it go through ReactBrowserEventEmitter. Since it\n  // doesn't, we manually listen for the events and so we have to enqueue and\n  // process the abstract event manually.\n  //\n  // Batching is necessary here in order to ensure that all event handlers run\n  // before the next rerender (including event handlers attached to ancestor\n  // elements instead of directly on the input). Without this, controlled\n  // components don't work properly in conjunction with event bubbling because\n  // the component is rerendered and the value reverted before all the event\n  // handlers can run. See https://github.com/facebook/react/issues/708.\n  ReactUpdates.batchedUpdates(runEventInBatch, event);\n}\n\nfunction runEventInBatch(event) {\n  EventPluginHub.enqueueEvents(event);\n  EventPluginHub.processEventQueue(false);\n}\n\nfunction startWatchingForChangeEventIE8(target, targetInst) {\n  activeElement = target;\n  activeElementInst = targetInst;\n  activeElement.attachEvent('onchange', manualDispatchChangeEvent);\n}\n\nfunction stopWatchingForChangeEventIE8() {\n  if (!activeElement) {\n    return;\n  }\n  activeElement.detachEvent('onchange', manualDispatchChangeEvent);\n  activeElement = null;\n  activeElementInst = null;\n}\n\nfunction getTargetInstForChangeEvent(topLevelType, targetInst) {\n  if (topLevelType === 'topChange') {\n    return targetInst;\n  }\n}\nfunction handleEventsForChangeEventIE8(topLevelType, target, targetInst) {\n  if (topLevelType === 'topFocus') {\n    // stopWatching() should be a noop here but we call it just in case we\n    // missed a blur event somehow.\n    stopWatchingForChangeEventIE8();\n    startWatchingForChangeEventIE8(target, targetInst);\n  } else if (topLevelType === 'topBlur') {\n    stopWatchingForChangeEventIE8();\n  }\n}\n\n/**\n * SECTION: handle `input` event\n */\nvar isInputEventSupported = false;\nif (ExecutionEnvironment.canUseDOM) {\n  // IE9 claims to support the input event but fails to trigger it when\n  // deleting text, so we ignore its input events.\n  // IE10+ fire input events to often, such when a placeholder\n  // changes or when an input with a placeholder is focused.\n  isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 11);\n}\n\n/**\n * (For IE <=11) Replacement getter/setter for the `value` property that gets\n * set on the active element.\n */\nvar newValueProp = {\n  get: function () {\n    return activeElementValueProp.get.call(this);\n  },\n  set: function (val) {\n    // Cast to a string so we can do equality checks.\n    activeElementValue = '' + val;\n    activeElementValueProp.set.call(this, val);\n  }\n};\n\n/**\n * (For IE <=11) Starts tracking propertychange events on the passed-in element\n * and override the value property so that we can distinguish user events from\n * value changes in JS.\n */\nfunction startWatchingForValueChange(target, targetInst) {\n  activeElement = target;\n  activeElementInst = targetInst;\n  activeElementValue = target.value;\n  activeElementValueProp = Object.getOwnPropertyDescriptor(target.constructor.prototype, 'value');\n\n  // Not guarded in a canDefineProperty check: IE8 supports defineProperty only\n  // on DOM elements\n  Object.defineProperty(activeElement, 'value', newValueProp);\n  if (activeElement.attachEvent) {\n    activeElement.attachEvent('onpropertychange', handlePropertyChange);\n  } else {\n    activeElement.addEventListener('propertychange', handlePropertyChange, false);\n  }\n}\n\n/**\n * (For IE <=11) Removes the event listeners from the currently-tracked element,\n * if any exists.\n */\nfunction stopWatchingForValueChange() {\n  if (!activeElement) {\n    return;\n  }\n\n  // delete restores the original property definition\n  delete activeElement.value;\n\n  if (activeElement.detachEvent) {\n    activeElement.detachEvent('onpropertychange', handlePropertyChange);\n  } else {\n    activeElement.removeEventListener('propertychange', handlePropertyChange, false);\n  }\n\n  activeElement = null;\n  activeElementInst = null;\n  activeElementValue = null;\n  activeElementValueProp = null;\n}\n\n/**\n * (For IE <=11) Handles a propertychange event, sending a `change` event if\n * the value of the active element has changed.\n */\nfunction handlePropertyChange(nativeEvent) {\n  if (nativeEvent.propertyName !== 'value') {\n    return;\n  }\n  var value = nativeEvent.srcElement.value;\n  if (value === activeElementValue) {\n    return;\n  }\n  activeElementValue = value;\n\n  manualDispatchChangeEvent(nativeEvent);\n}\n\n/**\n * If a `change` event should be fired, returns the target's ID.\n */\nfunction getTargetInstForInputEvent(topLevelType, targetInst) {\n  if (topLevelType === 'topInput') {\n    // In modern browsers (i.e., not IE8 or IE9), the input event is exactly\n    // what we want so fall through here and trigger an abstract event\n    return targetInst;\n  }\n}\n\nfunction handleEventsForInputEventIE(topLevelType, target, targetInst) {\n  if (topLevelType === 'topFocus') {\n    // In IE8, we can capture almost all .value changes by adding a\n    // propertychange handler and looking for events with propertyName\n    // equal to 'value'\n    // In IE9-11, propertychange fires for most input events but is buggy and\n    // doesn't fire when text is deleted, but conveniently, selectionchange\n    // appears to fire in all of the remaining cases so we catch those and\n    // forward the event if the value has changed\n    // In either case, we don't want to call the event handler if the value\n    // is changed from JS so we redefine a setter for `.value` that updates\n    // our activeElementValue variable, allowing us to ignore those changes\n    //\n    // stopWatching() should be a noop here but we call it just in case we\n    // missed a blur event somehow.\n    stopWatchingForValueChange();\n    startWatchingForValueChange(target, targetInst);\n  } else if (topLevelType === 'topBlur') {\n    stopWatchingForValueChange();\n  }\n}\n\n// For IE8 and IE9.\nfunction getTargetInstForInputEventIE(topLevelType, targetInst) {\n  if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {\n    // On the selectionchange event, the target is just document which isn't\n    // helpful for us so just check activeElement instead.\n    //\n    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n    // propertychange on the first input event after setting `value` from a\n    // script and fires only keydown, keypress, keyup. Catching keyup usually\n    // gets it and catching keydown lets us fire an event for the first\n    // keystroke if user does a key repeat (it'll be a little delayed: right\n    // before the second keystroke). Other input methods (e.g., paste) seem to\n    // fire selectionchange normally.\n    if (activeElement && activeElement.value !== activeElementValue) {\n      activeElementValue = activeElement.value;\n      return activeElementInst;\n    }\n  }\n}\n\n/**\n * SECTION: handle `click` event\n */\nfunction shouldUseClickEvent(elem) {\n  // Use the `click` event to detect changes to checkbox and radio inputs.\n  // This approach works across all browsers, whereas `change` does not fire\n  // until `blur` in IE8.\n  return elem.nodeName && elem.nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');\n}\n\nfunction getTargetInstForClickEvent(topLevelType, targetInst) {\n  if (topLevelType === 'topClick') {\n    return targetInst;\n  }\n}\n\nfunction handleControlledInputBlur(inst, node) {\n  // TODO: In IE, inst is occasionally null. Why?\n  if (inst == null) {\n    return;\n  }\n\n  // Fiber and ReactDOM keep wrapper state in separate places\n  var state = inst._wrapperState || node._wrapperState;\n\n  if (!state || !state.controlled || node.type !== 'number') {\n    return;\n  }\n\n  // If controlled, assign the value attribute to the current value on blur\n  var value = '' + node.value;\n  if (node.getAttribute('value') !== value) {\n    node.setAttribute('value', value);\n  }\n}\n\n/**\n * This plugin creates an `onChange` event that normalizes change events\n * across form elements. This event fires at a time when it's possible to\n * change the element's value without seeing a flicker.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - select\n */\nvar ChangeEventPlugin = {\n\n  eventTypes: eventTypes,\n\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;\n\n    var getTargetInstFunc, handleEventFunc;\n    if (shouldUseChangeEvent(targetNode)) {\n      if (doesChangeEventBubble) {\n        getTargetInstFunc = getTargetInstForChangeEvent;\n      } else {\n        handleEventFunc = handleEventsForChangeEventIE8;\n      }\n    } else if (isTextInputElement(targetNode)) {\n      if (isInputEventSupported) {\n        getTargetInstFunc = getTargetInstForInputEvent;\n      } else {\n        getTargetInstFunc = getTargetInstForInputEventIE;\n        handleEventFunc = handleEventsForInputEventIE;\n      }\n    } else if (shouldUseClickEvent(targetNode)) {\n      getTargetInstFunc = getTargetInstForClickEvent;\n    }\n\n    if (getTargetInstFunc) {\n      var inst = getTargetInstFunc(topLevelType, targetInst);\n      if (inst) {\n        var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, nativeEventTarget);\n        event.type = 'change';\n        EventPropagators.accumulateTwoPhaseDispatches(event);\n        return event;\n      }\n    }\n\n    if (handleEventFunc) {\n      handleEventFunc(topLevelType, targetNode, targetInst);\n    }\n\n    // When blurring, set the value attribute for number inputs\n    if (topLevelType === 'topBlur') {\n      handleControlledInputBlur(targetInst, targetNode);\n    }\n  }\n\n};\n\nmodule.exports = ChangeEventPlugin;\n},{\"114\":114,\"121\":121,\"122\":122,\"136\":136,\"17\":17,\"20\":20,\"34\":34,\"82\":82,\"91\":91}],8:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMLazyTree = _dereq_(9);\nvar Danger = _dereq_(13);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactInstrumentation = _dereq_(64);\n\nvar createMicrosoftUnsafeLocalFunction = _dereq_(105);\nvar setInnerHTML = _dereq_(126);\nvar setTextContent = _dereq_(127);\n\nfunction getNodeAfter(parentNode, node) {\n  // Special case for text components, which return [open, close] comments\n  // from getHostNode.\n  if (Array.isArray(node)) {\n    node = node[1];\n  }\n  return node ? node.nextSibling : parentNode.firstChild;\n}\n\n/**\n * Inserts `childNode` as a child of `parentNode` at the `index`.\n *\n * @param {DOMElement} parentNode Parent node in which to insert.\n * @param {DOMElement} childNode Child node to insert.\n * @param {number} index Index at which to insert the child.\n * @internal\n */\nvar insertChildAt = createMicrosoftUnsafeLocalFunction(function (parentNode, childNode, referenceNode) {\n  // We rely exclusively on `insertBefore(node, null)` instead of also using\n  // `appendChild(node)`. (Using `undefined` is not allowed by all browsers so\n  // we are careful to use `null`.)\n  parentNode.insertBefore(childNode, referenceNode);\n});\n\nfunction insertLazyTreeChildAt(parentNode, childTree, referenceNode) {\n  DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode);\n}\n\nfunction moveChild(parentNode, childNode, referenceNode) {\n  if (Array.isArray(childNode)) {\n    moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode);\n  } else {\n    insertChildAt(parentNode, childNode, referenceNode);\n  }\n}\n\nfunction removeChild(parentNode, childNode) {\n  if (Array.isArray(childNode)) {\n    var closingComment = childNode[1];\n    childNode = childNode[0];\n    removeDelimitedText(parentNode, childNode, closingComment);\n    parentNode.removeChild(closingComment);\n  }\n  parentNode.removeChild(childNode);\n}\n\nfunction moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) {\n  var node = openingComment;\n  while (true) {\n    var nextNode = node.nextSibling;\n    insertChildAt(parentNode, node, referenceNode);\n    if (node === closingComment) {\n      break;\n    }\n    node = nextNode;\n  }\n}\n\nfunction removeDelimitedText(parentNode, startNode, closingComment) {\n  while (true) {\n    var node = startNode.nextSibling;\n    if (node === closingComment) {\n      // The closing comment is removed by ReactMultiChild.\n      break;\n    } else {\n      parentNode.removeChild(node);\n    }\n  }\n}\n\nfunction replaceDelimitedText(openingComment, closingComment, stringText) {\n  var parentNode = openingComment.parentNode;\n  var nodeAfterComment = openingComment.nextSibling;\n  if (nodeAfterComment === closingComment) {\n    // There are no text nodes between the opening and closing comments; insert\n    // a new one if stringText isn't empty.\n    if (stringText) {\n      insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment);\n    }\n  } else {\n    if (stringText) {\n      // Set the text content of the first node after the opening comment, and\n      // remove all following nodes up until the closing comment.\n      setTextContent(nodeAfterComment, stringText);\n      removeDelimitedText(parentNode, nodeAfterComment, closingComment);\n    } else {\n      removeDelimitedText(parentNode, openingComment, closingComment);\n    }\n  }\n\n  if (\"development\" !== 'production') {\n    ReactInstrumentation.debugTool.onHostOperation({\n      instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID,\n      type: 'replace text',\n      payload: stringText\n    });\n  }\n}\n\nvar dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;\nif (\"development\" !== 'production') {\n  dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) {\n    Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup);\n    if (prevInstance._debugID !== 0) {\n      ReactInstrumentation.debugTool.onHostOperation({\n        instanceID: prevInstance._debugID,\n        type: 'replace with',\n        payload: markup.toString()\n      });\n    } else {\n      var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node);\n      if (nextInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onHostOperation({\n          instanceID: nextInstance._debugID,\n          type: 'mount',\n          payload: markup.toString()\n        });\n      }\n    }\n  };\n}\n\n/**\n * Operations for updating with DOM children.\n */\nvar DOMChildrenOperations = {\n\n  dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup,\n\n  replaceDelimitedText: replaceDelimitedText,\n\n  /**\n   * Updates a component's children by processing a series of updates. The\n   * update configurations are each expected to have a `parentNode` property.\n   *\n   * @param {array<object>} updates List of update configurations.\n   * @internal\n   */\n  processUpdates: function (parentNode, updates) {\n    if (\"development\" !== 'production') {\n      var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;\n    }\n\n    for (var k = 0; k < updates.length; k++) {\n      var update = updates[k];\n      switch (update.type) {\n        case 'INSERT_MARKUP':\n          insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode));\n          if (\"development\" !== 'production') {\n            ReactInstrumentation.debugTool.onHostOperation({\n              instanceID: parentNodeDebugID,\n              type: 'insert child',\n              payload: { toIndex: update.toIndex, content: update.content.toString() }\n            });\n          }\n          break;\n        case 'MOVE_EXISTING':\n          moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode));\n          if (\"development\" !== 'production') {\n            ReactInstrumentation.debugTool.onHostOperation({\n              instanceID: parentNodeDebugID,\n              type: 'move child',\n              payload: { fromIndex: update.fromIndex, toIndex: update.toIndex }\n            });\n          }\n          break;\n        case 'SET_MARKUP':\n          setInnerHTML(parentNode, update.content);\n          if (\"development\" !== 'production') {\n            ReactInstrumentation.debugTool.onHostOperation({\n              instanceID: parentNodeDebugID,\n              type: 'replace children',\n              payload: update.content.toString()\n            });\n          }\n          break;\n        case 'TEXT_CONTENT':\n          setTextContent(parentNode, update.content);\n          if (\"development\" !== 'production') {\n            ReactInstrumentation.debugTool.onHostOperation({\n              instanceID: parentNodeDebugID,\n              type: 'replace text',\n              payload: update.content.toString()\n            });\n          }\n          break;\n        case 'REMOVE_NODE':\n          removeChild(parentNode, update.fromNode);\n          if (\"development\" !== 'production') {\n            ReactInstrumentation.debugTool.onHostOperation({\n              instanceID: parentNodeDebugID,\n              type: 'remove child',\n              payload: { fromIndex: update.fromIndex }\n            });\n          }\n          break;\n      }\n    }\n  }\n\n};\n\nmodule.exports = DOMChildrenOperations;\n},{\"105\":105,\"126\":126,\"127\":127,\"13\":13,\"34\":34,\"64\":64,\"9\":9}],9:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMNamespaces = _dereq_(10);\nvar setInnerHTML = _dereq_(126);\n\nvar createMicrosoftUnsafeLocalFunction = _dereq_(105);\nvar setTextContent = _dereq_(127);\n\nvar ELEMENT_NODE_TYPE = 1;\nvar DOCUMENT_FRAGMENT_NODE_TYPE = 11;\n\n/**\n * In IE (8-11) and Edge, appending nodes with no children is dramatically\n * faster than appending a full subtree, so we essentially queue up the\n * .appendChild calls here and apply them so each node is added to its parent\n * before any children are added.\n *\n * In other browsers, doing so is slower or neutral compared to the other order\n * (in Firefox, twice as slow) so we only do this inversion in IE.\n *\n * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.\n */\nvar enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\\bEdge\\/\\d/.test(navigator.userAgent);\n\nfunction insertTreeChildren(tree) {\n  if (!enableLazy) {\n    return;\n  }\n  var node = tree.node;\n  var children = tree.children;\n  if (children.length) {\n    for (var i = 0; i < children.length; i++) {\n      insertTreeBefore(node, children[i], null);\n    }\n  } else if (tree.html != null) {\n    setInnerHTML(node, tree.html);\n  } else if (tree.text != null) {\n    setTextContent(node, tree.text);\n  }\n}\n\nvar insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode, tree, referenceNode) {\n  // DocumentFragments aren't actually part of the DOM after insertion so\n  // appending children won't update the DOM. We need to ensure the fragment\n  // is properly populated first, breaking out of our lazy approach for just\n  // this level. Also, some <object> plugins (like Flash Player) will read\n  // <param> nodes immediately upon insertion into the DOM, so <object>\n  // must also be populated prior to insertion into the DOM.\n  if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) {\n    insertTreeChildren(tree);\n    parentNode.insertBefore(tree.node, referenceNode);\n  } else {\n    parentNode.insertBefore(tree.node, referenceNode);\n    insertTreeChildren(tree);\n  }\n});\n\nfunction replaceChildWithTree(oldNode, newTree) {\n  oldNode.parentNode.replaceChild(newTree.node, oldNode);\n  insertTreeChildren(newTree);\n}\n\nfunction queueChild(parentTree, childTree) {\n  if (enableLazy) {\n    parentTree.children.push(childTree);\n  } else {\n    parentTree.node.appendChild(childTree.node);\n  }\n}\n\nfunction queueHTML(tree, html) {\n  if (enableLazy) {\n    tree.html = html;\n  } else {\n    setInnerHTML(tree.node, html);\n  }\n}\n\nfunction queueText(tree, text) {\n  if (enableLazy) {\n    tree.text = text;\n  } else {\n    setTextContent(tree.node, text);\n  }\n}\n\nfunction toString() {\n  return this.node.nodeName;\n}\n\nfunction DOMLazyTree(node) {\n  return {\n    node: node,\n    children: [],\n    html: null,\n    text: null,\n    toString: toString\n  };\n}\n\nDOMLazyTree.insertTreeBefore = insertTreeBefore;\nDOMLazyTree.replaceChildWithTree = replaceChildWithTree;\nDOMLazyTree.queueChild = queueChild;\nDOMLazyTree.queueHTML = queueHTML;\nDOMLazyTree.queueText = queueText;\n\nmodule.exports = DOMLazyTree;\n},{\"10\":10,\"105\":105,\"126\":126,\"127\":127}],10:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMNamespaces = {\n  html: 'http://www.w3.org/1999/xhtml',\n  mathml: 'http://www.w3.org/1998/Math/MathML',\n  svg: 'http://www.w3.org/2000/svg'\n};\n\nmodule.exports = DOMNamespaces;\n},{}],11:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\nfunction checkMask(value, bitmask) {\n  return (value & bitmask) === bitmask;\n}\n\nvar DOMPropertyInjection = {\n  /**\n   * Mapping from normalized, camelcased property names to a configuration that\n   * specifies how the associated DOM property should be accessed or rendered.\n   */\n  MUST_USE_PROPERTY: 0x1,\n  HAS_BOOLEAN_VALUE: 0x4,\n  HAS_NUMERIC_VALUE: 0x8,\n  HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,\n  HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,\n\n  /**\n   * Inject some specialized knowledge about the DOM. This takes a config object\n   * with the following properties:\n   *\n   * isCustomAttribute: function that given an attribute name will return true\n   * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*\n   * attributes where it's impossible to enumerate all of the possible\n   * attribute names,\n   *\n   * Properties: object mapping DOM property name to one of the\n   * DOMPropertyInjection constants or null. If your attribute isn't in here,\n   * it won't get written to the DOM.\n   *\n   * DOMAttributeNames: object mapping React attribute name to the DOM\n   * attribute name. Attribute names not specified use the **lowercase**\n   * normalized name.\n   *\n   * DOMAttributeNamespaces: object mapping React attribute name to the DOM\n   * attribute namespace URL. (Attribute names not specified use no namespace.)\n   *\n   * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.\n   * Property names not specified use the normalized name.\n   *\n   * DOMMutationMethods: Properties that require special mutation methods. If\n   * `value` is undefined, the mutation method should unset the property.\n   *\n   * @param {object} domPropertyConfig the config as described above.\n   */\n  injectDOMPropertyConfig: function (domPropertyConfig) {\n    var Injection = DOMPropertyInjection;\n    var Properties = domPropertyConfig.Properties || {};\n    var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};\n    var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};\n    var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};\n    var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};\n\n    if (domPropertyConfig.isCustomAttribute) {\n      DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);\n    }\n\n    for (var propName in Properties) {\n      !!DOMProperty.properties.hasOwnProperty(propName) ? \"development\" !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\\'re trying to inject DOM property \\'%s\\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;\n\n      var lowerCased = propName.toLowerCase();\n      var propConfig = Properties[propName];\n\n      var propertyInfo = {\n        attributeName: lowerCased,\n        attributeNamespace: null,\n        propertyName: propName,\n        mutationMethod: null,\n\n        mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),\n        hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),\n        hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),\n        hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),\n        hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)\n      };\n      !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? \"development\" !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;\n\n      if (\"development\" !== 'production') {\n        DOMProperty.getPossibleStandardName[lowerCased] = propName;\n      }\n\n      if (DOMAttributeNames.hasOwnProperty(propName)) {\n        var attributeName = DOMAttributeNames[propName];\n        propertyInfo.attributeName = attributeName;\n        if (\"development\" !== 'production') {\n          DOMProperty.getPossibleStandardName[attributeName] = propName;\n        }\n      }\n\n      if (DOMAttributeNamespaces.hasOwnProperty(propName)) {\n        propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];\n      }\n\n      if (DOMPropertyNames.hasOwnProperty(propName)) {\n        propertyInfo.propertyName = DOMPropertyNames[propName];\n      }\n\n      if (DOMMutationMethods.hasOwnProperty(propName)) {\n        propertyInfo.mutationMethod = DOMMutationMethods[propName];\n      }\n\n      DOMProperty.properties[propName] = propertyInfo;\n    }\n  }\n};\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD';\n/* eslint-enable max-len */\n\n/**\n * DOMProperty exports lookup objects that can be used like functions:\n *\n *   > DOMProperty.isValid['id']\n *   true\n *   > DOMProperty.isValid['foobar']\n *   undefined\n *\n * Although this may be confusing, it performs better in general.\n *\n * @see http://jsperf.com/key-exists\n * @see http://jsperf.com/key-missing\n */\nvar DOMProperty = {\n\n  ID_ATTRIBUTE_NAME: 'data-reactid',\n  ROOT_ATTRIBUTE_NAME: 'data-reactroot',\n\n  ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,\n  ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040',\n\n  /**\n   * Map from property \"standard name\" to an object with info about how to set\n   * the property in the DOM. Each object contains:\n   *\n   * attributeName:\n   *   Used when rendering markup or with `*Attribute()`.\n   * attributeNamespace\n   * propertyName:\n   *   Used on DOM node instances. (This includes properties that mutate due to\n   *   external factors.)\n   * mutationMethod:\n   *   If non-null, used instead of the property or `setAttribute()` after\n   *   initial render.\n   * mustUseProperty:\n   *   Whether the property must be accessed and mutated as an object property.\n   * hasBooleanValue:\n   *   Whether the property should be removed when set to a falsey value.\n   * hasNumericValue:\n   *   Whether the property must be numeric or parse as a numeric and should be\n   *   removed when set to a falsey value.\n   * hasPositiveNumericValue:\n   *   Whether the property must be positive numeric or parse as a positive\n   *   numeric and should be removed when set to a falsey value.\n   * hasOverloadedBooleanValue:\n   *   Whether the property can be used as a flag as well as with a value.\n   *   Removed when strictly equal to false; present without a value when\n   *   strictly equal to true; present with a value otherwise.\n   */\n  properties: {},\n\n  /**\n   * Mapping from lowercase property names to the properly cased version, used\n   * to warn in the case of missing properties. Available only in __DEV__.\n   *\n   * autofocus is predefined, because adding it to the property whitelist\n   * causes unintended side effects.\n   *\n   * @type {Object}\n   */\n  getPossibleStandardName: \"development\" !== 'production' ? { autofocus: 'autoFocus' } : null,\n\n  /**\n   * All of the isCustomAttribute() functions that have been injected.\n   */\n  _isCustomAttributeFunctions: [],\n\n  /**\n   * Checks whether a property name is a custom attribute.\n   * @method\n   */\n  isCustomAttribute: function (attributeName) {\n    for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {\n      var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];\n      if (isCustomAttributeFn(attributeName)) {\n        return true;\n      }\n    }\n    return false;\n  },\n\n  injection: DOMPropertyInjection\n};\n\nmodule.exports = DOMProperty;\n},{\"124\":124,\"150\":150}],12:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMProperty = _dereq_(11);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactInstrumentation = _dereq_(64);\n\nvar quoteAttributeValueForBrowser = _dereq_(123);\nvar warning = _dereq_(157);\n\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\n\nfunction isAttributeNameSafe(attributeName) {\n  if (validatedAttributeNameCache.hasOwnProperty(attributeName)) {\n    return true;\n  }\n  if (illegalAttributeNameCache.hasOwnProperty(attributeName)) {\n    return false;\n  }\n  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n    validatedAttributeNameCache[attributeName] = true;\n    return true;\n  }\n  illegalAttributeNameCache[attributeName] = true;\n  \"development\" !== 'production' ? warning(false, 'Invalid attribute name: `%s`', attributeName) : void 0;\n  return false;\n}\n\nfunction shouldIgnoreValue(propertyInfo, value) {\n  return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false;\n}\n\n/**\n * Operations for dealing with DOM properties.\n */\nvar DOMPropertyOperations = {\n\n  /**\n   * Creates markup for the ID property.\n   *\n   * @param {string} id Unescaped ID.\n   * @return {string} Markup string.\n   */\n  createMarkupForID: function (id) {\n    return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id);\n  },\n\n  setAttributeForID: function (node, id) {\n    node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id);\n  },\n\n  createMarkupForRoot: function () {\n    return DOMProperty.ROOT_ATTRIBUTE_NAME + '=\"\"';\n  },\n\n  setAttributeForRoot: function (node) {\n    node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, '');\n  },\n\n  /**\n   * Creates markup for a property.\n   *\n   * @param {string} name\n   * @param {*} value\n   * @return {?string} Markup string, or null if the property was invalid.\n   */\n  createMarkupForProperty: function (name, value) {\n    var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;\n    if (propertyInfo) {\n      if (shouldIgnoreValue(propertyInfo, value)) {\n        return '';\n      }\n      var attributeName = propertyInfo.attributeName;\n      if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {\n        return attributeName + '=\"\"';\n      }\n      return attributeName + '=' + quoteAttributeValueForBrowser(value);\n    } else if (DOMProperty.isCustomAttribute(name)) {\n      if (value == null) {\n        return '';\n      }\n      return name + '=' + quoteAttributeValueForBrowser(value);\n    }\n    return null;\n  },\n\n  /**\n   * Creates markup for a custom property.\n   *\n   * @param {string} name\n   * @param {*} value\n   * @return {string} Markup string, or empty string if the property was invalid.\n   */\n  createMarkupForCustomAttribute: function (name, value) {\n    if (!isAttributeNameSafe(name) || value == null) {\n      return '';\n    }\n    return name + '=' + quoteAttributeValueForBrowser(value);\n  },\n\n  /**\n   * Sets the value for a property on a node.\n   *\n   * @param {DOMElement} node\n   * @param {string} name\n   * @param {*} value\n   */\n  setValueForProperty: function (node, name, value) {\n    var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;\n    if (propertyInfo) {\n      var mutationMethod = propertyInfo.mutationMethod;\n      if (mutationMethod) {\n        mutationMethod(node, value);\n      } else if (shouldIgnoreValue(propertyInfo, value)) {\n        this.deleteValueForProperty(node, name);\n        return;\n      } else if (propertyInfo.mustUseProperty) {\n        // Contrary to `setAttribute`, object properties are properly\n        // `toString`ed by IE8/9.\n        node[propertyInfo.propertyName] = value;\n      } else {\n        var attributeName = propertyInfo.attributeName;\n        var namespace = propertyInfo.attributeNamespace;\n        // `setAttribute` with objects becomes only `[object]` in IE8/9,\n        // ('' + value) makes it output the correct toString()-value.\n        if (namespace) {\n          node.setAttributeNS(namespace, attributeName, '' + value);\n        } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {\n          node.setAttribute(attributeName, '');\n        } else {\n          node.setAttribute(attributeName, '' + value);\n        }\n      }\n    } else if (DOMProperty.isCustomAttribute(name)) {\n      DOMPropertyOperations.setValueForAttribute(node, name, value);\n      return;\n    }\n\n    if (\"development\" !== 'production') {\n      var payload = {};\n      payload[name] = value;\n      ReactInstrumentation.debugTool.onHostOperation({\n        instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,\n        type: 'update attribute',\n        payload: payload\n      });\n    }\n  },\n\n  setValueForAttribute: function (node, name, value) {\n    if (!isAttributeNameSafe(name)) {\n      return;\n    }\n    if (value == null) {\n      node.removeAttribute(name);\n    } else {\n      node.setAttribute(name, '' + value);\n    }\n\n    if (\"development\" !== 'production') {\n      var payload = {};\n      payload[name] = value;\n      ReactInstrumentation.debugTool.onHostOperation({\n        instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,\n        type: 'update attribute',\n        payload: payload\n      });\n    }\n  },\n\n  /**\n   * Deletes an attributes from a node.\n   *\n   * @param {DOMElement} node\n   * @param {string} name\n   */\n  deleteValueForAttribute: function (node, name) {\n    node.removeAttribute(name);\n    if (\"development\" !== 'production') {\n      ReactInstrumentation.debugTool.onHostOperation({\n        instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,\n        type: 'remove attribute',\n        payload: name\n      });\n    }\n  },\n\n  /**\n   * Deletes the value for a property on a node.\n   *\n   * @param {DOMElement} node\n   * @param {string} name\n   */\n  deleteValueForProperty: function (node, name) {\n    var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;\n    if (propertyInfo) {\n      var mutationMethod = propertyInfo.mutationMethod;\n      if (mutationMethod) {\n        mutationMethod(node, undefined);\n      } else if (propertyInfo.mustUseProperty) {\n        var propName = propertyInfo.propertyName;\n        if (propertyInfo.hasBooleanValue) {\n          node[propName] = false;\n        } else {\n          node[propName] = '';\n        }\n      } else {\n        node.removeAttribute(propertyInfo.attributeName);\n      }\n    } else if (DOMProperty.isCustomAttribute(name)) {\n      node.removeAttribute(name);\n    }\n\n    if (\"development\" !== 'production') {\n      ReactInstrumentation.debugTool.onHostOperation({\n        instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,\n        type: 'remove attribute',\n        payload: name\n      });\n    }\n  }\n\n};\n\nmodule.exports = DOMPropertyOperations;\n},{\"11\":11,\"123\":123,\"157\":157,\"34\":34,\"64\":64}],13:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar DOMLazyTree = _dereq_(9);\nvar ExecutionEnvironment = _dereq_(136);\n\nvar createNodesFromMarkup = _dereq_(141);\nvar emptyFunction = _dereq_(142);\nvar invariant = _dereq_(150);\n\nvar Danger = {\n\n  /**\n   * Replaces a node with a string of markup at its current position within its\n   * parent. The markup must render into a single root node.\n   *\n   * @param {DOMElement} oldChild Child node to replace.\n   * @param {string} markup Markup to render in place of the child node.\n   * @internal\n   */\n  dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {\n    !ExecutionEnvironment.canUseDOM ? \"development\" !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;\n    !markup ? \"development\" !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;\n    !(oldChild.nodeName !== 'HTML') ? \"development\" !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;\n\n    if (typeof markup === 'string') {\n      var newChild = createNodesFromMarkup(markup, emptyFunction)[0];\n      oldChild.parentNode.replaceChild(newChild, oldChild);\n    } else {\n      DOMLazyTree.replaceChildWithTree(oldChild, markup);\n    }\n  }\n\n};\n\nmodule.exports = Danger;\n},{\"124\":124,\"136\":136,\"141\":141,\"142\":142,\"150\":150,\"9\":9}],14:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Module that is injectable into `EventPluginHub`, that specifies a\n * deterministic ordering of `EventPlugin`s. A convenient way to reason about\n * plugins, without having to package every one of them. This is better than\n * having plugins be ordered in the same order that they are injected because\n * that ordering would be influenced by the packaging order.\n * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that\n * preventing default on events is convenient in `SimpleEventPlugin` handlers.\n */\n\nvar DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];\n\nmodule.exports = DefaultEventPluginOrder;\n},{}],15:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPropagators = _dereq_(20);\nvar ReactDOMComponentTree = _dereq_(34);\nvar SyntheticMouseEvent = _dereq_(95);\n\nvar eventTypes = {\n  mouseEnter: {\n    registrationName: 'onMouseEnter',\n    dependencies: ['topMouseOut', 'topMouseOver']\n  },\n  mouseLeave: {\n    registrationName: 'onMouseLeave',\n    dependencies: ['topMouseOut', 'topMouseOver']\n  }\n};\n\nvar EnterLeaveEventPlugin = {\n\n  eventTypes: eventTypes,\n\n  /**\n   * For almost every interaction we care about, there will be both a top-level\n   * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\n   * we do not extract duplicate events. However, moving the mouse into the\n   * browser from outside will not fire a `mouseout` event. In this case, we use\n   * the `mouseover` top-level event.\n   */\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {\n      return null;\n    }\n    if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {\n      // Must not be a mouse in or mouse out - ignoring.\n      return null;\n    }\n\n    var win;\n    if (nativeEventTarget.window === nativeEventTarget) {\n      // `nativeEventTarget` is probably a window object.\n      win = nativeEventTarget;\n    } else {\n      // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n      var doc = nativeEventTarget.ownerDocument;\n      if (doc) {\n        win = doc.defaultView || doc.parentWindow;\n      } else {\n        win = window;\n      }\n    }\n\n    var from;\n    var to;\n    if (topLevelType === 'topMouseOut') {\n      from = targetInst;\n      var related = nativeEvent.relatedTarget || nativeEvent.toElement;\n      to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;\n    } else {\n      // Moving to a node from outside the window.\n      from = null;\n      to = targetInst;\n    }\n\n    if (from === to) {\n      // Nothing pertains to our managed components.\n      return null;\n    }\n\n    var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from);\n    var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to);\n\n    var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);\n    leave.type = 'mouseleave';\n    leave.target = fromNode;\n    leave.relatedTarget = toNode;\n\n    var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);\n    enter.type = 'mouseenter';\n    enter.target = toNode;\n    enter.relatedTarget = fromNode;\n\n    EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to);\n\n    return [leave, enter];\n  }\n\n};\n\nmodule.exports = EnterLeaveEventPlugin;\n},{\"20\":20,\"34\":34,\"95\":95}],16:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Types of raw signals from the browser caught at the top level.\n */\nvar topLevelTypes = {\n  topAbort: null,\n  topAnimationEnd: null,\n  topAnimationIteration: null,\n  topAnimationStart: null,\n  topBlur: null,\n  topCanPlay: null,\n  topCanPlayThrough: null,\n  topChange: null,\n  topClick: null,\n  topCompositionEnd: null,\n  topCompositionStart: null,\n  topCompositionUpdate: null,\n  topContextMenu: null,\n  topCopy: null,\n  topCut: null,\n  topDoubleClick: null,\n  topDrag: null,\n  topDragEnd: null,\n  topDragEnter: null,\n  topDragExit: null,\n  topDragLeave: null,\n  topDragOver: null,\n  topDragStart: null,\n  topDrop: null,\n  topDurationChange: null,\n  topEmptied: null,\n  topEncrypted: null,\n  topEnded: null,\n  topError: null,\n  topFocus: null,\n  topInput: null,\n  topInvalid: null,\n  topKeyDown: null,\n  topKeyPress: null,\n  topKeyUp: null,\n  topLoad: null,\n  topLoadedData: null,\n  topLoadedMetadata: null,\n  topLoadStart: null,\n  topMouseDown: null,\n  topMouseMove: null,\n  topMouseOut: null,\n  topMouseOver: null,\n  topMouseUp: null,\n  topPaste: null,\n  topPause: null,\n  topPlay: null,\n  topPlaying: null,\n  topProgress: null,\n  topRateChange: null,\n  topReset: null,\n  topScroll: null,\n  topSeeked: null,\n  topSeeking: null,\n  topSelectionChange: null,\n  topStalled: null,\n  topSubmit: null,\n  topSuspend: null,\n  topTextInput: null,\n  topTimeUpdate: null,\n  topTouchCancel: null,\n  topTouchEnd: null,\n  topTouchMove: null,\n  topTouchStart: null,\n  topTransitionEnd: null,\n  topVolumeChange: null,\n  topWaiting: null,\n  topWheel: null\n};\n\nvar EventConstants = {\n  topLevelTypes: topLevelTypes\n};\n\nmodule.exports = EventConstants;\n},{}],17:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar EventPluginRegistry = _dereq_(18);\nvar EventPluginUtils = _dereq_(19);\nvar ReactErrorUtils = _dereq_(55);\n\nvar accumulateInto = _dereq_(102);\nvar forEachAccumulated = _dereq_(110);\nvar invariant = _dereq_(150);\n\n/**\n * Internal store for event listeners\n */\nvar listenerBank = {};\n\n/**\n * Internal queue of events that have accumulated their dispatches and are\n * waiting to have their dispatches executed.\n */\nvar eventQueue = null;\n\n/**\n * Dispatches an event and releases it back into the pool, unless persistent.\n *\n * @param {?object} event Synthetic event to be dispatched.\n * @param {boolean} simulated If the event is simulated (changes exn behavior)\n * @private\n */\nvar executeDispatchesAndRelease = function (event, simulated) {\n  if (event) {\n    EventPluginUtils.executeDispatchesInOrder(event, simulated);\n\n    if (!event.isPersistent()) {\n      event.constructor.release(event);\n    }\n  }\n};\nvar executeDispatchesAndReleaseSimulated = function (e) {\n  return executeDispatchesAndRelease(e, true);\n};\nvar executeDispatchesAndReleaseTopLevel = function (e) {\n  return executeDispatchesAndRelease(e, false);\n};\n\nvar getDictionaryKey = function (inst) {\n  // Prevents V8 performance issue:\n  // https://github.com/facebook/react/pull/7232\n  return '.' + inst._rootNodeID;\n};\n\nfunction isInteractive(tag) {\n  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props) {\n  switch (name) {\n    case 'onClick':\n    case 'onClickCapture':\n    case 'onDoubleClick':\n    case 'onDoubleClickCapture':\n    case 'onMouseDown':\n    case 'onMouseDownCapture':\n    case 'onMouseMove':\n    case 'onMouseMoveCapture':\n    case 'onMouseUp':\n    case 'onMouseUpCapture':\n      return !!(props.disabled && isInteractive(type));\n    default:\n      return false;\n  }\n}\n\n/**\n * This is a unified interface for event plugins to be installed and configured.\n *\n * Event plugins can implement the following properties:\n *\n *   `extractEvents` {function(string, DOMEventTarget, string, object): *}\n *     Required. When a top-level event is fired, this method is expected to\n *     extract synthetic events that will in turn be queued and dispatched.\n *\n *   `eventTypes` {object}\n *     Optional, plugins that fire events must publish a mapping of registration\n *     names that are used to register listeners. Values of this mapping must\n *     be objects that contain `registrationName` or `phasedRegistrationNames`.\n *\n *   `executeDispatch` {function(object, function, string)}\n *     Optional, allows plugins to override how an event gets dispatched. By\n *     default, the listener is simply invoked.\n *\n * Each plugin that is injected into `EventsPluginHub` is immediately operable.\n *\n * @public\n */\nvar EventPluginHub = {\n\n  /**\n   * Methods for injecting dependencies.\n   */\n  injection: {\n\n    /**\n     * @param {array} InjectedEventPluginOrder\n     * @public\n     */\n    injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,\n\n    /**\n     * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n     */\n    injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName\n\n  },\n\n  /**\n   * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent.\n   *\n   * @param {object} inst The instance, which is the source of events.\n   * @param {string} registrationName Name of listener (e.g. `onClick`).\n   * @param {function} listener The callback to store.\n   */\n  putListener: function (inst, registrationName, listener) {\n    !(typeof listener === 'function') ? \"development\" !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;\n\n    var key = getDictionaryKey(inst);\n    var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});\n    bankForRegistrationName[key] = listener;\n\n    var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];\n    if (PluginModule && PluginModule.didPutListener) {\n      PluginModule.didPutListener(inst, registrationName, listener);\n    }\n  },\n\n  /**\n   * @param {object} inst The instance, which is the source of events.\n   * @param {string} registrationName Name of listener (e.g. `onClick`).\n   * @return {?function} The stored callback.\n   */\n  getListener: function (inst, registrationName) {\n    // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not\n    // live here; needs to be moved to a better place soon\n    var bankForRegistrationName = listenerBank[registrationName];\n    if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) {\n      return null;\n    }\n    var key = getDictionaryKey(inst);\n    return bankForRegistrationName && bankForRegistrationName[key];\n  },\n\n  /**\n   * Deletes a listener from the registration bank.\n   *\n   * @param {object} inst The instance, which is the source of events.\n   * @param {string} registrationName Name of listener (e.g. `onClick`).\n   */\n  deleteListener: function (inst, registrationName) {\n    var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];\n    if (PluginModule && PluginModule.willDeleteListener) {\n      PluginModule.willDeleteListener(inst, registrationName);\n    }\n\n    var bankForRegistrationName = listenerBank[registrationName];\n    // TODO: This should never be null -- when is it?\n    if (bankForRegistrationName) {\n      var key = getDictionaryKey(inst);\n      delete bankForRegistrationName[key];\n    }\n  },\n\n  /**\n   * Deletes all listeners for the DOM element with the supplied ID.\n   *\n   * @param {object} inst The instance, which is the source of events.\n   */\n  deleteAllListeners: function (inst) {\n    var key = getDictionaryKey(inst);\n    for (var registrationName in listenerBank) {\n      if (!listenerBank.hasOwnProperty(registrationName)) {\n        continue;\n      }\n\n      if (!listenerBank[registrationName][key]) {\n        continue;\n      }\n\n      var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];\n      if (PluginModule && PluginModule.willDeleteListener) {\n        PluginModule.willDeleteListener(inst, registrationName);\n      }\n\n      delete listenerBank[registrationName][key];\n    }\n  },\n\n  /**\n   * Allows registered plugins an opportunity to extract events from top-level\n   * native browser events.\n   *\n   * @return {*} An accumulation of synthetic events.\n   * @internal\n   */\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    var events;\n    var plugins = EventPluginRegistry.plugins;\n    for (var i = 0; i < plugins.length; i++) {\n      // Not every plugin in the ordering may be loaded at runtime.\n      var possiblePlugin = plugins[i];\n      if (possiblePlugin) {\n        var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n        if (extractedEvents) {\n          events = accumulateInto(events, extractedEvents);\n        }\n      }\n    }\n    return events;\n  },\n\n  /**\n   * Enqueues a synthetic event that should be dispatched when\n   * `processEventQueue` is invoked.\n   *\n   * @param {*} events An accumulation of synthetic events.\n   * @internal\n   */\n  enqueueEvents: function (events) {\n    if (events) {\n      eventQueue = accumulateInto(eventQueue, events);\n    }\n  },\n\n  /**\n   * Dispatches all synthetic events on the event queue.\n   *\n   * @internal\n   */\n  processEventQueue: function (simulated) {\n    // Set `eventQueue` to null before processing it so that we can tell if more\n    // events get enqueued while processing.\n    var processingEventQueue = eventQueue;\n    eventQueue = null;\n    if (simulated) {\n      forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);\n    } else {\n      forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);\n    }\n    !!eventQueue ? \"development\" !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;\n    // This would be a good time to rethrow if any of the event handlers threw.\n    ReactErrorUtils.rethrowCaughtError();\n  },\n\n  /**\n   * These are needed for tests only. Do not use!\n   */\n  __purge: function () {\n    listenerBank = {};\n  },\n\n  __getListenerBank: function () {\n    return listenerBank;\n  }\n\n};\n\nmodule.exports = EventPluginHub;\n},{\"102\":102,\"110\":110,\"124\":124,\"150\":150,\"18\":18,\"19\":19,\"55\":55}],18:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\n/**\n * Injectable ordering of event plugins.\n */\nvar eventPluginOrder = null;\n\n/**\n * Injectable mapping from names to event plugin modules.\n */\nvar namesToPlugins = {};\n\n/**\n * Recomputes the plugin list using the injected plugins and plugin ordering.\n *\n * @private\n */\nfunction recomputePluginOrdering() {\n  if (!eventPluginOrder) {\n    // Wait until an `eventPluginOrder` is injected.\n    return;\n  }\n  for (var pluginName in namesToPlugins) {\n    var pluginModule = namesToPlugins[pluginName];\n    var pluginIndex = eventPluginOrder.indexOf(pluginName);\n    !(pluginIndex > -1) ? \"development\" !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;\n    if (EventPluginRegistry.plugins[pluginIndex]) {\n      continue;\n    }\n    !pluginModule.extractEvents ? \"development\" !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;\n    EventPluginRegistry.plugins[pluginIndex] = pluginModule;\n    var publishedEvents = pluginModule.eventTypes;\n    for (var eventName in publishedEvents) {\n      !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? \"development\" !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;\n    }\n  }\n}\n\n/**\n * Publishes an event so that it can be dispatched by the supplied plugin.\n *\n * @param {object} dispatchConfig Dispatch configuration for the event.\n * @param {object} PluginModule Plugin publishing the event.\n * @return {boolean} True if the event was successfully published.\n * @private\n */\nfunction publishEventForPlugin(dispatchConfig, pluginModule, eventName) {\n  !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? \"development\" !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;\n  EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;\n\n  var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n  if (phasedRegistrationNames) {\n    for (var phaseName in phasedRegistrationNames) {\n      if (phasedRegistrationNames.hasOwnProperty(phaseName)) {\n        var phasedRegistrationName = phasedRegistrationNames[phaseName];\n        publishRegistrationName(phasedRegistrationName, pluginModule, eventName);\n      }\n    }\n    return true;\n  } else if (dispatchConfig.registrationName) {\n    publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);\n    return true;\n  }\n  return false;\n}\n\n/**\n * Publishes a registration name that is used to identify dispatched events and\n * can be used with `EventPluginHub.putListener` to register listeners.\n *\n * @param {string} registrationName Registration name to add.\n * @param {object} PluginModule Plugin publishing the event.\n * @private\n */\nfunction publishRegistrationName(registrationName, pluginModule, eventName) {\n  !!EventPluginRegistry.registrationNameModules[registrationName] ? \"development\" !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;\n  EventPluginRegistry.registrationNameModules[registrationName] = pluginModule;\n  EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;\n\n  if (\"development\" !== 'production') {\n    var lowerCasedName = registrationName.toLowerCase();\n    EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName;\n\n    if (registrationName === 'onDoubleClick') {\n      EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName;\n    }\n  }\n}\n\n/**\n * Registers plugins so that they can extract and dispatch events.\n *\n * @see {EventPluginHub}\n */\nvar EventPluginRegistry = {\n\n  /**\n   * Ordered list of injected plugins.\n   */\n  plugins: [],\n\n  /**\n   * Mapping from event name to dispatch config\n   */\n  eventNameDispatchConfigs: {},\n\n  /**\n   * Mapping from registration name to plugin module\n   */\n  registrationNameModules: {},\n\n  /**\n   * Mapping from registration name to event name\n   */\n  registrationNameDependencies: {},\n\n  /**\n   * Mapping from lowercase registration names to the properly cased version,\n   * used to warn in the case of missing event handlers. Available\n   * only in __DEV__.\n   * @type {Object}\n   */\n  possibleRegistrationNames: \"development\" !== 'production' ? {} : null,\n  // Trust the developer to only use possibleRegistrationNames in __DEV__\n\n  /**\n   * Injects an ordering of plugins (by plugin name). This allows the ordering\n   * to be decoupled from injection of the actual plugins so that ordering is\n   * always deterministic regardless of packaging, on-the-fly injection, etc.\n   *\n   * @param {array} InjectedEventPluginOrder\n   * @internal\n   * @see {EventPluginHub.injection.injectEventPluginOrder}\n   */\n  injectEventPluginOrder: function (injectedEventPluginOrder) {\n    !!eventPluginOrder ? \"development\" !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;\n    // Clone the ordering so it cannot be dynamically mutated.\n    eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n    recomputePluginOrdering();\n  },\n\n  /**\n   * Injects plugins to be used by `EventPluginHub`. The plugin names must be\n   * in the ordering injected by `injectEventPluginOrder`.\n   *\n   * Plugins can be injected as part of page initialization or on-the-fly.\n   *\n   * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n   * @internal\n   * @see {EventPluginHub.injection.injectEventPluginsByName}\n   */\n  injectEventPluginsByName: function (injectedNamesToPlugins) {\n    var isOrderingDirty = false;\n    for (var pluginName in injectedNamesToPlugins) {\n      if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n        continue;\n      }\n      var pluginModule = injectedNamesToPlugins[pluginName];\n      if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {\n        !!namesToPlugins[pluginName] ? \"development\" !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;\n        namesToPlugins[pluginName] = pluginModule;\n        isOrderingDirty = true;\n      }\n    }\n    if (isOrderingDirty) {\n      recomputePluginOrdering();\n    }\n  },\n\n  /**\n   * Looks up the plugin for the supplied event.\n   *\n   * @param {object} event A synthetic event.\n   * @return {?object} The plugin that created the supplied event.\n   * @internal\n   */\n  getPluginModuleForEvent: function (event) {\n    var dispatchConfig = event.dispatchConfig;\n    if (dispatchConfig.registrationName) {\n      return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;\n    }\n    if (dispatchConfig.phasedRegistrationNames !== undefined) {\n      // pulling phasedRegistrationNames out of dispatchConfig helps Flow see\n      // that it is not undefined.\n      var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n\n      for (var phase in phasedRegistrationNames) {\n        if (!phasedRegistrationNames.hasOwnProperty(phase)) {\n          continue;\n        }\n        var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];\n        if (pluginModule) {\n          return pluginModule;\n        }\n      }\n    }\n    return null;\n  },\n\n  /**\n   * Exposed for unit testing.\n   * @private\n   */\n  _resetEventPlugins: function () {\n    eventPluginOrder = null;\n    for (var pluginName in namesToPlugins) {\n      if (namesToPlugins.hasOwnProperty(pluginName)) {\n        delete namesToPlugins[pluginName];\n      }\n    }\n    EventPluginRegistry.plugins.length = 0;\n\n    var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs;\n    for (var eventName in eventNameDispatchConfigs) {\n      if (eventNameDispatchConfigs.hasOwnProperty(eventName)) {\n        delete eventNameDispatchConfigs[eventName];\n      }\n    }\n\n    var registrationNameModules = EventPluginRegistry.registrationNameModules;\n    for (var registrationName in registrationNameModules) {\n      if (registrationNameModules.hasOwnProperty(registrationName)) {\n        delete registrationNameModules[registrationName];\n      }\n    }\n\n    if (\"development\" !== 'production') {\n      var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;\n      for (var lowerCasedName in possibleRegistrationNames) {\n        if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) {\n          delete possibleRegistrationNames[lowerCasedName];\n        }\n      }\n    }\n  }\n\n};\n\nmodule.exports = EventPluginRegistry;\n},{\"124\":124,\"150\":150}],19:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactErrorUtils = _dereq_(55);\n\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\n/**\n * Injected dependencies:\n */\n\n/**\n * - `ComponentTree`: [required] Module that can convert between React instances\n *   and actual node references.\n */\nvar ComponentTree;\nvar TreeTraversal;\nvar injection = {\n  injectComponentTree: function (Injected) {\n    ComponentTree = Injected;\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;\n    }\n  },\n  injectTreeTraversal: function (Injected) {\n    TreeTraversal = Injected;\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0;\n    }\n  }\n};\n\nfunction isEndish(topLevelType) {\n  return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';\n}\n\nfunction isMoveish(topLevelType) {\n  return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';\n}\nfunction isStartish(topLevelType) {\n  return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';\n}\n\nvar validateEventDispatches;\nif (\"development\" !== 'production') {\n  validateEventDispatches = function (event) {\n    var dispatchListeners = event._dispatchListeners;\n    var dispatchInstances = event._dispatchInstances;\n\n    var listenersIsArr = Array.isArray(dispatchListeners);\n    var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;\n\n    var instancesIsArr = Array.isArray(dispatchInstances);\n    var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;\n\n    \"development\" !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;\n  };\n}\n\n/**\n * Dispatch the event to the listener.\n * @param {SyntheticEvent} event SyntheticEvent to handle\n * @param {boolean} simulated If the event is simulated (changes exn behavior)\n * @param {function} listener Application-level callback\n * @param {*} inst Internal component instance\n */\nfunction executeDispatch(event, simulated, listener, inst) {\n  var type = event.type || 'unknown-event';\n  event.currentTarget = EventPluginUtils.getNodeFromInstance(inst);\n  if (simulated) {\n    ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event);\n  } else {\n    ReactErrorUtils.invokeGuardedCallback(type, listener, event);\n  }\n  event.currentTarget = null;\n}\n\n/**\n * Standard/simple iteration through an event's collected dispatches.\n */\nfunction executeDispatchesInOrder(event, simulated) {\n  var dispatchListeners = event._dispatchListeners;\n  var dispatchInstances = event._dispatchInstances;\n  if (\"development\" !== 'production') {\n    validateEventDispatches(event);\n  }\n  if (Array.isArray(dispatchListeners)) {\n    for (var i = 0; i < dispatchListeners.length; i++) {\n      if (event.isPropagationStopped()) {\n        break;\n      }\n      // Listeners and Instances are two parallel arrays that are always in sync.\n      executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);\n    }\n  } else if (dispatchListeners) {\n    executeDispatch(event, simulated, dispatchListeners, dispatchInstances);\n  }\n  event._dispatchListeners = null;\n  event._dispatchInstances = null;\n}\n\n/**\n * Standard/simple iteration through an event's collected dispatches, but stops\n * at the first dispatch execution returning true, and returns that id.\n *\n * @return {?string} id of the first dispatch execution who's listener returns\n * true, or null if no listener returned true.\n */\nfunction executeDispatchesInOrderStopAtTrueImpl(event) {\n  var dispatchListeners = event._dispatchListeners;\n  var dispatchInstances = event._dispatchInstances;\n  if (\"development\" !== 'production') {\n    validateEventDispatches(event);\n  }\n  if (Array.isArray(dispatchListeners)) {\n    for (var i = 0; i < dispatchListeners.length; i++) {\n      if (event.isPropagationStopped()) {\n        break;\n      }\n      // Listeners and Instances are two parallel arrays that are always in sync.\n      if (dispatchListeners[i](event, dispatchInstances[i])) {\n        return dispatchInstances[i];\n      }\n    }\n  } else if (dispatchListeners) {\n    if (dispatchListeners(event, dispatchInstances)) {\n      return dispatchInstances;\n    }\n  }\n  return null;\n}\n\n/**\n * @see executeDispatchesInOrderStopAtTrueImpl\n */\nfunction executeDispatchesInOrderStopAtTrue(event) {\n  var ret = executeDispatchesInOrderStopAtTrueImpl(event);\n  event._dispatchInstances = null;\n  event._dispatchListeners = null;\n  return ret;\n}\n\n/**\n * Execution of a \"direct\" dispatch - there must be at most one dispatch\n * accumulated on the event or it is considered an error. It doesn't really make\n * sense for an event with multiple dispatches (bubbled) to keep track of the\n * return values at each dispatch execution, but it does tend to make sense when\n * dealing with \"direct\" dispatches.\n *\n * @return {*} The return value of executing the single dispatch.\n */\nfunction executeDirectDispatch(event) {\n  if (\"development\" !== 'production') {\n    validateEventDispatches(event);\n  }\n  var dispatchListener = event._dispatchListeners;\n  var dispatchInstance = event._dispatchInstances;\n  !!Array.isArray(dispatchListener) ? \"development\" !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;\n  event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;\n  var res = dispatchListener ? dispatchListener(event) : null;\n  event.currentTarget = null;\n  event._dispatchListeners = null;\n  event._dispatchInstances = null;\n  return res;\n}\n\n/**\n * @param {SyntheticEvent} event\n * @return {boolean} True iff number of dispatches accumulated is greater than 0.\n */\nfunction hasDispatches(event) {\n  return !!event._dispatchListeners;\n}\n\n/**\n * General utilities that are useful in creating custom Event Plugins.\n */\nvar EventPluginUtils = {\n  isEndish: isEndish,\n  isMoveish: isMoveish,\n  isStartish: isStartish,\n\n  executeDirectDispatch: executeDirectDispatch,\n  executeDispatchesInOrder: executeDispatchesInOrder,\n  executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue,\n  hasDispatches: hasDispatches,\n\n  getInstanceFromNode: function (node) {\n    return ComponentTree.getInstanceFromNode(node);\n  },\n  getNodeFromInstance: function (node) {\n    return ComponentTree.getNodeFromInstance(node);\n  },\n  isAncestor: function (a, b) {\n    return TreeTraversal.isAncestor(a, b);\n  },\n  getLowestCommonAncestor: function (a, b) {\n    return TreeTraversal.getLowestCommonAncestor(a, b);\n  },\n  getParentInstance: function (inst) {\n    return TreeTraversal.getParentInstance(inst);\n  },\n  traverseTwoPhase: function (target, fn, arg) {\n    return TreeTraversal.traverseTwoPhase(target, fn, arg);\n  },\n  traverseEnterLeave: function (from, to, fn, argFrom, argTo) {\n    return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo);\n  },\n\n  injection: injection\n};\n\nmodule.exports = EventPluginUtils;\n},{\"124\":124,\"150\":150,\"157\":157,\"55\":55}],20:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPluginHub = _dereq_(17);\nvar EventPluginUtils = _dereq_(19);\n\nvar accumulateInto = _dereq_(102);\nvar forEachAccumulated = _dereq_(110);\nvar warning = _dereq_(157);\n\nvar getListener = EventPluginHub.getListener;\n\n/**\n * Some event types have a notion of different registration names for different\n * \"phases\" of propagation. This finds listeners by a given phase.\n */\nfunction listenerAtPhase(inst, event, propagationPhase) {\n  var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];\n  return getListener(inst, registrationName);\n}\n\n/**\n * Tags a `SyntheticEvent` with dispatched listeners. Creating this function\n * here, allows us to not have to bind or create functions for each event.\n * Mutating the event's members allows us to not have to create a wrapping\n * \"dispatch\" object that pairs the event with the listener.\n */\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n  if (\"development\" !== 'production') {\n    \"development\" !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;\n  }\n  var listener = listenerAtPhase(inst, event, phase);\n  if (listener) {\n    event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n    event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n  }\n}\n\n/**\n * Collect dispatches (must be entirely collected before dispatching - see unit\n * tests). Lazily allocate the array to conserve memory.  We must loop through\n * each event and perform the traversal for each one. We cannot perform a\n * single traversal for the entire collection of events because each event may\n * have a different target.\n */\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n  if (event && event.dispatchConfig.phasedRegistrationNames) {\n    EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n  }\n}\n\n/**\n * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.\n */\nfunction accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n  if (event && event.dispatchConfig.phasedRegistrationNames) {\n    var targetInst = event._targetInst;\n    var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;\n    EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);\n  }\n}\n\n/**\n * Accumulates without regard to direction, does not look for phased\n * registration names. Same as `accumulateDirectDispatchesSingle` but without\n * requiring that the `dispatchMarker` be the same as the dispatched ID.\n */\nfunction accumulateDispatches(inst, ignoredDirection, event) {\n  if (event && event.dispatchConfig.registrationName) {\n    var registrationName = event.dispatchConfig.registrationName;\n    var listener = getListener(inst, registrationName);\n    if (listener) {\n      event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n      event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n    }\n  }\n}\n\n/**\n * Accumulates dispatches on an `SyntheticEvent`, but only for the\n * `dispatchMarker`.\n * @param {SyntheticEvent} event\n */\nfunction accumulateDirectDispatchesSingle(event) {\n  if (event && event.dispatchConfig.registrationName) {\n    accumulateDispatches(event._targetInst, null, event);\n  }\n}\n\nfunction accumulateTwoPhaseDispatches(events) {\n  forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);\n}\n\nfunction accumulateTwoPhaseDispatchesSkipTarget(events) {\n  forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);\n}\n\nfunction accumulateEnterLeaveDispatches(leave, enter, from, to) {\n  EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter);\n}\n\nfunction accumulateDirectDispatches(events) {\n  forEachAccumulated(events, accumulateDirectDispatchesSingle);\n}\n\n/**\n * A small set of propagation patterns, each of which will accept a small amount\n * of information, and generate a set of \"dispatch ready event objects\" - which\n * are sets of events that have already been annotated with a set of dispatched\n * listener functions/ids. The API is designed this way to discourage these\n * propagation strategies from actually executing the dispatches, since we\n * always want to collect the entire set of dispatches before executing event a\n * single one.\n *\n * @constructor EventPropagators\n */\nvar EventPropagators = {\n  accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,\n  accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,\n  accumulateDirectDispatches: accumulateDirectDispatches,\n  accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches\n};\n\nmodule.exports = EventPropagators;\n},{\"102\":102,\"110\":110,\"157\":157,\"17\":17,\"19\":19}],21:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar PooledClass = _dereq_(25);\n\nvar getTextContentAccessor = _dereq_(118);\n\n/**\n * This helper class stores information about text content of a target node,\n * allowing comparison of content before and after a given event.\n *\n * Identify the node where selection currently begins, then observe\n * both its text content and its current position in the DOM. Since the\n * browser may natively replace the target node during composition, we can\n * use its position to find its replacement.\n *\n * @param {DOMEventTarget} root\n */\nfunction FallbackCompositionState(root) {\n  this._root = root;\n  this._startText = this.getText();\n  this._fallbackText = null;\n}\n\n_assign(FallbackCompositionState.prototype, {\n  destructor: function () {\n    this._root = null;\n    this._startText = null;\n    this._fallbackText = null;\n  },\n\n  /**\n   * Get current text of input.\n   *\n   * @return {string}\n   */\n  getText: function () {\n    if ('value' in this._root) {\n      return this._root.value;\n    }\n    return this._root[getTextContentAccessor()];\n  },\n\n  /**\n   * Determine the differing substring between the initially stored\n   * text content and the current content.\n   *\n   * @return {string}\n   */\n  getData: function () {\n    if (this._fallbackText) {\n      return this._fallbackText;\n    }\n\n    var start;\n    var startValue = this._startText;\n    var startLength = startValue.length;\n    var end;\n    var endValue = this.getText();\n    var endLength = endValue.length;\n\n    for (start = 0; start < startLength; start++) {\n      if (startValue[start] !== endValue[start]) {\n        break;\n      }\n    }\n\n    var minEnd = startLength - start;\n    for (end = 1; end <= minEnd; end++) {\n      if (startValue[startLength - end] !== endValue[endLength - end]) {\n        break;\n      }\n    }\n\n    var sliceTail = end > 1 ? 1 - end : undefined;\n    this._fallbackText = endValue.slice(start, sliceTail);\n    return this._fallbackText;\n  }\n});\n\nPooledClass.addPoolingTo(FallbackCompositionState);\n\nmodule.exports = FallbackCompositionState;\n},{\"118\":118,\"158\":158,\"25\":25}],22:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMProperty = _dereq_(11);\n\nvar MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;\nvar HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;\nvar HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE;\nvar HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE;\nvar HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE;\n\nvar HTMLDOMPropertyConfig = {\n  isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')),\n  Properties: {\n    /**\n     * Standard Properties\n     */\n    accept: 0,\n    acceptCharset: 0,\n    accessKey: 0,\n    action: 0,\n    allowFullScreen: HAS_BOOLEAN_VALUE,\n    allowTransparency: 0,\n    alt: 0,\n    // specifies target context for links with `preload` type\n    as: 0,\n    async: HAS_BOOLEAN_VALUE,\n    autoComplete: 0,\n    // autoFocus is polyfilled/normalized by AutoFocusUtils\n    // autoFocus: HAS_BOOLEAN_VALUE,\n    autoPlay: HAS_BOOLEAN_VALUE,\n    capture: HAS_BOOLEAN_VALUE,\n    cellPadding: 0,\n    cellSpacing: 0,\n    charSet: 0,\n    challenge: 0,\n    checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n    cite: 0,\n    classID: 0,\n    className: 0,\n    cols: HAS_POSITIVE_NUMERIC_VALUE,\n    colSpan: 0,\n    content: 0,\n    contentEditable: 0,\n    contextMenu: 0,\n    controls: HAS_BOOLEAN_VALUE,\n    coords: 0,\n    crossOrigin: 0,\n    data: 0, // For `<object />` acts as `src`.\n    dateTime: 0,\n    'default': HAS_BOOLEAN_VALUE,\n    defer: HAS_BOOLEAN_VALUE,\n    dir: 0,\n    disabled: HAS_BOOLEAN_VALUE,\n    download: HAS_OVERLOADED_BOOLEAN_VALUE,\n    draggable: 0,\n    encType: 0,\n    form: 0,\n    formAction: 0,\n    formEncType: 0,\n    formMethod: 0,\n    formNoValidate: HAS_BOOLEAN_VALUE,\n    formTarget: 0,\n    frameBorder: 0,\n    headers: 0,\n    height: 0,\n    hidden: HAS_BOOLEAN_VALUE,\n    high: 0,\n    href: 0,\n    hrefLang: 0,\n    htmlFor: 0,\n    httpEquiv: 0,\n    icon: 0,\n    id: 0,\n    inputMode: 0,\n    integrity: 0,\n    is: 0,\n    keyParams: 0,\n    keyType: 0,\n    kind: 0,\n    label: 0,\n    lang: 0,\n    list: 0,\n    loop: HAS_BOOLEAN_VALUE,\n    low: 0,\n    manifest: 0,\n    marginHeight: 0,\n    marginWidth: 0,\n    max: 0,\n    maxLength: 0,\n    media: 0,\n    mediaGroup: 0,\n    method: 0,\n    min: 0,\n    minLength: 0,\n    // Caution; `option.selected` is not updated if `select.multiple` is\n    // disabled with `removeAttribute`.\n    multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n    muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n    name: 0,\n    nonce: 0,\n    noValidate: HAS_BOOLEAN_VALUE,\n    open: HAS_BOOLEAN_VALUE,\n    optimum: 0,\n    pattern: 0,\n    placeholder: 0,\n    playsInline: HAS_BOOLEAN_VALUE,\n    poster: 0,\n    preload: 0,\n    profile: 0,\n    radioGroup: 0,\n    readOnly: HAS_BOOLEAN_VALUE,\n    referrerPolicy: 0,\n    rel: 0,\n    required: HAS_BOOLEAN_VALUE,\n    reversed: HAS_BOOLEAN_VALUE,\n    role: 0,\n    rows: HAS_POSITIVE_NUMERIC_VALUE,\n    rowSpan: HAS_NUMERIC_VALUE,\n    sandbox: 0,\n    scope: 0,\n    scoped: HAS_BOOLEAN_VALUE,\n    scrolling: 0,\n    seamless: HAS_BOOLEAN_VALUE,\n    selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n    shape: 0,\n    size: HAS_POSITIVE_NUMERIC_VALUE,\n    sizes: 0,\n    span: HAS_POSITIVE_NUMERIC_VALUE,\n    spellCheck: 0,\n    src: 0,\n    srcDoc: 0,\n    srcLang: 0,\n    srcSet: 0,\n    start: HAS_NUMERIC_VALUE,\n    step: 0,\n    style: 0,\n    summary: 0,\n    tabIndex: 0,\n    target: 0,\n    title: 0,\n    // Setting .type throws on non-<input> tags\n    type: 0,\n    useMap: 0,\n    value: 0,\n    width: 0,\n    wmode: 0,\n    wrap: 0,\n\n    /**\n     * RDFa Properties\n     */\n    about: 0,\n    datatype: 0,\n    inlist: 0,\n    prefix: 0,\n    // property is also supported for OpenGraph in meta tags.\n    property: 0,\n    resource: 0,\n    'typeof': 0,\n    vocab: 0,\n\n    /**\n     * Non-standard Properties\n     */\n    // autoCapitalize and autoCorrect are supported in Mobile Safari for\n    // keyboard hints.\n    autoCapitalize: 0,\n    autoCorrect: 0,\n    // autoSave allows WebKit/Blink to persist values of input fields on page reloads\n    autoSave: 0,\n    // color is for Safari mask-icon link\n    color: 0,\n    // itemProp, itemScope, itemType are for\n    // Microdata support. See http://schema.org/docs/gs.html\n    itemProp: 0,\n    itemScope: HAS_BOOLEAN_VALUE,\n    itemType: 0,\n    // itemID and itemRef are for Microdata support as well but\n    // only specified in the WHATWG spec document. See\n    // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api\n    itemID: 0,\n    itemRef: 0,\n    // results show looking glass icon and recent searches on input\n    // search fields in WebKit/Blink\n    results: 0,\n    // IE-only attribute that specifies security restrictions on an iframe\n    // as an alternative to the sandbox attribute on IE<10\n    security: 0,\n    // IE-only attribute that controls focus behavior\n    unselectable: 0\n  },\n  DOMAttributeNames: {\n    acceptCharset: 'accept-charset',\n    className: 'class',\n    htmlFor: 'for',\n    httpEquiv: 'http-equiv'\n  },\n  DOMPropertyNames: {},\n  DOMMutationMethods: {\n    value: function (node, value) {\n      if (value == null) {\n        return node.removeAttribute('value');\n      }\n\n      // Number inputs get special treatment due to some edge cases in\n      // Chrome. Let everything else assign the value attribute as normal.\n      // https://github.com/facebook/react/issues/7253#issuecomment-236074326\n      if (node.type !== 'number' || node.hasAttribute('value') === false) {\n        node.setAttribute('value', '' + value);\n      } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {\n        // Don't assign an attribute if validation reports bad\n        // input. Chrome will clear the value. Additionally, don't\n        // operate on inputs that have focus, otherwise Chrome might\n        // strip off trailing decimal places and cause the user's\n        // cursor position to jump to the beginning of the input.\n        //\n        // In ReactDOMInput, we have an onBlur event that will trigger\n        // this function again when focus is lost.\n        node.setAttribute('value', '' + value);\n      }\n    }\n  }\n};\n\nmodule.exports = HTMLDOMPropertyConfig;\n},{\"11\":11}],23:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n  var escapeRegex = /[=:]/g;\n  var escaperLookup = {\n    '=': '=0',\n    ':': '=2'\n  };\n  var escapedString = ('' + key).replace(escapeRegex, function (match) {\n    return escaperLookup[match];\n  });\n\n  return '$' + escapedString;\n}\n\n/**\n * Unescape and unwrap key for human-readable display\n *\n * @param {string} key to unescape.\n * @return {string} the unescaped key.\n */\nfunction unescape(key) {\n  var unescapeRegex = /(=0|=2)/g;\n  var unescaperLookup = {\n    '=0': '=',\n    '=2': ':'\n  };\n  var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);\n\n  return ('' + keySubstring).replace(unescapeRegex, function (match) {\n    return unescaperLookup[match];\n  });\n}\n\nvar KeyEscapeUtils = {\n  escape: escape,\n  unescape: unescape\n};\n\nmodule.exports = KeyEscapeUtils;\n},{}],24:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactPropTypesSecret = _dereq_(73);\nvar propTypesFactory = _dereq_(160);\n\nvar React = _dereq_(133);\nvar PropTypes = propTypesFactory(React.isValidElement);\n\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nvar hasReadOnlyValue = {\n  'button': true,\n  'checkbox': true,\n  'image': true,\n  'hidden': true,\n  'radio': true,\n  'reset': true,\n  'submit': true\n};\n\nfunction _assertSingleLink(inputProps) {\n  !(inputProps.checkedLink == null || inputProps.valueLink == null) ? \"development\" !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don\\'t want to use valueLink and vice versa.') : _prodInvariant('87') : void 0;\n}\nfunction _assertValueLink(inputProps) {\n  _assertSingleLink(inputProps);\n  !(inputProps.value == null && inputProps.onChange == null) ? \"development\" !== 'production' ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don\\'t want to use valueLink.') : _prodInvariant('88') : void 0;\n}\n\nfunction _assertCheckedLink(inputProps) {\n  _assertSingleLink(inputProps);\n  !(inputProps.checked == null && inputProps.onChange == null) ? \"development\" !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don\\'t want to use checkedLink') : _prodInvariant('89') : void 0;\n}\n\nvar propTypes = {\n  value: function (props, propName, componentName) {\n    if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) {\n      return null;\n    }\n    return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n  },\n  checked: function (props, propName, componentName) {\n    if (!props[propName] || props.onChange || props.readOnly || props.disabled) {\n      return null;\n    }\n    return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n  },\n  onChange: PropTypes.func\n};\n\nvar loggedTypeFailures = {};\nfunction getDeclarationErrorAddendum(owner) {\n  if (owner) {\n    var name = owner.getName();\n    if (name) {\n      return ' Check the render method of `' + name + '`.';\n    }\n  }\n  return '';\n}\n\n/**\n * Provide a linked `value` attribute for controlled forms. You should not use\n * this outside of the ReactDOM controlled form components.\n */\nvar LinkedValueUtils = {\n  checkPropTypes: function (tagName, props, owner) {\n    for (var propName in propTypes) {\n      if (propTypes.hasOwnProperty(propName)) {\n        var error = propTypes[propName](props, propName, tagName, 'prop', null, ReactPropTypesSecret);\n      }\n      if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n        // Only monitor this failure once because there tends to be a lot of the\n        // same error.\n        loggedTypeFailures[error.message] = true;\n\n        var addendum = getDeclarationErrorAddendum(owner);\n        \"development\" !== 'production' ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : void 0;\n      }\n    }\n  },\n\n  /**\n   * @param {object} inputProps Props for form component\n   * @return {*} current value of the input either from value prop or link.\n   */\n  getValue: function (inputProps) {\n    if (inputProps.valueLink) {\n      _assertValueLink(inputProps);\n      return inputProps.valueLink.value;\n    }\n    return inputProps.value;\n  },\n\n  /**\n   * @param {object} inputProps Props for form component\n   * @return {*} current checked status of the input either from checked prop\n   *             or link.\n   */\n  getChecked: function (inputProps) {\n    if (inputProps.checkedLink) {\n      _assertCheckedLink(inputProps);\n      return inputProps.checkedLink.value;\n    }\n    return inputProps.checked;\n  },\n\n  /**\n   * @param {object} inputProps Props for form component\n   * @param {SyntheticEvent} event change event to handle\n   */\n  executeOnChange: function (inputProps, event) {\n    if (inputProps.valueLink) {\n      _assertValueLink(inputProps);\n      return inputProps.valueLink.requestChange(event.target.value);\n    } else if (inputProps.checkedLink) {\n      _assertCheckedLink(inputProps);\n      return inputProps.checkedLink.requestChange(event.target.checked);\n    } else if (inputProps.onChange) {\n      return inputProps.onChange.call(undefined, event);\n    }\n  }\n};\n\nmodule.exports = LinkedValueUtils;\n},{\"124\":124,\"133\":133,\"150\":150,\"157\":157,\"160\":160,\"73\":73}],25:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\nvar oneArgumentPooler = function (copyFieldsFrom) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, copyFieldsFrom);\n    return instance;\n  } else {\n    return new Klass(copyFieldsFrom);\n  }\n};\n\nvar twoArgumentPooler = function (a1, a2) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, a1, a2);\n    return instance;\n  } else {\n    return new Klass(a1, a2);\n  }\n};\n\nvar threeArgumentPooler = function (a1, a2, a3) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, a1, a2, a3);\n    return instance;\n  } else {\n    return new Klass(a1, a2, a3);\n  }\n};\n\nvar fourArgumentPooler = function (a1, a2, a3, a4) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, a1, a2, a3, a4);\n    return instance;\n  } else {\n    return new Klass(a1, a2, a3, a4);\n  }\n};\n\nvar standardReleaser = function (instance) {\n  var Klass = this;\n  !(instance instanceof Klass) ? \"development\" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;\n  instance.destructor();\n  if (Klass.instancePool.length < Klass.poolSize) {\n    Klass.instancePool.push(instance);\n  }\n};\n\nvar DEFAULT_POOL_SIZE = 10;\nvar DEFAULT_POOLER = oneArgumentPooler;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nvar addPoolingTo = function (CopyConstructor, pooler) {\n  // Casting as any so that flow ignores the actual implementation and trusts\n  // it to match the type we declared\n  var NewKlass = CopyConstructor;\n  NewKlass.instancePool = [];\n  NewKlass.getPooled = pooler || DEFAULT_POOLER;\n  if (!NewKlass.poolSize) {\n    NewKlass.poolSize = DEFAULT_POOL_SIZE;\n  }\n  NewKlass.release = standardReleaser;\n  return NewKlass;\n};\n\nvar PooledClass = {\n  addPoolingTo: addPoolingTo,\n  oneArgumentPooler: oneArgumentPooler,\n  twoArgumentPooler: twoArgumentPooler,\n  threeArgumentPooler: threeArgumentPooler,\n  fourArgumentPooler: fourArgumentPooler\n};\n\nmodule.exports = PooledClass;\n},{\"124\":124,\"150\":150}],26:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar EventPluginRegistry = _dereq_(18);\nvar ReactEventEmitterMixin = _dereq_(56);\nvar ViewportMetrics = _dereq_(101);\n\nvar getVendorPrefixedEventName = _dereq_(119);\nvar isEventSupported = _dereq_(121);\n\n/**\n * Summary of `ReactBrowserEventEmitter` event handling:\n *\n *  - Top-level delegation is used to trap most native browser events. This\n *    may only occur in the main thread and is the responsibility of\n *    ReactEventListener, which is injected and can therefore support pluggable\n *    event sources. This is the only work that occurs in the main thread.\n *\n *  - We normalize and de-duplicate events to account for browser quirks. This\n *    may be done in the worker thread.\n *\n *  - Forward these native events (with the associated top-level type used to\n *    trap it) to `EventPluginHub`, which in turn will ask plugins if they want\n *    to extract any synthetic events.\n *\n *  - The `EventPluginHub` will then process each event by annotating them with\n *    \"dispatches\", a sequence of listeners and IDs that care about that event.\n *\n *  - The `EventPluginHub` then dispatches the events.\n *\n * Overview of React and the event system:\n *\n * +------------+    .\n * |    DOM     |    .\n * +------------+    .\n *       |           .\n *       v           .\n * +------------+    .\n * | ReactEvent |    .\n * |  Listener  |    .\n * +------------+    .                         +-----------+\n *       |           .               +--------+|SimpleEvent|\n *       |           .               |         |Plugin     |\n * +-----|------+    .               v         +-----------+\n * |     |      |    .    +--------------+                    +------------+\n * |     +-----------.--->|EventPluginHub|                    |    Event   |\n * |            |    .    |              |     +-----------+  | Propagators|\n * | ReactEvent |    .    |              |     |TapEvent   |  |------------|\n * |  Emitter   |    .    |              |<---+|Plugin     |  |other plugin|\n * |            |    .    |              |     +-----------+  |  utilities |\n * |     +-----------.--->|              |                    +------------+\n * |     |      |    .    +--------------+\n * +-----|------+    .                ^        +-----------+\n *       |           .                |        |Enter/Leave|\n *       +           .                +-------+|Plugin     |\n * +-------------+   .                         +-----------+\n * | application |   .\n * |-------------|   .\n * |             |   .\n * |             |   .\n * +-------------+   .\n *                   .\n *    React Core     .  General Purpose Event Plugin System\n */\n\nvar hasEventPageXY;\nvar alreadyListeningTo = {};\nvar isMonitoringScrollValue = false;\nvar reactTopListenersCounter = 0;\n\n// For events like 'submit' which don't consistently bubble (which we trap at a\n// lower node than `document`), binding at `document` would cause duplicate\n// events so we don't include them here\nvar topEventMapping = {\n  topAbort: 'abort',\n  topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend',\n  topAnimationIteration: getVendorPrefixedEventName('animationiteration') || 'animationiteration',\n  topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart',\n  topBlur: 'blur',\n  topCanPlay: 'canplay',\n  topCanPlayThrough: 'canplaythrough',\n  topChange: 'change',\n  topClick: 'click',\n  topCompositionEnd: 'compositionend',\n  topCompositionStart: 'compositionstart',\n  topCompositionUpdate: 'compositionupdate',\n  topContextMenu: 'contextmenu',\n  topCopy: 'copy',\n  topCut: 'cut',\n  topDoubleClick: 'dblclick',\n  topDrag: 'drag',\n  topDragEnd: 'dragend',\n  topDragEnter: 'dragenter',\n  topDragExit: 'dragexit',\n  topDragLeave: 'dragleave',\n  topDragOver: 'dragover',\n  topDragStart: 'dragstart',\n  topDrop: 'drop',\n  topDurationChange: 'durationchange',\n  topEmptied: 'emptied',\n  topEncrypted: 'encrypted',\n  topEnded: 'ended',\n  topError: 'error',\n  topFocus: 'focus',\n  topInput: 'input',\n  topKeyDown: 'keydown',\n  topKeyPress: 'keypress',\n  topKeyUp: 'keyup',\n  topLoadedData: 'loadeddata',\n  topLoadedMetadata: 'loadedmetadata',\n  topLoadStart: 'loadstart',\n  topMouseDown: 'mousedown',\n  topMouseMove: 'mousemove',\n  topMouseOut: 'mouseout',\n  topMouseOver: 'mouseover',\n  topMouseUp: 'mouseup',\n  topPaste: 'paste',\n  topPause: 'pause',\n  topPlay: 'play',\n  topPlaying: 'playing',\n  topProgress: 'progress',\n  topRateChange: 'ratechange',\n  topScroll: 'scroll',\n  topSeeked: 'seeked',\n  topSeeking: 'seeking',\n  topSelectionChange: 'selectionchange',\n  topStalled: 'stalled',\n  topSuspend: 'suspend',\n  topTextInput: 'textInput',\n  topTimeUpdate: 'timeupdate',\n  topTouchCancel: 'touchcancel',\n  topTouchEnd: 'touchend',\n  topTouchMove: 'touchmove',\n  topTouchStart: 'touchstart',\n  topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend',\n  topVolumeChange: 'volumechange',\n  topWaiting: 'waiting',\n  topWheel: 'wheel'\n};\n\n/**\n * To ensure no conflicts with other potential React instances on the page\n */\nvar topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2);\n\nfunction getListeningForDocument(mountAt) {\n  // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`\n  // directly.\n  if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {\n    mountAt[topListenersIDKey] = reactTopListenersCounter++;\n    alreadyListeningTo[mountAt[topListenersIDKey]] = {};\n  }\n  return alreadyListeningTo[mountAt[topListenersIDKey]];\n}\n\n/**\n * `ReactBrowserEventEmitter` is used to attach top-level event listeners. For\n * example:\n *\n *   EventPluginHub.putListener('myID', 'onClick', myFunction);\n *\n * This would allocate a \"registration\" of `('onClick', myFunction)` on 'myID'.\n *\n * @internal\n */\nvar ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, {\n\n  /**\n   * Injectable event backend\n   */\n  ReactEventListener: null,\n\n  injection: {\n    /**\n     * @param {object} ReactEventListener\n     */\n    injectReactEventListener: function (ReactEventListener) {\n      ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel);\n      ReactBrowserEventEmitter.ReactEventListener = ReactEventListener;\n    }\n  },\n\n  /**\n   * Sets whether or not any created callbacks should be enabled.\n   *\n   * @param {boolean} enabled True if callbacks should be enabled.\n   */\n  setEnabled: function (enabled) {\n    if (ReactBrowserEventEmitter.ReactEventListener) {\n      ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled);\n    }\n  },\n\n  /**\n   * @return {boolean} True if callbacks are enabled.\n   */\n  isEnabled: function () {\n    return !!(ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.isEnabled());\n  },\n\n  /**\n   * We listen for bubbled touch events on the document object.\n   *\n   * Firefox v8.01 (and possibly others) exhibited strange behavior when\n   * mounting `onmousemove` events at some node that was not the document\n   * element. The symptoms were that if your mouse is not moving over something\n   * contained within that mount point (for example on the background) the\n   * top-level listeners for `onmousemove` won't be called. However, if you\n   * register the `mousemove` on the document object, then it will of course\n   * catch all `mousemove`s. This along with iOS quirks, justifies restricting\n   * top-level listeners to the document object only, at least for these\n   * movement types of events and possibly all events.\n   *\n   * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n   *\n   * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but\n   * they bubble to document.\n   *\n   * @param {string} registrationName Name of listener (e.g. `onClick`).\n   * @param {object} contentDocumentHandle Document which owns the container\n   */\n  listenTo: function (registrationName, contentDocumentHandle) {\n    var mountAt = contentDocumentHandle;\n    var isListening = getListeningForDocument(mountAt);\n    var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName];\n\n    for (var i = 0; i < dependencies.length; i++) {\n      var dependency = dependencies[i];\n      if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {\n        if (dependency === 'topWheel') {\n          if (isEventSupported('wheel')) {\n            ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'wheel', mountAt);\n          } else if (isEventSupported('mousewheel')) {\n            ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'mousewheel', mountAt);\n          } else {\n            // Firefox needs to capture a different mouse scroll event.\n            // @see http://www.quirksmode.org/dom/events/tests/scroll.html\n            ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'DOMMouseScroll', mountAt);\n          }\n        } else if (dependency === 'topScroll') {\n\n          if (isEventSupported('scroll', true)) {\n            ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topScroll', 'scroll', mountAt);\n          } else {\n            ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topScroll', 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE);\n          }\n        } else if (dependency === 'topFocus' || dependency === 'topBlur') {\n\n          if (isEventSupported('focus', true)) {\n            ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topFocus', 'focus', mountAt);\n            ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topBlur', 'blur', mountAt);\n          } else if (isEventSupported('focusin')) {\n            // IE has `focusin` and `focusout` events which bubble.\n            // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html\n            ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topFocus', 'focusin', mountAt);\n            ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topBlur', 'focusout', mountAt);\n          }\n\n          // to make sure blur and focus event listeners are only attached once\n          isListening.topBlur = true;\n          isListening.topFocus = true;\n        } else if (topEventMapping.hasOwnProperty(dependency)) {\n          ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt);\n        }\n\n        isListening[dependency] = true;\n      }\n    }\n  },\n\n  trapBubbledEvent: function (topLevelType, handlerBaseName, handle) {\n    return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle);\n  },\n\n  trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {\n    return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle);\n  },\n\n  /**\n   * Protect against document.createEvent() returning null\n   * Some popup blocker extensions appear to do this:\n   * https://github.com/facebook/react/issues/6887\n   */\n  supportsEventPageXY: function () {\n    if (!document.createEvent) {\n      return false;\n    }\n    var ev = document.createEvent('MouseEvent');\n    return ev != null && 'pageX' in ev;\n  },\n\n  /**\n   * Listens to window scroll and resize events. We cache scroll values so that\n   * application code can access them without triggering reflows.\n   *\n   * ViewportMetrics is only used by SyntheticMouse/TouchEvent and only when\n   * pageX/pageY isn't supported (legacy browsers).\n   *\n   * NOTE: Scroll events do not bubble.\n   *\n   * @see http://www.quirksmode.org/dom/events/scroll.html\n   */\n  ensureScrollValueMonitoring: function () {\n    if (hasEventPageXY === undefined) {\n      hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY();\n    }\n    if (!hasEventPageXY && !isMonitoringScrollValue) {\n      var refresh = ViewportMetrics.refreshScrollValues;\n      ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);\n      isMonitoringScrollValue = true;\n    }\n  }\n\n});\n\nmodule.exports = ReactBrowserEventEmitter;\n},{\"101\":101,\"119\":119,\"121\":121,\"158\":158,\"18\":18,\"56\":56}],27:[function(_dereq_,module,exports){\n(function (process){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactReconciler = _dereq_(75);\n\nvar instantiateReactComponent = _dereq_(120);\nvar KeyEscapeUtils = _dereq_(23);\nvar shouldUpdateReactComponent = _dereq_(128);\nvar traverseAllChildren = _dereq_(129);\nvar warning = _dereq_(157);\n\nvar ReactComponentTreeHook;\n\nif (typeof process !== 'undefined' && process.env && \"development\" === 'test') {\n  // Temporary hack.\n  // Inline requires don't work well with Jest:\n  // https://github.com/facebook/react/issues/7240\n  // Remove the inline requires when we don't need them anymore:\n  // https://github.com/facebook/react/pull/7178\n  ReactComponentTreeHook = _dereq_(131);\n}\n\nfunction instantiateChild(childInstances, child, name, selfDebugID) {\n  // We found a component instance.\n  var keyUnique = childInstances[name] === undefined;\n  if (\"development\" !== 'production') {\n    if (!ReactComponentTreeHook) {\n      ReactComponentTreeHook = _dereq_(131);\n    }\n    if (!keyUnique) {\n      \"development\" !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;\n    }\n  }\n  if (child != null && keyUnique) {\n    childInstances[name] = instantiateReactComponent(child, true);\n  }\n}\n\n/**\n * ReactChildReconciler provides helpers for initializing or updating a set of\n * children. Its output is suitable for passing it onto ReactMultiChild which\n * does diffed reordering and insertion.\n */\nvar ReactChildReconciler = {\n  /**\n   * Generates a \"mount image\" for each of the supplied children. In the case\n   * of `ReactDOMComponent`, a mount image is a string of markup.\n   *\n   * @param {?object} nestedChildNodes Nested child maps.\n   * @return {?object} A set of child instances.\n   * @internal\n   */\n  instantiateChildren: function (nestedChildNodes, transaction, context, selfDebugID // 0 in production and for roots\n  ) {\n    if (nestedChildNodes == null) {\n      return null;\n    }\n    var childInstances = {};\n\n    if (\"development\" !== 'production') {\n      traverseAllChildren(nestedChildNodes, function (childInsts, child, name) {\n        return instantiateChild(childInsts, child, name, selfDebugID);\n      }, childInstances);\n    } else {\n      traverseAllChildren(nestedChildNodes, instantiateChild, childInstances);\n    }\n    return childInstances;\n  },\n\n  /**\n   * Updates the rendered children and returns a new set of children.\n   *\n   * @param {?object} prevChildren Previously initialized set of children.\n   * @param {?object} nextChildren Flat child element maps.\n   * @param {ReactReconcileTransaction} transaction\n   * @param {object} context\n   * @return {?object} A new set of child instances.\n   * @internal\n   */\n  updateChildren: function (prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID // 0 in production and for roots\n  ) {\n    // We currently don't have a way to track moves here but if we use iterators\n    // instead of for..in we can zip the iterators and check if an item has\n    // moved.\n    // TODO: If nothing has changed, return the prevChildren object so that we\n    // can quickly bailout if nothing has changed.\n    if (!nextChildren && !prevChildren) {\n      return;\n    }\n    var name;\n    var prevChild;\n    for (name in nextChildren) {\n      if (!nextChildren.hasOwnProperty(name)) {\n        continue;\n      }\n      prevChild = prevChildren && prevChildren[name];\n      var prevElement = prevChild && prevChild._currentElement;\n      var nextElement = nextChildren[name];\n      if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) {\n        ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context);\n        nextChildren[name] = prevChild;\n      } else {\n        if (prevChild) {\n          removedNodes[name] = ReactReconciler.getHostNode(prevChild);\n          ReactReconciler.unmountComponent(prevChild, false);\n        }\n        // The child must be instantiated before it's mounted.\n        var nextChildInstance = instantiateReactComponent(nextElement, true);\n        nextChildren[name] = nextChildInstance;\n        // Creating mount image now ensures refs are resolved in right order\n        // (see https://github.com/facebook/react/pull/7101 for explanation).\n        var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID);\n        mountImages.push(nextChildMountImage);\n      }\n    }\n    // Unmount children that are no longer present.\n    for (name in prevChildren) {\n      if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) {\n        prevChild = prevChildren[name];\n        removedNodes[name] = ReactReconciler.getHostNode(prevChild);\n        ReactReconciler.unmountComponent(prevChild, false);\n      }\n    }\n  },\n\n  /**\n   * Unmounts all rendered children. This should be used to clean up children\n   * when this component is unmounted.\n   *\n   * @param {?object} renderedChildren Previously initialized set of children.\n   * @internal\n   */\n  unmountChildren: function (renderedChildren, safely) {\n    for (var name in renderedChildren) {\n      if (renderedChildren.hasOwnProperty(name)) {\n        var renderedChild = renderedChildren[name];\n        ReactReconciler.unmountComponent(renderedChild, safely);\n      }\n    }\n  }\n\n};\n\nmodule.exports = ReactChildReconciler;\n}).call(this,undefined)\n},{\"120\":120,\"128\":128,\"129\":129,\"131\":131,\"157\":157,\"23\":23,\"75\":75}],28:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMChildrenOperations = _dereq_(8);\nvar ReactDOMIDOperations = _dereq_(38);\n\n/**\n * Abstracts away all functionality of the reconciler that requires knowledge of\n * the browser context. TODO: These callers should be refactored to avoid the\n * need for this injection.\n */\nvar ReactComponentBrowserEnvironment = {\n\n  processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,\n\n  replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup\n\n};\n\nmodule.exports = ReactComponentBrowserEnvironment;\n},{\"38\":38,\"8\":8}],29:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\nvar injected = false;\n\nvar ReactComponentEnvironment = {\n\n  /**\n   * Optionally injectable hook for swapping out mount images in the middle of\n   * the tree.\n   */\n  replaceNodeWithMarkup: null,\n\n  /**\n   * Optionally injectable hook for processing a queue of child updates. Will\n   * later move into MultiChildComponents.\n   */\n  processChildrenUpdates: null,\n\n  injection: {\n    injectEnvironment: function (environment) {\n      !!injected ? \"development\" !== 'production' ? invariant(false, 'ReactCompositeComponent: injectEnvironment() can only be called once.') : _prodInvariant('104') : void 0;\n      ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup;\n      ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates;\n      injected = true;\n    }\n  }\n\n};\n\nmodule.exports = ReactComponentEnvironment;\n},{\"124\":124,\"150\":150}],30:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar React = _dereq_(133);\nvar ReactComponentEnvironment = _dereq_(29);\nvar ReactCurrentOwner = _dereq_(132);\nvar ReactErrorUtils = _dereq_(55);\nvar ReactInstanceMap = _dereq_(63);\nvar ReactInstrumentation = _dereq_(64);\nvar ReactNodeTypes = _dereq_(69);\nvar ReactReconciler = _dereq_(75);\n\nif (\"development\" !== 'production') {\n  var checkReactTypeSpec = _dereq_(104);\n}\n\nvar emptyObject = _dereq_(143);\nvar invariant = _dereq_(150);\nvar shallowEqual = _dereq_(156);\nvar shouldUpdateReactComponent = _dereq_(128);\nvar warning = _dereq_(157);\n\nvar CompositeTypes = {\n  ImpureClass: 0,\n  PureClass: 1,\n  StatelessFunctional: 2\n};\n\nfunction StatelessComponent(Component) {}\nStatelessComponent.prototype.render = function () {\n  var Component = ReactInstanceMap.get(this)._currentElement.type;\n  var element = Component(this.props, this.context, this.updater);\n  warnIfInvalidElement(Component, element);\n  return element;\n};\n\nfunction warnIfInvalidElement(Component, element) {\n  if (\"development\" !== 'production') {\n    \"development\" !== 'production' ? warning(element === null || element === false || React.isValidElement(element), '%s(...): A valid React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0;\n    \"development\" !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0;\n  }\n}\n\nfunction shouldConstruct(Component) {\n  return !!(Component.prototype && Component.prototype.isReactComponent);\n}\n\nfunction isPureComponent(Component) {\n  return !!(Component.prototype && Component.prototype.isPureReactComponent);\n}\n\n// Separated into a function to contain deoptimizations caused by try/finally.\nfunction measureLifeCyclePerf(fn, debugID, timerType) {\n  if (debugID === 0) {\n    // Top-level wrappers (see ReactMount) and empty components (see\n    // ReactDOMEmptyComponent) are invisible to hooks and devtools.\n    // Both are implementation details that should go away in the future.\n    return fn();\n  }\n\n  ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);\n  try {\n    return fn();\n  } finally {\n    ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);\n  }\n}\n\n/**\n * ------------------ The Life-Cycle of a Composite Component ------------------\n *\n * - constructor: Initialization of state. The instance is now retained.\n *   - componentWillMount\n *   - render\n *   - [children's constructors]\n *     - [children's componentWillMount and render]\n *     - [children's componentDidMount]\n *     - componentDidMount\n *\n *       Update Phases:\n *       - componentWillReceiveProps (only called if parent updated)\n *       - shouldComponentUpdate\n *         - componentWillUpdate\n *           - render\n *           - [children's constructors or receive props phases]\n *         - componentDidUpdate\n *\n *     - componentWillUnmount\n *     - [children's componentWillUnmount]\n *   - [children destroyed]\n * - (destroyed): The instance is now blank, released by React and ready for GC.\n *\n * -----------------------------------------------------------------------------\n */\n\n/**\n * An incrementing ID assigned to each component when it is mounted. This is\n * used to enforce the order in which `ReactUpdates` updates dirty components.\n *\n * @private\n */\nvar nextMountID = 1;\n\n/**\n * @lends {ReactCompositeComponent.prototype}\n */\nvar ReactCompositeComponent = {\n\n  /**\n   * Base constructor for all composite component.\n   *\n   * @param {ReactElement} element\n   * @final\n   * @internal\n   */\n  construct: function (element) {\n    this._currentElement = element;\n    this._rootNodeID = 0;\n    this._compositeType = null;\n    this._instance = null;\n    this._hostParent = null;\n    this._hostContainerInfo = null;\n\n    // See ReactUpdateQueue\n    this._updateBatchNumber = null;\n    this._pendingElement = null;\n    this._pendingStateQueue = null;\n    this._pendingReplaceState = false;\n    this._pendingForceUpdate = false;\n\n    this._renderedNodeType = null;\n    this._renderedComponent = null;\n    this._context = null;\n    this._mountOrder = 0;\n    this._topLevelWrapper = null;\n\n    // See ReactUpdates and ReactUpdateQueue.\n    this._pendingCallbacks = null;\n\n    // ComponentWillUnmount shall only be called once\n    this._calledComponentWillUnmount = false;\n\n    if (\"development\" !== 'production') {\n      this._warnedAboutRefsInRender = false;\n    }\n  },\n\n  /**\n   * Initializes the component, renders markup, and registers event listeners.\n   *\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @param {?object} hostParent\n   * @param {?object} hostContainerInfo\n   * @param {?object} context\n   * @return {?string} Rendered markup to be inserted into the DOM.\n   * @final\n   * @internal\n   */\n  mountComponent: function (transaction, hostParent, hostContainerInfo, context) {\n    var _this = this;\n\n    this._context = context;\n    this._mountOrder = nextMountID++;\n    this._hostParent = hostParent;\n    this._hostContainerInfo = hostContainerInfo;\n\n    var publicProps = this._currentElement.props;\n    var publicContext = this._processContext(context);\n\n    var Component = this._currentElement.type;\n\n    var updateQueue = transaction.getUpdateQueue();\n\n    // Initialize the public class\n    var doConstruct = shouldConstruct(Component);\n    var inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue);\n    var renderedElement;\n\n    // Support functional components\n    if (!doConstruct && (inst == null || inst.render == null)) {\n      renderedElement = inst;\n      warnIfInvalidElement(Component, renderedElement);\n      !(inst === null || inst === false || React.isValidElement(inst)) ? \"development\" !== 'production' ? invariant(false, '%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0;\n      inst = new StatelessComponent(Component);\n      this._compositeType = CompositeTypes.StatelessFunctional;\n    } else {\n      if (isPureComponent(Component)) {\n        this._compositeType = CompositeTypes.PureClass;\n      } else {\n        this._compositeType = CompositeTypes.ImpureClass;\n      }\n    }\n\n    if (\"development\" !== 'production') {\n      // This will throw later in _renderValidatedComponent, but add an early\n      // warning now to help debugging\n      if (inst.render == null) {\n        \"development\" !== 'production' ? warning(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', Component.displayName || Component.name || 'Component') : void 0;\n      }\n\n      var propsMutated = inst.props !== publicProps;\n      var componentName = Component.displayName || Component.name || 'Component';\n\n      \"development\" !== 'production' ? warning(inst.props === undefined || !propsMutated, '%s(...): When calling super() in `%s`, make sure to pass ' + 'up the same props that your component\\'s constructor was passed.', componentName, componentName) : void 0;\n    }\n\n    // These should be set up in the constructor, but as a convenience for\n    // simpler class abstractions, we set them up after the fact.\n    inst.props = publicProps;\n    inst.context = publicContext;\n    inst.refs = emptyObject;\n    inst.updater = updateQueue;\n\n    this._instance = inst;\n\n    // Store a reference from the instance back to the internal representation\n    ReactInstanceMap.set(inst, this);\n\n    if (\"development\" !== 'production') {\n      // Since plain JS classes are defined without any special initialization\n      // logic, we can not catch common errors early. Therefore, we have to\n      // catch them here, at initialization time, instead.\n      \"development\" !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0;\n      \"development\" !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : void 0;\n      \"development\" !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0;\n      \"development\" !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0;\n      \"development\" !== 'production' ? warning(typeof inst.componentShouldUpdate !== 'function', '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', this.getName() || 'A component') : void 0;\n      \"development\" !== 'production' ? warning(typeof inst.componentDidUnmount !== 'function', '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', this.getName() || 'A component') : void 0;\n      \"development\" !== 'production' ? warning(typeof inst.componentWillRecieveProps !== 'function', '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', this.getName() || 'A component') : void 0;\n    }\n\n    var initialState = inst.state;\n    if (initialState === undefined) {\n      inst.state = initialState = null;\n    }\n    !(typeof initialState === 'object' && !Array.isArray(initialState)) ? \"development\" !== 'production' ? invariant(false, '%s.state: must be set to an object or null', this.getName() || 'ReactCompositeComponent') : _prodInvariant('106', this.getName() || 'ReactCompositeComponent') : void 0;\n\n    this._pendingStateQueue = null;\n    this._pendingReplaceState = false;\n    this._pendingForceUpdate = false;\n\n    var markup;\n    if (inst.unstable_handleError) {\n      markup = this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context);\n    } else {\n      markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);\n    }\n\n    if (inst.componentDidMount) {\n      if (\"development\" !== 'production') {\n        transaction.getReactMountReady().enqueue(function () {\n          measureLifeCyclePerf(function () {\n            return inst.componentDidMount();\n          }, _this._debugID, 'componentDidMount');\n        });\n      } else {\n        transaction.getReactMountReady().enqueue(inst.componentDidMount, inst);\n      }\n    }\n\n    return markup;\n  },\n\n  _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {\n    if (\"development\" !== 'production') {\n      ReactCurrentOwner.current = this;\n      try {\n        return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);\n      } finally {\n        ReactCurrentOwner.current = null;\n      }\n    } else {\n      return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);\n    }\n  },\n\n  _constructComponentWithoutOwner: function (doConstruct, publicProps, publicContext, updateQueue) {\n    var Component = this._currentElement.type;\n\n    if (doConstruct) {\n      if (\"development\" !== 'production') {\n        return measureLifeCyclePerf(function () {\n          return new Component(publicProps, publicContext, updateQueue);\n        }, this._debugID, 'ctor');\n      } else {\n        return new Component(publicProps, publicContext, updateQueue);\n      }\n    }\n\n    // This can still be an instance in case of factory components\n    // but we'll count this as time spent rendering as the more common case.\n    if (\"development\" !== 'production') {\n      return measureLifeCyclePerf(function () {\n        return Component(publicProps, publicContext, updateQueue);\n      }, this._debugID, 'render');\n    } else {\n      return Component(publicProps, publicContext, updateQueue);\n    }\n  },\n\n  performInitialMountWithErrorHandling: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {\n    var markup;\n    var checkpoint = transaction.checkpoint();\n    try {\n      markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);\n    } catch (e) {\n      // Roll back to checkpoint, handle error (which may add items to the transaction), and take a new checkpoint\n      transaction.rollback(checkpoint);\n      this._instance.unstable_handleError(e);\n      if (this._pendingStateQueue) {\n        this._instance.state = this._processPendingState(this._instance.props, this._instance.context);\n      }\n      checkpoint = transaction.checkpoint();\n\n      this._renderedComponent.unmountComponent(true);\n      transaction.rollback(checkpoint);\n\n      // Try again - we've informed the component about the error, so they can render an error message this time.\n      // If this throws again, the error will bubble up (and can be caught by a higher error boundary).\n      markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);\n    }\n    return markup;\n  },\n\n  performInitialMount: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {\n    var inst = this._instance;\n\n    var debugID = 0;\n    if (\"development\" !== 'production') {\n      debugID = this._debugID;\n    }\n\n    if (inst.componentWillMount) {\n      if (\"development\" !== 'production') {\n        measureLifeCyclePerf(function () {\n          return inst.componentWillMount();\n        }, debugID, 'componentWillMount');\n      } else {\n        inst.componentWillMount();\n      }\n      // When mounting, calls to `setState` by `componentWillMount` will set\n      // `this._pendingStateQueue` without triggering a re-render.\n      if (this._pendingStateQueue) {\n        inst.state = this._processPendingState(inst.props, inst.context);\n      }\n    }\n\n    // If not a stateless component, we now render\n    if (renderedElement === undefined) {\n      renderedElement = this._renderValidatedComponent();\n    }\n\n    var nodeType = ReactNodeTypes.getType(renderedElement);\n    this._renderedNodeType = nodeType;\n    var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */\n    );\n    this._renderedComponent = child;\n\n    var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID);\n\n    if (\"development\" !== 'production') {\n      if (debugID !== 0) {\n        var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];\n        ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);\n      }\n    }\n\n    return markup;\n  },\n\n  getHostNode: function () {\n    return ReactReconciler.getHostNode(this._renderedComponent);\n  },\n\n  /**\n   * Releases any resources allocated by `mountComponent`.\n   *\n   * @final\n   * @internal\n   */\n  unmountComponent: function (safely) {\n    if (!this._renderedComponent) {\n      return;\n    }\n\n    var inst = this._instance;\n\n    if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) {\n      inst._calledComponentWillUnmount = true;\n\n      if (safely) {\n        var name = this.getName() + '.componentWillUnmount()';\n        ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst));\n      } else {\n        if (\"development\" !== 'production') {\n          measureLifeCyclePerf(function () {\n            return inst.componentWillUnmount();\n          }, this._debugID, 'componentWillUnmount');\n        } else {\n          inst.componentWillUnmount();\n        }\n      }\n    }\n\n    if (this._renderedComponent) {\n      ReactReconciler.unmountComponent(this._renderedComponent, safely);\n      this._renderedNodeType = null;\n      this._renderedComponent = null;\n      this._instance = null;\n    }\n\n    // Reset pending fields\n    // Even if this component is scheduled for another update in ReactUpdates,\n    // it would still be ignored because these fields are reset.\n    this._pendingStateQueue = null;\n    this._pendingReplaceState = false;\n    this._pendingForceUpdate = false;\n    this._pendingCallbacks = null;\n    this._pendingElement = null;\n\n    // These fields do not really need to be reset since this object is no\n    // longer accessible.\n    this._context = null;\n    this._rootNodeID = 0;\n    this._topLevelWrapper = null;\n\n    // Delete the reference from the instance to this internal representation\n    // which allow the internals to be properly cleaned up even if the user\n    // leaks a reference to the public instance.\n    ReactInstanceMap.remove(inst);\n\n    // Some existing components rely on inst.props even after they've been\n    // destroyed (in event handlers).\n    // TODO: inst.props = null;\n    // TODO: inst.state = null;\n    // TODO: inst.context = null;\n  },\n\n  /**\n   * Filters the context object to only contain keys specified in\n   * `contextTypes`\n   *\n   * @param {object} context\n   * @return {?object}\n   * @private\n   */\n  _maskContext: function (context) {\n    var Component = this._currentElement.type;\n    var contextTypes = Component.contextTypes;\n    if (!contextTypes) {\n      return emptyObject;\n    }\n    var maskedContext = {};\n    for (var contextName in contextTypes) {\n      maskedContext[contextName] = context[contextName];\n    }\n    return maskedContext;\n  },\n\n  /**\n   * Filters the context object to only contain keys specified in\n   * `contextTypes`, and asserts that they are valid.\n   *\n   * @param {object} context\n   * @return {?object}\n   * @private\n   */\n  _processContext: function (context) {\n    var maskedContext = this._maskContext(context);\n    if (\"development\" !== 'production') {\n      var Component = this._currentElement.type;\n      if (Component.contextTypes) {\n        this._checkContextTypes(Component.contextTypes, maskedContext, 'context');\n      }\n    }\n    return maskedContext;\n  },\n\n  /**\n   * @param {object} currentContext\n   * @return {object}\n   * @private\n   */\n  _processChildContext: function (currentContext) {\n    var Component = this._currentElement.type;\n    var inst = this._instance;\n    var childContext;\n\n    if (inst.getChildContext) {\n      if (\"development\" !== 'production') {\n        ReactInstrumentation.debugTool.onBeginProcessingChildContext();\n        try {\n          childContext = inst.getChildContext();\n        } finally {\n          ReactInstrumentation.debugTool.onEndProcessingChildContext();\n        }\n      } else {\n        childContext = inst.getChildContext();\n      }\n    }\n\n    if (childContext) {\n      !(typeof Component.childContextTypes === 'object') ? \"development\" !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0;\n      if (\"development\" !== 'production') {\n        this._checkContextTypes(Component.childContextTypes, childContext, 'child context');\n      }\n      for (var name in childContext) {\n        !(name in Component.childContextTypes) ? \"development\" !== 'production' ? invariant(false, '%s.getChildContext(): key \"%s\" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0;\n      }\n      return _assign({}, currentContext, childContext);\n    }\n    return currentContext;\n  },\n\n  /**\n   * Assert that the context types are valid\n   *\n   * @param {object} typeSpecs Map of context field to a ReactPropType\n   * @param {object} values Runtime values that need to be type-checked\n   * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n   * @private\n   */\n  _checkContextTypes: function (typeSpecs, values, location) {\n    if (\"development\" !== 'production') {\n      checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID);\n    }\n  },\n\n  receiveComponent: function (nextElement, transaction, nextContext) {\n    var prevElement = this._currentElement;\n    var prevContext = this._context;\n\n    this._pendingElement = null;\n\n    this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext);\n  },\n\n  /**\n   * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate`\n   * is set, update the component.\n   *\n   * @param {ReactReconcileTransaction} transaction\n   * @internal\n   */\n  performUpdateIfNecessary: function (transaction) {\n    if (this._pendingElement != null) {\n      ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context);\n    } else if (this._pendingStateQueue !== null || this._pendingForceUpdate) {\n      this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context);\n    } else {\n      this._updateBatchNumber = null;\n    }\n  },\n\n  /**\n   * Perform an update to a mounted component. The componentWillReceiveProps and\n   * shouldComponentUpdate methods are called, then (assuming the update isn't\n   * skipped) the remaining update lifecycle methods are called and the DOM\n   * representation is updated.\n   *\n   * By default, this implements React's rendering and reconciliation algorithm.\n   * Sophisticated clients may wish to override this.\n   *\n   * @param {ReactReconcileTransaction} transaction\n   * @param {ReactElement} prevParentElement\n   * @param {ReactElement} nextParentElement\n   * @internal\n   * @overridable\n   */\n  updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) {\n    var inst = this._instance;\n    !(inst != null) ? \"development\" !== 'production' ? invariant(false, 'Attempted to update component `%s` that has already been unmounted (or failed to mount).', this.getName() || 'ReactCompositeComponent') : _prodInvariant('136', this.getName() || 'ReactCompositeComponent') : void 0;\n\n    var willReceive = false;\n    var nextContext;\n\n    // Determine if the context has changed or not\n    if (this._context === nextUnmaskedContext) {\n      nextContext = inst.context;\n    } else {\n      nextContext = this._processContext(nextUnmaskedContext);\n      willReceive = true;\n    }\n\n    var prevProps = prevParentElement.props;\n    var nextProps = nextParentElement.props;\n\n    // Not a simple state update but a props update\n    if (prevParentElement !== nextParentElement) {\n      willReceive = true;\n    }\n\n    // An update here will schedule an update but immediately set\n    // _pendingStateQueue which will ensure that any state updates gets\n    // immediately reconciled instead of waiting for the next batch.\n    if (willReceive && inst.componentWillReceiveProps) {\n      if (\"development\" !== 'production') {\n        measureLifeCyclePerf(function () {\n          return inst.componentWillReceiveProps(nextProps, nextContext);\n        }, this._debugID, 'componentWillReceiveProps');\n      } else {\n        inst.componentWillReceiveProps(nextProps, nextContext);\n      }\n    }\n\n    var nextState = this._processPendingState(nextProps, nextContext);\n    var shouldUpdate = true;\n\n    if (!this._pendingForceUpdate) {\n      if (inst.shouldComponentUpdate) {\n        if (\"development\" !== 'production') {\n          shouldUpdate = measureLifeCyclePerf(function () {\n            return inst.shouldComponentUpdate(nextProps, nextState, nextContext);\n          }, this._debugID, 'shouldComponentUpdate');\n        } else {\n          shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext);\n        }\n      } else {\n        if (this._compositeType === CompositeTypes.PureClass) {\n          shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState);\n        }\n      }\n    }\n\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', this.getName() || 'ReactCompositeComponent') : void 0;\n    }\n\n    this._updateBatchNumber = null;\n    if (shouldUpdate) {\n      this._pendingForceUpdate = false;\n      // Will set `this.props`, `this.state` and `this.context`.\n      this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext);\n    } else {\n      // If it's determined that a component should not update, we still want\n      // to set props and state but we shortcut the rest of the update.\n      this._currentElement = nextParentElement;\n      this._context = nextUnmaskedContext;\n      inst.props = nextProps;\n      inst.state = nextState;\n      inst.context = nextContext;\n    }\n  },\n\n  _processPendingState: function (props, context) {\n    var inst = this._instance;\n    var queue = this._pendingStateQueue;\n    var replace = this._pendingReplaceState;\n    this._pendingReplaceState = false;\n    this._pendingStateQueue = null;\n\n    if (!queue) {\n      return inst.state;\n    }\n\n    if (replace && queue.length === 1) {\n      return queue[0];\n    }\n\n    var nextState = _assign({}, replace ? queue[0] : inst.state);\n    for (var i = replace ? 1 : 0; i < queue.length; i++) {\n      var partial = queue[i];\n      _assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial);\n    }\n\n    return nextState;\n  },\n\n  /**\n   * Merges new props and state, notifies delegate methods of update and\n   * performs update.\n   *\n   * @param {ReactElement} nextElement Next element\n   * @param {object} nextProps Next public object to set as properties.\n   * @param {?object} nextState Next object to set as state.\n   * @param {?object} nextContext Next public object to set as context.\n   * @param {ReactReconcileTransaction} transaction\n   * @param {?object} unmaskedContext\n   * @private\n   */\n  _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) {\n    var _this2 = this;\n\n    var inst = this._instance;\n\n    var hasComponentDidUpdate = Boolean(inst.componentDidUpdate);\n    var prevProps;\n    var prevState;\n    var prevContext;\n    if (hasComponentDidUpdate) {\n      prevProps = inst.props;\n      prevState = inst.state;\n      prevContext = inst.context;\n    }\n\n    if (inst.componentWillUpdate) {\n      if (\"development\" !== 'production') {\n        measureLifeCyclePerf(function () {\n          return inst.componentWillUpdate(nextProps, nextState, nextContext);\n        }, this._debugID, 'componentWillUpdate');\n      } else {\n        inst.componentWillUpdate(nextProps, nextState, nextContext);\n      }\n    }\n\n    this._currentElement = nextElement;\n    this._context = unmaskedContext;\n    inst.props = nextProps;\n    inst.state = nextState;\n    inst.context = nextContext;\n\n    this._updateRenderedComponent(transaction, unmaskedContext);\n\n    if (hasComponentDidUpdate) {\n      if (\"development\" !== 'production') {\n        transaction.getReactMountReady().enqueue(function () {\n          measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, 'componentDidUpdate');\n        });\n      } else {\n        transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst);\n      }\n    }\n  },\n\n  /**\n   * Call the component's `render` method and update the DOM accordingly.\n   *\n   * @param {ReactReconcileTransaction} transaction\n   * @internal\n   */\n  _updateRenderedComponent: function (transaction, context) {\n    var prevComponentInstance = this._renderedComponent;\n    var prevRenderedElement = prevComponentInstance._currentElement;\n    var nextRenderedElement = this._renderValidatedComponent();\n\n    var debugID = 0;\n    if (\"development\" !== 'production') {\n      debugID = this._debugID;\n    }\n\n    if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) {\n      ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context));\n    } else {\n      var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance);\n      ReactReconciler.unmountComponent(prevComponentInstance, false);\n\n      var nodeType = ReactNodeTypes.getType(nextRenderedElement);\n      this._renderedNodeType = nodeType;\n      var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */\n      );\n      this._renderedComponent = child;\n\n      var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID);\n\n      if (\"development\" !== 'production') {\n        if (debugID !== 0) {\n          var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];\n          ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);\n        }\n      }\n\n      this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance);\n    }\n  },\n\n  /**\n   * Overridden in shallow rendering.\n   *\n   * @protected\n   */\n  _replaceNodeWithMarkup: function (oldHostNode, nextMarkup, prevInstance) {\n    ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance);\n  },\n\n  /**\n   * @protected\n   */\n  _renderValidatedComponentWithoutOwnerOrContext: function () {\n    var inst = this._instance;\n    var renderedElement;\n\n    if (\"development\" !== 'production') {\n      renderedElement = measureLifeCyclePerf(function () {\n        return inst.render();\n      }, this._debugID, 'render');\n    } else {\n      renderedElement = inst.render();\n    }\n\n    if (\"development\" !== 'production') {\n      // We allow auto-mocks to proceed as if they're returning null.\n      if (renderedElement === undefined && inst.render._isMockFunction) {\n        // This is probably bad practice. Consider warning here and\n        // deprecating this convenience.\n        renderedElement = null;\n      }\n    }\n\n    return renderedElement;\n  },\n\n  /**\n   * @private\n   */\n  _renderValidatedComponent: function () {\n    var renderedElement;\n    if (\"development\" !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) {\n      ReactCurrentOwner.current = this;\n      try {\n        renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();\n      } finally {\n        ReactCurrentOwner.current = null;\n      }\n    } else {\n      renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();\n    }\n    !(\n    // TODO: An `isValidNode` function would probably be more appropriate\n    renderedElement === null || renderedElement === false || React.isValidElement(renderedElement)) ? \"development\" !== 'production' ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0;\n\n    return renderedElement;\n  },\n\n  /**\n   * Lazily allocates the refs object and stores `component` as `ref`.\n   *\n   * @param {string} ref Reference name.\n   * @param {component} component Component to store as `ref`.\n   * @final\n   * @private\n   */\n  attachRef: function (ref, component) {\n    var inst = this.getPublicInstance();\n    !(inst != null) ? \"development\" !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0;\n    var publicComponentInstance = component.getPublicInstance();\n    if (\"development\" !== 'production') {\n      var componentName = component && component.getName ? component.getName() : 'a component';\n      \"development\" !== 'production' ? warning(publicComponentInstance != null || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs ' + '(See ref \"%s\" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0;\n    }\n    var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;\n    refs[ref] = publicComponentInstance;\n  },\n\n  /**\n   * Detaches a reference name.\n   *\n   * @param {string} ref Name to dereference.\n   * @final\n   * @private\n   */\n  detachRef: function (ref) {\n    var refs = this.getPublicInstance().refs;\n    delete refs[ref];\n  },\n\n  /**\n   * Get a text description of the component that can be used to identify it\n   * in error messages.\n   * @return {string} The name or null.\n   * @internal\n   */\n  getName: function () {\n    var type = this._currentElement.type;\n    var constructor = this._instance && this._instance.constructor;\n    return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null;\n  },\n\n  /**\n   * Get the publicly accessible representation of this component - i.e. what\n   * is exposed by refs and returned by render. Can be null for stateless\n   * components.\n   *\n   * @return {ReactComponent} the public component instance.\n   * @internal\n   */\n  getPublicInstance: function () {\n    var inst = this._instance;\n    if (this._compositeType === CompositeTypes.StatelessFunctional) {\n      return null;\n    }\n    return inst;\n  },\n\n  // Stub\n  _instantiateReactComponent: null\n\n};\n\nmodule.exports = ReactCompositeComponent;\n},{\"104\":104,\"124\":124,\"128\":128,\"132\":132,\"133\":133,\"143\":143,\"150\":150,\"156\":156,\"157\":157,\"158\":158,\"29\":29,\"55\":55,\"63\":63,\"64\":64,\"69\":69,\"75\":75}],31:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/\n\n'use strict';\n\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactDefaultInjection = _dereq_(52);\nvar ReactMount = _dereq_(67);\nvar ReactReconciler = _dereq_(75);\nvar ReactUpdates = _dereq_(82);\nvar ReactVersion = _dereq_(83);\n\nvar findDOMNode = _dereq_(108);\nvar getHostComponentFromComposite = _dereq_(115);\nvar renderSubtreeIntoContainer = _dereq_(125);\nvar warning = _dereq_(157);\n\nReactDefaultInjection.inject();\n\nvar ReactDOM = {\n  findDOMNode: findDOMNode,\n  render: ReactMount.render,\n  unmountComponentAtNode: ReactMount.unmountComponentAtNode,\n  version: ReactVersion,\n\n  /* eslint-disable camelcase */\n  unstable_batchedUpdates: ReactUpdates.batchedUpdates,\n  unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer\n};\n\n// Inject the runtime into a devtools global hook regardless of browser.\n// Allows for debugging when the hook is injected on the page.\nif (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({\n    ComponentTree: {\n      getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,\n      getNodeFromInstance: function (inst) {\n        // inst is an internal instance (but could be a composite)\n        if (inst._renderedComponent) {\n          inst = getHostComponentFromComposite(inst);\n        }\n        if (inst) {\n          return ReactDOMComponentTree.getNodeFromInstance(inst);\n        } else {\n          return null;\n        }\n      }\n    },\n    Mount: ReactMount,\n    Reconciler: ReactReconciler\n  });\n}\n\nif (\"development\" !== 'production') {\n  var ExecutionEnvironment = _dereq_(136);\n  if (ExecutionEnvironment.canUseDOM && window.top === window.self) {\n\n    // First check if devtools is not installed\n    if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n      // If we're in Chrome or Firefox, provide a download link if not installed.\n      if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {\n        // Firefox does not have the issue with devtools loaded over file://\n        var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1;\n        console.debug('Download the React DevTools ' + (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') + 'for a better development experience: ' + 'https://fb.me/react-devtools');\n      }\n    }\n\n    var testFunc = function testFn() {};\n    \"development\" !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;\n\n    // If we're in IE8, check to see if we are in compatibility mode and provide\n    // information on preventing compatibility mode\n    var ieCompatibilityMode = document.documentMode && document.documentMode < 8;\n\n    \"development\" !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />') : void 0;\n\n    var expectedFeatures = [\n    // shims\n    Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim];\n\n    for (var i = 0; i < expectedFeatures.length; i++) {\n      if (!expectedFeatures[i]) {\n        \"development\" !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;\n        break;\n      }\n    }\n  }\n}\n\nif (\"development\" !== 'production') {\n  var ReactInstrumentation = _dereq_(64);\n  var ReactDOMUnknownPropertyHook = _dereq_(49);\n  var ReactDOMNullInputValuePropHook = _dereq_(41);\n  var ReactDOMInvalidARIAHook = _dereq_(40);\n\n  ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);\n  ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);\n  ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);\n}\n\nmodule.exports = ReactDOM;\n},{\"108\":108,\"115\":115,\"125\":125,\"136\":136,\"157\":157,\"34\":34,\"40\":40,\"41\":41,\"49\":49,\"52\":52,\"64\":64,\"67\":67,\"75\":75,\"82\":82,\"83\":83}],32:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* global hasOwnProperty:true */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar AutoFocusUtils = _dereq_(2);\nvar CSSPropertyOperations = _dereq_(5);\nvar DOMLazyTree = _dereq_(9);\nvar DOMNamespaces = _dereq_(10);\nvar DOMProperty = _dereq_(11);\nvar DOMPropertyOperations = _dereq_(12);\nvar EventPluginHub = _dereq_(17);\nvar EventPluginRegistry = _dereq_(18);\nvar ReactBrowserEventEmitter = _dereq_(26);\nvar ReactDOMComponentFlags = _dereq_(33);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactDOMInput = _dereq_(39);\nvar ReactDOMOption = _dereq_(42);\nvar ReactDOMSelect = _dereq_(43);\nvar ReactDOMTextarea = _dereq_(46);\nvar ReactInstrumentation = _dereq_(64);\nvar ReactMultiChild = _dereq_(68);\nvar ReactServerRenderingTransaction = _dereq_(77);\n\nvar emptyFunction = _dereq_(142);\nvar escapeTextContentForBrowser = _dereq_(107);\nvar invariant = _dereq_(150);\nvar isEventSupported = _dereq_(121);\nvar shallowEqual = _dereq_(156);\nvar validateDOMNesting = _dereq_(130);\nvar warning = _dereq_(157);\n\nvar Flags = ReactDOMComponentFlags;\nvar deleteListener = EventPluginHub.deleteListener;\nvar getNode = ReactDOMComponentTree.getNodeFromInstance;\nvar listenTo = ReactBrowserEventEmitter.listenTo;\nvar registrationNameModules = EventPluginRegistry.registrationNameModules;\n\n// For quickly matching children type, to test if can be treated as content.\nvar CONTENT_TYPES = { 'string': true, 'number': true };\n\nvar STYLE = 'style';\nvar HTML = '__html';\nvar RESERVED_PROPS = {\n  children: null,\n  dangerouslySetInnerHTML: null,\n  suppressContentEditableWarning: null\n};\n\n// Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE).\nvar DOC_FRAGMENT_TYPE = 11;\n\nfunction getDeclarationErrorAddendum(internalInstance) {\n  if (internalInstance) {\n    var owner = internalInstance._currentElement._owner || null;\n    if (owner) {\n      var name = owner.getName();\n      if (name) {\n        return ' This DOM node was rendered by `' + name + '`.';\n      }\n    }\n  }\n  return '';\n}\n\nfunction friendlyStringify(obj) {\n  if (typeof obj === 'object') {\n    if (Array.isArray(obj)) {\n      return '[' + obj.map(friendlyStringify).join(', ') + ']';\n    } else {\n      var pairs = [];\n      for (var key in obj) {\n        if (Object.prototype.hasOwnProperty.call(obj, key)) {\n          var keyEscaped = /^[a-z$_][\\w$_]*$/i.test(key) ? key : JSON.stringify(key);\n          pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key]));\n        }\n      }\n      return '{' + pairs.join(', ') + '}';\n    }\n  } else if (typeof obj === 'string') {\n    return JSON.stringify(obj);\n  } else if (typeof obj === 'function') {\n    return '[function object]';\n  }\n  // Differs from JSON.stringify in that undefined because undefined and that\n  // inf and nan don't become null\n  return String(obj);\n}\n\nvar styleMutationWarning = {};\n\nfunction checkAndWarnForMutatedStyle(style1, style2, component) {\n  if (style1 == null || style2 == null) {\n    return;\n  }\n  if (shallowEqual(style1, style2)) {\n    return;\n  }\n\n  var componentName = component._tag;\n  var owner = component._currentElement._owner;\n  var ownerName;\n  if (owner) {\n    ownerName = owner.getName();\n  }\n\n  var hash = ownerName + '|' + componentName;\n\n  if (styleMutationWarning.hasOwnProperty(hash)) {\n    return;\n  }\n\n  styleMutationWarning[hash] = true;\n\n  \"development\" !== 'production' ? warning(false, '`%s` was passed a style object that has previously been mutated. ' + 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' + 'the `render` %s. Previous style: %s. Mutated style: %s.', componentName, owner ? 'of `' + ownerName + '`' : 'using <' + componentName + '>', friendlyStringify(style1), friendlyStringify(style2)) : void 0;\n}\n\n/**\n * @param {object} component\n * @param {?object} props\n */\nfunction assertValidProps(component, props) {\n  if (!props) {\n    return;\n  }\n  // Note the use of `==` which checks for null or undefined.\n  if (voidElementTags[component._tag]) {\n    !(props.children == null && props.dangerouslySetInnerHTML == null) ? \"development\" !== 'production' ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : _prodInvariant('137', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : void 0;\n  }\n  if (props.dangerouslySetInnerHTML != null) {\n    !(props.children == null) ? \"development\" !== 'production' ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : _prodInvariant('60') : void 0;\n    !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? \"development\" !== 'production' ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : _prodInvariant('61') : void 0;\n  }\n  if (\"development\" !== 'production') {\n    \"development\" !== 'production' ? warning(props.innerHTML == null, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.') : void 0;\n    \"development\" !== 'production' ? warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;\n    \"development\" !== 'production' ? warning(props.onFocusIn == null && props.onFocusOut == null, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.') : void 0;\n  }\n  !(props.style == null || typeof props.style === 'object') ? \"development\" !== 'production' ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.%s', getDeclarationErrorAddendum(component)) : _prodInvariant('62', getDeclarationErrorAddendum(component)) : void 0;\n}\n\nfunction enqueuePutListener(inst, registrationName, listener, transaction) {\n  if (transaction instanceof ReactServerRenderingTransaction) {\n    return;\n  }\n  if (\"development\" !== 'production') {\n    // IE8 has no API for event capturing and the `onScroll` event doesn't\n    // bubble.\n    \"development\" !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\\'t support the `onScroll` event') : void 0;\n  }\n  var containerInfo = inst._hostContainerInfo;\n  var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;\n  var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;\n  listenTo(registrationName, doc);\n  transaction.getReactMountReady().enqueue(putListener, {\n    inst: inst,\n    registrationName: registrationName,\n    listener: listener\n  });\n}\n\nfunction putListener() {\n  var listenerToPut = this;\n  EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener);\n}\n\nfunction inputPostMount() {\n  var inst = this;\n  ReactDOMInput.postMountWrapper(inst);\n}\n\nfunction textareaPostMount() {\n  var inst = this;\n  ReactDOMTextarea.postMountWrapper(inst);\n}\n\nfunction optionPostMount() {\n  var inst = this;\n  ReactDOMOption.postMountWrapper(inst);\n}\n\nvar setAndValidateContentChildDev = emptyFunction;\nif (\"development\" !== 'production') {\n  setAndValidateContentChildDev = function (content) {\n    var hasExistingContent = this._contentDebugID != null;\n    var debugID = this._debugID;\n    // This ID represents the inlined child that has no backing instance:\n    var contentDebugID = -debugID;\n\n    if (content == null) {\n      if (hasExistingContent) {\n        ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID);\n      }\n      this._contentDebugID = null;\n      return;\n    }\n\n    validateDOMNesting(null, String(content), this, this._ancestorInfo);\n    this._contentDebugID = contentDebugID;\n    if (hasExistingContent) {\n      ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content);\n      ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID);\n    } else {\n      ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID);\n      ReactInstrumentation.debugTool.onMountComponent(contentDebugID);\n      ReactInstrumentation.debugTool.onSetChildren(debugID, [contentDebugID]);\n    }\n  };\n}\n\n// There are so many media events, it makes sense to just\n// maintain a list rather than create a `trapBubbledEvent` for each\nvar mediaEvents = {\n  topAbort: 'abort',\n  topCanPlay: 'canplay',\n  topCanPlayThrough: 'canplaythrough',\n  topDurationChange: 'durationchange',\n  topEmptied: 'emptied',\n  topEncrypted: 'encrypted',\n  topEnded: 'ended',\n  topError: 'error',\n  topLoadedData: 'loadeddata',\n  topLoadedMetadata: 'loadedmetadata',\n  topLoadStart: 'loadstart',\n  topPause: 'pause',\n  topPlay: 'play',\n  topPlaying: 'playing',\n  topProgress: 'progress',\n  topRateChange: 'ratechange',\n  topSeeked: 'seeked',\n  topSeeking: 'seeking',\n  topStalled: 'stalled',\n  topSuspend: 'suspend',\n  topTimeUpdate: 'timeupdate',\n  topVolumeChange: 'volumechange',\n  topWaiting: 'waiting'\n};\n\nfunction trapBubbledEventsLocal() {\n  var inst = this;\n  // If a component renders to null or if another component fatals and causes\n  // the state of the tree to be corrupted, `node` here can be null.\n  !inst._rootNodeID ? \"development\" !== 'production' ? invariant(false, 'Must be mounted to trap events') : _prodInvariant('63') : void 0;\n  var node = getNode(inst);\n  !node ? \"development\" !== 'production' ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : _prodInvariant('64') : void 0;\n\n  switch (inst._tag) {\n    case 'iframe':\n    case 'object':\n      inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];\n      break;\n    case 'video':\n    case 'audio':\n\n      inst._wrapperState.listeners = [];\n      // Create listener for each media event\n      for (var event in mediaEvents) {\n        if (mediaEvents.hasOwnProperty(event)) {\n          inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node));\n        }\n      }\n      break;\n    case 'source':\n      inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)];\n      break;\n    case 'img':\n      inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];\n      break;\n    case 'form':\n      inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)];\n      break;\n    case 'input':\n    case 'select':\n    case 'textarea':\n      inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)];\n      break;\n  }\n}\n\nfunction postUpdateSelectWrapper() {\n  ReactDOMSelect.postUpdateWrapper(this);\n}\n\n// For HTML, certain tags should omit their close tag. We keep a whitelist for\n// those special-case tags.\n\nvar omittedCloseTags = {\n  'area': true,\n  'base': true,\n  'br': true,\n  'col': true,\n  'embed': true,\n  'hr': true,\n  'img': true,\n  'input': true,\n  'keygen': true,\n  'link': true,\n  'meta': true,\n  'param': true,\n  'source': true,\n  'track': true,\n  'wbr': true\n};\n\nvar newlineEatingTags = {\n  'listing': true,\n  'pre': true,\n  'textarea': true\n};\n\n// For HTML, certain tags cannot have children. This has the same purpose as\n// `omittedCloseTags` except that `menuitem` should still have its closing tag.\n\nvar voidElementTags = _assign({\n  'menuitem': true\n}, omittedCloseTags);\n\n// We accept any tag to be rendered but since this gets injected into arbitrary\n// HTML, we want to make sure that it's a safe tag.\n// http://www.w3.org/TR/REC-xml/#NT-Name\n\nvar VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/; // Simplified subset\nvar validatedTagCache = {};\nvar hasOwnProperty = {}.hasOwnProperty;\n\nfunction validateDangerousTag(tag) {\n  if (!hasOwnProperty.call(validatedTagCache, tag)) {\n    !VALID_TAG_REGEX.test(tag) ? \"development\" !== 'production' ? invariant(false, 'Invalid tag: %s', tag) : _prodInvariant('65', tag) : void 0;\n    validatedTagCache[tag] = true;\n  }\n}\n\nfunction isCustomComponent(tagName, props) {\n  return tagName.indexOf('-') >= 0 || props.is != null;\n}\n\nvar globalIdCounter = 1;\n\n/**\n * Creates a new React class that is idempotent and capable of containing other\n * React components. It accepts event listeners and DOM properties that are\n * valid according to `DOMProperty`.\n *\n *  - Event listeners: `onClick`, `onMouseDown`, etc.\n *  - DOM properties: `className`, `name`, `title`, etc.\n *\n * The `style` property functions differently from the DOM API. It accepts an\n * object mapping of style properties to values.\n *\n * @constructor ReactDOMComponent\n * @extends ReactMultiChild\n */\nfunction ReactDOMComponent(element) {\n  var tag = element.type;\n  validateDangerousTag(tag);\n  this._currentElement = element;\n  this._tag = tag.toLowerCase();\n  this._namespaceURI = null;\n  this._renderedChildren = null;\n  this._previousStyle = null;\n  this._previousStyleCopy = null;\n  this._hostNode = null;\n  this._hostParent = null;\n  this._rootNodeID = 0;\n  this._domID = 0;\n  this._hostContainerInfo = null;\n  this._wrapperState = null;\n  this._topLevelWrapper = null;\n  this._flags = 0;\n  if (\"development\" !== 'production') {\n    this._ancestorInfo = null;\n    setAndValidateContentChildDev.call(this, null);\n  }\n}\n\nReactDOMComponent.displayName = 'ReactDOMComponent';\n\nReactDOMComponent.Mixin = {\n\n  /**\n   * Generates root tag markup then recurses. This method has side effects and\n   * is not idempotent.\n   *\n   * @internal\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @param {?ReactDOMComponent} the parent component instance\n   * @param {?object} info about the host container\n   * @param {object} context\n   * @return {string} The computed markup.\n   */\n  mountComponent: function (transaction, hostParent, hostContainerInfo, context) {\n    this._rootNodeID = globalIdCounter++;\n    this._domID = hostContainerInfo._idCounter++;\n    this._hostParent = hostParent;\n    this._hostContainerInfo = hostContainerInfo;\n\n    var props = this._currentElement.props;\n\n    switch (this._tag) {\n      case 'audio':\n      case 'form':\n      case 'iframe':\n      case 'img':\n      case 'link':\n      case 'object':\n      case 'source':\n      case 'video':\n        this._wrapperState = {\n          listeners: null\n        };\n        transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);\n        break;\n      case 'input':\n        ReactDOMInput.mountWrapper(this, props, hostParent);\n        props = ReactDOMInput.getHostProps(this, props);\n        transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);\n        break;\n      case 'option':\n        ReactDOMOption.mountWrapper(this, props, hostParent);\n        props = ReactDOMOption.getHostProps(this, props);\n        break;\n      case 'select':\n        ReactDOMSelect.mountWrapper(this, props, hostParent);\n        props = ReactDOMSelect.getHostProps(this, props);\n        transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);\n        break;\n      case 'textarea':\n        ReactDOMTextarea.mountWrapper(this, props, hostParent);\n        props = ReactDOMTextarea.getHostProps(this, props);\n        transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);\n        break;\n    }\n\n    assertValidProps(this, props);\n\n    // We create tags in the namespace of their parent container, except HTML\n    // tags get no namespace.\n    var namespaceURI;\n    var parentTag;\n    if (hostParent != null) {\n      namespaceURI = hostParent._namespaceURI;\n      parentTag = hostParent._tag;\n    } else if (hostContainerInfo._tag) {\n      namespaceURI = hostContainerInfo._namespaceURI;\n      parentTag = hostContainerInfo._tag;\n    }\n    if (namespaceURI == null || namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject') {\n      namespaceURI = DOMNamespaces.html;\n    }\n    if (namespaceURI === DOMNamespaces.html) {\n      if (this._tag === 'svg') {\n        namespaceURI = DOMNamespaces.svg;\n      } else if (this._tag === 'math') {\n        namespaceURI = DOMNamespaces.mathml;\n      }\n    }\n    this._namespaceURI = namespaceURI;\n\n    if (\"development\" !== 'production') {\n      var parentInfo;\n      if (hostParent != null) {\n        parentInfo = hostParent._ancestorInfo;\n      } else if (hostContainerInfo._tag) {\n        parentInfo = hostContainerInfo._ancestorInfo;\n      }\n      if (parentInfo) {\n        // parentInfo should always be present except for the top-level\n        // component when server rendering\n        validateDOMNesting(this._tag, null, this, parentInfo);\n      }\n      this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(parentInfo, this._tag, this);\n    }\n\n    var mountImage;\n    if (transaction.useCreateElement) {\n      var ownerDocument = hostContainerInfo._ownerDocument;\n      var el;\n      if (namespaceURI === DOMNamespaces.html) {\n        if (this._tag === 'script') {\n          // Create the script via .innerHTML so its \"parser-inserted\" flag is\n          // set to true and it does not execute\n          var div = ownerDocument.createElement('div');\n          var type = this._currentElement.type;\n          div.innerHTML = '<' + type + '></' + type + '>';\n          el = div.removeChild(div.firstChild);\n        } else if (props.is) {\n          el = ownerDocument.createElement(this._currentElement.type, props.is);\n        } else {\n          // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.\n          // See discussion in https://github.com/facebook/react/pull/6896\n          // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240\n          el = ownerDocument.createElement(this._currentElement.type);\n        }\n      } else {\n        el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type);\n      }\n      ReactDOMComponentTree.precacheNode(this, el);\n      this._flags |= Flags.hasCachedChildNodes;\n      if (!this._hostParent) {\n        DOMPropertyOperations.setAttributeForRoot(el);\n      }\n      this._updateDOMProperties(null, props, transaction);\n      var lazyTree = DOMLazyTree(el);\n      this._createInitialChildren(transaction, props, context, lazyTree);\n      mountImage = lazyTree;\n    } else {\n      var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props);\n      var tagContent = this._createContentMarkup(transaction, props, context);\n      if (!tagContent && omittedCloseTags[this._tag]) {\n        mountImage = tagOpen + '/>';\n      } else {\n        mountImage = tagOpen + '>' + tagContent + '</' + this._currentElement.type + '>';\n      }\n    }\n\n    switch (this._tag) {\n      case 'input':\n        transaction.getReactMountReady().enqueue(inputPostMount, this);\n        if (props.autoFocus) {\n          transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);\n        }\n        break;\n      case 'textarea':\n        transaction.getReactMountReady().enqueue(textareaPostMount, this);\n        if (props.autoFocus) {\n          transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);\n        }\n        break;\n      case 'select':\n        if (props.autoFocus) {\n          transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);\n        }\n        break;\n      case 'button':\n        if (props.autoFocus) {\n          transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);\n        }\n        break;\n      case 'option':\n        transaction.getReactMountReady().enqueue(optionPostMount, this);\n        break;\n    }\n\n    return mountImage;\n  },\n\n  /**\n   * Creates markup for the open tag and all attributes.\n   *\n   * This method has side effects because events get registered.\n   *\n   * Iterating over object properties is faster than iterating over arrays.\n   * @see http://jsperf.com/obj-vs-arr-iteration\n   *\n   * @private\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @param {object} props\n   * @return {string} Markup of opening tag.\n   */\n  _createOpenTagMarkupAndPutListeners: function (transaction, props) {\n    var ret = '<' + this._currentElement.type;\n\n    for (var propKey in props) {\n      if (!props.hasOwnProperty(propKey)) {\n        continue;\n      }\n      var propValue = props[propKey];\n      if (propValue == null) {\n        continue;\n      }\n      if (registrationNameModules.hasOwnProperty(propKey)) {\n        if (propValue) {\n          enqueuePutListener(this, propKey, propValue, transaction);\n        }\n      } else {\n        if (propKey === STYLE) {\n          if (propValue) {\n            if (\"development\" !== 'production') {\n              // See `_updateDOMProperties`. style block\n              this._previousStyle = propValue;\n            }\n            propValue = this._previousStyleCopy = _assign({}, props.style);\n          }\n          propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this);\n        }\n        var markup = null;\n        if (this._tag != null && isCustomComponent(this._tag, props)) {\n          if (!RESERVED_PROPS.hasOwnProperty(propKey)) {\n            markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue);\n          }\n        } else {\n          markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue);\n        }\n        if (markup) {\n          ret += ' ' + markup;\n        }\n      }\n    }\n\n    // For static pages, no need to put React ID and checksum. Saves lots of\n    // bytes.\n    if (transaction.renderToStaticMarkup) {\n      return ret;\n    }\n\n    if (!this._hostParent) {\n      ret += ' ' + DOMPropertyOperations.createMarkupForRoot();\n    }\n    ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID);\n    return ret;\n  },\n\n  /**\n   * Creates markup for the content between the tags.\n   *\n   * @private\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @param {object} props\n   * @param {object} context\n   * @return {string} Content markup.\n   */\n  _createContentMarkup: function (transaction, props, context) {\n    var ret = '';\n\n    // Intentional use of != to avoid catching zero/false.\n    var innerHTML = props.dangerouslySetInnerHTML;\n    if (innerHTML != null) {\n      if (innerHTML.__html != null) {\n        ret = innerHTML.__html;\n      }\n    } else {\n      var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;\n      var childrenToUse = contentToUse != null ? null : props.children;\n      if (contentToUse != null) {\n        // TODO: Validate that text is allowed as a child of this node\n        ret = escapeTextContentForBrowser(contentToUse);\n        if (\"development\" !== 'production') {\n          setAndValidateContentChildDev.call(this, contentToUse);\n        }\n      } else if (childrenToUse != null) {\n        var mountImages = this.mountChildren(childrenToUse, transaction, context);\n        ret = mountImages.join('');\n      }\n    }\n    if (newlineEatingTags[this._tag] && ret.charAt(0) === '\\n') {\n      // text/html ignores the first character in these tags if it's a newline\n      // Prefer to break application/xml over text/html (for now) by adding\n      // a newline specifically to get eaten by the parser. (Alternately for\n      // textareas, replacing \"^\\n\" with \"\\r\\n\" doesn't get eaten, and the first\n      // \\r is normalized out by HTMLTextAreaElement#value.)\n      // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>\n      // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>\n      // See: <http://www.w3.org/TR/html5/syntax.html#newlines>\n      // See: Parsing of \"textarea\" \"listing\" and \"pre\" elements\n      //  from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>\n      return '\\n' + ret;\n    } else {\n      return ret;\n    }\n  },\n\n  _createInitialChildren: function (transaction, props, context, lazyTree) {\n    // Intentional use of != to avoid catching zero/false.\n    var innerHTML = props.dangerouslySetInnerHTML;\n    if (innerHTML != null) {\n      if (innerHTML.__html != null) {\n        DOMLazyTree.queueHTML(lazyTree, innerHTML.__html);\n      }\n    } else {\n      var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;\n      var childrenToUse = contentToUse != null ? null : props.children;\n      // TODO: Validate that text is allowed as a child of this node\n      if (contentToUse != null) {\n        // Avoid setting textContent when the text is empty. In IE11 setting\n        // textContent on a text area will cause the placeholder to not\n        // show within the textarea until it has been focused and blurred again.\n        // https://github.com/facebook/react/issues/6731#issuecomment-254874553\n        if (contentToUse !== '') {\n          if (\"development\" !== 'production') {\n            setAndValidateContentChildDev.call(this, contentToUse);\n          }\n          DOMLazyTree.queueText(lazyTree, contentToUse);\n        }\n      } else if (childrenToUse != null) {\n        var mountImages = this.mountChildren(childrenToUse, transaction, context);\n        for (var i = 0; i < mountImages.length; i++) {\n          DOMLazyTree.queueChild(lazyTree, mountImages[i]);\n        }\n      }\n    }\n  },\n\n  /**\n   * Receives a next element and updates the component.\n   *\n   * @internal\n   * @param {ReactElement} nextElement\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @param {object} context\n   */\n  receiveComponent: function (nextElement, transaction, context) {\n    var prevElement = this._currentElement;\n    this._currentElement = nextElement;\n    this.updateComponent(transaction, prevElement, nextElement, context);\n  },\n\n  /**\n   * Updates a DOM component after it has already been allocated and\n   * attached to the DOM. Reconciles the root DOM node, then recurses.\n   *\n   * @param {ReactReconcileTransaction} transaction\n   * @param {ReactElement} prevElement\n   * @param {ReactElement} nextElement\n   * @internal\n   * @overridable\n   */\n  updateComponent: function (transaction, prevElement, nextElement, context) {\n    var lastProps = prevElement.props;\n    var nextProps = this._currentElement.props;\n\n    switch (this._tag) {\n      case 'input':\n        lastProps = ReactDOMInput.getHostProps(this, lastProps);\n        nextProps = ReactDOMInput.getHostProps(this, nextProps);\n        break;\n      case 'option':\n        lastProps = ReactDOMOption.getHostProps(this, lastProps);\n        nextProps = ReactDOMOption.getHostProps(this, nextProps);\n        break;\n      case 'select':\n        lastProps = ReactDOMSelect.getHostProps(this, lastProps);\n        nextProps = ReactDOMSelect.getHostProps(this, nextProps);\n        break;\n      case 'textarea':\n        lastProps = ReactDOMTextarea.getHostProps(this, lastProps);\n        nextProps = ReactDOMTextarea.getHostProps(this, nextProps);\n        break;\n    }\n\n    assertValidProps(this, nextProps);\n    this._updateDOMProperties(lastProps, nextProps, transaction);\n    this._updateDOMChildren(lastProps, nextProps, transaction, context);\n\n    switch (this._tag) {\n      case 'input':\n        // Update the wrapper around inputs *after* updating props. This has to\n        // happen after `_updateDOMProperties`. Otherwise HTML5 input validations\n        // raise warnings and prevent the new value from being assigned.\n        ReactDOMInput.updateWrapper(this);\n        break;\n      case 'textarea':\n        ReactDOMTextarea.updateWrapper(this);\n        break;\n      case 'select':\n        // <select> value update needs to occur after <option> children\n        // reconciliation\n        transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this);\n        break;\n    }\n  },\n\n  /**\n   * Reconciles the properties by detecting differences in property values and\n   * updating the DOM as necessary. This function is probably the single most\n   * critical path for performance optimization.\n   *\n   * TODO: Benchmark whether checking for changed values in memory actually\n   *       improves performance (especially statically positioned elements).\n   * TODO: Benchmark the effects of putting this at the top since 99% of props\n   *       do not change for a given reconciliation.\n   * TODO: Benchmark areas that can be improved with caching.\n   *\n   * @private\n   * @param {object} lastProps\n   * @param {object} nextProps\n   * @param {?DOMElement} node\n   */\n  _updateDOMProperties: function (lastProps, nextProps, transaction) {\n    var propKey;\n    var styleName;\n    var styleUpdates;\n    for (propKey in lastProps) {\n      if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {\n        continue;\n      }\n      if (propKey === STYLE) {\n        var lastStyle = this._previousStyleCopy;\n        for (styleName in lastStyle) {\n          if (lastStyle.hasOwnProperty(styleName)) {\n            styleUpdates = styleUpdates || {};\n            styleUpdates[styleName] = '';\n          }\n        }\n        this._previousStyleCopy = null;\n      } else if (registrationNameModules.hasOwnProperty(propKey)) {\n        if (lastProps[propKey]) {\n          // Only call deleteListener if there was a listener previously or\n          // else willDeleteListener gets called when there wasn't actually a\n          // listener (e.g., onClick={null})\n          deleteListener(this, propKey);\n        }\n      } else if (isCustomComponent(this._tag, lastProps)) {\n        if (!RESERVED_PROPS.hasOwnProperty(propKey)) {\n          DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey);\n        }\n      } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {\n        DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);\n      }\n    }\n    for (propKey in nextProps) {\n      var nextProp = nextProps[propKey];\n      var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps != null ? lastProps[propKey] : undefined;\n      if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {\n        continue;\n      }\n      if (propKey === STYLE) {\n        if (nextProp) {\n          if (\"development\" !== 'production') {\n            checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this);\n            this._previousStyle = nextProp;\n          }\n          nextProp = this._previousStyleCopy = _assign({}, nextProp);\n        } else {\n          this._previousStyleCopy = null;\n        }\n        if (lastProp) {\n          // Unset styles on `lastProp` but not on `nextProp`.\n          for (styleName in lastProp) {\n            if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {\n              styleUpdates = styleUpdates || {};\n              styleUpdates[styleName] = '';\n            }\n          }\n          // Update styles that changed since `lastProp`.\n          for (styleName in nextProp) {\n            if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {\n              styleUpdates = styleUpdates || {};\n              styleUpdates[styleName] = nextProp[styleName];\n            }\n          }\n        } else {\n          // Relies on `updateStylesByID` not mutating `styleUpdates`.\n          styleUpdates = nextProp;\n        }\n      } else if (registrationNameModules.hasOwnProperty(propKey)) {\n        if (nextProp) {\n          enqueuePutListener(this, propKey, nextProp, transaction);\n        } else if (lastProp) {\n          deleteListener(this, propKey);\n        }\n      } else if (isCustomComponent(this._tag, nextProps)) {\n        if (!RESERVED_PROPS.hasOwnProperty(propKey)) {\n          DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp);\n        }\n      } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {\n        var node = getNode(this);\n        // If we're updating to null or undefined, we should remove the property\n        // from the DOM node instead of inadvertently setting to a string. This\n        // brings us in line with the same behavior we have on initial render.\n        if (nextProp != null) {\n          DOMPropertyOperations.setValueForProperty(node, propKey, nextProp);\n        } else {\n          DOMPropertyOperations.deleteValueForProperty(node, propKey);\n        }\n      }\n    }\n    if (styleUpdates) {\n      CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this);\n    }\n  },\n\n  /**\n   * Reconciles the children with the various properties that affect the\n   * children content.\n   *\n   * @param {object} lastProps\n   * @param {object} nextProps\n   * @param {ReactReconcileTransaction} transaction\n   * @param {object} context\n   */\n  _updateDOMChildren: function (lastProps, nextProps, transaction, context) {\n    var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null;\n    var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null;\n\n    var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html;\n    var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html;\n\n    // Note the use of `!=` which checks for null or undefined.\n    var lastChildren = lastContent != null ? null : lastProps.children;\n    var nextChildren = nextContent != null ? null : nextProps.children;\n\n    // If we're switching from children to content/html or vice versa, remove\n    // the old content\n    var lastHasContentOrHtml = lastContent != null || lastHtml != null;\n    var nextHasContentOrHtml = nextContent != null || nextHtml != null;\n    if (lastChildren != null && nextChildren == null) {\n      this.updateChildren(null, transaction, context);\n    } else if (lastHasContentOrHtml && !nextHasContentOrHtml) {\n      this.updateTextContent('');\n      if (\"development\" !== 'production') {\n        ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);\n      }\n    }\n\n    if (nextContent != null) {\n      if (lastContent !== nextContent) {\n        this.updateTextContent('' + nextContent);\n        if (\"development\" !== 'production') {\n          setAndValidateContentChildDev.call(this, nextContent);\n        }\n      }\n    } else if (nextHtml != null) {\n      if (lastHtml !== nextHtml) {\n        this.updateMarkup('' + nextHtml);\n      }\n      if (\"development\" !== 'production') {\n        ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);\n      }\n    } else if (nextChildren != null) {\n      if (\"development\" !== 'production') {\n        setAndValidateContentChildDev.call(this, null);\n      }\n\n      this.updateChildren(nextChildren, transaction, context);\n    }\n  },\n\n  getHostNode: function () {\n    return getNode(this);\n  },\n\n  /**\n   * Destroys all event registrations for this instance. Does not remove from\n   * the DOM. That must be done by the parent.\n   *\n   * @internal\n   */\n  unmountComponent: function (safely) {\n    switch (this._tag) {\n      case 'audio':\n      case 'form':\n      case 'iframe':\n      case 'img':\n      case 'link':\n      case 'object':\n      case 'source':\n      case 'video':\n        var listeners = this._wrapperState.listeners;\n        if (listeners) {\n          for (var i = 0; i < listeners.length; i++) {\n            listeners[i].remove();\n          }\n        }\n        break;\n      case 'html':\n      case 'head':\n      case 'body':\n        /**\n         * Components like <html> <head> and <body> can't be removed or added\n         * easily in a cross-browser way, however it's valuable to be able to\n         * take advantage of React's reconciliation for styling and <title>\n         * management. So we just document it and throw in dangerous cases.\n         */\n        !false ? \"development\" !== 'production' ? invariant(false, '<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.', this._tag) : _prodInvariant('66', this._tag) : void 0;\n        break;\n    }\n\n    this.unmountChildren(safely);\n    ReactDOMComponentTree.uncacheNode(this);\n    EventPluginHub.deleteAllListeners(this);\n    this._rootNodeID = 0;\n    this._domID = 0;\n    this._wrapperState = null;\n\n    if (\"development\" !== 'production') {\n      setAndValidateContentChildDev.call(this, null);\n    }\n  },\n\n  getPublicInstance: function () {\n    return getNode(this);\n  }\n\n};\n\n_assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin);\n\nmodule.exports = ReactDOMComponent;\n},{\"10\":10,\"107\":107,\"11\":11,\"12\":12,\"121\":121,\"124\":124,\"130\":130,\"142\":142,\"150\":150,\"156\":156,\"157\":157,\"158\":158,\"17\":17,\"18\":18,\"2\":2,\"26\":26,\"33\":33,\"34\":34,\"39\":39,\"42\":42,\"43\":43,\"46\":46,\"5\":5,\"64\":64,\"68\":68,\"77\":77,\"9\":9}],33:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactDOMComponentFlags = {\n  hasCachedChildNodes: 1 << 0\n};\n\nmodule.exports = ReactDOMComponentFlags;\n},{}],34:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar DOMProperty = _dereq_(11);\nvar ReactDOMComponentFlags = _dereq_(33);\n\nvar invariant = _dereq_(150);\n\nvar ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;\nvar Flags = ReactDOMComponentFlags;\n\nvar internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2);\n\n/**\n * Check if a given node should be cached.\n */\nfunction shouldPrecacheNode(node, nodeID) {\n  return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' ';\n}\n\n/**\n * Drill down (through composites and empty components) until we get a host or\n * host text component.\n *\n * This is pretty polymorphic but unavoidable with the current structure we have\n * for `_renderedChildren`.\n */\nfunction getRenderedHostOrTextFromComponent(component) {\n  var rendered;\n  while (rendered = component._renderedComponent) {\n    component = rendered;\n  }\n  return component;\n}\n\n/**\n * Populate `_hostNode` on the rendered host/text component with the given\n * DOM node. The passed `inst` can be a composite.\n */\nfunction precacheNode(inst, node) {\n  var hostInst = getRenderedHostOrTextFromComponent(inst);\n  hostInst._hostNode = node;\n  node[internalInstanceKey] = hostInst;\n}\n\nfunction uncacheNode(inst) {\n  var node = inst._hostNode;\n  if (node) {\n    delete node[internalInstanceKey];\n    inst._hostNode = null;\n  }\n}\n\n/**\n * Populate `_hostNode` on each child of `inst`, assuming that the children\n * match up with the DOM (element) children of `node`.\n *\n * We cache entire levels at once to avoid an n^2 problem where we access the\n * children of a node sequentially and have to walk from the start to our target\n * node every time.\n *\n * Since we update `_renderedChildren` and the actual DOM at (slightly)\n * different times, we could race here and see a newer `_renderedChildren` than\n * the DOM nodes we see. To avoid this, ReactMultiChild calls\n * `prepareToManageChildren` before we change `_renderedChildren`, at which\n * time the container's child nodes are always cached (until it unmounts).\n */\nfunction precacheChildNodes(inst, node) {\n  if (inst._flags & Flags.hasCachedChildNodes) {\n    return;\n  }\n  var children = inst._renderedChildren;\n  var childNode = node.firstChild;\n  outer: for (var name in children) {\n    if (!children.hasOwnProperty(name)) {\n      continue;\n    }\n    var childInst = children[name];\n    var childID = getRenderedHostOrTextFromComponent(childInst)._domID;\n    if (childID === 0) {\n      // We're currently unmounting this child in ReactMultiChild; skip it.\n      continue;\n    }\n    // We assume the child nodes are in the same order as the child instances.\n    for (; childNode !== null; childNode = childNode.nextSibling) {\n      if (shouldPrecacheNode(childNode, childID)) {\n        precacheNode(childInst, childNode);\n        continue outer;\n      }\n    }\n    // We reached the end of the DOM children without finding an ID match.\n    !false ? \"development\" !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;\n  }\n  inst._flags |= Flags.hasCachedChildNodes;\n}\n\n/**\n * Given a DOM node, return the closest ReactDOMComponent or\n * ReactDOMTextComponent instance ancestor.\n */\nfunction getClosestInstanceFromNode(node) {\n  if (node[internalInstanceKey]) {\n    return node[internalInstanceKey];\n  }\n\n  // Walk up the tree until we find an ancestor whose instance we have cached.\n  var parents = [];\n  while (!node[internalInstanceKey]) {\n    parents.push(node);\n    if (node.parentNode) {\n      node = node.parentNode;\n    } else {\n      // Top of the tree. This node must not be part of a React tree (or is\n      // unmounted, potentially).\n      return null;\n    }\n  }\n\n  var closest;\n  var inst;\n  for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {\n    closest = inst;\n    if (parents.length) {\n      precacheChildNodes(inst, node);\n    }\n  }\n\n  return closest;\n}\n\n/**\n * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\n * instance, or null if the node was not rendered by this React.\n */\nfunction getInstanceFromNode(node) {\n  var inst = getClosestInstanceFromNode(node);\n  if (inst != null && inst._hostNode === node) {\n    return inst;\n  } else {\n    return null;\n  }\n}\n\n/**\n * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\n * DOM node.\n */\nfunction getNodeFromInstance(inst) {\n  // Without this first invariant, passing a non-DOM-component triggers the next\n  // invariant for a missing parent, which is super confusing.\n  !(inst._hostNode !== undefined) ? \"development\" !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;\n\n  if (inst._hostNode) {\n    return inst._hostNode;\n  }\n\n  // Walk up the tree until we find an ancestor whose DOM node we have cached.\n  var parents = [];\n  while (!inst._hostNode) {\n    parents.push(inst);\n    !inst._hostParent ? \"development\" !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;\n    inst = inst._hostParent;\n  }\n\n  // Now parents contains each ancestor that does *not* have a cached native\n  // node, and `inst` is the deepest ancestor that does.\n  for (; parents.length; inst = parents.pop()) {\n    precacheChildNodes(inst, inst._hostNode);\n  }\n\n  return inst._hostNode;\n}\n\nvar ReactDOMComponentTree = {\n  getClosestInstanceFromNode: getClosestInstanceFromNode,\n  getInstanceFromNode: getInstanceFromNode,\n  getNodeFromInstance: getNodeFromInstance,\n  precacheChildNodes: precacheChildNodes,\n  precacheNode: precacheNode,\n  uncacheNode: uncacheNode\n};\n\nmodule.exports = ReactDOMComponentTree;\n},{\"11\":11,\"124\":124,\"150\":150,\"33\":33}],35:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar validateDOMNesting = _dereq_(130);\n\nvar DOC_NODE_TYPE = 9;\n\nfunction ReactDOMContainerInfo(topLevelWrapper, node) {\n  var info = {\n    _topLevelWrapper: topLevelWrapper,\n    _idCounter: 1,\n    _ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null,\n    _node: node,\n    _tag: node ? node.nodeName.toLowerCase() : null,\n    _namespaceURI: node ? node.namespaceURI : null\n  };\n  if (\"development\" !== 'production') {\n    info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null;\n  }\n  return info;\n}\n\nmodule.exports = ReactDOMContainerInfo;\n},{\"130\":130}],36:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar DOMLazyTree = _dereq_(9);\nvar ReactDOMComponentTree = _dereq_(34);\n\nvar ReactDOMEmptyComponent = function (instantiate) {\n  // ReactCompositeComponent uses this:\n  this._currentElement = null;\n  // ReactDOMComponentTree uses these:\n  this._hostNode = null;\n  this._hostParent = null;\n  this._hostContainerInfo = null;\n  this._domID = 0;\n};\n_assign(ReactDOMEmptyComponent.prototype, {\n  mountComponent: function (transaction, hostParent, hostContainerInfo, context) {\n    var domID = hostContainerInfo._idCounter++;\n    this._domID = domID;\n    this._hostParent = hostParent;\n    this._hostContainerInfo = hostContainerInfo;\n\n    var nodeValue = ' react-empty: ' + this._domID + ' ';\n    if (transaction.useCreateElement) {\n      var ownerDocument = hostContainerInfo._ownerDocument;\n      var node = ownerDocument.createComment(nodeValue);\n      ReactDOMComponentTree.precacheNode(this, node);\n      return DOMLazyTree(node);\n    } else {\n      if (transaction.renderToStaticMarkup) {\n        // Normally we'd insert a comment node, but since this is a situation\n        // where React won't take over (static pages), we can simply return\n        // nothing.\n        return '';\n      }\n      return '<!--' + nodeValue + '-->';\n    }\n  },\n  receiveComponent: function () {},\n  getHostNode: function () {\n    return ReactDOMComponentTree.getNodeFromInstance(this);\n  },\n  unmountComponent: function () {\n    ReactDOMComponentTree.uncacheNode(this);\n  }\n});\n\nmodule.exports = ReactDOMEmptyComponent;\n},{\"158\":158,\"34\":34,\"9\":9}],37:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactDOMFeatureFlags = {\n  useCreateElement: true,\n  useFiber: false\n};\n\nmodule.exports = ReactDOMFeatureFlags;\n},{}],38:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMChildrenOperations = _dereq_(8);\nvar ReactDOMComponentTree = _dereq_(34);\n\n/**\n * Operations used to process updates to DOM nodes.\n */\nvar ReactDOMIDOperations = {\n\n  /**\n   * Updates a component's children by processing a series of updates.\n   *\n   * @param {array<object>} updates List of update configurations.\n   * @internal\n   */\n  dangerouslyProcessChildrenUpdates: function (parentInst, updates) {\n    var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);\n    DOMChildrenOperations.processUpdates(node, updates);\n  }\n};\n\nmodule.exports = ReactDOMIDOperations;\n},{\"34\":34,\"8\":8}],39:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar DOMPropertyOperations = _dereq_(12);\nvar LinkedValueUtils = _dereq_(24);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactUpdates = _dereq_(82);\n\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nvar didWarnValueLink = false;\nvar didWarnCheckedLink = false;\nvar didWarnValueDefaultValue = false;\nvar didWarnCheckedDefaultChecked = false;\nvar didWarnControlledToUncontrolled = false;\nvar didWarnUncontrolledToControlled = false;\n\nfunction forceUpdateIfMounted() {\n  if (this._rootNodeID) {\n    // DOM component is still mounted; update\n    ReactDOMInput.updateWrapper(this);\n  }\n}\n\nfunction isControlled(props) {\n  var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n  return usesChecked ? props.checked != null : props.value != null;\n}\n\n/**\n * Implements an <input> host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * @see http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\nvar ReactDOMInput = {\n  getHostProps: function (inst, props) {\n    var value = LinkedValueUtils.getValue(props);\n    var checked = LinkedValueUtils.getChecked(props);\n\n    var hostProps = _assign({\n      // Make sure we set .type before any other properties (setting .value\n      // before .type means .value is lost in IE11 and below)\n      type: undefined,\n      // Make sure we set .step before .value (setting .value before .step\n      // means .value is rounded on mount, based upon step precision)\n      step: undefined,\n      // Make sure we set .min & .max before .value (to ensure proper order\n      // in corner cases such as min or max deriving from value, e.g. Issue #7170)\n      min: undefined,\n      max: undefined\n    }, props, {\n      defaultChecked: undefined,\n      defaultValue: undefined,\n      value: value != null ? value : inst._wrapperState.initialValue,\n      checked: checked != null ? checked : inst._wrapperState.initialChecked,\n      onChange: inst._wrapperState.onChange\n    });\n\n    return hostProps;\n  },\n\n  mountWrapper: function (inst, props) {\n    if (\"development\" !== 'production') {\n      LinkedValueUtils.checkPropTypes('input', props, inst._currentElement._owner);\n\n      var owner = inst._currentElement._owner;\n\n      if (props.valueLink !== undefined && !didWarnValueLink) {\n        \"development\" !== 'production' ? warning(false, '`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;\n        didWarnValueLink = true;\n      }\n      if (props.checkedLink !== undefined && !didWarnCheckedLink) {\n        \"development\" !== 'production' ? warning(false, '`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;\n        didWarnCheckedLink = true;\n      }\n      if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n        \"development\" !== 'production' ? warning(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;\n        didWarnCheckedDefaultChecked = true;\n      }\n      if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n        \"development\" !== 'production' ? warning(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;\n        didWarnValueDefaultValue = true;\n      }\n    }\n\n    var defaultValue = props.defaultValue;\n    inst._wrapperState = {\n      initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n      initialValue: props.value != null ? props.value : defaultValue,\n      listeners: null,\n      onChange: _handleChange.bind(inst),\n      controlled: isControlled(props)\n    };\n  },\n\n  updateWrapper: function (inst) {\n    var props = inst._currentElement.props;\n\n    if (\"development\" !== 'production') {\n      var controlled = isControlled(props);\n      var owner = inst._currentElement._owner;\n\n      if (!inst._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {\n        \"development\" !== 'production' ? warning(false, '%s is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;\n        didWarnUncontrolledToControlled = true;\n      }\n      if (inst._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {\n        \"development\" !== 'production' ? warning(false, '%s is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;\n        didWarnControlledToUncontrolled = true;\n      }\n    }\n\n    // TODO: Shouldn't this be getChecked(props)?\n    var checked = props.checked;\n    if (checked != null) {\n      DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), 'checked', checked || false);\n    }\n\n    var node = ReactDOMComponentTree.getNodeFromInstance(inst);\n    var value = LinkedValueUtils.getValue(props);\n    if (value != null) {\n      if (value === 0 && node.value === '') {\n        node.value = '0';\n        // Note: IE9 reports a number inputs as 'text', so check props instead.\n      } else if (props.type === 'number') {\n        // Simulate `input.valueAsNumber`. IE9 does not support it\n        var valueAsNumber = parseFloat(node.value, 10) || 0;\n\n        // eslint-disable-next-line\n        if (value != valueAsNumber) {\n          // Cast `value` to a string to ensure the value is set correctly. While\n          // browsers typically do this as necessary, jsdom doesn't.\n          node.value = '' + value;\n        }\n        // eslint-disable-next-line\n      } else if (value != node.value) {\n        // Cast `value` to a string to ensure the value is set correctly. While\n        // browsers typically do this as necessary, jsdom doesn't.\n        node.value = '' + value;\n      }\n    } else {\n      if (props.value == null && props.defaultValue != null) {\n        // In Chrome, assigning defaultValue to certain input types triggers input validation.\n        // For number inputs, the display value loses trailing decimal points. For email inputs,\n        // Chrome raises \"The specified value <x> is not a valid email address\".\n        //\n        // Here we check to see if the defaultValue has actually changed, avoiding these problems\n        // when the user is inputting text\n        //\n        // https://github.com/facebook/react/issues/7253\n        if (node.defaultValue !== '' + props.defaultValue) {\n          node.defaultValue = '' + props.defaultValue;\n        }\n      }\n      if (props.checked == null && props.defaultChecked != null) {\n        node.defaultChecked = !!props.defaultChecked;\n      }\n    }\n  },\n\n  postMountWrapper: function (inst) {\n    var props = inst._currentElement.props;\n\n    // This is in postMount because we need access to the DOM node, which is not\n    // available until after the component has mounted.\n    var node = ReactDOMComponentTree.getNodeFromInstance(inst);\n\n    // Detach value from defaultValue. We won't do anything if we're working on\n    // submit or reset inputs as those values & defaultValues are linked. They\n    // are not resetable nodes so this operation doesn't matter and actually\n    // removes browser-default values (eg \"Submit Query\") when no value is\n    // provided.\n\n    switch (props.type) {\n      case 'submit':\n      case 'reset':\n        break;\n      case 'color':\n      case 'date':\n      case 'datetime':\n      case 'datetime-local':\n      case 'month':\n      case 'time':\n      case 'week':\n        // This fixes the no-show issue on iOS Safari and Android Chrome:\n        // https://github.com/facebook/react/issues/7233\n        node.value = '';\n        node.value = node.defaultValue;\n        break;\n      default:\n        node.value = node.value;\n        break;\n    }\n\n    // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n    // this is needed to work around a chrome bug where setting defaultChecked\n    // will sometimes influence the value of checked (even after detachment).\n    // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n    // We need to temporarily unset name to avoid disrupting radio button groups.\n    var name = node.name;\n    if (name !== '') {\n      node.name = '';\n    }\n    node.defaultChecked = !node.defaultChecked;\n    node.defaultChecked = !node.defaultChecked;\n    if (name !== '') {\n      node.name = name;\n    }\n  }\n};\n\nfunction _handleChange(event) {\n  var props = this._currentElement.props;\n\n  var returnValue = LinkedValueUtils.executeOnChange(props, event);\n\n  // Here we use asap to wait until all updates have propagated, which\n  // is important when using controlled components within layers:\n  // https://github.com/facebook/react/issues/1698\n  ReactUpdates.asap(forceUpdateIfMounted, this);\n\n  var name = props.name;\n  if (props.type === 'radio' && name != null) {\n    var rootNode = ReactDOMComponentTree.getNodeFromInstance(this);\n    var queryRoot = rootNode;\n\n    while (queryRoot.parentNode) {\n      queryRoot = queryRoot.parentNode;\n    }\n\n    // If `rootNode.form` was non-null, then we could try `form.elements`,\n    // but that sometimes behaves strangely in IE8. We could also try using\n    // `form.getElementsByName`, but that will only return direct children\n    // and won't include inputs that use the HTML5 `form=` attribute. Since\n    // the input might not even be in a form, let's just use the global\n    // `querySelectorAll` to ensure we don't miss anything.\n    var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n    for (var i = 0; i < group.length; i++) {\n      var otherNode = group[i];\n      if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n        continue;\n      }\n      // This will throw if radio buttons rendered by different copies of React\n      // and the same name are rendered into the same form (same as #1939).\n      // That's probably okay; we don't support it just as we don't support\n      // mixing React radio buttons with non-React ones.\n      var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode);\n      !otherInstance ? \"development\" !== 'production' ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : _prodInvariant('90') : void 0;\n      // If this is a controlled radio button group, forcing the input that\n      // was previously checked to update will cause it to be come re-checked\n      // as appropriate.\n      ReactUpdates.asap(forceUpdateIfMounted, otherInstance);\n    }\n  }\n\n  return returnValue;\n}\n\nmodule.exports = ReactDOMInput;\n},{\"12\":12,\"124\":124,\"150\":150,\"157\":157,\"158\":158,\"24\":24,\"34\":34,\"82\":82}],40:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMProperty = _dereq_(11);\nvar ReactComponentTreeHook = _dereq_(131);\n\nvar warning = _dereq_(157);\n\nvar warnedProperties = {};\nvar rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');\n\nfunction validateProperty(tagName, name, debugID) {\n  if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {\n    return true;\n  }\n\n  if (rARIA.test(name)) {\n    var lowerCasedName = name.toLowerCase();\n    var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;\n\n    // If this is an aria-* attribute, but is not listed in the known DOM\n    // DOM properties, then it is an invalid aria-* attribute.\n    if (standardName == null) {\n      warnedProperties[name] = true;\n      return false;\n    }\n    // aria-* attributes should be lowercase; suggest the lowercase version.\n    if (name !== standardName) {\n      \"development\" !== 'production' ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n      warnedProperties[name] = true;\n      return true;\n    }\n  }\n\n  return true;\n}\n\nfunction warnInvalidARIAProps(debugID, element) {\n  var invalidProps = [];\n\n  for (var key in element.props) {\n    var isValid = validateProperty(element.type, key, debugID);\n    if (!isValid) {\n      invalidProps.push(key);\n    }\n  }\n\n  var unknownPropString = invalidProps.map(function (prop) {\n    return '`' + prop + '`';\n  }).join(', ');\n\n  if (invalidProps.length === 1) {\n    \"development\" !== 'production' ? warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n  } else if (invalidProps.length > 1) {\n    \"development\" !== 'production' ? warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n  }\n}\n\nfunction handleElement(debugID, element) {\n  if (element == null || typeof element.type !== 'string') {\n    return;\n  }\n  if (element.type.indexOf('-') >= 0 || element.props.is) {\n    return;\n  }\n\n  warnInvalidARIAProps(debugID, element);\n}\n\nvar ReactDOMInvalidARIAHook = {\n  onBeforeMountComponent: function (debugID, element) {\n    if (\"development\" !== 'production') {\n      handleElement(debugID, element);\n    }\n  },\n  onBeforeUpdateComponent: function (debugID, element) {\n    if (\"development\" !== 'production') {\n      handleElement(debugID, element);\n    }\n  }\n};\n\nmodule.exports = ReactDOMInvalidARIAHook;\n},{\"11\":11,\"131\":131,\"157\":157}],41:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactComponentTreeHook = _dereq_(131);\n\nvar warning = _dereq_(157);\n\nvar didWarnValueNull = false;\n\nfunction handleElement(debugID, element) {\n  if (element == null) {\n    return;\n  }\n  if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') {\n    return;\n  }\n  if (element.props != null && element.props.value === null && !didWarnValueNull) {\n    \"development\" !== 'production' ? warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n\n    didWarnValueNull = true;\n  }\n}\n\nvar ReactDOMNullInputValuePropHook = {\n  onBeforeMountComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  },\n  onBeforeUpdateComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  }\n};\n\nmodule.exports = ReactDOMNullInputValuePropHook;\n},{\"131\":131,\"157\":157}],42:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar React = _dereq_(133);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactDOMSelect = _dereq_(43);\n\nvar warning = _dereq_(157);\nvar didWarnInvalidOptionChildren = false;\n\nfunction flattenChildren(children) {\n  var content = '';\n\n  // Flatten children and warn if they aren't strings or numbers;\n  // invalid types are ignored.\n  React.Children.forEach(children, function (child) {\n    if (child == null) {\n      return;\n    }\n    if (typeof child === 'string' || typeof child === 'number') {\n      content += child;\n    } else if (!didWarnInvalidOptionChildren) {\n      didWarnInvalidOptionChildren = true;\n      \"development\" !== 'production' ? warning(false, 'Only strings and numbers are supported as <option> children.') : void 0;\n    }\n  });\n\n  return content;\n}\n\n/**\n * Implements an <option> host component that warns when `selected` is set.\n */\nvar ReactDOMOption = {\n  mountWrapper: function (inst, props, hostParent) {\n    // TODO (yungsters): Remove support for `selected` in <option>.\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.') : void 0;\n    }\n\n    // Look up whether this option is 'selected'\n    var selectValue = null;\n    if (hostParent != null) {\n      var selectParent = hostParent;\n\n      if (selectParent._tag === 'optgroup') {\n        selectParent = selectParent._hostParent;\n      }\n\n      if (selectParent != null && selectParent._tag === 'select') {\n        selectValue = ReactDOMSelect.getSelectValueContext(selectParent);\n      }\n    }\n\n    // If the value is null (e.g., no specified value or after initial mount)\n    // or missing (e.g., for <datalist>), we don't change props.selected\n    var selected = null;\n    if (selectValue != null) {\n      var value;\n      if (props.value != null) {\n        value = props.value + '';\n      } else {\n        value = flattenChildren(props.children);\n      }\n      selected = false;\n      if (Array.isArray(selectValue)) {\n        // multiple\n        for (var i = 0; i < selectValue.length; i++) {\n          if ('' + selectValue[i] === value) {\n            selected = true;\n            break;\n          }\n        }\n      } else {\n        selected = '' + selectValue === value;\n      }\n    }\n\n    inst._wrapperState = { selected: selected };\n  },\n\n  postMountWrapper: function (inst) {\n    // value=\"\" should make a value attribute (#6219)\n    var props = inst._currentElement.props;\n    if (props.value != null) {\n      var node = ReactDOMComponentTree.getNodeFromInstance(inst);\n      node.setAttribute('value', props.value);\n    }\n  },\n\n  getHostProps: function (inst, props) {\n    var hostProps = _assign({ selected: undefined, children: undefined }, props);\n\n    // Read state only from initial mount because <select> updates value\n    // manually; we need the initial state only for server rendering\n    if (inst._wrapperState.selected != null) {\n      hostProps.selected = inst._wrapperState.selected;\n    }\n\n    var content = flattenChildren(props.children);\n\n    if (content) {\n      hostProps.children = content;\n    }\n\n    return hostProps;\n  }\n\n};\n\nmodule.exports = ReactDOMOption;\n},{\"133\":133,\"157\":157,\"158\":158,\"34\":34,\"43\":43}],43:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar LinkedValueUtils = _dereq_(24);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactUpdates = _dereq_(82);\n\nvar warning = _dereq_(157);\n\nvar didWarnValueLink = false;\nvar didWarnValueDefaultValue = false;\n\nfunction updateOptionsIfPendingUpdateAndMounted() {\n  if (this._rootNodeID && this._wrapperState.pendingUpdate) {\n    this._wrapperState.pendingUpdate = false;\n\n    var props = this._currentElement.props;\n    var value = LinkedValueUtils.getValue(props);\n\n    if (value != null) {\n      updateOptions(this, Boolean(props.multiple), value);\n    }\n  }\n}\n\nfunction getDeclarationErrorAddendum(owner) {\n  if (owner) {\n    var name = owner.getName();\n    if (name) {\n      return ' Check the render method of `' + name + '`.';\n    }\n  }\n  return '';\n}\n\nvar valuePropNames = ['value', 'defaultValue'];\n\n/**\n * Validation function for `value` and `defaultValue`.\n * @private\n */\nfunction checkSelectPropTypes(inst, props) {\n  var owner = inst._currentElement._owner;\n  LinkedValueUtils.checkPropTypes('select', props, owner);\n\n  if (props.valueLink !== undefined && !didWarnValueLink) {\n    \"development\" !== 'production' ? warning(false, '`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead.') : void 0;\n    didWarnValueLink = true;\n  }\n\n  for (var i = 0; i < valuePropNames.length; i++) {\n    var propName = valuePropNames[i];\n    if (props[propName] == null) {\n      continue;\n    }\n    var isArray = Array.isArray(props[propName]);\n    if (props.multiple && !isArray) {\n      \"development\" !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;\n    } else if (!props.multiple && isArray) {\n      \"development\" !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;\n    }\n  }\n}\n\n/**\n * @param {ReactDOMComponent} inst\n * @param {boolean} multiple\n * @param {*} propValue A stringable (with `multiple`, a list of stringables).\n * @private\n */\nfunction updateOptions(inst, multiple, propValue) {\n  var selectedValue, i;\n  var options = ReactDOMComponentTree.getNodeFromInstance(inst).options;\n\n  if (multiple) {\n    selectedValue = {};\n    for (i = 0; i < propValue.length; i++) {\n      selectedValue['' + propValue[i]] = true;\n    }\n    for (i = 0; i < options.length; i++) {\n      var selected = selectedValue.hasOwnProperty(options[i].value);\n      if (options[i].selected !== selected) {\n        options[i].selected = selected;\n      }\n    }\n  } else {\n    // Do not set `select.value` as exact behavior isn't consistent across all\n    // browsers for all cases.\n    selectedValue = '' + propValue;\n    for (i = 0; i < options.length; i++) {\n      if (options[i].value === selectedValue) {\n        options[i].selected = true;\n        return;\n      }\n    }\n    if (options.length) {\n      options[0].selected = true;\n    }\n  }\n}\n\n/**\n * Implements a <select> host component that allows optionally setting the\n * props `value` and `defaultValue`. If `multiple` is false, the prop must be a\n * stringable. If `multiple` is true, the prop must be an array of stringables.\n *\n * If `value` is not supplied (or null/undefined), user actions that change the\n * selected option will trigger updates to the rendered options.\n *\n * If it is supplied (and not null/undefined), the rendered options will not\n * update in response to user actions. Instead, the `value` prop must change in\n * order for the rendered options to update.\n *\n * If `defaultValue` is provided, any options with the supplied values will be\n * selected.\n */\nvar ReactDOMSelect = {\n  getHostProps: function (inst, props) {\n    return _assign({}, props, {\n      onChange: inst._wrapperState.onChange,\n      value: undefined\n    });\n  },\n\n  mountWrapper: function (inst, props) {\n    if (\"development\" !== 'production') {\n      checkSelectPropTypes(inst, props);\n    }\n\n    var value = LinkedValueUtils.getValue(props);\n    inst._wrapperState = {\n      pendingUpdate: false,\n      initialValue: value != null ? value : props.defaultValue,\n      listeners: null,\n      onChange: _handleChange.bind(inst),\n      wasMultiple: Boolean(props.multiple)\n    };\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n      \"development\" !== 'production' ? warning(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components') : void 0;\n      didWarnValueDefaultValue = true;\n    }\n  },\n\n  getSelectValueContext: function (inst) {\n    // ReactDOMOption looks at this initial value so the initial generated\n    // markup has correct `selected` attributes\n    return inst._wrapperState.initialValue;\n  },\n\n  postUpdateWrapper: function (inst) {\n    var props = inst._currentElement.props;\n\n    // After the initial mount, we control selected-ness manually so don't pass\n    // this value down\n    inst._wrapperState.initialValue = undefined;\n\n    var wasMultiple = inst._wrapperState.wasMultiple;\n    inst._wrapperState.wasMultiple = Boolean(props.multiple);\n\n    var value = LinkedValueUtils.getValue(props);\n    if (value != null) {\n      inst._wrapperState.pendingUpdate = false;\n      updateOptions(inst, Boolean(props.multiple), value);\n    } else if (wasMultiple !== Boolean(props.multiple)) {\n      // For simplicity, reapply `defaultValue` if `multiple` is toggled.\n      if (props.defaultValue != null) {\n        updateOptions(inst, Boolean(props.multiple), props.defaultValue);\n      } else {\n        // Revert the select back to its default unselected state.\n        updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : '');\n      }\n    }\n  }\n};\n\nfunction _handleChange(event) {\n  var props = this._currentElement.props;\n  var returnValue = LinkedValueUtils.executeOnChange(props, event);\n\n  if (this._rootNodeID) {\n    this._wrapperState.pendingUpdate = true;\n  }\n  ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this);\n  return returnValue;\n}\n\nmodule.exports = ReactDOMSelect;\n},{\"157\":157,\"158\":158,\"24\":24,\"34\":34,\"82\":82}],44:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\n\nvar getNodeForCharacterOffset = _dereq_(117);\nvar getTextContentAccessor = _dereq_(118);\n\n/**\n * While `isCollapsed` is available on the Selection object and `collapsed`\n * is available on the Range object, IE11 sometimes gets them wrong.\n * If the anchor/focus nodes and offsets are the same, the range is collapsed.\n */\nfunction isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {\n  return anchorNode === focusNode && anchorOffset === focusOffset;\n}\n\n/**\n * Get the appropriate anchor and focus node/offset pairs for IE.\n *\n * The catch here is that IE's selection API doesn't provide information\n * about whether the selection is forward or backward, so we have to\n * behave as though it's always forward.\n *\n * IE text differs from modern selection in that it behaves as though\n * block elements end with a new line. This means character offsets will\n * differ between the two APIs.\n *\n * @param {DOMElement} node\n * @return {object}\n */\nfunction getIEOffsets(node) {\n  var selection = document.selection;\n  var selectedRange = selection.createRange();\n  var selectedLength = selectedRange.text.length;\n\n  // Duplicate selection so we can move range without breaking user selection.\n  var fromStart = selectedRange.duplicate();\n  fromStart.moveToElementText(node);\n  fromStart.setEndPoint('EndToStart', selectedRange);\n\n  var startOffset = fromStart.text.length;\n  var endOffset = startOffset + selectedLength;\n\n  return {\n    start: startOffset,\n    end: endOffset\n  };\n}\n\n/**\n * @param {DOMElement} node\n * @return {?object}\n */\nfunction getModernOffsets(node) {\n  var selection = window.getSelection && window.getSelection();\n\n  if (!selection || selection.rangeCount === 0) {\n    return null;\n  }\n\n  var anchorNode = selection.anchorNode;\n  var anchorOffset = selection.anchorOffset;\n  var focusNode = selection.focusNode;\n  var focusOffset = selection.focusOffset;\n\n  var currentRange = selection.getRangeAt(0);\n\n  // In Firefox, range.startContainer and range.endContainer can be \"anonymous\n  // divs\", e.g. the up/down buttons on an <input type=\"number\">. Anonymous\n  // divs do not seem to expose properties, triggering a \"Permission denied\n  // error\" if any of its properties are accessed. The only seemingly possible\n  // way to avoid erroring is to access a property that typically works for\n  // non-anonymous divs and catch any error that may otherwise arise. See\n  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n  try {\n    /* eslint-disable no-unused-expressions */\n    currentRange.startContainer.nodeType;\n    currentRange.endContainer.nodeType;\n    /* eslint-enable no-unused-expressions */\n  } catch (e) {\n    return null;\n  }\n\n  // If the node and offset values are the same, the selection is collapsed.\n  // `Selection.isCollapsed` is available natively, but IE sometimes gets\n  // this value wrong.\n  var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset);\n\n  var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length;\n\n  var tempRange = currentRange.cloneRange();\n  tempRange.selectNodeContents(node);\n  tempRange.setEnd(currentRange.startContainer, currentRange.startOffset);\n\n  var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset);\n\n  var start = isTempRangeCollapsed ? 0 : tempRange.toString().length;\n  var end = start + rangeLength;\n\n  // Detect whether the selection is backward.\n  var detectionRange = document.createRange();\n  detectionRange.setStart(anchorNode, anchorOffset);\n  detectionRange.setEnd(focusNode, focusOffset);\n  var isBackward = detectionRange.collapsed;\n\n  return {\n    start: isBackward ? end : start,\n    end: isBackward ? start : end\n  };\n}\n\n/**\n * @param {DOMElement|DOMTextNode} node\n * @param {object} offsets\n */\nfunction setIEOffsets(node, offsets) {\n  var range = document.selection.createRange().duplicate();\n  var start, end;\n\n  if (offsets.end === undefined) {\n    start = offsets.start;\n    end = start;\n  } else if (offsets.start > offsets.end) {\n    start = offsets.end;\n    end = offsets.start;\n  } else {\n    start = offsets.start;\n    end = offsets.end;\n  }\n\n  range.moveToElementText(node);\n  range.moveStart('character', start);\n  range.setEndPoint('EndToStart', range);\n  range.moveEnd('character', end - start);\n  range.select();\n}\n\n/**\n * In modern non-IE browsers, we can support both forward and backward\n * selections.\n *\n * Note: IE10+ supports the Selection object, but it does not support\n * the `extend` method, which means that even in modern IE, it's not possible\n * to programmatically create a backward selection. Thus, for all IE\n * versions, we use the old IE API to create our selections.\n *\n * @param {DOMElement|DOMTextNode} node\n * @param {object} offsets\n */\nfunction setModernOffsets(node, offsets) {\n  if (!window.getSelection) {\n    return;\n  }\n\n  var selection = window.getSelection();\n  var length = node[getTextContentAccessor()].length;\n  var start = Math.min(offsets.start, length);\n  var end = offsets.end === undefined ? start : Math.min(offsets.end, length);\n\n  // IE 11 uses modern selection, but doesn't support the extend method.\n  // Flip backward selections, so we can set with a single range.\n  if (!selection.extend && start > end) {\n    var temp = end;\n    end = start;\n    start = temp;\n  }\n\n  var startMarker = getNodeForCharacterOffset(node, start);\n  var endMarker = getNodeForCharacterOffset(node, end);\n\n  if (startMarker && endMarker) {\n    var range = document.createRange();\n    range.setStart(startMarker.node, startMarker.offset);\n    selection.removeAllRanges();\n\n    if (start > end) {\n      selection.addRange(range);\n      selection.extend(endMarker.node, endMarker.offset);\n    } else {\n      range.setEnd(endMarker.node, endMarker.offset);\n      selection.addRange(range);\n    }\n  }\n}\n\nvar useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window);\n\nvar ReactDOMSelection = {\n  /**\n   * @param {DOMElement} node\n   */\n  getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets,\n\n  /**\n   * @param {DOMElement|DOMTextNode} node\n   * @param {object} offsets\n   */\n  setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets\n};\n\nmodule.exports = ReactDOMSelection;\n},{\"117\":117,\"118\":118,\"136\":136}],45:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar DOMChildrenOperations = _dereq_(8);\nvar DOMLazyTree = _dereq_(9);\nvar ReactDOMComponentTree = _dereq_(34);\n\nvar escapeTextContentForBrowser = _dereq_(107);\nvar invariant = _dereq_(150);\nvar validateDOMNesting = _dereq_(130);\n\n/**\n * Text nodes violate a couple assumptions that React makes about components:\n *\n *  - When mounting text into the DOM, adjacent text nodes are merged.\n *  - Text nodes cannot be assigned a React root ID.\n *\n * This component is used to wrap strings between comment nodes so that they\n * can undergo the same reconciliation that is applied to elements.\n *\n * TODO: Investigate representing React components in the DOM with text nodes.\n *\n * @class ReactDOMTextComponent\n * @extends ReactComponent\n * @internal\n */\nvar ReactDOMTextComponent = function (text) {\n  // TODO: This is really a ReactText (ReactNode), not a ReactElement\n  this._currentElement = text;\n  this._stringText = '' + text;\n  // ReactDOMComponentTree uses these:\n  this._hostNode = null;\n  this._hostParent = null;\n\n  // Properties\n  this._domID = 0;\n  this._mountIndex = 0;\n  this._closingComment = null;\n  this._commentNodes = null;\n};\n\n_assign(ReactDOMTextComponent.prototype, {\n\n  /**\n   * Creates the markup for this text node. This node is not intended to have\n   * any features besides containing text content.\n   *\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @return {string} Markup for this text node.\n   * @internal\n   */\n  mountComponent: function (transaction, hostParent, hostContainerInfo, context) {\n    if (\"development\" !== 'production') {\n      var parentInfo;\n      if (hostParent != null) {\n        parentInfo = hostParent._ancestorInfo;\n      } else if (hostContainerInfo != null) {\n        parentInfo = hostContainerInfo._ancestorInfo;\n      }\n      if (parentInfo) {\n        // parentInfo should always be present except for the top-level\n        // component when server rendering\n        validateDOMNesting(null, this._stringText, this, parentInfo);\n      }\n    }\n\n    var domID = hostContainerInfo._idCounter++;\n    var openingValue = ' react-text: ' + domID + ' ';\n    var closingValue = ' /react-text ';\n    this._domID = domID;\n    this._hostParent = hostParent;\n    if (transaction.useCreateElement) {\n      var ownerDocument = hostContainerInfo._ownerDocument;\n      var openingComment = ownerDocument.createComment(openingValue);\n      var closingComment = ownerDocument.createComment(closingValue);\n      var lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment());\n      DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment));\n      if (this._stringText) {\n        DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText)));\n      }\n      DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment));\n      ReactDOMComponentTree.precacheNode(this, openingComment);\n      this._closingComment = closingComment;\n      return lazyTree;\n    } else {\n      var escapedText = escapeTextContentForBrowser(this._stringText);\n\n      if (transaction.renderToStaticMarkup) {\n        // Normally we'd wrap this between comment nodes for the reasons stated\n        // above, but since this is a situation where React won't take over\n        // (static pages), we can simply return the text as it is.\n        return escapedText;\n      }\n\n      return '<!--' + openingValue + '-->' + escapedText + '<!--' + closingValue + '-->';\n    }\n  },\n\n  /**\n   * Updates this component by updating the text content.\n   *\n   * @param {ReactText} nextText The next text content\n   * @param {ReactReconcileTransaction} transaction\n   * @internal\n   */\n  receiveComponent: function (nextText, transaction) {\n    if (nextText !== this._currentElement) {\n      this._currentElement = nextText;\n      var nextStringText = '' + nextText;\n      if (nextStringText !== this._stringText) {\n        // TODO: Save this as pending props and use performUpdateIfNecessary\n        // and/or updateComponent to do the actual update for consistency with\n        // other component types?\n        this._stringText = nextStringText;\n        var commentNodes = this.getHostNode();\n        DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText);\n      }\n    }\n  },\n\n  getHostNode: function () {\n    var hostNode = this._commentNodes;\n    if (hostNode) {\n      return hostNode;\n    }\n    if (!this._closingComment) {\n      var openingComment = ReactDOMComponentTree.getNodeFromInstance(this);\n      var node = openingComment.nextSibling;\n      while (true) {\n        !(node != null) ? \"development\" !== 'production' ? invariant(false, 'Missing closing comment for text component %s', this._domID) : _prodInvariant('67', this._domID) : void 0;\n        if (node.nodeType === 8 && node.nodeValue === ' /react-text ') {\n          this._closingComment = node;\n          break;\n        }\n        node = node.nextSibling;\n      }\n    }\n    hostNode = [this._hostNode, this._closingComment];\n    this._commentNodes = hostNode;\n    return hostNode;\n  },\n\n  unmountComponent: function () {\n    this._closingComment = null;\n    this._commentNodes = null;\n    ReactDOMComponentTree.uncacheNode(this);\n  }\n\n});\n\nmodule.exports = ReactDOMTextComponent;\n},{\"107\":107,\"124\":124,\"130\":130,\"150\":150,\"158\":158,\"34\":34,\"8\":8,\"9\":9}],46:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar LinkedValueUtils = _dereq_(24);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactUpdates = _dereq_(82);\n\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nvar didWarnValueLink = false;\nvar didWarnValDefaultVal = false;\n\nfunction forceUpdateIfMounted() {\n  if (this._rootNodeID) {\n    // DOM component is still mounted; update\n    ReactDOMTextarea.updateWrapper(this);\n  }\n}\n\n/**\n * Implements a <textarea> host component that allows setting `value`, and\n * `defaultValue`. This differs from the traditional DOM API because value is\n * usually set as PCDATA children.\n *\n * If `value` is not supplied (or null/undefined), user actions that affect the\n * value will trigger updates to the element.\n *\n * If `value` is supplied (and not null/undefined), the rendered element will\n * not trigger updates to the element. Instead, the `value` prop must change in\n * order for the rendered element to be updated.\n *\n * The rendered element will be initialized with an empty value, the prop\n * `defaultValue` if specified, or the children content (deprecated).\n */\nvar ReactDOMTextarea = {\n  getHostProps: function (inst, props) {\n    !(props.dangerouslySetInnerHTML == null) ? \"development\" !== 'production' ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : _prodInvariant('91') : void 0;\n\n    // Always set children to the same thing. In IE9, the selection range will\n    // get reset if `textContent` is mutated.  We could add a check in setTextContent\n    // to only set the value if/when the value differs from the node value (which would\n    // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution.\n    // The value can be a boolean or object so that's why it's forced to be a string.\n    var hostProps = _assign({}, props, {\n      value: undefined,\n      defaultValue: undefined,\n      children: '' + inst._wrapperState.initialValue,\n      onChange: inst._wrapperState.onChange\n    });\n\n    return hostProps;\n  },\n\n  mountWrapper: function (inst, props) {\n    if (\"development\" !== 'production') {\n      LinkedValueUtils.checkPropTypes('textarea', props, inst._currentElement._owner);\n      if (props.valueLink !== undefined && !didWarnValueLink) {\n        \"development\" !== 'production' ? warning(false, '`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead.') : void 0;\n        didWarnValueLink = true;\n      }\n      if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {\n        \"development\" !== 'production' ? warning(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components') : void 0;\n        didWarnValDefaultVal = true;\n      }\n    }\n\n    var value = LinkedValueUtils.getValue(props);\n    var initialValue = value;\n\n    // Only bother fetching default value if we're going to use it\n    if (value == null) {\n      var defaultValue = props.defaultValue;\n      // TODO (yungsters): Remove support for children content in <textarea>.\n      var children = props.children;\n      if (children != null) {\n        if (\"development\" !== 'production') {\n          \"development\" !== 'production' ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : void 0;\n        }\n        !(defaultValue == null) ? \"development\" !== 'production' ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : _prodInvariant('92') : void 0;\n        if (Array.isArray(children)) {\n          !(children.length <= 1) ? \"development\" !== 'production' ? invariant(false, '<textarea> can only have at most one child.') : _prodInvariant('93') : void 0;\n          children = children[0];\n        }\n\n        defaultValue = '' + children;\n      }\n      if (defaultValue == null) {\n        defaultValue = '';\n      }\n      initialValue = defaultValue;\n    }\n\n    inst._wrapperState = {\n      initialValue: '' + initialValue,\n      listeners: null,\n      onChange: _handleChange.bind(inst)\n    };\n  },\n\n  updateWrapper: function (inst) {\n    var props = inst._currentElement.props;\n\n    var node = ReactDOMComponentTree.getNodeFromInstance(inst);\n    var value = LinkedValueUtils.getValue(props);\n    if (value != null) {\n      // Cast `value` to a string to ensure the value is set correctly. While\n      // browsers typically do this as necessary, jsdom doesn't.\n      var newValue = '' + value;\n\n      // To avoid side effects (such as losing text selection), only set value if changed\n      if (newValue !== node.value) {\n        node.value = newValue;\n      }\n      if (props.defaultValue == null) {\n        node.defaultValue = newValue;\n      }\n    }\n    if (props.defaultValue != null) {\n      node.defaultValue = props.defaultValue;\n    }\n  },\n\n  postMountWrapper: function (inst) {\n    // This is in postMount because we need access to the DOM node, which is not\n    // available until after the component has mounted.\n    var node = ReactDOMComponentTree.getNodeFromInstance(inst);\n    var textContent = node.textContent;\n\n    // Only set node.value if textContent is equal to the expected\n    // initial value. In IE10/IE11 there is a bug where the placeholder attribute\n    // will populate textContent as well.\n    // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/\n    if (textContent === inst._wrapperState.initialValue) {\n      node.value = textContent;\n    }\n  }\n};\n\nfunction _handleChange(event) {\n  var props = this._currentElement.props;\n  var returnValue = LinkedValueUtils.executeOnChange(props, event);\n  ReactUpdates.asap(forceUpdateIfMounted, this);\n  return returnValue;\n}\n\nmodule.exports = ReactDOMTextarea;\n},{\"124\":124,\"150\":150,\"157\":157,\"158\":158,\"24\":24,\"34\":34,\"82\":82}],47:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\n/**\n * Return the lowest common ancestor of A and B, or null if they are in\n * different trees.\n */\nfunction getLowestCommonAncestor(instA, instB) {\n  !('_hostNode' in instA) ? \"development\" !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;\n  !('_hostNode' in instB) ? \"development\" !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;\n\n  var depthA = 0;\n  for (var tempA = instA; tempA; tempA = tempA._hostParent) {\n    depthA++;\n  }\n  var depthB = 0;\n  for (var tempB = instB; tempB; tempB = tempB._hostParent) {\n    depthB++;\n  }\n\n  // If A is deeper, crawl up.\n  while (depthA - depthB > 0) {\n    instA = instA._hostParent;\n    depthA--;\n  }\n\n  // If B is deeper, crawl up.\n  while (depthB - depthA > 0) {\n    instB = instB._hostParent;\n    depthB--;\n  }\n\n  // Walk in lockstep until we find a match.\n  var depth = depthA;\n  while (depth--) {\n    if (instA === instB) {\n      return instA;\n    }\n    instA = instA._hostParent;\n    instB = instB._hostParent;\n  }\n  return null;\n}\n\n/**\n * Return if A is an ancestor of B.\n */\nfunction isAncestor(instA, instB) {\n  !('_hostNode' in instA) ? \"development\" !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;\n  !('_hostNode' in instB) ? \"development\" !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;\n\n  while (instB) {\n    if (instB === instA) {\n      return true;\n    }\n    instB = instB._hostParent;\n  }\n  return false;\n}\n\n/**\n * Return the parent instance of the passed-in instance.\n */\nfunction getParentInstance(inst) {\n  !('_hostNode' in inst) ? \"development\" !== 'production' ? invariant(false, 'getParentInstance: Invalid argument.') : _prodInvariant('36') : void 0;\n\n  return inst._hostParent;\n}\n\n/**\n * Simulates the traversal of a two-phase, capture/bubble event dispatch.\n */\nfunction traverseTwoPhase(inst, fn, arg) {\n  var path = [];\n  while (inst) {\n    path.push(inst);\n    inst = inst._hostParent;\n  }\n  var i;\n  for (i = path.length; i-- > 0;) {\n    fn(path[i], 'captured', arg);\n  }\n  for (i = 0; i < path.length; i++) {\n    fn(path[i], 'bubbled', arg);\n  }\n}\n\n/**\n * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that\n * should would receive a `mouseEnter` or `mouseLeave` event.\n *\n * Does not invoke the callback on the nearest common ancestor because nothing\n * \"entered\" or \"left\" that element.\n */\nfunction traverseEnterLeave(from, to, fn, argFrom, argTo) {\n  var common = from && to ? getLowestCommonAncestor(from, to) : null;\n  var pathFrom = [];\n  while (from && from !== common) {\n    pathFrom.push(from);\n    from = from._hostParent;\n  }\n  var pathTo = [];\n  while (to && to !== common) {\n    pathTo.push(to);\n    to = to._hostParent;\n  }\n  var i;\n  for (i = 0; i < pathFrom.length; i++) {\n    fn(pathFrom[i], 'bubbled', argFrom);\n  }\n  for (i = pathTo.length; i-- > 0;) {\n    fn(pathTo[i], 'captured', argTo);\n  }\n}\n\nmodule.exports = {\n  isAncestor: isAncestor,\n  getLowestCommonAncestor: getLowestCommonAncestor,\n  getParentInstance: getParentInstance,\n  traverseTwoPhase: traverseTwoPhase,\n  traverseEnterLeave: traverseEnterLeave\n};\n},{\"124\":124,\"150\":150}],48:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar React = _dereq_(133);\nvar ReactDOM = _dereq_(31);\n\nvar ReactDOMUMDEntry = ReactDOM;\n\nif (\"development\" !== 'production') {\n  ReactDOMUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {\n    // ReactPerf and ReactTestUtils currently only work with the DOM renderer\n    // so we expose them from here, but only in DEV mode.\n    ReactPerf: _dereq_(71),\n    ReactTestUtils: _dereq_(80)\n  };\n}\n\n// Inject ReactDOM into React for the addons UMD build that depends on ReactDOM (TransitionGroup).\n// We can remove this after we deprecate and remove the addons UMD build.\nif (React.addons) {\n  React.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMUMDEntry;\n}\n\nmodule.exports = ReactDOMUMDEntry;\n},{\"133\":133,\"31\":31,\"71\":71,\"80\":80}],49:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMProperty = _dereq_(11);\nvar EventPluginRegistry = _dereq_(18);\nvar ReactComponentTreeHook = _dereq_(131);\n\nvar warning = _dereq_(157);\n\nif (\"development\" !== 'production') {\n  var reactProps = {\n    children: true,\n    dangerouslySetInnerHTML: true,\n    key: true,\n    ref: true,\n\n    autoFocus: true,\n    defaultValue: true,\n    valueLink: true,\n    defaultChecked: true,\n    checkedLink: true,\n    innerHTML: true,\n    suppressContentEditableWarning: true,\n    onFocusIn: true,\n    onFocusOut: true\n  };\n  var warnedProperties = {};\n\n  var validateProperty = function (tagName, name, debugID) {\n    if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) {\n      return true;\n    }\n    if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {\n      return true;\n    }\n    if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) {\n      return true;\n    }\n    warnedProperties[name] = true;\n    var lowerCasedName = name.toLowerCase();\n\n    // data-* attributes should be lowercase; suggest the lowercase version\n    var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;\n\n    var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;\n\n    if (standardName != null) {\n      \"development\" !== 'production' ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n      return true;\n    } else if (registrationName != null) {\n      \"development\" !== 'production' ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n      return true;\n    } else {\n      // We were unable to guess which prop the user intended.\n      // It is likely that the user was just blindly spreading/forwarding props\n      // Components should be careful to only render valid props/attributes.\n      // Warning will be invoked in warnUnknownProperties to allow grouping.\n      return false;\n    }\n  };\n}\n\nvar warnUnknownProperties = function (debugID, element) {\n  var unknownProps = [];\n  for (var key in element.props) {\n    var isValid = validateProperty(element.type, key, debugID);\n    if (!isValid) {\n      unknownProps.push(key);\n    }\n  }\n\n  var unknownPropString = unknownProps.map(function (prop) {\n    return '`' + prop + '`';\n  }).join(', ');\n\n  if (unknownProps.length === 1) {\n    \"development\" !== 'production' ? warning(false, 'Unknown prop %s on <%s> tag. Remove this prop from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n  } else if (unknownProps.length > 1) {\n    \"development\" !== 'production' ? warning(false, 'Unknown props %s on <%s> tag. Remove these props from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n  }\n};\n\nfunction handleElement(debugID, element) {\n  if (element == null || typeof element.type !== 'string') {\n    return;\n  }\n  if (element.type.indexOf('-') >= 0 || element.props.is) {\n    return;\n  }\n  warnUnknownProperties(debugID, element);\n}\n\nvar ReactDOMUnknownPropertyHook = {\n  onBeforeMountComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  },\n  onBeforeUpdateComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  }\n};\n\nmodule.exports = ReactDOMUnknownPropertyHook;\n},{\"11\":11,\"131\":131,\"157\":157,\"18\":18}],50:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactInvalidSetStateWarningHook = _dereq_(65);\nvar ReactHostOperationHistoryHook = _dereq_(60);\nvar ReactComponentTreeHook = _dereq_(131);\nvar ExecutionEnvironment = _dereq_(136);\n\nvar performanceNow = _dereq_(155);\nvar warning = _dereq_(157);\n\nvar hooks = [];\nvar didHookThrowForEvent = {};\n\nfunction callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {\n  try {\n    fn.call(context, arg1, arg2, arg3, arg4, arg5);\n  } catch (e) {\n    \"development\" !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\\n' + e.stack) : void 0;\n    didHookThrowForEvent[event] = true;\n  }\n}\n\nfunction emitEvent(event, arg1, arg2, arg3, arg4, arg5) {\n  for (var i = 0; i < hooks.length; i++) {\n    var hook = hooks[i];\n    var fn = hook[event];\n    if (fn) {\n      callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);\n    }\n  }\n}\n\nvar isProfiling = false;\nvar flushHistory = [];\nvar lifeCycleTimerStack = [];\nvar currentFlushNesting = 0;\nvar currentFlushMeasurements = [];\nvar currentFlushStartTime = 0;\nvar currentTimerDebugID = null;\nvar currentTimerStartTime = 0;\nvar currentTimerNestedFlushDuration = 0;\nvar currentTimerType = null;\n\nvar lifeCycleTimerHasWarned = false;\n\nfunction clearHistory() {\n  ReactComponentTreeHook.purgeUnmountedComponents();\n  ReactHostOperationHistoryHook.clearHistory();\n}\n\nfunction getTreeSnapshot(registeredIDs) {\n  return registeredIDs.reduce(function (tree, id) {\n    var ownerID = ReactComponentTreeHook.getOwnerID(id);\n    var parentID = ReactComponentTreeHook.getParentID(id);\n    tree[id] = {\n      displayName: ReactComponentTreeHook.getDisplayName(id),\n      text: ReactComponentTreeHook.getText(id),\n      updateCount: ReactComponentTreeHook.getUpdateCount(id),\n      childIDs: ReactComponentTreeHook.getChildIDs(id),\n      // Text nodes don't have owners but this is close enough.\n      ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,\n      parentID: parentID\n    };\n    return tree;\n  }, {});\n}\n\nfunction resetMeasurements() {\n  var previousStartTime = currentFlushStartTime;\n  var previousMeasurements = currentFlushMeasurements;\n  var previousOperations = ReactHostOperationHistoryHook.getHistory();\n\n  if (currentFlushNesting === 0) {\n    currentFlushStartTime = 0;\n    currentFlushMeasurements = [];\n    clearHistory();\n    return;\n  }\n\n  if (previousMeasurements.length || previousOperations.length) {\n    var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();\n    flushHistory.push({\n      duration: performanceNow() - previousStartTime,\n      measurements: previousMeasurements || [],\n      operations: previousOperations || [],\n      treeSnapshot: getTreeSnapshot(registeredIDs)\n    });\n  }\n\n  clearHistory();\n  currentFlushStartTime = performanceNow();\n  currentFlushMeasurements = [];\n}\n\nfunction checkDebugID(debugID) {\n  var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n  if (allowRoot && debugID === 0) {\n    return;\n  }\n  if (!debugID) {\n    \"development\" !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;\n  }\n}\n\nfunction beginLifeCycleTimer(debugID, timerType) {\n  if (currentFlushNesting === 0) {\n    return;\n  }\n  if (currentTimerType && !lifeCycleTimerHasWarned) {\n    \"development\" !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;\n    lifeCycleTimerHasWarned = true;\n  }\n  currentTimerStartTime = performanceNow();\n  currentTimerNestedFlushDuration = 0;\n  currentTimerDebugID = debugID;\n  currentTimerType = timerType;\n}\n\nfunction endLifeCycleTimer(debugID, timerType) {\n  if (currentFlushNesting === 0) {\n    return;\n  }\n  if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {\n    \"development\" !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;\n    lifeCycleTimerHasWarned = true;\n  }\n  if (isProfiling) {\n    currentFlushMeasurements.push({\n      timerType: timerType,\n      instanceID: debugID,\n      duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration\n    });\n  }\n  currentTimerStartTime = 0;\n  currentTimerNestedFlushDuration = 0;\n  currentTimerDebugID = null;\n  currentTimerType = null;\n}\n\nfunction pauseCurrentLifeCycleTimer() {\n  var currentTimer = {\n    startTime: currentTimerStartTime,\n    nestedFlushStartTime: performanceNow(),\n    debugID: currentTimerDebugID,\n    timerType: currentTimerType\n  };\n  lifeCycleTimerStack.push(currentTimer);\n  currentTimerStartTime = 0;\n  currentTimerNestedFlushDuration = 0;\n  currentTimerDebugID = null;\n  currentTimerType = null;\n}\n\nfunction resumeCurrentLifeCycleTimer() {\n  var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),\n      startTime = _lifeCycleTimerStack$.startTime,\n      nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,\n      debugID = _lifeCycleTimerStack$.debugID,\n      timerType = _lifeCycleTimerStack$.timerType;\n\n  var nestedFlushDuration = performanceNow() - nestedFlushStartTime;\n  currentTimerStartTime = startTime;\n  currentTimerNestedFlushDuration += nestedFlushDuration;\n  currentTimerDebugID = debugID;\n  currentTimerType = timerType;\n}\n\nvar lastMarkTimeStamp = 0;\nvar canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';\n\nfunction shouldMark(debugID) {\n  if (!isProfiling || !canUsePerformanceMeasure) {\n    return false;\n  }\n  var element = ReactComponentTreeHook.getElement(debugID);\n  if (element == null || typeof element !== 'object') {\n    return false;\n  }\n  var isHostElement = typeof element.type === 'string';\n  if (isHostElement) {\n    return false;\n  }\n  return true;\n}\n\nfunction markBegin(debugID, markType) {\n  if (!shouldMark(debugID)) {\n    return;\n  }\n\n  var markName = debugID + '::' + markType;\n  lastMarkTimeStamp = performanceNow();\n  performance.mark(markName);\n}\n\nfunction markEnd(debugID, markType) {\n  if (!shouldMark(debugID)) {\n    return;\n  }\n\n  var markName = debugID + '::' + markType;\n  var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';\n\n  // Chrome has an issue of dropping markers recorded too fast:\n  // https://bugs.chromium.org/p/chromium/issues/detail?id=640652\n  // To work around this, we will not report very small measurements.\n  // I determined the magic number by tweaking it back and forth.\n  // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.\n  // When the bug is fixed, we can `measure()` unconditionally if we want to.\n  var timeStamp = performanceNow();\n  if (timeStamp - lastMarkTimeStamp > 0.1) {\n    var measurementName = displayName + ' [' + markType + ']';\n    performance.measure(measurementName, markName);\n  }\n\n  performance.clearMarks(markName);\n  performance.clearMeasures(measurementName);\n}\n\nvar ReactDebugTool = {\n  addHook: function (hook) {\n    hooks.push(hook);\n  },\n  removeHook: function (hook) {\n    for (var i = 0; i < hooks.length; i++) {\n      if (hooks[i] === hook) {\n        hooks.splice(i, 1);\n        i--;\n      }\n    }\n  },\n  isProfiling: function () {\n    return isProfiling;\n  },\n  beginProfiling: function () {\n    if (isProfiling) {\n      return;\n    }\n\n    isProfiling = true;\n    flushHistory.length = 0;\n    resetMeasurements();\n    ReactDebugTool.addHook(ReactHostOperationHistoryHook);\n  },\n  endProfiling: function () {\n    if (!isProfiling) {\n      return;\n    }\n\n    isProfiling = false;\n    resetMeasurements();\n    ReactDebugTool.removeHook(ReactHostOperationHistoryHook);\n  },\n  getFlushHistory: function () {\n    return flushHistory;\n  },\n  onBeginFlush: function () {\n    currentFlushNesting++;\n    resetMeasurements();\n    pauseCurrentLifeCycleTimer();\n    emitEvent('onBeginFlush');\n  },\n  onEndFlush: function () {\n    resetMeasurements();\n    currentFlushNesting--;\n    resumeCurrentLifeCycleTimer();\n    emitEvent('onEndFlush');\n  },\n  onBeginLifeCycleTimer: function (debugID, timerType) {\n    checkDebugID(debugID);\n    emitEvent('onBeginLifeCycleTimer', debugID, timerType);\n    markBegin(debugID, timerType);\n    beginLifeCycleTimer(debugID, timerType);\n  },\n  onEndLifeCycleTimer: function (debugID, timerType) {\n    checkDebugID(debugID);\n    endLifeCycleTimer(debugID, timerType);\n    markEnd(debugID, timerType);\n    emitEvent('onEndLifeCycleTimer', debugID, timerType);\n  },\n  onBeginProcessingChildContext: function () {\n    emitEvent('onBeginProcessingChildContext');\n  },\n  onEndProcessingChildContext: function () {\n    emitEvent('onEndProcessingChildContext');\n  },\n  onHostOperation: function (operation) {\n    checkDebugID(operation.instanceID);\n    emitEvent('onHostOperation', operation);\n  },\n  onSetState: function () {\n    emitEvent('onSetState');\n  },\n  onSetChildren: function (debugID, childDebugIDs) {\n    checkDebugID(debugID);\n    childDebugIDs.forEach(checkDebugID);\n    emitEvent('onSetChildren', debugID, childDebugIDs);\n  },\n  onBeforeMountComponent: function (debugID, element, parentDebugID) {\n    checkDebugID(debugID);\n    checkDebugID(parentDebugID, true);\n    emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);\n    markBegin(debugID, 'mount');\n  },\n  onMountComponent: function (debugID) {\n    checkDebugID(debugID);\n    markEnd(debugID, 'mount');\n    emitEvent('onMountComponent', debugID);\n  },\n  onBeforeUpdateComponent: function (debugID, element) {\n    checkDebugID(debugID);\n    emitEvent('onBeforeUpdateComponent', debugID, element);\n    markBegin(debugID, 'update');\n  },\n  onUpdateComponent: function (debugID) {\n    checkDebugID(debugID);\n    markEnd(debugID, 'update');\n    emitEvent('onUpdateComponent', debugID);\n  },\n  onBeforeUnmountComponent: function (debugID) {\n    checkDebugID(debugID);\n    emitEvent('onBeforeUnmountComponent', debugID);\n    markBegin(debugID, 'unmount');\n  },\n  onUnmountComponent: function (debugID) {\n    checkDebugID(debugID);\n    markEnd(debugID, 'unmount');\n    emitEvent('onUnmountComponent', debugID);\n  },\n  onTestEvent: function () {\n    emitEvent('onTestEvent');\n  }\n};\n\n// TODO remove these when RN/www gets updated\nReactDebugTool.addDevtool = ReactDebugTool.addHook;\nReactDebugTool.removeDevtool = ReactDebugTool.removeHook;\n\nReactDebugTool.addHook(ReactInvalidSetStateWarningHook);\nReactDebugTool.addHook(ReactComponentTreeHook);\nvar url = ExecutionEnvironment.canUseDOM && window.location.href || '';\nif (/[?&]react_perf\\b/.test(url)) {\n  ReactDebugTool.beginProfiling();\n}\n\nmodule.exports = ReactDebugTool;\n},{\"131\":131,\"136\":136,\"155\":155,\"157\":157,\"60\":60,\"65\":65}],51:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar ReactUpdates = _dereq_(82);\nvar Transaction = _dereq_(100);\n\nvar emptyFunction = _dereq_(142);\n\nvar RESET_BATCHED_UPDATES = {\n  initialize: emptyFunction,\n  close: function () {\n    ReactDefaultBatchingStrategy.isBatchingUpdates = false;\n  }\n};\n\nvar FLUSH_BATCHED_UPDATES = {\n  initialize: emptyFunction,\n  close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates)\n};\n\nvar TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES];\n\nfunction ReactDefaultBatchingStrategyTransaction() {\n  this.reinitializeTransaction();\n}\n\n_assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, {\n  getTransactionWrappers: function () {\n    return TRANSACTION_WRAPPERS;\n  }\n});\n\nvar transaction = new ReactDefaultBatchingStrategyTransaction();\n\nvar ReactDefaultBatchingStrategy = {\n  isBatchingUpdates: false,\n\n  /**\n   * Call the provided function in a context within which calls to `setState`\n   * and friends are batched such that components aren't updated unnecessarily.\n   */\n  batchedUpdates: function (callback, a, b, c, d, e) {\n    var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates;\n\n    ReactDefaultBatchingStrategy.isBatchingUpdates = true;\n\n    // The code is written this way to avoid extra allocations\n    if (alreadyBatchingUpdates) {\n      return callback(a, b, c, d, e);\n    } else {\n      return transaction.perform(callback, null, a, b, c, d, e);\n    }\n  }\n};\n\nmodule.exports = ReactDefaultBatchingStrategy;\n},{\"100\":100,\"142\":142,\"158\":158,\"82\":82}],52:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ARIADOMPropertyConfig = _dereq_(1);\nvar BeforeInputEventPlugin = _dereq_(3);\nvar ChangeEventPlugin = _dereq_(7);\nvar DefaultEventPluginOrder = _dereq_(14);\nvar EnterLeaveEventPlugin = _dereq_(15);\nvar HTMLDOMPropertyConfig = _dereq_(22);\nvar ReactComponentBrowserEnvironment = _dereq_(28);\nvar ReactDOMComponent = _dereq_(32);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactDOMEmptyComponent = _dereq_(36);\nvar ReactDOMTreeTraversal = _dereq_(47);\nvar ReactDOMTextComponent = _dereq_(45);\nvar ReactDefaultBatchingStrategy = _dereq_(51);\nvar ReactEventListener = _dereq_(57);\nvar ReactInjection = _dereq_(61);\nvar ReactReconcileTransaction = _dereq_(74);\nvar SVGDOMPropertyConfig = _dereq_(84);\nvar SelectEventPlugin = _dereq_(85);\nvar SimpleEventPlugin = _dereq_(86);\n\nvar alreadyInjected = false;\n\nfunction inject() {\n  if (alreadyInjected) {\n    // TODO: This is currently true because these injections are shared between\n    // the client and the server package. They should be built independently\n    // and not share any injection state. Then this problem will be solved.\n    return;\n  }\n  alreadyInjected = true;\n\n  ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener);\n\n  /**\n   * Inject modules for resolving DOM hierarchy and plugin ordering.\n   */\n  ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder);\n  ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree);\n  ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal);\n\n  /**\n   * Some important event plugins included by default (without having to require\n   * them).\n   */\n  ReactInjection.EventPluginHub.injectEventPluginsByName({\n    SimpleEventPlugin: SimpleEventPlugin,\n    EnterLeaveEventPlugin: EnterLeaveEventPlugin,\n    ChangeEventPlugin: ChangeEventPlugin,\n    SelectEventPlugin: SelectEventPlugin,\n    BeforeInputEventPlugin: BeforeInputEventPlugin\n  });\n\n  ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent);\n\n  ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent);\n\n  ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig);\n  ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig);\n  ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig);\n\n  ReactInjection.EmptyComponent.injectEmptyComponentFactory(function (instantiate) {\n    return new ReactDOMEmptyComponent(instantiate);\n  });\n\n  ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction);\n  ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy);\n\n  ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment);\n}\n\nmodule.exports = {\n  inject: inject\n};\n},{\"1\":1,\"14\":14,\"15\":15,\"22\":22,\"28\":28,\"3\":3,\"32\":32,\"34\":34,\"36\":36,\"45\":45,\"47\":47,\"51\":51,\"57\":57,\"61\":61,\"7\":7,\"74\":74,\"84\":84,\"85\":85,\"86\":86}],53:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n// The Symbol used to tag the ReactElement type. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\n\nvar REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;\n\nmodule.exports = REACT_ELEMENT_TYPE;\n},{}],54:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyComponentFactory;\n\nvar ReactEmptyComponentInjection = {\n  injectEmptyComponentFactory: function (factory) {\n    emptyComponentFactory = factory;\n  }\n};\n\nvar ReactEmptyComponent = {\n  create: function (instantiate) {\n    return emptyComponentFactory(instantiate);\n  }\n};\n\nReactEmptyComponent.injection = ReactEmptyComponentInjection;\n\nmodule.exports = ReactEmptyComponent;\n},{}],55:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar caughtError = null;\n\n/**\n * Call a function while guarding against errors that happens within it.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} a First argument\n * @param {*} b Second argument\n */\nfunction invokeGuardedCallback(name, func, a) {\n  try {\n    func(a);\n  } catch (x) {\n    if (caughtError === null) {\n      caughtError = x;\n    }\n  }\n}\n\nvar ReactErrorUtils = {\n  invokeGuardedCallback: invokeGuardedCallback,\n\n  /**\n   * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event\n   * handler are sure to be rethrown by rethrowCaughtError.\n   */\n  invokeGuardedCallbackWithCatch: invokeGuardedCallback,\n\n  /**\n   * During execution of guarded functions we will capture the first error which\n   * we will rethrow to be handled by the top level error handler.\n   */\n  rethrowCaughtError: function () {\n    if (caughtError) {\n      var error = caughtError;\n      caughtError = null;\n      throw error;\n    }\n  }\n};\n\nif (\"development\" !== 'production') {\n  /**\n   * To help development we can get better devtools integration by simulating a\n   * real browser event.\n   */\n  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n    var fakeNode = document.createElement('react');\n    ReactErrorUtils.invokeGuardedCallback = function (name, func, a) {\n      var boundFunc = func.bind(null, a);\n      var evtType = 'react-' + name;\n      fakeNode.addEventListener(evtType, boundFunc, false);\n      var evt = document.createEvent('Event');\n      evt.initEvent(evtType, false, false);\n      fakeNode.dispatchEvent(evt);\n      fakeNode.removeEventListener(evtType, boundFunc, false);\n    };\n  }\n}\n\nmodule.exports = ReactErrorUtils;\n},{}],56:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPluginHub = _dereq_(17);\n\nfunction runEventQueueInBatch(events) {\n  EventPluginHub.enqueueEvents(events);\n  EventPluginHub.processEventQueue(false);\n}\n\nvar ReactEventEmitterMixin = {\n\n  /**\n   * Streams a fired top-level event to `EventPluginHub` where plugins have the\n   * opportunity to create `ReactEvent`s to be dispatched.\n   */\n  handleTopLevel: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n    runEventQueueInBatch(events);\n  }\n};\n\nmodule.exports = ReactEventEmitterMixin;\n},{\"17\":17}],57:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar EventListener = _dereq_(135);\nvar ExecutionEnvironment = _dereq_(136);\nvar PooledClass = _dereq_(25);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactUpdates = _dereq_(82);\n\nvar getEventTarget = _dereq_(114);\nvar getUnboundedScrollPosition = _dereq_(147);\n\n/**\n * Find the deepest React component completely containing the root of the\n * passed-in instance (for use when entire React trees are nested within each\n * other). If React trees are not nested, returns null.\n */\nfunction findParent(inst) {\n  // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n  // traversal, but caching is difficult to do correctly without using a\n  // mutation observer to listen for all DOM changes.\n  while (inst._hostParent) {\n    inst = inst._hostParent;\n  }\n  var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);\n  var container = rootNode.parentNode;\n  return ReactDOMComponentTree.getClosestInstanceFromNode(container);\n}\n\n// Used to store ancestor hierarchy in top level callback\nfunction TopLevelCallbackBookKeeping(topLevelType, nativeEvent) {\n  this.topLevelType = topLevelType;\n  this.nativeEvent = nativeEvent;\n  this.ancestors = [];\n}\n_assign(TopLevelCallbackBookKeeping.prototype, {\n  destructor: function () {\n    this.topLevelType = null;\n    this.nativeEvent = null;\n    this.ancestors.length = 0;\n  }\n});\nPooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler);\n\nfunction handleTopLevelImpl(bookKeeping) {\n  var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent);\n  var targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget);\n\n  // Loop through the hierarchy, in case there's any nested components.\n  // It's important that we build the array of ancestors before calling any\n  // event handlers, because event handlers can modify the DOM, leading to\n  // inconsistencies with ReactMount's node cache. See #1105.\n  var ancestor = targetInst;\n  do {\n    bookKeeping.ancestors.push(ancestor);\n    ancestor = ancestor && findParent(ancestor);\n  } while (ancestor);\n\n  for (var i = 0; i < bookKeeping.ancestors.length; i++) {\n    targetInst = bookKeeping.ancestors[i];\n    ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));\n  }\n}\n\nfunction scrollValueMonitor(cb) {\n  var scrollPosition = getUnboundedScrollPosition(window);\n  cb(scrollPosition);\n}\n\nvar ReactEventListener = {\n  _enabled: true,\n  _handleTopLevel: null,\n\n  WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null,\n\n  setHandleTopLevel: function (handleTopLevel) {\n    ReactEventListener._handleTopLevel = handleTopLevel;\n  },\n\n  setEnabled: function (enabled) {\n    ReactEventListener._enabled = !!enabled;\n  },\n\n  isEnabled: function () {\n    return ReactEventListener._enabled;\n  },\n\n  /**\n   * Traps top-level events by using event bubbling.\n   *\n   * @param {string} topLevelType Record from `EventConstants`.\n   * @param {string} handlerBaseName Event name (e.g. \"click\").\n   * @param {object} element Element on which to attach listener.\n   * @return {?object} An object with a remove function which will forcefully\n   *                  remove the listener.\n   * @internal\n   */\n  trapBubbledEvent: function (topLevelType, handlerBaseName, element) {\n    if (!element) {\n      return null;\n    }\n    return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));\n  },\n\n  /**\n   * Traps a top-level event by using event capturing.\n   *\n   * @param {string} topLevelType Record from `EventConstants`.\n   * @param {string} handlerBaseName Event name (e.g. \"click\").\n   * @param {object} element Element on which to attach listener.\n   * @return {?object} An object with a remove function which will forcefully\n   *                  remove the listener.\n   * @internal\n   */\n  trapCapturedEvent: function (topLevelType, handlerBaseName, element) {\n    if (!element) {\n      return null;\n    }\n    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));\n  },\n\n  monitorScrollValue: function (refresh) {\n    var callback = scrollValueMonitor.bind(null, refresh);\n    EventListener.listen(window, 'scroll', callback);\n  },\n\n  dispatchEvent: function (topLevelType, nativeEvent) {\n    if (!ReactEventListener._enabled) {\n      return;\n    }\n\n    var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent);\n    try {\n      // Event queue being processed in the same cycle allows\n      // `preventDefault`.\n      ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping);\n    } finally {\n      TopLevelCallbackBookKeeping.release(bookKeeping);\n    }\n  }\n};\n\nmodule.exports = ReactEventListener;\n},{\"114\":114,\"135\":135,\"136\":136,\"147\":147,\"158\":158,\"25\":25,\"34\":34,\"82\":82}],58:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactFeatureFlags = {\n  // When true, call console.time() before and .timeEnd() after each top-level\n  // render (both initial renders and updates). Useful when looking at prod-mode\n  // timeline profiles in Chrome, for example.\n  logTopLevelRenders: false\n};\n\nmodule.exports = ReactFeatureFlags;\n},{}],59:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\nvar genericComponentClass = null;\nvar textComponentClass = null;\n\nvar ReactHostComponentInjection = {\n  // This accepts a class that receives the tag string. This is a catch all\n  // that can render any kind of tag.\n  injectGenericComponentClass: function (componentClass) {\n    genericComponentClass = componentClass;\n  },\n  // This accepts a text component class that takes the text string to be\n  // rendered as props.\n  injectTextComponentClass: function (componentClass) {\n    textComponentClass = componentClass;\n  }\n};\n\n/**\n * Get a host internal component class for a specific tag.\n *\n * @param {ReactElement} element The element to create.\n * @return {function} The internal class constructor function.\n */\nfunction createInternalComponent(element) {\n  !genericComponentClass ? \"development\" !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : _prodInvariant('111', element.type) : void 0;\n  return new genericComponentClass(element);\n}\n\n/**\n * @param {ReactText} text\n * @return {ReactComponent}\n */\nfunction createInstanceForText(text) {\n  return new textComponentClass(text);\n}\n\n/**\n * @param {ReactComponent} component\n * @return {boolean}\n */\nfunction isTextComponent(component) {\n  return component instanceof textComponentClass;\n}\n\nvar ReactHostComponent = {\n  createInternalComponent: createInternalComponent,\n  createInstanceForText: createInstanceForText,\n  isTextComponent: isTextComponent,\n  injection: ReactHostComponentInjection\n};\n\nmodule.exports = ReactHostComponent;\n},{\"124\":124,\"150\":150}],60:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar history = [];\n\nvar ReactHostOperationHistoryHook = {\n  onHostOperation: function (operation) {\n    history.push(operation);\n  },\n  clearHistory: function () {\n    if (ReactHostOperationHistoryHook._preventClearing) {\n      // Should only be used for tests.\n      return;\n    }\n\n    history = [];\n  },\n  getHistory: function () {\n    return history;\n  }\n};\n\nmodule.exports = ReactHostOperationHistoryHook;\n},{}],61:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMProperty = _dereq_(11);\nvar EventPluginHub = _dereq_(17);\nvar EventPluginUtils = _dereq_(19);\nvar ReactComponentEnvironment = _dereq_(29);\nvar ReactEmptyComponent = _dereq_(54);\nvar ReactBrowserEventEmitter = _dereq_(26);\nvar ReactHostComponent = _dereq_(59);\nvar ReactUpdates = _dereq_(82);\n\nvar ReactInjection = {\n  Component: ReactComponentEnvironment.injection,\n  DOMProperty: DOMProperty.injection,\n  EmptyComponent: ReactEmptyComponent.injection,\n  EventPluginHub: EventPluginHub.injection,\n  EventPluginUtils: EventPluginUtils.injection,\n  EventEmitter: ReactBrowserEventEmitter.injection,\n  HostComponent: ReactHostComponent.injection,\n  Updates: ReactUpdates.injection\n};\n\nmodule.exports = ReactInjection;\n},{\"11\":11,\"17\":17,\"19\":19,\"26\":26,\"29\":29,\"54\":54,\"59\":59,\"82\":82}],62:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactDOMSelection = _dereq_(44);\n\nvar containsNode = _dereq_(139);\nvar focusNode = _dereq_(144);\nvar getActiveElement = _dereq_(145);\n\nfunction isInDocument(node) {\n  return containsNode(document.documentElement, node);\n}\n\n/**\n * @ReactInputSelection: React input selection module. Based on Selection.js,\n * but modified to be suitable for react and has a couple of bug fixes (doesn't\n * assume buttons have range selections allowed).\n * Input selection module for React.\n */\nvar ReactInputSelection = {\n\n  hasSelectionCapabilities: function (elem) {\n    var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n    return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true');\n  },\n\n  getSelectionInformation: function () {\n    var focusedElem = getActiveElement();\n    return {\n      focusedElem: focusedElem,\n      selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null\n    };\n  },\n\n  /**\n   * @restoreSelection: If any selection information was potentially lost,\n   * restore it. This is useful when performing operations that could remove dom\n   * nodes and place them back in, resulting in focus being lost.\n   */\n  restoreSelection: function (priorSelectionInformation) {\n    var curFocusedElem = getActiveElement();\n    var priorFocusedElem = priorSelectionInformation.focusedElem;\n    var priorSelectionRange = priorSelectionInformation.selectionRange;\n    if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {\n      if (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)) {\n        ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange);\n      }\n      focusNode(priorFocusedElem);\n    }\n  },\n\n  /**\n   * @getSelection: Gets the selection bounds of a focused textarea, input or\n   * contentEditable node.\n   * -@input: Look up selection bounds of this input\n   * -@return {start: selectionStart, end: selectionEnd}\n   */\n  getSelection: function (input) {\n    var selection;\n\n    if ('selectionStart' in input) {\n      // Modern browser with input or textarea.\n      selection = {\n        start: input.selectionStart,\n        end: input.selectionEnd\n      };\n    } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {\n      // IE8 input.\n      var range = document.selection.createRange();\n      // There can only be one selection per document in IE, so it must\n      // be in our element.\n      if (range.parentElement() === input) {\n        selection = {\n          start: -range.moveStart('character', -input.value.length),\n          end: -range.moveEnd('character', -input.value.length)\n        };\n      }\n    } else {\n      // Content editable or old IE textarea.\n      selection = ReactDOMSelection.getOffsets(input);\n    }\n\n    return selection || { start: 0, end: 0 };\n  },\n\n  /**\n   * @setSelection: Sets the selection bounds of a textarea or input and focuses\n   * the input.\n   * -@input     Set selection bounds of this input or textarea\n   * -@offsets   Object of same form that is returned from get*\n   */\n  setSelection: function (input, offsets) {\n    var start = offsets.start;\n    var end = offsets.end;\n    if (end === undefined) {\n      end = start;\n    }\n\n    if ('selectionStart' in input) {\n      input.selectionStart = start;\n      input.selectionEnd = Math.min(end, input.value.length);\n    } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {\n      var range = input.createTextRange();\n      range.collapse(true);\n      range.moveStart('character', start);\n      range.moveEnd('character', end - start);\n      range.select();\n    } else {\n      ReactDOMSelection.setOffsets(input, offsets);\n    }\n  }\n};\n\nmodule.exports = ReactInputSelection;\n},{\"139\":139,\"144\":144,\"145\":145,\"44\":44}],63:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n */\n\n// TODO: Replace this with ES6: var ReactInstanceMap = new Map();\n\nvar ReactInstanceMap = {\n\n  /**\n   * This API should be called `delete` but we'd have to make sure to always\n   * transform these to strings for IE support. When this transform is fully\n   * supported we can rename it.\n   */\n  remove: function (key) {\n    key._reactInternalInstance = undefined;\n  },\n\n  get: function (key) {\n    return key._reactInternalInstance;\n  },\n\n  has: function (key) {\n    return key._reactInternalInstance !== undefined;\n  },\n\n  set: function (key, value) {\n    key._reactInternalInstance = value;\n  }\n\n};\n\nmodule.exports = ReactInstanceMap;\n},{}],64:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n// Trust the developer to only use ReactInstrumentation with a __DEV__ check\n\nvar debugTool = null;\n\nif (\"development\" !== 'production') {\n  var ReactDebugTool = _dereq_(50);\n  debugTool = ReactDebugTool;\n}\n\nmodule.exports = { debugTool: debugTool };\n},{\"50\":50}],65:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar warning = _dereq_(157);\n\nif (\"development\" !== 'production') {\n  var processingChildContext = false;\n\n  var warnInvalidSetState = function () {\n    \"development\" !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;\n  };\n}\n\nvar ReactInvalidSetStateWarningHook = {\n  onBeginProcessingChildContext: function () {\n    processingChildContext = true;\n  },\n  onEndProcessingChildContext: function () {\n    processingChildContext = false;\n  },\n  onSetState: function () {\n    warnInvalidSetState();\n  }\n};\n\nmodule.exports = ReactInvalidSetStateWarningHook;\n},{\"157\":157}],66:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar adler32 = _dereq_(103);\n\nvar TAG_END = /\\/?>/;\nvar COMMENT_START = /^<\\!\\-\\-/;\n\nvar ReactMarkupChecksum = {\n  CHECKSUM_ATTR_NAME: 'data-react-checksum',\n\n  /**\n   * @param {string} markup Markup string\n   * @return {string} Markup string with checksum attribute attached\n   */\n  addChecksumToMarkup: function (markup) {\n    var checksum = adler32(markup);\n\n    // Add checksum (handle both parent tags, comments and self-closing tags)\n    if (COMMENT_START.test(markup)) {\n      return markup;\n    } else {\n      return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '=\"' + checksum + '\"$&');\n    }\n  },\n\n  /**\n   * @param {string} markup to use\n   * @param {DOMElement} element root React element\n   * @returns {boolean} whether or not the markup is the same\n   */\n  canReuseMarkup: function (markup, element) {\n    var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);\n    existingChecksum = existingChecksum && parseInt(existingChecksum, 10);\n    var markupChecksum = adler32(markup);\n    return markupChecksum === existingChecksum;\n  }\n};\n\nmodule.exports = ReactMarkupChecksum;\n},{\"103\":103}],67:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar DOMLazyTree = _dereq_(9);\nvar DOMProperty = _dereq_(11);\nvar React = _dereq_(133);\nvar ReactBrowserEventEmitter = _dereq_(26);\nvar ReactCurrentOwner = _dereq_(132);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactDOMContainerInfo = _dereq_(35);\nvar ReactDOMFeatureFlags = _dereq_(37);\nvar ReactFeatureFlags = _dereq_(58);\nvar ReactInstanceMap = _dereq_(63);\nvar ReactInstrumentation = _dereq_(64);\nvar ReactMarkupChecksum = _dereq_(66);\nvar ReactReconciler = _dereq_(75);\nvar ReactUpdateQueue = _dereq_(81);\nvar ReactUpdates = _dereq_(82);\n\nvar emptyObject = _dereq_(143);\nvar instantiateReactComponent = _dereq_(120);\nvar invariant = _dereq_(150);\nvar setInnerHTML = _dereq_(126);\nvar shouldUpdateReactComponent = _dereq_(128);\nvar warning = _dereq_(157);\n\nvar ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;\nvar ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME;\n\nvar ELEMENT_NODE_TYPE = 1;\nvar DOC_NODE_TYPE = 9;\nvar DOCUMENT_FRAGMENT_NODE_TYPE = 11;\n\nvar instancesByReactRootID = {};\n\n/**\n * Finds the index of the first character\n * that's not common between the two given strings.\n *\n * @return {number} the index of the character where the strings diverge\n */\nfunction firstDifferenceIndex(string1, string2) {\n  var minLen = Math.min(string1.length, string2.length);\n  for (var i = 0; i < minLen; i++) {\n    if (string1.charAt(i) !== string2.charAt(i)) {\n      return i;\n    }\n  }\n  return string1.length === string2.length ? -1 : minLen;\n}\n\n/**\n * @param {DOMElement|DOMDocument} container DOM element that may contain\n * a React component\n * @return {?*} DOM element that may have the reactRoot ID, or null.\n */\nfunction getReactRootElementInContainer(container) {\n  if (!container) {\n    return null;\n  }\n\n  if (container.nodeType === DOC_NODE_TYPE) {\n    return container.documentElement;\n  } else {\n    return container.firstChild;\n  }\n}\n\nfunction internalGetID(node) {\n  // If node is something like a window, document, or text node, none of\n  // which support attributes or a .getAttribute method, gracefully return\n  // the empty string, as if the attribute were missing.\n  return node.getAttribute && node.getAttribute(ATTR_NAME) || '';\n}\n\n/**\n * Mounts this component and inserts it into the DOM.\n *\n * @param {ReactComponent} componentInstance The instance to mount.\n * @param {DOMElement} container DOM element to mount into.\n * @param {ReactReconcileTransaction} transaction\n * @param {boolean} shouldReuseMarkup If true, do not insert markup\n */\nfunction mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) {\n  var markerName;\n  if (ReactFeatureFlags.logTopLevelRenders) {\n    var wrappedElement = wrapperInstance._currentElement.props.child;\n    var type = wrappedElement.type;\n    markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name);\n    console.time(markerName);\n  }\n\n  var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0 /* parentDebugID */\n  );\n\n  if (markerName) {\n    console.timeEnd(markerName);\n  }\n\n  wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance;\n  ReactMount._mountImageIntoNode(markup, container, wrapperInstance, shouldReuseMarkup, transaction);\n}\n\n/**\n * Batched mount.\n *\n * @param {ReactComponent} componentInstance The instance to mount.\n * @param {DOMElement} container DOM element to mount into.\n * @param {boolean} shouldReuseMarkup If true, do not insert markup\n */\nfunction batchedMountComponentIntoNode(componentInstance, container, shouldReuseMarkup, context) {\n  var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(\n  /* useCreateElement */\n  !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement);\n  transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context);\n  ReactUpdates.ReactReconcileTransaction.release(transaction);\n}\n\n/**\n * Unmounts a component and removes it from the DOM.\n *\n * @param {ReactComponent} instance React component instance.\n * @param {DOMElement} container DOM element to unmount from.\n * @final\n * @internal\n * @see {ReactMount.unmountComponentAtNode}\n */\nfunction unmountComponentFromNode(instance, container, safely) {\n  if (\"development\" !== 'production') {\n    ReactInstrumentation.debugTool.onBeginFlush();\n  }\n  ReactReconciler.unmountComponent(instance, safely);\n  if (\"development\" !== 'production') {\n    ReactInstrumentation.debugTool.onEndFlush();\n  }\n\n  if (container.nodeType === DOC_NODE_TYPE) {\n    container = container.documentElement;\n  }\n\n  // http://jsperf.com/emptying-a-node\n  while (container.lastChild) {\n    container.removeChild(container.lastChild);\n  }\n}\n\n/**\n * True if the supplied DOM node has a direct React-rendered child that is\n * not a React root element. Useful for warning in `render`,\n * `unmountComponentAtNode`, etc.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @return {boolean} True if the DOM element contains a direct child that was\n * rendered by React but is not a root element.\n * @internal\n */\nfunction hasNonRootReactChild(container) {\n  var rootEl = getReactRootElementInContainer(container);\n  if (rootEl) {\n    var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl);\n    return !!(inst && inst._hostParent);\n  }\n}\n\n/**\n * True if the supplied DOM node is a React DOM element and\n * it has been rendered by another copy of React.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @return {boolean} True if the DOM has been rendered by another copy of React\n * @internal\n */\nfunction nodeIsRenderedByOtherInstance(container) {\n  var rootEl = getReactRootElementInContainer(container);\n  return !!(rootEl && isReactNode(rootEl) && !ReactDOMComponentTree.getInstanceFromNode(rootEl));\n}\n\n/**\n * True if the supplied DOM node is a valid node element.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @return {boolean} True if the DOM is a valid DOM node.\n * @internal\n */\nfunction isValidContainer(node) {\n  return !!(node && (node.nodeType === ELEMENT_NODE_TYPE || node.nodeType === DOC_NODE_TYPE || node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE));\n}\n\n/**\n * True if the supplied DOM node is a valid React node element.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @return {boolean} True if the DOM is a valid React DOM node.\n * @internal\n */\nfunction isReactNode(node) {\n  return isValidContainer(node) && (node.hasAttribute(ROOT_ATTR_NAME) || node.hasAttribute(ATTR_NAME));\n}\n\nfunction getHostRootInstanceInContainer(container) {\n  var rootEl = getReactRootElementInContainer(container);\n  var prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl);\n  return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null;\n}\n\nfunction getTopLevelWrapperInContainer(container) {\n  var root = getHostRootInstanceInContainer(container);\n  return root ? root._hostContainerInfo._topLevelWrapper : null;\n}\n\n/**\n * Temporary (?) hack so that we can store all top-level pending updates on\n * composites instead of having to worry about different types of components\n * here.\n */\nvar topLevelRootCounter = 1;\nvar TopLevelWrapper = function () {\n  this.rootID = topLevelRootCounter++;\n};\nTopLevelWrapper.prototype.isReactComponent = {};\nif (\"development\" !== 'production') {\n  TopLevelWrapper.displayName = 'TopLevelWrapper';\n}\nTopLevelWrapper.prototype.render = function () {\n  return this.props.child;\n};\nTopLevelWrapper.isReactTopLevelWrapper = true;\n\n/**\n * Mounting is the process of initializing a React component by creating its\n * representative DOM elements and inserting them into a supplied `container`.\n * Any prior content inside `container` is destroyed in the process.\n *\n *   ReactMount.render(\n *     component,\n *     document.getElementById('container')\n *   );\n *\n *   <div id=\"container\">                   <-- Supplied `container`.\n *     <div data-reactid=\".3\">              <-- Rendered reactRoot of React\n *       // ...                                 component.\n *     </div>\n *   </div>\n *\n * Inside of `container`, the first element rendered is the \"reactRoot\".\n */\nvar ReactMount = {\n\n  TopLevelWrapper: TopLevelWrapper,\n\n  /**\n   * Used by devtools. The keys are not important.\n   */\n  _instancesByReactRootID: instancesByReactRootID,\n\n  /**\n   * This is a hook provided to support rendering React components while\n   * ensuring that the apparent scroll position of its `container` does not\n   * change.\n   *\n   * @param {DOMElement} container The `container` being rendered into.\n   * @param {function} renderCallback This must be called once to do the render.\n   */\n  scrollMonitor: function (container, renderCallback) {\n    renderCallback();\n  },\n\n  /**\n   * Take a component that's already mounted into the DOM and replace its props\n   * @param {ReactComponent} prevComponent component instance already in the DOM\n   * @param {ReactElement} nextElement component instance to render\n   * @param {DOMElement} container container to render into\n   * @param {?function} callback function triggered on completion\n   */\n  _updateRootComponent: function (prevComponent, nextElement, nextContext, container, callback) {\n    ReactMount.scrollMonitor(container, function () {\n      ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext);\n      if (callback) {\n        ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback);\n      }\n    });\n\n    return prevComponent;\n  },\n\n  /**\n   * Render a new component into the DOM. Hooked by hooks!\n   *\n   * @param {ReactElement} nextElement element to render\n   * @param {DOMElement} container container to render into\n   * @param {boolean} shouldReuseMarkup if we should skip the markup insertion\n   * @return {ReactComponent} nextComponent\n   */\n  _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context) {\n    // Various parts of our code (such as ReactCompositeComponent's\n    // _renderValidatedComponent) assume that calls to render aren't nested;\n    // verify that that's the case.\n    \"development\" !== 'production' ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from ' + 'render is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;\n\n    !isValidContainer(container) ? \"development\" !== 'production' ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : _prodInvariant('37') : void 0;\n\n    ReactBrowserEventEmitter.ensureScrollValueMonitoring();\n    var componentInstance = instantiateReactComponent(nextElement, false);\n\n    // The initial render is synchronous but any updates that happen during\n    // rendering, in componentWillMount or componentDidMount, will be batched\n    // according to the current batching strategy.\n\n    ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);\n\n    var wrapperID = componentInstance._instance.rootID;\n    instancesByReactRootID[wrapperID] = componentInstance;\n\n    return componentInstance;\n  },\n\n  /**\n   * Renders a React component into the DOM in the supplied `container`.\n   *\n   * If the React component was previously rendered into `container`, this will\n   * perform an update on it and only mutate the DOM as necessary to reflect the\n   * latest React component.\n   *\n   * @param {ReactComponent} parentComponent The conceptual parent of this render tree.\n   * @param {ReactElement} nextElement Component element to render.\n   * @param {DOMElement} container DOM element to render into.\n   * @param {?function} callback function triggered on completion\n   * @return {ReactComponent} Component instance rendered in `container`.\n   */\n  renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {\n    !(parentComponent != null && ReactInstanceMap.has(parentComponent)) ? \"development\" !== 'production' ? invariant(false, 'parentComponent must be a valid React Component') : _prodInvariant('38') : void 0;\n    return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);\n  },\n\n  _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {\n    ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render');\n    !React.isValidElement(nextElement) ? \"development\" !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing a string like \\'div\\', pass ' + 'React.createElement(\\'div\\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' :\n    // Check if it quacks like an element\n    nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? ' Instead of passing a string like \\'div\\', pass ' + 'React.createElement(\\'div\\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0;\n\n    \"development\" !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;\n\n    var nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement });\n\n    var nextContext;\n    if (parentComponent) {\n      var parentInst = ReactInstanceMap.get(parentComponent);\n      nextContext = parentInst._processChildContext(parentInst._context);\n    } else {\n      nextContext = emptyObject;\n    }\n\n    var prevComponent = getTopLevelWrapperInContainer(container);\n\n    if (prevComponent) {\n      var prevWrappedElement = prevComponent._currentElement;\n      var prevElement = prevWrappedElement.props.child;\n      if (shouldUpdateReactComponent(prevElement, nextElement)) {\n        var publicInst = prevComponent._renderedComponent.getPublicInstance();\n        var updatedCallback = callback && function () {\n          callback.call(publicInst);\n        };\n        ReactMount._updateRootComponent(prevComponent, nextWrappedElement, nextContext, container, updatedCallback);\n        return publicInst;\n      } else {\n        ReactMount.unmountComponentAtNode(container);\n      }\n    }\n\n    var reactRootElement = getReactRootElementInContainer(container);\n    var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement);\n    var containerHasNonRootReactChild = hasNonRootReactChild(container);\n\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(!containerHasNonRootReactChild, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;\n\n      if (!containerHasReactMarkup || reactRootElement.nextSibling) {\n        var rootElementSibling = reactRootElement;\n        while (rootElementSibling) {\n          if (internalGetID(rootElementSibling)) {\n            \"development\" !== 'production' ? warning(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.') : void 0;\n            break;\n          }\n          rootElementSibling = rootElementSibling.nextSibling;\n        }\n      }\n    }\n\n    var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild;\n    var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance();\n    if (callback) {\n      callback.call(component);\n    }\n    return component;\n  },\n\n  /**\n   * Renders a React component into the DOM in the supplied `container`.\n   * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.render\n   *\n   * If the React component was previously rendered into `container`, this will\n   * perform an update on it and only mutate the DOM as necessary to reflect the\n   * latest React component.\n   *\n   * @param {ReactElement} nextElement Component element to render.\n   * @param {DOMElement} container DOM element to render into.\n   * @param {?function} callback function triggered on completion\n   * @return {ReactComponent} Component instance rendered in `container`.\n   */\n  render: function (nextElement, container, callback) {\n    return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);\n  },\n\n  /**\n   * Unmounts and destroys the React component rendered in the `container`.\n   * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.unmountcomponentatnode\n   *\n   * @param {DOMElement} container DOM element containing a React component.\n   * @return {boolean} True if a component was found in and unmounted from\n   *                   `container`\n   */\n  unmountComponentAtNode: function (container) {\n    // Various parts of our code (such as ReactCompositeComponent's\n    // _renderValidatedComponent) assume that calls to render aren't nested;\n    // verify that that's the case. (Strictly speaking, unmounting won't cause a\n    // render but we still don't expect to be in a render call here.)\n    \"development\" !== 'production' ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from render ' + 'is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;\n\n    !isValidContainer(container) ? \"development\" !== 'production' ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : _prodInvariant('40') : void 0;\n\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(!nodeIsRenderedByOtherInstance(container), 'unmountComponentAtNode(): The node you\\'re attempting to unmount ' + 'was rendered by another copy of React.') : void 0;\n    }\n\n    var prevComponent = getTopLevelWrapperInContainer(container);\n    if (!prevComponent) {\n      // Check if the node being unmounted was rendered by React, but isn't a\n      // root node.\n      var containerHasNonRootReactChild = hasNonRootReactChild(container);\n\n      // Check if the container itself is a React root node.\n      var isContainerReactRoot = container.nodeType === 1 && container.hasAttribute(ROOT_ATTR_NAME);\n\n      if (\"development\" !== 'production') {\n        \"development\" !== 'production' ? warning(!containerHasNonRootReactChild, 'unmountComponentAtNode(): The node you\\'re attempting to unmount ' + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;\n      }\n\n      return false;\n    }\n    delete instancesByReactRootID[prevComponent._instance.rootID];\n    ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, false);\n    return true;\n  },\n\n  _mountImageIntoNode: function (markup, container, instance, shouldReuseMarkup, transaction) {\n    !isValidContainer(container) ? \"development\" !== 'production' ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : _prodInvariant('41') : void 0;\n\n    if (shouldReuseMarkup) {\n      var rootElement = getReactRootElementInContainer(container);\n      if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) {\n        ReactDOMComponentTree.precacheNode(instance, rootElement);\n        return;\n      } else {\n        var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);\n        rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);\n\n        var rootMarkup = rootElement.outerHTML;\n        rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum);\n\n        var normalizedMarkup = markup;\n        if (\"development\" !== 'production') {\n          // because rootMarkup is retrieved from the DOM, various normalizations\n          // will have occurred which will not be present in `markup`. Here,\n          // insert markup into a <div> or <iframe> depending on the container\n          // type to perform the same normalizations before comparing.\n          var normalizer;\n          if (container.nodeType === ELEMENT_NODE_TYPE) {\n            normalizer = document.createElement('div');\n            normalizer.innerHTML = markup;\n            normalizedMarkup = normalizer.innerHTML;\n          } else {\n            normalizer = document.createElement('iframe');\n            document.body.appendChild(normalizer);\n            normalizer.contentDocument.write(markup);\n            normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML;\n            document.body.removeChild(normalizer);\n          }\n        }\n\n        var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup);\n        var difference = ' (client) ' + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + '\\n (server) ' + rootMarkup.substring(diffIndex - 20, diffIndex + 20);\n\n        !(container.nodeType !== DOC_NODE_TYPE) ? \"development\" !== 'production' ? invariant(false, 'You\\'re trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\\n%s', difference) : _prodInvariant('42', difference) : void 0;\n\n        if (\"development\" !== 'production') {\n          \"development\" !== 'production' ? warning(false, 'React attempted to reuse markup in a container but the ' + 'checksum was invalid. This generally means that you are ' + 'using server rendering and the markup generated on the ' + 'server was not what the client was expecting. React injected ' + 'new markup to compensate which works but you have lost many ' + 'of the benefits of server rendering. Instead, figure out ' + 'why the markup being generated is different on the client ' + 'or server:\\n%s', difference) : void 0;\n        }\n      }\n    }\n\n    !(container.nodeType !== DOC_NODE_TYPE) ? \"development\" !== 'production' ? invariant(false, 'You\\'re trying to render a component to the document but you didn\\'t use server rendering. We can\\'t do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('43') : void 0;\n\n    if (transaction.useCreateElement) {\n      while (container.lastChild) {\n        container.removeChild(container.lastChild);\n      }\n      DOMLazyTree.insertTreeBefore(container, markup, null);\n    } else {\n      setInnerHTML(container, markup);\n      ReactDOMComponentTree.precacheNode(instance, container.firstChild);\n    }\n\n    if (\"development\" !== 'production') {\n      var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild);\n      if (hostNode._debugID !== 0) {\n        ReactInstrumentation.debugTool.onHostOperation({\n          instanceID: hostNode._debugID,\n          type: 'mount',\n          payload: markup.toString()\n        });\n      }\n    }\n  }\n};\n\nmodule.exports = ReactMount;\n},{\"11\":11,\"120\":120,\"124\":124,\"126\":126,\"128\":128,\"132\":132,\"133\":133,\"143\":143,\"150\":150,\"157\":157,\"26\":26,\"34\":34,\"35\":35,\"37\":37,\"58\":58,\"63\":63,\"64\":64,\"66\":66,\"75\":75,\"81\":81,\"82\":82,\"9\":9}],68:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactComponentEnvironment = _dereq_(29);\nvar ReactInstanceMap = _dereq_(63);\nvar ReactInstrumentation = _dereq_(64);\n\nvar ReactCurrentOwner = _dereq_(132);\nvar ReactReconciler = _dereq_(75);\nvar ReactChildReconciler = _dereq_(27);\n\nvar emptyFunction = _dereq_(142);\nvar flattenChildren = _dereq_(109);\nvar invariant = _dereq_(150);\n\n/**\n * Make an update for markup to be rendered and inserted at a supplied index.\n *\n * @param {string} markup Markup that renders into an element.\n * @param {number} toIndex Destination index.\n * @private\n */\nfunction makeInsertMarkup(markup, afterNode, toIndex) {\n  // NOTE: Null values reduce hidden classes.\n  return {\n    type: 'INSERT_MARKUP',\n    content: markup,\n    fromIndex: null,\n    fromNode: null,\n    toIndex: toIndex,\n    afterNode: afterNode\n  };\n}\n\n/**\n * Make an update for moving an existing element to another index.\n *\n * @param {number} fromIndex Source index of the existing element.\n * @param {number} toIndex Destination index of the element.\n * @private\n */\nfunction makeMove(child, afterNode, toIndex) {\n  // NOTE: Null values reduce hidden classes.\n  return {\n    type: 'MOVE_EXISTING',\n    content: null,\n    fromIndex: child._mountIndex,\n    fromNode: ReactReconciler.getHostNode(child),\n    toIndex: toIndex,\n    afterNode: afterNode\n  };\n}\n\n/**\n * Make an update for removing an element at an index.\n *\n * @param {number} fromIndex Index of the element to remove.\n * @private\n */\nfunction makeRemove(child, node) {\n  // NOTE: Null values reduce hidden classes.\n  return {\n    type: 'REMOVE_NODE',\n    content: null,\n    fromIndex: child._mountIndex,\n    fromNode: node,\n    toIndex: null,\n    afterNode: null\n  };\n}\n\n/**\n * Make an update for setting the markup of a node.\n *\n * @param {string} markup Markup that renders into an element.\n * @private\n */\nfunction makeSetMarkup(markup) {\n  // NOTE: Null values reduce hidden classes.\n  return {\n    type: 'SET_MARKUP',\n    content: markup,\n    fromIndex: null,\n    fromNode: null,\n    toIndex: null,\n    afterNode: null\n  };\n}\n\n/**\n * Make an update for setting the text content.\n *\n * @param {string} textContent Text content to set.\n * @private\n */\nfunction makeTextContent(textContent) {\n  // NOTE: Null values reduce hidden classes.\n  return {\n    type: 'TEXT_CONTENT',\n    content: textContent,\n    fromIndex: null,\n    fromNode: null,\n    toIndex: null,\n    afterNode: null\n  };\n}\n\n/**\n * Push an update, if any, onto the queue. Creates a new queue if none is\n * passed and always returns the queue. Mutative.\n */\nfunction enqueue(queue, update) {\n  if (update) {\n    queue = queue || [];\n    queue.push(update);\n  }\n  return queue;\n}\n\n/**\n * Processes any enqueued updates.\n *\n * @private\n */\nfunction processQueue(inst, updateQueue) {\n  ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue);\n}\n\nvar setChildrenForInstrumentation = emptyFunction;\nif (\"development\" !== 'production') {\n  var getDebugID = function (inst) {\n    if (!inst._debugID) {\n      // Check for ART-like instances. TODO: This is silly/gross.\n      var internal;\n      if (internal = ReactInstanceMap.get(inst)) {\n        inst = internal;\n      }\n    }\n    return inst._debugID;\n  };\n  setChildrenForInstrumentation = function (children) {\n    var debugID = getDebugID(this);\n    // TODO: React Native empty components are also multichild.\n    // This means they still get into this method but don't have _debugID.\n    if (debugID !== 0) {\n      ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function (key) {\n        return children[key]._debugID;\n      }) : []);\n    }\n  };\n}\n\n/**\n * ReactMultiChild are capable of reconciling multiple children.\n *\n * @class ReactMultiChild\n * @internal\n */\nvar ReactMultiChild = {\n\n  /**\n   * Provides common functionality for components that must reconcile multiple\n   * children. This is used by `ReactDOMComponent` to mount, update, and\n   * unmount child components.\n   *\n   * @lends {ReactMultiChild.prototype}\n   */\n  Mixin: {\n\n    _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) {\n      if (\"development\" !== 'production') {\n        var selfDebugID = getDebugID(this);\n        if (this._currentElement) {\n          try {\n            ReactCurrentOwner.current = this._currentElement._owner;\n            return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID);\n          } finally {\n            ReactCurrentOwner.current = null;\n          }\n        }\n      }\n      return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context);\n    },\n\n    _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) {\n      var nextChildren;\n      var selfDebugID = 0;\n      if (\"development\" !== 'production') {\n        selfDebugID = getDebugID(this);\n        if (this._currentElement) {\n          try {\n            ReactCurrentOwner.current = this._currentElement._owner;\n            nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);\n          } finally {\n            ReactCurrentOwner.current = null;\n          }\n          ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);\n          return nextChildren;\n        }\n      }\n      nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);\n      ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);\n      return nextChildren;\n    },\n\n    /**\n     * Generates a \"mount image\" for each of the supplied children. In the case\n     * of `ReactDOMComponent`, a mount image is a string of markup.\n     *\n     * @param {?object} nestedChildren Nested child maps.\n     * @return {array} An array of mounted representations.\n     * @internal\n     */\n    mountChildren: function (nestedChildren, transaction, context) {\n      var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context);\n      this._renderedChildren = children;\n\n      var mountImages = [];\n      var index = 0;\n      for (var name in children) {\n        if (children.hasOwnProperty(name)) {\n          var child = children[name];\n          var selfDebugID = 0;\n          if (\"development\" !== 'production') {\n            selfDebugID = getDebugID(this);\n          }\n          var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID);\n          child._mountIndex = index++;\n          mountImages.push(mountImage);\n        }\n      }\n\n      if (\"development\" !== 'production') {\n        setChildrenForInstrumentation.call(this, children);\n      }\n\n      return mountImages;\n    },\n\n    /**\n     * Replaces any rendered children with a text content string.\n     *\n     * @param {string} nextContent String of content.\n     * @internal\n     */\n    updateTextContent: function (nextContent) {\n      var prevChildren = this._renderedChildren;\n      // Remove any rendered children.\n      ReactChildReconciler.unmountChildren(prevChildren, false);\n      for (var name in prevChildren) {\n        if (prevChildren.hasOwnProperty(name)) {\n          !false ? \"development\" !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;\n        }\n      }\n      // Set new text content.\n      var updates = [makeTextContent(nextContent)];\n      processQueue(this, updates);\n    },\n\n    /**\n     * Replaces any rendered children with a markup string.\n     *\n     * @param {string} nextMarkup String of markup.\n     * @internal\n     */\n    updateMarkup: function (nextMarkup) {\n      var prevChildren = this._renderedChildren;\n      // Remove any rendered children.\n      ReactChildReconciler.unmountChildren(prevChildren, false);\n      for (var name in prevChildren) {\n        if (prevChildren.hasOwnProperty(name)) {\n          !false ? \"development\" !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;\n        }\n      }\n      var updates = [makeSetMarkup(nextMarkup)];\n      processQueue(this, updates);\n    },\n\n    /**\n     * Updates the rendered children with new children.\n     *\n     * @param {?object} nextNestedChildrenElements Nested child element maps.\n     * @param {ReactReconcileTransaction} transaction\n     * @internal\n     */\n    updateChildren: function (nextNestedChildrenElements, transaction, context) {\n      // Hook used by React ART\n      this._updateChildren(nextNestedChildrenElements, transaction, context);\n    },\n\n    /**\n     * @param {?object} nextNestedChildrenElements Nested child element maps.\n     * @param {ReactReconcileTransaction} transaction\n     * @final\n     * @protected\n     */\n    _updateChildren: function (nextNestedChildrenElements, transaction, context) {\n      var prevChildren = this._renderedChildren;\n      var removedNodes = {};\n      var mountImages = [];\n      var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context);\n      if (!nextChildren && !prevChildren) {\n        return;\n      }\n      var updates = null;\n      var name;\n      // `nextIndex` will increment for each child in `nextChildren`, but\n      // `lastIndex` will be the last index visited in `prevChildren`.\n      var nextIndex = 0;\n      var lastIndex = 0;\n      // `nextMountIndex` will increment for each newly mounted child.\n      var nextMountIndex = 0;\n      var lastPlacedNode = null;\n      for (name in nextChildren) {\n        if (!nextChildren.hasOwnProperty(name)) {\n          continue;\n        }\n        var prevChild = prevChildren && prevChildren[name];\n        var nextChild = nextChildren[name];\n        if (prevChild === nextChild) {\n          updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex));\n          lastIndex = Math.max(prevChild._mountIndex, lastIndex);\n          prevChild._mountIndex = nextIndex;\n        } else {\n          if (prevChild) {\n            // Update `lastIndex` before `_mountIndex` gets unset by unmounting.\n            lastIndex = Math.max(prevChild._mountIndex, lastIndex);\n            // The `removedNodes` loop below will actually remove the child.\n          }\n          // The child must be instantiated before it's mounted.\n          updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context));\n          nextMountIndex++;\n        }\n        nextIndex++;\n        lastPlacedNode = ReactReconciler.getHostNode(nextChild);\n      }\n      // Remove children that are no longer present.\n      for (name in removedNodes) {\n        if (removedNodes.hasOwnProperty(name)) {\n          updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name]));\n        }\n      }\n      if (updates) {\n        processQueue(this, updates);\n      }\n      this._renderedChildren = nextChildren;\n\n      if (\"development\" !== 'production') {\n        setChildrenForInstrumentation.call(this, nextChildren);\n      }\n    },\n\n    /**\n     * Unmounts all rendered children. This should be used to clean up children\n     * when this component is unmounted. It does not actually perform any\n     * backend operations.\n     *\n     * @internal\n     */\n    unmountChildren: function (safely) {\n      var renderedChildren = this._renderedChildren;\n      ReactChildReconciler.unmountChildren(renderedChildren, safely);\n      this._renderedChildren = null;\n    },\n\n    /**\n     * Moves a child component to the supplied index.\n     *\n     * @param {ReactComponent} child Component to move.\n     * @param {number} toIndex Destination index of the element.\n     * @param {number} lastIndex Last index visited of the siblings of `child`.\n     * @protected\n     */\n    moveChild: function (child, afterNode, toIndex, lastIndex) {\n      // If the index of `child` is less than `lastIndex`, then it needs to\n      // be moved. Otherwise, we do not need to move it because a child will be\n      // inserted or moved before `child`.\n      if (child._mountIndex < lastIndex) {\n        return makeMove(child, afterNode, toIndex);\n      }\n    },\n\n    /**\n     * Creates a child component.\n     *\n     * @param {ReactComponent} child Component to create.\n     * @param {string} mountImage Markup to insert.\n     * @protected\n     */\n    createChild: function (child, afterNode, mountImage) {\n      return makeInsertMarkup(mountImage, afterNode, child._mountIndex);\n    },\n\n    /**\n     * Removes a child component.\n     *\n     * @param {ReactComponent} child Child to remove.\n     * @protected\n     */\n    removeChild: function (child, node) {\n      return makeRemove(child, node);\n    },\n\n    /**\n     * Mounts a child with the supplied name.\n     *\n     * NOTE: This is part of `updateChildren` and is here for readability.\n     *\n     * @param {ReactComponent} child Component to mount.\n     * @param {string} name Name of the child.\n     * @param {number} index Index at which to insert the child.\n     * @param {ReactReconcileTransaction} transaction\n     * @private\n     */\n    _mountChildAtIndex: function (child, mountImage, afterNode, index, transaction, context) {\n      child._mountIndex = index;\n      return this.createChild(child, afterNode, mountImage);\n    },\n\n    /**\n     * Unmounts a rendered child.\n     *\n     * NOTE: This is part of `updateChildren` and is here for readability.\n     *\n     * @param {ReactComponent} child Component to unmount.\n     * @private\n     */\n    _unmountChild: function (child, node) {\n      var update = this.removeChild(child, node);\n      child._mountIndex = null;\n      return update;\n    }\n\n  }\n\n};\n\nmodule.exports = ReactMultiChild;\n},{\"109\":109,\"124\":124,\"132\":132,\"142\":142,\"150\":150,\"27\":27,\"29\":29,\"63\":63,\"64\":64,\"75\":75}],69:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar React = _dereq_(133);\n\nvar invariant = _dereq_(150);\n\nvar ReactNodeTypes = {\n  HOST: 0,\n  COMPOSITE: 1,\n  EMPTY: 2,\n\n  getType: function (node) {\n    if (node === null || node === false) {\n      return ReactNodeTypes.EMPTY;\n    } else if (React.isValidElement(node)) {\n      if (typeof node.type === 'function') {\n        return ReactNodeTypes.COMPOSITE;\n      } else {\n        return ReactNodeTypes.HOST;\n      }\n    }\n    !false ? \"development\" !== 'production' ? invariant(false, 'Unexpected node: %s', node) : _prodInvariant('26', node) : void 0;\n  }\n};\n\nmodule.exports = ReactNodeTypes;\n},{\"124\":124,\"133\":133,\"150\":150}],70:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\n/**\n * @param {?object} object\n * @return {boolean} True if `object` is a valid owner.\n * @final\n */\nfunction isValidOwner(object) {\n  return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function');\n}\n\n/**\n * ReactOwners are capable of storing references to owned components.\n *\n * All components are capable of //being// referenced by owner components, but\n * only ReactOwner components are capable of //referencing// owned components.\n * The named reference is known as a \"ref\".\n *\n * Refs are available when mounted and updated during reconciliation.\n *\n *   var MyComponent = React.createClass({\n *     render: function() {\n *       return (\n *         <div onClick={this.handleClick}>\n *           <CustomComponent ref=\"custom\" />\n *         </div>\n *       );\n *     },\n *     handleClick: function() {\n *       this.refs.custom.handleClick();\n *     },\n *     componentDidMount: function() {\n *       this.refs.custom.initialize();\n *     }\n *   });\n *\n * Refs should rarely be used. When refs are used, they should only be done to\n * control data that is not handled by React's data flow.\n *\n * @class ReactOwner\n */\nvar ReactOwner = {\n  /**\n   * Adds a component by ref to an owner component.\n   *\n   * @param {ReactComponent} component Component to reference.\n   * @param {string} ref Name by which to refer to the component.\n   * @param {ReactOwner} owner Component on which to record the ref.\n   * @final\n   * @internal\n   */\n  addComponentAsRefTo: function (component, ref, owner) {\n    !isValidOwner(owner) ? \"development\" !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;\n    owner.attachRef(ref, component);\n  },\n\n  /**\n   * Removes a component by ref from an owner component.\n   *\n   * @param {ReactComponent} component Component to dereference.\n   * @param {string} ref Name of the ref to remove.\n   * @param {ReactOwner} owner Component on which the ref is recorded.\n   * @final\n   * @internal\n   */\n  removeComponentAsRefFrom: function (component, ref, owner) {\n    !isValidOwner(owner) ? \"development\" !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;\n    var ownerPublicInstance = owner.getPublicInstance();\n    // Check that `component`'s owner is still alive and that `component` is still the current ref\n    // because we do not want to detach the ref if another component stole it.\n    if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) {\n      owner.detachRef(ref);\n    }\n  }\n\n};\n\nmodule.exports = ReactOwner;\n},{\"124\":124,\"150\":150}],71:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar _extends = _assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar ReactDebugTool = _dereq_(50);\nvar warning = _dereq_(157);\nvar alreadyWarned = false;\n\nfunction roundFloat(val) {\n  var base = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n\n  var n = Math.pow(10, base);\n  return Math.floor(val * n) / n;\n}\n\n// Flow type definition of console.table is too strict right now, see\n// https://github.com/facebook/flow/pull/2353 for updates\nfunction consoleTable(table) {\n  console.table(table);\n}\n\nfunction warnInProduction() {\n  if (alreadyWarned) {\n    return;\n  }\n  alreadyWarned = true;\n  if (typeof console !== 'undefined') {\n    console.error('ReactPerf is not supported in the production builds of React. ' + 'To collect measurements, please use the development build of React instead.');\n  }\n}\n\nfunction getLastMeasurements() {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return [];\n  }\n\n  return ReactDebugTool.getFlushHistory();\n}\n\nfunction getExclusive() {\n  var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();\n\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return [];\n  }\n\n  var aggregatedStats = {};\n  var affectedIDs = {};\n\n  function updateAggregatedStats(treeSnapshot, instanceID, timerType, applyUpdate) {\n    var displayName = treeSnapshot[instanceID].displayName;\n\n    var key = displayName;\n    var stats = aggregatedStats[key];\n    if (!stats) {\n      affectedIDs[key] = {};\n      stats = aggregatedStats[key] = {\n        key: key,\n        instanceCount: 0,\n        counts: {},\n        durations: {},\n        totalDuration: 0\n      };\n    }\n    if (!stats.durations[timerType]) {\n      stats.durations[timerType] = 0;\n    }\n    if (!stats.counts[timerType]) {\n      stats.counts[timerType] = 0;\n    }\n    affectedIDs[key][instanceID] = true;\n    applyUpdate(stats);\n  }\n\n  flushHistory.forEach(function (flush) {\n    var measurements = flush.measurements,\n        treeSnapshot = flush.treeSnapshot;\n\n    measurements.forEach(function (measurement) {\n      var duration = measurement.duration,\n          instanceID = measurement.instanceID,\n          timerType = measurement.timerType;\n\n      updateAggregatedStats(treeSnapshot, instanceID, timerType, function (stats) {\n        stats.totalDuration += duration;\n        stats.durations[timerType] += duration;\n        stats.counts[timerType]++;\n      });\n    });\n  });\n\n  return Object.keys(aggregatedStats).map(function (key) {\n    return _extends({}, aggregatedStats[key], {\n      instanceCount: Object.keys(affectedIDs[key]).length\n    });\n  }).sort(function (a, b) {\n    return b.totalDuration - a.totalDuration;\n  });\n}\n\nfunction getInclusive() {\n  var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();\n\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return [];\n  }\n\n  var aggregatedStats = {};\n  var affectedIDs = {};\n\n  function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) {\n    var _treeSnapshot$instanc = treeSnapshot[instanceID],\n        displayName = _treeSnapshot$instanc.displayName,\n        ownerID = _treeSnapshot$instanc.ownerID;\n\n    var owner = treeSnapshot[ownerID];\n    var key = (owner ? owner.displayName + ' > ' : '') + displayName;\n    var stats = aggregatedStats[key];\n    if (!stats) {\n      affectedIDs[key] = {};\n      stats = aggregatedStats[key] = {\n        key: key,\n        instanceCount: 0,\n        inclusiveRenderDuration: 0,\n        renderCount: 0\n      };\n    }\n    affectedIDs[key][instanceID] = true;\n    applyUpdate(stats);\n  }\n\n  var isCompositeByID = {};\n  flushHistory.forEach(function (flush) {\n    var measurements = flush.measurements;\n\n    measurements.forEach(function (measurement) {\n      var instanceID = measurement.instanceID,\n          timerType = measurement.timerType;\n\n      if (timerType !== 'render') {\n        return;\n      }\n      isCompositeByID[instanceID] = true;\n    });\n  });\n\n  flushHistory.forEach(function (flush) {\n    var measurements = flush.measurements,\n        treeSnapshot = flush.treeSnapshot;\n\n    measurements.forEach(function (measurement) {\n      var duration = measurement.duration,\n          instanceID = measurement.instanceID,\n          timerType = measurement.timerType;\n\n      if (timerType !== 'render') {\n        return;\n      }\n      updateAggregatedStats(treeSnapshot, instanceID, function (stats) {\n        stats.renderCount++;\n      });\n      var nextParentID = instanceID;\n      while (nextParentID) {\n        // As we traverse parents, only count inclusive time towards composites.\n        // We know something is a composite if its render() was called.\n        if (isCompositeByID[nextParentID]) {\n          updateAggregatedStats(treeSnapshot, nextParentID, function (stats) {\n            stats.inclusiveRenderDuration += duration;\n          });\n        }\n        nextParentID = treeSnapshot[nextParentID].parentID;\n      }\n    });\n  });\n\n  return Object.keys(aggregatedStats).map(function (key) {\n    return _extends({}, aggregatedStats[key], {\n      instanceCount: Object.keys(affectedIDs[key]).length\n    });\n  }).sort(function (a, b) {\n    return b.inclusiveRenderDuration - a.inclusiveRenderDuration;\n  });\n}\n\nfunction getWasted() {\n  var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();\n\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return [];\n  }\n\n  var aggregatedStats = {};\n  var affectedIDs = {};\n\n  function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) {\n    var _treeSnapshot$instanc2 = treeSnapshot[instanceID],\n        displayName = _treeSnapshot$instanc2.displayName,\n        ownerID = _treeSnapshot$instanc2.ownerID;\n\n    var owner = treeSnapshot[ownerID];\n    var key = (owner ? owner.displayName + ' > ' : '') + displayName;\n    var stats = aggregatedStats[key];\n    if (!stats) {\n      affectedIDs[key] = {};\n      stats = aggregatedStats[key] = {\n        key: key,\n        instanceCount: 0,\n        inclusiveRenderDuration: 0,\n        renderCount: 0\n      };\n    }\n    affectedIDs[key][instanceID] = true;\n    applyUpdate(stats);\n  }\n\n  flushHistory.forEach(function (flush) {\n    var measurements = flush.measurements,\n        treeSnapshot = flush.treeSnapshot,\n        operations = flush.operations;\n\n    var isDefinitelyNotWastedByID = {};\n\n    // Find host components associated with an operation in this batch.\n    // Mark all components in their parent tree as definitely not wasted.\n    operations.forEach(function (operation) {\n      var instanceID = operation.instanceID;\n\n      var nextParentID = instanceID;\n      while (nextParentID) {\n        isDefinitelyNotWastedByID[nextParentID] = true;\n        nextParentID = treeSnapshot[nextParentID].parentID;\n      }\n    });\n\n    // Find composite components that rendered in this batch.\n    // These are potential candidates for being wasted renders.\n    var renderedCompositeIDs = {};\n    measurements.forEach(function (measurement) {\n      var instanceID = measurement.instanceID,\n          timerType = measurement.timerType;\n\n      if (timerType !== 'render') {\n        return;\n      }\n      renderedCompositeIDs[instanceID] = true;\n    });\n\n    measurements.forEach(function (measurement) {\n      var duration = measurement.duration,\n          instanceID = measurement.instanceID,\n          timerType = measurement.timerType;\n\n      if (timerType !== 'render') {\n        return;\n      }\n\n      // If there was a DOM update below this component, or it has just been\n      // mounted, its render() is not considered wasted.\n      var updateCount = treeSnapshot[instanceID].updateCount;\n\n      if (isDefinitelyNotWastedByID[instanceID] || updateCount === 0) {\n        return;\n      }\n\n      // We consider this render() wasted.\n      updateAggregatedStats(treeSnapshot, instanceID, function (stats) {\n        stats.renderCount++;\n      });\n\n      var nextParentID = instanceID;\n      while (nextParentID) {\n        // Any parents rendered during this batch are considered wasted\n        // unless we previously marked them as dirty.\n        var isWasted = renderedCompositeIDs[nextParentID] && !isDefinitelyNotWastedByID[nextParentID];\n        if (isWasted) {\n          updateAggregatedStats(treeSnapshot, nextParentID, function (stats) {\n            stats.inclusiveRenderDuration += duration;\n          });\n        }\n        nextParentID = treeSnapshot[nextParentID].parentID;\n      }\n    });\n  });\n\n  return Object.keys(aggregatedStats).map(function (key) {\n    return _extends({}, aggregatedStats[key], {\n      instanceCount: Object.keys(affectedIDs[key]).length\n    });\n  }).sort(function (a, b) {\n    return b.inclusiveRenderDuration - a.inclusiveRenderDuration;\n  });\n}\n\nfunction getOperations() {\n  var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();\n\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return [];\n  }\n\n  var stats = [];\n  flushHistory.forEach(function (flush, flushIndex) {\n    var operations = flush.operations,\n        treeSnapshot = flush.treeSnapshot;\n\n    operations.forEach(function (operation) {\n      var instanceID = operation.instanceID,\n          type = operation.type,\n          payload = operation.payload;\n      var _treeSnapshot$instanc3 = treeSnapshot[instanceID],\n          displayName = _treeSnapshot$instanc3.displayName,\n          ownerID = _treeSnapshot$instanc3.ownerID;\n\n      var owner = treeSnapshot[ownerID];\n      var key = (owner ? owner.displayName + ' > ' : '') + displayName;\n\n      stats.push({\n        flushIndex: flushIndex,\n        instanceID: instanceID,\n        key: key,\n        type: type,\n        ownerID: ownerID,\n        payload: payload\n      });\n    });\n  });\n  return stats;\n}\n\nfunction printExclusive(flushHistory) {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return;\n  }\n\n  var stats = getExclusive(flushHistory);\n  var table = stats.map(function (item) {\n    var key = item.key,\n        instanceCount = item.instanceCount,\n        totalDuration = item.totalDuration;\n\n    var renderCount = item.counts.render || 0;\n    var renderDuration = item.durations.render || 0;\n    return {\n      'Component': key,\n      'Total time (ms)': roundFloat(totalDuration),\n      'Instance count': instanceCount,\n      'Total render time (ms)': roundFloat(renderDuration),\n      'Average render time (ms)': renderCount ? roundFloat(renderDuration / renderCount) : undefined,\n      'Render count': renderCount,\n      'Total lifecycle time (ms)': roundFloat(totalDuration - renderDuration)\n    };\n  });\n  consoleTable(table);\n}\n\nfunction printInclusive(flushHistory) {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return;\n  }\n\n  var stats = getInclusive(flushHistory);\n  var table = stats.map(function (item) {\n    var key = item.key,\n        instanceCount = item.instanceCount,\n        inclusiveRenderDuration = item.inclusiveRenderDuration,\n        renderCount = item.renderCount;\n\n    return {\n      'Owner > Component': key,\n      'Inclusive render time (ms)': roundFloat(inclusiveRenderDuration),\n      'Instance count': instanceCount,\n      'Render count': renderCount\n    };\n  });\n  consoleTable(table);\n}\n\nfunction printWasted(flushHistory) {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return;\n  }\n\n  var stats = getWasted(flushHistory);\n  var table = stats.map(function (item) {\n    var key = item.key,\n        instanceCount = item.instanceCount,\n        inclusiveRenderDuration = item.inclusiveRenderDuration,\n        renderCount = item.renderCount;\n\n    return {\n      'Owner > Component': key,\n      'Inclusive wasted time (ms)': roundFloat(inclusiveRenderDuration),\n      'Instance count': instanceCount,\n      'Render count': renderCount\n    };\n  });\n  consoleTable(table);\n}\n\nfunction printOperations(flushHistory) {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return;\n  }\n\n  var stats = getOperations(flushHistory);\n  var table = stats.map(function (stat) {\n    return {\n      'Owner > Node': stat.key,\n      'Operation': stat.type,\n      'Payload': typeof stat.payload === 'object' ? JSON.stringify(stat.payload) : stat.payload,\n      'Flush index': stat.flushIndex,\n      'Owner Component ID': stat.ownerID,\n      'DOM Component ID': stat.instanceID\n    };\n  });\n  consoleTable(table);\n}\n\nvar warnedAboutPrintDOM = false;\nfunction printDOM(measurements) {\n  \"development\" !== 'production' ? warning(warnedAboutPrintDOM, '`ReactPerf.printDOM(...)` is deprecated. Use ' + '`ReactPerf.printOperations(...)` instead.') : void 0;\n  warnedAboutPrintDOM = true;\n  return printOperations(measurements);\n}\n\nvar warnedAboutGetMeasurementsSummaryMap = false;\nfunction getMeasurementsSummaryMap(measurements) {\n  \"development\" !== 'production' ? warning(warnedAboutGetMeasurementsSummaryMap, '`ReactPerf.getMeasurementsSummaryMap(...)` is deprecated. Use ' + '`ReactPerf.getWasted(...)` instead.') : void 0;\n  warnedAboutGetMeasurementsSummaryMap = true;\n  return getWasted(measurements);\n}\n\nfunction start() {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return;\n  }\n\n  ReactDebugTool.beginProfiling();\n}\n\nfunction stop() {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return;\n  }\n\n  ReactDebugTool.endProfiling();\n}\n\nfunction isRunning() {\n  if (!(\"development\" !== 'production')) {\n    warnInProduction();\n    return false;\n  }\n\n  return ReactDebugTool.isProfiling();\n}\n\nvar ReactPerfAnalysis = {\n  getLastMeasurements: getLastMeasurements,\n  getExclusive: getExclusive,\n  getInclusive: getInclusive,\n  getWasted: getWasted,\n  getOperations: getOperations,\n  printExclusive: printExclusive,\n  printInclusive: printInclusive,\n  printWasted: printWasted,\n  printOperations: printOperations,\n  start: start,\n  stop: stop,\n  isRunning: isRunning,\n  // Deprecated:\n  printDOM: printDOM,\n  getMeasurementsSummaryMap: getMeasurementsSummaryMap\n};\n\nmodule.exports = ReactPerfAnalysis;\n},{\"157\":157,\"158\":158,\"50\":50}],72:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactPropTypeLocationNames = {};\n\nif (\"development\" !== 'production') {\n  ReactPropTypeLocationNames = {\n    prop: 'prop',\n    context: 'context',\n    childContext: 'child context'\n  };\n}\n\nmodule.exports = ReactPropTypeLocationNames;\n},{}],73:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n},{}],74:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar CallbackQueue = _dereq_(6);\nvar PooledClass = _dereq_(25);\nvar ReactBrowserEventEmitter = _dereq_(26);\nvar ReactInputSelection = _dereq_(62);\nvar ReactInstrumentation = _dereq_(64);\nvar Transaction = _dereq_(100);\nvar ReactUpdateQueue = _dereq_(81);\n\n/**\n * Ensures that, when possible, the selection range (currently selected text\n * input) is not disturbed by performing the transaction.\n */\nvar SELECTION_RESTORATION = {\n  /**\n   * @return {Selection} Selection information.\n   */\n  initialize: ReactInputSelection.getSelectionInformation,\n  /**\n   * @param {Selection} sel Selection information returned from `initialize`.\n   */\n  close: ReactInputSelection.restoreSelection\n};\n\n/**\n * Suppresses events (blur/focus) that could be inadvertently dispatched due to\n * high level DOM manipulations (like temporarily removing a text input from the\n * DOM).\n */\nvar EVENT_SUPPRESSION = {\n  /**\n   * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before\n   * the reconciliation.\n   */\n  initialize: function () {\n    var currentlyEnabled = ReactBrowserEventEmitter.isEnabled();\n    ReactBrowserEventEmitter.setEnabled(false);\n    return currentlyEnabled;\n  },\n\n  /**\n   * @param {boolean} previouslyEnabled Enabled status of\n   *   `ReactBrowserEventEmitter` before the reconciliation occurred. `close`\n   *   restores the previous value.\n   */\n  close: function (previouslyEnabled) {\n    ReactBrowserEventEmitter.setEnabled(previouslyEnabled);\n  }\n};\n\n/**\n * Provides a queue for collecting `componentDidMount` and\n * `componentDidUpdate` callbacks during the transaction.\n */\nvar ON_DOM_READY_QUEUEING = {\n  /**\n   * Initializes the internal `onDOMReady` queue.\n   */\n  initialize: function () {\n    this.reactMountReady.reset();\n  },\n\n  /**\n   * After DOM is flushed, invoke all registered `onDOMReady` callbacks.\n   */\n  close: function () {\n    this.reactMountReady.notifyAll();\n  }\n};\n\n/**\n * Executed within the scope of the `Transaction` instance. Consider these as\n * being member methods, but with an implied ordering while being isolated from\n * each other.\n */\nvar TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING];\n\nif (\"development\" !== 'production') {\n  TRANSACTION_WRAPPERS.push({\n    initialize: ReactInstrumentation.debugTool.onBeginFlush,\n    close: ReactInstrumentation.debugTool.onEndFlush\n  });\n}\n\n/**\n * Currently:\n * - The order that these are listed in the transaction is critical:\n * - Suppresses events.\n * - Restores selection range.\n *\n * Future:\n * - Restore document/overflow scroll positions that were unintentionally\n *   modified via DOM insertions above the top viewport boundary.\n * - Implement/integrate with customized constraint based layout system and keep\n *   track of which dimensions must be remeasured.\n *\n * @class ReactReconcileTransaction\n */\nfunction ReactReconcileTransaction(useCreateElement) {\n  this.reinitializeTransaction();\n  // Only server-side rendering really needs this option (see\n  // `ReactServerRendering`), but server-side uses\n  // `ReactServerRenderingTransaction` instead. This option is here so that it's\n  // accessible and defaults to false when `ReactDOMComponent` and\n  // `ReactDOMTextComponent` checks it in `mountComponent`.`\n  this.renderToStaticMarkup = false;\n  this.reactMountReady = CallbackQueue.getPooled(null);\n  this.useCreateElement = useCreateElement;\n}\n\nvar Mixin = {\n  /**\n   * @see Transaction\n   * @abstract\n   * @final\n   * @return {array<object>} List of operation wrap procedures.\n   *   TODO: convert to array<TransactionWrapper>\n   */\n  getTransactionWrappers: function () {\n    return TRANSACTION_WRAPPERS;\n  },\n\n  /**\n   * @return {object} The queue to collect `onDOMReady` callbacks with.\n   */\n  getReactMountReady: function () {\n    return this.reactMountReady;\n  },\n\n  /**\n   * @return {object} The queue to collect React async events.\n   */\n  getUpdateQueue: function () {\n    return ReactUpdateQueue;\n  },\n\n  /**\n   * Save current transaction state -- if the return value from this method is\n   * passed to `rollback`, the transaction will be reset to that state.\n   */\n  checkpoint: function () {\n    // reactMountReady is the our only stateful wrapper\n    return this.reactMountReady.checkpoint();\n  },\n\n  rollback: function (checkpoint) {\n    this.reactMountReady.rollback(checkpoint);\n  },\n\n  /**\n   * `PooledClass` looks for this, and will invoke this before allowing this\n   * instance to be reused.\n   */\n  destructor: function () {\n    CallbackQueue.release(this.reactMountReady);\n    this.reactMountReady = null;\n  }\n};\n\n_assign(ReactReconcileTransaction.prototype, Transaction, Mixin);\n\nPooledClass.addPoolingTo(ReactReconcileTransaction);\n\nmodule.exports = ReactReconcileTransaction;\n},{\"100\":100,\"158\":158,\"25\":25,\"26\":26,\"6\":6,\"62\":62,\"64\":64,\"81\":81}],75:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactRef = _dereq_(76);\nvar ReactInstrumentation = _dereq_(64);\n\nvar warning = _dereq_(157);\n\n/**\n * Helper to call ReactRef.attachRefs with this composite component, split out\n * to avoid allocations in the transaction mount-ready queue.\n */\nfunction attachRefs() {\n  ReactRef.attachRefs(this, this._currentElement);\n}\n\nvar ReactReconciler = {\n\n  /**\n   * Initializes the component, renders markup, and registers event listeners.\n   *\n   * @param {ReactComponent} internalInstance\n   * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n   * @param {?object} the containing host component instance\n   * @param {?object} info about the host container\n   * @return {?string} Rendered markup to be inserted into the DOM.\n   * @final\n   * @internal\n   */\n  mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID // 0 in production and for roots\n  ) {\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);\n      }\n    }\n    var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID);\n    if (internalInstance._currentElement && internalInstance._currentElement.ref != null) {\n      transaction.getReactMountReady().enqueue(attachRefs, internalInstance);\n    }\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID);\n      }\n    }\n    return markup;\n  },\n\n  /**\n   * Returns a value that can be passed to\n   * ReactComponentEnvironment.replaceNodeWithMarkup.\n   */\n  getHostNode: function (internalInstance) {\n    return internalInstance.getHostNode();\n  },\n\n  /**\n   * Releases any resources allocated by `mountComponent`.\n   *\n   * @final\n   * @internal\n   */\n  unmountComponent: function (internalInstance, safely) {\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID);\n      }\n    }\n    ReactRef.detachRefs(internalInstance, internalInstance._currentElement);\n    internalInstance.unmountComponent(safely);\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);\n      }\n    }\n  },\n\n  /**\n   * Update a component using a new element.\n   *\n   * @param {ReactComponent} internalInstance\n   * @param {ReactElement} nextElement\n   * @param {ReactReconcileTransaction} transaction\n   * @param {object} context\n   * @internal\n   */\n  receiveComponent: function (internalInstance, nextElement, transaction, context) {\n    var prevElement = internalInstance._currentElement;\n\n    if (nextElement === prevElement && context === internalInstance._context) {\n      // Since elements are immutable after the owner is rendered,\n      // we can do a cheap identity compare here to determine if this is a\n      // superfluous reconcile. It's possible for state to be mutable but such\n      // change should trigger an update of the owner which would recreate\n      // the element. We explicitly check for the existence of an owner since\n      // it's possible for an element created outside a composite to be\n      // deeply mutated and reused.\n\n      // TODO: Bailing out early is just a perf optimization right?\n      // TODO: Removing the return statement should affect correctness?\n      return;\n    }\n\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);\n      }\n    }\n\n    var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement);\n\n    if (refsChanged) {\n      ReactRef.detachRefs(internalInstance, prevElement);\n    }\n\n    internalInstance.receiveComponent(nextElement, transaction, context);\n\n    if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) {\n      transaction.getReactMountReady().enqueue(attachRefs, internalInstance);\n    }\n\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);\n      }\n    }\n  },\n\n  /**\n   * Flush any dirty changes in a component.\n   *\n   * @param {ReactComponent} internalInstance\n   * @param {ReactReconcileTransaction} transaction\n   * @internal\n   */\n  performUpdateIfNecessary: function (internalInstance, transaction, updateBatchNumber) {\n    if (internalInstance._updateBatchNumber !== updateBatchNumber) {\n      // The component's enqueued batch number should always be the current\n      // batch or the following one.\n      \"development\" !== 'production' ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;\n      return;\n    }\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement);\n      }\n    }\n    internalInstance.performUpdateIfNecessary(transaction);\n    if (\"development\" !== 'production') {\n      if (internalInstance._debugID !== 0) {\n        ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);\n      }\n    }\n  }\n\n};\n\nmodule.exports = ReactReconciler;\n},{\"157\":157,\"64\":64,\"76\":76}],76:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactOwner = _dereq_(70);\n\nvar ReactRef = {};\n\nfunction attachRef(ref, component, owner) {\n  if (typeof ref === 'function') {\n    ref(component.getPublicInstance());\n  } else {\n    // Legacy ref\n    ReactOwner.addComponentAsRefTo(component, ref, owner);\n  }\n}\n\nfunction detachRef(ref, component, owner) {\n  if (typeof ref === 'function') {\n    ref(null);\n  } else {\n    // Legacy ref\n    ReactOwner.removeComponentAsRefFrom(component, ref, owner);\n  }\n}\n\nReactRef.attachRefs = function (instance, element) {\n  if (element === null || typeof element !== 'object') {\n    return;\n  }\n  var ref = element.ref;\n  if (ref != null) {\n    attachRef(ref, instance, element._owner);\n  }\n};\n\nReactRef.shouldUpdateRefs = function (prevElement, nextElement) {\n  // If either the owner or a `ref` has changed, make sure the newest owner\n  // has stored a reference to `this`, and the previous owner (if different)\n  // has forgotten the reference to `this`. We use the element instead\n  // of the public this.props because the post processing cannot determine\n  // a ref. The ref conceptually lives on the element.\n\n  // TODO: Should this even be possible? The owner cannot change because\n  // it's forbidden by shouldUpdateReactComponent. The ref can change\n  // if you swap the keys of but not the refs. Reconsider where this check\n  // is made. It probably belongs where the key checking and\n  // instantiateReactComponent is done.\n\n  var prevRef = null;\n  var prevOwner = null;\n  if (prevElement !== null && typeof prevElement === 'object') {\n    prevRef = prevElement.ref;\n    prevOwner = prevElement._owner;\n  }\n\n  var nextRef = null;\n  var nextOwner = null;\n  if (nextElement !== null && typeof nextElement === 'object') {\n    nextRef = nextElement.ref;\n    nextOwner = nextElement._owner;\n  }\n\n  return prevRef !== nextRef ||\n  // If owner changes but we have an unchanged function ref, don't update refs\n  typeof nextRef === 'string' && nextOwner !== prevOwner;\n};\n\nReactRef.detachRefs = function (instance, element) {\n  if (element === null || typeof element !== 'object') {\n    return;\n  }\n  var ref = element.ref;\n  if (ref != null) {\n    detachRef(ref, instance, element._owner);\n  }\n};\n\nmodule.exports = ReactRef;\n},{\"70\":70}],77:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar PooledClass = _dereq_(25);\nvar Transaction = _dereq_(100);\nvar ReactInstrumentation = _dereq_(64);\nvar ReactServerUpdateQueue = _dereq_(78);\n\n/**\n * Executed within the scope of the `Transaction` instance. Consider these as\n * being member methods, but with an implied ordering while being isolated from\n * each other.\n */\nvar TRANSACTION_WRAPPERS = [];\n\nif (\"development\" !== 'production') {\n  TRANSACTION_WRAPPERS.push({\n    initialize: ReactInstrumentation.debugTool.onBeginFlush,\n    close: ReactInstrumentation.debugTool.onEndFlush\n  });\n}\n\nvar noopCallbackQueue = {\n  enqueue: function () {}\n};\n\n/**\n * @class ReactServerRenderingTransaction\n * @param {boolean} renderToStaticMarkup\n */\nfunction ReactServerRenderingTransaction(renderToStaticMarkup) {\n  this.reinitializeTransaction();\n  this.renderToStaticMarkup = renderToStaticMarkup;\n  this.useCreateElement = false;\n  this.updateQueue = new ReactServerUpdateQueue(this);\n}\n\nvar Mixin = {\n  /**\n   * @see Transaction\n   * @abstract\n   * @final\n   * @return {array} Empty list of operation wrap procedures.\n   */\n  getTransactionWrappers: function () {\n    return TRANSACTION_WRAPPERS;\n  },\n\n  /**\n   * @return {object} The queue to collect `onDOMReady` callbacks with.\n   */\n  getReactMountReady: function () {\n    return noopCallbackQueue;\n  },\n\n  /**\n   * @return {object} The queue to collect React async events.\n   */\n  getUpdateQueue: function () {\n    return this.updateQueue;\n  },\n\n  /**\n   * `PooledClass` looks for this, and will invoke this before allowing this\n   * instance to be reused.\n   */\n  destructor: function () {},\n\n  checkpoint: function () {},\n\n  rollback: function () {}\n};\n\n_assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin);\n\nPooledClass.addPoolingTo(ReactServerRenderingTransaction);\n\nmodule.exports = ReactServerRenderingTransaction;\n},{\"100\":100,\"158\":158,\"25\":25,\"64\":64,\"78\":78}],78:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar ReactUpdateQueue = _dereq_(81);\n\nvar warning = _dereq_(157);\n\nfunction warnNoop(publicInstance, callerName) {\n  if (\"development\" !== 'production') {\n    var constructor = publicInstance.constructor;\n    \"development\" !== 'production' ? warning(false, '%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;\n  }\n}\n\n/**\n * This is the update queue used for server rendering.\n * It delegates to ReactUpdateQueue while server rendering is in progress and\n * switches to ReactNoopUpdateQueue after the transaction has completed.\n * @class ReactServerUpdateQueue\n * @param {Transaction} transaction\n */\n\nvar ReactServerUpdateQueue = function () {\n  function ReactServerUpdateQueue(transaction) {\n    _classCallCheck(this, ReactServerUpdateQueue);\n\n    this.transaction = transaction;\n  }\n\n  /**\n   * Checks whether or not this composite component is mounted.\n   * @param {ReactClass} publicInstance The instance we want to test.\n   * @return {boolean} True if mounted, false otherwise.\n   * @protected\n   * @final\n   */\n\n\n  ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) {\n    return false;\n  };\n\n  /**\n   * Enqueue a callback that will be executed after all the pending updates\n   * have processed.\n   *\n   * @param {ReactClass} publicInstance The instance to use as `this` context.\n   * @param {?function} callback Called after state is updated.\n   * @internal\n   */\n\n\n  ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback(publicInstance, callback, callerName) {\n    if (this.transaction.isInTransaction()) {\n      ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName);\n    }\n  };\n\n  /**\n   * Forces an update. This should only be invoked when it is known with\n   * certainty that we are **not** in a DOM transaction.\n   *\n   * You may want to call this when you know that some deeper aspect of the\n   * component's state has changed but `setState` was not called.\n   *\n   * This will not invoke `shouldComponentUpdate`, but it will invoke\n   * `componentWillUpdate` and `componentDidUpdate`.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @internal\n   */\n\n\n  ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate(publicInstance) {\n    if (this.transaction.isInTransaction()) {\n      ReactUpdateQueue.enqueueForceUpdate(publicInstance);\n    } else {\n      warnNoop(publicInstance, 'forceUpdate');\n    }\n  };\n\n  /**\n   * Replaces all of the state. Always use this or `setState` to mutate state.\n   * You should treat `this.state` as immutable.\n   *\n   * There is no guarantee that `this.state` will be immediately updated, so\n   * accessing `this.state` after calling this method may return the old value.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object|function} completeState Next state.\n   * @internal\n   */\n\n\n  ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState(publicInstance, completeState) {\n    if (this.transaction.isInTransaction()) {\n      ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState);\n    } else {\n      warnNoop(publicInstance, 'replaceState');\n    }\n  };\n\n  /**\n   * Sets a subset of the state. This only exists because _pendingState is\n   * internal. This provides a merging strategy that is not available to deep\n   * properties which is confusing. TODO: Expose pendingState or don't use it\n   * during the merge.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object|function} partialState Next partial state to be merged with state.\n   * @internal\n   */\n\n\n  ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState(publicInstance, partialState) {\n    if (this.transaction.isInTransaction()) {\n      ReactUpdateQueue.enqueueSetState(publicInstance, partialState);\n    } else {\n      warnNoop(publicInstance, 'setState');\n    }\n  };\n\n  return ReactServerUpdateQueue;\n}();\n\nmodule.exports = ReactServerUpdateQueue;\n},{\"157\":157,\"81\":81}],79:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar React = _dereq_(133);\nvar ReactCompositeComponent = _dereq_(30);\nvar ReactDefaultBatchingStrategy = _dereq_(51);\nvar ReactReconciler = _dereq_(75);\nvar ReactReconcileTransaction = _dereq_(74);\nvar ReactUpdates = _dereq_(82);\n\nvar emptyObject = _dereq_(143);\nvar getNextDebugID = _dereq_(134);\nvar invariant = _dereq_(150);\n\nfunction injectDefaults() {\n  ReactUpdates.injection.injectReconcileTransaction(ReactReconcileTransaction);\n  ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy);\n}\n\nvar NoopInternalComponent = function () {\n  function NoopInternalComponent(element) {\n    _classCallCheck(this, NoopInternalComponent);\n\n    this._renderedOutput = element;\n    this._currentElement = element;\n\n    if (\"development\" !== 'production') {\n      this._debugID = getNextDebugID();\n    }\n  }\n\n  NoopInternalComponent.prototype.mountComponent = function mountComponent() {};\n\n  NoopInternalComponent.prototype.receiveComponent = function receiveComponent(element) {\n    this._renderedOutput = element;\n    this._currentElement = element;\n  };\n\n  NoopInternalComponent.prototype.unmountComponent = function unmountComponent() {};\n\n  NoopInternalComponent.prototype.getHostNode = function getHostNode() {\n    return undefined;\n  };\n\n  NoopInternalComponent.prototype.getPublicInstance = function getPublicInstance() {\n    return null;\n  };\n\n  return NoopInternalComponent;\n}();\n\nvar ShallowComponentWrapper = function (element) {\n  // TODO: Consolidate with instantiateReactComponent\n  if (\"development\" !== 'production') {\n    this._debugID = getNextDebugID();\n  }\n\n  this.construct(element);\n};\n_assign(ShallowComponentWrapper.prototype, ReactCompositeComponent, {\n  _constructComponent: ReactCompositeComponent._constructComponentWithoutOwner,\n  _instantiateReactComponent: function (element) {\n    return new NoopInternalComponent(element);\n  },\n  _replaceNodeWithMarkup: function () {},\n  _renderValidatedComponent: ReactCompositeComponent._renderValidatedComponentWithoutOwnerOrContext\n});\n\nfunction _batchedRender(renderer, element, context) {\n  var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true);\n  renderer._render(element, transaction, context);\n  ReactUpdates.ReactReconcileTransaction.release(transaction);\n}\n\nvar ReactShallowRenderer = function () {\n  function ReactShallowRenderer() {\n    _classCallCheck(this, ReactShallowRenderer);\n\n    this._instance = null;\n  }\n\n  ReactShallowRenderer.prototype.getMountedInstance = function getMountedInstance() {\n    return this._instance ? this._instance._instance : null;\n  };\n\n  ReactShallowRenderer.prototype.render = function render(element, context) {\n    // Ensure we've done the default injections. This might not be true in the\n    // case of a simple test that only requires React and the TestUtils in\n    // conjunction with an inline-requires transform.\n    injectDefaults();\n\n    !React.isValidElement(element) ? \"development\" !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Invalid component element.%s', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : _prodInvariant('12', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : void 0;\n    !(typeof element.type !== 'string') ? \"development\" !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Shallow rendering works only with custom components, not primitives (%s). Instead of calling `.render(el)` and inspecting the rendered output, look at `el.props` directly instead.', element.type) : _prodInvariant('13', element.type) : void 0;\n\n    if (!context) {\n      context = emptyObject;\n    }\n    ReactUpdates.batchedUpdates(_batchedRender, this, element, context);\n\n    return this.getRenderOutput();\n  };\n\n  ReactShallowRenderer.prototype.getRenderOutput = function getRenderOutput() {\n    return this._instance && this._instance._renderedComponent && this._instance._renderedComponent._renderedOutput || null;\n  };\n\n  ReactShallowRenderer.prototype.unmount = function unmount() {\n    if (this._instance) {\n      ReactReconciler.unmountComponent(this._instance, false);\n    }\n  };\n\n  ReactShallowRenderer.prototype.unstable_batchedUpdates = function unstable_batchedUpdates(callback, bookkeeping) {\n    // This is used by Enzyme for fake-simulating events in shallow mode.\n    injectDefaults();\n    return ReactUpdates.batchedUpdates(callback, bookkeeping);\n  };\n\n  ReactShallowRenderer.prototype._render = function _render(element, transaction, context) {\n    if (this._instance) {\n      ReactReconciler.receiveComponent(this._instance, element, transaction, context);\n    } else {\n      var instance = new ShallowComponentWrapper(element);\n      ReactReconciler.mountComponent(instance, transaction, null, null, context, 0);\n      this._instance = instance;\n    }\n  };\n\n  return ReactShallowRenderer;\n}();\n\nReactShallowRenderer.createRenderer = function () {\n  return new ReactShallowRenderer();\n};\n\nmodule.exports = ReactShallowRenderer;\n},{\"124\":124,\"133\":133,\"134\":134,\"143\":143,\"150\":150,\"158\":158,\"30\":30,\"51\":51,\"74\":74,\"75\":75,\"82\":82}],80:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar EventConstants = _dereq_(16);\nvar EventPluginHub = _dereq_(17);\nvar EventPluginRegistry = _dereq_(18);\nvar EventPropagators = _dereq_(20);\nvar React = _dereq_(133);\nvar ReactDOM = _dereq_(31);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactBrowserEventEmitter = _dereq_(26);\nvar ReactInstanceMap = _dereq_(63);\nvar ReactUpdates = _dereq_(82);\nvar SyntheticEvent = _dereq_(91);\nvar ReactShallowRenderer = _dereq_(79);\n\nvar findDOMNode = _dereq_(108);\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nvar topLevelTypes = EventConstants.topLevelTypes;\n\nfunction Event(suffix) {}\n\n// In react 16+ shallowRenderer will not be accessible via ReactTestUtils.createRenderer()\n// Instead it will be available via react-test-renderer/shallow\n// Maintain backwards compat for 15.5.0 release, but warn about using the deprecated method\nvar hasWarnedAboutCreateRenderer = false;\nfunction createRendererWithWarning() {\n  \"development\" !== 'production' ? warning(hasWarnedAboutCreateRenderer, 'Shallow renderer has been moved to react-test-renderer/shallow. ' + 'Update references to remove this warning.') : void 0;\n  hasWarnedAboutCreateRenderer = true;\n\n  return new ReactShallowRenderer();\n}\n\n/**\n * @class ReactTestUtils\n */\n\nfunction findAllInRenderedTreeInternal(inst, test) {\n  if (!inst || !inst.getPublicInstance) {\n    return [];\n  }\n  var publicInst = inst.getPublicInstance();\n  var ret = test(publicInst) ? [publicInst] : [];\n  var currentElement = inst._currentElement;\n  if (ReactTestUtils.isDOMComponent(publicInst)) {\n    var renderedChildren = inst._renderedChildren;\n    var key;\n    for (key in renderedChildren) {\n      if (!renderedChildren.hasOwnProperty(key)) {\n        continue;\n      }\n      ret = ret.concat(findAllInRenderedTreeInternal(renderedChildren[key], test));\n    }\n  } else if (React.isValidElement(currentElement) && typeof currentElement.type === 'function') {\n    ret = ret.concat(findAllInRenderedTreeInternal(inst._renderedComponent, test));\n  }\n  return ret;\n}\n\n/**\n * Utilities for making it easy to test React components.\n *\n * See https://facebook.github.io/react/docs/test-utils.html\n *\n * Todo: Support the entire DOM.scry query syntax. For now, these simple\n * utilities will suffice for testing purposes.\n * @lends ReactTestUtils\n */\nvar ReactTestUtils = {\n  renderIntoDocument: function (element) {\n    var div = document.createElement('div');\n    // None of our tests actually require attaching the container to the\n    // DOM, and doing so creates a mess that we rely on test isolation to\n    // clean up, so we're going to stop honoring the name of this method\n    // (and probably rename it eventually) if no problems arise.\n    // document.documentElement.appendChild(div);\n    return ReactDOM.render(element, div);\n  },\n\n  isElement: function (element) {\n    return React.isValidElement(element);\n  },\n\n  isElementOfType: function (inst, convenienceConstructor) {\n    return React.isValidElement(inst) && inst.type === convenienceConstructor;\n  },\n\n  isDOMComponent: function (inst) {\n    return !!(inst && inst.nodeType === 1 && inst.tagName);\n  },\n\n  isDOMComponentElement: function (inst) {\n    return !!(inst && React.isValidElement(inst) && !!inst.tagName);\n  },\n\n  isCompositeComponent: function (inst) {\n    if (ReactTestUtils.isDOMComponent(inst)) {\n      // Accessing inst.setState warns; just return false as that'll be what\n      // this returns when we have DOM nodes as refs directly\n      return false;\n    }\n    return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function';\n  },\n\n  isCompositeComponentWithType: function (inst, type) {\n    if (!ReactTestUtils.isCompositeComponent(inst)) {\n      return false;\n    }\n    var internalInstance = ReactInstanceMap.get(inst);\n    var constructor = internalInstance._currentElement.type;\n\n    return constructor === type;\n  },\n\n  isCompositeComponentElement: function (inst) {\n    if (!React.isValidElement(inst)) {\n      return false;\n    }\n    // We check the prototype of the type that will get mounted, not the\n    // instance itself. This is a future proof way of duck typing.\n    var prototype = inst.type.prototype;\n    return typeof prototype.render === 'function' && typeof prototype.setState === 'function';\n  },\n\n  isCompositeComponentElementWithType: function (inst, type) {\n    var internalInstance = ReactInstanceMap.get(inst);\n    var constructor = internalInstance._currentElement.type;\n\n    return !!(ReactTestUtils.isCompositeComponentElement(inst) && constructor === type);\n  },\n\n  getRenderedChildOfCompositeComponent: function (inst) {\n    if (!ReactTestUtils.isCompositeComponent(inst)) {\n      return null;\n    }\n    var internalInstance = ReactInstanceMap.get(inst);\n    return internalInstance._renderedComponent.getPublicInstance();\n  },\n\n  findAllInRenderedTree: function (inst, test) {\n    if (!inst) {\n      return [];\n    }\n    !ReactTestUtils.isCompositeComponent(inst) ? \"development\" !== 'production' ? invariant(false, 'findAllInRenderedTree(...): instance must be a composite component') : _prodInvariant('10') : void 0;\n    return findAllInRenderedTreeInternal(ReactInstanceMap.get(inst), test);\n  },\n\n  /**\n   * Finds all instance of components in the rendered tree that are DOM\n   * components with the class name matching `className`.\n   * @return {array} an array of all the matches.\n   */\n  scryRenderedDOMComponentsWithClass: function (root, classNames) {\n    return ReactTestUtils.findAllInRenderedTree(root, function (inst) {\n      if (ReactTestUtils.isDOMComponent(inst)) {\n        var className = inst.className;\n        if (typeof className !== 'string') {\n          // SVG, probably.\n          className = inst.getAttribute('class') || '';\n        }\n        var classList = className.split(/\\s+/);\n\n        if (!Array.isArray(classNames)) {\n          !(classNames !== undefined) ? \"development\" !== 'production' ? invariant(false, 'TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.') : _prodInvariant('11') : void 0;\n          classNames = classNames.split(/\\s+/);\n        }\n        return classNames.every(function (name) {\n          return classList.indexOf(name) !== -1;\n        });\n      }\n      return false;\n    });\n  },\n\n  /**\n   * Like scryRenderedDOMComponentsWithClass but expects there to be one result,\n   * and returns that one result, or throws exception if there is any other\n   * number of matches besides one.\n   * @return {!ReactDOMComponent} The one match.\n   */\n  findRenderedDOMComponentWithClass: function (root, className) {\n    var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className);\n    if (all.length !== 1) {\n      throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className);\n    }\n    return all[0];\n  },\n\n  /**\n   * Finds all instance of components in the rendered tree that are DOM\n   * components with the tag name matching `tagName`.\n   * @return {array} an array of all the matches.\n   */\n  scryRenderedDOMComponentsWithTag: function (root, tagName) {\n    return ReactTestUtils.findAllInRenderedTree(root, function (inst) {\n      return ReactTestUtils.isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase();\n    });\n  },\n\n  /**\n   * Like scryRenderedDOMComponentsWithTag but expects there to be one result,\n   * and returns that one result, or throws exception if there is any other\n   * number of matches besides one.\n   * @return {!ReactDOMComponent} The one match.\n   */\n  findRenderedDOMComponentWithTag: function (root, tagName) {\n    var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName);\n    if (all.length !== 1) {\n      throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName);\n    }\n    return all[0];\n  },\n\n  /**\n   * Finds all instances of components with type equal to `componentType`.\n   * @return {array} an array of all the matches.\n   */\n  scryRenderedComponentsWithType: function (root, componentType) {\n    return ReactTestUtils.findAllInRenderedTree(root, function (inst) {\n      return ReactTestUtils.isCompositeComponentWithType(inst, componentType);\n    });\n  },\n\n  /**\n   * Same as `scryRenderedComponentsWithType` but expects there to be one result\n   * and returns that one result, or throws exception if there is any other\n   * number of matches besides one.\n   * @return {!ReactComponent} The one match.\n   */\n  findRenderedComponentWithType: function (root, componentType) {\n    var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType);\n    if (all.length !== 1) {\n      throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType);\n    }\n    return all[0];\n  },\n\n  /**\n   * Pass a mocked component module to this method to augment it with\n   * useful methods that allow it to be used as a dummy React component.\n   * Instead of rendering as usual, the component will become a simple\n   * <div> containing any provided children.\n   *\n   * @param {object} module the mock function object exported from a\n   *                        module that defines the component to be mocked\n   * @param {?string} mockTagName optional dummy root tag name to return\n   *                              from render method (overrides\n   *                              module.mockTagName if provided)\n   * @return {object} the ReactTestUtils object (for chaining)\n   */\n  mockComponent: function (module, mockTagName) {\n    mockTagName = mockTagName || module.mockTagName || 'div';\n\n    module.prototype.render.mockImplementation(function () {\n      return React.createElement(mockTagName, null, this.props.children);\n    });\n\n    return this;\n  },\n\n  /**\n   * Simulates a top level event being dispatched from a raw event that occurred\n   * on an `Element` node.\n   * @param {Object} topLevelType A type from `EventConstants.topLevelTypes`\n   * @param {!Element} node The dom to simulate an event occurring on.\n   * @param {?Event} fakeNativeEvent Fake native event to use in SyntheticEvent.\n   */\n  simulateNativeEventOnNode: function (topLevelType, node, fakeNativeEvent) {\n    fakeNativeEvent.target = node;\n    ReactBrowserEventEmitter.ReactEventListener.dispatchEvent(topLevelType, fakeNativeEvent);\n  },\n\n  /**\n   * Simulates a top level event being dispatched from a raw event that occurred\n   * on the `ReactDOMComponent` `comp`.\n   * @param {Object} topLevelType A type from `EventConstants.topLevelTypes`.\n   * @param {!ReactDOMComponent} comp\n   * @param {?Event} fakeNativeEvent Fake native event to use in SyntheticEvent.\n   */\n  simulateNativeEventOnDOMComponent: function (topLevelType, comp, fakeNativeEvent) {\n    ReactTestUtils.simulateNativeEventOnNode(topLevelType, findDOMNode(comp), fakeNativeEvent);\n  },\n\n  nativeTouchData: function (x, y) {\n    return {\n      touches: [{ pageX: x, pageY: y }]\n    };\n  },\n\n  createRenderer: createRendererWithWarning,\n\n  Simulate: null,\n  SimulateNative: {}\n};\n\n/**\n * Exports:\n *\n * - `ReactTestUtils.Simulate.click(Element/ReactDOMComponent)`\n * - `ReactTestUtils.Simulate.mouseMove(Element/ReactDOMComponent)`\n * - `ReactTestUtils.Simulate.change(Element/ReactDOMComponent)`\n * - ... (All keys from event plugin `eventTypes` objects)\n */\nfunction makeSimulator(eventType) {\n  return function (domComponentOrNode, eventData) {\n    var node;\n    !!React.isValidElement(domComponentOrNode) ? \"development\" !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0;\n    if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n      node = findDOMNode(domComponentOrNode);\n    } else if (domComponentOrNode.tagName) {\n      node = domComponentOrNode;\n    }\n\n    var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType];\n\n    var fakeNativeEvent = new Event();\n    fakeNativeEvent.target = node;\n    fakeNativeEvent.type = eventType.toLowerCase();\n\n    // We don't use SyntheticEvent.getPooled in order to not have to worry about\n    // properly destroying any properties assigned from `eventData` upon release\n    var event = new SyntheticEvent(dispatchConfig, ReactDOMComponentTree.getInstanceFromNode(node), fakeNativeEvent, node);\n    // Since we aren't using pooling, always persist the event. This will make\n    // sure it's marked and won't warn when setting additional properties.\n    event.persist();\n    _assign(event, eventData);\n\n    if (dispatchConfig.phasedRegistrationNames) {\n      EventPropagators.accumulateTwoPhaseDispatches(event);\n    } else {\n      EventPropagators.accumulateDirectDispatches(event);\n    }\n\n    ReactUpdates.batchedUpdates(function () {\n      EventPluginHub.enqueueEvents(event);\n      EventPluginHub.processEventQueue(true);\n    });\n  };\n}\n\nfunction buildSimulators() {\n  ReactTestUtils.Simulate = {};\n\n  var eventType;\n  for (eventType in EventPluginRegistry.eventNameDispatchConfigs) {\n    /**\n     * @param {!Element|ReactDOMComponent} domComponentOrNode\n     * @param {?object} eventData Fake event data to use in SyntheticEvent.\n     */\n    ReactTestUtils.Simulate[eventType] = makeSimulator(eventType);\n  }\n}\n\n// Rebuild ReactTestUtils.Simulate whenever event plugins are injected\nvar oldInjectEventPluginOrder = EventPluginHub.injection.injectEventPluginOrder;\nEventPluginHub.injection.injectEventPluginOrder = function () {\n  oldInjectEventPluginOrder.apply(this, arguments);\n  buildSimulators();\n};\nvar oldInjectEventPlugins = EventPluginHub.injection.injectEventPluginsByName;\nEventPluginHub.injection.injectEventPluginsByName = function () {\n  oldInjectEventPlugins.apply(this, arguments);\n  buildSimulators();\n};\n\nbuildSimulators();\n\n/**\n * Exports:\n *\n * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)`\n * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)`\n * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)`\n * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)`\n * - ... (All keys from `EventConstants.topLevelTypes`)\n *\n * Note: Top level event types are a subset of the entire set of handler types\n * (which include a broader set of \"synthetic\" events). For example, onDragDone\n * is a synthetic event. Except when testing an event plugin or React's event\n * handling code specifically, you probably want to use ReactTestUtils.Simulate\n * to dispatch synthetic events.\n */\n\nfunction makeNativeSimulator(eventType) {\n  return function (domComponentOrNode, nativeEventData) {\n    var fakeNativeEvent = new Event(eventType);\n    _assign(fakeNativeEvent, nativeEventData);\n    if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n      ReactTestUtils.simulateNativeEventOnDOMComponent(eventType, domComponentOrNode, fakeNativeEvent);\n    } else if (domComponentOrNode.tagName) {\n      // Will allow on actual dom nodes.\n      ReactTestUtils.simulateNativeEventOnNode(eventType, domComponentOrNode, fakeNativeEvent);\n    }\n  };\n}\n\nObject.keys(topLevelTypes).forEach(function (eventType) {\n  // Event type is stored as 'topClick' - we transform that to 'click'\n  var convenienceName = eventType.indexOf('top') === 0 ? eventType.charAt(3).toLowerCase() + eventType.substr(4) : eventType;\n  /**\n   * @param {!Element|ReactDOMComponent} domComponentOrNode\n   * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent.\n   */\n  ReactTestUtils.SimulateNative[convenienceName] = makeNativeSimulator(eventType);\n});\n\nmodule.exports = ReactTestUtils;\n},{\"108\":108,\"124\":124,\"133\":133,\"150\":150,\"157\":157,\"158\":158,\"16\":16,\"17\":17,\"18\":18,\"20\":20,\"26\":26,\"31\":31,\"34\":34,\"63\":63,\"79\":79,\"82\":82,\"91\":91}],81:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactCurrentOwner = _dereq_(132);\nvar ReactInstanceMap = _dereq_(63);\nvar ReactInstrumentation = _dereq_(64);\nvar ReactUpdates = _dereq_(82);\n\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nfunction enqueueUpdate(internalInstance) {\n  ReactUpdates.enqueueUpdate(internalInstance);\n}\n\nfunction formatUnexpectedArgument(arg) {\n  var type = typeof arg;\n  if (type !== 'object') {\n    return type;\n  }\n  var displayName = arg.constructor && arg.constructor.name || type;\n  var keys = Object.keys(arg);\n  if (keys.length > 0 && keys.length < 20) {\n    return displayName + ' (keys: ' + keys.join(', ') + ')';\n  }\n  return displayName;\n}\n\nfunction getInternalInstanceReadyForUpdate(publicInstance, callerName) {\n  var internalInstance = ReactInstanceMap.get(publicInstance);\n  if (!internalInstance) {\n    if (\"development\" !== 'production') {\n      var ctor = publicInstance.constructor;\n      // Only warn when we have a callerName. Otherwise we should be silent.\n      // We're probably calling from enqueueCallback. We don't want to warn\n      // there because we already warned for the corresponding lifecycle method.\n      \"development\" !== 'production' ? warning(!callerName, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, ctor && (ctor.displayName || ctor.name) || 'ReactClass') : void 0;\n    }\n    return null;\n  }\n\n  if (\"development\" !== 'production') {\n    \"development\" !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + 'within `render` or another component\\'s constructor). Render methods ' + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;\n  }\n\n  return internalInstance;\n}\n\n/**\n * ReactUpdateQueue allows for state updates to be scheduled into a later\n * reconciliation step.\n */\nvar ReactUpdateQueue = {\n\n  /**\n   * Checks whether or not this composite component is mounted.\n   * @param {ReactClass} publicInstance The instance we want to test.\n   * @return {boolean} True if mounted, false otherwise.\n   * @protected\n   * @final\n   */\n  isMounted: function (publicInstance) {\n    if (\"development\" !== 'production') {\n      var owner = ReactCurrentOwner.current;\n      if (owner !== null) {\n        \"development\" !== 'production' ? warning(owner._warnedAboutRefsInRender, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A component') : void 0;\n        owner._warnedAboutRefsInRender = true;\n      }\n    }\n    var internalInstance = ReactInstanceMap.get(publicInstance);\n    if (internalInstance) {\n      // During componentWillMount and render this will still be null but after\n      // that will always render to something. At least for now. So we can use\n      // this hack.\n      return !!internalInstance._renderedComponent;\n    } else {\n      return false;\n    }\n  },\n\n  /**\n   * Enqueue a callback that will be executed after all the pending updates\n   * have processed.\n   *\n   * @param {ReactClass} publicInstance The instance to use as `this` context.\n   * @param {?function} callback Called after state is updated.\n   * @param {string} callerName Name of the calling function in the public API.\n   * @internal\n   */\n  enqueueCallback: function (publicInstance, callback, callerName) {\n    ReactUpdateQueue.validateCallback(callback, callerName);\n    var internalInstance = getInternalInstanceReadyForUpdate(publicInstance);\n\n    // Previously we would throw an error if we didn't have an internal\n    // instance. Since we want to make it a no-op instead, we mirror the same\n    // behavior we have in other enqueue* methods.\n    // We also need to ignore callbacks in componentWillMount. See\n    // enqueueUpdates.\n    if (!internalInstance) {\n      return null;\n    }\n\n    if (internalInstance._pendingCallbacks) {\n      internalInstance._pendingCallbacks.push(callback);\n    } else {\n      internalInstance._pendingCallbacks = [callback];\n    }\n    // TODO: The callback here is ignored when setState is called from\n    // componentWillMount. Either fix it or disallow doing so completely in\n    // favor of getInitialState. Alternatively, we can disallow\n    // componentWillMount during server-side rendering.\n    enqueueUpdate(internalInstance);\n  },\n\n  enqueueCallbackInternal: function (internalInstance, callback) {\n    if (internalInstance._pendingCallbacks) {\n      internalInstance._pendingCallbacks.push(callback);\n    } else {\n      internalInstance._pendingCallbacks = [callback];\n    }\n    enqueueUpdate(internalInstance);\n  },\n\n  /**\n   * Forces an update. This should only be invoked when it is known with\n   * certainty that we are **not** in a DOM transaction.\n   *\n   * You may want to call this when you know that some deeper aspect of the\n   * component's state has changed but `setState` was not called.\n   *\n   * This will not invoke `shouldComponentUpdate`, but it will invoke\n   * `componentWillUpdate` and `componentDidUpdate`.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @internal\n   */\n  enqueueForceUpdate: function (publicInstance) {\n    var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'forceUpdate');\n\n    if (!internalInstance) {\n      return;\n    }\n\n    internalInstance._pendingForceUpdate = true;\n\n    enqueueUpdate(internalInstance);\n  },\n\n  /**\n   * Replaces all of the state. Always use this or `setState` to mutate state.\n   * You should treat `this.state` as immutable.\n   *\n   * There is no guarantee that `this.state` will be immediately updated, so\n   * accessing `this.state` after calling this method may return the old value.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} completeState Next state.\n   * @internal\n   */\n  enqueueReplaceState: function (publicInstance, completeState, callback) {\n    var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState');\n\n    if (!internalInstance) {\n      return;\n    }\n\n    internalInstance._pendingStateQueue = [completeState];\n    internalInstance._pendingReplaceState = true;\n\n    // Future-proof 15.5\n    if (callback !== undefined && callback !== null) {\n      ReactUpdateQueue.validateCallback(callback, 'replaceState');\n      if (internalInstance._pendingCallbacks) {\n        internalInstance._pendingCallbacks.push(callback);\n      } else {\n        internalInstance._pendingCallbacks = [callback];\n      }\n    }\n\n    enqueueUpdate(internalInstance);\n  },\n\n  /**\n   * Sets a subset of the state. This only exists because _pendingState is\n   * internal. This provides a merging strategy that is not available to deep\n   * properties which is confusing. TODO: Expose pendingState or don't use it\n   * during the merge.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} partialState Next partial state to be merged with state.\n   * @internal\n   */\n  enqueueSetState: function (publicInstance, partialState) {\n    if (\"development\" !== 'production') {\n      ReactInstrumentation.debugTool.onSetState();\n      \"development\" !== 'production' ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0;\n    }\n\n    var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setState');\n\n    if (!internalInstance) {\n      return;\n    }\n\n    var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []);\n    queue.push(partialState);\n\n    enqueueUpdate(internalInstance);\n  },\n\n  enqueueElementInternal: function (internalInstance, nextElement, nextContext) {\n    internalInstance._pendingElement = nextElement;\n    // TODO: introduce _pendingContext instead of setting it directly.\n    internalInstance._context = nextContext;\n    enqueueUpdate(internalInstance);\n  },\n\n  validateCallback: function (callback, callerName) {\n    !(!callback || typeof callback === 'function') ? \"development\" !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;\n  }\n\n};\n\nmodule.exports = ReactUpdateQueue;\n},{\"124\":124,\"132\":132,\"150\":150,\"157\":157,\"63\":63,\"64\":64,\"82\":82}],82:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar CallbackQueue = _dereq_(6);\nvar PooledClass = _dereq_(25);\nvar ReactFeatureFlags = _dereq_(58);\nvar ReactReconciler = _dereq_(75);\nvar Transaction = _dereq_(100);\n\nvar invariant = _dereq_(150);\n\nvar dirtyComponents = [];\nvar updateBatchNumber = 0;\nvar asapCallbackQueue = CallbackQueue.getPooled();\nvar asapEnqueued = false;\n\nvar batchingStrategy = null;\n\nfunction ensureInjected() {\n  !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? \"development\" !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;\n}\n\nvar NESTED_UPDATES = {\n  initialize: function () {\n    this.dirtyComponentsLength = dirtyComponents.length;\n  },\n  close: function () {\n    if (this.dirtyComponentsLength !== dirtyComponents.length) {\n      // Additional updates were enqueued by componentDidUpdate handlers or\n      // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run\n      // these new updates so that if A's componentDidUpdate calls setState on\n      // B, B will update before the callback A's updater provided when calling\n      // setState.\n      dirtyComponents.splice(0, this.dirtyComponentsLength);\n      flushBatchedUpdates();\n    } else {\n      dirtyComponents.length = 0;\n    }\n  }\n};\n\nvar UPDATE_QUEUEING = {\n  initialize: function () {\n    this.callbackQueue.reset();\n  },\n  close: function () {\n    this.callbackQueue.notifyAll();\n  }\n};\n\nvar TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING];\n\nfunction ReactUpdatesFlushTransaction() {\n  this.reinitializeTransaction();\n  this.dirtyComponentsLength = null;\n  this.callbackQueue = CallbackQueue.getPooled();\n  this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(\n  /* useCreateElement */true);\n}\n\n_assign(ReactUpdatesFlushTransaction.prototype, Transaction, {\n  getTransactionWrappers: function () {\n    return TRANSACTION_WRAPPERS;\n  },\n\n  destructor: function () {\n    this.dirtyComponentsLength = null;\n    CallbackQueue.release(this.callbackQueue);\n    this.callbackQueue = null;\n    ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction);\n    this.reconcileTransaction = null;\n  },\n\n  perform: function (method, scope, a) {\n    // Essentially calls `this.reconcileTransaction.perform(method, scope, a)`\n    // with this transaction's wrappers around it.\n    return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a);\n  }\n});\n\nPooledClass.addPoolingTo(ReactUpdatesFlushTransaction);\n\nfunction batchedUpdates(callback, a, b, c, d, e) {\n  ensureInjected();\n  return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);\n}\n\n/**\n * Array comparator for ReactComponents by mount ordering.\n *\n * @param {ReactComponent} c1 first component you're comparing\n * @param {ReactComponent} c2 second component you're comparing\n * @return {number} Return value usable by Array.prototype.sort().\n */\nfunction mountOrderComparator(c1, c2) {\n  return c1._mountOrder - c2._mountOrder;\n}\n\nfunction runBatchedUpdates(transaction) {\n  var len = transaction.dirtyComponentsLength;\n  !(len === dirtyComponents.length) ? \"development\" !== 'production' ? invariant(false, 'Expected flush transaction\\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;\n\n  // Since reconciling a component higher in the owner hierarchy usually (not\n  // always -- see shouldComponentUpdate()) will reconcile children, reconcile\n  // them before their children by sorting the array.\n  dirtyComponents.sort(mountOrderComparator);\n\n  // Any updates enqueued while reconciling must be performed after this entire\n  // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and\n  // C, B could update twice in a single batch if C's render enqueues an update\n  // to B (since B would have already updated, we should skip it, and the only\n  // way we can know to do so is by checking the batch counter).\n  updateBatchNumber++;\n\n  for (var i = 0; i < len; i++) {\n    // If a component is unmounted before pending changes apply, it will still\n    // be here, but we assume that it has cleared its _pendingCallbacks and\n    // that performUpdateIfNecessary is a noop.\n    var component = dirtyComponents[i];\n\n    // If performUpdateIfNecessary happens to enqueue any new updates, we\n    // shouldn't execute the callbacks until the next render happens, so\n    // stash the callbacks first\n    var callbacks = component._pendingCallbacks;\n    component._pendingCallbacks = null;\n\n    var markerName;\n    if (ReactFeatureFlags.logTopLevelRenders) {\n      var namedComponent = component;\n      // Duck type TopLevelWrapper. This is probably always true.\n      if (component._currentElement.type.isReactTopLevelWrapper) {\n        namedComponent = component._renderedComponent;\n      }\n      markerName = 'React update: ' + namedComponent.getName();\n      console.time(markerName);\n    }\n\n    ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber);\n\n    if (markerName) {\n      console.timeEnd(markerName);\n    }\n\n    if (callbacks) {\n      for (var j = 0; j < callbacks.length; j++) {\n        transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance());\n      }\n    }\n  }\n}\n\nvar flushBatchedUpdates = function () {\n  // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents\n  // array and perform any updates enqueued by mount-ready handlers (i.e.,\n  // componentDidUpdate) but we need to check here too in order to catch\n  // updates enqueued by setState callbacks and asap calls.\n  while (dirtyComponents.length || asapEnqueued) {\n    if (dirtyComponents.length) {\n      var transaction = ReactUpdatesFlushTransaction.getPooled();\n      transaction.perform(runBatchedUpdates, null, transaction);\n      ReactUpdatesFlushTransaction.release(transaction);\n    }\n\n    if (asapEnqueued) {\n      asapEnqueued = false;\n      var queue = asapCallbackQueue;\n      asapCallbackQueue = CallbackQueue.getPooled();\n      queue.notifyAll();\n      CallbackQueue.release(queue);\n    }\n  }\n};\n\n/**\n * Mark a component as needing a rerender, adding an optional callback to a\n * list of functions which will be executed once the rerender occurs.\n */\nfunction enqueueUpdate(component) {\n  ensureInjected();\n\n  // Various parts of our code (such as ReactCompositeComponent's\n  // _renderValidatedComponent) assume that calls to render aren't nested;\n  // verify that that's the case. (This is called by each top-level update\n  // function, like setState, forceUpdate, etc.; creation and\n  // destruction of top-level components is guarded in ReactMount.)\n\n  if (!batchingStrategy.isBatchingUpdates) {\n    batchingStrategy.batchedUpdates(enqueueUpdate, component);\n    return;\n  }\n\n  dirtyComponents.push(component);\n  if (component._updateBatchNumber == null) {\n    component._updateBatchNumber = updateBatchNumber + 1;\n  }\n}\n\n/**\n * Enqueue a callback to be run at the end of the current batching cycle. Throws\n * if no updates are currently being performed.\n */\nfunction asap(callback, context) {\n  !batchingStrategy.isBatchingUpdates ? \"development\" !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;\n  asapCallbackQueue.enqueue(callback, context);\n  asapEnqueued = true;\n}\n\nvar ReactUpdatesInjection = {\n  injectReconcileTransaction: function (ReconcileTransaction) {\n    !ReconcileTransaction ? \"development\" !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;\n    ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;\n  },\n\n  injectBatchingStrategy: function (_batchingStrategy) {\n    !_batchingStrategy ? \"development\" !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;\n    !(typeof _batchingStrategy.batchedUpdates === 'function') ? \"development\" !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;\n    !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? \"development\" !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;\n    batchingStrategy = _batchingStrategy;\n  }\n};\n\nvar ReactUpdates = {\n  /**\n   * React references `ReactReconcileTransaction` using this property in order\n   * to allow dependency injection.\n   *\n   * @internal\n   */\n  ReactReconcileTransaction: null,\n\n  batchedUpdates: batchedUpdates,\n  enqueueUpdate: enqueueUpdate,\n  flushBatchedUpdates: flushBatchedUpdates,\n  injection: ReactUpdatesInjection,\n  asap: asap\n};\n\nmodule.exports = ReactUpdates;\n},{\"100\":100,\"124\":124,\"150\":150,\"158\":158,\"25\":25,\"58\":58,\"6\":6,\"75\":75}],83:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nmodule.exports = '15.5.4';\n},{}],84:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar NS = {\n  xlink: 'http://www.w3.org/1999/xlink',\n  xml: 'http://www.w3.org/XML/1998/namespace'\n};\n\n// We use attributes for everything SVG so let's avoid some duplication and run\n// code instead.\n// The following are all specified in the HTML config already so we exclude here.\n// - class (as className)\n// - color\n// - height\n// - id\n// - lang\n// - max\n// - media\n// - method\n// - min\n// - name\n// - style\n// - target\n// - type\n// - width\nvar ATTRS = {\n  accentHeight: 'accent-height',\n  accumulate: 0,\n  additive: 0,\n  alignmentBaseline: 'alignment-baseline',\n  allowReorder: 'allowReorder',\n  alphabetic: 0,\n  amplitude: 0,\n  arabicForm: 'arabic-form',\n  ascent: 0,\n  attributeName: 'attributeName',\n  attributeType: 'attributeType',\n  autoReverse: 'autoReverse',\n  azimuth: 0,\n  baseFrequency: 'baseFrequency',\n  baseProfile: 'baseProfile',\n  baselineShift: 'baseline-shift',\n  bbox: 0,\n  begin: 0,\n  bias: 0,\n  by: 0,\n  calcMode: 'calcMode',\n  capHeight: 'cap-height',\n  clip: 0,\n  clipPath: 'clip-path',\n  clipRule: 'clip-rule',\n  clipPathUnits: 'clipPathUnits',\n  colorInterpolation: 'color-interpolation',\n  colorInterpolationFilters: 'color-interpolation-filters',\n  colorProfile: 'color-profile',\n  colorRendering: 'color-rendering',\n  contentScriptType: 'contentScriptType',\n  contentStyleType: 'contentStyleType',\n  cursor: 0,\n  cx: 0,\n  cy: 0,\n  d: 0,\n  decelerate: 0,\n  descent: 0,\n  diffuseConstant: 'diffuseConstant',\n  direction: 0,\n  display: 0,\n  divisor: 0,\n  dominantBaseline: 'dominant-baseline',\n  dur: 0,\n  dx: 0,\n  dy: 0,\n  edgeMode: 'edgeMode',\n  elevation: 0,\n  enableBackground: 'enable-background',\n  end: 0,\n  exponent: 0,\n  externalResourcesRequired: 'externalResourcesRequired',\n  fill: 0,\n  fillOpacity: 'fill-opacity',\n  fillRule: 'fill-rule',\n  filter: 0,\n  filterRes: 'filterRes',\n  filterUnits: 'filterUnits',\n  floodColor: 'flood-color',\n  floodOpacity: 'flood-opacity',\n  focusable: 0,\n  fontFamily: 'font-family',\n  fontSize: 'font-size',\n  fontSizeAdjust: 'font-size-adjust',\n  fontStretch: 'font-stretch',\n  fontStyle: 'font-style',\n  fontVariant: 'font-variant',\n  fontWeight: 'font-weight',\n  format: 0,\n  from: 0,\n  fx: 0,\n  fy: 0,\n  g1: 0,\n  g2: 0,\n  glyphName: 'glyph-name',\n  glyphOrientationHorizontal: 'glyph-orientation-horizontal',\n  glyphOrientationVertical: 'glyph-orientation-vertical',\n  glyphRef: 'glyphRef',\n  gradientTransform: 'gradientTransform',\n  gradientUnits: 'gradientUnits',\n  hanging: 0,\n  horizAdvX: 'horiz-adv-x',\n  horizOriginX: 'horiz-origin-x',\n  ideographic: 0,\n  imageRendering: 'image-rendering',\n  'in': 0,\n  in2: 0,\n  intercept: 0,\n  k: 0,\n  k1: 0,\n  k2: 0,\n  k3: 0,\n  k4: 0,\n  kernelMatrix: 'kernelMatrix',\n  kernelUnitLength: 'kernelUnitLength',\n  kerning: 0,\n  keyPoints: 'keyPoints',\n  keySplines: 'keySplines',\n  keyTimes: 'keyTimes',\n  lengthAdjust: 'lengthAdjust',\n  letterSpacing: 'letter-spacing',\n  lightingColor: 'lighting-color',\n  limitingConeAngle: 'limitingConeAngle',\n  local: 0,\n  markerEnd: 'marker-end',\n  markerMid: 'marker-mid',\n  markerStart: 'marker-start',\n  markerHeight: 'markerHeight',\n  markerUnits: 'markerUnits',\n  markerWidth: 'markerWidth',\n  mask: 0,\n  maskContentUnits: 'maskContentUnits',\n  maskUnits: 'maskUnits',\n  mathematical: 0,\n  mode: 0,\n  numOctaves: 'numOctaves',\n  offset: 0,\n  opacity: 0,\n  operator: 0,\n  order: 0,\n  orient: 0,\n  orientation: 0,\n  origin: 0,\n  overflow: 0,\n  overlinePosition: 'overline-position',\n  overlineThickness: 'overline-thickness',\n  paintOrder: 'paint-order',\n  panose1: 'panose-1',\n  pathLength: 'pathLength',\n  patternContentUnits: 'patternContentUnits',\n  patternTransform: 'patternTransform',\n  patternUnits: 'patternUnits',\n  pointerEvents: 'pointer-events',\n  points: 0,\n  pointsAtX: 'pointsAtX',\n  pointsAtY: 'pointsAtY',\n  pointsAtZ: 'pointsAtZ',\n  preserveAlpha: 'preserveAlpha',\n  preserveAspectRatio: 'preserveAspectRatio',\n  primitiveUnits: 'primitiveUnits',\n  r: 0,\n  radius: 0,\n  refX: 'refX',\n  refY: 'refY',\n  renderingIntent: 'rendering-intent',\n  repeatCount: 'repeatCount',\n  repeatDur: 'repeatDur',\n  requiredExtensions: 'requiredExtensions',\n  requiredFeatures: 'requiredFeatures',\n  restart: 0,\n  result: 0,\n  rotate: 0,\n  rx: 0,\n  ry: 0,\n  scale: 0,\n  seed: 0,\n  shapeRendering: 'shape-rendering',\n  slope: 0,\n  spacing: 0,\n  specularConstant: 'specularConstant',\n  specularExponent: 'specularExponent',\n  speed: 0,\n  spreadMethod: 'spreadMethod',\n  startOffset: 'startOffset',\n  stdDeviation: 'stdDeviation',\n  stemh: 0,\n  stemv: 0,\n  stitchTiles: 'stitchTiles',\n  stopColor: 'stop-color',\n  stopOpacity: 'stop-opacity',\n  strikethroughPosition: 'strikethrough-position',\n  strikethroughThickness: 'strikethrough-thickness',\n  string: 0,\n  stroke: 0,\n  strokeDasharray: 'stroke-dasharray',\n  strokeDashoffset: 'stroke-dashoffset',\n  strokeLinecap: 'stroke-linecap',\n  strokeLinejoin: 'stroke-linejoin',\n  strokeMiterlimit: 'stroke-miterlimit',\n  strokeOpacity: 'stroke-opacity',\n  strokeWidth: 'stroke-width',\n  surfaceScale: 'surfaceScale',\n  systemLanguage: 'systemLanguage',\n  tableValues: 'tableValues',\n  targetX: 'targetX',\n  targetY: 'targetY',\n  textAnchor: 'text-anchor',\n  textDecoration: 'text-decoration',\n  textRendering: 'text-rendering',\n  textLength: 'textLength',\n  to: 0,\n  transform: 0,\n  u1: 0,\n  u2: 0,\n  underlinePosition: 'underline-position',\n  underlineThickness: 'underline-thickness',\n  unicode: 0,\n  unicodeBidi: 'unicode-bidi',\n  unicodeRange: 'unicode-range',\n  unitsPerEm: 'units-per-em',\n  vAlphabetic: 'v-alphabetic',\n  vHanging: 'v-hanging',\n  vIdeographic: 'v-ideographic',\n  vMathematical: 'v-mathematical',\n  values: 0,\n  vectorEffect: 'vector-effect',\n  version: 0,\n  vertAdvY: 'vert-adv-y',\n  vertOriginX: 'vert-origin-x',\n  vertOriginY: 'vert-origin-y',\n  viewBox: 'viewBox',\n  viewTarget: 'viewTarget',\n  visibility: 0,\n  widths: 0,\n  wordSpacing: 'word-spacing',\n  writingMode: 'writing-mode',\n  x: 0,\n  xHeight: 'x-height',\n  x1: 0,\n  x2: 0,\n  xChannelSelector: 'xChannelSelector',\n  xlinkActuate: 'xlink:actuate',\n  xlinkArcrole: 'xlink:arcrole',\n  xlinkHref: 'xlink:href',\n  xlinkRole: 'xlink:role',\n  xlinkShow: 'xlink:show',\n  xlinkTitle: 'xlink:title',\n  xlinkType: 'xlink:type',\n  xmlBase: 'xml:base',\n  xmlns: 0,\n  xmlnsXlink: 'xmlns:xlink',\n  xmlLang: 'xml:lang',\n  xmlSpace: 'xml:space',\n  y: 0,\n  y1: 0,\n  y2: 0,\n  yChannelSelector: 'yChannelSelector',\n  z: 0,\n  zoomAndPan: 'zoomAndPan'\n};\n\nvar SVGDOMPropertyConfig = {\n  Properties: {},\n  DOMAttributeNamespaces: {\n    xlinkActuate: NS.xlink,\n    xlinkArcrole: NS.xlink,\n    xlinkHref: NS.xlink,\n    xlinkRole: NS.xlink,\n    xlinkShow: NS.xlink,\n    xlinkTitle: NS.xlink,\n    xlinkType: NS.xlink,\n    xmlBase: NS.xml,\n    xmlLang: NS.xml,\n    xmlSpace: NS.xml\n  },\n  DOMAttributeNames: {}\n};\n\nObject.keys(ATTRS).forEach(function (key) {\n  SVGDOMPropertyConfig.Properties[key] = 0;\n  if (ATTRS[key]) {\n    SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];\n  }\n});\n\nmodule.exports = SVGDOMPropertyConfig;\n},{}],85:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPropagators = _dereq_(20);\nvar ExecutionEnvironment = _dereq_(136);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactInputSelection = _dereq_(62);\nvar SyntheticEvent = _dereq_(91);\n\nvar getActiveElement = _dereq_(145);\nvar isTextInputElement = _dereq_(122);\nvar shallowEqual = _dereq_(156);\n\nvar skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;\n\nvar eventTypes = {\n  select: {\n    phasedRegistrationNames: {\n      bubbled: 'onSelect',\n      captured: 'onSelectCapture'\n    },\n    dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange']\n  }\n};\n\nvar activeElement = null;\nvar activeElementInst = null;\nvar lastSelection = null;\nvar mouseDown = false;\n\n// Track whether a listener exists for this plugin. If none exist, we do\n// not extract events. See #3639.\nvar hasListener = false;\n\n/**\n * Get an object which is a unique representation of the current selection.\n *\n * The return value will not be consistent across nodes or browsers, but\n * two identical selections on the same node will return identical objects.\n *\n * @param {DOMElement} node\n * @return {object}\n */\nfunction getSelection(node) {\n  if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) {\n    return {\n      start: node.selectionStart,\n      end: node.selectionEnd\n    };\n  } else if (window.getSelection) {\n    var selection = window.getSelection();\n    return {\n      anchorNode: selection.anchorNode,\n      anchorOffset: selection.anchorOffset,\n      focusNode: selection.focusNode,\n      focusOffset: selection.focusOffset\n    };\n  } else if (document.selection) {\n    var range = document.selection.createRange();\n    return {\n      parentElement: range.parentElement(),\n      text: range.text,\n      top: range.boundingTop,\n      left: range.boundingLeft\n    };\n  }\n}\n\n/**\n * Poll selection to see whether it's changed.\n *\n * @param {object} nativeEvent\n * @return {?SyntheticEvent}\n */\nfunction constructSelectEvent(nativeEvent, nativeEventTarget) {\n  // Ensure we have the right element, and that the user is not dragging a\n  // selection (this matches native `select` event behavior). In HTML5, select\n  // fires only on input and textarea thus if there's no focused element we\n  // won't dispatch.\n  if (mouseDown || activeElement == null || activeElement !== getActiveElement()) {\n    return null;\n  }\n\n  // Only fire when selection has actually changed.\n  var currentSelection = getSelection(activeElement);\n  if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {\n    lastSelection = currentSelection;\n\n    var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget);\n\n    syntheticEvent.type = 'select';\n    syntheticEvent.target = activeElement;\n\n    EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent);\n\n    return syntheticEvent;\n  }\n\n  return null;\n}\n\n/**\n * This plugin creates an `onSelect` event that normalizes select events\n * across form elements.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - contentEditable\n *\n * This differs from native browser implementations in the following ways:\n * - Fires on contentEditable fields as well as inputs.\n * - Fires for collapsed selection.\n * - Fires after user input.\n */\nvar SelectEventPlugin = {\n\n  eventTypes: eventTypes,\n\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    if (!hasListener) {\n      return null;\n    }\n\n    var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;\n\n    switch (topLevelType) {\n      // Track the input node that has focus.\n      case 'topFocus':\n        if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {\n          activeElement = targetNode;\n          activeElementInst = targetInst;\n          lastSelection = null;\n        }\n        break;\n      case 'topBlur':\n        activeElement = null;\n        activeElementInst = null;\n        lastSelection = null;\n        break;\n\n      // Don't fire the event while the user is dragging. This matches the\n      // semantics of the native select event.\n      case 'topMouseDown':\n        mouseDown = true;\n        break;\n      case 'topContextMenu':\n      case 'topMouseUp':\n        mouseDown = false;\n        return constructSelectEvent(nativeEvent, nativeEventTarget);\n\n      // Chrome and IE fire non-standard event when selection is changed (and\n      // sometimes when it hasn't). IE's event fires out of order with respect\n      // to key and input events on deletion, so we discard it.\n      //\n      // Firefox doesn't support selectionchange, so check selection status\n      // after each key entry. The selection changes after keydown and before\n      // keyup, but we check on keydown as well in the case of holding down a\n      // key, when multiple keydown events are fired but only one keyup is.\n      // This is also our approach for IE handling, for the reason above.\n      case 'topSelectionChange':\n        if (skipSelectionChangeEvent) {\n          break;\n        }\n      // falls through\n      case 'topKeyDown':\n      case 'topKeyUp':\n        return constructSelectEvent(nativeEvent, nativeEventTarget);\n    }\n\n    return null;\n  },\n\n  didPutListener: function (inst, registrationName, listener) {\n    if (registrationName === 'onSelect') {\n      hasListener = true;\n    }\n  }\n};\n\nmodule.exports = SelectEventPlugin;\n},{\"122\":122,\"136\":136,\"145\":145,\"156\":156,\"20\":20,\"34\":34,\"62\":62,\"91\":91}],86:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar EventListener = _dereq_(135);\nvar EventPropagators = _dereq_(20);\nvar ReactDOMComponentTree = _dereq_(34);\nvar SyntheticAnimationEvent = _dereq_(87);\nvar SyntheticClipboardEvent = _dereq_(88);\nvar SyntheticEvent = _dereq_(91);\nvar SyntheticFocusEvent = _dereq_(92);\nvar SyntheticKeyboardEvent = _dereq_(94);\nvar SyntheticMouseEvent = _dereq_(95);\nvar SyntheticDragEvent = _dereq_(90);\nvar SyntheticTouchEvent = _dereq_(96);\nvar SyntheticTransitionEvent = _dereq_(97);\nvar SyntheticUIEvent = _dereq_(98);\nvar SyntheticWheelEvent = _dereq_(99);\n\nvar emptyFunction = _dereq_(142);\nvar getEventCharCode = _dereq_(111);\nvar invariant = _dereq_(150);\n\n/**\n * Turns\n * ['abort', ...]\n * into\n * eventTypes = {\n *   'abort': {\n *     phasedRegistrationNames: {\n *       bubbled: 'onAbort',\n *       captured: 'onAbortCapture',\n *     },\n *     dependencies: ['topAbort'],\n *   },\n *   ...\n * };\n * topLevelEventsToDispatchConfig = {\n *   'topAbort': { sameConfig }\n * };\n */\nvar eventTypes = {};\nvar topLevelEventsToDispatchConfig = {};\n['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'canPlay', 'canPlayThrough', 'click', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) {\n  var capitalizedEvent = event[0].toUpperCase() + event.slice(1);\n  var onEvent = 'on' + capitalizedEvent;\n  var topEvent = 'top' + capitalizedEvent;\n\n  var type = {\n    phasedRegistrationNames: {\n      bubbled: onEvent,\n      captured: onEvent + 'Capture'\n    },\n    dependencies: [topEvent]\n  };\n  eventTypes[event] = type;\n  topLevelEventsToDispatchConfig[topEvent] = type;\n});\n\nvar onClickListeners = {};\n\nfunction getDictionaryKey(inst) {\n  // Prevents V8 performance issue:\n  // https://github.com/facebook/react/pull/7232\n  return '.' + inst._rootNodeID;\n}\n\nfunction isInteractive(tag) {\n  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nvar SimpleEventPlugin = {\n\n  eventTypes: eventTypes,\n\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n    var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];\n    if (!dispatchConfig) {\n      return null;\n    }\n    var EventConstructor;\n    switch (topLevelType) {\n      case 'topAbort':\n      case 'topCanPlay':\n      case 'topCanPlayThrough':\n      case 'topDurationChange':\n      case 'topEmptied':\n      case 'topEncrypted':\n      case 'topEnded':\n      case 'topError':\n      case 'topInput':\n      case 'topInvalid':\n      case 'topLoad':\n      case 'topLoadedData':\n      case 'topLoadedMetadata':\n      case 'topLoadStart':\n      case 'topPause':\n      case 'topPlay':\n      case 'topPlaying':\n      case 'topProgress':\n      case 'topRateChange':\n      case 'topReset':\n      case 'topSeeked':\n      case 'topSeeking':\n      case 'topStalled':\n      case 'topSubmit':\n      case 'topSuspend':\n      case 'topTimeUpdate':\n      case 'topVolumeChange':\n      case 'topWaiting':\n        // HTML Events\n        // @see http://www.w3.org/TR/html5/index.html#events-0\n        EventConstructor = SyntheticEvent;\n        break;\n      case 'topKeyPress':\n        // Firefox creates a keypress event for function keys too. This removes\n        // the unwanted keypress events. Enter is however both printable and\n        // non-printable. One would expect Tab to be as well (but it isn't).\n        if (getEventCharCode(nativeEvent) === 0) {\n          return null;\n        }\n      /* falls through */\n      case 'topKeyDown':\n      case 'topKeyUp':\n        EventConstructor = SyntheticKeyboardEvent;\n        break;\n      case 'topBlur':\n      case 'topFocus':\n        EventConstructor = SyntheticFocusEvent;\n        break;\n      case 'topClick':\n        // Firefox creates a click event on right mouse clicks. This removes the\n        // unwanted click events.\n        if (nativeEvent.button === 2) {\n          return null;\n        }\n      /* falls through */\n      case 'topDoubleClick':\n      case 'topMouseDown':\n      case 'topMouseMove':\n      case 'topMouseUp':\n      // TODO: Disabled elements should not respond to mouse events\n      /* falls through */\n      case 'topMouseOut':\n      case 'topMouseOver':\n      case 'topContextMenu':\n        EventConstructor = SyntheticMouseEvent;\n        break;\n      case 'topDrag':\n      case 'topDragEnd':\n      case 'topDragEnter':\n      case 'topDragExit':\n      case 'topDragLeave':\n      case 'topDragOver':\n      case 'topDragStart':\n      case 'topDrop':\n        EventConstructor = SyntheticDragEvent;\n        break;\n      case 'topTouchCancel':\n      case 'topTouchEnd':\n      case 'topTouchMove':\n      case 'topTouchStart':\n        EventConstructor = SyntheticTouchEvent;\n        break;\n      case 'topAnimationEnd':\n      case 'topAnimationIteration':\n      case 'topAnimationStart':\n        EventConstructor = SyntheticAnimationEvent;\n        break;\n      case 'topTransitionEnd':\n        EventConstructor = SyntheticTransitionEvent;\n        break;\n      case 'topScroll':\n        EventConstructor = SyntheticUIEvent;\n        break;\n      case 'topWheel':\n        EventConstructor = SyntheticWheelEvent;\n        break;\n      case 'topCopy':\n      case 'topCut':\n      case 'topPaste':\n        EventConstructor = SyntheticClipboardEvent;\n        break;\n    }\n    !EventConstructor ? \"development\" !== 'production' ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : _prodInvariant('86', topLevelType) : void 0;\n    var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);\n    EventPropagators.accumulateTwoPhaseDispatches(event);\n    return event;\n  },\n\n  didPutListener: function (inst, registrationName, listener) {\n    // Mobile Safari does not fire properly bubble click events on\n    // non-interactive elements, which means delegated click listeners do not\n    // fire. The workaround for this bug involves attaching an empty click\n    // listener on the target node.\n    // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n    if (registrationName === 'onClick' && !isInteractive(inst._tag)) {\n      var key = getDictionaryKey(inst);\n      var node = ReactDOMComponentTree.getNodeFromInstance(inst);\n      if (!onClickListeners[key]) {\n        onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction);\n      }\n    }\n  },\n\n  willDeleteListener: function (inst, registrationName) {\n    if (registrationName === 'onClick' && !isInteractive(inst._tag)) {\n      var key = getDictionaryKey(inst);\n      onClickListeners[key].remove();\n      delete onClickListeners[key];\n    }\n  }\n\n};\n\nmodule.exports = SimpleEventPlugin;\n},{\"111\":111,\"124\":124,\"135\":135,\"142\":142,\"150\":150,\"20\":20,\"34\":34,\"87\":87,\"88\":88,\"90\":90,\"91\":91,\"92\":92,\"94\":94,\"95\":95,\"96\":96,\"97\":97,\"98\":98,\"99\":99}],87:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = _dereq_(91);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface\n * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent\n */\nvar AnimationEventInterface = {\n  animationName: null,\n  elapsedTime: null,\n  pseudoElement: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticEvent}\n */\nfunction SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);\n\nmodule.exports = SyntheticAnimationEvent;\n},{\"91\":91}],88:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = _dereq_(91);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/clipboard-apis/\n */\nvar ClipboardEventInterface = {\n  clipboardData: function (event) {\n    return 'clipboardData' in event ? event.clipboardData : window.clipboardData;\n  }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);\n\nmodule.exports = SyntheticClipboardEvent;\n},{\"91\":91}],89:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = _dereq_(91);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents\n */\nvar CompositionEventInterface = {\n  data: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);\n\nmodule.exports = SyntheticCompositionEvent;\n},{\"91\":91}],90:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticMouseEvent = _dereq_(95);\n\n/**\n * @interface DragEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar DragEventInterface = {\n  dataTransfer: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);\n\nmodule.exports = SyntheticDragEvent;\n},{\"95\":95}],91:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar PooledClass = _dereq_(25);\n\nvar emptyFunction = _dereq_(142);\nvar warning = _dereq_(157);\n\nvar didWarnForAddedNewProperty = false;\nvar isProxySupported = typeof Proxy === 'function';\n\nvar shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar EventInterface = {\n  type: null,\n  target: null,\n  // currentTarget is set when dispatching; no use in copying it here\n  currentTarget: emptyFunction.thatReturnsNull,\n  eventPhase: null,\n  bubbles: null,\n  cancelable: null,\n  timeStamp: function (event) {\n    return event.timeStamp || Date.now();\n  },\n  defaultPrevented: null,\n  isTrusted: null\n};\n\n/**\n * Synthetic events are dispatched by event plugins, typically in response to a\n * top-level event delegation handler.\n *\n * These systems should generally use pooling to reduce the frequency of garbage\n * collection. The system should check `isPersistent` to determine whether the\n * event should be released into the pool after being dispatched. Users that\n * need a persisted event should invoke `persist`.\n *\n * Synthetic events (and subclasses) implement the DOM Level 3 Events API by\n * normalizing browser quirks. Subclasses do not necessarily have to implement a\n * DOM interface; custom application-specific events can also subclass this.\n *\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {*} targetInst Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @param {DOMEventTarget} nativeEventTarget Target node.\n */\nfunction SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {\n  if (\"development\" !== 'production') {\n    // these have a getter/setter for warnings\n    delete this.nativeEvent;\n    delete this.preventDefault;\n    delete this.stopPropagation;\n  }\n\n  this.dispatchConfig = dispatchConfig;\n  this._targetInst = targetInst;\n  this.nativeEvent = nativeEvent;\n\n  var Interface = this.constructor.Interface;\n  for (var propName in Interface) {\n    if (!Interface.hasOwnProperty(propName)) {\n      continue;\n    }\n    if (\"development\" !== 'production') {\n      delete this[propName]; // this has a getter/setter for warnings\n    }\n    var normalize = Interface[propName];\n    if (normalize) {\n      this[propName] = normalize(nativeEvent);\n    } else {\n      if (propName === 'target') {\n        this.target = nativeEventTarget;\n      } else {\n        this[propName] = nativeEvent[propName];\n      }\n    }\n  }\n\n  var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;\n  if (defaultPrevented) {\n    this.isDefaultPrevented = emptyFunction.thatReturnsTrue;\n  } else {\n    this.isDefaultPrevented = emptyFunction.thatReturnsFalse;\n  }\n  this.isPropagationStopped = emptyFunction.thatReturnsFalse;\n  return this;\n}\n\n_assign(SyntheticEvent.prototype, {\n\n  preventDefault: function () {\n    this.defaultPrevented = true;\n    var event = this.nativeEvent;\n    if (!event) {\n      return;\n    }\n\n    if (event.preventDefault) {\n      event.preventDefault();\n    } else if (typeof event.returnValue !== 'unknown') {\n      // eslint-disable-line valid-typeof\n      event.returnValue = false;\n    }\n    this.isDefaultPrevented = emptyFunction.thatReturnsTrue;\n  },\n\n  stopPropagation: function () {\n    var event = this.nativeEvent;\n    if (!event) {\n      return;\n    }\n\n    if (event.stopPropagation) {\n      event.stopPropagation();\n    } else if (typeof event.cancelBubble !== 'unknown') {\n      // eslint-disable-line valid-typeof\n      // The ChangeEventPlugin registers a \"propertychange\" event for\n      // IE. This event does not support bubbling or cancelling, and\n      // any references to cancelBubble throw \"Member not found\".  A\n      // typeof check of \"unknown\" circumvents this issue (and is also\n      // IE specific).\n      event.cancelBubble = true;\n    }\n\n    this.isPropagationStopped = emptyFunction.thatReturnsTrue;\n  },\n\n  /**\n   * We release all dispatched `SyntheticEvent`s after each event loop, adding\n   * them back into the pool. This allows a way to hold onto a reference that\n   * won't be added back into the pool.\n   */\n  persist: function () {\n    this.isPersistent = emptyFunction.thatReturnsTrue;\n  },\n\n  /**\n   * Checks if this event should be released back into the pool.\n   *\n   * @return {boolean} True if this should not be released, false otherwise.\n   */\n  isPersistent: emptyFunction.thatReturnsFalse,\n\n  /**\n   * `PooledClass` looks for `destructor` on each instance it releases.\n   */\n  destructor: function () {\n    var Interface = this.constructor.Interface;\n    for (var propName in Interface) {\n      if (\"development\" !== 'production') {\n        Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));\n      } else {\n        this[propName] = null;\n      }\n    }\n    for (var i = 0; i < shouldBeReleasedProperties.length; i++) {\n      this[shouldBeReleasedProperties[i]] = null;\n    }\n    if (\"development\" !== 'production') {\n      Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));\n      Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));\n      Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));\n    }\n  }\n\n});\n\nSyntheticEvent.Interface = EventInterface;\n\nif (\"development\" !== 'production') {\n  if (isProxySupported) {\n    /*eslint-disable no-func-assign */\n    SyntheticEvent = new Proxy(SyntheticEvent, {\n      construct: function (target, args) {\n        return this.apply(target, Object.create(target.prototype), args);\n      },\n      apply: function (constructor, that, args) {\n        return new Proxy(constructor.apply(that, args), {\n          set: function (target, prop, value) {\n            if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {\n              \"development\" !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\\'re ' + 'seeing this, you\\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;\n              didWarnForAddedNewProperty = true;\n            }\n            target[prop] = value;\n            return true;\n          }\n        });\n      }\n    });\n    /*eslint-enable no-func-assign */\n  }\n}\n/**\n * Helper to reduce boilerplate when creating subclasses.\n *\n * @param {function} Class\n * @param {?object} Interface\n */\nSyntheticEvent.augmentClass = function (Class, Interface) {\n  var Super = this;\n\n  var E = function () {};\n  E.prototype = Super.prototype;\n  var prototype = new E();\n\n  _assign(prototype, Class.prototype);\n  Class.prototype = prototype;\n  Class.prototype.constructor = Class;\n\n  Class.Interface = _assign({}, Super.Interface, Interface);\n  Class.augmentClass = Super.augmentClass;\n\n  PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);\n};\n\nPooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);\n\nmodule.exports = SyntheticEvent;\n\n/**\n  * Helper to nullify syntheticEvent instance properties when destructing\n  *\n  * @param {object} SyntheticEvent\n  * @param {String} propName\n  * @return {object} defineProperty object\n  */\nfunction getPooledWarningPropertyDefinition(propName, getVal) {\n  var isFunction = typeof getVal === 'function';\n  return {\n    configurable: true,\n    set: set,\n    get: get\n  };\n\n  function set(val) {\n    var action = isFunction ? 'setting the method' : 'setting the property';\n    warn(action, 'This is effectively a no-op');\n    return val;\n  }\n\n  function get() {\n    var action = isFunction ? 'accessing the method' : 'accessing the property';\n    var result = isFunction ? 'This is a no-op function' : 'This is set to null';\n    warn(action, result);\n    return getVal;\n  }\n\n  function warn(action, result) {\n    var warningCondition = false;\n    \"development\" !== 'production' ? warning(warningCondition, 'This synthetic event is reused for performance reasons. If you\\'re seeing this, ' + 'you\\'re %s `%s` on a released/nullified synthetic event. %s. ' + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;\n  }\n}\n},{\"142\":142,\"157\":157,\"158\":158,\"25\":25}],92:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticUIEvent = _dereq_(98);\n\n/**\n * @interface FocusEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar FocusEventInterface = {\n  relatedTarget: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);\n\nmodule.exports = SyntheticFocusEvent;\n},{\"98\":98}],93:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = _dereq_(91);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105\n *      /#events-inputevents\n */\nvar InputEventInterface = {\n  data: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);\n\nmodule.exports = SyntheticInputEvent;\n},{\"91\":91}],94:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticUIEvent = _dereq_(98);\n\nvar getEventCharCode = _dereq_(111);\nvar getEventKey = _dereq_(112);\nvar getEventModifierState = _dereq_(113);\n\n/**\n * @interface KeyboardEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar KeyboardEventInterface = {\n  key: getEventKey,\n  location: null,\n  ctrlKey: null,\n  shiftKey: null,\n  altKey: null,\n  metaKey: null,\n  repeat: null,\n  locale: null,\n  getModifierState: getEventModifierState,\n  // Legacy Interface\n  charCode: function (event) {\n    // `charCode` is the result of a KeyPress event and represents the value of\n    // the actual printable character.\n\n    // KeyPress is deprecated, but its replacement is not yet final and not\n    // implemented in any major browser. Only KeyPress has charCode.\n    if (event.type === 'keypress') {\n      return getEventCharCode(event);\n    }\n    return 0;\n  },\n  keyCode: function (event) {\n    // `keyCode` is the result of a KeyDown/Up event and represents the value of\n    // physical keyboard key.\n\n    // The actual meaning of the value depends on the users' keyboard layout\n    // which cannot be detected. Assuming that it is a US keyboard layout\n    // provides a surprisingly accurate mapping for US and European users.\n    // Due to this, it is left to the user to implement at this time.\n    if (event.type === 'keydown' || event.type === 'keyup') {\n      return event.keyCode;\n    }\n    return 0;\n  },\n  which: function (event) {\n    // `which` is an alias for either `keyCode` or `charCode` depending on the\n    // type of the event.\n    if (event.type === 'keypress') {\n      return getEventCharCode(event);\n    }\n    if (event.type === 'keydown' || event.type === 'keyup') {\n      return event.keyCode;\n    }\n    return 0;\n  }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);\n\nmodule.exports = SyntheticKeyboardEvent;\n},{\"111\":111,\"112\":112,\"113\":113,\"98\":98}],95:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticUIEvent = _dereq_(98);\nvar ViewportMetrics = _dereq_(101);\n\nvar getEventModifierState = _dereq_(113);\n\n/**\n * @interface MouseEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar MouseEventInterface = {\n  screenX: null,\n  screenY: null,\n  clientX: null,\n  clientY: null,\n  ctrlKey: null,\n  shiftKey: null,\n  altKey: null,\n  metaKey: null,\n  getModifierState: getEventModifierState,\n  button: function (event) {\n    // Webkit, Firefox, IE9+\n    // which:  1 2 3\n    // button: 0 1 2 (standard)\n    var button = event.button;\n    if ('which' in event) {\n      return button;\n    }\n    // IE<9\n    // which:  undefined\n    // button: 0 0 0\n    // button: 1 4 2 (onmouseup)\n    return button === 2 ? 2 : button === 4 ? 1 : 0;\n  },\n  buttons: null,\n  relatedTarget: function (event) {\n    return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);\n  },\n  // \"Proprietary\" Interface.\n  pageX: function (event) {\n    return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft;\n  },\n  pageY: function (event) {\n    return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop;\n  }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);\n\nmodule.exports = SyntheticMouseEvent;\n},{\"101\":101,\"113\":113,\"98\":98}],96:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticUIEvent = _dereq_(98);\n\nvar getEventModifierState = _dereq_(113);\n\n/**\n * @interface TouchEvent\n * @see http://www.w3.org/TR/touch-events/\n */\nvar TouchEventInterface = {\n  touches: null,\n  targetTouches: null,\n  changedTouches: null,\n  altKey: null,\n  metaKey: null,\n  ctrlKey: null,\n  shiftKey: null,\n  getModifierState: getEventModifierState\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);\n\nmodule.exports = SyntheticTouchEvent;\n},{\"113\":113,\"98\":98}],97:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = _dereq_(91);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent\n */\nvar TransitionEventInterface = {\n  propertyName: null,\n  elapsedTime: null,\n  pseudoElement: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticEvent}\n */\nfunction SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);\n\nmodule.exports = SyntheticTransitionEvent;\n},{\"91\":91}],98:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = _dereq_(91);\n\nvar getEventTarget = _dereq_(114);\n\n/**\n * @interface UIEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar UIEventInterface = {\n  view: function (event) {\n    if (event.view) {\n      return event.view;\n    }\n\n    var target = getEventTarget(event);\n    if (target.window === target) {\n      // target is a window object\n      return target;\n    }\n\n    var doc = target.ownerDocument;\n    // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n    if (doc) {\n      return doc.defaultView || doc.parentWindow;\n    } else {\n      return window;\n    }\n  },\n  detail: function (event) {\n    return event.detail || 0;\n  }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticEvent}\n */\nfunction SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);\n\nmodule.exports = SyntheticUIEvent;\n},{\"114\":114,\"91\":91}],99:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticMouseEvent = _dereq_(95);\n\n/**\n * @interface WheelEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar WheelEventInterface = {\n  deltaX: function (event) {\n    return 'deltaX' in event ? event.deltaX :\n    // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).\n    'wheelDeltaX' in event ? -event.wheelDeltaX : 0;\n  },\n  deltaY: function (event) {\n    return 'deltaY' in event ? event.deltaY :\n    // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).\n    'wheelDeltaY' in event ? -event.wheelDeltaY :\n    // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).\n    'wheelDelta' in event ? -event.wheelDelta : 0;\n  },\n  deltaZ: null,\n\n  // Browsers without \"deltaMode\" is reporting in raw wheel delta where one\n  // notch on the scroll is always +/- 120, roughly equivalent to pixels.\n  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or\n  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.\n  deltaMode: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticMouseEvent}\n */\nfunction SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);\n\nmodule.exports = SyntheticWheelEvent;\n},{\"95\":95}],100:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\nvar OBSERVED_ERROR = {};\n\n/**\n * `Transaction` creates a black box that is able to wrap any method such that\n * certain invariants are maintained before and after the method is invoked\n * (Even if an exception is thrown while invoking the wrapped method). Whoever\n * instantiates a transaction can provide enforcers of the invariants at\n * creation time. The `Transaction` class itself will supply one additional\n * automatic invariant for you - the invariant that any transaction instance\n * should not be run while it is already being run. You would typically create a\n * single instance of a `Transaction` for reuse multiple times, that potentially\n * is used to wrap several different methods. Wrappers are extremely simple -\n * they only require implementing two methods.\n *\n * <pre>\n *                       wrappers (injected at creation time)\n *                                      +        +\n *                                      |        |\n *                    +-----------------|--------|--------------+\n *                    |                 v        |              |\n *                    |      +---------------+   |              |\n *                    |   +--|    wrapper1   |---|----+         |\n *                    |   |  +---------------+   v    |         |\n *                    |   |          +-------------+  |         |\n *                    |   |     +----|   wrapper2  |--------+   |\n *                    |   |     |    +-------------+  |     |   |\n *                    |   |     |                     |     |   |\n *                    |   v     v                     v     v   | wrapper\n *                    | +---+ +---+   +---------+   +---+ +---+ | invariants\n * perform(anyMethod) | |   | |   |   |         |   |   | |   | | maintained\n * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|-------->\n *                    | |   | |   |   |         |   |   | |   | |\n *                    | |   | |   |   |         |   |   | |   | |\n *                    | |   | |   |   |         |   |   | |   | |\n *                    | +---+ +---+   +---------+   +---+ +---+ |\n *                    |  initialize                    close    |\n *                    +-----------------------------------------+\n * </pre>\n *\n * Use cases:\n * - Preserving the input selection ranges before/after reconciliation.\n *   Restoring selection even in the event of an unexpected error.\n * - Deactivating events while rearranging the DOM, preventing blurs/focuses,\n *   while guaranteeing that afterwards, the event system is reactivated.\n * - Flushing a queue of collected DOM mutations to the main UI thread after a\n *   reconciliation takes place in a worker thread.\n * - Invoking any collected `componentDidUpdate` callbacks after rendering new\n *   content.\n * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue\n *   to preserve the `scrollTop` (an automatic scroll aware DOM).\n * - (Future use case): Layout calculations before and after DOM updates.\n *\n * Transactional plugin API:\n * - A module that has an `initialize` method that returns any precomputation.\n * - and a `close` method that accepts the precomputation. `close` is invoked\n *   when the wrapped process is completed, or has failed.\n *\n * @param {Array<TransactionalWrapper>} transactionWrapper Wrapper modules\n * that implement `initialize` and `close`.\n * @return {Transaction} Single transaction for reuse in thread.\n *\n * @class Transaction\n */\nvar TransactionImpl = {\n  /**\n   * Sets up this instance so that it is prepared for collecting metrics. Does\n   * so such that this setup method may be used on an instance that is already\n   * initialized, in a way that does not consume additional memory upon reuse.\n   * That can be useful if you decide to make your subclass of this mixin a\n   * \"PooledClass\".\n   */\n  reinitializeTransaction: function () {\n    this.transactionWrappers = this.getTransactionWrappers();\n    if (this.wrapperInitData) {\n      this.wrapperInitData.length = 0;\n    } else {\n      this.wrapperInitData = [];\n    }\n    this._isInTransaction = false;\n  },\n\n  _isInTransaction: false,\n\n  /**\n   * @abstract\n   * @return {Array<TransactionWrapper>} Array of transaction wrappers.\n   */\n  getTransactionWrappers: null,\n\n  isInTransaction: function () {\n    return !!this._isInTransaction;\n  },\n\n  /**\n   * Executes the function within a safety window. Use this for the top level\n   * methods that result in large amounts of computation/mutations that would\n   * need to be safety checked. The optional arguments helps prevent the need\n   * to bind in many cases.\n   *\n   * @param {function} method Member of scope to call.\n   * @param {Object} scope Scope to invoke from.\n   * @param {Object?=} a Argument to pass to the method.\n   * @param {Object?=} b Argument to pass to the method.\n   * @param {Object?=} c Argument to pass to the method.\n   * @param {Object?=} d Argument to pass to the method.\n   * @param {Object?=} e Argument to pass to the method.\n   * @param {Object?=} f Argument to pass to the method.\n   *\n   * @return {*} Return value from `method`.\n   */\n  perform: function (method, scope, a, b, c, d, e, f) {\n    !!this.isInTransaction() ? \"development\" !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;\n    var errorThrown;\n    var ret;\n    try {\n      this._isInTransaction = true;\n      // Catching errors makes debugging more difficult, so we start with\n      // errorThrown set to true before setting it to false after calling\n      // close -- if it's still set to true in the finally block, it means\n      // one of these calls threw.\n      errorThrown = true;\n      this.initializeAll(0);\n      ret = method.call(scope, a, b, c, d, e, f);\n      errorThrown = false;\n    } finally {\n      try {\n        if (errorThrown) {\n          // If `method` throws, prefer to show that stack trace over any thrown\n          // by invoking `closeAll`.\n          try {\n            this.closeAll(0);\n          } catch (err) {}\n        } else {\n          // Since `method` didn't throw, we don't want to silence the exception\n          // here.\n          this.closeAll(0);\n        }\n      } finally {\n        this._isInTransaction = false;\n      }\n    }\n    return ret;\n  },\n\n  initializeAll: function (startIndex) {\n    var transactionWrappers = this.transactionWrappers;\n    for (var i = startIndex; i < transactionWrappers.length; i++) {\n      var wrapper = transactionWrappers[i];\n      try {\n        // Catching errors makes debugging more difficult, so we start with the\n        // OBSERVED_ERROR state before overwriting it with the real return value\n        // of initialize -- if it's still set to OBSERVED_ERROR in the finally\n        // block, it means wrapper.initialize threw.\n        this.wrapperInitData[i] = OBSERVED_ERROR;\n        this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null;\n      } finally {\n        if (this.wrapperInitData[i] === OBSERVED_ERROR) {\n          // The initializer for wrapper i threw an error; initialize the\n          // remaining wrappers but silence any exceptions from them to ensure\n          // that the first error is the one to bubble up.\n          try {\n            this.initializeAll(i + 1);\n          } catch (err) {}\n        }\n      }\n    }\n  },\n\n  /**\n   * Invokes each of `this.transactionWrappers.close[i]` functions, passing into\n   * them the respective return values of `this.transactionWrappers.init[i]`\n   * (`close`rs that correspond to initializers that failed will not be\n   * invoked).\n   */\n  closeAll: function (startIndex) {\n    !this.isInTransaction() ? \"development\" !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;\n    var transactionWrappers = this.transactionWrappers;\n    for (var i = startIndex; i < transactionWrappers.length; i++) {\n      var wrapper = transactionWrappers[i];\n      var initData = this.wrapperInitData[i];\n      var errorThrown;\n      try {\n        // Catching errors makes debugging more difficult, so we start with\n        // errorThrown set to true before setting it to false after calling\n        // close -- if it's still set to true in the finally block, it means\n        // wrapper.close threw.\n        errorThrown = true;\n        if (initData !== OBSERVED_ERROR && wrapper.close) {\n          wrapper.close.call(this, initData);\n        }\n        errorThrown = false;\n      } finally {\n        if (errorThrown) {\n          // The closer for wrapper i threw an error; close the remaining\n          // wrappers but silence any exceptions from them to ensure that the\n          // first error is the one to bubble up.\n          try {\n            this.closeAll(i + 1);\n          } catch (e) {}\n        }\n      }\n    }\n    this.wrapperInitData.length = 0;\n  }\n};\n\nmodule.exports = TransactionImpl;\n},{\"124\":124,\"150\":150}],101:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ViewportMetrics = {\n\n  currentScrollLeft: 0,\n\n  currentScrollTop: 0,\n\n  refreshScrollValues: function (scrollPosition) {\n    ViewportMetrics.currentScrollLeft = scrollPosition.x;\n    ViewportMetrics.currentScrollTop = scrollPosition.y;\n  }\n\n};\n\nmodule.exports = ViewportMetrics;\n},{}],102:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar invariant = _dereq_(150);\n\n/**\n * Accumulates items that must not be null or undefined into the first one. This\n * is used to conserve memory by avoiding array allocations, and thus sacrifices\n * API cleanness. Since `current` can be null before being passed in and not\n * null after this function, make sure to assign it back to `current`:\n *\n * `a = accumulateInto(a, b);`\n *\n * This API should be sparingly used. Try `accumulate` for something cleaner.\n *\n * @return {*|array<*>} An accumulation of items.\n */\n\nfunction accumulateInto(current, next) {\n  !(next != null) ? \"development\" !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;\n\n  if (current == null) {\n    return next;\n  }\n\n  // Both are not empty. Warning: Never call x.concat(y) when you are not\n  // certain that x is an Array (x could be a string with concat method).\n  if (Array.isArray(current)) {\n    if (Array.isArray(next)) {\n      current.push.apply(current, next);\n      return current;\n    }\n    current.push(next);\n    return current;\n  }\n\n  if (Array.isArray(next)) {\n    // A bit too dangerous to mutate `next`.\n    return [current].concat(next);\n  }\n\n  return [current, next];\n}\n\nmodule.exports = accumulateInto;\n},{\"124\":124,\"150\":150}],103:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar MOD = 65521;\n\n// adler32 is not cryptographically strong, and is only used to sanity check that\n// markup generated on the server matches the markup generated on the client.\n// This implementation (a modified version of the SheetJS version) has been optimized\n// for our use case, at the expense of conforming to the adler32 specification\n// for non-ascii inputs.\nfunction adler32(data) {\n  var a = 1;\n  var b = 0;\n  var i = 0;\n  var l = data.length;\n  var m = l & ~0x3;\n  while (i < m) {\n    var n = Math.min(i + 4096, m);\n    for (; i < n; i += 4) {\n      b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3));\n    }\n    a %= MOD;\n    b %= MOD;\n  }\n  for (; i < l; i++) {\n    b += a += data.charCodeAt(i);\n  }\n  a %= MOD;\n  b %= MOD;\n  return a | b << 16;\n}\n\nmodule.exports = adler32;\n},{}],104:[function(_dereq_,module,exports){\n(function (process){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactPropTypeLocationNames = _dereq_(72);\nvar ReactPropTypesSecret = _dereq_(73);\n\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nvar ReactComponentTreeHook;\n\nif (typeof process !== 'undefined' && process.env && \"development\" === 'test') {\n  // Temporary hack.\n  // Inline requires don't work well with Jest:\n  // https://github.com/facebook/react/issues/7240\n  // Remove the inline requires when we don't need them anymore:\n  // https://github.com/facebook/react/pull/7178\n  ReactComponentTreeHook = _dereq_(131);\n}\n\nvar loggedTypeFailures = {};\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?object} element The React element that is being type-checked\n * @param {?number} debugID The React component instance that is being type-checked\n * @private\n */\nfunction checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {\n  for (var typeSpecName in typeSpecs) {\n    if (typeSpecs.hasOwnProperty(typeSpecName)) {\n      var error;\n      // Prop type validation may throw. In case they do, we don't want to\n      // fail the render phase where it didn't fail before. So we log it.\n      // After these have been cleaned up, we'll let them throw.\n      try {\n        // This is intentionally an invariant that gets caught. It's the same\n        // behavior as without this statement except with a better message.\n        !(typeof typeSpecs[typeSpecName] === 'function') ? \"development\" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;\n        error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n      } catch (ex) {\n        error = ex;\n      }\n      \"development\" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;\n      if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n        // Only monitor this failure once because there tends to be a lot of the\n        // same error.\n        loggedTypeFailures[error.message] = true;\n\n        var componentStackInfo = '';\n\n        if (\"development\" !== 'production') {\n          if (!ReactComponentTreeHook) {\n            ReactComponentTreeHook = _dereq_(131);\n          }\n          if (debugID !== null) {\n            componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);\n          } else if (element !== null) {\n            componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);\n          }\n        }\n\n        \"development\" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;\n      }\n    }\n  }\n}\n\nmodule.exports = checkReactTypeSpec;\n}).call(this,undefined)\n},{\"124\":124,\"131\":131,\"150\":150,\"157\":157,\"72\":72,\"73\":73}],105:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals MSApp */\n\n'use strict';\n\n/**\n * Create a function which has 'unsafe' privileges (required by windows8 apps)\n */\n\nvar createMicrosoftUnsafeLocalFunction = function (func) {\n  if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {\n    return function (arg0, arg1, arg2, arg3) {\n      MSApp.execUnsafeLocalFunction(function () {\n        return func(arg0, arg1, arg2, arg3);\n      });\n    };\n  } else {\n    return func;\n  }\n};\n\nmodule.exports = createMicrosoftUnsafeLocalFunction;\n},{}],106:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar CSSProperty = _dereq_(4);\nvar warning = _dereq_(157);\n\nvar isUnitlessNumber = CSSProperty.isUnitlessNumber;\nvar styleWarnings = {};\n\n/**\n * Convert a value into the proper css writable value. The style name `name`\n * should be logical (no hyphens), as specified\n * in `CSSProperty.isUnitlessNumber`.\n *\n * @param {string} name CSS property name such as `topMargin`.\n * @param {*} value CSS property value such as `10px`.\n * @param {ReactDOMComponent} component\n * @return {string} Normalized style value with dimensions applied.\n */\nfunction dangerousStyleValue(name, value, component) {\n  // Note that we've removed escapeTextForBrowser() calls here since the\n  // whole string will be escaped when the attribute is injected into\n  // the markup. If you provide unsafe user data here they can inject\n  // arbitrary CSS which may be problematic (I couldn't repro this):\n  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n  // This is not an XSS hole but instead a potential CSS injection issue\n  // which has lead to a greater discussion about how we're going to\n  // trust URLs moving forward. See #2115901\n\n  var isEmpty = value == null || typeof value === 'boolean' || value === '';\n  if (isEmpty) {\n    return '';\n  }\n\n  var isNonNumeric = isNaN(value);\n  if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {\n    return '' + value; // cast to string\n  }\n\n  if (typeof value === 'string') {\n    if (\"development\" !== 'production') {\n      // Allow '0' to pass through without warning. 0 is already special and\n      // doesn't require units, so we don't need to warn about it.\n      if (component && value !== '0') {\n        var owner = component._currentElement._owner;\n        var ownerName = owner ? owner.getName() : null;\n        if (ownerName && !styleWarnings[ownerName]) {\n          styleWarnings[ownerName] = {};\n        }\n        var warned = false;\n        if (ownerName) {\n          var warnings = styleWarnings[ownerName];\n          warned = warnings[name];\n          if (!warned) {\n            warnings[name] = true;\n          }\n        }\n        if (!warned) {\n          \"development\" !== 'production' ? warning(false, 'a `%s` tag (owner: `%s`) was passed a numeric string value ' + 'for CSS property `%s` (value: `%s`) which will be treated ' + 'as a unitless number in a future version of React.', component._currentElement.type, ownerName || 'unknown', name, value) : void 0;\n        }\n      }\n    }\n    value = value.trim();\n  }\n  return value + 'px';\n}\n\nmodule.exports = dangerousStyleValue;\n},{\"157\":157,\"4\":4}],107:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * Based on the escape-html library, which is used under the MIT License below:\n *\n * Copyright (c) 2012-2013 TJ Holowaychuk\n * Copyright (c) 2015 Andreas Lubbe\n * Copyright (c) 2015 Tiancheng \"Timothy\" Gu\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n *\n */\n\n'use strict';\n\n// code copied and modified from escape-html\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param  {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index = 0;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34:\n        // \"\n        escape = '&quot;';\n        break;\n      case 38:\n        // &\n        escape = '&amp;';\n        break;\n      case 39:\n        // '\n        escape = '&#x27;'; // modified from escape-html; used to be '&#39'\n        break;\n      case 60:\n        // <\n        escape = '&lt;';\n        break;\n      case 62:\n        // >\n        escape = '&gt;';\n        break;\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index ? html + str.substring(lastIndex, index) : html;\n}\n// end code copied and modified from escape-html\n\n\n/**\n * Escapes text to prevent scripting attacks.\n *\n * @param {*} text Text value to escape.\n * @return {string} An escaped string.\n */\nfunction escapeTextContentForBrowser(text) {\n  if (typeof text === 'boolean' || typeof text === 'number') {\n    // this shortcircuit helps perf for types that we know will never have\n    // special characters, especially given that this function is used often\n    // for numeric dom ids.\n    return '' + text;\n  }\n  return escapeHtml(text);\n}\n\nmodule.exports = escapeTextContentForBrowser;\n},{}],108:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactCurrentOwner = _dereq_(132);\nvar ReactDOMComponentTree = _dereq_(34);\nvar ReactInstanceMap = _dereq_(63);\n\nvar getHostComponentFromComposite = _dereq_(115);\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\n/**\n * Returns the DOM node rendered by this element.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode\n *\n * @param {ReactComponent|DOMElement} componentOrElement\n * @return {?DOMElement} The root node of this element.\n */\nfunction findDOMNode(componentOrElement) {\n  if (\"development\" !== 'production') {\n    var owner = ReactCurrentOwner.current;\n    if (owner !== null) {\n      \"development\" !== 'production' ? warning(owner._warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A component') : void 0;\n      owner._warnedAboutRefsInRender = true;\n    }\n  }\n  if (componentOrElement == null) {\n    return null;\n  }\n  if (componentOrElement.nodeType === 1) {\n    return componentOrElement;\n  }\n\n  var inst = ReactInstanceMap.get(componentOrElement);\n  if (inst) {\n    inst = getHostComponentFromComposite(inst);\n    return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;\n  }\n\n  if (typeof componentOrElement.render === 'function') {\n    !false ? \"development\" !== 'production' ? invariant(false, 'findDOMNode was called on an unmounted component.') : _prodInvariant('44') : void 0;\n  } else {\n    !false ? \"development\" !== 'production' ? invariant(false, 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)', Object.keys(componentOrElement)) : _prodInvariant('45', Object.keys(componentOrElement)) : void 0;\n  }\n}\n\nmodule.exports = findDOMNode;\n},{\"115\":115,\"124\":124,\"132\":132,\"150\":150,\"157\":157,\"34\":34,\"63\":63}],109:[function(_dereq_,module,exports){\n(function (process){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar KeyEscapeUtils = _dereq_(23);\nvar traverseAllChildren = _dereq_(129);\nvar warning = _dereq_(157);\n\nvar ReactComponentTreeHook;\n\nif (typeof process !== 'undefined' && process.env && \"development\" === 'test') {\n  // Temporary hack.\n  // Inline requires don't work well with Jest:\n  // https://github.com/facebook/react/issues/7240\n  // Remove the inline requires when we don't need them anymore:\n  // https://github.com/facebook/react/pull/7178\n  ReactComponentTreeHook = _dereq_(131);\n}\n\n/**\n * @param {function} traverseContext Context passed through traversal.\n * @param {?ReactComponent} child React child component.\n * @param {!string} name String name of key path to child.\n * @param {number=} selfDebugID Optional debugID of the current internal instance.\n */\nfunction flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {\n  // We found a component instance.\n  if (traverseContext && typeof traverseContext === 'object') {\n    var result = traverseContext;\n    var keyUnique = result[name] === undefined;\n    if (\"development\" !== 'production') {\n      if (!ReactComponentTreeHook) {\n        ReactComponentTreeHook = _dereq_(131);\n      }\n      if (!keyUnique) {\n        \"development\" !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;\n      }\n    }\n    if (keyUnique && child != null) {\n      result[name] = child;\n    }\n  }\n}\n\n/**\n * Flattens children that are typically specified as `props.children`. Any null\n * children will not be included in the resulting object.\n * @return {!object} flattened children keyed by name.\n */\nfunction flattenChildren(children, selfDebugID) {\n  if (children == null) {\n    return children;\n  }\n  var result = {};\n\n  if (\"development\" !== 'production') {\n    traverseAllChildren(children, function (traverseContext, child, name) {\n      return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);\n    }, result);\n  } else {\n    traverseAllChildren(children, flattenSingleChildIntoContext, result);\n  }\n  return result;\n}\n\nmodule.exports = flattenChildren;\n}).call(this,undefined)\n},{\"129\":129,\"131\":131,\"157\":157,\"23\":23}],110:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * @param {array} arr an \"accumulation\" of items which is either an Array or\n * a single item. Useful when paired with the `accumulate` module. This is a\n * simple utility that allows us to reason about a collection of items, but\n * handling the case when there is exactly one item (and we do not need to\n * allocate an array).\n */\n\nfunction forEachAccumulated(arr, cb, scope) {\n  if (Array.isArray(arr)) {\n    arr.forEach(cb, scope);\n  } else if (arr) {\n    cb.call(scope, arr);\n  }\n}\n\nmodule.exports = forEachAccumulated;\n},{}],111:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * `charCode` represents the actual \"character code\" and is safe to use with\n * `String.fromCharCode`. As such, only keys that correspond to printable\n * characters produce a valid `charCode`, the only exception to this is Enter.\n * The Tab-key is considered non-printable and does not have a `charCode`,\n * presumably because it does not produce a tab-character in browsers.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {number} Normalized `charCode` property.\n */\n\nfunction getEventCharCode(nativeEvent) {\n  var charCode;\n  var keyCode = nativeEvent.keyCode;\n\n  if ('charCode' in nativeEvent) {\n    charCode = nativeEvent.charCode;\n\n    // FF does not set `charCode` for the Enter-key, check against `keyCode`.\n    if (charCode === 0 && keyCode === 13) {\n      charCode = 13;\n    }\n  } else {\n    // IE8 does not implement `charCode`, but `keyCode` has the correct value.\n    charCode = keyCode;\n  }\n\n  // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.\n  // Must not discard the (non-)printable Enter-key.\n  if (charCode >= 32 || charCode === 13) {\n    return charCode;\n  }\n\n  return 0;\n}\n\nmodule.exports = getEventCharCode;\n},{}],112:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar getEventCharCode = _dereq_(111);\n\n/**\n * Normalization of deprecated HTML5 `key` values\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\nvar normalizeKey = {\n  'Esc': 'Escape',\n  'Spacebar': ' ',\n  'Left': 'ArrowLeft',\n  'Up': 'ArrowUp',\n  'Right': 'ArrowRight',\n  'Down': 'ArrowDown',\n  'Del': 'Delete',\n  'Win': 'OS',\n  'Menu': 'ContextMenu',\n  'Apps': 'ContextMenu',\n  'Scroll': 'ScrollLock',\n  'MozPrintableKey': 'Unidentified'\n};\n\n/**\n * Translation from legacy `keyCode` to HTML5 `key`\n * Only special keys supported, all others depend on keyboard layout or browser\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\nvar translateToKey = {\n  8: 'Backspace',\n  9: 'Tab',\n  12: 'Clear',\n  13: 'Enter',\n  16: 'Shift',\n  17: 'Control',\n  18: 'Alt',\n  19: 'Pause',\n  20: 'CapsLock',\n  27: 'Escape',\n  32: ' ',\n  33: 'PageUp',\n  34: 'PageDown',\n  35: 'End',\n  36: 'Home',\n  37: 'ArrowLeft',\n  38: 'ArrowUp',\n  39: 'ArrowRight',\n  40: 'ArrowDown',\n  45: 'Insert',\n  46: 'Delete',\n  112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6',\n  118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12',\n  144: 'NumLock',\n  145: 'ScrollLock',\n  224: 'Meta'\n};\n\n/**\n * @param {object} nativeEvent Native browser event.\n * @return {string} Normalized `key` property.\n */\nfunction getEventKey(nativeEvent) {\n  if (nativeEvent.key) {\n    // Normalize inconsistent values reported by browsers due to\n    // implementations of a working draft specification.\n\n    // FireFox implements `key` but returns `MozPrintableKey` for all\n    // printable characters (normalized to `Unidentified`), ignore it.\n    var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n    if (key !== 'Unidentified') {\n      return key;\n    }\n  }\n\n  // Browser does not implement `key`, polyfill as much of it as we can.\n  if (nativeEvent.type === 'keypress') {\n    var charCode = getEventCharCode(nativeEvent);\n\n    // The enter-key is technically both printable and non-printable and can\n    // thus be captured by `keypress`, no other non-printable key should.\n    return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);\n  }\n  if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {\n    // While user keyboard layout determines the actual meaning of each\n    // `keyCode` value, almost all function keys have a universal value.\n    return translateToKey[nativeEvent.keyCode] || 'Unidentified';\n  }\n  return '';\n}\n\nmodule.exports = getEventKey;\n},{\"111\":111}],113:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\nvar modifierKeyToProp = {\n  'Alt': 'altKey',\n  'Control': 'ctrlKey',\n  'Meta': 'metaKey',\n  'Shift': 'shiftKey'\n};\n\n// IE8 does not implement getModifierState so we simply map it to the only\n// modifier keys exposed by the event itself, does not support Lock-keys.\n// Currently, all major browsers except Chrome seems to support Lock-keys.\nfunction modifierStateGetter(keyArg) {\n  var syntheticEvent = this;\n  var nativeEvent = syntheticEvent.nativeEvent;\n  if (nativeEvent.getModifierState) {\n    return nativeEvent.getModifierState(keyArg);\n  }\n  var keyProp = modifierKeyToProp[keyArg];\n  return keyProp ? !!nativeEvent[keyProp] : false;\n}\n\nfunction getEventModifierState(nativeEvent) {\n  return modifierStateGetter;\n}\n\nmodule.exports = getEventModifierState;\n},{}],114:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Gets the target node from a native browser event by accounting for\n * inconsistencies in browser DOM APIs.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {DOMEventTarget} Target node.\n */\n\nfunction getEventTarget(nativeEvent) {\n  var target = nativeEvent.target || nativeEvent.srcElement || window;\n\n  // Normalize SVG <use> element events #4963\n  if (target.correspondingUseElement) {\n    target = target.correspondingUseElement;\n  }\n\n  // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n  // @see http://www.quirksmode.org/js/events_properties.html\n  return target.nodeType === 3 ? target.parentNode : target;\n}\n\nmodule.exports = getEventTarget;\n},{}],115:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactNodeTypes = _dereq_(69);\n\nfunction getHostComponentFromComposite(inst) {\n  var type;\n\n  while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) {\n    inst = inst._renderedComponent;\n  }\n\n  if (type === ReactNodeTypes.HOST) {\n    return inst._renderedComponent;\n  } else if (type === ReactNodeTypes.EMPTY) {\n    return null;\n  }\n}\n\nmodule.exports = getHostComponentFromComposite;\n},{\"69\":69}],116:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/* global Symbol */\n\nvar ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n/**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n *     var iteratorFn = getIteratorFn(myIterable);\n *     if (iteratorFn) {\n *       var iterator = iteratorFn.call(myIterable);\n *       ...\n *     }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\nfunction getIteratorFn(maybeIterable) {\n  var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n  if (typeof iteratorFn === 'function') {\n    return iteratorFn;\n  }\n}\n\nmodule.exports = getIteratorFn;\n},{}],117:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Given any node return the first leaf node without children.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {DOMElement|DOMTextNode}\n */\n\nfunction getLeafNode(node) {\n  while (node && node.firstChild) {\n    node = node.firstChild;\n  }\n  return node;\n}\n\n/**\n * Get the next sibling within a container. This will walk up the\n * DOM if a node's siblings have been exhausted.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {?DOMElement|DOMTextNode}\n */\nfunction getSiblingNode(node) {\n  while (node) {\n    if (node.nextSibling) {\n      return node.nextSibling;\n    }\n    node = node.parentNode;\n  }\n}\n\n/**\n * Get object describing the nodes which contain characters at offset.\n *\n * @param {DOMElement|DOMTextNode} root\n * @param {number} offset\n * @return {?object}\n */\nfunction getNodeForCharacterOffset(root, offset) {\n  var node = getLeafNode(root);\n  var nodeStart = 0;\n  var nodeEnd = 0;\n\n  while (node) {\n    if (node.nodeType === 3) {\n      nodeEnd = nodeStart + node.textContent.length;\n\n      if (nodeStart <= offset && nodeEnd >= offset) {\n        return {\n          node: node,\n          offset: offset - nodeStart\n        };\n      }\n\n      nodeStart = nodeEnd;\n    }\n\n    node = getLeafNode(getSiblingNode(node));\n  }\n}\n\nmodule.exports = getNodeForCharacterOffset;\n},{}],118:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\n\nvar contentKey = null;\n\n/**\n * Gets the key used to access text content on a DOM node.\n *\n * @return {?string} Key used to access text content.\n * @internal\n */\nfunction getTextContentAccessor() {\n  if (!contentKey && ExecutionEnvironment.canUseDOM) {\n    // Prefer textContent to innerText because many browsers support both but\n    // SVG <text> elements don't support innerText even when <div> does.\n    contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';\n  }\n  return contentKey;\n}\n\nmodule.exports = getTextContentAccessor;\n},{\"136\":136}],119:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\n\n/**\n * Generate a mapping of standard vendor prefixes using the defined style property and event name.\n *\n * @param {string} styleProp\n * @param {string} eventName\n * @returns {object}\n */\nfunction makePrefixMap(styleProp, eventName) {\n  var prefixes = {};\n\n  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n  prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n  prefixes['Moz' + styleProp] = 'moz' + eventName;\n  prefixes['ms' + styleProp] = 'MS' + eventName;\n  prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();\n\n  return prefixes;\n}\n\n/**\n * A list of event names to a configurable list of vendor prefixes.\n */\nvar vendorPrefixes = {\n  animationend: makePrefixMap('Animation', 'AnimationEnd'),\n  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n  animationstart: makePrefixMap('Animation', 'AnimationStart'),\n  transitionend: makePrefixMap('Transition', 'TransitionEnd')\n};\n\n/**\n * Event names that have already been detected and prefixed (if applicable).\n */\nvar prefixedEventNames = {};\n\n/**\n * Element to check for prefixes on.\n */\nvar style = {};\n\n/**\n * Bootstrap if a DOM exists.\n */\nif (ExecutionEnvironment.canUseDOM) {\n  style = document.createElement('div').style;\n\n  // On some platforms, in particular some releases of Android 4.x,\n  // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n  // style object but the events that fire will still be prefixed, so we need\n  // to check if the un-prefixed events are usable, and if not remove them from the map.\n  if (!('AnimationEvent' in window)) {\n    delete vendorPrefixes.animationend.animation;\n    delete vendorPrefixes.animationiteration.animation;\n    delete vendorPrefixes.animationstart.animation;\n  }\n\n  // Same as above\n  if (!('TransitionEvent' in window)) {\n    delete vendorPrefixes.transitionend.transition;\n  }\n}\n\n/**\n * Attempts to determine the correct vendor prefixed event name.\n *\n * @param {string} eventName\n * @returns {string}\n */\nfunction getVendorPrefixedEventName(eventName) {\n  if (prefixedEventNames[eventName]) {\n    return prefixedEventNames[eventName];\n  } else if (!vendorPrefixes[eventName]) {\n    return eventName;\n  }\n\n  var prefixMap = vendorPrefixes[eventName];\n\n  for (var styleProp in prefixMap) {\n    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {\n      return prefixedEventNames[eventName] = prefixMap[styleProp];\n    }\n  }\n\n  return '';\n}\n\nmodule.exports = getVendorPrefixedEventName;\n},{\"136\":136}],120:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124),\n    _assign = _dereq_(158);\n\nvar ReactCompositeComponent = _dereq_(30);\nvar ReactEmptyComponent = _dereq_(54);\nvar ReactHostComponent = _dereq_(59);\n\nvar getNextDebugID = _dereq_(134);\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\n// To avoid a cyclic dependency, we create the final class in this module\nvar ReactCompositeComponentWrapper = function (element) {\n  this.construct(element);\n};\n\nfunction getDeclarationErrorAddendum(owner) {\n  if (owner) {\n    var name = owner.getName();\n    if (name) {\n      return ' Check the render method of `' + name + '`.';\n    }\n  }\n  return '';\n}\n\n/**\n * Check if the type reference is a known internal type. I.e. not a user\n * provided composite type.\n *\n * @param {function} type\n * @return {boolean} Returns true if this is a valid internal type.\n */\nfunction isInternalComponentType(type) {\n  return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';\n}\n\n/**\n * Given a ReactNode, create an instance that will actually be mounted.\n *\n * @param {ReactNode} node\n * @param {boolean} shouldHaveDebugID\n * @return {object} A new instance of the element's constructor.\n * @protected\n */\nfunction instantiateReactComponent(node, shouldHaveDebugID) {\n  var instance;\n\n  if (node === null || node === false) {\n    instance = ReactEmptyComponent.create(instantiateReactComponent);\n  } else if (typeof node === 'object') {\n    var element = node;\n    var type = element.type;\n    if (typeof type !== 'function' && typeof type !== 'string') {\n      var info = '';\n      if (\"development\" !== 'production') {\n        if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n          info += ' You likely forgot to export your component from the file ' + 'it\\'s defined in.';\n        }\n      }\n      info += getDeclarationErrorAddendum(element._owner);\n      !false ? \"development\" !== 'production' ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0;\n    }\n\n    // Special case string values\n    if (typeof element.type === 'string') {\n      instance = ReactHostComponent.createInternalComponent(element);\n    } else if (isInternalComponentType(element.type)) {\n      // This is temporarily available for custom components that are not string\n      // representations. I.e. ART. Once those are updated to use the string\n      // representation, we can drop this code path.\n      instance = new element.type(element);\n\n      // We renamed this. Allow the old name for compat. :(\n      if (!instance.getHostNode) {\n        instance.getHostNode = instance.getNativeNode;\n      }\n    } else {\n      instance = new ReactCompositeComponentWrapper(element);\n    }\n  } else if (typeof node === 'string' || typeof node === 'number') {\n    instance = ReactHostComponent.createInstanceForText(node);\n  } else {\n    !false ? \"development\" !== 'production' ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0;\n  }\n\n  if (\"development\" !== 'production') {\n    \"development\" !== 'production' ? warning(typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.getHostNode === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : void 0;\n  }\n\n  // These two fields are used by the DOM and ART diffing algorithms\n  // respectively. Instead of using expandos on components, we should be\n  // storing the state needed by the diffing algorithms elsewhere.\n  instance._mountIndex = 0;\n  instance._mountImage = null;\n\n  if (\"development\" !== 'production') {\n    instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;\n  }\n\n  // Internal instances should fully constructed at this point, so they should\n  // not get any new fields added to them at this point.\n  if (\"development\" !== 'production') {\n    if (Object.preventExtensions) {\n      Object.preventExtensions(instance);\n    }\n  }\n\n  return instance;\n}\n\n_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {\n  _instantiateReactComponent: instantiateReactComponent\n});\n\nmodule.exports = instantiateReactComponent;\n},{\"124\":124,\"134\":134,\"150\":150,\"157\":157,\"158\":158,\"30\":30,\"54\":54,\"59\":59}],121:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\n\nvar useHasFeature;\nif (ExecutionEnvironment.canUseDOM) {\n  useHasFeature = document.implementation && document.implementation.hasFeature &&\n  // always returns true in newer browsers as per the standard.\n  // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature\n  document.implementation.hasFeature('', '') !== true;\n}\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @param {?boolean} capture Check if the capture phase is supported.\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nfunction isEventSupported(eventNameSuffix, capture) {\n  if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {\n    return false;\n  }\n\n  var eventName = 'on' + eventNameSuffix;\n  var isSupported = eventName in document;\n\n  if (!isSupported) {\n    var element = document.createElement('div');\n    element.setAttribute(eventName, 'return;');\n    isSupported = typeof element[eventName] === 'function';\n  }\n\n  if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {\n    // This is the only way to test support for the `wheel` event in IE9+.\n    isSupported = document.implementation.hasFeature('Events.wheel', '3.0');\n  }\n\n  return isSupported;\n}\n\nmodule.exports = isEventSupported;\n},{\"136\":136}],122:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary\n */\n\nvar supportedInputTypes = {\n  'color': true,\n  'date': true,\n  'datetime': true,\n  'datetime-local': true,\n  'email': true,\n  'month': true,\n  'number': true,\n  'password': true,\n  'range': true,\n  'search': true,\n  'tel': true,\n  'text': true,\n  'time': true,\n  'url': true,\n  'week': true\n};\n\nfunction isTextInputElement(elem) {\n  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n\n  if (nodeName === 'input') {\n    return !!supportedInputTypes[elem.type];\n  }\n\n  if (nodeName === 'textarea') {\n    return true;\n  }\n\n  return false;\n}\n\nmodule.exports = isTextInputElement;\n},{}],123:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar escapeTextContentForBrowser = _dereq_(107);\n\n/**\n * Escapes attribute value to prevent scripting attacks.\n *\n * @param {*} value Value to escape.\n * @return {string} An escaped string.\n */\nfunction quoteAttributeValueForBrowser(value) {\n  return '\"' + escapeTextContentForBrowser(value) + '\"';\n}\n\nmodule.exports = quoteAttributeValueForBrowser;\n},{\"107\":107}],124:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n'use strict';\n\n/**\n * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\n\nfunction reactProdInvariant(code) {\n  var argCount = arguments.length - 1;\n\n  var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;\n\n  for (var argIdx = 0; argIdx < argCount; argIdx++) {\n    message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);\n  }\n\n  message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';\n\n  var error = new Error(message);\n  error.name = 'Invariant Violation';\n  error.framesToPop = 1; // we don't care about reactProdInvariant's own frame\n\n  throw error;\n}\n\nmodule.exports = reactProdInvariant;\n},{}],125:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactMount = _dereq_(67);\n\nmodule.exports = ReactMount.renderSubtreeIntoContainer;\n},{\"67\":67}],126:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\nvar DOMNamespaces = _dereq_(10);\n\nvar WHITESPACE_TEST = /^[ \\r\\n\\t\\f]/;\nvar NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \\r\\n\\t\\f\\/>]/;\n\nvar createMicrosoftUnsafeLocalFunction = _dereq_(105);\n\n// SVG temp container for IE lacking innerHTML\nvar reusableSVGContainer;\n\n/**\n * Set the innerHTML property of a node, ensuring that whitespace is preserved\n * even in IE8.\n *\n * @param {DOMElement} node\n * @param {string} html\n * @internal\n */\nvar setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {\n  // IE does not have innerHTML for SVG nodes, so instead we inject the\n  // new markup in a temp node and then move the child nodes across into\n  // the target node\n  if (node.namespaceURI === DOMNamespaces.svg && !('innerHTML' in node)) {\n    reusableSVGContainer = reusableSVGContainer || document.createElement('div');\n    reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';\n    var svgNode = reusableSVGContainer.firstChild;\n    while (svgNode.firstChild) {\n      node.appendChild(svgNode.firstChild);\n    }\n  } else {\n    node.innerHTML = html;\n  }\n});\n\nif (ExecutionEnvironment.canUseDOM) {\n  // IE8: When updating a just created node with innerHTML only leading\n  // whitespace is removed. When updating an existing node with innerHTML\n  // whitespace in root TextNodes is also collapsed.\n  // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html\n\n  // Feature detection; only IE8 is known to behave improperly like this.\n  var testElement = document.createElement('div');\n  testElement.innerHTML = ' ';\n  if (testElement.innerHTML === '') {\n    setInnerHTML = function (node, html) {\n      // Magic theory: IE8 supposedly differentiates between added and updated\n      // nodes when processing innerHTML, innerHTML on updated nodes suffers\n      // from worse whitespace behavior. Re-adding a node like this triggers\n      // the initial and more favorable whitespace behavior.\n      // TODO: What to do on a detached node?\n      if (node.parentNode) {\n        node.parentNode.replaceChild(node, node);\n      }\n\n      // We also implement a workaround for non-visible tags disappearing into\n      // thin air on IE8, this only happens if there is no visible text\n      // in-front of the non-visible tags. Piggyback on the whitespace fix\n      // and simply check if any non-visible tags appear in the source.\n      if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) {\n        // Recover leading whitespace by temporarily prepending any character.\n        // \\uFEFF has the potential advantage of being zero-width/invisible.\n        // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode\n        // in hopes that this is preserved even if \"\\uFEFF\" is transformed to\n        // the actual Unicode character (by Babel, for example).\n        // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216\n        node.innerHTML = String.fromCharCode(0xFEFF) + html;\n\n        // deleteData leaves an empty `TextNode` which offsets the index of all\n        // children. Definitely want to avoid this.\n        var textNode = node.firstChild;\n        if (textNode.data.length === 1) {\n          node.removeChild(textNode);\n        } else {\n          textNode.deleteData(0, 1);\n        }\n      } else {\n        node.innerHTML = html;\n      }\n    };\n  }\n  testElement = null;\n}\n\nmodule.exports = setInnerHTML;\n},{\"10\":10,\"105\":105,\"136\":136}],127:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\nvar escapeTextContentForBrowser = _dereq_(107);\nvar setInnerHTML = _dereq_(126);\n\n/**\n * Set the textContent property of a node, ensuring that whitespace is preserved\n * even in IE8. innerText is a poor substitute for textContent and, among many\n * issues, inserts <br> instead of the literal newline chars. innerHTML behaves\n * as it should.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\nvar setTextContent = function (node, text) {\n  if (text) {\n    var firstChild = node.firstChild;\n\n    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {\n      firstChild.nodeValue = text;\n      return;\n    }\n  }\n  node.textContent = text;\n};\n\nif (ExecutionEnvironment.canUseDOM) {\n  if (!('textContent' in document.documentElement)) {\n    setTextContent = function (node, text) {\n      if (node.nodeType === 3) {\n        node.nodeValue = text;\n        return;\n      }\n      setInnerHTML(node, escapeTextContentForBrowser(text));\n    };\n  }\n}\n\nmodule.exports = setTextContent;\n},{\"107\":107,\"126\":126,\"136\":136}],128:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Given a `prevElement` and `nextElement`, determines if the existing\n * instance should be updated as opposed to being destroyed or replaced by a new\n * instance. Both arguments are elements. This ensures that this logic can\n * operate on stateless trees without any backing instance.\n *\n * @param {?object} prevElement\n * @param {?object} nextElement\n * @return {boolean} True if the existing instance should be updated.\n * @protected\n */\n\nfunction shouldUpdateReactComponent(prevElement, nextElement) {\n  var prevEmpty = prevElement === null || prevElement === false;\n  var nextEmpty = nextElement === null || nextElement === false;\n  if (prevEmpty || nextEmpty) {\n    return prevEmpty === nextEmpty;\n  }\n\n  var prevType = typeof prevElement;\n  var nextType = typeof nextElement;\n  if (prevType === 'string' || prevType === 'number') {\n    return nextType === 'string' || nextType === 'number';\n  } else {\n    return nextType === 'object' && prevElement.type === nextElement.type && prevElement.key === nextElement.key;\n  }\n}\n\nmodule.exports = shouldUpdateReactComponent;\n},{}],129:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(124);\n\nvar ReactCurrentOwner = _dereq_(132);\nvar REACT_ELEMENT_TYPE = _dereq_(53);\n\nvar getIteratorFn = _dereq_(116);\nvar invariant = _dereq_(150);\nvar KeyEscapeUtils = _dereq_(23);\nvar warning = _dereq_(157);\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * This is inlined from ReactElement since this file is shared between\n * isomorphic and renderers. We could extract this to a\n *\n */\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n  // Do some typechecking here since we call this blindly. We want to ensure\n  // that we don't block potential future ES APIs.\n  if (component && typeof component === 'object' && component.key != null) {\n    // Explicit key\n    return KeyEscapeUtils.escape(component.key);\n  }\n  // Implicit key determined by the index in the set\n  return index.toString(36);\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n  var type = typeof children;\n\n  if (type === 'undefined' || type === 'boolean') {\n    // All of the above are perceived as null.\n    children = null;\n  }\n\n  if (children === null || type === 'string' || type === 'number' ||\n  // The following is inlined from ReactElement. This means we can optimize\n  // some checks. React Fiber also inlines this logic for similar purposes.\n  type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {\n    callback(traverseContext, children,\n    // If it's the only child, treat the name as if it was wrapped in an array\n    // so that it's consistent if the number of children grows.\n    nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n    return 1;\n  }\n\n  var child;\n  var nextName;\n  var subtreeCount = 0; // Count of children found in the current subtree.\n  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n  if (Array.isArray(children)) {\n    for (var i = 0; i < children.length; i++) {\n      child = children[i];\n      nextName = nextNamePrefix + getComponentKey(child, i);\n      subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n    }\n  } else {\n    var iteratorFn = getIteratorFn(children);\n    if (iteratorFn) {\n      var iterator = iteratorFn.call(children);\n      var step;\n      if (iteratorFn !== children.entries) {\n        var ii = 0;\n        while (!(step = iterator.next()).done) {\n          child = step.value;\n          nextName = nextNamePrefix + getComponentKey(child, ii++);\n          subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n        }\n      } else {\n        if (\"development\" !== 'production') {\n          var mapsAsChildrenAddendum = '';\n          if (ReactCurrentOwner.current) {\n            var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();\n            if (mapsAsChildrenOwnerName) {\n              mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';\n            }\n          }\n          \"development\" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;\n          didWarnAboutMaps = true;\n        }\n        // Iterator will provide entry [k,v] tuples rather than values.\n        while (!(step = iterator.next()).done) {\n          var entry = step.value;\n          if (entry) {\n            child = entry[1];\n            nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);\n            subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n          }\n        }\n      }\n    } else if (type === 'object') {\n      var addendum = '';\n      if (\"development\" !== 'production') {\n        addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';\n        if (children._isReactElement) {\n          addendum = ' It looks like you\\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';\n        }\n        if (ReactCurrentOwner.current) {\n          var name = ReactCurrentOwner.current.getName();\n          if (name) {\n            addendum += ' Check the render method of `' + name + '`.';\n          }\n        }\n      }\n      var childrenString = String(children);\n      !false ? \"development\" !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;\n    }\n  }\n\n  return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n  if (children == null) {\n    return 0;\n  }\n\n  return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\nmodule.exports = traverseAllChildren;\n},{\"116\":116,\"124\":124,\"132\":132,\"150\":150,\"157\":157,\"23\":23,\"53\":53}],130:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(158);\n\nvar emptyFunction = _dereq_(142);\nvar warning = _dereq_(157);\n\nvar validateDOMNesting = emptyFunction;\n\nif (\"development\" !== 'production') {\n  // This validation code was written based on the HTML5 parsing spec:\n  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n  //\n  // Note: this does not catch all invalid nesting, nor does it try to (as it's\n  // not clear what practical benefit doing so provides); instead, we warn only\n  // for cases where the parser will give a parse tree differing from what React\n  // intended. For example, <b><div></div></b> is invalid but we don't warn\n  // because it still parses correctly; we do warn for other cases like nested\n  // <p> tags where the beginning of the second element implicitly closes the\n  // first, causing a confusing mess.\n\n  // https://html.spec.whatwg.org/multipage/syntax.html#special\n  var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];\n\n  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n  var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',\n\n  // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point\n  // TODO: Distinguish by namespace here -- for <title>, including it here\n  // errs on the side of fewer warnings\n  'foreignObject', 'desc', 'title'];\n\n  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope\n  var buttonScopeTags = inScopeTags.concat(['button']);\n\n  // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags\n  var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];\n\n  var emptyAncestorInfo = {\n    current: null,\n\n    formTag: null,\n    aTagInScope: null,\n    buttonTagInScope: null,\n    nobrTagInScope: null,\n    pTagInButtonScope: null,\n\n    listItemTagAutoclosing: null,\n    dlItemTagAutoclosing: null\n  };\n\n  var updatedAncestorInfo = function (oldInfo, tag, instance) {\n    var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);\n    var info = { tag: tag, instance: instance };\n\n    if (inScopeTags.indexOf(tag) !== -1) {\n      ancestorInfo.aTagInScope = null;\n      ancestorInfo.buttonTagInScope = null;\n      ancestorInfo.nobrTagInScope = null;\n    }\n    if (buttonScopeTags.indexOf(tag) !== -1) {\n      ancestorInfo.pTagInButtonScope = null;\n    }\n\n    // See rules for 'li', 'dd', 'dt' start tags in\n    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n    if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {\n      ancestorInfo.listItemTagAutoclosing = null;\n      ancestorInfo.dlItemTagAutoclosing = null;\n    }\n\n    ancestorInfo.current = info;\n\n    if (tag === 'form') {\n      ancestorInfo.formTag = info;\n    }\n    if (tag === 'a') {\n      ancestorInfo.aTagInScope = info;\n    }\n    if (tag === 'button') {\n      ancestorInfo.buttonTagInScope = info;\n    }\n    if (tag === 'nobr') {\n      ancestorInfo.nobrTagInScope = info;\n    }\n    if (tag === 'p') {\n      ancestorInfo.pTagInButtonScope = info;\n    }\n    if (tag === 'li') {\n      ancestorInfo.listItemTagAutoclosing = info;\n    }\n    if (tag === 'dd' || tag === 'dt') {\n      ancestorInfo.dlItemTagAutoclosing = info;\n    }\n\n    return ancestorInfo;\n  };\n\n  /**\n   * Returns whether\n   */\n  var isTagValidWithParent = function (tag, parentTag) {\n    // First, let's check if we're in an unusual parsing mode...\n    switch (parentTag) {\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect\n      case 'select':\n        return tag === 'option' || tag === 'optgroup' || tag === '#text';\n      case 'optgroup':\n        return tag === 'option' || tag === '#text';\n      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>\n      // but\n      case 'option':\n        return tag === '#text';\n\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption\n      // No special behavior since these rules fall back to \"in body\" mode for\n      // all except special table nodes which cause bad parsing behavior anyway.\n\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr\n      case 'tr':\n        return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';\n\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody\n      case 'tbody':\n      case 'thead':\n      case 'tfoot':\n        return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';\n\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup\n      case 'colgroup':\n        return tag === 'col' || tag === 'template';\n\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable\n      case 'table':\n        return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';\n\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead\n      case 'head':\n        return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';\n\n      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element\n      case 'html':\n        return tag === 'head' || tag === 'body';\n      case '#document':\n        return tag === 'html';\n    }\n\n    // Probably in the \"in body\" parsing mode, so we outlaw only tag combos\n    // where the parsing rules cause implicit opens or closes to be added.\n    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n    switch (tag) {\n      case 'h1':\n      case 'h2':\n      case 'h3':\n      case 'h4':\n      case 'h5':\n      case 'h6':\n        return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';\n\n      case 'rp':\n      case 'rt':\n        return impliedEndTags.indexOf(parentTag) === -1;\n\n      case 'body':\n      case 'caption':\n      case 'col':\n      case 'colgroup':\n      case 'frame':\n      case 'head':\n      case 'html':\n      case 'tbody':\n      case 'td':\n      case 'tfoot':\n      case 'th':\n      case 'thead':\n      case 'tr':\n        // These tags are only valid with a few parents that have special child\n        // parsing rules -- if we're down here, then none of those matched and\n        // so we allow it only if we don't know what the parent is, as all other\n        // cases are invalid.\n        return parentTag == null;\n    }\n\n    return true;\n  };\n\n  /**\n   * Returns whether\n   */\n  var findInvalidAncestorForTag = function (tag, ancestorInfo) {\n    switch (tag) {\n      case 'address':\n      case 'article':\n      case 'aside':\n      case 'blockquote':\n      case 'center':\n      case 'details':\n      case 'dialog':\n      case 'dir':\n      case 'div':\n      case 'dl':\n      case 'fieldset':\n      case 'figcaption':\n      case 'figure':\n      case 'footer':\n      case 'header':\n      case 'hgroup':\n      case 'main':\n      case 'menu':\n      case 'nav':\n      case 'ol':\n      case 'p':\n      case 'section':\n      case 'summary':\n      case 'ul':\n      case 'pre':\n      case 'listing':\n      case 'table':\n      case 'hr':\n      case 'xmp':\n      case 'h1':\n      case 'h2':\n      case 'h3':\n      case 'h4':\n      case 'h5':\n      case 'h6':\n        return ancestorInfo.pTagInButtonScope;\n\n      case 'form':\n        return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;\n\n      case 'li':\n        return ancestorInfo.listItemTagAutoclosing;\n\n      case 'dd':\n      case 'dt':\n        return ancestorInfo.dlItemTagAutoclosing;\n\n      case 'button':\n        return ancestorInfo.buttonTagInScope;\n\n      case 'a':\n        // Spec says something about storing a list of markers, but it sounds\n        // equivalent to this check.\n        return ancestorInfo.aTagInScope;\n\n      case 'nobr':\n        return ancestorInfo.nobrTagInScope;\n    }\n\n    return null;\n  };\n\n  /**\n   * Given a ReactCompositeComponent instance, return a list of its recursive\n   * owners, starting at the root and ending with the instance itself.\n   */\n  var findOwnerStack = function (instance) {\n    if (!instance) {\n      return [];\n    }\n\n    var stack = [];\n    do {\n      stack.push(instance);\n    } while (instance = instance._currentElement._owner);\n    stack.reverse();\n    return stack;\n  };\n\n  var didWarn = {};\n\n  validateDOMNesting = function (childTag, childText, childInstance, ancestorInfo) {\n    ancestorInfo = ancestorInfo || emptyAncestorInfo;\n    var parentInfo = ancestorInfo.current;\n    var parentTag = parentInfo && parentInfo.tag;\n\n    if (childText != null) {\n      \"development\" !== 'production' ? warning(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;\n      childTag = '#text';\n    }\n\n    var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;\n    var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);\n    var problematic = invalidParent || invalidAncestor;\n\n    if (problematic) {\n      var ancestorTag = problematic.tag;\n      var ancestorInstance = problematic.instance;\n\n      var childOwner = childInstance && childInstance._currentElement._owner;\n      var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner;\n\n      var childOwners = findOwnerStack(childOwner);\n      var ancestorOwners = findOwnerStack(ancestorOwner);\n\n      var minStackLen = Math.min(childOwners.length, ancestorOwners.length);\n      var i;\n\n      var deepestCommon = -1;\n      for (i = 0; i < minStackLen; i++) {\n        if (childOwners[i] === ancestorOwners[i]) {\n          deepestCommon = i;\n        } else {\n          break;\n        }\n      }\n\n      var UNKNOWN = '(unknown)';\n      var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) {\n        return inst.getName() || UNKNOWN;\n      });\n      var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) {\n        return inst.getName() || UNKNOWN;\n      });\n      var ownerInfo = [].concat(\n      // If the parent and child instances have a common owner ancestor, start\n      // with that -- otherwise we just start with the parent's owners.\n      deepestCommon !== -1 ? childOwners[deepestCommon].getName() || UNKNOWN : [], ancestorOwnerNames, ancestorTag,\n      // If we're warning about an invalid (non-parent) ancestry, add '...'\n      invalidAncestor ? ['...'] : [], childOwnerNames, childTag).join(' > ');\n\n      var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + ownerInfo;\n      if (didWarn[warnKey]) {\n        return;\n      }\n      didWarn[warnKey] = true;\n\n      var tagDisplayName = childTag;\n      var whitespaceInfo = '';\n      if (childTag === '#text') {\n        if (/\\S/.test(childText)) {\n          tagDisplayName = 'Text nodes';\n        } else {\n          tagDisplayName = 'Whitespace text nodes';\n          whitespaceInfo = ' Make sure you don\\'t have any extra whitespace between tags on ' + 'each line of your source code.';\n        }\n      } else {\n        tagDisplayName = '<' + childTag + '>';\n      }\n\n      if (invalidParent) {\n        var info = '';\n        if (ancestorTag === 'table' && childTag === 'tr') {\n          info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';\n        }\n        \"development\" !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s ' + 'See %s.%s', tagDisplayName, ancestorTag, whitespaceInfo, ownerInfo, info) : void 0;\n      } else {\n        \"development\" !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>. See %s.', tagDisplayName, ancestorTag, ownerInfo) : void 0;\n      }\n    }\n  };\n\n  validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo;\n\n  // For testing\n  validateDOMNesting.isTagValidInContext = function (tag, ancestorInfo) {\n    ancestorInfo = ancestorInfo || emptyAncestorInfo;\n    var parentInfo = ancestorInfo.current;\n    var parentTag = parentInfo && parentInfo.tag;\n    return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo);\n  };\n}\n\nmodule.exports = validateDOMNesting;\n},{\"142\":142,\"157\":157,\"158\":158}],131:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals React */\n\n'use strict';\n\nvar ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nmodule.exports = ReactInternals.ReactComponentTreeHook;\n},{}],132:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals React */\n\n'use strict';\n\nvar ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nmodule.exports = ReactInternals.ReactCurrentOwner;\n},{}],133:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals React */\n\n'use strict';\n\nmodule.exports = React;\n},{}],134:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals React */\n\n'use strict';\n\nvar ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nmodule.exports = ReactInternals.getNextDebugID;\n},{}],135:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @typechecks\n */\n\nvar emptyFunction = _dereq_(142);\n\n/**\n * Upstream version of event listener. Does not take into account specific\n * nature of platform.\n */\nvar EventListener = {\n  /**\n   * Listen to DOM events during the bubble phase.\n   *\n   * @param {DOMEventTarget} target DOM element to register listener on.\n   * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.\n   * @param {function} callback Callback function.\n   * @return {object} Object with a `remove` method.\n   */\n  listen: function listen(target, eventType, callback) {\n    if (target.addEventListener) {\n      target.addEventListener(eventType, callback, false);\n      return {\n        remove: function remove() {\n          target.removeEventListener(eventType, callback, false);\n        }\n      };\n    } else if (target.attachEvent) {\n      target.attachEvent('on' + eventType, callback);\n      return {\n        remove: function remove() {\n          target.detachEvent('on' + eventType, callback);\n        }\n      };\n    }\n  },\n\n  /**\n   * Listen to DOM events during the capture phase.\n   *\n   * @param {DOMEventTarget} target DOM element to register listener on.\n   * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.\n   * @param {function} callback Callback function.\n   * @return {object} Object with a `remove` method.\n   */\n  capture: function capture(target, eventType, callback) {\n    if (target.addEventListener) {\n      target.addEventListener(eventType, callback, true);\n      return {\n        remove: function remove() {\n          target.removeEventListener(eventType, callback, true);\n        }\n      };\n    } else {\n      if (\"development\" !== 'production') {\n        console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.');\n      }\n      return {\n        remove: emptyFunction\n      };\n    }\n  },\n\n  registerDefault: function registerDefault() {}\n};\n\nmodule.exports = EventListener;\n},{\"142\":142}],136:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\nvar ExecutionEnvironment = {\n\n  canUseDOM: canUseDOM,\n\n  canUseWorkers: typeof Worker !== 'undefined',\n\n  canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n\n  canUseViewport: canUseDOM && !!window.screen,\n\n  isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\n\nmodule.exports = ExecutionEnvironment;\n},{}],137:[function(_dereq_,module,exports){\n\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\nvar _hyphenPattern = /-(.)/g;\n\n/**\n * Camelcases a hyphenated string, for example:\n *\n *   > camelize('background-color')\n *   < \"backgroundColor\"\n *\n * @param {string} string\n * @return {string}\n */\nfunction camelize(string) {\n  return string.replace(_hyphenPattern, function (_, character) {\n    return character.toUpperCase();\n  });\n}\n\nmodule.exports = camelize;\n},{}],138:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n'use strict';\n\nvar camelize = _dereq_(137);\n\nvar msPattern = /^-ms-/;\n\n/**\n * Camelcases a hyphenated CSS property name, for example:\n *\n *   > camelizeStyleName('background-color')\n *   < \"backgroundColor\"\n *   > camelizeStyleName('-moz-transition')\n *   < \"MozTransition\"\n *   > camelizeStyleName('-ms-transition')\n *   < \"msTransition\"\n *\n * As Andi Smith suggests\n * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n * is converted to lowercase `ms`.\n *\n * @param {string} string\n * @return {string}\n */\nfunction camelizeStyleName(string) {\n  return camelize(string.replace(msPattern, 'ms-'));\n}\n\nmodule.exports = camelizeStyleName;\n},{\"137\":137}],139:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\nvar isTextNode = _dereq_(152);\n\n/*eslint-disable no-bitwise */\n\n/**\n * Checks if a given DOM node contains or is another DOM node.\n */\nfunction containsNode(outerNode, innerNode) {\n  if (!outerNode || !innerNode) {\n    return false;\n  } else if (outerNode === innerNode) {\n    return true;\n  } else if (isTextNode(outerNode)) {\n    return false;\n  } else if (isTextNode(innerNode)) {\n    return containsNode(outerNode, innerNode.parentNode);\n  } else if ('contains' in outerNode) {\n    return outerNode.contains(innerNode);\n  } else if (outerNode.compareDocumentPosition) {\n    return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n  } else {\n    return false;\n  }\n}\n\nmodule.exports = containsNode;\n},{\"152\":152}],140:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\nvar invariant = _dereq_(150);\n\n/**\n * Convert array-like objects to arrays.\n *\n * This API assumes the caller knows the contents of the data type. For less\n * well defined inputs use createArrayFromMixed.\n *\n * @param {object|function|filelist} obj\n * @return {array}\n */\nfunction toArray(obj) {\n  var length = obj.length;\n\n  // Some browsers builtin objects can report typeof 'function' (e.g. NodeList\n  // in old versions of Safari).\n  !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? \"development\" !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0;\n\n  !(typeof length === 'number') ? \"development\" !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;\n\n  !(length === 0 || length - 1 in obj) ? \"development\" !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;\n\n  !(typeof obj.callee !== 'function') ? \"development\" !== 'production' ? invariant(false, 'toArray: Object can\\'t be `arguments`. Use rest params ' + '(function(...args) {}) or Array.from() instead.') : invariant(false) : void 0;\n\n  // Old IE doesn't give collections access to hasOwnProperty. Assume inputs\n  // without method will throw during the slice call and skip straight to the\n  // fallback.\n  if (obj.hasOwnProperty) {\n    try {\n      return Array.prototype.slice.call(obj);\n    } catch (e) {\n      // IE < 9 does not support Array#slice on collections objects\n    }\n  }\n\n  // Fall back to copying key by key. This assumes all keys have a value,\n  // so will not preserve sparsely populated inputs.\n  var ret = Array(length);\n  for (var ii = 0; ii < length; ii++) {\n    ret[ii] = obj[ii];\n  }\n  return ret;\n}\n\n/**\n * Perform a heuristic test to determine if an object is \"array-like\".\n *\n *   A monk asked Joshu, a Zen master, \"Has a dog Buddha nature?\"\n *   Joshu replied: \"Mu.\"\n *\n * This function determines if its argument has \"array nature\": it returns\n * true if the argument is an actual array, an `arguments' object, or an\n * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()).\n *\n * It will return false for other array-like objects like Filelist.\n *\n * @param {*} obj\n * @return {boolean}\n */\nfunction hasArrayNature(obj) {\n  return (\n    // not null/false\n    !!obj && (\n    // arrays are objects, NodeLists are functions in Safari\n    typeof obj == 'object' || typeof obj == 'function') &&\n    // quacks like an array\n    'length' in obj &&\n    // not window\n    !('setInterval' in obj) &&\n    // no DOM node should be considered an array-like\n    // a 'select' element has 'length' and 'item' properties on IE8\n    typeof obj.nodeType != 'number' && (\n    // a real array\n    Array.isArray(obj) ||\n    // arguments\n    'callee' in obj ||\n    // HTMLCollection/NodeList\n    'item' in obj)\n  );\n}\n\n/**\n * Ensure that the argument is an array by wrapping it in an array if it is not.\n * Creates a copy of the argument if it is already an array.\n *\n * This is mostly useful idiomatically:\n *\n *   var createArrayFromMixed = require('createArrayFromMixed');\n *\n *   function takesOneOrMoreThings(things) {\n *     things = createArrayFromMixed(things);\n *     ...\n *   }\n *\n * This allows you to treat `things' as an array, but accept scalars in the API.\n *\n * If you need to convert an array-like object, like `arguments`, into an array\n * use toArray instead.\n *\n * @param {*} obj\n * @return {array}\n */\nfunction createArrayFromMixed(obj) {\n  if (!hasArrayNature(obj)) {\n    return [obj];\n  } else if (Array.isArray(obj)) {\n    return obj.slice();\n  } else {\n    return toArray(obj);\n  }\n}\n\nmodule.exports = createArrayFromMixed;\n},{\"150\":150}],141:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n/*eslint-disable fb-www/unsafe-html*/\n\nvar ExecutionEnvironment = _dereq_(136);\n\nvar createArrayFromMixed = _dereq_(140);\nvar getMarkupWrap = _dereq_(146);\nvar invariant = _dereq_(150);\n\n/**\n * Dummy container used to render all markup.\n */\nvar dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;\n\n/**\n * Pattern used by `getNodeName`.\n */\nvar nodeNamePattern = /^\\s*<(\\w+)/;\n\n/**\n * Extracts the `nodeName` of the first element in a string of markup.\n *\n * @param {string} markup String of markup.\n * @return {?string} Node name of the supplied markup.\n */\nfunction getNodeName(markup) {\n  var nodeNameMatch = markup.match(nodeNamePattern);\n  return nodeNameMatch && nodeNameMatch[1].toLowerCase();\n}\n\n/**\n * Creates an array containing the nodes rendered from the supplied markup. The\n * optionally supplied `handleScript` function will be invoked once for each\n * <script> element that is rendered. If no `handleScript` function is supplied,\n * an exception is thrown if any <script> elements are rendered.\n *\n * @param {string} markup A string of valid HTML markup.\n * @param {?function} handleScript Invoked once for each rendered <script>.\n * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes.\n */\nfunction createNodesFromMarkup(markup, handleScript) {\n  var node = dummyNode;\n  !!!dummyNode ? \"development\" !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;\n  var nodeName = getNodeName(markup);\n\n  var wrap = nodeName && getMarkupWrap(nodeName);\n  if (wrap) {\n    node.innerHTML = wrap[1] + markup + wrap[2];\n\n    var wrapDepth = wrap[0];\n    while (wrapDepth--) {\n      node = node.lastChild;\n    }\n  } else {\n    node.innerHTML = markup;\n  }\n\n  var scripts = node.getElementsByTagName('script');\n  if (scripts.length) {\n    !handleScript ? \"development\" !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : void 0;\n    createArrayFromMixed(scripts).forEach(handleScript);\n  }\n\n  var nodes = Array.from(node.childNodes);\n  while (node.lastChild) {\n    node.removeChild(node.lastChild);\n  }\n  return nodes;\n}\n\nmodule.exports = createNodesFromMarkup;\n},{\"136\":136,\"140\":140,\"146\":146,\"150\":150}],142:[function(_dereq_,module,exports){\n\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n  return function () {\n    return arg;\n  };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n  return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n  return arg;\n};\n\nmodule.exports = emptyFunction;\n},{}],143:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (\"development\" !== 'production') {\n  Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;\n},{}],144:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * @param {DOMElement} node input/textarea to focus\n */\n\nfunction focusNode(node) {\n  // IE8 can throw \"Can't move focus to the control because it is invisible,\n  // not enabled, or of a type that does not accept the focus.\" for all kinds of\n  // reasons that are too expensive and fragile to test.\n  try {\n    node.focus();\n  } catch (e) {}\n}\n\nmodule.exports = focusNode;\n},{}],145:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n/* eslint-disable fb-www/typeof-undefined */\n\n/**\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\n * not safe to call document.activeElement if there is nothing focused.\n *\n * The activeElement will be null only if the document or document body is not\n * yet defined.\n *\n * @param {?DOMDocument} doc Defaults to current document.\n * @return {?DOMElement}\n */\nfunction getActiveElement(doc) /*?DOMElement*/{\n  doc = doc || (typeof document !== 'undefined' ? document : undefined);\n  if (typeof doc === 'undefined') {\n    return null;\n  }\n  try {\n    return doc.activeElement || doc.body;\n  } catch (e) {\n    return doc.body;\n  }\n}\n\nmodule.exports = getActiveElement;\n},{}],146:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/*eslint-disable fb-www/unsafe-html */\n\nvar ExecutionEnvironment = _dereq_(136);\n\nvar invariant = _dereq_(150);\n\n/**\n * Dummy container used to detect which wraps are necessary.\n */\nvar dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;\n\n/**\n * Some browsers cannot use `innerHTML` to render certain elements standalone,\n * so we wrap them, render the wrapped nodes, then extract the desired node.\n *\n * In IE8, certain elements cannot render alone, so wrap all elements ('*').\n */\n\nvar shouldWrap = {};\n\nvar selectWrap = [1, '<select multiple=\"true\">', '</select>'];\nvar tableWrap = [1, '<table>', '</table>'];\nvar trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>'];\n\nvar svgWrap = [1, '<svg xmlns=\"http://www.w3.org/2000/svg\">', '</svg>'];\n\nvar markupWrap = {\n  '*': [1, '?<div>', '</div>'],\n\n  'area': [1, '<map>', '</map>'],\n  'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],\n  'legend': [1, '<fieldset>', '</fieldset>'],\n  'param': [1, '<object>', '</object>'],\n  'tr': [2, '<table><tbody>', '</tbody></table>'],\n\n  'optgroup': selectWrap,\n  'option': selectWrap,\n\n  'caption': tableWrap,\n  'colgroup': tableWrap,\n  'tbody': tableWrap,\n  'tfoot': tableWrap,\n  'thead': tableWrap,\n\n  'td': trWrap,\n  'th': trWrap\n};\n\n// Initialize the SVG elements since we know they'll always need to be wrapped\n// consistently. If they are created inside a <div> they will be initialized in\n// the wrong namespace (and will not display).\nvar svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan'];\nsvgElements.forEach(function (nodeName) {\n  markupWrap[nodeName] = svgWrap;\n  shouldWrap[nodeName] = true;\n});\n\n/**\n * Gets the markup wrap configuration for the supplied `nodeName`.\n *\n * NOTE: This lazily detects which wraps are necessary for the current browser.\n *\n * @param {string} nodeName Lowercase `nodeName`.\n * @return {?array} Markup wrap configuration, if applicable.\n */\nfunction getMarkupWrap(nodeName) {\n  !!!dummyNode ? \"development\" !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : void 0;\n  if (!markupWrap.hasOwnProperty(nodeName)) {\n    nodeName = '*';\n  }\n  if (!shouldWrap.hasOwnProperty(nodeName)) {\n    if (nodeName === '*') {\n      dummyNode.innerHTML = '<link />';\n    } else {\n      dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>';\n    }\n    shouldWrap[nodeName] = !dummyNode.firstChild;\n  }\n  return shouldWrap[nodeName] ? markupWrap[nodeName] : null;\n}\n\nmodule.exports = getMarkupWrap;\n},{\"136\":136,\"150\":150}],147:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n'use strict';\n\n/**\n * Gets the scroll position of the supplied element or window.\n *\n * The return values are unbounded, unlike `getScrollPosition`. This means they\n * may be negative or exceed the element boundaries (which is possible using\n * inertial scrolling).\n *\n * @param {DOMWindow|DOMElement} scrollable\n * @return {object} Map with `x` and `y` keys.\n */\n\nfunction getUnboundedScrollPosition(scrollable) {\n  if (scrollable.Window && scrollable instanceof scrollable.Window) {\n    return {\n      x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft,\n      y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop\n    };\n  }\n  return {\n    x: scrollable.scrollLeft,\n    y: scrollable.scrollTop\n  };\n}\n\nmodule.exports = getUnboundedScrollPosition;\n},{}],148:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\nvar _uppercasePattern = /([A-Z])/g;\n\n/**\n * Hyphenates a camelcased string, for example:\n *\n *   > hyphenate('backgroundColor')\n *   < \"background-color\"\n *\n * For CSS style names, use `hyphenateStyleName` instead which works properly\n * with all vendor prefixes, including `ms`.\n *\n * @param {string} string\n * @return {string}\n */\nfunction hyphenate(string) {\n  return string.replace(_uppercasePattern, '-$1').toLowerCase();\n}\n\nmodule.exports = hyphenate;\n},{}],149:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n'use strict';\n\nvar hyphenate = _dereq_(148);\n\nvar msPattern = /^ms-/;\n\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n *   > hyphenateStyleName('backgroundColor')\n *   < \"background-color\"\n *   > hyphenateStyleName('MozTransition')\n *   < \"-moz-transition\"\n *   > hyphenateStyleName('msTransition')\n *   < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n *\n * @param {string} string\n * @return {string}\n */\nfunction hyphenateStyleName(string) {\n  return hyphenate(string).replace(msPattern, '-ms-');\n}\n\nmodule.exports = hyphenateStyleName;\n},{\"148\":148}],150:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (\"development\" !== 'production') {\n  validateFormat = function validateFormat(format) {\n    if (format === undefined) {\n      throw new Error('invariant requires an error message argument');\n    }\n  };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n  validateFormat(format);\n\n  if (!condition) {\n    var error;\n    if (format === undefined) {\n      error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n    } else {\n      var args = [a, b, c, d, e, f];\n      var argIndex = 0;\n      error = new Error(format.replace(/%s/g, function () {\n        return args[argIndex++];\n      }));\n      error.name = 'Invariant Violation';\n    }\n\n    error.framesToPop = 1; // we don't care about invariant's own frame\n    throw error;\n  }\n}\n\nmodule.exports = invariant;\n},{}],151:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM node.\n */\nfunction isNode(object) {\n  var doc = object ? object.ownerDocument || object : document;\n  var defaultView = doc.defaultView || window;\n  return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));\n}\n\nmodule.exports = isNode;\n},{}],152:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\nvar isNode = _dereq_(151);\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM text node.\n */\nfunction isTextNode(object) {\n  return isNode(object) && object.nodeType == 3;\n}\n\nmodule.exports = isTextNode;\n},{\"151\":151}],153:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n * @typechecks static-only\n */\n\n'use strict';\n\n/**\n * Memoizes the return value of a function that accepts one string argument.\n */\n\nfunction memoizeStringOnly(callback) {\n  var cache = {};\n  return function (string) {\n    if (!cache.hasOwnProperty(string)) {\n      cache[string] = callback.call(this, string);\n    }\n    return cache[string];\n  };\n}\n\nmodule.exports = memoizeStringOnly;\n},{}],154:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n'use strict';\n\nvar ExecutionEnvironment = _dereq_(136);\n\nvar performance;\n\nif (ExecutionEnvironment.canUseDOM) {\n  performance = window.performance || window.msPerformance || window.webkitPerformance;\n}\n\nmodule.exports = performance || {};\n},{\"136\":136}],155:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\nvar performance = _dereq_(154);\n\nvar performanceNow;\n\n/**\n * Detect if we can use `window.performance.now()` and gracefully fallback to\n * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now\n * because of Facebook's testing infrastructure.\n */\nif (performance.now) {\n  performanceNow = function performanceNow() {\n    return performance.now();\n  };\n} else {\n  performanceNow = function performanceNow() {\n    return Date.now();\n  };\n}\n\nmodule.exports = performanceNow;\n},{\"154\":154}],156:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n  // SameValue algorithm\n  if (x === y) {\n    // Steps 1-5, 7-10\n    // Steps 6.b-6.e: +0 != -0\n    // Added the nonzero y check to make Flow happy, but it is redundant\n    return x !== 0 || y !== 0 || 1 / x === 1 / y;\n  } else {\n    // Step 6.a: NaN == NaN\n    return x !== x && y !== y;\n  }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n  if (is(objA, objB)) {\n    return true;\n  }\n\n  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n    return false;\n  }\n\n  var keysA = Object.keys(objA);\n  var keysB = Object.keys(objB);\n\n  if (keysA.length !== keysB.length) {\n    return false;\n  }\n\n  // Test for A's keys different from B.\n  for (var i = 0; i < keysA.length; i++) {\n    if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nmodule.exports = shallowEqual;\n},{}],157:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyFunction = _dereq_(142);\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (\"development\" !== 'production') {\n  (function () {\n    var printWarning = function printWarning(format) {\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      var argIndex = 0;\n      var message = 'Warning: ' + format.replace(/%s/g, function () {\n        return args[argIndex++];\n      });\n      if (typeof console !== 'undefined') {\n        console.error(message);\n      }\n      try {\n        // --- Welcome to debugging React ---\n        // This error was thrown as a convenience so that you can use this stack\n        // to find the callsite that caused this warning to fire.\n        throw new Error(message);\n      } catch (x) {}\n    };\n\n    warning = function warning(condition, format) {\n      if (format === undefined) {\n        throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n      }\n\n      if (format.indexOf('Failed Composite propType: ') === 0) {\n        return; // Ignore CompositeComponent proptype check.\n      }\n\n      if (!condition) {\n        for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n          args[_key2 - 2] = arguments[_key2];\n        }\n\n        printWarning.apply(undefined, [format].concat(args));\n      }\n    };\n  })();\n}\n\nmodule.exports = warning;\n},{\"142\":142}],158:[function(_dereq_,module,exports){\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc');  // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n},{}],159:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nif (\"development\" !== 'production') {\n  var invariant = _dereq_(150);\n  var warning = _dereq_(157);\n  var ReactPropTypesSecret = _dereq_(162);\n  var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n  if (\"development\" !== 'production') {\n    for (var typeSpecName in typeSpecs) {\n      if (typeSpecs.hasOwnProperty(typeSpecName)) {\n        var error;\n        // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);\n          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n        } catch (ex) {\n          error = ex;\n        }\n        warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n        if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error.message] = true;\n\n          var stack = getStack ? getStack() : '';\n\n          warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n        }\n      }\n    }\n  }\n}\n\nmodule.exports = checkPropTypes;\n\n},{\"150\":150,\"157\":157,\"162\":162}],160:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n// React 15.5 references this module, and assumes PropTypes are still callable in production.\n// Therefore we re-export development-only version with all the PropTypes checks here.\n// However if one is migrating to the `prop-types` npm library, they will go through the\n// `index.js` entry point, and it will branch depending on the environment.\nvar factory = _dereq_(161);\nmodule.exports = function(isValidElement) {\n  // It is still allowed in 15.5.\n  var throwOnDirectAccess = false;\n  return factory(isValidElement, throwOnDirectAccess);\n};\n\n},{\"161\":161}],161:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar emptyFunction = _dereq_(142);\nvar invariant = _dereq_(150);\nvar warning = _dereq_(157);\n\nvar ReactPropTypesSecret = _dereq_(162);\nvar checkPropTypes = _dereq_(159);\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n  /* global Symbol */\n  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n  /**\n   * Returns the iterator method function contained on the iterable object.\n   *\n   * Be sure to invoke the function with the iterable as context:\n   *\n   *     var iteratorFn = getIteratorFn(myIterable);\n   *     if (iteratorFn) {\n   *       var iterator = iteratorFn.call(myIterable);\n   *       ...\n   *     }\n   *\n   * @param {?object} maybeIterable\n   * @return {?function}\n   */\n  function getIteratorFn(maybeIterable) {\n    var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n    if (typeof iteratorFn === 'function') {\n      return iteratorFn;\n    }\n  }\n\n  /**\n   * Collection of methods that allow declaration and validation of props that are\n   * supplied to React components. Example usage:\n   *\n   *   var Props = require('ReactPropTypes');\n   *   var MyArticle = React.createClass({\n   *     propTypes: {\n   *       // An optional string prop named \"description\".\n   *       description: Props.string,\n   *\n   *       // A required enum prop named \"category\".\n   *       category: Props.oneOf(['News','Photos']).isRequired,\n   *\n   *       // A prop named \"dialog\" that requires an instance of Dialog.\n   *       dialog: Props.instanceOf(Dialog).isRequired\n   *     },\n   *     render: function() { ... }\n   *   });\n   *\n   * A more formal specification of how these methods are used:\n   *\n   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n   *   decl := ReactPropTypes.{type}(.isRequired)?\n   *\n   * Each and every declaration produces a function with the same signature. This\n   * allows the creation of custom validation functions. For example:\n   *\n   *  var MyLink = React.createClass({\n   *    propTypes: {\n   *      // An optional string or URI prop named \"href\".\n   *      href: function(props, propName, componentName) {\n   *        var propValue = props[propName];\n   *        if (propValue != null && typeof propValue !== 'string' &&\n   *            !(propValue instanceof URI)) {\n   *          return new Error(\n   *            'Expected a string or an URI for ' + propName + ' in ' +\n   *            componentName\n   *          );\n   *        }\n   *      }\n   *    },\n   *    render: function() {...}\n   *  });\n   *\n   * @internal\n   */\n\n  var ANONYMOUS = '<<anonymous>>';\n\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n  var ReactPropTypes = {\n    array: createPrimitiveTypeChecker('array'),\n    bool: createPrimitiveTypeChecker('boolean'),\n    func: createPrimitiveTypeChecker('function'),\n    number: createPrimitiveTypeChecker('number'),\n    object: createPrimitiveTypeChecker('object'),\n    string: createPrimitiveTypeChecker('string'),\n    symbol: createPrimitiveTypeChecker('symbol'),\n\n    any: createAnyTypeChecker(),\n    arrayOf: createArrayOfTypeChecker,\n    element: createElementTypeChecker(),\n    instanceOf: createInstanceTypeChecker,\n    node: createNodeChecker(),\n    objectOf: createObjectOfTypeChecker,\n    oneOf: createEnumTypeChecker,\n    oneOfType: createUnionTypeChecker,\n    shape: createShapeTypeChecker\n  };\n\n  /**\n   * inlined Object.is polyfill to avoid requiring consumers ship their own\n   * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n   */\n  /*eslint-disable no-self-compare*/\n  function is(x, y) {\n    // SameValue algorithm\n    if (x === y) {\n      // Steps 1-5, 7-10\n      // Steps 6.b-6.e: +0 != -0\n      return x !== 0 || 1 / x === 1 / y;\n    } else {\n      // Step 6.a: NaN == NaN\n      return x !== x && y !== y;\n    }\n  }\n  /*eslint-enable no-self-compare*/\n\n  /**\n   * We use an Error-like object for backward compatibility as people may call\n   * PropTypes directly and inspect their output. However, we don't use real\n   * Errors anymore. We don't inspect their stack anyway, and creating them\n   * is prohibitively expensive if they are created too often, such as what\n   * happens in oneOfType() for any type before the one that matched.\n   */\n  function PropTypeError(message) {\n    this.message = message;\n    this.stack = '';\n  }\n  // Make `instanceof Error` still work for returned errors.\n  PropTypeError.prototype = Error.prototype;\n\n  function createChainableTypeChecker(validate) {\n    if (\"development\" !== 'production') {\n      var manualPropTypeCallCache = {};\n    }\n    function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n      componentName = componentName || ANONYMOUS;\n      propFullName = propFullName || propName;\n\n      if (secret !== ReactPropTypesSecret) {\n        if (throwOnDirectAccess) {\n          // New behavior only for users of `prop-types` package\n          invariant(\n            false,\n            'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n            'Use `PropTypes.checkPropTypes()` to call them. ' +\n            'Read more at http://fb.me/use-check-prop-types'\n          );\n        } else if (\"development\" !== 'production' && typeof console !== 'undefined') {\n          // Old behavior for people using React.PropTypes\n          var cacheKey = componentName + ':' + propName;\n          if (!manualPropTypeCallCache[cacheKey]) {\n            warning(\n              false,\n              'You are manually calling a React.PropTypes validation ' +\n              'function for the `%s` prop on `%s`. This is deprecated ' +\n              'and will throw in the standalone `prop-types` package. ' +\n              'You may be seeing this warning due to a third-party PropTypes ' +\n              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',\n              propFullName,\n              componentName\n            );\n            manualPropTypeCallCache[cacheKey] = true;\n          }\n        }\n      }\n      if (props[propName] == null) {\n        if (isRequired) {\n          if (props[propName] === null) {\n            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n          }\n          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n        }\n        return null;\n      } else {\n        return validate(props, propName, componentName, location, propFullName);\n      }\n    }\n\n    var chainedCheckType = checkType.bind(null, false);\n    chainedCheckType.isRequired = checkType.bind(null, true);\n\n    return chainedCheckType;\n  }\n\n  function createPrimitiveTypeChecker(expectedType) {\n    function validate(props, propName, componentName, location, propFullName, secret) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== expectedType) {\n        // `propValue` being instance of, say, date/regexp, pass the 'object'\n        // check, but we can offer a more precise error message here rather than\n        // 'of type `object`'.\n        var preciseType = getPreciseType(propValue);\n\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createAnyTypeChecker() {\n    return createChainableTypeChecker(emptyFunction.thatReturnsNull);\n  }\n\n  function createArrayOfTypeChecker(typeChecker) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (typeof typeChecker !== 'function') {\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n      }\n      var propValue = props[propName];\n      if (!Array.isArray(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n      }\n      for (var i = 0; i < propValue.length; i++) {\n        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n        if (error instanceof Error) {\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createElementTypeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      if (!isValidElement(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createInstanceTypeChecker(expectedClass) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (!(props[propName] instanceof expectedClass)) {\n        var expectedClassName = expectedClass.name || ANONYMOUS;\n        var actualClassName = getClassName(props[propName]);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createEnumTypeChecker(expectedValues) {\n    if (!Array.isArray(expectedValues)) {\n      \"development\" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n      return emptyFunction.thatReturnsNull;\n    }\n\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      for (var i = 0; i < expectedValues.length; i++) {\n        if (is(propValue, expectedValues[i])) {\n          return null;\n        }\n      }\n\n      var valuesString = JSON.stringify(expectedValues);\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createObjectOfTypeChecker(typeChecker) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (typeof typeChecker !== 'function') {\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n      }\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n      }\n      for (var key in propValue) {\n        if (propValue.hasOwnProperty(key)) {\n          var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n          if (error instanceof Error) {\n            return error;\n          }\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createUnionTypeChecker(arrayOfTypeCheckers) {\n    if (!Array.isArray(arrayOfTypeCheckers)) {\n      \"development\" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n      return emptyFunction.thatReturnsNull;\n    }\n\n    function validate(props, propName, componentName, location, propFullName) {\n      for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n        var checker = arrayOfTypeCheckers[i];\n        if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n          return null;\n        }\n      }\n\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createNodeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (!isNode(props[propName])) {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createShapeTypeChecker(shapeTypes) {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n      }\n      for (var key in shapeTypes) {\n        var checker = shapeTypes[key];\n        if (!checker) {\n          continue;\n        }\n        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n        if (error) {\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function isNode(propValue) {\n    switch (typeof propValue) {\n      case 'number':\n      case 'string':\n      case 'undefined':\n        return true;\n      case 'boolean':\n        return !propValue;\n      case 'object':\n        if (Array.isArray(propValue)) {\n          return propValue.every(isNode);\n        }\n        if (propValue === null || isValidElement(propValue)) {\n          return true;\n        }\n\n        var iteratorFn = getIteratorFn(propValue);\n        if (iteratorFn) {\n          var iterator = iteratorFn.call(propValue);\n          var step;\n          if (iteratorFn !== propValue.entries) {\n            while (!(step = iterator.next()).done) {\n              if (!isNode(step.value)) {\n                return false;\n              }\n            }\n          } else {\n            // Iterator will provide entry [k,v] tuples rather than values.\n            while (!(step = iterator.next()).done) {\n              var entry = step.value;\n              if (entry) {\n                if (!isNode(entry[1])) {\n                  return false;\n                }\n              }\n            }\n          }\n        } else {\n          return false;\n        }\n\n        return true;\n      default:\n        return false;\n    }\n  }\n\n  function isSymbol(propType, propValue) {\n    // Native Symbol.\n    if (propType === 'symbol') {\n      return true;\n    }\n\n    // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n    if (propValue['@@toStringTag'] === 'Symbol') {\n      return true;\n    }\n\n    // Fallback for non-spec compliant Symbols which are polyfilled.\n    if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n      return true;\n    }\n\n    return false;\n  }\n\n  // Equivalent of `typeof` but with special handling for array and regexp.\n  function getPropType(propValue) {\n    var propType = typeof propValue;\n    if (Array.isArray(propValue)) {\n      return 'array';\n    }\n    if (propValue instanceof RegExp) {\n      // Old webkits (at least until Android 4.0) return 'function' rather than\n      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n      // passes PropTypes.object.\n      return 'object';\n    }\n    if (isSymbol(propType, propValue)) {\n      return 'symbol';\n    }\n    return propType;\n  }\n\n  // This handles more types than `getPropType`. Only used for error messages.\n  // See `createPrimitiveTypeChecker`.\n  function getPreciseType(propValue) {\n    var propType = getPropType(propValue);\n    if (propType === 'object') {\n      if (propValue instanceof Date) {\n        return 'date';\n      } else if (propValue instanceof RegExp) {\n        return 'regexp';\n      }\n    }\n    return propType;\n  }\n\n  // Returns class name of the object, if any.\n  function getClassName(propValue) {\n    if (!propValue.constructor || !propValue.constructor.name) {\n      return ANONYMOUS;\n    }\n    return propValue.constructor.name;\n  }\n\n  ReactPropTypes.checkPropTypes = checkPropTypes;\n  ReactPropTypes.PropTypes = ReactPropTypes;\n\n  return ReactPropTypes;\n};\n\n},{\"142\":142,\"150\":150,\"157\":157,\"159\":159,\"162\":162}],162:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n},{}]},{},[48])(48)\n});\n});\n"
  },
  {
    "path": "test/bench/fixtures/react.js",
    "content": " /**\n  * React v15.5.4\n  */\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n  var escapeRegex = /[=:]/g;\n  var escaperLookup = {\n    '=': '=0',\n    ':': '=2'\n  };\n  var escapedString = ('' + key).replace(escapeRegex, function (match) {\n    return escaperLookup[match];\n  });\n\n  return '$' + escapedString;\n}\n\n/**\n * Unescape and unwrap key for human-readable display\n *\n * @param {string} key to unescape.\n * @return {string} the unescaped key.\n */\nfunction unescape(key) {\n  var unescapeRegex = /(=0|=2)/g;\n  var unescaperLookup = {\n    '=0': '=',\n    '=2': ':'\n  };\n  var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);\n\n  return ('' + keySubstring).replace(unescapeRegex, function (match) {\n    return unescaperLookup[match];\n  });\n}\n\nvar KeyEscapeUtils = {\n  escape: escape,\n  unescape: unescape\n};\n\nmodule.exports = KeyEscapeUtils;\n},{}],2:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(25);\n\nvar invariant = _dereq_(29);\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\nvar oneArgumentPooler = function (copyFieldsFrom) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, copyFieldsFrom);\n    return instance;\n  } else {\n    return new Klass(copyFieldsFrom);\n  }\n};\n\nvar twoArgumentPooler = function (a1, a2) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, a1, a2);\n    return instance;\n  } else {\n    return new Klass(a1, a2);\n  }\n};\n\nvar threeArgumentPooler = function (a1, a2, a3) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, a1, a2, a3);\n    return instance;\n  } else {\n    return new Klass(a1, a2, a3);\n  }\n};\n\nvar fourArgumentPooler = function (a1, a2, a3, a4) {\n  var Klass = this;\n  if (Klass.instancePool.length) {\n    var instance = Klass.instancePool.pop();\n    Klass.call(instance, a1, a2, a3, a4);\n    return instance;\n  } else {\n    return new Klass(a1, a2, a3, a4);\n  }\n};\n\nvar standardReleaser = function (instance) {\n  var Klass = this;\n  !(instance instanceof Klass) ? \"development\" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;\n  instance.destructor();\n  if (Klass.instancePool.length < Klass.poolSize) {\n    Klass.instancePool.push(instance);\n  }\n};\n\nvar DEFAULT_POOL_SIZE = 10;\nvar DEFAULT_POOLER = oneArgumentPooler;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nvar addPoolingTo = function (CopyConstructor, pooler) {\n  // Casting as any so that flow ignores the actual implementation and trusts\n  // it to match the type we declared\n  var NewKlass = CopyConstructor;\n  NewKlass.instancePool = [];\n  NewKlass.getPooled = pooler || DEFAULT_POOLER;\n  if (!NewKlass.poolSize) {\n    NewKlass.poolSize = DEFAULT_POOL_SIZE;\n  }\n  NewKlass.release = standardReleaser;\n  return NewKlass;\n};\n\nvar PooledClass = {\n  addPoolingTo: addPoolingTo,\n  oneArgumentPooler: oneArgumentPooler,\n  twoArgumentPooler: twoArgumentPooler,\n  threeArgumentPooler: threeArgumentPooler,\n  fourArgumentPooler: fourArgumentPooler\n};\n\nmodule.exports = PooledClass;\n},{\"25\":25,\"29\":29}],3:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(31);\n\nvar ReactChildren = _dereq_(4);\nvar ReactComponent = _dereq_(6);\nvar ReactPureComponent = _dereq_(17);\nvar ReactClass = _dereq_(5);\nvar ReactDOMFactories = _dereq_(9);\nvar ReactElement = _dereq_(10);\nvar ReactPropTypes = _dereq_(15);\nvar ReactVersion = _dereq_(19);\n\nvar onlyChild = _dereq_(24);\nvar warning = _dereq_(30);\n\nvar createElement = ReactElement.createElement;\nvar createFactory = ReactElement.createFactory;\nvar cloneElement = ReactElement.cloneElement;\n\nif (\"development\" !== 'production') {\n  var canDefineProperty = _dereq_(20);\n  var ReactElementValidator = _dereq_(12);\n  var didWarnPropTypesDeprecated = false;\n  createElement = ReactElementValidator.createElement;\n  createFactory = ReactElementValidator.createFactory;\n  cloneElement = ReactElementValidator.cloneElement;\n}\n\nvar __spread = _assign;\n\nif (\"development\" !== 'production') {\n  var warned = false;\n  __spread = function () {\n    \"development\" !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;\n    warned = true;\n    return _assign.apply(null, arguments);\n  };\n}\n\nvar React = {\n\n  // Modern\n\n  Children: {\n    map: ReactChildren.map,\n    forEach: ReactChildren.forEach,\n    count: ReactChildren.count,\n    toArray: ReactChildren.toArray,\n    only: onlyChild\n  },\n\n  Component: ReactComponent,\n  PureComponent: ReactPureComponent,\n\n  createElement: createElement,\n  cloneElement: cloneElement,\n  isValidElement: ReactElement.isValidElement,\n\n  // Classic\n\n  PropTypes: ReactPropTypes,\n  createClass: ReactClass.createClass,\n  createFactory: createFactory,\n  createMixin: function (mixin) {\n    // Currently a noop. Will be used to validate and trace mixins.\n    return mixin;\n  },\n\n  // This looks DOM specific but these are actually isomorphic helpers\n  // since they are just generating DOM strings.\n  DOM: ReactDOMFactories,\n\n  version: ReactVersion,\n\n  // Deprecated hook for JSX spread, don't use this for anything.\n  __spread: __spread\n};\n\n// TODO: Fix tests so that this deprecation warning doesn't cause failures.\nif (\"development\" !== 'production') {\n  if (canDefineProperty) {\n    Object.defineProperty(React, 'PropTypes', {\n      get: function () {\n        \"development\" !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;\n        didWarnPropTypesDeprecated = true;\n        return ReactPropTypes;\n      }\n    });\n  }\n}\n\nmodule.exports = React;\n},{\"10\":10,\"12\":12,\"15\":15,\"17\":17,\"19\":19,\"20\":20,\"24\":24,\"30\":30,\"31\":31,\"4\":4,\"5\":5,\"6\":6,\"9\":9}],4:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar PooledClass = _dereq_(2);\nvar ReactElement = _dereq_(10);\n\nvar emptyFunction = _dereq_(27);\nvar traverseAllChildren = _dereq_(26);\n\nvar twoArgumentPooler = PooledClass.twoArgumentPooler;\nvar fourArgumentPooler = PooledClass.fourArgumentPooler;\n\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction escapeUserProvidedKey(text) {\n  return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\n/**\n * PooledClass representing the bookkeeping associated with performing a child\n * traversal. Allows avoiding binding callbacks.\n *\n * @constructor ForEachBookKeeping\n * @param {!function} forEachFunction Function to perform traversal with.\n * @param {?*} forEachContext Context to perform context with.\n */\nfunction ForEachBookKeeping(forEachFunction, forEachContext) {\n  this.func = forEachFunction;\n  this.context = forEachContext;\n  this.count = 0;\n}\nForEachBookKeeping.prototype.destructor = function () {\n  this.func = null;\n  this.context = null;\n  this.count = 0;\n};\nPooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n  var func = bookKeeping.func,\n      context = bookKeeping.context;\n\n  func.call(context, child, bookKeeping.count++);\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n  if (children == null) {\n    return children;\n  }\n  var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);\n  traverseAllChildren(children, forEachSingleChild, traverseContext);\n  ForEachBookKeeping.release(traverseContext);\n}\n\n/**\n * PooledClass representing the bookkeeping associated with performing a child\n * mapping. Allows avoiding binding callbacks.\n *\n * @constructor MapBookKeeping\n * @param {!*} mapResult Object containing the ordered map of results.\n * @param {!function} mapFunction Function to perform mapping with.\n * @param {?*} mapContext Context to perform mapping with.\n */\nfunction MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {\n  this.result = mapResult;\n  this.keyPrefix = keyPrefix;\n  this.func = mapFunction;\n  this.context = mapContext;\n  this.count = 0;\n}\nMapBookKeeping.prototype.destructor = function () {\n  this.result = null;\n  this.keyPrefix = null;\n  this.func = null;\n  this.context = null;\n  this.count = 0;\n};\nPooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n  var result = bookKeeping.result,\n      keyPrefix = bookKeeping.keyPrefix,\n      func = bookKeeping.func,\n      context = bookKeeping.context;\n\n\n  var mappedChild = func.call(context, child, bookKeeping.count++);\n  if (Array.isArray(mappedChild)) {\n    mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);\n  } else if (mappedChild != null) {\n    if (ReactElement.isValidElement(mappedChild)) {\n      mappedChild = ReactElement.cloneAndReplaceKey(mappedChild,\n      // Keep both the (mapped) and old keys if they differ, just as\n      // traverseAllChildren used to do for objects as children\n      keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n    }\n    result.push(mappedChild);\n  }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n  var escapedPrefix = '';\n  if (prefix != null) {\n    escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n  }\n  var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);\n  traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n  MapBookKeeping.release(traverseContext);\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n  if (children == null) {\n    return children;\n  }\n  var result = [];\n  mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n  return result;\n}\n\nfunction forEachSingleChildDummy(traverseContext, child, name) {\n  return null;\n}\n\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children, context) {\n  return traverseAllChildren(children, forEachSingleChildDummy, null);\n}\n\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray\n */\nfunction toArray(children) {\n  var result = [];\n  mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);\n  return result;\n}\n\nvar ReactChildren = {\n  forEach: forEachChildren,\n  map: mapChildren,\n  mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,\n  count: countChildren,\n  toArray: toArray\n};\n\nmodule.exports = ReactChildren;\n},{\"10\":10,\"2\":2,\"26\":26,\"27\":27}],5:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(25),\n    _assign = _dereq_(31);\n\nvar ReactComponent = _dereq_(6);\nvar ReactElement = _dereq_(10);\nvar ReactPropTypeLocationNames = _dereq_(14);\nvar ReactNoopUpdateQueue = _dereq_(13);\n\nvar emptyObject = _dereq_(28);\nvar invariant = _dereq_(29);\nvar warning = _dereq_(30);\n\nvar MIXINS_KEY = 'mixins';\n\n// Helper function to allow the creation of anonymous functions which do not\n// have .name set to the name of the variable being assigned to.\nfunction identity(fn) {\n  return fn;\n}\n\n/**\n * Policies that describe methods in `ReactClassInterface`.\n */\n\n\nvar injectedMixins = [];\n\n/**\n * Composite components are higher-level components that compose other composite\n * or host components.\n *\n * To create a new type of `ReactClass`, pass a specification of\n * your new class to `React.createClass`. The only requirement of your class\n * specification is that you implement a `render` method.\n *\n *   var MyComponent = React.createClass({\n *     render: function() {\n *       return <div>Hello World</div>;\n *     }\n *   });\n *\n * The class specification supports a specific protocol of methods that have\n * special meaning (e.g. `render`). See `ReactClassInterface` for\n * more the comprehensive protocol. Any other properties and methods in the\n * class specification will be available on the prototype.\n *\n * @interface ReactClassInterface\n * @internal\n */\nvar ReactClassInterface = {\n\n  /**\n   * An array of Mixin objects to include when defining your component.\n   *\n   * @type {array}\n   * @optional\n   */\n  mixins: 'DEFINE_MANY',\n\n  /**\n   * An object containing properties and methods that should be defined on\n   * the component's constructor instead of its prototype (static methods).\n   *\n   * @type {object}\n   * @optional\n   */\n  statics: 'DEFINE_MANY',\n\n  /**\n   * Definition of prop types for this component.\n   *\n   * @type {object}\n   * @optional\n   */\n  propTypes: 'DEFINE_MANY',\n\n  /**\n   * Definition of context types for this component.\n   *\n   * @type {object}\n   * @optional\n   */\n  contextTypes: 'DEFINE_MANY',\n\n  /**\n   * Definition of context types this component sets for its children.\n   *\n   * @type {object}\n   * @optional\n   */\n  childContextTypes: 'DEFINE_MANY',\n\n  // ==== Definition methods ====\n\n  /**\n   * Invoked when the component is mounted. Values in the mapping will be set on\n   * `this.props` if that prop is not specified (i.e. using an `in` check).\n   *\n   * This method is invoked before `getInitialState` and therefore cannot rely\n   * on `this.state` or use `this.setState`.\n   *\n   * @return {object}\n   * @optional\n   */\n  getDefaultProps: 'DEFINE_MANY_MERGED',\n\n  /**\n   * Invoked once before the component is mounted. The return value will be used\n   * as the initial value of `this.state`.\n   *\n   *   getInitialState: function() {\n   *     return {\n   *       isOn: false,\n   *       fooBaz: new BazFoo()\n   *     }\n   *   }\n   *\n   * @return {object}\n   * @optional\n   */\n  getInitialState: 'DEFINE_MANY_MERGED',\n\n  /**\n   * @return {object}\n   * @optional\n   */\n  getChildContext: 'DEFINE_MANY_MERGED',\n\n  /**\n   * Uses props from `this.props` and state from `this.state` to render the\n   * structure of the component.\n   *\n   * No guarantees are made about when or how often this method is invoked, so\n   * it must not have side effects.\n   *\n   *   render: function() {\n   *     var name = this.props.name;\n   *     return <div>Hello, {name}!</div>;\n   *   }\n   *\n   * @return {ReactComponent}\n   * @required\n   */\n  render: 'DEFINE_ONCE',\n\n  // ==== Delegate methods ====\n\n  /**\n   * Invoked when the component is initially created and about to be mounted.\n   * This may have side effects, but any external subscriptions or data created\n   * by this method must be cleaned up in `componentWillUnmount`.\n   *\n   * @optional\n   */\n  componentWillMount: 'DEFINE_MANY',\n\n  /**\n   * Invoked when the component has been mounted and has a DOM representation.\n   * However, there is no guarantee that the DOM node is in the document.\n   *\n   * Use this as an opportunity to operate on the DOM when the component has\n   * been mounted (initialized and rendered) for the first time.\n   *\n   * @param {DOMElement} rootNode DOM element representing the component.\n   * @optional\n   */\n  componentDidMount: 'DEFINE_MANY',\n\n  /**\n   * Invoked before the component receives new props.\n   *\n   * Use this as an opportunity to react to a prop transition by updating the\n   * state using `this.setState`. Current props are accessed via `this.props`.\n   *\n   *   componentWillReceiveProps: function(nextProps, nextContext) {\n   *     this.setState({\n   *       likesIncreasing: nextProps.likeCount > this.props.likeCount\n   *     });\n   *   }\n   *\n   * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop\n   * transition may cause a state change, but the opposite is not true. If you\n   * need it, you are probably looking for `componentWillUpdate`.\n   *\n   * @param {object} nextProps\n   * @optional\n   */\n  componentWillReceiveProps: 'DEFINE_MANY',\n\n  /**\n   * Invoked while deciding if the component should be updated as a result of\n   * receiving new props, state and/or context.\n   *\n   * Use this as an opportunity to `return false` when you're certain that the\n   * transition to the new props/state/context will not require a component\n   * update.\n   *\n   *   shouldComponentUpdate: function(nextProps, nextState, nextContext) {\n   *     return !equal(nextProps, this.props) ||\n   *       !equal(nextState, this.state) ||\n   *       !equal(nextContext, this.context);\n   *   }\n   *\n   * @param {object} nextProps\n   * @param {?object} nextState\n   * @param {?object} nextContext\n   * @return {boolean} True if the component should update.\n   * @optional\n   */\n  shouldComponentUpdate: 'DEFINE_ONCE',\n\n  /**\n   * Invoked when the component is about to update due to a transition from\n   * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`\n   * and `nextContext`.\n   *\n   * Use this as an opportunity to perform preparation before an update occurs.\n   *\n   * NOTE: You **cannot** use `this.setState()` in this method.\n   *\n   * @param {object} nextProps\n   * @param {?object} nextState\n   * @param {?object} nextContext\n   * @param {ReactReconcileTransaction} transaction\n   * @optional\n   */\n  componentWillUpdate: 'DEFINE_MANY',\n\n  /**\n   * Invoked when the component's DOM representation has been updated.\n   *\n   * Use this as an opportunity to operate on the DOM when the component has\n   * been updated.\n   *\n   * @param {object} prevProps\n   * @param {?object} prevState\n   * @param {?object} prevContext\n   * @param {DOMElement} rootNode DOM element representing the component.\n   * @optional\n   */\n  componentDidUpdate: 'DEFINE_MANY',\n\n  /**\n   * Invoked when the component is about to be removed from its parent and have\n   * its DOM representation destroyed.\n   *\n   * Use this as an opportunity to deallocate any external resources.\n   *\n   * NOTE: There is no `componentDidUnmount` since your component will have been\n   * destroyed by that point.\n   *\n   * @optional\n   */\n  componentWillUnmount: 'DEFINE_MANY',\n\n  // ==== Advanced methods ====\n\n  /**\n   * Updates the component's currently mounted DOM representation.\n   *\n   * By default, this implements React's rendering and reconciliation algorithm.\n   * Sophisticated clients may wish to override this.\n   *\n   * @param {ReactReconcileTransaction} transaction\n   * @internal\n   * @overridable\n   */\n  updateComponent: 'OVERRIDE_BASE'\n\n};\n\n/**\n * Mapping from class specification keys to special processing functions.\n *\n * Although these are declared like instance properties in the specification\n * when defining classes using `React.createClass`, they are actually static\n * and are accessible on the constructor instead of the prototype. Despite\n * being static, they must be defined outside of the \"statics\" key under\n * which all other static methods are defined.\n */\nvar RESERVED_SPEC_KEYS = {\n  displayName: function (Constructor, displayName) {\n    Constructor.displayName = displayName;\n  },\n  mixins: function (Constructor, mixins) {\n    if (mixins) {\n      for (var i = 0; i < mixins.length; i++) {\n        mixSpecIntoComponent(Constructor, mixins[i]);\n      }\n    }\n  },\n  childContextTypes: function (Constructor, childContextTypes) {\n    if (\"development\" !== 'production') {\n      validateTypeDef(Constructor, childContextTypes, 'childContext');\n    }\n    Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);\n  },\n  contextTypes: function (Constructor, contextTypes) {\n    if (\"development\" !== 'production') {\n      validateTypeDef(Constructor, contextTypes, 'context');\n    }\n    Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);\n  },\n  /**\n   * Special case getDefaultProps which should move into statics but requires\n   * automatic merging.\n   */\n  getDefaultProps: function (Constructor, getDefaultProps) {\n    if (Constructor.getDefaultProps) {\n      Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);\n    } else {\n      Constructor.getDefaultProps = getDefaultProps;\n    }\n  },\n  propTypes: function (Constructor, propTypes) {\n    if (\"development\" !== 'production') {\n      validateTypeDef(Constructor, propTypes, 'prop');\n    }\n    Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);\n  },\n  statics: function (Constructor, statics) {\n    mixStaticSpecIntoComponent(Constructor, statics);\n  },\n  autobind: function () {} };\n\nfunction validateTypeDef(Constructor, typeDef, location) {\n  for (var propName in typeDef) {\n    if (typeDef.hasOwnProperty(propName)) {\n      // use a warning instead of an invariant so components\n      // don't show up in prod but only in __DEV__\n      \"development\" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;\n    }\n  }\n}\n\nfunction validateMethodOverride(isAlreadyDefined, name) {\n  var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;\n\n  // Disallow overriding of base class methods unless explicitly allowed.\n  if (ReactClassMixin.hasOwnProperty(name)) {\n    !(specPolicy === 'OVERRIDE_BASE') ? \"development\" !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;\n  }\n\n  // Disallow defining methods more than once unless explicitly allowed.\n  if (isAlreadyDefined) {\n    !(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED') ? \"development\" !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;\n  }\n}\n\n/**\n * Mixin helper which handles policy validation and reserved\n * specification keys when building React classes.\n */\nfunction mixSpecIntoComponent(Constructor, spec) {\n  if (!spec) {\n    if (\"development\" !== 'production') {\n      var typeofSpec = typeof spec;\n      var isMixinValid = typeofSpec === 'object' && spec !== null;\n\n      \"development\" !== 'production' ? warning(isMixinValid, '%s: You\\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;\n    }\n\n    return;\n  }\n\n  !(typeof spec !== 'function') ? \"development\" !== 'production' ? invariant(false, 'ReactClass: You\\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;\n  !!ReactElement.isValidElement(spec) ? \"development\" !== 'production' ? invariant(false, 'ReactClass: You\\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;\n\n  var proto = Constructor.prototype;\n  var autoBindPairs = proto.__reactAutoBindPairs;\n\n  // By handling mixins before any other properties, we ensure the same\n  // chaining order is applied to methods with DEFINE_MANY policy, whether\n  // mixins are listed before or after these methods in the spec.\n  if (spec.hasOwnProperty(MIXINS_KEY)) {\n    RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);\n  }\n\n  for (var name in spec) {\n    if (!spec.hasOwnProperty(name)) {\n      continue;\n    }\n\n    if (name === MIXINS_KEY) {\n      // We have already handled mixins in a special case above.\n      continue;\n    }\n\n    var property = spec[name];\n    var isAlreadyDefined = proto.hasOwnProperty(name);\n    validateMethodOverride(isAlreadyDefined, name);\n\n    if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {\n      RESERVED_SPEC_KEYS[name](Constructor, property);\n    } else {\n      // Setup methods on prototype:\n      // The following member methods should not be automatically bound:\n      // 1. Expected ReactClass methods (in the \"interface\").\n      // 2. Overridden methods (that were mixed in).\n      var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);\n      var isFunction = typeof property === 'function';\n      var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;\n\n      if (shouldAutoBind) {\n        autoBindPairs.push(name, property);\n        proto[name] = property;\n      } else {\n        if (isAlreadyDefined) {\n          var specPolicy = ReactClassInterface[name];\n\n          // These cases should already be caught by validateMethodOverride.\n          !(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY')) ? \"development\" !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;\n\n          // For methods which are defined more than once, call the existing\n          // methods before calling the new property, merging if appropriate.\n          if (specPolicy === 'DEFINE_MANY_MERGED') {\n            proto[name] = createMergedResultFunction(proto[name], property);\n          } else if (specPolicy === 'DEFINE_MANY') {\n            proto[name] = createChainedFunction(proto[name], property);\n          }\n        } else {\n          proto[name] = property;\n          if (\"development\" !== 'production') {\n            // Add verbose displayName to the function, which helps when looking\n            // at profiling tools.\n            if (typeof property === 'function' && spec.displayName) {\n              proto[name].displayName = spec.displayName + '_' + name;\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nfunction mixStaticSpecIntoComponent(Constructor, statics) {\n  if (!statics) {\n    return;\n  }\n  for (var name in statics) {\n    var property = statics[name];\n    if (!statics.hasOwnProperty(name)) {\n      continue;\n    }\n\n    var isReserved = name in RESERVED_SPEC_KEYS;\n    !!isReserved ? \"development\" !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\\'t be on the \"statics\" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;\n\n    var isInherited = name in Constructor;\n    !!isInherited ? \"development\" !== 'production' ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;\n    Constructor[name] = property;\n  }\n}\n\n/**\n * Merge two objects, but throw if both contain the same key.\n *\n * @param {object} one The first object, which is mutated.\n * @param {object} two The second object\n * @return {object} one after it has been mutated to contain everything in two.\n */\nfunction mergeIntoWithNoDuplicateKeys(one, two) {\n  !(one && two && typeof one === 'object' && typeof two === 'object') ? \"development\" !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;\n\n  for (var key in two) {\n    if (two.hasOwnProperty(key)) {\n      !(one[key] === undefined) ? \"development\" !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;\n      one[key] = two[key];\n    }\n  }\n  return one;\n}\n\n/**\n * Creates a function that invokes two functions and merges their return values.\n *\n * @param {function} one Function to invoke first.\n * @param {function} two Function to invoke second.\n * @return {function} Function that invokes the two argument functions.\n * @private\n */\nfunction createMergedResultFunction(one, two) {\n  return function mergedResult() {\n    var a = one.apply(this, arguments);\n    var b = two.apply(this, arguments);\n    if (a == null) {\n      return b;\n    } else if (b == null) {\n      return a;\n    }\n    var c = {};\n    mergeIntoWithNoDuplicateKeys(c, a);\n    mergeIntoWithNoDuplicateKeys(c, b);\n    return c;\n  };\n}\n\n/**\n * Creates a function that invokes two functions and ignores their return vales.\n *\n * @param {function} one Function to invoke first.\n * @param {function} two Function to invoke second.\n * @return {function} Function that invokes the two argument functions.\n * @private\n */\nfunction createChainedFunction(one, two) {\n  return function chainedFunction() {\n    one.apply(this, arguments);\n    two.apply(this, arguments);\n  };\n}\n\n/**\n * Binds a method to the component.\n *\n * @param {object} component Component whose method is going to be bound.\n * @param {function} method Method to be bound.\n * @return {function} The bound method.\n */\nfunction bindAutoBindMethod(component, method) {\n  var boundMethod = method.bind(component);\n  if (\"development\" !== 'production') {\n    boundMethod.__reactBoundContext = component;\n    boundMethod.__reactBoundMethod = method;\n    boundMethod.__reactBoundArguments = null;\n    var componentName = component.constructor.displayName;\n    var _bind = boundMethod.bind;\n    boundMethod.bind = function (newThis) {\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      // User is trying to bind() an autobound method; we effectively will\n      // ignore the value of \"this\" that the user is trying to use, so\n      // let's warn.\n      if (newThis !== component && newThis !== null) {\n        \"development\" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;\n      } else if (!args.length) {\n        \"development\" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;\n        return boundMethod;\n      }\n      var reboundMethod = _bind.apply(boundMethod, arguments);\n      reboundMethod.__reactBoundContext = component;\n      reboundMethod.__reactBoundMethod = method;\n      reboundMethod.__reactBoundArguments = args;\n      return reboundMethod;\n    };\n  }\n  return boundMethod;\n}\n\n/**\n * Binds all auto-bound methods in a component.\n *\n * @param {object} component Component whose method is going to be bound.\n */\nfunction bindAutoBindMethods(component) {\n  var pairs = component.__reactAutoBindPairs;\n  for (var i = 0; i < pairs.length; i += 2) {\n    var autoBindKey = pairs[i];\n    var method = pairs[i + 1];\n    component[autoBindKey] = bindAutoBindMethod(component, method);\n  }\n}\n\n/**\n * Add more to the ReactClass base class. These are all legacy features and\n * therefore not already part of the modern ReactComponent.\n */\nvar ReactClassMixin = {\n\n  /**\n   * TODO: This will be deprecated because state should always keep a consistent\n   * type signature and the only use case for this, is to avoid that.\n   */\n  replaceState: function (newState, callback) {\n    this.updater.enqueueReplaceState(this, newState);\n    if (callback) {\n      this.updater.enqueueCallback(this, callback, 'replaceState');\n    }\n  },\n\n  /**\n   * Checks whether or not this composite component is mounted.\n   * @return {boolean} True if mounted, false otherwise.\n   * @protected\n   * @final\n   */\n  isMounted: function () {\n    return this.updater.isMounted(this);\n  }\n};\n\nvar ReactClassComponent = function () {};\n_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);\n\nvar didWarnDeprecated = false;\n\n/**\n * Module for creating composite components.\n *\n * @class ReactClass\n */\nvar ReactClass = {\n\n  /**\n   * Creates a composite component class given a class specification.\n   * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass\n   *\n   * @param {object} spec Class specification (which must define `render`).\n   * @return {function} Component constructor function.\n   * @public\n   */\n  createClass: function (spec) {\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;\n      didWarnDeprecated = true;\n    }\n\n    // To keep our warnings more understandable, we'll use a little hack here to\n    // ensure that Constructor.name !== 'Constructor'. This makes sure we don't\n    // unnecessarily identify a class without displayName as 'Constructor'.\n    var Constructor = identity(function (props, context, updater) {\n      // This constructor gets overridden by mocks. The argument is used\n      // by mocks to assert on what gets mounted.\n\n      if (\"development\" !== 'production') {\n        \"development\" !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;\n      }\n\n      // Wire up auto-binding\n      if (this.__reactAutoBindPairs.length) {\n        bindAutoBindMethods(this);\n      }\n\n      this.props = props;\n      this.context = context;\n      this.refs = emptyObject;\n      this.updater = updater || ReactNoopUpdateQueue;\n\n      this.state = null;\n\n      // ReactClasses doesn't have constructors. Instead, they use the\n      // getInitialState and componentWillMount methods for initialization.\n\n      var initialState = this.getInitialState ? this.getInitialState() : null;\n      if (\"development\" !== 'production') {\n        // We allow auto-mocks to proceed as if they're returning null.\n        if (initialState === undefined && this.getInitialState._isMockFunction) {\n          // This is probably bad practice. Consider warning here and\n          // deprecating this convenience.\n          initialState = null;\n        }\n      }\n      !(typeof initialState === 'object' && !Array.isArray(initialState)) ? \"development\" !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;\n\n      this.state = initialState;\n    });\n    Constructor.prototype = new ReactClassComponent();\n    Constructor.prototype.constructor = Constructor;\n    Constructor.prototype.__reactAutoBindPairs = [];\n\n    injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));\n\n    mixSpecIntoComponent(Constructor, spec);\n\n    // Initialize the defaultProps property after all mixins have been merged.\n    if (Constructor.getDefaultProps) {\n      Constructor.defaultProps = Constructor.getDefaultProps();\n    }\n\n    if (\"development\" !== 'production') {\n      // This is a tag to indicate that the use of these method names is ok,\n      // since it's used with createClass. If it's not, then it's likely a\n      // mistake so we'll warn you to use the static property, property\n      // initializer or constructor respectively.\n      if (Constructor.getDefaultProps) {\n        Constructor.getDefaultProps.isReactClassApproved = {};\n      }\n      if (Constructor.prototype.getInitialState) {\n        Constructor.prototype.getInitialState.isReactClassApproved = {};\n      }\n    }\n\n    !Constructor.prototype.render ? \"development\" !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;\n\n    if (\"development\" !== 'production') {\n      \"development\" !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0;\n      \"development\" !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;\n    }\n\n    // Reduce time spent doing lookups by setting these on the prototype.\n    for (var methodName in ReactClassInterface) {\n      if (!Constructor.prototype[methodName]) {\n        Constructor.prototype[methodName] = null;\n      }\n    }\n\n    return Constructor;\n  },\n\n  injection: {\n    injectMixin: function (mixin) {\n      injectedMixins.push(mixin);\n    }\n  }\n\n};\n\nmodule.exports = ReactClass;\n},{\"10\":10,\"13\":13,\"14\":14,\"25\":25,\"28\":28,\"29\":29,\"30\":30,\"31\":31,\"6\":6}],6:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(25);\n\nvar ReactNoopUpdateQueue = _dereq_(13);\n\nvar canDefineProperty = _dereq_(20);\nvar emptyObject = _dereq_(28);\nvar invariant = _dereq_(29);\nvar warning = _dereq_(30);\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction ReactComponent(props, context, updater) {\n  this.props = props;\n  this.context = context;\n  this.refs = emptyObject;\n  // We initialize the default updater but the real one gets injected by the\n  // renderer.\n  this.updater = updater || ReactNoopUpdateQueue;\n}\n\nReactComponent.prototype.isReactComponent = {};\n\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together.  You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n *        produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\nReactComponent.prototype.setState = function (partialState, callback) {\n  !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? \"development\" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;\n  this.updater.enqueueSetState(this, partialState);\n  if (callback) {\n    this.updater.enqueueCallback(this, callback, 'setState');\n  }\n};\n\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\nReactComponent.prototype.forceUpdate = function (callback) {\n  this.updater.enqueueForceUpdate(this);\n  if (callback) {\n    this.updater.enqueueCallback(this, callback, 'forceUpdate');\n  }\n};\n\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\nif (\"development\" !== 'production') {\n  var deprecatedAPIs = {\n    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n  };\n  var defineDeprecationWarning = function (methodName, info) {\n    if (canDefineProperty) {\n      Object.defineProperty(ReactComponent.prototype, methodName, {\n        get: function () {\n          \"development\" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;\n          return undefined;\n        }\n      });\n    }\n  };\n  for (var fnName in deprecatedAPIs) {\n    if (deprecatedAPIs.hasOwnProperty(fnName)) {\n      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n    }\n  }\n}\n\nmodule.exports = ReactComponent;\n},{\"13\":13,\"20\":20,\"25\":25,\"28\":28,\"29\":29,\"30\":30}],7:[function(_dereq_,module,exports){\n/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(25);\n\nvar ReactCurrentOwner = _dereq_(8);\n\nvar invariant = _dereq_(29);\nvar warning = _dereq_(30);\n\nfunction isNative(fn) {\n  // Based on isNative() from Lodash\n  var funcToString = Function.prototype.toString;\n  var hasOwnProperty = Object.prototype.hasOwnProperty;\n  var reIsNative = RegExp('^' + funcToString\n  // Take an example native function source for comparison\n  .call(hasOwnProperty)\n  // Strip regex characters so we can use it for regex\n  .replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n  // Remove hasOwnProperty from the template to make it generic\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n  try {\n    var source = funcToString.call(fn);\n    return reIsNative.test(source);\n  } catch (err) {\n    return false;\n  }\n}\n\nvar canUseCollections =\n// Array.from\ntypeof Array.from === 'function' &&\n// Map\ntypeof Map === 'function' && isNative(Map) &&\n// Map.prototype.keys\nMap.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&\n// Set\ntypeof Set === 'function' && isNative(Set) &&\n// Set.prototype.keys\nSet.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);\n\nvar setItem;\nvar getItem;\nvar removeItem;\nvar getItemIDs;\nvar addRoot;\nvar removeRoot;\nvar getRootIDs;\n\nif (canUseCollections) {\n  var itemMap = new Map();\n  var rootIDSet = new Set();\n\n  setItem = function (id, item) {\n    itemMap.set(id, item);\n  };\n  getItem = function (id) {\n    return itemMap.get(id);\n  };\n  removeItem = function (id) {\n    itemMap['delete'](id);\n  };\n  getItemIDs = function () {\n    return Array.from(itemMap.keys());\n  };\n\n  addRoot = function (id) {\n    rootIDSet.add(id);\n  };\n  removeRoot = function (id) {\n    rootIDSet['delete'](id);\n  };\n  getRootIDs = function () {\n    return Array.from(rootIDSet.keys());\n  };\n} else {\n  var itemByKey = {};\n  var rootByKey = {};\n\n  // Use non-numeric keys to prevent V8 performance issues:\n  // https://github.com/facebook/react/pull/7232\n  var getKeyFromID = function (id) {\n    return '.' + id;\n  };\n  var getIDFromKey = function (key) {\n    return parseInt(key.substr(1), 10);\n  };\n\n  setItem = function (id, item) {\n    var key = getKeyFromID(id);\n    itemByKey[key] = item;\n  };\n  getItem = function (id) {\n    var key = getKeyFromID(id);\n    return itemByKey[key];\n  };\n  removeItem = function (id) {\n    var key = getKeyFromID(id);\n    delete itemByKey[key];\n  };\n  getItemIDs = function () {\n    return Object.keys(itemByKey).map(getIDFromKey);\n  };\n\n  addRoot = function (id) {\n    var key = getKeyFromID(id);\n    rootByKey[key] = true;\n  };\n  removeRoot = function (id) {\n    var key = getKeyFromID(id);\n    delete rootByKey[key];\n  };\n  getRootIDs = function () {\n    return Object.keys(rootByKey).map(getIDFromKey);\n  };\n}\n\nvar unmountedIDs = [];\n\nfunction purgeDeep(id) {\n  var item = getItem(id);\n  if (item) {\n    var childIDs = item.childIDs;\n\n    removeItem(id);\n    childIDs.forEach(purgeDeep);\n  }\n}\n\nfunction describeComponentFrame(name, source, ownerName) {\n  return '\\n    in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');\n}\n\nfunction getDisplayName(element) {\n  if (element == null) {\n    return '#empty';\n  } else if (typeof element === 'string' || typeof element === 'number') {\n    return '#text';\n  } else if (typeof element.type === 'string') {\n    return element.type;\n  } else {\n    return element.type.displayName || element.type.name || 'Unknown';\n  }\n}\n\nfunction describeID(id) {\n  var name = ReactComponentTreeHook.getDisplayName(id);\n  var element = ReactComponentTreeHook.getElement(id);\n  var ownerID = ReactComponentTreeHook.getOwnerID(id);\n  var ownerName;\n  if (ownerID) {\n    ownerName = ReactComponentTreeHook.getDisplayName(ownerID);\n  }\n  \"development\" !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;\n  return describeComponentFrame(name, element && element._source, ownerName);\n}\n\nvar ReactComponentTreeHook = {\n  onSetChildren: function (id, nextChildIDs) {\n    var item = getItem(id);\n    !item ? \"development\" !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;\n    item.childIDs = nextChildIDs;\n\n    for (var i = 0; i < nextChildIDs.length; i++) {\n      var nextChildID = nextChildIDs[i];\n      var nextChild = getItem(nextChildID);\n      !nextChild ? \"development\" !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;\n      !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? \"development\" !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;\n      !nextChild.isMounted ? \"development\" !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;\n      if (nextChild.parentID == null) {\n        nextChild.parentID = id;\n        // TODO: This shouldn't be necessary but mounting a new root during in\n        // componentWillMount currently causes not-yet-mounted components to\n        // be purged from our tree data so their parent id is missing.\n      }\n      !(nextChild.parentID === id) ? \"development\" !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;\n    }\n  },\n  onBeforeMountComponent: function (id, element, parentID) {\n    var item = {\n      element: element,\n      parentID: parentID,\n      text: null,\n      childIDs: [],\n      isMounted: false,\n      updateCount: 0\n    };\n    setItem(id, item);\n  },\n  onBeforeUpdateComponent: function (id, element) {\n    var item = getItem(id);\n    if (!item || !item.isMounted) {\n      // We may end up here as a result of setState() in componentWillUnmount().\n      // In this case, ignore the element.\n      return;\n    }\n    item.element = element;\n  },\n  onMountComponent: function (id) {\n    var item = getItem(id);\n    !item ? \"development\" !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;\n    item.isMounted = true;\n    var isRoot = item.parentID === 0;\n    if (isRoot) {\n      addRoot(id);\n    }\n  },\n  onUpdateComponent: function (id) {\n    var item = getItem(id);\n    if (!item || !item.isMounted) {\n      // We may end up here as a result of setState() in componentWillUnmount().\n      // In this case, ignore the element.\n      return;\n    }\n    item.updateCount++;\n  },\n  onUnmountComponent: function (id) {\n    var item = getItem(id);\n    if (item) {\n      // We need to check if it exists.\n      // `item` might not exist if it is inside an error boundary, and a sibling\n      // error boundary child threw while mounting. Then this instance never\n      // got a chance to mount, but it still gets an unmounting event during\n      // the error boundary cleanup.\n      item.isMounted = false;\n      var isRoot = item.parentID === 0;\n      if (isRoot) {\n        removeRoot(id);\n      }\n    }\n    unmountedIDs.push(id);\n  },\n  purgeUnmountedComponents: function () {\n    if (ReactComponentTreeHook._preventPurging) {\n      // Should only be used for testing.\n      return;\n    }\n\n    for (var i = 0; i < unmountedIDs.length; i++) {\n      var id = unmountedIDs[i];\n      purgeDeep(id);\n    }\n    unmountedIDs.length = 0;\n  },\n  isMounted: function (id) {\n    var item = getItem(id);\n    return item ? item.isMounted : false;\n  },\n  getCurrentStackAddendum: function (topElement) {\n    var info = '';\n    if (topElement) {\n      var name = getDisplayName(topElement);\n      var owner = topElement._owner;\n      info += describeComponentFrame(name, topElement._source, owner && owner.getName());\n    }\n\n    var currentOwner = ReactCurrentOwner.current;\n    var id = currentOwner && currentOwner._debugID;\n\n    info += ReactComponentTreeHook.getStackAddendumByID(id);\n    return info;\n  },\n  getStackAddendumByID: function (id) {\n    var info = '';\n    while (id) {\n      info += describeID(id);\n      id = ReactComponentTreeHook.getParentID(id);\n    }\n    return info;\n  },\n  getChildIDs: function (id) {\n    var item = getItem(id);\n    return item ? item.childIDs : [];\n  },\n  getDisplayName: function (id) {\n    var element = ReactComponentTreeHook.getElement(id);\n    if (!element) {\n      return null;\n    }\n    return getDisplayName(element);\n  },\n  getElement: function (id) {\n    var item = getItem(id);\n    return item ? item.element : null;\n  },\n  getOwnerID: function (id) {\n    var element = ReactComponentTreeHook.getElement(id);\n    if (!element || !element._owner) {\n      return null;\n    }\n    return element._owner._debugID;\n  },\n  getParentID: function (id) {\n    var item = getItem(id);\n    return item ? item.parentID : null;\n  },\n  getSource: function (id) {\n    var item = getItem(id);\n    var element = item ? item.element : null;\n    var source = element != null ? element._source : null;\n    return source;\n  },\n  getText: function (id) {\n    var element = ReactComponentTreeHook.getElement(id);\n    if (typeof element === 'string') {\n      return element;\n    } else if (typeof element === 'number') {\n      return '' + element;\n    } else {\n      return null;\n    }\n  },\n  getUpdateCount: function (id) {\n    var item = getItem(id);\n    return item ? item.updateCount : 0;\n  },\n\n\n  getRootIDs: getRootIDs,\n  getRegisteredIDs: getItemIDs\n};\n\nmodule.exports = ReactComponentTreeHook;\n},{\"25\":25,\"29\":29,\"30\":30,\"8\":8}],8:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n\n  /**\n   * @internal\n   * @type {ReactComponent}\n   */\n  current: null\n\n};\n\nmodule.exports = ReactCurrentOwner;\n},{}],9:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactElement = _dereq_(10);\n\n/**\n * Create a factory that creates HTML tag elements.\n *\n * @private\n */\nvar createDOMFactory = ReactElement.createFactory;\nif (\"development\" !== 'production') {\n  var ReactElementValidator = _dereq_(12);\n  createDOMFactory = ReactElementValidator.createFactory;\n}\n\n/**\n * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.\n * This is also accessible via `React.DOM`.\n *\n * @public\n */\nvar ReactDOMFactories = {\n  a: createDOMFactory('a'),\n  abbr: createDOMFactory('abbr'),\n  address: createDOMFactory('address'),\n  area: createDOMFactory('area'),\n  article: createDOMFactory('article'),\n  aside: createDOMFactory('aside'),\n  audio: createDOMFactory('audio'),\n  b: createDOMFactory('b'),\n  base: createDOMFactory('base'),\n  bdi: createDOMFactory('bdi'),\n  bdo: createDOMFactory('bdo'),\n  big: createDOMFactory('big'),\n  blockquote: createDOMFactory('blockquote'),\n  body: createDOMFactory('body'),\n  br: createDOMFactory('br'),\n  button: createDOMFactory('button'),\n  canvas: createDOMFactory('canvas'),\n  caption: createDOMFactory('caption'),\n  cite: createDOMFactory('cite'),\n  code: createDOMFactory('code'),\n  col: createDOMFactory('col'),\n  colgroup: createDOMFactory('colgroup'),\n  data: createDOMFactory('data'),\n  datalist: createDOMFactory('datalist'),\n  dd: createDOMFactory('dd'),\n  del: createDOMFactory('del'),\n  details: createDOMFactory('details'),\n  dfn: createDOMFactory('dfn'),\n  dialog: createDOMFactory('dialog'),\n  div: createDOMFactory('div'),\n  dl: createDOMFactory('dl'),\n  dt: createDOMFactory('dt'),\n  em: createDOMFactory('em'),\n  embed: createDOMFactory('embed'),\n  fieldset: createDOMFactory('fieldset'),\n  figcaption: createDOMFactory('figcaption'),\n  figure: createDOMFactory('figure'),\n  footer: createDOMFactory('footer'),\n  form: createDOMFactory('form'),\n  h1: createDOMFactory('h1'),\n  h2: createDOMFactory('h2'),\n  h3: createDOMFactory('h3'),\n  h4: createDOMFactory('h4'),\n  h5: createDOMFactory('h5'),\n  h6: createDOMFactory('h6'),\n  head: createDOMFactory('head'),\n  header: createDOMFactory('header'),\n  hgroup: createDOMFactory('hgroup'),\n  hr: createDOMFactory('hr'),\n  html: createDOMFactory('html'),\n  i: createDOMFactory('i'),\n  iframe: createDOMFactory('iframe'),\n  img: createDOMFactory('img'),\n  input: createDOMFactory('input'),\n  ins: createDOMFactory('ins'),\n  kbd: createDOMFactory('kbd'),\n  keygen: createDOMFactory('keygen'),\n  label: createDOMFactory('label'),\n  legend: createDOMFactory('legend'),\n  li: createDOMFactory('li'),\n  link: createDOMFactory('link'),\n  main: createDOMFactory('main'),\n  map: createDOMFactory('map'),\n  mark: createDOMFactory('mark'),\n  menu: createDOMFactory('menu'),\n  menuitem: createDOMFactory('menuitem'),\n  meta: createDOMFactory('meta'),\n  meter: createDOMFactory('meter'),\n  nav: createDOMFactory('nav'),\n  noscript: createDOMFactory('noscript'),\n  object: createDOMFactory('object'),\n  ol: createDOMFactory('ol'),\n  optgroup: createDOMFactory('optgroup'),\n  option: createDOMFactory('option'),\n  output: createDOMFactory('output'),\n  p: createDOMFactory('p'),\n  param: createDOMFactory('param'),\n  picture: createDOMFactory('picture'),\n  pre: createDOMFactory('pre'),\n  progress: createDOMFactory('progress'),\n  q: createDOMFactory('q'),\n  rp: createDOMFactory('rp'),\n  rt: createDOMFactory('rt'),\n  ruby: createDOMFactory('ruby'),\n  s: createDOMFactory('s'),\n  samp: createDOMFactory('samp'),\n  script: createDOMFactory('script'),\n  section: createDOMFactory('section'),\n  select: createDOMFactory('select'),\n  small: createDOMFactory('small'),\n  source: createDOMFactory('source'),\n  span: createDOMFactory('span'),\n  strong: createDOMFactory('strong'),\n  style: createDOMFactory('style'),\n  sub: createDOMFactory('sub'),\n  summary: createDOMFactory('summary'),\n  sup: createDOMFactory('sup'),\n  table: createDOMFactory('table'),\n  tbody: createDOMFactory('tbody'),\n  td: createDOMFactory('td'),\n  textarea: createDOMFactory('textarea'),\n  tfoot: createDOMFactory('tfoot'),\n  th: createDOMFactory('th'),\n  thead: createDOMFactory('thead'),\n  time: createDOMFactory('time'),\n  title: createDOMFactory('title'),\n  tr: createDOMFactory('tr'),\n  track: createDOMFactory('track'),\n  u: createDOMFactory('u'),\n  ul: createDOMFactory('ul'),\n  'var': createDOMFactory('var'),\n  video: createDOMFactory('video'),\n  wbr: createDOMFactory('wbr'),\n\n  // SVG\n  circle: createDOMFactory('circle'),\n  clipPath: createDOMFactory('clipPath'),\n  defs: createDOMFactory('defs'),\n  ellipse: createDOMFactory('ellipse'),\n  g: createDOMFactory('g'),\n  image: createDOMFactory('image'),\n  line: createDOMFactory('line'),\n  linearGradient: createDOMFactory('linearGradient'),\n  mask: createDOMFactory('mask'),\n  path: createDOMFactory('path'),\n  pattern: createDOMFactory('pattern'),\n  polygon: createDOMFactory('polygon'),\n  polyline: createDOMFactory('polyline'),\n  radialGradient: createDOMFactory('radialGradient'),\n  rect: createDOMFactory('rect'),\n  stop: createDOMFactory('stop'),\n  svg: createDOMFactory('svg'),\n  text: createDOMFactory('text'),\n  tspan: createDOMFactory('tspan')\n};\n\nmodule.exports = ReactDOMFactories;\n},{\"10\":10,\"12\":12}],10:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(31);\n\nvar ReactCurrentOwner = _dereq_(8);\n\nvar warning = _dereq_(30);\nvar canDefineProperty = _dereq_(20);\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar REACT_ELEMENT_TYPE = _dereq_(11);\n\nvar RESERVED_PROPS = {\n  key: true,\n  ref: true,\n  __self: true,\n  __source: true\n};\n\nvar specialPropKeyWarningShown, specialPropRefWarningShown;\n\nfunction hasValidRef(config) {\n  if (\"development\" !== 'production') {\n    if (hasOwnProperty.call(config, 'ref')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n  return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n  if (\"development\" !== 'production') {\n    if (hasOwnProperty.call(config, 'key')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n  return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n  var warnAboutAccessingKey = function () {\n    if (!specialPropKeyWarningShown) {\n      specialPropKeyWarningShown = true;\n      \"development\" !== 'production' ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;\n    }\n  };\n  warnAboutAccessingKey.isReactWarning = true;\n  Object.defineProperty(props, 'key', {\n    get: warnAboutAccessingKey,\n    configurable: true\n  });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n  var warnAboutAccessingRef = function () {\n    if (!specialPropRefWarningShown) {\n      specialPropRefWarningShown = true;\n      \"development\" !== 'production' ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;\n    }\n  };\n  warnAboutAccessingRef.isReactWarning = true;\n  Object.defineProperty(props, 'ref', {\n    get: warnAboutAccessingRef,\n    configurable: true\n  });\n}\n\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n  var element = {\n    // This tag allow us to uniquely identify this as a React Element\n    $$typeof: REACT_ELEMENT_TYPE,\n\n    // Built-in properties that belong on the element\n    type: type,\n    key: key,\n    ref: ref,\n    props: props,\n\n    // Record the component responsible for creating this element.\n    _owner: owner\n  };\n\n  if (\"development\" !== 'production') {\n    // The validation flag is currently mutative. We put it on\n    // an external backing store so that we can freeze the whole object.\n    // This can be replaced with a WeakMap once they are implemented in\n    // commonly used development environments.\n    element._store = {};\n\n    // To make comparing ReactElements easier for testing purposes, we make\n    // the validation flag non-enumerable (where possible, which should\n    // include every environment we run tests in), so the test framework\n    // ignores it.\n    if (canDefineProperty) {\n      Object.defineProperty(element._store, 'validated', {\n        configurable: false,\n        enumerable: false,\n        writable: true,\n        value: false\n      });\n      // self and source are DEV only properties.\n      Object.defineProperty(element, '_self', {\n        configurable: false,\n        enumerable: false,\n        writable: false,\n        value: self\n      });\n      // Two elements created in two different places should be considered\n      // equal for testing purposes and therefore we hide it from enumeration.\n      Object.defineProperty(element, '_source', {\n        configurable: false,\n        enumerable: false,\n        writable: false,\n        value: source\n      });\n    } else {\n      element._store.validated = false;\n      element._self = self;\n      element._source = source;\n    }\n    if (Object.freeze) {\n      Object.freeze(element.props);\n      Object.freeze(element);\n    }\n  }\n\n  return element;\n};\n\n/**\n * Create and return a new ReactElement of the given type.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement\n */\nReactElement.createElement = function (type, config, children) {\n  var propName;\n\n  // Reserved names are extracted\n  var props = {};\n\n  var key = null;\n  var ref = null;\n  var self = null;\n  var source = null;\n\n  if (config != null) {\n    if (hasValidRef(config)) {\n      ref = config.ref;\n    }\n    if (hasValidKey(config)) {\n      key = '' + config.key;\n    }\n\n    self = config.__self === undefined ? null : config.__self;\n    source = config.__source === undefined ? null : config.__source;\n    // Remaining properties are added to a new props object\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        props[propName] = config[propName];\n      }\n    }\n  }\n\n  // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n  var childrenLength = arguments.length - 2;\n  if (childrenLength === 1) {\n    props.children = children;\n  } else if (childrenLength > 1) {\n    var childArray = Array(childrenLength);\n    for (var i = 0; i < childrenLength; i++) {\n      childArray[i] = arguments[i + 2];\n    }\n    if (\"development\" !== 'production') {\n      if (Object.freeze) {\n        Object.freeze(childArray);\n      }\n    }\n    props.children = childArray;\n  }\n\n  // Resolve default props\n  if (type && type.defaultProps) {\n    var defaultProps = type.defaultProps;\n    for (propName in defaultProps) {\n      if (props[propName] === undefined) {\n        props[propName] = defaultProps[propName];\n      }\n    }\n  }\n  if (\"development\" !== 'production') {\n    if (key || ref) {\n      if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {\n        var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n        if (key) {\n          defineKeyPropWarningGetter(props, displayName);\n        }\n        if (ref) {\n          defineRefPropWarningGetter(props, displayName);\n        }\n      }\n    }\n  }\n  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n};\n\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory\n */\nReactElement.createFactory = function (type) {\n  var factory = ReactElement.createElement.bind(null, type);\n  // Expose the type on the factory and the prototype so that it can be\n  // easily accessed on elements. E.g. `<Foo />.type === Foo`.\n  // This should not be named `constructor` since this may not be the function\n  // that created the element, and it may not even be a constructor.\n  // Legacy hook TODO: Warn if this is accessed\n  factory.type = type;\n  return factory;\n};\n\nReactElement.cloneAndReplaceKey = function (oldElement, newKey) {\n  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n\n  return newElement;\n};\n\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement\n */\nReactElement.cloneElement = function (element, config, children) {\n  var propName;\n\n  // Original props are copied\n  var props = _assign({}, element.props);\n\n  // Reserved names are extracted\n  var key = element.key;\n  var ref = element.ref;\n  // Self is preserved since the owner is preserved.\n  var self = element._self;\n  // Source is preserved since cloneElement is unlikely to be targeted by a\n  // transpiler, and the original source is probably a better indicator of the\n  // true owner.\n  var source = element._source;\n\n  // Owner will be preserved, unless ref is overridden\n  var owner = element._owner;\n\n  if (config != null) {\n    if (hasValidRef(config)) {\n      // Silently steal the ref from the parent.\n      ref = config.ref;\n      owner = ReactCurrentOwner.current;\n    }\n    if (hasValidKey(config)) {\n      key = '' + config.key;\n    }\n\n    // Remaining properties override existing props\n    var defaultProps;\n    if (element.type && element.type.defaultProps) {\n      defaultProps = element.type.defaultProps;\n    }\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        if (config[propName] === undefined && defaultProps !== undefined) {\n          // Resolve default props\n          props[propName] = defaultProps[propName];\n        } else {\n          props[propName] = config[propName];\n        }\n      }\n    }\n  }\n\n  // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n  var childrenLength = arguments.length - 2;\n  if (childrenLength === 1) {\n    props.children = children;\n  } else if (childrenLength > 1) {\n    var childArray = Array(childrenLength);\n    for (var i = 0; i < childrenLength; i++) {\n      childArray[i] = arguments[i + 2];\n    }\n    props.children = childArray;\n  }\n\n  return ReactElement(element.type, key, ref, self, source, owner, props);\n};\n\n/**\n * Verifies the object is a ReactElement.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a valid component.\n * @final\n */\nReactElement.isValidElement = function (object) {\n  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n};\n\nmodule.exports = ReactElement;\n},{\"11\":11,\"20\":20,\"30\":30,\"31\":31,\"8\":8}],11:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n// The Symbol used to tag the ReactElement type. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\n\nvar REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;\n\nmodule.exports = REACT_ELEMENT_TYPE;\n},{}],12:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/**\n * ReactElementValidator provides a wrapper around a element factory\n * which validates the props passed to the element. This is intended to be\n * used only in DEV and could be replaced by a static type checker for languages\n * that support it.\n */\n\n'use strict';\n\nvar ReactCurrentOwner = _dereq_(8);\nvar ReactComponentTreeHook = _dereq_(7);\nvar ReactElement = _dereq_(10);\n\nvar checkReactTypeSpec = _dereq_(21);\n\nvar canDefineProperty = _dereq_(20);\nvar getIteratorFn = _dereq_(22);\nvar warning = _dereq_(30);\n\nfunction getDeclarationErrorAddendum() {\n  if (ReactCurrentOwner.current) {\n    var name = ReactCurrentOwner.current.getName();\n    if (name) {\n      return ' Check the render method of `' + name + '`.';\n    }\n  }\n  return '';\n}\n\nfunction getSourceInfoErrorAddendum(elementProps) {\n  if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {\n    var source = elementProps.__source;\n    var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n    var lineNumber = source.lineNumber;\n    return ' Check your code at ' + fileName + ':' + lineNumber + '.';\n  }\n  return '';\n}\n\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n  var info = getDeclarationErrorAddendum();\n\n  if (!info) {\n    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n    if (parentName) {\n      info = ' Check the top-level render call using <' + parentName + '>.';\n    }\n  }\n  return info;\n}\n\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\nfunction validateExplicitKey(element, parentType) {\n  if (!element._store || element._store.validated || element.key != null) {\n    return;\n  }\n  element._store.validated = true;\n\n  var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});\n\n  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n  if (memoizer[currentComponentErrorInfo]) {\n    return;\n  }\n  memoizer[currentComponentErrorInfo] = true;\n\n  // Usually the current owner is the offender, but if it accepts children as a\n  // property, it may be the creator of the child that's responsible for\n  // assigning it a key.\n  var childOwner = '';\n  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n    // Give the component that originally created this child.\n    childOwner = ' It was passed a child from ' + element._owner.getName() + '.';\n  }\n\n  \"development\" !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;\n}\n\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\nfunction validateChildKeys(node, parentType) {\n  if (typeof node !== 'object') {\n    return;\n  }\n  if (Array.isArray(node)) {\n    for (var i = 0; i < node.length; i++) {\n      var child = node[i];\n      if (ReactElement.isValidElement(child)) {\n        validateExplicitKey(child, parentType);\n      }\n    }\n  } else if (ReactElement.isValidElement(node)) {\n    // This element was passed in a valid location.\n    if (node._store) {\n      node._store.validated = true;\n    }\n  } else if (node) {\n    var iteratorFn = getIteratorFn(node);\n    // Entry iterators provide implicit keys.\n    if (iteratorFn) {\n      if (iteratorFn !== node.entries) {\n        var iterator = iteratorFn.call(node);\n        var step;\n        while (!(step = iterator.next()).done) {\n          if (ReactElement.isValidElement(step.value)) {\n            validateExplicitKey(step.value, parentType);\n          }\n        }\n      }\n    }\n  }\n}\n\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\nfunction validatePropTypes(element) {\n  var componentClass = element.type;\n  if (typeof componentClass !== 'function') {\n    return;\n  }\n  var name = componentClass.displayName || componentClass.name;\n  if (componentClass.propTypes) {\n    checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);\n  }\n  if (typeof componentClass.getDefaultProps === 'function') {\n    \"development\" !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;\n  }\n}\n\nvar ReactElementValidator = {\n\n  createElement: function (type, props, children) {\n    var validType = typeof type === 'string' || typeof type === 'function';\n    // We warn in this case but don't throw. We expect the element creation to\n    // succeed and there will likely be errors in render.\n    if (!validType) {\n      if (typeof type !== 'function' && typeof type !== 'string') {\n        var info = '';\n        if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n          info += ' You likely forgot to export your component from the file ' + 'it\\'s defined in.';\n        }\n\n        var sourceInfo = getSourceInfoErrorAddendum(props);\n        if (sourceInfo) {\n          info += sourceInfo;\n        } else {\n          info += getDeclarationErrorAddendum();\n        }\n\n        info += ReactComponentTreeHook.getCurrentStackAddendum();\n\n        \"development\" !== 'production' ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;\n      }\n    }\n\n    var element = ReactElement.createElement.apply(this, arguments);\n\n    // The result can be nullish if a mock or a custom function is used.\n    // TODO: Drop this when these are no longer allowed as the type argument.\n    if (element == null) {\n      return element;\n    }\n\n    // Skip key warning if the type isn't valid since our key validation logic\n    // doesn't expect a non-string/function type and can throw confusing errors.\n    // We don't want exception behavior to differ between dev and prod.\n    // (Rendering will throw with a helpful message and as soon as the type is\n    // fixed, the key warnings will appear.)\n    if (validType) {\n      for (var i = 2; i < arguments.length; i++) {\n        validateChildKeys(arguments[i], type);\n      }\n    }\n\n    validatePropTypes(element);\n\n    return element;\n  },\n\n  createFactory: function (type) {\n    var validatedFactory = ReactElementValidator.createElement.bind(null, type);\n    // Legacy hook TODO: Warn if this is accessed\n    validatedFactory.type = type;\n\n    if (\"development\" !== 'production') {\n      if (canDefineProperty) {\n        Object.defineProperty(validatedFactory, 'type', {\n          enumerable: false,\n          get: function () {\n            \"development\" !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;\n            Object.defineProperty(this, 'type', {\n              value: type\n            });\n            return type;\n          }\n        });\n      }\n    }\n\n    return validatedFactory;\n  },\n\n  cloneElement: function (element, props, children) {\n    var newElement = ReactElement.cloneElement.apply(this, arguments);\n    for (var i = 2; i < arguments.length; i++) {\n      validateChildKeys(arguments[i], newElement.type);\n    }\n    validatePropTypes(newElement);\n    return newElement;\n  }\n\n};\n\nmodule.exports = ReactElementValidator;\n},{\"10\":10,\"20\":20,\"21\":21,\"22\":22,\"30\":30,\"7\":7,\"8\":8}],13:[function(_dereq_,module,exports){\n/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar warning = _dereq_(30);\n\nfunction warnNoop(publicInstance, callerName) {\n  if (\"development\" !== 'production') {\n    var constructor = publicInstance.constructor;\n    \"development\" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;\n  }\n}\n\n/**\n * This is the abstract API for an update queue.\n */\nvar ReactNoopUpdateQueue = {\n\n  /**\n   * Checks whether or not this composite component is mounted.\n   * @param {ReactClass} publicInstance The instance we want to test.\n   * @return {boolean} True if mounted, false otherwise.\n   * @protected\n   * @final\n   */\n  isMounted: function (publicInstance) {\n    return false;\n  },\n\n  /**\n   * Enqueue a callback that will be executed after all the pending updates\n   * have processed.\n   *\n   * @param {ReactClass} publicInstance The instance to use as `this` context.\n   * @param {?function} callback Called after state is updated.\n   * @internal\n   */\n  enqueueCallback: function (publicInstance, callback) {},\n\n  /**\n   * Forces an update. This should only be invoked when it is known with\n   * certainty that we are **not** in a DOM transaction.\n   *\n   * You may want to call this when you know that some deeper aspect of the\n   * component's state has changed but `setState` was not called.\n   *\n   * This will not invoke `shouldComponentUpdate`, but it will invoke\n   * `componentWillUpdate` and `componentDidUpdate`.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @internal\n   */\n  enqueueForceUpdate: function (publicInstance) {\n    warnNoop(publicInstance, 'forceUpdate');\n  },\n\n  /**\n   * Replaces all of the state. Always use this or `setState` to mutate state.\n   * You should treat `this.state` as immutable.\n   *\n   * There is no guarantee that `this.state` will be immediately updated, so\n   * accessing `this.state` after calling this method may return the old value.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} completeState Next state.\n   * @internal\n   */\n  enqueueReplaceState: function (publicInstance, completeState) {\n    warnNoop(publicInstance, 'replaceState');\n  },\n\n  /**\n   * Sets a subset of the state. This only exists because _pendingState is\n   * internal. This provides a merging strategy that is not available to deep\n   * properties which is confusing. TODO: Expose pendingState or don't use it\n   * during the merge.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} partialState Next partial state to be merged with state.\n   * @internal\n   */\n  enqueueSetState: function (publicInstance, partialState) {\n    warnNoop(publicInstance, 'setState');\n  }\n};\n\nmodule.exports = ReactNoopUpdateQueue;\n},{\"30\":30}],14:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactPropTypeLocationNames = {};\n\nif (\"development\" !== 'production') {\n  ReactPropTypeLocationNames = {\n    prop: 'prop',\n    context: 'context',\n    childContext: 'child context'\n  };\n}\n\nmodule.exports = ReactPropTypeLocationNames;\n},{}],15:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _require = _dereq_(10),\n    isValidElement = _require.isValidElement;\n\nvar factory = _dereq_(33);\n\nmodule.exports = factory(isValidElement);\n},{\"10\":10,\"33\":33}],16:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n},{}],17:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(31);\n\nvar ReactComponent = _dereq_(6);\nvar ReactNoopUpdateQueue = _dereq_(13);\n\nvar emptyObject = _dereq_(28);\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction ReactPureComponent(props, context, updater) {\n  // Duplicated from ReactComponent.\n  this.props = props;\n  this.context = context;\n  this.refs = emptyObject;\n  // We initialize the default updater but the real one gets injected by the\n  // renderer.\n  this.updater = updater || ReactNoopUpdateQueue;\n}\n\nfunction ComponentDummy() {}\nComponentDummy.prototype = ReactComponent.prototype;\nReactPureComponent.prototype = new ComponentDummy();\nReactPureComponent.prototype.constructor = ReactPureComponent;\n// Avoid an extra prototype jump for these methods.\n_assign(ReactPureComponent.prototype, ReactComponent.prototype);\nReactPureComponent.prototype.isPureReactComponent = true;\n\nmodule.exports = ReactPureComponent;\n},{\"13\":13,\"28\":28,\"31\":31,\"6\":6}],18:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = _dereq_(31);\n\nvar React = _dereq_(3);\n\n// `version` will be added here by the React module.\nvar ReactUMDEntry = _assign(React, {\n  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n    ReactCurrentOwner: _dereq_(8)\n  }\n});\n\nif (\"development\" !== 'production') {\n  _assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {\n    // ReactComponentTreeHook should not be included in production.\n    ReactComponentTreeHook: _dereq_(7),\n    getNextDebugID: _dereq_(23)\n  });\n}\n\nmodule.exports = ReactUMDEntry;\n},{\"23\":23,\"3\":3,\"31\":31,\"7\":7,\"8\":8}],19:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nmodule.exports = '15.5.4';\n},{}],20:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar canDefineProperty = false;\nif (\"development\" !== 'production') {\n  try {\n    // $FlowFixMe https://github.com/facebook/flow/issues/285\n    Object.defineProperty({}, 'x', { get: function () {} });\n    canDefineProperty = true;\n  } catch (x) {\n    // IE will fail on defineProperty\n  }\n}\n\nmodule.exports = canDefineProperty;\n},{}],21:[function(_dereq_,module,exports){\n(function (process){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(25);\n\nvar ReactPropTypeLocationNames = _dereq_(14);\nvar ReactPropTypesSecret = _dereq_(16);\n\nvar invariant = _dereq_(29);\nvar warning = _dereq_(30);\n\nvar ReactComponentTreeHook;\n\nif (typeof process !== 'undefined' && process.env && \"development\" === 'test') {\n  // Temporary hack.\n  // Inline requires don't work well with Jest:\n  // https://github.com/facebook/react/issues/7240\n  // Remove the inline requires when we don't need them anymore:\n  // https://github.com/facebook/react/pull/7178\n  ReactComponentTreeHook = _dereq_(7);\n}\n\nvar loggedTypeFailures = {};\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?object} element The React element that is being type-checked\n * @param {?number} debugID The React component instance that is being type-checked\n * @private\n */\nfunction checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {\n  for (var typeSpecName in typeSpecs) {\n    if (typeSpecs.hasOwnProperty(typeSpecName)) {\n      var error;\n      // Prop type validation may throw. In case they do, we don't want to\n      // fail the render phase where it didn't fail before. So we log it.\n      // After these have been cleaned up, we'll let them throw.\n      try {\n        // This is intentionally an invariant that gets caught. It's the same\n        // behavior as without this statement except with a better message.\n        !(typeof typeSpecs[typeSpecName] === 'function') ? \"development\" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;\n        error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n      } catch (ex) {\n        error = ex;\n      }\n      \"development\" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;\n      if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n        // Only monitor this failure once because there tends to be a lot of the\n        // same error.\n        loggedTypeFailures[error.message] = true;\n\n        var componentStackInfo = '';\n\n        if (\"development\" !== 'production') {\n          if (!ReactComponentTreeHook) {\n            ReactComponentTreeHook = _dereq_(7);\n          }\n          if (debugID !== null) {\n            componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);\n          } else if (element !== null) {\n            componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);\n          }\n        }\n\n        \"development\" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;\n      }\n    }\n  }\n}\n\nmodule.exports = checkReactTypeSpec;\n}).call(this,undefined)\n},{\"14\":14,\"16\":16,\"25\":25,\"29\":29,\"30\":30,\"7\":7}],22:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/* global Symbol */\n\nvar ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n/**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n *     var iteratorFn = getIteratorFn(myIterable);\n *     if (iteratorFn) {\n *       var iterator = iteratorFn.call(myIterable);\n *       ...\n *     }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\nfunction getIteratorFn(maybeIterable) {\n  var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n  if (typeof iteratorFn === 'function') {\n    return iteratorFn;\n  }\n}\n\nmodule.exports = getIteratorFn;\n},{}],23:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar nextDebugID = 1;\n\nfunction getNextDebugID() {\n  return nextDebugID++;\n}\n\nmodule.exports = getNextDebugID;\n},{}],24:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n'use strict';\n\nvar _prodInvariant = _dereq_(25);\n\nvar ReactElement = _dereq_(10);\n\nvar invariant = _dereq_(29);\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n  !ReactElement.isValidElement(children) ? \"development\" !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;\n  return children;\n}\n\nmodule.exports = onlyChild;\n},{\"10\":10,\"25\":25,\"29\":29}],25:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n'use strict';\n\n/**\n * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\n\nfunction reactProdInvariant(code) {\n  var argCount = arguments.length - 1;\n\n  var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;\n\n  for (var argIdx = 0; argIdx < argCount; argIdx++) {\n    message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);\n  }\n\n  message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';\n\n  var error = new Error(message);\n  error.name = 'Invariant Violation';\n  error.framesToPop = 1; // we don't care about reactProdInvariant's own frame\n\n  throw error;\n}\n\nmodule.exports = reactProdInvariant;\n},{}],26:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = _dereq_(25);\n\nvar ReactCurrentOwner = _dereq_(8);\nvar REACT_ELEMENT_TYPE = _dereq_(11);\n\nvar getIteratorFn = _dereq_(22);\nvar invariant = _dereq_(29);\nvar KeyEscapeUtils = _dereq_(1);\nvar warning = _dereq_(30);\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * This is inlined from ReactElement since this file is shared between\n * isomorphic and renderers. We could extract this to a\n *\n */\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n  // Do some typechecking here since we call this blindly. We want to ensure\n  // that we don't block potential future ES APIs.\n  if (component && typeof component === 'object' && component.key != null) {\n    // Explicit key\n    return KeyEscapeUtils.escape(component.key);\n  }\n  // Implicit key determined by the index in the set\n  return index.toString(36);\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n  var type = typeof children;\n\n  if (type === 'undefined' || type === 'boolean') {\n    // All of the above are perceived as null.\n    children = null;\n  }\n\n  if (children === null || type === 'string' || type === 'number' ||\n  // The following is inlined from ReactElement. This means we can optimize\n  // some checks. React Fiber also inlines this logic for similar purposes.\n  type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {\n    callback(traverseContext, children,\n    // If it's the only child, treat the name as if it was wrapped in an array\n    // so that it's consistent if the number of children grows.\n    nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n    return 1;\n  }\n\n  var child;\n  var nextName;\n  var subtreeCount = 0; // Count of children found in the current subtree.\n  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n  if (Array.isArray(children)) {\n    for (var i = 0; i < children.length; i++) {\n      child = children[i];\n      nextName = nextNamePrefix + getComponentKey(child, i);\n      subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n    }\n  } else {\n    var iteratorFn = getIteratorFn(children);\n    if (iteratorFn) {\n      var iterator = iteratorFn.call(children);\n      var step;\n      if (iteratorFn !== children.entries) {\n        var ii = 0;\n        while (!(step = iterator.next()).done) {\n          child = step.value;\n          nextName = nextNamePrefix + getComponentKey(child, ii++);\n          subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n        }\n      } else {\n        if (\"development\" !== 'production') {\n          var mapsAsChildrenAddendum = '';\n          if (ReactCurrentOwner.current) {\n            var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();\n            if (mapsAsChildrenOwnerName) {\n              mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';\n            }\n          }\n          \"development\" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;\n          didWarnAboutMaps = true;\n        }\n        // Iterator will provide entry [k,v] tuples rather than values.\n        while (!(step = iterator.next()).done) {\n          var entry = step.value;\n          if (entry) {\n            child = entry[1];\n            nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);\n            subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n          }\n        }\n      }\n    } else if (type === 'object') {\n      var addendum = '';\n      if (\"development\" !== 'production') {\n        addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';\n        if (children._isReactElement) {\n          addendum = ' It looks like you\\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';\n        }\n        if (ReactCurrentOwner.current) {\n          var name = ReactCurrentOwner.current.getName();\n          if (name) {\n            addendum += ' Check the render method of `' + name + '`.';\n          }\n        }\n      }\n      var childrenString = String(children);\n      !false ? \"development\" !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;\n    }\n  }\n\n  return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n  if (children == null) {\n    return 0;\n  }\n\n  return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\nmodule.exports = traverseAllChildren;\n},{\"1\":1,\"11\":11,\"22\":22,\"25\":25,\"29\":29,\"30\":30,\"8\":8}],27:[function(_dereq_,module,exports){\n\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n  return function () {\n    return arg;\n  };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n  return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n  return arg;\n};\n\nmodule.exports = emptyFunction;\n},{}],28:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (\"development\" !== 'production') {\n  Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;\n},{}],29:[function(_dereq_,module,exports){\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (\"development\" !== 'production') {\n  validateFormat = function validateFormat(format) {\n    if (format === undefined) {\n      throw new Error('invariant requires an error message argument');\n    }\n  };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n  validateFormat(format);\n\n  if (!condition) {\n    var error;\n    if (format === undefined) {\n      error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n    } else {\n      var args = [a, b, c, d, e, f];\n      var argIndex = 0;\n      error = new Error(format.replace(/%s/g, function () {\n        return args[argIndex++];\n      }));\n      error.name = 'Invariant Violation';\n    }\n\n    error.framesToPop = 1; // we don't care about invariant's own frame\n    throw error;\n  }\n}\n\nmodule.exports = invariant;\n},{}],30:[function(_dereq_,module,exports){\n/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyFunction = _dereq_(27);\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (\"development\" !== 'production') {\n  (function () {\n    var printWarning = function printWarning(format) {\n      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      var argIndex = 0;\n      var message = 'Warning: ' + format.replace(/%s/g, function () {\n        return args[argIndex++];\n      });\n      if (typeof console !== 'undefined') {\n        console.error(message);\n      }\n      try {\n        // --- Welcome to debugging React ---\n        // This error was thrown as a convenience so that you can use this stack\n        // to find the callsite that caused this warning to fire.\n        throw new Error(message);\n      } catch (x) {}\n    };\n\n    warning = function warning(condition, format) {\n      if (format === undefined) {\n        throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n      }\n\n      if (format.indexOf('Failed Composite propType: ') === 0) {\n        return; // Ignore CompositeComponent proptype check.\n      }\n\n      if (!condition) {\n        for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n          args[_key2 - 2] = arguments[_key2];\n        }\n\n        printWarning.apply(undefined, [format].concat(args));\n      }\n    };\n  })();\n}\n\nmodule.exports = warning;\n},{\"27\":27}],31:[function(_dereq_,module,exports){\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc');  // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n},{}],32:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nif (\"development\" !== 'production') {\n  var invariant = _dereq_(29);\n  var warning = _dereq_(30);\n  var ReactPropTypesSecret = _dereq_(35);\n  var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n  if (\"development\" !== 'production') {\n    for (var typeSpecName in typeSpecs) {\n      if (typeSpecs.hasOwnProperty(typeSpecName)) {\n        var error;\n        // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);\n          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n        } catch (ex) {\n          error = ex;\n        }\n        warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n        if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error.message] = true;\n\n          var stack = getStack ? getStack() : '';\n\n          warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n        }\n      }\n    }\n  }\n}\n\nmodule.exports = checkPropTypes;\n\n},{\"29\":29,\"30\":30,\"35\":35}],33:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n// React 15.5 references this module, and assumes PropTypes are still callable in production.\n// Therefore we re-export development-only version with all the PropTypes checks here.\n// However if one is migrating to the `prop-types` npm library, they will go through the\n// `index.js` entry point, and it will branch depending on the environment.\nvar factory = _dereq_(34);\nmodule.exports = function(isValidElement) {\n  // It is still allowed in 15.5.\n  var throwOnDirectAccess = false;\n  return factory(isValidElement, throwOnDirectAccess);\n};\n\n},{\"34\":34}],34:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar emptyFunction = _dereq_(27);\nvar invariant = _dereq_(29);\nvar warning = _dereq_(30);\n\nvar ReactPropTypesSecret = _dereq_(35);\nvar checkPropTypes = _dereq_(32);\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n  /* global Symbol */\n  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n  /**\n   * Returns the iterator method function contained on the iterable object.\n   *\n   * Be sure to invoke the function with the iterable as context:\n   *\n   *     var iteratorFn = getIteratorFn(myIterable);\n   *     if (iteratorFn) {\n   *       var iterator = iteratorFn.call(myIterable);\n   *       ...\n   *     }\n   *\n   * @param {?object} maybeIterable\n   * @return {?function}\n   */\n  function getIteratorFn(maybeIterable) {\n    var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n    if (typeof iteratorFn === 'function') {\n      return iteratorFn;\n    }\n  }\n\n  /**\n   * Collection of methods that allow declaration and validation of props that are\n   * supplied to React components. Example usage:\n   *\n   *   var Props = require('ReactPropTypes');\n   *   var MyArticle = React.createClass({\n   *     propTypes: {\n   *       // An optional string prop named \"description\".\n   *       description: Props.string,\n   *\n   *       // A required enum prop named \"category\".\n   *       category: Props.oneOf(['News','Photos']).isRequired,\n   *\n   *       // A prop named \"dialog\" that requires an instance of Dialog.\n   *       dialog: Props.instanceOf(Dialog).isRequired\n   *     },\n   *     render: function() { ... }\n   *   });\n   *\n   * A more formal specification of how these methods are used:\n   *\n   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n   *   decl := ReactPropTypes.{type}(.isRequired)?\n   *\n   * Each and every declaration produces a function with the same signature. This\n   * allows the creation of custom validation functions. For example:\n   *\n   *  var MyLink = React.createClass({\n   *    propTypes: {\n   *      // An optional string or URI prop named \"href\".\n   *      href: function(props, propName, componentName) {\n   *        var propValue = props[propName];\n   *        if (propValue != null && typeof propValue !== 'string' &&\n   *            !(propValue instanceof URI)) {\n   *          return new Error(\n   *            'Expected a string or an URI for ' + propName + ' in ' +\n   *            componentName\n   *          );\n   *        }\n   *      }\n   *    },\n   *    render: function() {...}\n   *  });\n   *\n   * @internal\n   */\n\n  var ANONYMOUS = '<<anonymous>>';\n\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n  var ReactPropTypes = {\n    array: createPrimitiveTypeChecker('array'),\n    bool: createPrimitiveTypeChecker('boolean'),\n    func: createPrimitiveTypeChecker('function'),\n    number: createPrimitiveTypeChecker('number'),\n    object: createPrimitiveTypeChecker('object'),\n    string: createPrimitiveTypeChecker('string'),\n    symbol: createPrimitiveTypeChecker('symbol'),\n\n    any: createAnyTypeChecker(),\n    arrayOf: createArrayOfTypeChecker,\n    element: createElementTypeChecker(),\n    instanceOf: createInstanceTypeChecker,\n    node: createNodeChecker(),\n    objectOf: createObjectOfTypeChecker,\n    oneOf: createEnumTypeChecker,\n    oneOfType: createUnionTypeChecker,\n    shape: createShapeTypeChecker\n  };\n\n  /**\n   * inlined Object.is polyfill to avoid requiring consumers ship their own\n   * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n   */\n  /*eslint-disable no-self-compare*/\n  function is(x, y) {\n    // SameValue algorithm\n    if (x === y) {\n      // Steps 1-5, 7-10\n      // Steps 6.b-6.e: +0 != -0\n      return x !== 0 || 1 / x === 1 / y;\n    } else {\n      // Step 6.a: NaN == NaN\n      return x !== x && y !== y;\n    }\n  }\n  /*eslint-enable no-self-compare*/\n\n  /**\n   * We use an Error-like object for backward compatibility as people may call\n   * PropTypes directly and inspect their output. However, we don't use real\n   * Errors anymore. We don't inspect their stack anyway, and creating them\n   * is prohibitively expensive if they are created too often, such as what\n   * happens in oneOfType() for any type before the one that matched.\n   */\n  function PropTypeError(message) {\n    this.message = message;\n    this.stack = '';\n  }\n  // Make `instanceof Error` still work for returned errors.\n  PropTypeError.prototype = Error.prototype;\n\n  function createChainableTypeChecker(validate) {\n    if (\"development\" !== 'production') {\n      var manualPropTypeCallCache = {};\n    }\n    function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n      componentName = componentName || ANONYMOUS;\n      propFullName = propFullName || propName;\n\n      if (secret !== ReactPropTypesSecret) {\n        if (throwOnDirectAccess) {\n          // New behavior only for users of `prop-types` package\n          invariant(\n            false,\n            'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n            'Use `PropTypes.checkPropTypes()` to call them. ' +\n            'Read more at http://fb.me/use-check-prop-types'\n          );\n        } else if (\"development\" !== 'production' && typeof console !== 'undefined') {\n          // Old behavior for people using React.PropTypes\n          var cacheKey = componentName + ':' + propName;\n          if (!manualPropTypeCallCache[cacheKey]) {\n            warning(\n              false,\n              'You are manually calling a React.PropTypes validation ' +\n              'function for the `%s` prop on `%s`. This is deprecated ' +\n              'and will throw in the standalone `prop-types` package. ' +\n              'You may be seeing this warning due to a third-party PropTypes ' +\n              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',\n              propFullName,\n              componentName\n            );\n            manualPropTypeCallCache[cacheKey] = true;\n          }\n        }\n      }\n      if (props[propName] == null) {\n        if (isRequired) {\n          if (props[propName] === null) {\n            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n          }\n          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n        }\n        return null;\n      } else {\n        return validate(props, propName, componentName, location, propFullName);\n      }\n    }\n\n    var chainedCheckType = checkType.bind(null, false);\n    chainedCheckType.isRequired = checkType.bind(null, true);\n\n    return chainedCheckType;\n  }\n\n  function createPrimitiveTypeChecker(expectedType) {\n    function validate(props, propName, componentName, location, propFullName, secret) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== expectedType) {\n        // `propValue` being instance of, say, date/regexp, pass the 'object'\n        // check, but we can offer a more precise error message here rather than\n        // 'of type `object`'.\n        var preciseType = getPreciseType(propValue);\n\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createAnyTypeChecker() {\n    return createChainableTypeChecker(emptyFunction.thatReturnsNull);\n  }\n\n  function createArrayOfTypeChecker(typeChecker) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (typeof typeChecker !== 'function') {\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n      }\n      var propValue = props[propName];\n      if (!Array.isArray(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n      }\n      for (var i = 0; i < propValue.length; i++) {\n        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n        if (error instanceof Error) {\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createElementTypeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      if (!isValidElement(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createInstanceTypeChecker(expectedClass) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (!(props[propName] instanceof expectedClass)) {\n        var expectedClassName = expectedClass.name || ANONYMOUS;\n        var actualClassName = getClassName(props[propName]);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createEnumTypeChecker(expectedValues) {\n    if (!Array.isArray(expectedValues)) {\n      \"development\" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n      return emptyFunction.thatReturnsNull;\n    }\n\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      for (var i = 0; i < expectedValues.length; i++) {\n        if (is(propValue, expectedValues[i])) {\n          return null;\n        }\n      }\n\n      var valuesString = JSON.stringify(expectedValues);\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createObjectOfTypeChecker(typeChecker) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (typeof typeChecker !== 'function') {\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n      }\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n      }\n      for (var key in propValue) {\n        if (propValue.hasOwnProperty(key)) {\n          var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n          if (error instanceof Error) {\n            return error;\n          }\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createUnionTypeChecker(arrayOfTypeCheckers) {\n    if (!Array.isArray(arrayOfTypeCheckers)) {\n      \"development\" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n      return emptyFunction.thatReturnsNull;\n    }\n\n    function validate(props, propName, componentName, location, propFullName) {\n      for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n        var checker = arrayOfTypeCheckers[i];\n        if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n          return null;\n        }\n      }\n\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createNodeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (!isNode(props[propName])) {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createShapeTypeChecker(shapeTypes) {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n      }\n      for (var key in shapeTypes) {\n        var checker = shapeTypes[key];\n        if (!checker) {\n          continue;\n        }\n        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n        if (error) {\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function isNode(propValue) {\n    switch (typeof propValue) {\n      case 'number':\n      case 'string':\n      case 'undefined':\n        return true;\n      case 'boolean':\n        return !propValue;\n      case 'object':\n        if (Array.isArray(propValue)) {\n          return propValue.every(isNode);\n        }\n        if (propValue === null || isValidElement(propValue)) {\n          return true;\n        }\n\n        var iteratorFn = getIteratorFn(propValue);\n        if (iteratorFn) {\n          var iterator = iteratorFn.call(propValue);\n          var step;\n          if (iteratorFn !== propValue.entries) {\n            while (!(step = iterator.next()).done) {\n              if (!isNode(step.value)) {\n                return false;\n              }\n            }\n          } else {\n            // Iterator will provide entry [k,v] tuples rather than values.\n            while (!(step = iterator.next()).done) {\n              var entry = step.value;\n              if (entry) {\n                if (!isNode(entry[1])) {\n                  return false;\n                }\n              }\n            }\n          }\n        } else {\n          return false;\n        }\n\n        return true;\n      default:\n        return false;\n    }\n  }\n\n  function isSymbol(propType, propValue) {\n    // Native Symbol.\n    if (propType === 'symbol') {\n      return true;\n    }\n\n    // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n    if (propValue['@@toStringTag'] === 'Symbol') {\n      return true;\n    }\n\n    // Fallback for non-spec compliant Symbols which are polyfilled.\n    if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n      return true;\n    }\n\n    return false;\n  }\n\n  // Equivalent of `typeof` but with special handling for array and regexp.\n  function getPropType(propValue) {\n    var propType = typeof propValue;\n    if (Array.isArray(propValue)) {\n      return 'array';\n    }\n    if (propValue instanceof RegExp) {\n      // Old webkits (at least until Android 4.0) return 'function' rather than\n      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n      // passes PropTypes.object.\n      return 'object';\n    }\n    if (isSymbol(propType, propValue)) {\n      return 'symbol';\n    }\n    return propType;\n  }\n\n  // This handles more types than `getPropType`. Only used for error messages.\n  // See `createPrimitiveTypeChecker`.\n  function getPreciseType(propValue) {\n    var propType = getPropType(propValue);\n    if (propType === 'object') {\n      if (propValue instanceof Date) {\n        return 'date';\n      } else if (propValue instanceof RegExp) {\n        return 'regexp';\n      }\n    }\n    return propType;\n  }\n\n  // Returns class name of the object, if any.\n  function getClassName(propValue) {\n    if (!propValue.constructor || !propValue.constructor.name) {\n      return ANONYMOUS;\n    }\n    return propValue.constructor.name;\n  }\n\n  ReactPropTypes.checkPropTypes = checkPropTypes;\n  ReactPropTypes.PropTypes = ReactPropTypes;\n\n  return ReactPropTypes;\n};\n\n},{\"27\":27,\"29\":29,\"30\":30,\"32\":32,\"35\":35}],35:[function(_dereq_,module,exports){\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n},{}]},{},[18])(18)\n});"
  },
  {
    "path": "test/bench/index.html",
    "content": "<!doctype html>\n<head>\n  <meta charset=\"utf-8\">\n  <title>Acorn benchmark</title>\n  <style>\n    table {\n      border-collapse: collapse;\n      text-align: center;\n      width: 100%;\n      table-layout: fixed;\n    }\n\n    thead>tr>th:first-child {\n      border: none;\n    }\n\n    th, td {\n      border: 1px solid black;\n      height: 20pt;\n    }\n\n    .error {\n      color: white;\n      background-color: red;\n    }\n\n    .slowest {\n      color: red;\n    }\n\n    .fastest {\n      color: green;\n    }\n  </style>\n</head>\n\n<h1>JavaScript parsers speed comparison</h1>\n\n<p>The table below will contain generic summary (ops/sec or type of error) for\neach parser/input combination. If something doesn't look right, you can find\nmore details in the devtools console afterwards.</p>\n\n<p>Note that having the developer tools open in browser <em>heavily</em>\ninfluences the numbers you get. In Chrome, the effect even lingers (in the tab)\nafter you close the developer tools. Load in a fresh tab to get (halfway) stable\nnumbers.</p>\n\n<button id=\"run\" disabled>Run benchmarks</button>\n\n<table>\n  <thead>\n    <tr id=\"parsers\">\n      <th id=\"init\">⌛</th>\n    </tr>\n  </thead>\n  <tbody id=\"inputs\"></tbody>\n</table>\n\n<script>\n(() => {\n  'use strict';\n\n  let runElem = document.getElementById('run');\n  let parsersElem = document.getElementById('parsers');\n  let inputsElem = document.getElementById('inputs');\n  let initElem = document.getElementById('init');\n\n  let worker = new Worker('worker.js');\n\n  worker.onmessage = ({ data: { parserNames, inputNames } }) => {\n    let checkBoxes = parserNames.map(parserName => {\n      let cbElem = document.createElement('input');\n      cbElem.type = 'checkbox';\n      cbElem.checked = parserName.startsWith('Acorn');\n\n      let labelElem = document.createElement('label');\n      labelElem.appendChild(cbElem);\n      labelElem.appendChild(document.createTextNode(parserName));\n\n      let thElem = document.createElement('th');\n      thElem.appendChild(labelElem);\n\n      parsersElem.appendChild(thElem);\n\n      return cbElem;\n    });\n\n    let rows = inputNames.map(name => {\n      let thElem = document.createElement('th');\n      thElem.textContent = name;\n\n      let trElem = document.createElement('tr');\n      trElem.appendChild(thElem);\n\n      let cells = parserNames.map(() => trElem.insertCell());\n\n      inputsElem.appendChild(trElem);\n\n      return cells;\n    });\n\n    runElem.addEventListener('click', () => {\n      let indices = [];\n\n      checkBoxes.forEach((cbElem, i) => {\n        if (cbElem.checked) {\n          indices.push(i);\n        }\n      });\n\n      if (!indices.length) {\n        alert('Choose at least one parser');\n        return;\n      }\n\n      checkBoxes.forEach(cbElem => {\n        cbElem.disabled = true;\n      });\n\n      runElem.disabled = true;\n\n      worker.onmessage = ({ data }) => {\n        if (data.type === 'versions') {\n          for (let i = 0; i < data.versions.length; i++) {\n            let version = data.versions[i];\n            if (version) {\n              parsersElem.cells[indices[i] + 1].appendChild(document.createTextNode(` ${version}`));\n            }\n          }\n          return;\n        }\n\n        let row = rows[data.row];\n\n        if (data.type === 'complete') {\n          ['slowest', 'fastest'].forEach(type => {\n            data[type].forEach(i => {\n              row[i].className = type;\n            });\n          });\n          return;\n        }\n\n        let cell = row[data.cell];\n\n        switch (data.type) {\n          case 'start': {\n            cell.textContent = '⌛';\n            initElem.style.visibility = 'hidden';\n            break;\n          }\n          case 'cycle': {\n            cell.textContent = data.text;\n            if (data.nextCell !== undefined) {\n              row[data.nextCell].textContent = '⌛';\n            }\n            break;\n          }\n          case 'error': {\n            cell.className = 'error';\n            cell.textContent = data.text;\n            break;\n          }\n        }\n      };\n\n      initElem.style.visibility = 'visible';\n\n      worker.postMessage(indices);\n    });\n\n    initElem.style.visibility = 'hidden';\n    runElem.disabled = false;\n  };\n})();\n</script>\n"
  },
  {
    "path": "test/bench/index.js",
    "content": "'use strict';\n\nconst BenchTable = require('benchtable');\nconst { parsers, parserNames, inputs, inputNames } = require('./common');\n\nconst yargs = require('yargs')\n  .help()\n  .alias('?', 'help');\n\nconst optionNames = new Map(parserNames.map(name => [\n  name,\n\n  name\n  .toLowerCase()\n  .replace(/[^a-z]+/g, '-')\n  .replace(/(^-|-$)/g, '')\n]));\n\nparserNames.forEach(name => {\n  yargs.option(optionNames.get(name), {\n    group: 'Benchmark parsers:',\n    describe: name,\n    type: 'boolean',\n    default: name.startsWith('Acorn') || undefined\n  });\n});\n\nconst { argv } = yargs;\n\nlet suite = new BenchTable('parsers', { isTransposed: true });\n\nparserNames.forEach(name => {\n  if (!argv[optionNames.get(name)]) {\n    return;\n  }\n  const { version, parse } = parsers[name]();\n  if (version) {\n    name += ` ${version}`;\n  }\n  console.log(`Enabled ${name}`);\n  suite.addFunction(name, parse);\n});\n\nconsole.log('Running benchmarks...');\n\ninputs.then(inputs => {\n  inputNames.forEach((inputName, i) => {\n    suite.addInput(inputName, [inputs[i]]);\n  });\n\n  suite\n  .on('cycle', function (event) {\n    console.log(event.target.toString());\n  })\n  .on('error', function (event) {\n    throw event.target.error;\n  })\n  .on('complete', function () {\n    console.log(suite.table.toString());\n  })\n  .run()\n}).catch(console.error);\n"
  },
  {
    "path": "test/bench/package.json",
    "content": "{\n  \"name\": \"acorn-benchmarks\",\n  \"description\": \"Acorn benchmarks meta-package\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"maintainers\": [\n    {\n      \"name\": \"Marijn Haverbeke\",\n      \"email\": \"marijnh@gmail.com\",\n      \"web\": \"http://marijnhaverbeke.nl\"\n    },\n    {\n      \"name\": \"Ingvar Stepanyan\",\n      \"email\": \"me@rreverser.com\",\n      \"web\": \"http://rreverser.com/\"\n    }\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/acornjs/acorn.git\"\n  },\n  \"license\": \"MIT\",\n  \"dependencies\": {\n    \"acorn\": \"*\",\n    \"babylon\": \"*\",\n    \"benchtable\": \"^0.1.0\",\n    \"esprima\": \"*\",\n    \"flow-parser\": \"*\",\n    \"traceur\": \"*\",\n    \"typescript\": \"*\",\n    \"yargs\": \"^8.0.1\"\n  }\n}\n"
  },
  {
    "path": "test/bench/worker.js",
    "content": "'use strict';\n\nimportScripts('common.js');\n\nconst Benchmark = req('benchmark').runInContext({\n  _: req('lodash')\n});\n\npostMessage({\n  parserNames,\n  inputNames\n});\n\nfunction getCell(bench) {\n  return parserNames.indexOf(bench.name);\n}\n\nonmessage = ({ data: indices }) => {\n  // Using block to workaround https://github.com/Microsoft/ChakraCore/issues/2606\n  inputs.then(inputs => {\n    let chosenParsers =\n      parserNames\n      .filter((_, i) => indices.includes(i))\n      .map(name => Object.assign(parsers[name](), { name }));\n\n    postMessage({\n      type: 'versions',\n      versions: chosenParsers.map(parser => parser.version)\n    });\n\n    inputs.forEach((input, row) => {\n      let suite = new Benchmark.Suite();\n\n      chosenParsers.forEach(({ name, parse }) => {\n        suite.add(name, () => parse(input));\n      });\n\n      let indicesIter = indices[Symbol.iterator]();\n\n      console.group(`Parsing ${inputNames[row]}`);\n\n      postMessage({\n        type: 'start',\n        row,\n        cell: indicesIter.next().value\n      });\n\n      function reportCell(bench, type, text) {\n        postMessage({\n          type,\n          row,\n          cell: getCell(bench),\n          nextCell: indicesIter.next().value,\n          text\n        });\n      }\n\n      suite\n      .on('cycle', ({ target: bench }) => {\n        console.log(bench.toString());\n        reportCell(bench, 'cycle', `${bench.hz.toFixed(2)} ops/sec`);\n      })\n      .on('error', ({ target: bench }) => {\n        console.error(bench.error);\n        reportCell(bench, 'error', bench.error.name);\n      })\n      .on('complete', ({ target }) => {\n        postMessage({\n          type: 'complete',\n          row,\n          slowest: suite.filter('slowest').map(getCell),\n          fastest: suite.filter('fastest').map(getCell)\n        });\n      })\n      .run();\n\n      console.groupEnd();\n    });\n  }).catch(console.error);\n};\n"
  },
  {
    "path": "test/driver.js",
    "content": "var tests = [];\n\nexports.test = function(code, ast, options) {\n  tests.push({code: code, ast: ast, options: options});\n};\nexports.testFail = function(code, message, options) {\n  tests.push({code: code, error: message, options: options});\n};\nexports.testAssert = function(code, assert, options) {\n  tests.push({code: code, assert: assert, options: options});\n};\n\nexports.runTests = function(config, callback) {\n  var parse = config.parse;\n\n  for (var i = 0; i < tests.length; ++i) {\n    var test = tests[i];\n    if (config.filter && !config.filter(test)) continue;\n    var testOpts = test.options || {locations: true};\n    if (!testOpts.ecmaVersion) testOpts.ecmaVersion = 5;\n    var expected = {};\n    if (expected.onComment = testOpts.onComment)\n      testOpts.onComment = []\n    if (expected.onToken = testOpts.onToken)\n      testOpts.onToken = [];\n\n    try {\n      var ast = parse(test.code, testOpts);\n    } catch(e) {\n      if (test.error) {\n        if (test.error.charAt(0) === \"~\" ? e.message.indexOf(test.error.slice(1)) > -1 : e.message === test.error)\n          callback(\"ok\", test.code);\n        else\n          callback(\"fail\", test.code, \"Expected error message: \" + test.error + \"\\nGot error message: \" + e.message);\n      } else {\n        if (!(e instanceof SyntaxError)) { console.log(e.stack); throw e; }\n        callback(\"error\", test.code, e.message || e.toString());\n      }\n      continue\n    }\n\n    if (test.error) {\n      if (config.loose) callback(\"ok\", test.code);\n      else callback(\"fail\", test.code, \"Expected error message: \" + test.error + \"\\nBut parsing succeeded.\");\n    } else if (test.assert) {\n      var error = test.assert(ast);\n      if (error) callback(\"fail\", test.code, \"\\n  Assertion failed:\\n \" + error);\n      else callback(\"ok\", test.code);\n    } else {\n      var mis = misMatch(test.ast, ast);\n      for (var name in expected) {\n        if (mis) break;\n        if (expected[name]) {\n          mis = misMatch(expected[name], testOpts[name]);\n          testOpts[name] = expected[name];\n        }\n      }\n      if (mis) callback(\"fail\", test.code, mis);\n      else callback(\"ok\", test.code);\n    }\n  }\n};\n\nfunction ppJSON(v) { return v instanceof RegExp ? v.toString() : (typeof v === \"bigint\" ? v.toString() : JSON.stringify(v, null, 2)); }\nfunction addPath(str, pt) {\n  if (str.charAt(str.length-1) === \")\")\n    return str.slice(0, str.length-1) + \"/\" + pt + \")\";\n  return str + \" (\" + pt + \")\";\n}\n\nvar misMatch = exports.misMatch = function(exp, act) {\n  if (!exp || !act || (typeof exp !== \"object\") || (typeof act !== \"object\")) {\n    if (exp !== act && typeof exp !== \"function\")\n      return ppJSON(exp) + \" !== \" + ppJSON(act);\n  } else if (exp instanceof RegExp || act instanceof RegExp) {\n    var left = ppJSON(exp), right = ppJSON(act);\n    if (left !== right) return left + \" !== \" + right;\n  } else if (exp.splice) {\n    if (!act.slice) return ppJSON(exp) + \" !== \" + ppJSON(act);\n    if (act.length != exp.length) return \"array length mismatch \" + exp.length + \" !== \" + act.length;\n    for (var i = 0; i < act.length; ++i) {\n      var mis = misMatch(exp[i], act[i]);\n      if (mis) return addPath(mis, i);\n    }\n  } else {\n    for (var prop in exp) {\n      var mis = misMatch(exp[prop], act[prop]);\n      if (mis) return addPath(mis, prop);\n    }\n  }\n};\n"
  },
  {
    "path": "test/run.js",
    "content": "(function() {\n  var driver = require(\"./driver.js\")\n  require(\"./tests.js\");\n  require(\"./tests-harmony.js\");\n  require(\"./tests-es7.js\");\n  require(\"./tests-asyncawait.js\");\n  require(\"./tests-await-top-level.js\");\n  require(\"./tests-trailing-commas-in-func.js\");\n  require(\"./tests-template-literal-revision.js\");\n  require(\"./tests-directive.js\");\n  require(\"./tests-rest-spread-properties.js\");\n  require(\"./tests-async-iteration.js\");\n  require(\"./tests-regexp.js\");\n  require(\"./tests-regexp-2018.js\");\n  require(\"./tests-regexp-2020.js\");\n  require(\"./tests-regexp-2022.js\");\n  require(\"./tests-regexp-2024.js\");\n  require(\"./tests-regexp-2025.js\");\n  require(\"./tests-json-superset.js\");\n  require(\"./tests-optional-catch-binding.js\");\n  require(\"./tests-bigint.js\");\n  require(\"./tests-dynamic-import.js\");\n  require(\"./tests-export-named.js\");\n  require(\"./tests-export-all-as-ns-from-source.js\");\n  require(\"./tests-import-meta.js\");\n  require(\"./tests-nullish-coalescing.js\");\n  require(\"./tests-optional-chaining.js\");\n  require(\"./tests-logical-assignment-operators.js\");\n  require(\"./tests-numeric-separators.js\");\n  require(\"./tests-class-features-2022.js\");\n  require(\"./tests-module-string-names.js\");\n  require(\"./tests-import-attributes.js\");\n  require(\"./tests-using.js\");\n  require(\"./tests-commonjs.js\");\n  var acorn = require(\"../acorn\")\n  var acorn_loose = require(\"../acorn-loose\")\n\n  var htmlLog = typeof document === \"object\" && document.getElementById('log');\n  var htmlGroup = htmlLog;\n\n  function group(name) {\n    if (htmlGroup) {\n      var parentGroup = htmlGroup;\n      htmlGroup = document.createElement(\"ul\");\n      var item = document.createElement(\"li\");\n      item.textContent = name;\n      item.appendChild(htmlGroup);\n      parentGroup.appendChild(item);\n    }\n    if (typeof console === \"object\" && console.group) {\n      console.group(name);\n    }\n  }\n\n  function groupEnd() {\n    if (htmlGroup) {\n      htmlGroup = htmlGroup.parentElement.parentElement;\n    }\n    if (typeof console === \"object\" && console.groupEnd) {\n      console.groupEnd(name);\n    }\n  }\n\n  function log(title, message) {\n    if (htmlGroup) {\n      var elem = document.createElement(\"li\");\n      elem.innerHTML = \"<b>\" + title + \"</b> \" + message;\n      htmlGroup.appendChild(elem);\n    }\n    if (typeof console === \"object\") console.log(title, message);\n  }\n\n  var stats, modes = {\n    Normal: {\n      config: {\n        parse: acorn.parse\n      }\n    },\n    Loose: {\n      config: {\n        parse: acorn_loose.parse,\n        loose: true,\n        filter: function (test) {\n          var opts = test.options || {};\n          return opts.loose !== false;\n        }\n      }\n    },\n\n    // Test whether the test for `sourceType: 'script'` produces the same result for `'commonjs'`.\n    'Normal with sourceType: commonjs': {\n      config: {\n        parse: (code, option) => acorn.parse(code, Object.assign({}, option, { sourceType: 'commonjs' })),\n        filter: function (test) {\n          var opts = test.options || {};\n          return opts.commonjs !== false && !opts.allowAwaitOutsideFunction && (!opts.sourceType || opts.sourceType === 'script');\n        }\n      }\n    },\n    'Loose with sourceType: commonjs': {\n      config: {\n        parse: (code, option) => acorn_loose.parse(code, Object.assign({}, option, { sourceType: 'commonjs' })),\n        loose: true,\n        filter: function (test) {\n          var opts = test.options || {};\n          if (opts.loose === false) return false;\n          return opts.commonjs !== false && !opts.allowAwaitOutsideFunction && (!opts.sourceType || opts.sourceType === 'script');\n        }\n      }\n    }\n  };\n\n  function report(state, code, message) {\n    if (state !== \"ok\") {++stats.failed; log(code, message);}\n    ++stats.testsRun;\n  }\n\n  group(\"Errors\");\n\n  for (var name in modes) {\n    group(name);\n    var mode = modes[name];\n    stats = mode.stats = {testsRun: 0, failed: 0};\n    var t0 = +new Date;\n    driver.runTests(mode.config, report);\n    mode.stats.duration = +new Date - t0;\n    groupEnd();\n  }\n\n  groupEnd();\n\n  function outputStats(name, stats) {\n    log(name + \":\", stats.testsRun + \" tests run in \" + stats.duration + \"ms; \" +\n      (stats.failed ? stats.failed + \" failures.\" : \"all passed.\"));\n  }\n\n  var total = {testsRun: 0, failed: 0, duration: 0};\n\n  group(\"Stats\");\n\n  for (var name in modes) {\n    var stats = modes[name].stats;\n    outputStats(name + \" parser\", stats);\n    for (var key in stats) total[key] += stats[key];\n  }\n\n  outputStats(\"Total\", total);\n\n  groupEnd();\n\n  if (total.failed && typeof process === \"object\") {\n    process.stdout.write(\"\", function() {\n      process.exit(1);\n    });\n  }\n})();\n"
  },
  {
    "path": "test/tests-async-iteration.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n//------------------------------------------------------------------------------\n// for-await-of\n//------------------------------------------------------------------------------\n\ntest(\"async function f() { for await (x of xs); }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 43,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 43,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 43,\n        \"body\": [\n          {\n            \"type\": \"ForOfStatement\",\n            \"start\": 21,\n            \"end\": 41,\n            \"await\": true,\n            \"left\": {\n              \"type\": \"Identifier\",\n              \"start\": 32,\n              \"end\": 33,\n              \"name\": \"x\"\n            },\n            \"right\": {\n              \"type\": \"Identifier\",\n              \"start\": 37,\n              \"end\": 39,\n              \"name\": \"xs\"\n            },\n            \"body\": {\n              \"type\": \"EmptyStatement\",\n              \"start\": 40,\n              \"end\": 41\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"async function f() { for await (var x of xs); }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 47,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 47,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 47,\n        \"body\": [\n          {\n            \"type\": \"ForOfStatement\",\n            \"start\": 21,\n            \"end\": 45,\n            \"await\": true,\n            \"left\": {\n              \"type\": \"VariableDeclaration\",\n              \"start\": 32,\n              \"end\": 37,\n              \"declarations\": [\n                {\n                  \"type\": \"VariableDeclarator\",\n                  \"start\": 36,\n                  \"end\": 37,\n                  \"id\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 36,\n                    \"end\": 37,\n                    \"name\": \"x\"\n                  },\n                  \"init\": null\n                }\n              ],\n              \"kind\": \"var\"\n            },\n            \"right\": {\n              \"type\": \"Identifier\",\n              \"start\": 41,\n              \"end\": 43,\n              \"name\": \"xs\"\n            },\n            \"body\": {\n              \"type\": \"EmptyStatement\",\n              \"start\": 44,\n              \"end\": 45\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"async function f() { for await (let x of xs); }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 47,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 47,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 47,\n        \"body\": [\n          {\n            \"type\": \"ForOfStatement\",\n            \"start\": 21,\n            \"end\": 45,\n            \"await\": true,\n            \"left\": {\n              \"type\": \"VariableDeclaration\",\n              \"start\": 32,\n              \"end\": 37,\n              \"declarations\": [\n                {\n                  \"type\": \"VariableDeclarator\",\n                  \"start\": 36,\n                  \"end\": 37,\n                  \"id\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 36,\n                    \"end\": 37,\n                    \"name\": \"x\"\n                  },\n                  \"init\": null\n                }\n              ],\n              \"kind\": \"let\"\n            },\n            \"right\": {\n              \"type\": \"Identifier\",\n              \"start\": 41,\n              \"end\": 43,\n              \"name\": \"xs\"\n            },\n            \"body\": {\n              \"type\": \"EmptyStatement\",\n              \"start\": 44,\n              \"end\": 45\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"async function f() { for\\nawait (x of xs); }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 43,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 43,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 43,\n        \"body\": [\n          {\n            \"type\": \"ForOfStatement\",\n            \"start\": 21,\n            \"end\": 41,\n            \"await\": true,\n            \"left\": {\n              \"type\": \"Identifier\",\n              \"start\": 32,\n              \"end\": 33,\n              \"name\": \"x\"\n            },\n            \"right\": {\n              \"type\": \"Identifier\",\n              \"start\": 37,\n              \"end\": 39,\n              \"name\": \"xs\"\n            },\n            \"body\": {\n              \"type\": \"EmptyStatement\",\n              \"start\": 40,\n              \"end\": 41\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"f = async function() { for await (x of xs); }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 45,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 45,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 45,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"f\"\n        },\n        \"right\": {\n          \"type\": \"FunctionExpression\",\n          \"start\": 4,\n          \"end\": 45,\n          \"id\": null,\n          \"generator\": false,\n          \"expression\": false,\n          \"async\": true,\n          \"params\": [],\n          \"body\": {\n            \"type\": \"BlockStatement\",\n            \"start\": 21,\n            \"end\": 45,\n            \"body\": [\n              {\n                \"type\": \"ForOfStatement\",\n                \"start\": 23,\n                \"end\": 43,\n                \"await\": true,\n                \"left\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 34,\n                  \"end\": 35,\n                  \"name\": \"x\"\n                },\n                \"right\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 39,\n                  \"end\": 41,\n                  \"name\": \"xs\"\n                },\n                \"body\": {\n                  \"type\": \"EmptyStatement\",\n                  \"start\": 42,\n                  \"end\": 43\n                }\n              }\n            ]\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"f = async() => { for await (x of xs); }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 39,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 39,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 39,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"f\"\n        },\n        \"right\": {\n          \"type\": \"ArrowFunctionExpression\",\n          \"start\": 4,\n          \"end\": 39,\n          \"id\": null,\n          \"generator\": false,\n          \"expression\": false,\n          \"async\": true,\n          \"params\": [],\n          \"body\": {\n            \"type\": \"BlockStatement\",\n            \"start\": 15,\n            \"end\": 39,\n            \"body\": [\n              {\n                \"type\": \"ForOfStatement\",\n                \"start\": 17,\n                \"end\": 37,\n                \"await\": true,\n                \"left\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 28,\n                  \"end\": 29,\n                  \"name\": \"x\"\n                },\n                \"right\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 33,\n                  \"end\": 35,\n                  \"name\": \"xs\"\n                },\n                \"body\": {\n                  \"type\": \"EmptyStatement\",\n                  \"start\": 36,\n                  \"end\": 37\n                }\n              }\n            ]\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"obj = { async f() { for await (x of xs); } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 44,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 44,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 44,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 3,\n          \"name\": \"obj\"\n        },\n        \"right\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 6,\n          \"end\": 44,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 8,\n              \"end\": 42,\n              \"method\": true,\n              \"shorthand\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 14,\n                \"end\": 15,\n                \"name\": \"f\"\n              },\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 15,\n                \"end\": 42,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 18,\n                  \"end\": 42,\n                  \"body\": [\n                    {\n                      \"type\": \"ForOfStatement\",\n                      \"start\": 20,\n                      \"end\": 40,\n                      \"await\": true,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 31,\n                        \"end\": 32,\n                        \"name\": \"x\"\n                      },\n                      \"right\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 36,\n                        \"end\": 38,\n                        \"name\": \"xs\"\n                      },\n                      \"body\": {\n                        \"type\": \"EmptyStatement\",\n                        \"start\": 39,\n                        \"end\": 40\n                      }\n                    }\n                  ]\n                }\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"class A { async f() { for await (x of xs); } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 46,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 46,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"A\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 46,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 44,\n            \"kind\": \"method\",\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 17,\n              \"name\": \"f\"\n            },\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 17,\n              \"end\": 44,\n              \"id\": null,\n              \"generator\": false,\n              \"expression\": false,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 20,\n                \"end\": 44,\n                \"body\": [\n                  {\n                    \"type\": \"ForOfStatement\",\n                    \"start\": 22,\n                    \"end\": 42,\n                    \"await\": true,\n                    \"left\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 33,\n                      \"end\": 34,\n                      \"name\": \"x\"\n                    },\n                    \"right\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 38,\n                      \"end\": 40,\n                      \"name\": \"xs\"\n                    },\n                    \"body\": {\n                      \"type\": \"EmptyStatement\",\n                      \"start\": 41,\n                      \"end\": 42\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\n// ForOfStatement has `await:false` in `ecmaVersion:9`\ntest(\"for (x of xs);\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ForOfStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"await\": false,\n      \"left\": {\n        \"type\": \"Identifier\",\n        \"start\": 5,\n        \"end\": 6,\n        \"name\": \"x\"\n      },\n      \"right\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 12,\n        \"name\": \"xs\"\n      },\n      \"body\": {\n        \"type\": \"EmptyStatement\",\n        \"start\": 13,\n        \"end\": 14\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\n// ForInStatement doesn't have `await:false` in `ecmaVersion:9`\ntest(\"for (x in xs);\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ForInStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"await\": undefined,\n      \"left\": {\n        \"type\": \"Identifier\",\n        \"start\": 5,\n        \"end\": 6,\n        \"name\": \"x\"\n      },\n      \"right\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 12,\n        \"name\": \"xs\"\n      },\n      \"body\": {\n        \"type\": \"EmptyStatement\",\n        \"start\": 13,\n        \"end\": 14\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\n// ForOfStatement doesn't have `await:false` in `ecmaVersion:8`\ntest(\"for (x of xs);\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ForOfStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"await\": undefined,\n      \"left\": {\n        \"type\": \"Identifier\",\n        \"start\": 5,\n        \"end\": 6,\n        \"name\": \"x\"\n      },\n      \"right\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 12,\n        \"name\": \"xs\"\n      },\n      \"body\": {\n        \"type\": \"EmptyStatement\",\n        \"start\": 13,\n        \"end\": 14\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 8 })\n\ntestFail(\"for await (x of xs);\", \"Unexpected token (1:4)\", { ecmaVersion: 9 })\ntestFail(\"function f() { for await (x of xs); }\", \"Unexpected token (1:19)\", { ecmaVersion: 9 })\ntestFail(\"f = function() { for await (x of xs); }\", \"Unexpected token (1:21)\", { ecmaVersion: 9 })\ntestFail(\"f = () => { for await (x of xs); }\", \"Unexpected token (1:16)\", { ecmaVersion: 9 })\ntestFail(\"async function f() { () => { for await (x of xs); } }\", \"Unexpected token (1:33)\", { ecmaVersion: 9 })\ntestFail(\"async function f() { for await (x in xs); }\", \"Unexpected token (1:25)\", { ecmaVersion: 9 })\ntestFail(\"async function f() { for await (;;); }\", \"Unexpected token (1:25)\", { ecmaVersion: 9 })\ntestFail(\"async function f() { for await (x;;); }\", \"Unexpected token (1:25)\", { ecmaVersion: 9 })\ntestFail(\"async function f() { for await (let x = 0;;); }\", \"Unexpected token (1:25)\", { ecmaVersion: 9 })\ntestFail(\"async function f() { for await (x of xs); }\", \"Unexpected token (1:25)\", { ecmaVersion: 8 })\n\n//------------------------------------------------------------------------------\n// FunctionDeclaration#await\n//------------------------------------------------------------------------------\n\ntest(\"async function* f() { await a; yield b; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 41,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 41,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 16,\n        \"end\": 17,\n        \"name\": \"f\"\n      },\n      \"generator\": true,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 20,\n        \"end\": 41,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 22,\n            \"end\": 30,\n            \"expression\": {\n              \"type\": \"AwaitExpression\",\n              \"start\": 22,\n              \"end\": 29,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 28,\n                \"end\": 29,\n                \"name\": \"a\"\n              }\n            }\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 31,\n            \"end\": 39,\n            \"expression\": {\n              \"type\": \"YieldExpression\",\n              \"start\": 31,\n              \"end\": 38,\n              \"delegate\": false,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 37,\n                \"end\": 38,\n                \"name\": \"b\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\ntestFail(\"async function* f() { () => await a; }\", \"Unexpected token (1:34)\", { ecmaVersion: 9 })\ntestFail(\"async function* f() { () => yield a; }\", \"Unexpected token (1:34)\", { ecmaVersion: 9 })\n\ntestFail(\"async function* f() { await a; yield b; }\", \"Unexpected token (1:14)\", { ecmaVersion: 8 })\n\n//------------------------------------------------------------------------------\n// FunctionExpression#await\n//------------------------------------------------------------------------------\n\ntest(\"f = async function*() { await a; yield b; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 43,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 43,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 43,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"f\"\n        },\n        \"right\": {\n          \"type\": \"FunctionExpression\",\n          \"start\": 4,\n          \"end\": 43,\n          \"id\": null,\n          \"generator\": true,\n          \"expression\": false,\n          \"async\": true,\n          \"params\": [],\n          \"body\": {\n            \"type\": \"BlockStatement\",\n            \"start\": 22,\n            \"end\": 43,\n            \"body\": [\n              {\n                \"type\": \"ExpressionStatement\",\n                \"start\": 24,\n                \"end\": 32,\n                \"expression\": {\n                  \"type\": \"AwaitExpression\",\n                  \"start\": 24,\n                  \"end\": 31,\n                  \"argument\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 30,\n                    \"end\": 31,\n                    \"name\": \"a\"\n                  }\n                }\n              },\n              {\n                \"type\": \"ExpressionStatement\",\n                \"start\": 33,\n                \"end\": 41,\n                \"expression\": {\n                  \"type\": \"YieldExpression\",\n                  \"start\": 33,\n                  \"end\": 40,\n                  \"delegate\": false,\n                  \"argument\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 39,\n                    \"end\": 40,\n                    \"name\": \"b\"\n                  }\n                }\n              }\n            ]\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"obj = { async* f() { await a; yield b; } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 42,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 42,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 42,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 3,\n          \"name\": \"obj\"\n        },\n        \"right\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 6,\n          \"end\": 42,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 8,\n              \"end\": 40,\n              \"method\": true,\n              \"shorthand\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 16,\n                \"name\": \"f\"\n              },\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 16,\n                \"end\": 40,\n                \"id\": null,\n                \"generator\": true,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 19,\n                  \"end\": 40,\n                  \"body\": [\n                    {\n                      \"type\": \"ExpressionStatement\",\n                      \"start\": 21,\n                      \"end\": 29,\n                      \"expression\": {\n                        \"type\": \"AwaitExpression\",\n                        \"start\": 21,\n                        \"end\": 28,\n                        \"argument\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 27,\n                          \"end\": 28,\n                          \"name\": \"a\"\n                        }\n                      }\n                    },\n                    {\n                      \"type\": \"ExpressionStatement\",\n                      \"start\": 30,\n                      \"end\": 38,\n                      \"expression\": {\n                        \"type\": \"YieldExpression\",\n                        \"start\": 30,\n                        \"end\": 37,\n                        \"delegate\": false,\n                        \"argument\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 36,\n                          \"end\": 37,\n                          \"name\": \"b\"\n                        }\n                      }\n                    }\n                  ]\n                }\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"class A { async* f() { await a; yield b; } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 44,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 44,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"A\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 44,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 42,\n            \"kind\": \"method\",\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 18,\n              \"name\": \"f\"\n            },\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 18,\n              \"end\": 42,\n              \"id\": null,\n              \"generator\": true,\n              \"expression\": false,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 42,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 23,\n                    \"end\": 31,\n                    \"expression\": {\n                      \"type\": \"AwaitExpression\",\n                      \"start\": 23,\n                      \"end\": 30,\n                      \"argument\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 29,\n                        \"end\": 30,\n                        \"name\": \"a\"\n                      }\n                    }\n                  },\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 32,\n                    \"end\": 40,\n                    \"expression\": {\n                      \"type\": \"YieldExpression\",\n                      \"start\": 32,\n                      \"end\": 39,\n                      \"delegate\": false,\n                      \"argument\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 38,\n                        \"end\": 39,\n                        \"name\": \"b\"\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"class A { static async* f() { await a; yield b; } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 51,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 51,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"A\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 51,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 49,\n            \"kind\": \"method\",\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 24,\n              \"end\": 25,\n              \"name\": \"f\"\n            },\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 25,\n              \"end\": 49,\n              \"id\": null,\n              \"generator\": true,\n              \"expression\": false,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 28,\n                \"end\": 49,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 30,\n                    \"end\": 38,\n                    \"expression\": {\n                      \"type\": \"AwaitExpression\",\n                      \"start\": 30,\n                      \"end\": 37,\n                      \"argument\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 36,\n                        \"end\": 37,\n                        \"name\": \"a\"\n                      }\n                    }\n                  },\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 39,\n                    \"end\": 47,\n                    \"expression\": {\n                      \"type\": \"YieldExpression\",\n                      \"start\": 39,\n                      \"end\": 46,\n                      \"delegate\": false,\n                      \"argument\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 45,\n                        \"end\": 46,\n                        \"name\": \"b\"\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\ntestFail(\"f = async function*() { () => await a; }\", \"Unexpected token (1:36)\", { ecmaVersion: 9 })\ntestFail(\"f = async function*() { () => yield a; }\", \"Unexpected token (1:36)\", { ecmaVersion: 9 })\ntestFail(\"obj = { async\\n* f() {} }\", \"Unexpected token (2:0)\", { ecmaVersion: 9 })\ntestFail(\"obj = { *async f() {}\", \"Unexpected token (1:15)\", { ecmaVersion: 9 })\ntestFail(\"obj = { *async* f() {}\", \"Unexpected token (1:14)\", { ecmaVersion: 9 })\ntestFail(\"obj = { async* f() { () => await a; } }\", \"Unexpected token (1:33)\", { ecmaVersion: 9 })\ntestFail(\"obj = { async* f() { () => yield a; } }\", \"Unexpected token (1:33)\", { ecmaVersion: 9 })\ntestFail(\"class A { async\\n* f() {} }\", \"Unexpected token (2:0)\", { ecmaVersion: 9 })\ntestFail(\"class A { *async f() {} }\", \"Unexpected token (1:17)\", { ecmaVersion: 9 })\ntestFail(\"class A { *async* f() {} }\", \"Unexpected token (1:16)\", { ecmaVersion: 9 })\ntestFail(\"class A { async* f() { () => await a; } }\", \"Unexpected token (1:35)\", { ecmaVersion: 9 })\ntestFail(\"class A { async* f() { () => yield a; } }\", \"The keyword 'yield' is reserved (1:29)\", { ecmaVersion: 9 })\n\ntestFail(\"f = async function*() { await a; yield b; }\", \"Unexpected token (1:18)\", { ecmaVersion: 8 })\ntestFail(\"obj = { async* f() { await a; yield b; } }\", \"Unexpected token (1:13)\", { ecmaVersion: 8 })\ntestFail(\"class A { async* f() { await a; yield b; } }\", \"Unexpected token (1:15)\", { ecmaVersion: 8 })\n\n//------------------------------------------------------------------------------\n// From https://github.com/acornjs/acorn-async-iteration/blob/fc72be2928ed0ffd46041f8c19052a9a282602ea/test/test.js\n//------------------------------------------------------------------------------\n\n// Commented this test out because this should throw syntax error.\n// for-await-of statements can be only in async functions.\n//\n// test(\"for await (const line of readLines(filePath)) {\\n  console.log(line);\\n}\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 70,\n//   \"body\": [\n//     {\n//       \"type\": \"ForOfStatement\",\n//       \"start\": 0,\n//       \"end\": 70,\n//       \"await\": true,\n//       \"left\": {\n//         \"type\": \"VariableDeclaration\",\n//         \"start\": 11,\n//         \"end\": 21,\n//         \"declarations\": [\n//           {\n//             \"type\": \"VariableDeclarator\",\n//             \"start\": 17,\n//             \"end\": 21,\n//             \"id\": {\n//               \"type\": \"Identifier\",\n//               \"start\": 17,\n//               \"end\": 21,\n//               \"name\": \"line\"\n//             },\n//             \"init\": null\n//           }\n//         ],\n//         \"kind\": \"const\"\n//       },\n//       \"right\": {\n//         \"type\": \"CallExpression\",\n//         \"start\": 25,\n//         \"end\": 44,\n//         \"callee\": {\n//           \"type\": \"Identifier\",\n//           \"start\": 25,\n//           \"end\": 34,\n//           \"name\": \"readLines\"\n//         },\n//         \"arguments\": [\n//           {\n//             \"type\": \"Identifier\",\n//             \"start\": 35,\n//             \"end\": 43,\n//             \"name\": \"filePath\"\n//           }\n//         ]\n//       },\n//       \"body\": {\n//         \"type\": \"BlockStatement\",\n//         \"start\": 46,\n//         \"end\": 70,\n//         \"body\": [\n//           {\n//             \"type\": \"ExpressionStatement\",\n//             \"start\": 50,\n//             \"end\": 68,\n//             \"expression\": {\n//               \"type\": \"CallExpression\",\n//               \"start\": 50,\n//               \"end\": 67,\n//               \"callee\": {\n//                 \"type\": \"MemberExpression\",\n//                 \"start\": 50,\n//                 \"end\": 61,\n//                 \"object\": {\n//                   \"type\": \"Identifier\",\n//                   \"start\": 50,\n//                   \"end\": 57,\n//                   \"name\": \"console\"\n//                 },\n//                 \"property\": {\n//                   \"type\": \"Identifier\",\n//                   \"start\": 58,\n//                   \"end\": 61,\n//                   \"name\": \"log\"\n//                 },\n//                 \"computed\": false\n//               },\n//               \"arguments\": [\n//                 {\n//                   \"type\": \"Identifier\",\n//                   \"start\": 62,\n//                   \"end\": 66,\n//                   \"name\": \"line\"\n//                 }\n//               ]\n//             }\n//           }\n//         ]\n//       }\n//     }\n//   ],\n//   \"sourceType\": \"script\"\n// }, { \"ecmaVersion\": 9 })\ntest(\"async function* x() {}\", {}, { \"ecmaVersion\": 9 })\ntest(\"ref = async function*() {}\", {}, { \"ecmaVersion\": 9 })\ntest(\"(async function*() {})\", {}, { \"ecmaVersion\": 9 })\ntest(\"var gen = { async *method() {} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 32,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 32,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 32,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 7,\n            \"name\": \"gen\"\n          },\n          \"init\": {\n            \"type\": \"ObjectExpression\",\n            \"start\": 10,\n            \"end\": 32,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 12,\n                \"end\": 30,\n                \"method\": true,\n                \"shorthand\": false,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 19,\n                  \"end\": 25,\n                  \"name\": \"method\"\n                },\n                \"value\": {\n                  \"type\": \"FunctionExpression\",\n                  \"start\": 25,\n                  \"end\": 30,\n                  \"id\": null,\n                  \"generator\": true,\n                  \"expression\": false,\n                  \"async\": true,\n                  \"params\": [],\n                  \"body\": {\n                    \"body\": [],\n                    \"end\": 30,\n                    \"start\": 28,\n                    \"type\": \"BlockStatement\"\n                  }\n                },\n                \"kind\": \"init\"\n              }\n            ]\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"export default async function*() {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 35,\n  \"body\": [\n    {\n      \"type\": \"ExportDefaultDeclaration\",\n      \"start\": 0,\n      \"end\": 35,\n      \"declaration\": {\n        \"type\": \"FunctionDeclaration\",\n        \"start\": 15,\n        \"end\": 35,\n        \"id\": null,\n        \"generator\": true,\n        \"expression\": false,\n        \"async\": true,\n        \"params\": [],\n        \"body\": {\n          \"body\": [],\n          \"end\": 35,\n          \"start\": 33,\n          \"type\": \"BlockStatement\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { \"ecmaVersion\": 9, \"sourceType\": \"module\" })\ntest(\"var C = class { async *method() {} }\", {}, { \"ecmaVersion\": 9 })\n\n// Commented the tests of direct `super()` calls out because this is not unique matter in async iteration syntax.\n// Class's constructor is the only place which allows `super()`.\n// See also: https://github.com/acornjs/acorn/issues/448\n//\n// test(\"var C = class { static async *method() {} }\", {}, { \"ecmaVersion\": 9 })\n// testFail(\"async function* x() { super(); }\", \"\", { \"ecmaVersion\": 9 })\n// testFail(\"ref = async function*() { super(); }\", \"\", { \"ecmaVersion\": 9 })\n// testFail(\"(async function*() { super(); })\", \"\", { \"ecmaVersion\": 9 })\n// testFail(\"var gen = { async *method() { super(); } }\", \"\", { \"ecmaVersion\": 9 })\n// testFail(\"export default async function*() { super(); }\", \"\", { \"ecmaVersion\": 9, \"sourceType\": \"module\" })\n// testFail(\"var C = class { async *method() { super(); } }\", \"\", { \"ecmaVersion\": 9 })\n// testFail(\"var C = class { static async *method() { super(); } }\", \"\", { \"ecmaVersion\": 9 })\n// test(\"async function* x() { var x = () => { super(); } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"ref = async function*() { var x = () => { super(); } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"(async function*() { var x = () => { super(); } })\", {}, { \"ecmaVersion\": 9 })\n// test(\"var gen = { async *method() { var x = () => { super(); } } }\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 60,\n//   \"body\": [\n//     {\n//       \"type\": \"VariableDeclaration\",\n//       \"start\": 0,\n//       \"end\": 60,\n//       \"declarations\": [\n//         {\n//           \"type\": \"VariableDeclarator\",\n//           \"start\": 4,\n//           \"end\": 60,\n//           \"id\": {\n//             \"type\": \"Identifier\",\n//             \"start\": 4,\n//             \"end\": 7,\n//             \"name\": \"gen\"\n//           },\n//           \"init\": {\n//             \"type\": \"ObjectExpression\",\n//             \"start\": 10,\n//             \"end\": 60,\n//             \"properties\": [\n//               {\n//                 \"type\": \"Property\",\n//                 \"start\": 12,\n//                 \"end\": 58,\n//                 \"method\": true,\n//                 \"shorthand\": false,\n//                 \"computed\": false,\n//                 \"key\": {\n//                   \"type\": \"Identifier\",\n//                   \"start\": 19,\n//                   \"end\": 25,\n//                   \"name\": \"method\"\n//                 },\n//                 \"value\": {\n//                   \"type\": \"FunctionExpression\",\n//                   \"start\": 25,\n//                   \"end\": 58,\n//                   \"id\": null,\n//                   \"generator\": true,\n//                   \"expression\": false,\n//                   \"async\": true,\n//                   \"params\": [],\n//                   \"body\": {\n//                     \"end\": 58,\n//                     \"start\": 28,\n//                     \"type\": \"BlockStatement\",\n//                     \"body\": [\n//                       {\n//                         \"type\": \"VariableDeclaration\",\n//                         \"start\": 30,\n//                         \"end\": 56,\n//                         \"kind\": \"var\",\n//                         \"declarations\": [\n//                           {\n//                             \"type\": \"VariableDeclarator\",\n//                             \"start\": 34,\n//                             \"end\": 56,\n//                             \"id\": {\n//                               \"type\": \"Identifier\",\n//                               \"start\": 34,\n//                               \"end\": 35,\n//                               \"name\": \"x\"\n//                             },\n//                             \"init\": {\n//                               \"type\": \"ArrowFunctionExpression\",\n//                               \"start\": 38,\n//                               \"end\": 56,\n//                               \"id\": null,\n//                               \"generator\": false,\n//                               \"expression\": false,\n//                               \"async\": false,\n//                               \"params\": [],\n//                               \"body\": {\n//                                 \"type\": \"BlockStatement\",\n//                                 \"start\": 44,\n//                                 \"end\": 56,\n//                                 \"body\": [\n//                                   {\n//                                     \"type\": \"ExpressionStatement\",\n//                                     \"start\": 46,\n//                                     \"end\": 54,\n//                                     \"expression\": {\n//                                       \"type\": \"CallExpression\",\n//                                       \"start\": 46,\n//                                       \"end\": 53,\n//                                       \"callee\": {\n//                                         \"type\": \"Super\",\n//                                         \"start\": 46,\n//                                         \"end\": 51\n//                                       },\n//                                       \"arguments\": []\n//                                     }\n//                                   }\n//                                 ]\n//                               }\n//                             }\n//                           }\n//                         ]\n//                       }\n//                     ]\n//                   }\n//                 },\n//                 \"kind\": \"init\"\n//               }\n//             ]\n//           }\n//         }\n//       ],\n//       \"kind\": \"var\"\n//     }\n//   ],\n//   \"sourceType\": \"script\"\n// }, { \"ecmaVersion\": 9 })\n// test(\"export default async function*() { var x = () => { super(); } }\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 63,\n//   \"body\": [\n//     {\n//       \"type\": \"ExportDefaultDeclaration\",\n//       \"start\": 0,\n//       \"end\": 63,\n//       \"declaration\": {\n//         \"type\": \"FunctionDeclaration\",\n//         \"start\": 15,\n//         \"end\": 63,\n//         \"id\": null,\n//         \"generator\": true,\n//         \"expression\": false,\n//         \"async\": true,\n//         \"params\": [],\n//         \"body\": {\n//           \"end\": 63,\n//           \"start\": 33,\n//           \"type\": \"BlockStatement\",\n//           \"body\": [\n//             {\n//               \"type\": \"VariableDeclaration\",\n//               \"start\": 35,\n//               \"end\": 61,\n//               \"kind\": \"var\",\n//               \"declarations\": [\n//                 {\n//                   \"type\": \"VariableDeclarator\",\n//                   \"start\": 39,\n//                   \"end\": 61,\n//                   \"id\": {\n//                     \"type\": \"Identifier\",\n//                     \"start\": 39,\n//                     \"end\": 40,\n//                     \"name\": \"x\"\n//                   },\n//                   \"init\": {\n//                     \"type\": \"ArrowFunctionExpression\",\n//                     \"start\": 43,\n//                     \"end\": 61,\n//                     \"id\": null,\n//                     \"generator\": false,\n//                     \"expression\": false,\n//                     \"async\": false,\n//                     \"params\": [],\n//                     \"body\": {\n//                       \"type\": \"BlockStatement\",\n//                       \"start\": 49,\n//                       \"end\": 61,\n//                       \"body\": [\n//                         {\n//                           \"type\": \"ExpressionStatement\",\n//                           \"start\": 51,\n//                           \"end\": 59,\n//                           \"expression\": {\n//                             \"type\": \"CallExpression\",\n//                             \"start\": 51,\n//                             \"end\": 58,\n//                             \"callee\": {\n//                               \"type\": \"Super\",\n//                               \"start\": 51,\n//                               \"end\": 56\n//                             },\n//                             \"arguments\": []\n//                           }\n//                         }\n//                       ]\n//                     }\n//                   }\n//                 }\n//               ]\n//             }\n//           ]\n//         }\n//       }\n//     }\n//   ],\n//   \"sourceType\": \"module\"\n// }, { \"ecmaVersion\": 9, \"sourceType\": \"module\" })\n// test(\"var C = class { async *method() { var x = () => { super(); } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"var C = class { static async *method() { var x = () => { super(); } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"async function* x() { var x = function () { super(); } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"ref = async function*() { var x = function () { super(); } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"(async function*() { var x = function () { super(); } })\", {}, { \"ecmaVersion\": 9 })\n// test(\"var gen = { async *method() { var x = function () { super(); } } }\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 66,\n//   \"body\": [\n//     {\n//       \"type\": \"VariableDeclaration\",\n//       \"start\": 0,\n//       \"end\": 66,\n//       \"declarations\": [\n//         {\n//           \"type\": \"VariableDeclarator\",\n//           \"start\": 4,\n//           \"end\": 66,\n//           \"id\": {\n//             \"type\": \"Identifier\",\n//             \"start\": 4,\n//             \"end\": 7,\n//             \"name\": \"gen\"\n//           },\n//           \"init\": {\n//             \"type\": \"ObjectExpression\",\n//             \"start\": 10,\n//             \"end\": 66,\n//             \"properties\": [\n//               {\n//                 \"type\": \"Property\",\n//                 \"start\": 12,\n//                 \"end\": 64,\n//                 \"method\": true,\n//                 \"shorthand\": false,\n//                 \"computed\": false,\n//                 \"key\": {\n//                   \"type\": \"Identifier\",\n//                   \"start\": 19,\n//                   \"end\": 25,\n//                   \"name\": \"method\"\n//                 },\n//                 \"value\": {\n//                   \"type\": \"FunctionExpression\",\n//                   \"start\": 25,\n//                   \"end\": 64,\n//                   \"id\": null,\n//                   \"generator\": true,\n//                   \"expression\": false,\n//                   \"async\": true,\n//                   \"params\": [],\n//                   \"body\": {\n//                     \"end\": 64,\n//                     \"start\": 28,\n//                     \"type\": \"BlockStatement\",\n//                     \"body\": [\n//                       {\n//                         \"type\": \"VariableDeclaration\",\n//                         \"start\": 30,\n//                         \"end\": 62,\n//                         \"kind\": \"var\",\n//                         \"declarations\": [\n//                           {\n//                             \"type\": \"VariableDeclarator\",\n//                             \"start\": 34,\n//                             \"end\": 62,\n//                             \"id\": {\n//                               \"type\": \"Identifier\",\n//                               \"start\": 34,\n//                               \"end\": 35,\n//                               \"name\": \"x\"\n//                             },\n//                             \"init\": {\n//                               \"type\": \"FunctionExpression\",\n//                               \"start\": 38,\n//                               \"end\": 62,\n//                               \"id\": null,\n//                               \"generator\": false,\n//                               \"expression\": false,\n//                               \"async\": false,\n//                               \"params\": [],\n//                               \"body\": {\n//                                 \"type\": \"BlockStatement\",\n//                                 \"start\": 50,\n//                                 \"end\": 62,\n//                                 \"body\": [\n//                                   {\n//                                     \"type\": \"ExpressionStatement\",\n//                                     \"start\": 52,\n//                                     \"end\": 60,\n//                                     \"expression\": {\n//                                       \"type\": \"CallExpression\",\n//                                       \"start\": 52,\n//                                       \"end\": 59,\n//                                       \"callee\": {\n//                                         \"type\": \"Super\",\n//                                         \"start\": 52,\n//                                         \"end\": 57\n//                                       },\n//                                       \"arguments\": []\n//                                     }\n//                                   }\n//                                 ]\n//                               }\n//                             }\n//                           }\n//                         ]\n//                       }\n//                     ]\n//                   }\n//                 },\n//                 \"kind\": \"init\"\n//               }\n//             ]\n//           }\n//         }\n//       ],\n//       \"kind\": \"var\"\n//     }\n//   ],\n//   \"sourceType\": \"script\"\n// }, { \"ecmaVersion\": 9 })\n// test(\"export default async function*() { var x = function () { super(); } }\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 69,\n//   \"body\": [\n//     {\n//       \"type\": \"ExportDefaultDeclaration\",\n//       \"start\": 0,\n//       \"end\": 69,\n//       \"declaration\": {\n//         \"type\": \"FunctionDeclaration\",\n//         \"start\": 15,\n//         \"end\": 69,\n//         \"id\": null,\n//         \"generator\": true,\n//         \"expression\": false,\n//         \"async\": true,\n//         \"params\": [],\n//         \"body\": {\n//           \"end\": 69,\n//           \"start\": 33,\n//           \"type\": \"BlockStatement\",\n//           \"body\": [\n//             {\n//               \"type\": \"VariableDeclaration\",\n//               \"start\": 35,\n//               \"end\": 67,\n//               \"kind\": \"var\",\n//               \"declarations\": [\n//                 {\n//                   \"type\": \"VariableDeclarator\",\n//                   \"start\": 39,\n//                   \"end\": 67,\n//                   \"id\": {\n//                     \"type\": \"Identifier\",\n//                     \"start\": 39,\n//                     \"end\": 40,\n//                     \"name\": \"x\"\n//                   },\n//                   \"init\": {\n//                     \"type\": \"FunctionExpression\",\n//                     \"start\": 43,\n//                     \"end\": 67,\n//                     \"id\": null,\n//                     \"generator\": false,\n//                     \"expression\": false,\n//                     \"async\": false,\n//                     \"params\": [],\n//                     \"body\": {\n//                       \"type\": \"BlockStatement\",\n//                       \"start\": 55,\n//                       \"end\": 67,\n//                       \"body\": [\n//                         {\n//                           \"type\": \"ExpressionStatement\",\n//                           \"start\": 57,\n//                           \"end\": 65,\n//                           \"expression\": {\n//                             \"type\": \"CallExpression\",\n//                             \"start\": 57,\n//                             \"end\": 64,\n//                             \"callee\": {\n//                               \"type\": \"Super\",\n//                               \"start\": 57,\n//                               \"end\": 62\n//                             },\n//                             \"arguments\": []\n//                           }\n//                         }\n//                       ]\n//                     }\n//                   }\n//                 }\n//               ]\n//             }\n//           ]\n//         }\n//       }\n//     }\n//   ],\n//   \"sourceType\": \"module\"\n// }, { \"ecmaVersion\": 9, \"sourceType\": \"module\" })\n// test(\"var C = class { async *method() { var x = function () { super(); } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"var C = class { static async *method() { var x = function () { super(); } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"async function* x() { var x = { y: function () { super(); } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"ref = async function*() { var x = { y: function () { super(); } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"(async function*() { var x = { y: function () { super(); } } })\", {}, { \"ecmaVersion\": 9 })\n// test(\"var gen = { async *method() { var x = { y: function () { super(); } } } }\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 73,\n//   \"body\": [\n//     {\n//       \"type\": \"VariableDeclaration\",\n//       \"start\": 0,\n//       \"end\": 73,\n//       \"declarations\": [\n//         {\n//           \"type\": \"VariableDeclarator\",\n//           \"start\": 4,\n//           \"end\": 73,\n//           \"id\": {\n//             \"type\": \"Identifier\",\n//             \"start\": 4,\n//             \"end\": 7,\n//             \"name\": \"gen\"\n//           },\n//           \"init\": {\n//             \"type\": \"ObjectExpression\",\n//             \"start\": 10,\n//             \"end\": 73,\n//             \"properties\": [\n//               {\n//                 \"type\": \"Property\",\n//                 \"start\": 12,\n//                 \"end\": 71,\n//                 \"method\": true,\n//                 \"shorthand\": false,\n//                 \"computed\": false,\n//                 \"key\": {\n//                   \"type\": \"Identifier\",\n//                   \"start\": 19,\n//                   \"end\": 25,\n//                   \"name\": \"method\"\n//                 },\n//                 \"value\": {\n//                   \"type\": \"FunctionExpression\",\n//                   \"start\": 25,\n//                   \"end\": 71,\n//                   \"id\": null,\n//                   \"generator\": true,\n//                   \"expression\": false,\n//                   \"async\": true,\n//                   \"params\": [],\n//                   \"body\": {\n//                     \"type\": \"BlockStatement\",\n//                     \"start\": 28,\n//                     \"end\": 71,\n//                     \"body\": [\n//                       {\n//                         \"type\": \"VariableDeclaration\",\n//                         \"start\": 30,\n//                         \"end\": 69,\n//                         \"declarations\": [\n//                           {\n//                             \"type\": \"VariableDeclarator\",\n//                             \"start\": 34,\n//                             \"end\": 69,\n//                             \"id\": {\n//                               \"type\": \"Identifier\",\n//                               \"start\": 34,\n//                               \"end\": 35,\n//                               \"name\": \"x\"\n//                             },\n//                             \"init\": {\n//                               \"type\": \"ObjectExpression\",\n//                               \"start\": 38,\n//                               \"end\": 69,\n//                               \"properties\": [\n//                                 {\n//                                   \"type\": \"Property\",\n//                                   \"start\": 40,\n//                                   \"end\": 67,\n//                                   \"method\": false,\n//                                   \"shorthand\": false,\n//                                   \"computed\": false,\n//                                   \"key\": {\n//                                     \"type\": \"Identifier\",\n//                                     \"start\": 40,\n//                                     \"end\": 41,\n//                                     \"name\": \"y\"\n//                                   },\n//                                   \"value\": {\n//                                     \"type\": \"FunctionExpression\",\n//                                     \"start\": 43,\n//                                     \"end\": 67,\n//                                     \"id\": null,\n//                                     \"generator\": false,\n//                                     \"expression\": false,\n//                                     \"async\": false,\n//                                     \"params\": [],\n//                                     \"body\": {\n//                                       \"type\": \"BlockStatement\",\n//                                       \"start\": 55,\n//                                       \"end\": 67,\n//                                       \"body\": [\n//                                         {\n//                                           \"type\": \"ExpressionStatement\",\n//                                           \"start\": 57,\n//                                           \"end\": 65,\n//                                           \"expression\": {\n//                                             \"type\": \"CallExpression\",\n//                                             \"start\": 57,\n//                                             \"end\": 64,\n//                                             \"callee\": {\n//                                               \"type\": \"Super\",\n//                                               \"start\": 57,\n//                                               \"end\": 62\n//                                             },\n//                                             \"arguments\": []\n//                                           }\n//                                         }\n//                                       ]\n//                                     }\n//                                   },\n//                                   \"kind\": \"init\"\n//                                 }\n//                               ]\n//                             }\n//                           }\n//                         ],\n//                         \"kind\": \"var\"\n//                       }\n//                     ]\n//                   }\n//                 },\n//                 \"kind\": \"init\"\n//               }\n//             ]\n//           }\n//         }\n//       ],\n//       \"kind\": \"var\"\n//     }\n//   ],\n//   \"sourceType\": \"script\"\n// }, { \"ecmaVersion\": 9 })\n// test(\"export default async function*() { var x = { y: function () { super(); } } }\", {\n//   \"type\": \"Program\",\n//   \"start\": 0,\n//   \"end\": 76,\n//   \"body\": [\n//     {\n//       \"type\": \"ExportDefaultDeclaration\",\n//       \"start\": 0,\n//       \"end\": 76,\n//       \"declaration\": {\n//         \"type\": \"FunctionDeclaration\",\n//         \"start\": 15,\n//         \"end\": 76,\n//         \"id\": null,\n//         \"generator\": true,\n//         \"expression\": false,\n//         \"async\": true,\n//         \"params\": [],\n//         \"body\": {\n//           \"type\": \"BlockStatement\",\n//           \"start\": 33,\n//           \"end\": 76,\n//           \"body\": [\n//             {\n//               \"type\": \"VariableDeclaration\",\n//               \"start\": 35,\n//               \"end\": 74,\n//               \"declarations\": [\n//                 {\n//                   \"type\": \"VariableDeclarator\",\n//                   \"start\": 39,\n//                   \"end\": 74,\n//                   \"id\": {\n//                     \"type\": \"Identifier\",\n//                     \"start\": 39,\n//                     \"end\": 40,\n//                     \"name\": \"x\"\n//                   },\n//                   \"init\": {\n//                     \"type\": \"ObjectExpression\",\n//                     \"start\": 43,\n//                     \"end\": 74,\n//                     \"properties\": [\n//                       {\n//                         \"type\": \"Property\",\n//                         \"start\": 45,\n//                         \"end\": 72,\n//                         \"method\": false,\n//                         \"shorthand\": false,\n//                         \"computed\": false,\n//                         \"key\": {\n//                           \"type\": \"Identifier\",\n//                           \"start\": 45,\n//                           \"end\": 46,\n//                           \"name\": \"y\"\n//                         },\n//                         \"value\": {\n//                           \"type\": \"FunctionExpression\",\n//                           \"start\": 48,\n//                           \"end\": 72,\n//                           \"id\": null,\n//                           \"generator\": false,\n//                           \"expression\": false,\n//                           \"async\": false,\n//                           \"params\": [],\n//                           \"body\": {\n//                             \"type\": \"BlockStatement\",\n//                             \"start\": 60,\n//                             \"end\": 72,\n//                             \"body\": [\n//                               {\n//                                 \"type\": \"ExpressionStatement\",\n//                                 \"start\": 62,\n//                                 \"end\": 70,\n//                                 \"expression\": {\n//                                   \"type\": \"CallExpression\",\n//                                   \"start\": 62,\n//                                   \"end\": 69,\n//                                   \"callee\": {\n//                                     \"type\": \"Super\",\n//                                     \"start\": 62,\n//                                     \"end\": 67\n//                                   },\n//                                   \"arguments\": []\n//                                 }\n//                               }\n//                             ]\n//                           }\n//                         },\n//                         \"kind\": \"init\"\n//                       }\n//                     ]\n//                   }\n//                 }\n//               ],\n//               \"kind\": \"var\"\n//             }\n//           ]\n//         }\n//       }\n//     }\n//   ],\n//   \"sourceType\": \"module\"\n// }, { \"ecmaVersion\": 9, \"sourceType\": \"module\" })\n// test(\"var C = class { async *method() { var x = { y: function () { super(); } } } }\", {}, { \"ecmaVersion\": 9 })\n// test(\"var C = class { static async *method() { var x = { y: function () { super(); } } } }\", {}, { \"ecmaVersion\": 9 })\n\ntest(\"({ async *method(){} })\", {}, { \"ecmaVersion\": 9 })\n\ntestFail(\"({ \\\\u0061sync *method(){} })\", \"Unexpected token (1:14)\", { \"ecmaVersion\": 9 })\ntestFail(\"void \\\\u0061sync function* f(){};\", \"Unexpected token (1:16)\", { \"ecmaVersion\": 9 })\ntestFail(\"for ( ; false; ) async function* g() {}\", \"Unexpected token (1:17)\", { \"ecmaVersion\": 9 })\n\ntest(\"({async() { }})\", {}, { \"ecmaVersion\": 9 })\ntest(\"({async = 0} = {})\", {}, { \"ecmaVersion\": 9 })\ntest(\"({async, foo})\", {}, { \"ecmaVersion\": 9 })\ntest(\"({async})\", {}, { \"ecmaVersion\": 9 })\ntest(\"({async: true})\", {}, { \"ecmaVersion\": 9 })\n\ntestFail(\"({async\\n    foo() { }})\", \"Unexpected token (2:4)\", { \"ecmaVersion\": 9 })\n\n// #1031\ntest(\"async () => { for await (async of []); }\", {}, {ecmaVersion: 9})\ntest(\"for (async of => {}; i < 10; ++i) {}\", {}, {ecmaVersion: 9})\ntestFail(\"for (async of [1]) {}\", \"Unexpected token (1:14)\", {ecmaVersion: 9})\n\ntestFail(\"async () => { for (async\\nof []); }\", \"Unexpected token (2:0)\", {ecmaVersion: 9})\ntestFail(\"async () => { for (async of\\n[]); }\", \"Unexpected token (2:0)\", {ecmaVersion: 9})\ntest(\"for ((async) of [7]);\", {}, {ecmaVersion: 9})\n"
  },
  {
    "path": "test/tests-asyncawait.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n//-----------------------------------------------------------------------------\n// Async Function Declarations\n\n// async == false\ntest(\"function foo() { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 18,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 18,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 18,\n                \"body\": []\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// async == true\ntest(\"async function foo() { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 24,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 24,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 18,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": true,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 24,\n                \"body\": []\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// a reference and a normal function declaration if there is a linebreak between 'async' and 'function'.\ntest(\"async\\nfunction foo() { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 24,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 5,\n            \"expression\": {\n                \"type\": \"Identifier\",\n                \"start\": 0,\n                \"end\": 5,\n                \"name\": \"async\"\n            }\n        },\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 6,\n            \"end\": 24,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 18,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 24,\n                \"body\": []\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// export\ntest(\"export async function foo() { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 31,\n    \"body\": [\n        {\n            \"type\": \"ExportNamedDeclaration\",\n            \"start\": 0,\n            \"end\": 31,\n            \"declaration\": {\n                \"type\": \"FunctionDeclaration\",\n                \"start\": 7,\n                \"end\": 31,\n                \"id\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 22,\n                    \"end\": 25,\n                    \"name\": \"foo\"\n                },\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 28,\n                    \"end\": 31,\n                    \"body\": []\n                }\n            },\n            \"specifiers\": [],\n            \"source\": null\n        }\n    ],\n    \"sourceType\": \"module\"\n}, {ecmaVersion: 8, sourceType: \"module\"})\n\n// export default\ntest(\"export default async function() { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 35,\n    \"body\": [\n        {\n            \"type\": \"ExportDefaultDeclaration\",\n            \"start\": 0,\n            \"end\": 35,\n            \"declaration\": {\n                \"type\": \"FunctionDeclaration\",\n                \"start\": 15,\n                \"end\": 35,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 32,\n                    \"end\": 35,\n                    \"body\": []\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"module\"\n}, {ecmaVersion: 8, sourceType: \"module\"})\n\n// cannot combine with generators\ntestFail(\"async function* foo() { }\", \"Unexpected token (1:14)\", {ecmaVersion: 8})\n\n// 'await' is valid as function names.\ntest(\"async function await() { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 26,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 26,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 20,\n                \"name\": \"await\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": true,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 23,\n                \"end\": 26,\n                \"body\": []\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// cannot use 'await' inside async functions.\ntestFail(\"async function wrap() {\\nasync function await() { }\\n}\", \"Cannot use 'await' as identifier inside an async function (2:15)\", {ecmaVersion: 8})\ntestFail(\"async function foo(await) { }\", \"Cannot use 'await' as identifier inside an async function (1:19)\", {ecmaVersion: 8})\ntestFail(\"async function foo() { return {await} }\", \"Cannot use 'await' as identifier inside an async function (1:31)\", {ecmaVersion: 8})\n\n//-----------------------------------------------------------------------------\n// Async Function Expressions\n\n// async == false\ntest(\"(function foo() { })\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 20,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 20,\n            \"expression\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 1,\n                \"end\": 19,\n                \"id\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 10,\n                    \"end\": 13,\n                    \"name\": \"foo\"\n                },\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": false,\n                \"params\": [],\n                \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 16,\n                    \"end\": 19,\n                    \"body\": []\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// async == true\ntest(\"(async function foo() { })\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 26,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 26,\n            \"expression\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 1,\n                \"end\": 25,\n                \"id\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 16,\n                    \"end\": 19,\n                    \"name\": \"foo\"\n                },\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 22,\n                    \"end\": 25,\n                    \"body\": []\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// cannot insert a linebreak to between 'async' and 'function'.\ntestFail(\"(async\\nfunction foo() { })\", \"Unexpected token (2:0)\", {ecmaVersion: 8})\n\n// cannot combine with generators.\ntestFail(\"(async function* foo() { })\", \"Unexpected token (1:15)\", {ecmaVersion: 8})\n\n// export default\ntest(\"export default (async function() { })\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 37,\n    \"body\": [\n        {\n            \"type\": \"ExportDefaultDeclaration\",\n            \"start\": 0,\n            \"end\": 37,\n            \"declaration\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 16,\n                \"end\": 36,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 33,\n                    \"end\": 36,\n                    \"body\": []\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"module\"\n}, {ecmaVersion: 8, sourceType: \"module\"})\n\n// cannot use 'await' inside async functions.\ntestFail(\"(async function await() { })\", \"Cannot use 'await' as identifier inside an async function (1:16)\", {ecmaVersion: 8})\ntestFail(\"(async function foo(await) { })\", \"Cannot use 'await' as identifier inside an async function (1:20)\", {ecmaVersion: 8})\ntestFail(\"(async function foo() { return {await} })\", \"Cannot use 'await' as identifier inside an async function (1:32)\", {ecmaVersion: 8})\n\n//-----------------------------------------------------------------------------\n// Async Arrow Function Expressions\n\n// async == false\ntest(\"a => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 6,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 6,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 6,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": false,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 0,\n                        \"end\": 1,\n                        \"name\": \"a\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 5,\n                    \"end\": 6,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"(a) => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 8,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 8,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 8,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": false,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 1,\n                        \"end\": 2,\n                        \"name\": \"a\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 7,\n                    \"end\": 8,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// async == true\ntest(\"async a => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 12,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 12,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 12,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 6,\n                        \"end\": 7,\n                        \"name\": \"a\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 11,\n                    \"end\": 12,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"async () => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 13,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 13,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 13,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 12,\n                    \"end\": 13,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"async (a, b) => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 17,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 17,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 17,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 7,\n                        \"end\": 8,\n                        \"name\": \"a\"\n                    },\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 10,\n                        \"end\": 11,\n                        \"name\": \"b\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 16,\n                    \"end\": 17,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// OK even if it's an invalid syntax in the case `=>` didn't exist.\ntest(\"async ({a = b}) => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 20,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 20,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 20,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"ObjectPattern\",\n                        \"start\": 7,\n                        \"end\": 14,\n                        \"properties\": [\n                            {\n                                \"type\": \"Property\",\n                                \"start\": 8,\n                                \"end\": 13,\n                                \"method\": false,\n                                \"shorthand\": true,\n                                \"computed\": false,\n                                \"key\": {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 8,\n                                    \"end\": 9,\n                                    \"name\": \"a\"\n                                },\n                                \"value\": {\n                                    \"type\": \"AssignmentPattern\",\n                                    \"start\": 8,\n                                    \"end\": 13,\n                                    \"left\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 8,\n                                        \"end\": 9,\n                                        \"name\": \"a\"\n                                    },\n                                    \"right\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 12,\n                                        \"end\": 13,\n                                        \"name\": \"b\"\n                                    }\n                                },\n                                \"kind\": \"init\"\n                            }\n                        ]\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 19,\n                    \"end\": 20,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// syntax error if `=>` didn't exist.\ntestFail(\"async ({a = b})\", \"Shorthand property assignments are valid only in destructuring patterns (1:10)\", {ecmaVersion: 8})\n\n// AssignmentPattern/AssignmentExpression\ntest(\"async ({a: b = c}) => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 23,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 23,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 23,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"ObjectPattern\",\n                        \"start\": 7,\n                        \"end\": 17,\n                        \"properties\": [\n                            {\n                                \"type\": \"Property\",\n                                \"start\": 8,\n                                \"end\": 16,\n                                \"method\": false,\n                                \"shorthand\": false,\n                                \"computed\": false,\n                                \"key\": {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 8,\n                                    \"end\": 9,\n                                    \"name\": \"a\"\n                                },\n                                \"value\": {\n                                    \"type\": \"AssignmentPattern\",\n                                    \"start\": 11,\n                                    \"end\": 16,\n                                    \"left\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 11,\n                                        \"end\": 12,\n                                        \"name\": \"b\"\n                                    },\n                                    \"right\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 15,\n                                        \"end\": 16,\n                                        \"name\": \"c\"\n                                    }\n                                },\n                                \"kind\": \"init\"\n                            }\n                        ]\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 22,\n                    \"end\": 23,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"async ({a: b = c})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 18,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 18,\n            \"expression\": {\n                \"type\": \"CallExpression\",\n                \"start\": 0,\n                \"end\": 18,\n                \"callee\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 0,\n                    \"end\": 5,\n                    \"name\": \"async\"\n                },\n                \"arguments\": [\n                    {\n                        \"type\": \"ObjectExpression\",\n                        \"start\": 7,\n                        \"end\": 17,\n                        \"properties\": [\n                            {\n                                \"type\": \"Property\",\n                                \"start\": 8,\n                                \"end\": 16,\n                                \"method\": false,\n                                \"shorthand\": false,\n                                \"computed\": false,\n                                \"key\": {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 8,\n                                    \"end\": 9,\n                                    \"name\": \"a\"\n                                },\n                                \"value\": {\n                                    \"type\": \"AssignmentExpression\",\n                                    \"start\": 11,\n                                    \"end\": 16,\n                                    \"operator\": \"=\",\n                                    \"left\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 11,\n                                        \"end\": 12,\n                                        \"name\": \"b\"\n                                    },\n                                    \"right\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 15,\n                                        \"end\": 16,\n                                        \"name\": \"c\"\n                                    }\n                                },\n                                \"kind\": \"init\"\n                            }\n                        ]\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// a reference and a normal arrow function if there is a linebreak between 'async' and the 1st parameter.\ntest(\"async\\na => a\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 12,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 5,\n            \"expression\": {\n                \"type\": \"Identifier\",\n                \"start\": 0,\n                \"end\": 5,\n                \"name\": \"async\"\n            }\n        },\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 6,\n            \"end\": 12,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 6,\n                \"end\": 12,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": false,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 6,\n                        \"end\": 7,\n                        \"name\": \"a\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 11,\n                    \"end\": 12,\n                    \"name\": \"a\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// 'async()' call expression and invalid '=>' token.\ntestFail(\"async\\n() => a\", \"Unexpected token (2:3)\", {ecmaVersion: 8})\n\n// cannot insert a linebreak before '=>'.\ntestFail(\"async a\\n=> a\", \"Unexpected token (2:0)\", {ecmaVersion: 8})\ntestFail(\"async ()\\n=> a\", \"Unexpected token (2:0)\", {ecmaVersion: 8})\n\n// a call expression with 'await' reference.\ntest(\"async (await)\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 13,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 13,\n            \"expression\": {\n                \"type\": \"CallExpression\",\n                \"start\": 0,\n                \"end\": 13,\n                \"callee\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 0,\n                    \"end\": 5,\n                    \"name\": \"async\"\n                },\n                \"arguments\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 7,\n                        \"end\": 12,\n                        \"name\": \"await\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// cannot use 'await' inside async functions.\ntestFail(\"async await => 1\", \"Cannot use 'await' as identifier inside an async function (1:6)\", {ecmaVersion: 8})\ntestFail(\"async (await) => 1\", \"Cannot use 'await' as identifier inside an async function (1:7)\", {ecmaVersion: 8})\ntestFail(\"async (...await) => 1\", \"Cannot use 'await' as identifier inside an async function (1:10)\", {ecmaVersion: 8})\ntestFail(\"async ({await}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:8)\", {ecmaVersion: 8})\ntestFail(\"async ({a: await}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:11)\", {ecmaVersion: 8})\ntest(\"async ({await: a}) => 1\", {}, {ecmaVersion: 8})\ntestFail(\"async ([await]) => 1\", \"Cannot use 'await' as identifier inside an async function (1:8)\", {ecmaVersion: 8})\ntestFail(\"async ([...await]) => 1\", \"Cannot use 'await' as identifier inside an async function (1:11)\", {ecmaVersion: 8})\ntest(\"async (b = {await: a}) => 1\", {}, {ecmaVersion: 8})\ntestFail(\"async (b = {await}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:12)\", {ecmaVersion: 8})\ntestFail(\"async (b = {a: await}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:15)\", {ecmaVersion: 8})\ntest(\"async (b = {await: a}) => 1\", {}, {ecmaVersion: 8})\ntestFail(\"async (b = [await]) => 1\", \"Cannot use 'await' as identifier inside an async function (1:12)\", {ecmaVersion: 8})\ntestFail(\"async (b = [...await]) => 1\", \"Cannot use 'await' as identifier inside an async function (1:15)\", {ecmaVersion: 8})\ntestFail(\"async (b = class await {}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:17)\", {ecmaVersion: 8})\ntest(\"async (b = function await() {}) => 1\", {}, {ecmaVersion: 8})\ntest(\"async (b = function* await() {}) => 1\", {}, {ecmaVersion: 8})\ntestFail(\"async (b = (await) => {}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:12)\", {ecmaVersion: 8})\ntestFail(\"async (await, b = async()) => 2\", \"Cannot use 'await' as identifier inside an async function (1:7)\", {ecmaVersion: 8})\ntestFail(\"async (await, b = async () => {}) => 1\", \"Cannot use 'await' as identifier inside an async function (1:7)\", {ecmaVersion: 8})\n\n// can use 'yield' identifier outside generators.\ntest(\"async yield => 1\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 16,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 16,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 0,\n                \"end\": 16,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 6,\n                        \"end\": 11,\n                        \"name\": \"yield\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"Literal\",\n                    \"start\": 15,\n                    \"end\": 16,\n                    \"value\": 1,\n                    \"raw\": \"1\"\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n//-----------------------------------------------------------------------------\n// Async Methods (object)\n\n// async == false\ntest(\"({foo() { }})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 13,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 13,\n            \"expression\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 1,\n                \"end\": 12,\n                \"properties\": [\n                    {\n                        \"type\": \"Property\",\n                        \"start\": 2,\n                        \"end\": 11,\n                        \"method\": true,\n                        \"shorthand\": false,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 2,\n                            \"end\": 5,\n                            \"name\": \"foo\"\n                        },\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 5,\n                            \"end\": 11,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 8,\n                                \"end\": 11,\n                                \"body\": []\n                            }\n                        },\n                        \"kind\": \"init\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// async == true\ntest(\"({async foo() { }})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 19,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 19,\n            \"expression\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 1,\n                \"end\": 18,\n                \"properties\": [\n                    {\n                        \"type\": \"Property\",\n                        \"start\": 2,\n                        \"end\": 17,\n                        \"method\": true,\n                        \"shorthand\": false,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 8,\n                            \"end\": 11,\n                            \"name\": \"foo\"\n                        },\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 11,\n                            \"end\": 17,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 14,\n                                \"end\": 17,\n                                \"body\": []\n                            }\n                        },\n                        \"kind\": \"init\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// OK with 'async' as a method name\ntest(\"({async() { }})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 15,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 15,\n            \"expression\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 1,\n                \"end\": 14,\n                \"properties\": [\n                    {\n                        \"type\": \"Property\",\n                        \"start\": 2,\n                        \"end\": 13,\n                        \"method\": true,\n                        \"shorthand\": false,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 2,\n                            \"end\": 7,\n                            \"name\": \"async\"\n                        },\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 7,\n                            \"end\": 13,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 10,\n                                \"end\": 13,\n                                \"body\": []\n                            }\n                        },\n                        \"kind\": \"init\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// invalid syntax if there is a linebreak after 'async'.\ntestFail(\"({async\\nfoo() { }})\", \"Unexpected token (2:0)\", {ecmaVersion: 8})\n\n// cannot combine with getters/setters/generators.\ntestFail(\"({async get foo() { }})\", \"Unexpected token (1:12)\", {ecmaVersion: 8})\ntestFail(\"({async set foo(value) { }})\", \"Unexpected token (1:12)\", {ecmaVersion: 8})\ntestFail(\"({async* foo() { }})\", \"Unexpected token (1:7)\", {ecmaVersion: 8})\n\n// 'await' is valid as function names.\ntest(\"({async await() { }})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 21,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 21,\n            \"expression\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 1,\n                \"end\": 20,\n                \"properties\": [\n                    {\n                        \"type\": \"Property\",\n                        \"start\": 2,\n                        \"end\": 19,\n                        \"method\": true,\n                        \"shorthand\": false,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 8,\n                            \"end\": 13,\n                            \"name\": \"await\"\n                        },\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 13,\n                            \"end\": 19,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 16,\n                                \"end\": 19,\n                                \"body\": []\n                            }\n                        },\n                        \"kind\": \"init\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// cannot use 'await' inside async functions.\ntest(\"async function wrap() {\\n({async await() { }})\\n}\", {}, {ecmaVersion: 8})\ntestFail(\"({async foo() { var await }})\", \"Cannot use 'await' as identifier inside an async function (1:20)\", {ecmaVersion: 8})\ntestFail(\"({async foo(await) { }})\", \"Cannot use 'await' as identifier inside an async function (1:12)\", {ecmaVersion: 8})\ntestFail(\"({async foo() { return {await} }})\", \"Cannot use 'await' as identifier inside an async function (1:24)\", {ecmaVersion: 8})\n\n// invalid syntax 'async foo: 1'\ntestFail(\"({async foo: 1})\", \"Unexpected token (1:11)\", {ecmaVersion: 8})\n\n//-----------------------------------------------------------------------------\n// Async Methods (class)\n\n// async == false\ntest(\"class A {foo() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 19,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 19,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 19,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 18,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 9,\n                            \"end\": 12,\n                            \"name\": \"foo\"\n                        },\n                        \"static\": false,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 12,\n                            \"end\": 18,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 15,\n                                \"end\": 18,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// async == true\ntest(\"class A {async foo() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 25,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 25,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 25,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 24,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 15,\n                            \"end\": 18,\n                            \"name\": \"foo\"\n                        },\n                        \"static\": false,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 18,\n                            \"end\": 24,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 21,\n                                \"end\": 24,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"class A {static async foo() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 32,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 32,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 32,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 31,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 22,\n                            \"end\": 25,\n                            \"name\": \"foo\"\n                        },\n                        \"static\": true,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 25,\n                            \"end\": 31,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 28,\n                                \"end\": 31,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// OK 'async' as a method name.\ntest(\"class A {async() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 21,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 21,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 21,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 20,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 9,\n                            \"end\": 14,\n                            \"name\": \"async\"\n                        },\n                        \"static\": false,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 14,\n                            \"end\": 20,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 17,\n                                \"end\": 20,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"class A {static async() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 28,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 28,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 28,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 27,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 16,\n                            \"end\": 21,\n                            \"name\": \"async\"\n                        },\n                        \"static\": true,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 21,\n                            \"end\": 27,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 24,\n                                \"end\": 27,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"class A {*async() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 22,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 22,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 22,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 21,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 10,\n                            \"end\": 15,\n                            \"name\": \"async\"\n                        },\n                        \"static\": false,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 15,\n                            \"end\": 21,\n                            \"id\": null,\n                            \"generator\": true,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 18,\n                                \"end\": 21,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"class A {static* async() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 29,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 29,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 29,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 28,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 17,\n                            \"end\": 22,\n                            \"name\": \"async\"\n                        },\n                        \"static\": true,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 22,\n                            \"end\": 28,\n                            \"id\": null,\n                            \"generator\": true,\n                            \"expression\": false,\n                            \"async\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 25,\n                                \"end\": 28,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// invalid syntax if there is a linebreak after 'async'.\ntestFail(\"class A {async\\nfoo() { }}\", \"Unexpected token (2:0)\", {ecmaVersion: 8})\ntestFail(\"class A {static async\\nfoo() { }}\", \"Unexpected token (2:0)\", {ecmaVersion: 8})\n\n// cannot combine with constructors/getters/setters/generators.\ntestFail(\"class A {async constructor() { }}\", \"Constructor can't be an async method (1:15)\", {ecmaVersion: 8})\ntestFail(\"class A {async get foo() { }}\", \"Unexpected token (1:19)\", {ecmaVersion: 8})\ntestFail(\"class A {async set foo(value) { }}\", \"Unexpected token (1:19)\", {ecmaVersion: 8})\ntestFail(\"class A {async* foo() { }}\", \"Unexpected token (1:14)\", {ecmaVersion: 8})\ntestFail(\"class A {static async get foo() { }}\", \"Unexpected token (1:26)\", {ecmaVersion: 8})\ntestFail(\"class A {static async set foo(value) { }}\", \"Unexpected token (1:26)\", {ecmaVersion: 8})\ntestFail(\"class A {static async* foo() { }}\", \"Unexpected token (1:21)\", {ecmaVersion: 8})\n\n// 'await' is valid as function names.\ntest(\"class A {async await() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 27,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 27,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 27,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 26,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 15,\n                            \"end\": 20,\n                            \"name\": \"await\"\n                        },\n                        \"static\": false,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 20,\n                            \"end\": 26,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 23,\n                                \"end\": 26,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"class A {static async await() { }}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 34,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 34,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 34,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 33,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 22,\n                            \"end\": 27,\n                            \"name\": \"await\"\n                        },\n                        \"static\": true,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 27,\n                            \"end\": 33,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 30,\n                                \"end\": 33,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// cannot use 'await' inside async functions.\ntest(\"async function wrap() {\\nclass A {async await() { }}\\n}\", {}, {ecmaVersion: 8})\ntestFail(\"class A {async foo() { var await }}\", \"Cannot use 'await' as identifier inside an async function (1:27)\", {ecmaVersion: 8})\ntestFail(\"class A {async foo(await) { }}\", \"Cannot use 'await' as identifier inside an async function (1:19)\", {ecmaVersion: 8})\ntestFail(\"class A {async foo() { return {await} }}\", \"Cannot use 'await' as identifier inside an async function (1:31)\", {ecmaVersion: 8})\n//-----------------------------------------------------------------------------\n// Await Expressions\n\n// 'await' is an identifier in scripts.\ntest(\"await\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 5,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 5,\n            \"expression\": {\n                \"type\": \"Identifier\",\n                \"start\": 0,\n                \"end\": 5,\n                \"name\": \"await\"\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// 'await' is a keyword in modules.\ntestFail(\"await\", \"Cannot use keyword 'await' outside an async function (1:0)\", {ecmaVersion: 8, sourceType: \"module\"})\n\n// Await expressions is invalid outside of async functions.\ntestFail(\"await a\", \"Unexpected token (1:6)\", {ecmaVersion: 8})\ntestFail(\"await a\", \"Cannot use keyword 'await' outside an async function (1:0)\", {ecmaVersion: 8, sourceType: \"module\"})\n\n// Await expressions in async functions.\ntest(\"async function foo(a, b) { await a }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 36,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 36,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 18,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": true,\n            \"params\": [\n                {\n                    \"type\": \"Identifier\",\n                    \"start\": 19,\n                    \"end\": 20,\n                    \"name\": \"a\"\n                },\n                {\n                    \"type\": \"Identifier\",\n                    \"start\": 22,\n                    \"end\": 23,\n                    \"name\": \"b\"\n                }\n            ],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 25,\n                \"end\": 36,\n                \"body\": [\n                    {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 27,\n                        \"end\": 34,\n                        \"expression\": {\n                            \"type\": \"AwaitExpression\",\n                            \"start\": 27,\n                            \"end\": 34,\n                            \"argument\": {\n                                \"type\": \"Identifier\",\n                                \"start\": 33,\n                                \"end\": 34,\n                                \"name\": \"a\"\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"(async function foo(a) { await a })\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 35,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 35,\n            \"expression\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 1,\n                \"end\": 34,\n                \"id\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 16,\n                    \"end\": 19,\n                    \"name\": \"foo\"\n                },\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 20,\n                        \"end\": 21,\n                        \"name\": \"a\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 23,\n                    \"end\": 34,\n                    \"body\": [\n                        {\n                            \"type\": \"ExpressionStatement\",\n                            \"start\": 25,\n                            \"end\": 32,\n                            \"expression\": {\n                                \"type\": \"AwaitExpression\",\n                                \"start\": 25,\n                                \"end\": 32,\n                                \"argument\": {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 31,\n                                    \"end\": 32,\n                                    \"name\": \"a\"\n                                }\n                            }\n                        }\n                    ]\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"(async (a) => await a)\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 22,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 22,\n            \"expression\": {\n                \"type\": \"ArrowFunctionExpression\",\n                \"start\": 1,\n                \"end\": 21,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": true,\n                \"async\": true,\n                \"params\": [\n                    {\n                        \"type\": \"Identifier\",\n                        \"start\": 8,\n                        \"end\": 9,\n                        \"name\": \"a\"\n                    }\n                ],\n                \"body\": {\n                    \"type\": \"AwaitExpression\",\n                    \"start\": 14,\n                    \"end\": 21,\n                    \"argument\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 20,\n                        \"end\": 21,\n                        \"name\": \"a\"\n                    }\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"({async foo(a) { await a }})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 28,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 28,\n            \"expression\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 1,\n                \"end\": 27,\n                \"properties\": [\n                    {\n                        \"type\": \"Property\",\n                        \"start\": 2,\n                        \"end\": 26,\n                        \"method\": true,\n                        \"shorthand\": false,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 8,\n                            \"end\": 11,\n                            \"name\": \"foo\"\n                        },\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 11,\n                            \"end\": 26,\n                            \"id\": null,\n                            \"generator\": false,\n                            \"expression\": false,\n                            \"async\": true,\n                            \"params\": [\n                                {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 12,\n                                    \"end\": 13,\n                                    \"name\": \"a\"\n                                }\n                            ],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 15,\n                                \"end\": 26,\n                                \"body\": [\n                                    {\n                                        \"type\": \"ExpressionStatement\",\n                                        \"start\": 17,\n                                        \"end\": 24,\n                                        \"expression\": {\n                                            \"type\": \"AwaitExpression\",\n                                            \"start\": 17,\n                                            \"end\": 24,\n                                            \"argument\": {\n                                                \"type\": \"Identifier\",\n                                                \"start\": 23,\n                                                \"end\": 24,\n                                                \"name\": \"a\"\n                                            }\n                                        }\n                                    }\n                                ]\n                            }\n                        },\n                        \"kind\": \"init\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"(class {async foo(a) { await a }})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 34,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 34,\n            \"expression\": {\n                \"type\": \"ClassExpression\",\n                \"start\": 1,\n                \"end\": 33,\n                \"id\": null,\n                \"superClass\": null,\n                \"body\": {\n                    \"type\": \"ClassBody\",\n                    \"start\": 7,\n                    \"end\": 33,\n                    \"body\": [\n                        {\n                            \"type\": \"MethodDefinition\",\n                            \"start\": 8,\n                            \"end\": 32,\n                            \"computed\": false,\n                            \"key\": {\n                                \"type\": \"Identifier\",\n                                \"start\": 14,\n                                \"end\": 17,\n                                \"name\": \"foo\"\n                            },\n                            \"static\": false,\n                            \"kind\": \"method\",\n                            \"value\": {\n                                \"type\": \"FunctionExpression\",\n                                \"start\": 17,\n                                \"end\": 32,\n                                \"id\": null,\n                                \"generator\": false,\n                                \"expression\": false,\n                                \"async\": true,\n                                \"params\": [\n                                    {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 18,\n                                        \"end\": 19,\n                                        \"name\": \"a\"\n                                    }\n                                ],\n                                \"body\": {\n                                    \"type\": \"BlockStatement\",\n                                    \"start\": 21,\n                                    \"end\": 32,\n                                    \"body\": [\n                                        {\n                                            \"type\": \"ExpressionStatement\",\n                                            \"start\": 23,\n                                            \"end\": 30,\n                                            \"expression\": {\n                                                \"type\": \"AwaitExpression\",\n                                                \"start\": 23,\n                                                \"end\": 30,\n                                                \"argument\": {\n                                                    \"type\": \"Identifier\",\n                                                    \"start\": 29,\n                                                    \"end\": 30,\n                                                    \"name\": \"a\"\n                                                }\n                                            }\n                                        }\n                                    ]\n                                }\n                            }\n                        }\n                    ]\n                }\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// Await expressions are an unary expression.\ntest(\"async function foo(a, b) { await a + await b }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 46,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 46,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 18,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": true,\n            \"params\": [\n                {\n                    \"type\": \"Identifier\",\n                    \"start\": 19,\n                    \"end\": 20,\n                    \"name\": \"a\"\n                },\n                {\n                    \"type\": \"Identifier\",\n                    \"start\": 22,\n                    \"end\": 23,\n                    \"name\": \"b\"\n                }\n            ],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 25,\n                \"end\": 46,\n                \"body\": [\n                    {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 27,\n                        \"end\": 44,\n                        \"expression\": {\n                            \"type\": \"BinaryExpression\",\n                            \"start\": 27,\n                            \"end\": 44,\n                            \"left\": {\n                                \"type\": \"AwaitExpression\",\n                                \"start\": 27,\n                                \"end\": 34,\n                                \"argument\": {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 33,\n                                    \"end\": 34,\n                                    \"name\": \"a\"\n                                }\n                            },\n                            \"operator\": \"+\",\n                            \"right\": {\n                                \"type\": \"AwaitExpression\",\n                                \"start\": 37,\n                                \"end\": 44,\n                                \"argument\": {\n                                    \"type\": \"Identifier\",\n                                    \"start\": 43,\n                                    \"end\": 44,\n                                    \"name\": \"b\"\n                                }\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// 'await + 1' is a binary expression outside of async functions.\ntest(\"function foo() { await + 1 }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 28,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 28,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 28,\n                \"body\": [\n                    {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 17,\n                        \"end\": 26,\n                        \"expression\": {\n                            \"type\": \"BinaryExpression\",\n                            \"start\": 17,\n                            \"end\": 26,\n                            \"left\": {\n                                \"type\": \"Identifier\",\n                                \"start\": 17,\n                                \"end\": 22,\n                                \"name\": \"await\"\n                            },\n                            \"operator\": \"+\",\n                            \"right\": {\n                                \"type\": \"Literal\",\n                                \"start\": 25,\n                                \"end\": 26,\n                                \"value\": 1,\n                                \"raw\": \"1\"\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// 'await + 1' is an await expression in async functions.\ntest(\"async function foo() { await + 1 }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 34,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 34,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 18,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": true,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 34,\n                \"body\": [\n                    {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 23,\n                        \"end\": 32,\n                        \"expression\": {\n                            \"type\": \"AwaitExpression\",\n                            \"start\": 23,\n                            \"end\": 32,\n                            \"argument\": {\n                                \"type\": \"UnaryExpression\",\n                                \"start\": 29,\n                                \"end\": 32,\n                                \"operator\": \"+\",\n                                \"prefix\": true,\n                                \"argument\": {\n                                    \"type\": \"Literal\",\n                                    \"start\": 31,\n                                    \"end\": 32,\n                                    \"value\": 1,\n                                    \"raw\": \"1\"\n                                }\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// Await expressions need one argument.\ntestFail(\"async function foo() { await }\", \"Unexpected token (1:29)\", {ecmaVersion: 8})\ntestFail(\"(async function foo() { await })\", \"Unexpected token (1:30)\", {ecmaVersion: 8})\ntestFail(\"async () => await\", \"Unexpected token (1:17)\", {ecmaVersion: 8})\ntestFail(\"({async foo() { await }})\", \"Unexpected token (1:22)\", {ecmaVersion: 8})\ntestFail(\"(class {async foo() { await }})\", \"Unexpected token (1:28)\", {ecmaVersion: 8})\n\n// Forbid await expressions in default parameters:\ntestFail(\"async function foo(a = await b) {}\", \"Await expression cannot be a default value (1:23)\", {ecmaVersion: 8})\ntestFail(\"(async function foo(a = await b) {})\", \"Await expression cannot be a default value (1:24)\", {ecmaVersion: 8})\ntestFail(\"async (a = await b) => {}\", \"Unexpected token (1:17)\", {ecmaVersion: 8})\ntestFail(\"async function wrapper() {\\nasync (a = await b) => {}\\n}\", \"Await expression cannot be a default value (2:11)\", {ecmaVersion: 8})\ntestFail(\"({async foo(a = await b) {}})\", \"Await expression cannot be a default value (1:16)\", {ecmaVersion: 8})\ntestFail(\"(class {async foo(a = await b) {}})\", \"Await expression cannot be a default value (1:22)\", {ecmaVersion: 8})\ntestFail(\"async function foo(a = class extends (await b) {}) {}\", \"Await expression cannot be a default value (1:38)\", {ecmaVersion: 8})\n\n// Allow await expressions inside functions in default parameters:\ntest(\"async function foo(a = async function foo() { await b }) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 59,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 59,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 18,\n        \"name\": \"foo\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 19,\n          \"end\": 55,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 19,\n            \"end\": 20,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"FunctionExpression\",\n            \"start\": 23,\n            \"end\": 55,\n            \"id\": {\n              \"type\": \"Identifier\",\n              \"start\": 38,\n              \"end\": 41,\n              \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"async\": true,\n            \"params\": [],\n            \"body\": {\n              \"type\": \"BlockStatement\",\n              \"start\": 44,\n              \"end\": 55,\n              \"body\": [\n                {\n                  \"type\": \"ExpressionStatement\",\n                  \"start\": 46,\n                  \"end\": 53,\n                  \"expression\": {\n                    \"type\": \"AwaitExpression\",\n                    \"start\": 46,\n                    \"end\": 53,\n                    \"argument\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 52,\n                      \"end\": 53,\n                      \"name\": \"b\"\n                    }\n                  }\n                }\n              ]\n            }\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 57,\n        \"end\": 59,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"async function foo(a = async () => await b) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 46,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 46,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 18,\n        \"name\": \"foo\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 19,\n          \"end\": 42,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 19,\n            \"end\": 20,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"ArrowFunctionExpression\",\n            \"start\": 23,\n            \"end\": 42,\n            \"id\": null,\n            \"generator\": false,\n            \"expression\": true,\n            \"async\": true,\n            \"params\": [],\n            \"body\": {\n              \"type\": \"AwaitExpression\",\n              \"start\": 35,\n              \"end\": 42,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 41,\n                \"end\": 42,\n                \"name\": \"b\"\n              }\n            }\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 44,\n        \"end\": 46,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"async function foo(a = {async bar() { await b }}) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 52,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 52,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 18,\n        \"name\": \"foo\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 19,\n          \"end\": 48,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 19,\n            \"end\": 20,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"ObjectExpression\",\n            \"start\": 23,\n            \"end\": 48,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 24,\n                \"end\": 47,\n                \"method\": true,\n                \"shorthand\": false,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 30,\n                  \"end\": 33,\n                  \"name\": \"bar\"\n                },\n                \"value\": {\n                  \"type\": \"FunctionExpression\",\n                  \"start\": 33,\n                  \"end\": 47,\n                  \"id\": null,\n                  \"generator\": false,\n                  \"expression\": false,\n                  \"async\": true,\n                  \"params\": [],\n                  \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 36,\n                    \"end\": 47,\n                    \"body\": [\n                      {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 38,\n                        \"end\": 45,\n                        \"expression\": {\n                          \"type\": \"AwaitExpression\",\n                          \"start\": 38,\n                          \"end\": 45,\n                          \"argument\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 44,\n                            \"end\": 45,\n                            \"name\": \"b\"\n                          }\n                        }\n                      }\n                    ]\n                  }\n                },\n                \"kind\": \"init\"\n              }\n            ]\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 50,\n        \"end\": 52,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntest(\"async function foo(a = class {async bar() { await b }}) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 58,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 58,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 18,\n        \"name\": \"foo\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 19,\n          \"end\": 54,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 19,\n            \"end\": 20,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"ClassExpression\",\n            \"start\": 23,\n            \"end\": 54,\n            \"id\": null,\n            \"superClass\": null,\n            \"body\": {\n              \"type\": \"ClassBody\",\n              \"start\": 29,\n              \"end\": 54,\n              \"body\": [\n                {\n                  \"type\": \"MethodDefinition\",\n                  \"start\": 30,\n                  \"end\": 53,\n                  \"computed\": false,\n                  \"key\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 36,\n                    \"end\": 39,\n                    \"name\": \"bar\"\n                  },\n                  \"static\": false,\n                  \"kind\": \"method\",\n                  \"value\": {\n                    \"type\": \"FunctionExpression\",\n                    \"start\": 39,\n                    \"end\": 53,\n                    \"id\": null,\n                    \"generator\": false,\n                    \"expression\": false,\n                    \"async\": true,\n                    \"params\": [],\n                    \"body\": {\n                      \"type\": \"BlockStatement\",\n                      \"start\": 42,\n                      \"end\": 53,\n                      \"body\": [\n                        {\n                          \"type\": \"ExpressionStatement\",\n                          \"start\": 44,\n                          \"end\": 51,\n                          \"expression\": {\n                            \"type\": \"AwaitExpression\",\n                            \"start\": 44,\n                            \"end\": 51,\n                            \"argument\": {\n                              \"type\": \"Identifier\",\n                              \"start\": 50,\n                              \"end\": 51,\n                              \"name\": \"b\"\n                            }\n                          }\n                        }\n                      ]\n                    }\n                  }\n                }\n              ]\n            }\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 56,\n        \"end\": 58,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n// Distinguish ParenthesizedExpression or ArrowFunctionExpression\ntest(\"async function wrap() {\\n(a = await b)\\n}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 39,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 39,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 19,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 22,\n        \"end\": 39,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 24,\n            \"end\": 37,\n            \"expression\": {\n              \"type\": \"AssignmentExpression\",\n              \"start\": 25,\n              \"end\": 36,\n              \"operator\": \"=\",\n              \"left\": {\n                \"type\": \"Identifier\",\n                \"start\": 25,\n                \"end\": 26,\n                \"name\": \"a\"\n              },\n              \"right\": {\n                \"type\": \"AwaitExpression\",\n                \"start\": 29,\n                \"end\": 36,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 35,\n                  \"end\": 36,\n                  \"name\": \"b\"\n                }\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntestFail(\"async function wrap() {\\n(a = await b) => a\\n}\", \"Await expression cannot be a default value (2:5)\", {ecmaVersion: 8})\n\ntest(\"async function wrap() {\\n({a = await b} = obj)\\n}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 47,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 47,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 19,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 22,\n        \"end\": 47,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 24,\n            \"end\": 45,\n            \"expression\": {\n              \"type\": \"AssignmentExpression\",\n              \"start\": 25,\n              \"end\": 44,\n              \"operator\": \"=\",\n              \"left\": {\n                \"type\": \"ObjectPattern\",\n                \"start\": 25,\n                \"end\": 38,\n                \"properties\": [\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 26,\n                    \"end\": 37,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 26,\n                      \"end\": 27,\n                      \"name\": \"a\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 26,\n                      \"end\": 37,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 26,\n                        \"end\": 27,\n                        \"name\": \"a\"\n                      },\n                      \"right\": {\n                        \"type\": \"AwaitExpression\",\n                        \"start\": 30,\n                        \"end\": 37,\n                        \"argument\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 36,\n                          \"end\": 37,\n                          \"name\": \"b\"\n                        }\n                      }\n                    },\n                    \"kind\": \"init\"\n                  }\n                ]\n              },\n              \"right\": {\n                \"type\": \"Identifier\",\n                \"start\": 41,\n                \"end\": 44,\n                \"name\": \"obj\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntestFail(\"async function wrap() {\\n({a = await b} = obj) => a\\n}\", \"Await expression cannot be a default value (2:6)\", {ecmaVersion: 8})\n\ntest(\"function* wrap() {\\nasync(a = yield b)\\n}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 39,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 39,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 14,\n        \"name\": \"wrap\"\n      },\n      \"params\": [],\n      \"generator\": true,\n      \"expression\": false,\n      \"async\": false,\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 17,\n        \"end\": 39,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 19,\n            \"end\": 37,\n            \"expression\": {\n              \"type\": \"CallExpression\",\n              \"start\": 19,\n              \"end\": 37,\n              \"callee\": {\n                \"type\": \"Identifier\",\n                \"start\": 19,\n                \"end\": 24,\n                \"name\": \"async\"\n              },\n              \"arguments\": [\n                {\n                  \"type\": \"AssignmentExpression\",\n                  \"start\": 25,\n                  \"end\": 36,\n                  \"operator\": \"=\",\n                  \"left\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 25,\n                    \"end\": 26,\n                    \"name\": \"a\"\n                  },\n                  \"right\": {\n                    \"type\": \"YieldExpression\",\n                    \"start\": 29,\n                    \"end\": 36,\n                    \"delegate\": false,\n                    \"argument\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 35,\n                      \"end\": 36,\n                      \"name\": \"b\"\n                    }\n                  }\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntestFail(\"function* wrap() {\\nasync(a = yield b) => a\\n}\", \"Yield expression cannot be a default value (2:10)\", {ecmaVersion: 8})\n\n// https://github.com/acornjs/acorn/issues/464\ntest(\"f = ({ w = counter(), x = counter(), y = counter(), z = counter() } = { w: null, x: 0, y: false, z: '' }) => {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 111,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 111,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 111,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"f\"\n        },\n        \"right\": {\n          \"type\": \"ArrowFunctionExpression\",\n          \"start\": 4,\n          \"end\": 111,\n          \"id\": null,\n          \"params\": [\n            {\n              \"type\": \"AssignmentPattern\",\n              \"start\": 5,\n              \"end\": 104,\n              \"left\": {\n                \"type\": \"ObjectPattern\",\n                \"start\": 5,\n                \"end\": 67,\n                \"properties\": [\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 7,\n                    \"end\": 20,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 7,\n                      \"end\": 8,\n                      \"name\": \"w\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 7,\n                      \"end\": 20,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 7,\n                        \"end\": 8,\n                        \"name\": \"w\"\n                      },\n                      \"right\": {\n                        \"type\": \"CallExpression\",\n                        \"start\": 11,\n                        \"end\": 20,\n                        \"callee\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 11,\n                          \"end\": 18,\n                          \"name\": \"counter\"\n                        },\n                        \"arguments\": []\n                      }\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 22,\n                    \"end\": 35,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 22,\n                      \"end\": 23,\n                      \"name\": \"x\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 22,\n                      \"end\": 35,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 22,\n                        \"end\": 23,\n                        \"name\": \"x\"\n                      },\n                      \"right\": {\n                        \"type\": \"CallExpression\",\n                        \"start\": 26,\n                        \"end\": 35,\n                        \"callee\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 26,\n                          \"end\": 33,\n                          \"name\": \"counter\"\n                        },\n                        \"arguments\": []\n                      }\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 37,\n                    \"end\": 50,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 37,\n                      \"end\": 38,\n                      \"name\": \"y\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 37,\n                      \"end\": 50,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 37,\n                        \"end\": 38,\n                        \"name\": \"y\"\n                      },\n                      \"right\": {\n                        \"type\": \"CallExpression\",\n                        \"start\": 41,\n                        \"end\": 50,\n                        \"callee\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 41,\n                          \"end\": 48,\n                          \"name\": \"counter\"\n                        },\n                        \"arguments\": []\n                      }\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 52,\n                    \"end\": 65,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 52,\n                      \"end\": 53,\n                      \"name\": \"z\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 52,\n                      \"end\": 65,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 52,\n                        \"end\": 53,\n                        \"name\": \"z\"\n                      },\n                      \"right\": {\n                        \"type\": \"CallExpression\",\n                        \"start\": 56,\n                        \"end\": 65,\n                        \"callee\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 56,\n                          \"end\": 63,\n                          \"name\": \"counter\"\n                        },\n                        \"arguments\": []\n                      }\n                    },\n                    \"kind\": \"init\"\n                  }\n                ]\n              },\n              \"right\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 70,\n                \"end\": 104,\n                \"properties\": [\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 72,\n                    \"end\": 79,\n                    \"method\": false,\n                    \"shorthand\": false,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 72,\n                      \"end\": 73,\n                      \"name\": \"w\"\n                    },\n                    \"value\": {\n                      \"type\": \"Literal\",\n                      \"start\": 75,\n                      \"end\": 79,\n                      \"value\": null,\n                      \"raw\": \"null\"\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 81,\n                    \"end\": 85,\n                    \"method\": false,\n                    \"shorthand\": false,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 81,\n                      \"end\": 82,\n                      \"name\": \"x\"\n                    },\n                    \"value\": {\n                      \"type\": \"Literal\",\n                      \"start\": 84,\n                      \"end\": 85,\n                      \"value\": 0,\n                      \"raw\": \"0\"\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 87,\n                    \"end\": 95,\n                    \"method\": false,\n                    \"shorthand\": false,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 87,\n                      \"end\": 88,\n                      \"name\": \"y\"\n                    },\n                    \"value\": {\n                      \"type\": \"Literal\",\n                      \"start\": 90,\n                      \"end\": 95,\n                      \"value\": false,\n                      \"raw\": \"false\"\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 97,\n                    \"end\": 102,\n                    \"method\": false,\n                    \"shorthand\": false,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 97,\n                      \"end\": 98,\n                      \"name\": \"z\"\n                    },\n                    \"value\": {\n                      \"type\": \"Literal\",\n                      \"start\": 100,\n                      \"end\": 102,\n                      \"value\": \"\",\n                      \"raw\": \"''\"\n                    },\n                    \"kind\": \"init\"\n                  }\n                ]\n              }\n            }\n          ],\n          \"generator\": false,\n          \"expression\": false,\n          \"async\": false,\n          \"body\": {\n            \"type\": \"BlockStatement\",\n            \"start\": 109,\n            \"end\": 111,\n            \"body\": []\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"({ async: true })\", {\n  type: \"Program\",\n  body: [{\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"ObjectExpression\",\n        properties: [{\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"async\"\n            },\n            value: {\n              type: \"Literal\",\n              value: true\n            },\n            kind: \"init\"\n        }]\n      }\n  }]\n}, {ecmaVersion: 8});\n\n// Tests for B.3.4 FunctionDeclarations in IfStatement Statement Clauses\ntestFail(\"if (x) async function f() {}\", \"Unexpected token (1:7)\", {ecmaVersion: 8})\n\ntestFail(\"(async)(a) => 12\", \"Unexpected token (1:11)\", {ecmaVersion: 8})\n\ntestFail(\"f = async ((x)) => x\", \"Parenthesized pattern (1:11)\", {ecmaVersion: 8})\n\n// allow 'async' as a shorthand property in script.\ntest(\n  \"({async})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 9,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 9,\n        \"expression\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 1,\n          \"end\": 8,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 7,\n              \"method\": false,\n              \"shorthand\": true,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 7,\n                \"name\": \"async\"\n              },\n              \"value\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 7,\n                \"name\": \"async\"\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\ntest(\n  \"({async, foo})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 14,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 14,\n        \"expression\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 1,\n          \"end\": 13,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 7,\n              \"method\": false,\n              \"shorthand\": true,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 7,\n                \"name\": \"async\"\n              },\n              \"value\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 7,\n                \"name\": \"async\"\n              },\n              \"kind\": \"init\"\n            },\n            {\n              \"type\": \"Property\",\n              \"start\": 9,\n              \"end\": 12,\n              \"method\": false,\n              \"shorthand\": true,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n              },\n              \"value\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\ntest(\n  \"({async = 0} = {})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 18,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 18,\n        \"expression\": {\n          \"type\": \"AssignmentExpression\",\n          \"start\": 1,\n          \"end\": 17,\n          \"operator\": \"=\",\n          \"left\": {\n            \"type\": \"ObjectPattern\",\n            \"start\": 1,\n            \"end\": 12,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 2,\n                \"end\": 11,\n                \"method\": false,\n                \"shorthand\": true,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 2,\n                  \"end\": 7,\n                  \"name\": \"async\"\n                },\n                \"value\": {\n                  \"type\": \"AssignmentPattern\",\n                  \"start\": 2,\n                  \"end\": 11,\n                  \"left\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 2,\n                    \"end\": 7,\n                    \"name\": \"async\"\n                  },\n                  \"right\": {\n                    \"type\": \"Literal\",\n                    \"start\": 10,\n                    \"end\": 11,\n                    \"value\": 0,\n                    \"raw\": \"0\"\n                  }\n                },\n                \"kind\": \"init\"\n              }\n            ]\n          },\n          \"right\": {\n            \"type\": \"ObjectExpression\",\n            \"start\": 15,\n            \"end\": 17,\n            \"properties\": []\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\n\n// async functions with vary names.\ntest(\n  \"({async \\\"foo\\\"(){}})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 19,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 19,\n        \"expression\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 1,\n          \"end\": 18,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 17,\n              \"method\": true,\n              \"shorthand\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Literal\",\n                \"start\": 8,\n                \"end\": 13,\n                \"value\": \"foo\",\n                \"raw\": \"\\\"foo\\\"\"\n              },\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 13,\n                \"end\": 17,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 15,\n                  \"end\": 17,\n                  \"body\": []\n                }\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\ntest(\n  \"({async 'foo'(){}})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 19,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 19,\n        \"expression\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 1,\n          \"end\": 18,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 17,\n              \"method\": true,\n              \"shorthand\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Literal\",\n                \"start\": 8,\n                \"end\": 13,\n                \"value\": \"foo\",\n                \"raw\": \"'foo'\"\n              },\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 13,\n                \"end\": 17,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 15,\n                  \"end\": 17,\n                  \"body\": []\n                }\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\ntest(\n  \"({async 100(){}})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 17,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 17,\n        \"expression\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 1,\n          \"end\": 16,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 15,\n              \"method\": true,\n              \"shorthand\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Literal\",\n                \"start\": 8,\n                \"end\": 11,\n                \"value\": 100,\n                \"raw\": \"100\"\n              },\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 11,\n                \"end\": 15,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 13,\n                  \"end\": 15,\n                  \"body\": []\n                }\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\ntest(\n  \"({async [foo](){}})\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 19,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 19,\n        \"expression\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 1,\n          \"end\": 18,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 17,\n              \"method\": true,\n              \"shorthand\": false,\n              \"computed\": true,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n              },\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 13,\n                \"end\": 17,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": true,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 15,\n                  \"end\": 17,\n                  \"body\": []\n                }\n              },\n              \"kind\": \"init\"\n            }\n          ]\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  {ecmaVersion: 8}\n)\n\ntest(\"({ async delete() {} })\", {}, {ecmaVersion: 8})\n\ntestFail(\"abc: async function a() {}\", \"Unexpected token (1:5)\", {ecmaVersion: 8})\n\ntestFail(\"(async() => { await 4 ** 2 })()\", \"Unexpected token (1:22)\", {ecmaVersion: 8})\n\ntest(\"(async() => { await (4 ** 2) })()\", {}, {ecmaVersion: 8})\n\ntestFail(\"async() => (await 1 ** 3)\", \"Unexpected token (1:20)\", {ecmaVersion: 8})\n\ntest(\"async() => (await (1 ** 3))\", {}, {ecmaVersion: 8})\n\ntestFail(\"async() => await 5 ** 6\", \"Unexpected token (1:19)\", {ecmaVersion: 8})\n\ntest(\"async() => await (5 ** 6)\", {}, {ecmaVersion: 8})\n\ntestFail(\"async() => await (5) ** 6\", \"Unexpected token (1:21)\", {ecmaVersion: 8})\n\ntestFail(\"4 + async() => 2\", \"Unexpected token (1:12)\", {ecmaVersion: 8, loose: false})\n\ntestFail(\"async function𝐬 f() {}\", \"Unexpected token (1:17)\", {ecmaVersion: 8})\n\ntestFail(\"async () => class { x = await 1 }\", \"Unexpected token (1:30)\", {ecmaVersion: 2024})\n\ntest(\"async () => class { x = async () => await 1 }\", {}, {ecmaVersion: 2024})\n\ntest(\"async () => class { x = await }\", {}, {ecmaVersion: 2024})\n\ntestFail(\"async () => class { x = await }\", \"Cannot use keyword 'await' outside an async function (1:24)\",\n         {ecmaVersion: 2024, sourceType: \"module\"})\n\ntestFail(\"async function\\\\u1111() { }\", \"Unexpected token (1:20)\", {ecmaVersion: 8})\n"
  },
  {
    "path": "test/tests-await-top-level.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n//------------------------------------------------------------------------------\n// await-top-level\n//------------------------------------------------------------------------------\n\ntestFail(\"await 1\", \"Unexpected token (1:6)\", {ecmaVersion: 8})\ntest(\"await 1\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 7,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 7,\n      \"expression\": {\n        \"type\": \"AwaitExpression\",\n        \"start\": 0,\n        \"end\": 7,\n        \"argument\": {\n          \"type\": \"Literal\",\n          \"start\": 6,\n          \"end\": 7,\n          \"value\": 1\n        }\n      }\n    }\n  ]\n}, {allowAwaitOutsideFunction: true, ecmaVersion: 8})\ntestFail(\"function foo() {return await 1}\", \"Unexpected token (1:29)\", {ecmaVersion: 8})\ntestFail(\"function foo() {return await 1}\", \"Unexpected token (1:29)\", {\n  allowAwaitOutsideFunction: true,\n  ecmaVersion: 8\n})\n// ES2022\ntest(\"await 1\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 7,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 7,\n      \"expression\": {\n        \"type\": \"AwaitExpression\",\n        \"start\": 0,\n        \"end\": 7,\n        \"argument\": {\n          \"type\": \"Literal\",\n          \"start\": 6,\n          \"end\": 7,\n          \"value\": 1\n        }\n      }\n    }\n  ]\n}, {ecmaVersion: 13, sourceType: \"module\"})\ntestFail(\"function foo() {return await 1}\", \"Unexpected token (1:29)\", {ecmaVersion: 13})\ntestFail(\"await 1\", \"Unexpected token (1:6)\", {\n  allowAwaitOutsideFunction: false,\n  ecmaVersion: 13\n})\ntestFail(\"await 1\", \"Unexpected token (1:6)\", {ecmaVersion: 12})\n"
  },
  {
    "path": "test/tests-bigint.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\nconst newBigIntLiteral = (start, stringValue, bigint = stringValue) => ({\n  start: start,\n  type: \"Literal\",\n  end: start + stringValue.length + 1,\n  value: typeof BigInt !== \"undefined\" ? BigInt(stringValue) : null,\n  raw: `${stringValue}n`,\n  bigint\n})\n\nconst digits = [\n  {d: \"0\", ast: start => newBigIntLiteral(start, \"0\")},\n  {d: \"2\", ast: start => newBigIntLiteral(start, \"2\")},\n  {d: \"0x2\", ast: start => newBigIntLiteral(start, \"0x2\", \"2\")},\n  {d: \"0o2\", ast: start => newBigIntLiteral(start, \"0o2\", \"2\")},\n  {d: \"0b10\", ast: start => newBigIntLiteral(start, \"0b10\", \"2\")},\n  {d: \"-0xbf2ed51ff75d380fd3be813ec6185780\", ast: start => ({\n    start: start,\n    type: \"UnaryExpression\",\n    end: start + 36,\n    operator: \"-\",\n    prefix: true,\n    argument: newBigIntLiteral(start + 1, \"0xbf2ed51ff75d380fd3be813ec6185780\", \"254125715536285641815112686497309415296\")\n  })},\n  {d: \"02\", error: start => `Identifier directly after number (1:${start + 2})`},\n  {d: \"2e2\", error: start => `Identifier directly after number (1:${start + 3})`},\n  {d: \"2.4\", error: start => `Identifier directly after number (1:${start + 3})`},\n  {d: \".4\", error: start => `Identifier directly after number (1:${start + 2})`},\n]\nconst statements = [\n  {s: \"let i = %s\", ast: content => ({\n    start: 0,\n    type: \"VariableDeclaration\",\n    end: content.end,\n    kind: \"let\",\n    declarations: [{\n      start: 4,\n      type: \"VariableDeclarator\",\n      end: content.end,\n      id: {\n        start: 4,\n        type: \"Identifier\",\n        end: 5,\n        name: \"i\"\n      },\n      init: content\n    }]\n  })},\n\n  {s: \"i = %s\", ast: content => ({\n    start: 0,\n    type: \"ExpressionStatement\",\n    end: content.end,\n    expression: {\n      start: 0,\n      type: \"AssignmentExpression\",\n      end: content.end,\n      operator: \"=\",\n      left: {\n        start: 0,\n        type: \"Identifier\",\n        end: 1,\n        name: \"i\"\n      },\n      right: content\n    }\n  })},\n\n  {s: \"((i = %s) => {})\", ast: content => ({\n    start: 0,\n    type: \"ExpressionStatement\",\n    end: content.end + 8,\n    expression: {\n      start: 1,\n      type: \"ArrowFunctionExpression\",\n      end: content.end + 7,\n      id: null,\n      generator: false,\n      expression: false,\n      async: false,\n      params: [\n        {\n          start: 2,\n          type: \"AssignmentPattern\",\n          end: content.end,\n          left: {\n            start: 2,\n            type: \"Identifier\",\n            end: 3,\n            name: \"i\"\n          },\n          right: content\n        }\n      ],\n      body: {\n        start: content.end + 5,\n        type: \"BlockStatement\",\n        end: content.end + 7,\n        body: []\n      }\n    }\n  })},\n\n  {s: \"for (let i = 0n; i < %s;++i) {}\", ast: content => ({\n    start: 0,\n    type: \"ForStatement\",\n    end: content.end + 8,\n    init: {\n      start: 5,\n      type: \"VariableDeclaration\",\n      end: 15,\n      declarations: [\n        {\n          start: 9,\n          type: \"VariableDeclarator\",\n          end: 15,\n          id: {\n            start: 9,\n            type: \"Identifier\",\n            end: 10,\n            name: \"i\"\n          },\n          init: newBigIntLiteral(13, \"0\")\n        }\n      ],\n      kind: \"let\"\n    },\n    test: {\n      start: 17,\n      type: \"BinaryExpression\",\n      end: content.end,\n      left: {\n        start: 17,\n        type: \"Identifier\",\n        start: 17,\n        end: 18,\n        name: \"i\"\n      },\n      operator: \"<\",\n      right: content\n    },\n    update: {\n      start: content.end + 1,\n      type: \"UpdateExpression\",\n      end: content.end + 4,\n      operator: \"++\",\n      prefix: true,\n      argument: {\n        start: content.end + 3,\n        type: \"Identifier\",\n        end: content.end + 4,\n        name: \"i\"\n      }\n    },\n    body: {\n      start: content.end + 6,\n      type: \"BlockStatement\",\n      end: content.end + 8,\n      body: []\n    }\n  })},\n\n  {s: \"i + %s\", ast: content => ({\n    start: 0,\n    type: \"ExpressionStatement\",\n    end: content.end,\n    expression: {\n      start: 0,\n      type: \"BinaryExpression\",\n      end: content.end,\n      left: {\n        start: 0,\n        type: \"Identifier\",\n        start: 0,\n        end: 1,\n        name: \"i\"\n      },\n      operator: \"+\",\n      right: content\n    }\n  })}\n]\nstatements.forEach(statement => {\n  const start = statement.s.indexOf(\"%s\")\n  digits.forEach(d => {\n    (d.error ? testFail : test)(\n      statement.s.replace(\"%s\", `${d.d}n`),\n      d.error ? d.error(start) : { type: \"Program\", body: [\n        statement.ast(d.ast(start))\n      ]}, { ecmaVersion: 11 }\n    )\n  })\n})\n"
  },
  {
    "path": "test/tests-class-features-2022.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n//------------------------------------------------------------------------------\n// Public Class Field\n//------------------------------------------------------------------------------\n\ntest(\"class C { aaa }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 15,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 15,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { aaa; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 16,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 16,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { \\\\u0041 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 18,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 18,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 16,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 16,\n              \"name\": \"A\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { '0' }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 15,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 15,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 10,\n              \"end\": 13,\n              \"value\": \"0\",\n              \"raw\": \"'0'\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { 1e2 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 15,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 15,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 10,\n              \"end\": 13,\n              \"value\": 100,\n              \"raw\": \"1e2\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { [0] }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 15,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 15,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": true,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 11,\n              \"end\": 12,\n              \"value\": 0,\n              \"raw\": \"0\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { aaa = bbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 21,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 21,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 21,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 19,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 19,\n              \"name\": \"bbb\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { aaa = bbb; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 20,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 19,\n              \"name\": \"bbb\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { aaa; bbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 20,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 15,\n            \"end\": 18,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 15,\n              \"end\": 18,\n              \"name\": \"bbb\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { aaa\\nbbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 19,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 19,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 19,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 14,\n            \"end\": 17,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 14,\n              \"end\": 17,\n              \"name\": \"bbb\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: false})\n// loose parser requires indentation.\ntest(\"class C { aaa\\n bbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 20,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 15,\n            \"end\": 18,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 15,\n              \"end\": 18,\n              \"name\": \"bbb\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: true})\n\ntest(\"class C { aaa=()=>0 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 21,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 21,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 21,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 19,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": {\n              \"type\": \"ArrowFunctionExpression\",\n              \"start\": 14,\n              \"end\": 19,\n              \"id\": null,\n              \"expression\": true,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"Literal\",\n                \"start\": 18,\n                \"end\": 19,\n                \"value\": 0,\n                \"raw\": \"0\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static aaa }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 20,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 20,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static \\\\u0041 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 23,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 23,\n              \"name\": \"A\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static '0' }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 20,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 17,\n              \"end\": 20,\n              \"value\": \"0\",\n              \"raw\": \"'0'\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static 1e2 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 20,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 17,\n              \"end\": 20,\n              \"value\": 100,\n              \"raw\": \"1e2\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static [0] }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 20,\n            \"static\": true,\n            \"computed\": true,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 18,\n              \"end\": 19,\n              \"value\": 0,\n              \"raw\": \"0\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static aaa = bbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 28,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 28,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 28,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 26,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 20,\n              \"name\": \"aaa\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 23,\n              \"end\": 26,\n              \"name\": \"bbb\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// dupe ok\ntest(\"class C { aaa; aaa }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 20,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 15,\n            \"end\": 18,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 15,\n              \"end\": 18,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// ASI hazard\ntest(\"class C { aaa=0\\n['bbb'] }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"aaa\"\n            },\n            \"value\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 14,\n              \"end\": 23,\n              \"object\": {\n                \"type\": \"Literal\",\n                \"start\": 14,\n                \"end\": 15,\n                \"value\": 0,\n                \"raw\": \"0\"\n              },\n              \"property\": {\n                \"type\": \"Literal\",\n                \"start\": 17,\n                \"end\": 22,\n                \"value\": \"bbb\",\n                \"raw\": \"'bbb'\"\n              },\n              \"computed\": true,\n              \"optional\": false\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// get, set, static, async\ntest(\"class C { get; set; static; async }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 35,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 35,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 35,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"get\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 15,\n            \"end\": 19,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 15,\n              \"end\": 18,\n              \"name\": \"set\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 20,\n            \"end\": 27,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 20,\n              \"end\": 26,\n              \"name\": \"static\"\n            },\n            \"static\": false,\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 28,\n            \"end\": 33,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 28,\n              \"end\": 33,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static\\nget\\nfoo(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 30,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 30,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 30,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 28,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 21,\n              \"end\": 24,\n              \"name\": \"foo\"\n            },\n            \"kind\": \"get\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 24,\n              \"end\": 28,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 26,\n                \"end\": 28,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// ASI\ntest(\"class C { async\\nget(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 15,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 16,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 19,\n              \"name\": \"get\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 19,\n              \"end\": 23,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 23,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: false})\n// loose parser requires indentation.\ntest(\"class C { async\\n get(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 26,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 26,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 26,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 15,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 17,\n            \"end\": 24,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 20,\n              \"name\": \"get\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 20,\n              \"end\": 24,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 22,\n                \"end\": 24,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: true})\n\n// ASI; star after get/set\ntest(\"class C { get\\n *foo(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"get\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 15,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 19,\n              \"name\": \"foo\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 19,\n              \"end\": 23,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 23,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\ntest(\"class C { set\\n *foo(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"set\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 15,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 19,\n              \"name\": \"foo\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 19,\n              \"end\": 23,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 23,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// `await` is reference\ntest(\"async function f() { class C { aaa = await } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 46,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 46,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"params\": [],\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": true,\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 46,\n        \"body\": [\n          {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 21,\n            \"end\": 44,\n            \"id\": {\n              \"type\": \"Identifier\",\n              \"start\": 27,\n              \"end\": 28,\n              \"name\": \"C\"\n            },\n            \"superClass\": null,\n            \"body\": {\n              \"type\": \"ClassBody\",\n              \"start\": 29,\n              \"end\": 44,\n              \"body\": [\n                {\n                  \"type\": \"PropertyDefinition\",\n                  \"start\": 31,\n                  \"end\": 42,\n                  \"static\": false,\n                  \"computed\": false,\n                  \"key\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 31,\n                    \"end\": 34,\n                    \"name\": \"aaa\"\n                  },\n                  \"value\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 37,\n                    \"end\": 42,\n                    \"name\": \"await\"\n                  }\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\ntestFail(\"async function f() { class C { aaa = await } }\", \"Cannot use keyword 'await' outside an async function (1:37)\", {ecmaVersion: 13, sourceType: \"module\"})\n\n// `yield` is keyword in strict mode\ntestFail(\"function* f() { class C { aaa = yield } }\", \"The keyword 'yield' is reserved (1:32)\", {ecmaVersion: 13})\n\n// new.target\ntest(\"class C { a = new.target }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 26,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 26,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 26,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 24,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 11,\n              \"name\": \"a\"\n            },\n            \"value\": {\n              \"type\": \"MetaProperty\",\n              \"start\": 14,\n              \"end\": 24,\n              \"meta\": {\n                \"type\": \"Identifier\",\n                \"start\": 14,\n                \"end\": 17,\n                \"name\": \"new\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 18,\n                \"end\": 24,\n                \"name\": \"target\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// old ecma version\ntestFail(\"class C { aaa }\", \"Unexpected token (1:14)\", {ecmaVersion: 12})\n\n// super\ntest(\"class C { aaa = super.bbb }\", {}, {ecmaVersion: 13})\ntest(\"class C { aaa = () => super.bbb }\", {}, {ecmaVersion: 13})\ntest(\"class C { aaa = () => () => super.bbb }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { [super.bbb] = 0 }\", \"'super' keyword outside a method (1:11)\", {ecmaVersion: 13})\n\n// unexpected token\ntestFail(\"class C { aaa, bbb }\", \"Unexpected token (1:13)\", {ecmaVersion: 13})\ntestFail(\"class C { get aaa }\", \"Unexpected token (1:18)\", {ecmaVersion: 13})\ntestFail(\"class C { set aaa }\", \"Unexpected token (1:18)\", {ecmaVersion: 13})\ntestFail(\"class C { *aaa }\", \"Unexpected token (1:15)\", {ecmaVersion: 13})\ntestFail(\"class C { async aaa }\", \"Unexpected token (1:20)\", {ecmaVersion: 13})\ntestFail(\"class C { async*aaa }\", \"Unexpected token (1:20)\", {ecmaVersion: 13})\ntestFail(\"class C { aaa bbb }\", \"Unexpected token (1:14)\", {ecmaVersion: 13})\ntestFail(\"class C { aaa = 0, 1 }\", \"Unexpected token (1:17)\", {ecmaVersion: 13})\n\n// constructor\ntestFail(\"class C { constructor }\", \"Classes can't have a field named 'constructor' (1:10)\", {ecmaVersion: 13})\ntestFail(\"class C { static constructor }\", \"Classes can't have a field named 'constructor' (1:17)\", {ecmaVersion: 13})\n\n// prototype\ntest(\"class C { prototype }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { static prototype }\", \"Classes can't have a static field named 'prototype' (1:17)\", {ecmaVersion: 13})\n\n// arguments in initializer\ntest(\"class C { aaa = { arguments: 1 } }\", {}, {ecmaVersion: 13})\ntest(\"class C { aaa = function(){ arguments } }\", {}, {ecmaVersion: 13})\ntest(\"class C { [arguments] = 0 }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { aaa = arguments }\", \"Cannot use 'arguments' in class field initializer (1:16)\", {ecmaVersion: 13})\ntestFail(\"class C { aaa = { arguments } }\", \"Cannot use 'arguments' in class field initializer (1:18)\", {ecmaVersion: 13})\n\n//------------------------------------------------------------------------------\n// Private Class Field\n//------------------------------------------------------------------------------\n\ntest(\"class C { #aaa }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 16,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 16,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #\\\\u0041 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 19,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 19,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 19,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 17,\n            \"static\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 17,\n              \"name\": \"A\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static #aaa }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 23,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 23,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 23,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 21,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 17,\n              \"end\": 21,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static\\n#\\\\u0041 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 26,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 26,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 26,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 24,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 17,\n              \"end\": 24,\n              \"name\": \"A\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #aaa; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 17,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 17,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 17,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #aaa; #bbb }\",  {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 16,\n            \"end\": 20,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 16,\n              \"end\": 20,\n              \"name\": \"bbb\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #aaa\\n#bbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 21,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 21,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 21,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 15,\n            \"end\": 19,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 15,\n              \"end\": 19,\n              \"name\": \"bbb\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: false})\n// loose parser requires indentation.\ntest(\"class C { #aaa\\n #bbb }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 16,\n            \"end\": 20,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 16,\n              \"end\": 20,\n              \"name\": \"bbb\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: true})\n\ntest(\"class C { #aaa = 0 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 20,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 18,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": {\n              \"type\": \"Literal\",\n              \"start\": 17,\n              \"end\": 18,\n              \"value\": 0,\n              \"raw\": \"0\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// Surrogate pair in private identifier\ntest(\"class C { #𩸽 }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 15,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 15,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 13,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"𩸽\"\n            },\n            \"value\": null\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// old ecma version\ntestFail(\"class C { #aaa }\", \"Unexpected character '#' (1:10)\", {ecmaVersion: 12})\n\n// Unexpected character\ntestFail(\"class C { # aaa }\", \"Unexpected character ' ' (1:11)\", {ecmaVersion: 13})\ntestFail(\"class C { #+aaa }\", \"Unexpected character '+' (1:11)\", {ecmaVersion: 13})\ntestFail(\"class C { #👍 }\", \"Unexpected character '👍' (1:11)\", {ecmaVersion: 13})\n\n// #constructor\ntestFail(\"class C { #constructor }\", \"Classes can't have an element named '#constructor' (1:10)\", {ecmaVersion: 13})\ntestFail(\"class C { static #constructor }\", \"Classes can't have an element named '#constructor' (1:17)\", {ecmaVersion: 13})\n\n// duplicate\ntest(\"class C { a; #a }\", {}, {ecmaVersion: 13})\ntest(\"class C { #a; a }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { #a; #a }\", \"Identifier '#a' has already been declared (1:14)\", {ecmaVersion: 13})\ntestFail(\"class C { #a; static #a }\", \"Identifier '#a' has already been declared (1:21)\", {ecmaVersion: 13})\ntestFail(\"class C { static #a; #a }\", \"Identifier '#a' has already been declared (1:21)\", {ecmaVersion: 13})\n\n//------------------------------------------------------------------------------\n// Private Class Method\n//------------------------------------------------------------------------------\n\ntest(\"class C { #aaa(){} }\", {  \n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 20,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 18,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 14,\n              \"end\": 18,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 16,\n                \"end\": 18,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { *#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 21,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 21,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 21,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 19,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 11,\n              \"end\": 15,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 15,\n              \"end\": 19,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 17,\n                \"end\": 19,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { async#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 15,\n              \"end\": 19,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 19,\n              \"end\": 23,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 23,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { async*#aaa(){} }\",  {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 26,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 26,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 26,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 24,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 16,\n              \"end\": 20,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 20,\n              \"end\": 24,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 22,\n                \"end\": 24,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 26,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 26,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 26,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 24,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 16,\n              \"end\": 20,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 20,\n              \"end\": 24,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 22,\n                \"end\": 24,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static*#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 27,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 27,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 27,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 25,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 17,\n              \"end\": 21,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 21,\n              \"end\": 25,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 23,\n                \"end\": 25,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static async#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 32,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 32,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 32,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 30,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 22,\n              \"end\": 26,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 26,\n              \"end\": 30,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 28,\n                \"end\": 30,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static async*#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 33,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 33,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 33,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 31,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 23,\n              \"end\": 27,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 27,\n              \"end\": 31,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 29,\n                \"end\": 31,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// no ASI\ntest(\"class C { static\\n*\\n#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 29,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 29,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 29,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 27,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 19,\n              \"end\": 23,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 23,\n              \"end\": 27,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 25,\n                \"end\": 27,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\ntest(\"class C { static\\nasync#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 32,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 32,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 32,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 30,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 22,\n              \"end\": 26,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 26,\n              \"end\": 30,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 28,\n                \"end\": 30,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\ntest(\"class C { static\\nasync*\\n#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 34,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 34,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 34,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 32,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 24,\n              \"end\": 28,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 28,\n              \"end\": 32,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": true,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 30,\n                \"end\": 32,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// ASI\ntest(\"class C { static\\nasync\\n#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 33,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 33,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 33,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 22,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 22,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 23,\n            \"end\": 31,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 23,\n              \"end\": 27,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 27,\n              \"end\": 31,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 29,\n                \"end\": 31,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: false})\ntest(\"class C { static\\nasync\\n*\\n#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 35,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 35,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 35,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 22,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 22,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 23,\n            \"end\": 33,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 25,\n              \"end\": 29,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 29,\n              \"end\": 33,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": true,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 31,\n                \"end\": 33,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: false})\n// loose parser requires indentation.\ntest(\"class C { static\\n async\\n #aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 35,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 35,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 35,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 23,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 18,\n              \"end\": 23,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 25,\n            \"end\": 33,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 25,\n              \"end\": 29,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 29,\n              \"end\": 33,\n              \"id\": null,\n              \"params\": [],\n              \"generator\": false,\n              \"expression\": false,\n              \"async\": false,\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 31,\n                \"end\": 33,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: true})\ntest(\"class C { static\\n async\\n *\\n #aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 38,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 38,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 38,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 23,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 18,\n              \"end\": 23,\n              \"name\": \"async\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 25,\n            \"end\": 36,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 28,\n              \"end\": 32,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 32,\n              \"end\": 36,\n              \"id\": null,\n              \"params\": [],\n              \"generator\": true,\n              \"expression\": false,\n              \"async\": false,\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 34,\n                \"end\": 36,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13, loose: true})\n\n// duplicate\ntestFail(\"class C { #a(){} #a }\", \"Identifier '#a' has already been declared (1:17)\", {ecmaVersion: 13})\ntestFail(\"class C { #a; #a(){} }\", \"Identifier '#a' has already been declared (1:14)\", {ecmaVersion: 13})\ntestFail(\"class C { #a(){} #a(){} }\", \"Identifier '#a' has already been declared (1:17)\", {ecmaVersion: 13})\ntestFail(\"class C { #a(){} static #a(){} }\", \"Identifier '#a' has already been declared (1:24)\", {ecmaVersion: 13})\ntestFail(\"class C { static #a(){} #a(){} }\", \"Identifier '#a' has already been declared (1:24)\", {ecmaVersion: 13})\n\n//------------------------------------------------------------------------------\n// Private Class Getter/Setter\n//------------------------------------------------------------------------------\n\ntest(\"class C { get #aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 24,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 24,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 24,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 22,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 14,\n              \"end\": 18,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"get\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 18,\n              \"end\": 22,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 20,\n                \"end\": 22,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { set #aaa(x){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 14,\n              \"end\": 18,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"set\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 18,\n              \"end\": 23,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 19,\n                  \"end\": 20,\n                  \"name\": \"x\"\n                }\n              ],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 23,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static get #aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 31,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 31,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 31,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 29,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 21,\n              \"end\": 25,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"get\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 25,\n              \"end\": 29,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 27,\n                \"end\": 29,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { static set #aaa(x){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 32,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 32,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 32,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 30,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 21,\n              \"end\": 25,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"set\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 25,\n              \"end\": 30,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 26,\n                  \"end\": 27,\n                  \"name\": \"x\"\n                }\n              ],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 28,\n                \"end\": 30,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// no ASI\ntest(\"class C { static\\nget\\n#aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 31,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 31,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 31,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 29,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 21,\n              \"end\": 25,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"get\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 25,\n              \"end\": 29,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 27,\n                \"end\": 29,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// semi\ntest(\"class C { get; #aaa(){} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 25,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 25,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 25,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 14,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"get\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 15,\n            \"end\": 23,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 15,\n              \"end\": 19,\n              \"name\": \"aaa\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 19,\n              \"end\": 23,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 23,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// duplicate\ntest(\"class C { get #a(){} set #a(x){} }\", {}, {ecmaVersion: 13})\ntest(\"class C { static get #a(){} static set #a(x){} }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { get #a(){} static set #a(x){} }\", \"Identifier '#a' has already been declared (1:32)\", {ecmaVersion: 13})\ntestFail(\"class C { set #a(x){} static get #a(){} }\", \"Identifier '#a' has already been declared (1:33)\", {ecmaVersion: 13})\ntestFail(\"class C { static get #a(){} set #a(x){} }\", \"Identifier '#a' has already been declared (1:32)\", {ecmaVersion: 13})\ntestFail(\"class C { static set #a(x){} get #a(){} }\", \"Identifier '#a' has already been declared (1:33)\", {ecmaVersion: 13})\ntestFail(\"class C { #a; get #a(){} }\", \"Identifier '#a' has already been declared (1:18)\", {ecmaVersion: 13})\ntestFail(\"class C { #a; set #a(x){} }\", \"Identifier '#a' has already been declared (1:18)\", {ecmaVersion: 13})\ntestFail(\"class C { #a(){}; get #a(){} }\", \"Identifier '#a' has already been declared (1:22)\", {ecmaVersion: 13})\ntestFail(\"class C { #a(){}; set #a(x){} }\", \"Identifier '#a' has already been declared (1:22)\", {ecmaVersion: 13})\ntestFail(\"class C { get #a(){} #a }\", \"Identifier '#a' has already been declared (1:21)\", {ecmaVersion: 13})\ntestFail(\"class C { set #a(x){} #a }\", \"Identifier '#a' has already been declared (1:22)\", {ecmaVersion: 13})\ntestFail(\"class C { get #a(){} #a(){} }\", \"Identifier '#a' has already been declared (1:21)\", {ecmaVersion: 13})\ntestFail(\"class C { set #a(x){} #a(){} }\", \"Identifier '#a' has already been declared (1:22)\", {ecmaVersion: 13})\n\n//------------------------------------------------------------------------------\n// Private Member Access\n//------------------------------------------------------------------------------\n\ntest(\"class C { #aaa; f() { this.#aaa } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 35,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 35,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 35,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 16,\n            \"end\": 33,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 17,\n              \"name\": \"f\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 17,\n              \"end\": 33,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 20,\n                \"end\": 33,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 22,\n                    \"end\": 31,\n                    \"expression\": {\n                      \"type\": \"MemberExpression\",\n                      \"start\": 22,\n                      \"end\": 31,\n                      \"object\": {\n                        \"type\": \"ThisExpression\",\n                        \"start\": 22,\n                        \"end\": 26\n                      },\n                      \"property\": {\n                        \"type\": \"PrivateIdentifier\",\n                        \"start\": 27,\n                        \"end\": 31,\n                        \"name\": \"aaa\"\n                      },\n                      \"computed\": false,\n                      \"optional\": false\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #aaa; f(obj) { obj.#aaa } }\", {    \n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 37,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 37,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 37,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 16,\n            \"end\": 35,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 17,\n              \"name\": \"f\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 17,\n              \"end\": 35,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 18,\n                  \"end\": 21,\n                  \"name\": \"obj\"\n                }\n              ],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 23,\n                \"end\": 35,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",  \n                    \"start\": 25,\n                    \"end\": 33,\n                    \"expression\": {\n                      \"type\": \"MemberExpression\",   \n                      \"start\": 25,\n                      \"end\": 33,\n                      \"object\": {\n                        \"type\": \"Identifier\",       \n                        \"start\": 25,\n                        \"end\": 28,\n                        \"name\": \"obj\"\n                      },\n                      \"property\": {\n                        \"type\": \"PrivateIdentifier\",\n                        \"start\": 29,\n                        \"end\": 33,\n                        \"name\": \"aaa\"\n                      },\n                      \"computed\": false,\n                      \"optional\": false\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #aaa; f(obj) { obj?.#aaa } }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 38,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 38,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 38,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 16,\n            \"end\": 36,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 17,\n              \"name\": \"f\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 17,\n              \"end\": 36,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 18,\n                  \"end\": 21,\n                  \"name\": \"obj\"\n                }\n              ],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 23,\n                \"end\": 36,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",  \n                    \"start\": 25,\n                    \"end\": 34,\n                    \"expression\": {\n                      \"type\": \"ChainExpression\",    \n                      \"start\": 25,\n                      \"end\": 34,\n                      \"expression\": {\n                        \"type\": \"MemberExpression\", \n                        \"start\": 25,\n                        \"end\": 34,\n                        \"object\": {\n                          \"type\": \"Identifier\",     \n                          \"start\": 25,\n                          \"end\": 28,\n                          \"name\": \"obj\"\n                        },\n                        \"property\": {\n                          \"type\": \"PrivateIdentifier\",\n                          \"start\": 30,\n                          \"end\": 34,\n                          \"name\": \"aaa\"\n                        },\n                        \"computed\": false,\n                        \"optional\": true\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\ntest(\"class C { #aaa; f(f) { f()?.#aaa } }\", {     \n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 36,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 36,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"C\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 36,\n        \"body\": [\n          {\n            \"type\": \"PropertyDefinition\",\n            \"start\": 10,\n            \"end\": 15,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"PrivateIdentifier\",\n              \"start\": 10,\n              \"end\": 14,\n              \"name\": \"aaa\"\n            },\n            \"value\": null\n          },\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 16,\n            \"end\": 34,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 17,\n              \"name\": \"f\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 17,\n              \"end\": 34,\n              \"id\": null,\n              \"expression\": false,\n              \"generator\": false,\n              \"async\": false,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 18,\n                  \"end\": 19,\n                  \"name\": \"f\"\n                }\n              ],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 21,\n                \"end\": 34,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",  \n                    \"start\": 23,\n                    \"end\": 32,\n                    \"expression\": {\n                      \"type\": \"ChainExpression\",    \n                      \"start\": 23,\n                      \"end\": 32,\n                      \"expression\": {\n                        \"type\": \"MemberExpression\", \n                        \"start\": 23,\n                        \"end\": 32,\n                        \"object\": {\n                          \"type\": \"CallExpression\", \n                          \"start\": 23,\n                          \"end\": 26,\n                          \"callee\": {\n                            \"type\": \"Identifier\",   \n                            \"start\": 23,\n                            \"end\": 24,\n                            \"name\": \"f\"\n                          },\n                          \"arguments\": [],\n                          \"optional\": false\n                        },\n                        \"property\": {\n                          \"type\": \"PrivateIdentifier\",\n                          \"start\": 28,\n                          \"end\": 32,\n                          \"name\": \"aaa\"\n                        },\n                        \"computed\": false,\n                        \"optional\": true\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 13})\n\n// super\ntestFail(\"class C extends Base { f() { return super.#aaa } }\", \"Unexpected token (1:42)\", {ecmaVersion: 13})\n\n// delete\ntest(\"class C { #aaa; f() { delete this.#aaa.foo } }\", {}, {ecmaVersion: 13})\ntest(\"class C { #aaa; f() { delete this.#aaa?.foo } }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { #aaa; f() { delete this.#aaa } }\", \"Private fields can not be deleted (1:22)\", {ecmaVersion: 13})\ntestFail(\"class C { #aaa; f() { delete obj?.#aaa } }\", \"Private fields can not be deleted (1:22)\", {ecmaVersion: 13})\ntestFail(\"class C { #aaa; f() { delete obj?.p.#aaa } }\", \"Private fields can not be deleted (1:22)\", {ecmaVersion: 13})\n\n// unexpected token\ntestFail(\"const obj = #aaa\", \"Unexpected token (1:12)\", {ecmaVersion: 13})\ntestFail(\"const obj = { #aaa }\", \"Unexpected token (1:14)\", {ecmaVersion: 13})\ntestFail(\"class C { #aaa; f() { #aaa } }\", \"Unexpected token (1:27)\", {ecmaVersion: 13})\ntestFail(\"class C { #aaa; f() { return { #aaa: 1 } } }\", \"Unexpected token (1:31)\", {ecmaVersion: 13})\n\n// existence check\ntest(\"class C { #a; a = this.#a; }\", {}, {ecmaVersion: 13})\ntest(\"class C { a = this.#a; #a; }\", {}, {ecmaVersion: 13})\ntest(\"class C { #a; [this.#a]; }\", {}, {ecmaVersion: 13})\ntest(\"class C { [this.#a]; #a; }\", {}, {ecmaVersion: 13})\ntest(\"class C { #a; f(){ this.#a } }\", {}, {ecmaVersion: 13})\ntest(\"class C { f(){ this.#a } #a; }\", {}, {ecmaVersion: 13})\ntestFail(\"class C { #a; a = this.#b; }\", \"Private field '#b' must be declared in an enclosing class (1:23)\", {ecmaVersion: 13})\ntestFail(\"class C { a = this.#b; #a; }\", \"Private field '#b' must be declared in an enclosing class (1:19)\", {ecmaVersion: 13})\ntestFail(\"class C { #a; [this.#b]; }\", \"Private field '#b' must be declared in an enclosing class (1:20)\", {ecmaVersion: 13})\ntestFail(\"class C { [this.#b]; #a; }\", \"Private field '#b' must be declared in an enclosing class (1:16)\", {ecmaVersion: 13})\ntestFail(\"class C { #a; f(){ this.#b } }\", \"Private field '#b' must be declared in an enclosing class (1:24)\", {ecmaVersion: 13})\ntestFail(\"class C { f(){ this.#b } #a; }\", \"Private field '#b' must be declared in an enclosing class (1:20)\", {ecmaVersion: 13})\ntestFail(\"obj.#aaa\", \"Private field '#aaa' must be declared in an enclosing class (1:4)\", {ecmaVersion: 13})\ntestFail(\"function F() { obj.#aaa }\", \"Private field '#aaa' must be declared in an enclosing class (1:19)\", {ecmaVersion: 13})\n// existence check -- inner classes can use the private elements of the outer classes.\ntest(\"class Outer { #outer; Inner = class { #inner; f(obj) { obj.#outer + this.#inner } }; }\", {}, {ecmaVersion: 13})\ntest(\"class Outer { Inner = class { f(obj) { obj.#outer + this.#inner } #inner; }; #outer; }\", {}, {ecmaVersion: 13})\ntestFail(\"class Outer { Inner = class { f(obj) { obj.#nonexist } #inner; }; #outer; }\", \"Private field '#nonexist' must be declared in an enclosing class (1:43)\", {ecmaVersion: 13})\ntest(\"class C { static delete() {} }\", {}, {ecmaVersion: 13})\n\n// Class static block\ntest(`class C {\n  static x\n  static y\n  static {\n    try {\n      const obj = doSomethingWith(this.x)\n      this.y = obj.y\n      this.z = obj.z\n    }\n    catch {\n      this.y = 0\n      this.z = 0\n    }\n  }\n}`, {\n  type: \"Program\",\n  start: 0,\n  end: 200,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 15,\n      column: 1\n    }\n  },\n  body: [\n    {\n      type: \"ClassDeclaration\",\n      start: 0,\n      end: 200,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 15,\n          column: 1\n        }\n      },\n      id: {\n        type: \"Identifier\",\n        start: 6,\n        end: 7,\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        },\n        name: \"C\"\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        start: 8,\n        end: 200,\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 15,\n            column: 1\n          }\n        },\n        body: [\n          {\n            type: \"PropertyDefinition\",\n            start: 12,\n            end: 20,\n            loc: {\n              start: {\n                line: 2,\n                column: 2\n              },\n              end: {\n                line: 2,\n                column: 10\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"Identifier\",\n              start: 19,\n              end: 20,\n              loc: {\n                start: {\n                  line: 2,\n                  column: 9\n                },\n                end: {\n                  line: 2,\n                  column: 10\n                }\n              },\n              name: \"x\"\n            },\n            value: null\n          },\n          {\n            type: \"PropertyDefinition\",\n            start: 23,\n            end: 31,\n            loc: {\n              start: {\n                line: 3,\n                column: 2\n              },\n              end: {\n                line: 3,\n                column: 10\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"Identifier\",\n              start: 30,\n              end: 31,\n              loc: {\n                start: {\n                  line: 3,\n                  column: 9\n                },\n                end: {\n                  line: 3,\n                  column: 10\n                }\n              },\n              name: \"y\"\n            },\n            value: null\n          },\n          {\n            type: \"StaticBlock\",\n            start: 34,\n            end: 198,\n            loc: {\n              start: {\n                line: 4,\n                column: 2\n              },\n              end: {\n                line: 14,\n                column: 3\n              }\n            },\n            body: [\n              {\n                type: \"TryStatement\",\n                start: 47,\n                end: 194,\n                loc: {\n                  start: {\n                    line: 5,\n                    column: 4\n                  },\n                  end: {\n                    line: 13,\n                    column: 5\n                  }\n                },\n                block: {\n                  type: \"BlockStatement\",\n                  start: 51,\n                  end: 142,\n                  loc: {\n                    start: {\n                      line: 5,\n                      column: 8\n                    },\n                    end: {\n                      line: 9,\n                      column: 5\n                    }\n                  },\n                  body: [\n                    {\n                      type: \"VariableDeclaration\",\n                      start: 59,\n                      end: 94,\n                      loc: {\n                        start: {\n                          line: 6,\n                          column: 6\n                        },\n                        end: {\n                          line: 6,\n                          column: 41\n                        }\n                      },\n                      declarations: [\n                        {\n                          type: \"VariableDeclarator\",\n                          start: 65,\n                          end: 94,\n                          loc: {\n                            start: {\n                              line: 6,\n                              column: 12\n                            },\n                            end: {\n                              line: 6,\n                              column: 41\n                            }\n                          },\n                          id: {\n                            type: \"Identifier\",\n                            start: 65,\n                            end: 68,\n                            loc: {\n                              start: {\n                                line: 6,\n                                column: 12\n                              },\n                              end: {\n                                line: 6,\n                                column: 15\n                              }\n                            },\n                            name: \"obj\"\n                          },\n                          init: {\n                            type: \"CallExpression\",\n                            start: 71,\n                            end: 94,\n                            loc: {\n                              start: {\n                                line: 6,\n                                column: 18\n                              },\n                              end: {\n                                line: 6,\n                                column: 41\n                              }\n                            },\n                            callee: {\n                              type: \"Identifier\",\n                              start: 71,\n                              end: 86,\n                              loc: {\n                                start: {\n                                  line: 6,\n                                  column: 18\n                                },\n                                end: {\n                                  line: 6,\n                                  column: 33\n                                }\n                              },\n                              name: \"doSomethingWith\"\n                            },\n                            arguments: [\n                              {\n                                type: \"MemberExpression\",\n                                start: 87,\n                                end: 93,\n                                loc: {\n                                  start: {\n                                    line: 6,\n                                    column: 34\n                                  },\n                                  end: {\n                                    line: 6,\n                                    column: 40\n                                  }\n                                },\n                                object: {\n                                  type: \"ThisExpression\",\n                                  start: 87,\n                                  end: 91,\n                                  loc: {\n                                    start: {\n                                      line: 6,\n                                      column: 34\n                                    },\n                                    end: {\n                                      line: 6,\n                                      column: 38\n                                    }\n                                  }\n                                },\n                                property: {\n                                  type: \"Identifier\",\n                                  start: 92,\n                                  end: 93,\n                                  loc: {\n                                    start: {\n                                      line: 6,\n                                      column: 39\n                                    },\n                                    end: {\n                                      line: 6,\n                                      column: 40\n                                    }\n                                  },\n                                  name: \"x\"\n                                },\n                                computed: false,\n                                optional: false\n                              }\n                            ],\n                            optional: false\n                          }\n                        }\n                      ],\n                      kind: \"const\"\n                    },\n                    {\n                      type: \"ExpressionStatement\",\n                      start: 101,\n                      end: 115,\n                      loc: {\n                        start: {\n                          line: 7,\n                          column: 6\n                        },\n                        end: {\n                          line: 7,\n                          column: 20\n                        }\n                      },\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        start: 101,\n                        end: 115,\n                        loc: {\n                          start: {\n                            line: 7,\n                            column: 6\n                          },\n                          end: {\n                            line: 7,\n                            column: 20\n                          }\n                        },\n                        operator: \"=\",\n                        left: {\n                          type: \"MemberExpression\",\n                          start: 101,\n                          end: 107,\n                          loc: {\n                            start: {\n                              line: 7,\n                              column: 6\n                            },\n                            end: {\n                              line: 7,\n                              column: 12\n                            }\n                          },\n                          object: {\n                            type: \"ThisExpression\",\n                            start: 101,\n                            end: 105,\n                            loc: {\n                              start: {\n                                line: 7,\n                                column: 6\n                              },\n                              end: {\n                                line: 7,\n                                column: 10\n                              }\n                            }\n                          },\n                          property: {\n                            type: \"Identifier\",\n                            start: 106,\n                            end: 107,\n                            loc: {\n                              start: {\n                                line: 7,\n                                column: 11\n                              },\n                              end: {\n                                line: 7,\n                                column: 12\n                              }\n                            },\n                            name: \"y\"\n                          },\n                          computed: false,\n                          optional: false\n                        },\n                        right: {\n                          type: \"MemberExpression\",\n                          start: 110,\n                          end: 115,\n                          loc: {\n                            start: {\n                              line: 7,\n                              column: 15\n                            },\n                            end: {\n                              line: 7,\n                              column: 20\n                            }\n                          },\n                          object: {\n                            type: \"Identifier\",\n                            start: 110,\n                            end: 113,\n                            loc: {\n                              start: {\n                                line: 7,\n                                column: 15\n                              },\n                              end: {\n                                line: 7,\n                                column: 18\n                              }\n                            },\n                            name: \"obj\"\n                          },\n                          property: {\n                            type: \"Identifier\",\n                            start: 114,\n                            end: 115,\n                            loc: {\n                              start: {\n                                line: 7,\n                                column: 19\n                              },\n                              end: {\n                                line: 7,\n                                column: 20\n                              }\n                            },\n                            name: \"y\"\n                          },\n                          computed: false,\n                          optional: false\n                        }\n                      }\n                    },\n                    {\n                      type: \"ExpressionStatement\",\n                      start: 122,\n                      end: 136,\n                      loc: {\n                        start: {\n                          line: 8,\n                          column: 6\n                        },\n                        end: {\n                          line: 8,\n                          column: 20\n                        }\n                      },\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        start: 122,\n                        end: 136,\n                        loc: {\n                          start: {\n                            line: 8,\n                            column: 6\n                          },\n                          end: {\n                            line: 8,\n                            column: 20\n                          }\n                        },\n                        operator: \"=\",\n                        left: {\n                          type: \"MemberExpression\",\n                          start: 122,\n                          end: 128,\n                          loc: {\n                            start: {\n                              line: 8,\n                              column: 6\n                            },\n                            end: {\n                              line: 8,\n                              column: 12\n                            }\n                          },\n                          object: {\n                            type: \"ThisExpression\",\n                            start: 122,\n                            end: 126,\n                            loc: {\n                              start: {\n                                line: 8,\n                                column: 6\n                              },\n                              end: {\n                                line: 8,\n                                column: 10\n                              }\n                            }\n                          },\n                          property: {\n                            type: \"Identifier\",\n                            start: 127,\n                            end: 128,\n                            loc: {\n                              start: {\n                                line: 8,\n                                column: 11\n                              },\n                              end: {\n                                line: 8,\n                                column: 12\n                              }\n                            },\n                            name: \"z\"\n                          },\n                          computed: false,\n                          optional: false\n                        },\n                        right: {\n                          type: \"MemberExpression\",\n                          start: 131,\n                          end: 136,\n                          loc: {\n                            start: {\n                              line: 8,\n                              column: 15\n                            },\n                            end: {\n                              line: 8,\n                              column: 20\n                            }\n                          },\n                          object: {\n                            type: \"Identifier\",\n                            start: 131,\n                            end: 134,\n                            loc: {\n                              start: {\n                                line: 8,\n                                column: 15\n                              },\n                              end: {\n                                line: 8,\n                                column: 18\n                              }\n                            },\n                            name: \"obj\"\n                          },\n                          property: {\n                            type: \"Identifier\",\n                            start: 135,\n                            end: 136,\n                            loc: {\n                              start: {\n                                line: 8,\n                                column: 19\n                              },\n                              end: {\n                                line: 8,\n                                column: 20\n                              }\n                            },\n                            name: \"z\"\n                          },\n                          computed: false,\n                          optional: false\n                        }\n                      }\n                    }\n                  ]\n                },\n                handler: {\n                  type: \"CatchClause\",\n                  start: 147,\n                  end: 194,\n                  loc: {\n                    start: {\n                      line: 10,\n                      column: 4\n                    },\n                    end: {\n                      line: 13,\n                      column: 5\n                    }\n                  },\n                  param: null,\n                  body: {\n                    type: \"BlockStatement\",\n                    start: 153,\n                    end: 194,\n                    loc: {\n                      start: {\n                        line: 10,\n                        column: 10\n                      },\n                      end: {\n                        line: 13,\n                        column: 5\n                      }\n                    },\n                    body: [\n                      {\n                        type: \"ExpressionStatement\",\n                        start: 161,\n                        end: 171,\n                        loc: {\n                          start: {\n                            line: 11,\n                            column: 6\n                          },\n                          end: {\n                            line: 11,\n                            column: 16\n                          }\n                        },\n                        expression: {\n                          type: \"AssignmentExpression\",\n                          start: 161,\n                          end: 171,\n                          loc: {\n                            start: {\n                              line: 11,\n                              column: 6\n                            },\n                            end: {\n                              line: 11,\n                              column: 16\n                            }\n                          },\n                          operator: \"=\",\n                          left: {\n                            type: \"MemberExpression\",\n                            start: 161,\n                            end: 167,\n                            loc: {\n                              start: {\n                                line: 11,\n                                column: 6\n                              },\n                              end: {\n                                line: 11,\n                                column: 12\n                              }\n                            },\n                            object: {\n                              type: \"ThisExpression\",\n                              start: 161,\n                              end: 165,\n                              loc: {\n                                start: {\n                                  line: 11,\n                                  column: 6\n                                },\n                                end: {\n                                  line: 11,\n                                  column: 10\n                                }\n                              }\n                            },\n                            property: {\n                              type: \"Identifier\",\n                              start: 166,\n                              end: 167,\n                              loc: {\n                                start: {\n                                  line: 11,\n                                  column: 11\n                                },\n                                end: {\n                                  line: 11,\n                                  column: 12\n                                }\n                              },\n                              name: \"y\"\n                            },\n                            computed: false,\n                            optional: false\n                          },\n                          right: {\n                            type: \"Literal\",\n                            start: 170,\n                            end: 171,\n                            loc: {\n                              start: {\n                                line: 11,\n                                column: 15\n                              },\n                              end: {\n                                line: 11,\n                                column: 16\n                              }\n                            },\n                            value: 0,\n                            raw: \"0\"\n                          }\n                        }\n                      },\n                      {\n                        type: \"ExpressionStatement\",\n                        start: 178,\n                        end: 188,\n                        loc: {\n                          start: {\n                            line: 12,\n                            column: 6\n                          },\n                          end: {\n                            line: 12,\n                            column: 16\n                          }\n                        },\n                        expression: {\n                          type: \"AssignmentExpression\",\n                          start: 178,\n                          end: 188,\n                          loc: {\n                            start: {\n                              line: 12,\n                              column: 6\n                            },\n                            end: {\n                              line: 12,\n                              column: 16\n                            }\n                          },\n                          operator: \"=\",\n                          left: {\n                            type: \"MemberExpression\",\n                            start: 178,\n                            end: 184,\n                            loc: {\n                              start: {\n                                line: 12,\n                                column: 6\n                              },\n                              end: {\n                                line: 12,\n                                column: 12\n                              }\n                            },\n                            object: {\n                              type: \"ThisExpression\",\n                              start: 178,\n                              end: 182,\n                              loc: {\n                                start: {\n                                  line: 12,\n                                  column: 6\n                                },\n                                end: {\n                                  line: 12,\n                                  column: 10\n                                }\n                              }\n                            },\n                            property: {\n                              type: \"Identifier\",\n                              start: 183,\n                              end: 184,\n                              loc: {\n                                start: {\n                                  line: 12,\n                                  column: 11\n                                },\n                                end: {\n                                  line: 12,\n                                  column: 12\n                                }\n                              },\n                              name: \"z\"\n                            },\n                            computed: false,\n                            optional: false\n                          },\n                          right: {\n                            type: \"Literal\",\n                            start: 187,\n                            end: 188,\n                            loc: {\n                              start: {\n                                line: 12,\n                                column: 15\n                              },\n                              end: {\n                                line: 12,\n                                column: 16\n                              }\n                            },\n                            value: 0,\n                            raw: \"0\"\n                          }\n                        }\n                      }\n                    ]\n                  }\n                },\n                finalizer: null\n              }\n            ]\n          }\n        ]\n      }\n    }\n  ]\n},  {ecmaVersion: 13, locations: true})\n\ntest(`class C {\n  static y\n  static #z\n  static {\n    const obj = {}\n    this.y = obj.y\n    this.#z = obj.z\n  }\n}`, {\n  type: \"Program\",\n  start: 0,\n  end: 107,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 9,\n      column: 1\n    }\n  },\n  body: [\n    {\n      type: \"ClassDeclaration\",\n      start: 0,\n      end: 107,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 9,\n          column: 1\n        }\n      },\n      id: {\n        type: \"Identifier\",\n        start: 6,\n        end: 7,\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        },\n        name: \"C\"\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        start: 8,\n        end: 107,\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 9,\n            column: 1\n          }\n        },\n        body: [\n          {\n            type: \"PropertyDefinition\",\n            start: 12,\n            end: 20,\n            loc: {\n              start: {\n                line: 2,\n                column: 2\n              },\n              end: {\n                line: 2,\n                column: 10\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"Identifier\",\n              start: 19,\n              end: 20,\n              loc: {\n                start: {\n                  line: 2,\n                  column: 9\n                },\n                end: {\n                  line: 2,\n                  column: 10\n                }\n              },\n              name: \"y\"\n            },\n            value: null\n          },\n          {\n            type: \"PropertyDefinition\",\n            start: 23,\n            end: 32,\n            loc: {\n              start: {\n                line: 3,\n                column: 2\n              },\n              end: {\n                line: 3,\n                column: 11\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"PrivateIdentifier\",\n              start: 30,\n              end: 32,\n              loc: {\n                start: {\n                  line: 3,\n                  column: 9\n                },\n                end: {\n                  line: 3,\n                  column: 11\n                }\n              },\n              name: \"z\"\n            },\n            value: null\n          },\n          {\n            type: \"StaticBlock\",\n            start: 35,\n            end: 105,\n            loc: {\n              start: {\n                line: 4,\n                column: 2\n              },\n              end: {\n                line: 8,\n                column: 3\n              }\n            },\n            body: [\n              {\n                type: \"VariableDeclaration\",\n                start: 48,\n                end: 62,\n                loc: {\n                  start: {\n                    line: 5,\n                    column: 4\n                  },\n                  end: {\n                    line: 5,\n                    column: 18\n                  }\n                },\n                declarations: [\n                  {\n                    type: \"VariableDeclarator\",\n                    start: 54,\n                    end: 62,\n                    loc: {\n                      start: {\n                        line: 5,\n                        column: 10\n                      },\n                      end: {\n                        line: 5,\n                        column: 18\n                      }\n                    },\n                    id: {\n                      type: \"Identifier\",\n                      start: 54,\n                      end: 57,\n                      loc: {\n                        start: {\n                          line: 5,\n                          column: 10\n                        },\n                        end: {\n                          line: 5,\n                          column: 13\n                        }\n                      },\n                      name: \"obj\"\n                    },\n                    init: {\n                      type: \"ObjectExpression\",\n                      start: 60,\n                      end: 62,\n                      loc: {\n                        start: {\n                          line: 5,\n                          column: 16\n                        },\n                        end: {\n                          line: 5,\n                          column: 18\n                        }\n                      },\n                      properties: []\n                    }\n                  }\n                ],\n                kind: \"const\"\n              },\n              {\n                type: \"ExpressionStatement\",\n                start: 67,\n                end: 81,\n                loc: {\n                  start: {\n                    line: 6,\n                    column: 4\n                  },\n                  end: {\n                    line: 6,\n                    column: 18\n                  }\n                },\n                expression: {\n                  type: \"AssignmentExpression\",\n                  start: 67,\n                  end: 81,\n                  loc: {\n                    start: {\n                      line: 6,\n                      column: 4\n                    },\n                    end: {\n                      line: 6,\n                      column: 18\n                    }\n                  },\n                  operator: \"=\",\n                  left: {\n                    type: \"MemberExpression\",\n                    start: 67,\n                    end: 73,\n                    loc: {\n                      start: {\n                        line: 6,\n                        column: 4\n                      },\n                      end: {\n                        line: 6,\n                        column: 10\n                      }\n                    },\n                    object: {\n                      type: \"ThisExpression\",\n                      start: 67,\n                      end: 71,\n                      loc: {\n                        start: {\n                          line: 6,\n                          column: 4\n                        },\n                        end: {\n                          line: 6,\n                          column: 8\n                        }\n                      }\n                    },\n                    property: {\n                      type: \"Identifier\",\n                      start: 72,\n                      end: 73,\n                      loc: {\n                        start: {\n                          line: 6,\n                          column: 9\n                        },\n                        end: {\n                          line: 6,\n                          column: 10\n                        }\n                      },\n                      name: \"y\"\n                    },\n                    computed: false,\n                    optional: false\n                  },\n                  right: {\n                    type: \"MemberExpression\",\n                    start: 76,\n                    end: 81,\n                    loc: {\n                      start: {\n                        line: 6,\n                        column: 13\n                      },\n                      end: {\n                        line: 6,\n                        column: 18\n                      }\n                    },\n                    object: {\n                      type: \"Identifier\",\n                      start: 76,\n                      end: 79,\n                      loc: {\n                        start: {\n                          line: 6,\n                          column: 13\n                        },\n                        end: {\n                          line: 6,\n                          column: 16\n                        }\n                      },\n                      name: \"obj\"\n                    },\n                    property: {\n                      type: \"Identifier\",\n                      start: 80,\n                      end: 81,\n                      loc: {\n                        start: {\n                          line: 6,\n                          column: 17\n                        },\n                        end: {\n                          line: 6,\n                          column: 18\n                        }\n                      },\n                      name: \"y\"\n                    },\n                    computed: false,\n                    optional: false\n                  }\n                }\n              },\n              {\n                type: \"ExpressionStatement\",\n                start: 86,\n                end: 101,\n                loc: {\n                  start: {\n                    line: 7,\n                    column: 4\n                  },\n                  end: {\n                    line: 7,\n                    column: 19\n                  }\n                },\n                expression: {\n                  type: \"AssignmentExpression\",\n                  start: 86,\n                  end: 101,\n                  loc: {\n                    start: {\n                      line: 7,\n                      column: 4\n                    },\n                    end: {\n                      line: 7,\n                      column: 19\n                    }\n                  },\n                  operator: \"=\",\n                  left: {\n                    type: \"MemberExpression\",\n                    start: 86,\n                    end: 93,\n                    loc: {\n                      start: {\n                        line: 7,\n                        column: 4\n                      },\n                      end: {\n                        line: 7,\n                        column: 11\n                      }\n                    },\n                    object: {\n                      type: \"ThisExpression\",\n                      start: 86,\n                      end: 90,\n                      loc: {\n                        start: {\n                          line: 7,\n                          column: 4\n                        },\n                        end: {\n                          line: 7,\n                          column: 8\n                        }\n                      }\n                    },\n                    property: {\n                      type: \"PrivateIdentifier\",\n                      start: 91,\n                      end: 93,\n                      loc: {\n                        start: {\n                          line: 7,\n                          column: 9\n                        },\n                        end: {\n                          line: 7,\n                          column: 11\n                        }\n                      },\n                      name: \"z\"\n                    },\n                    computed: false,\n                    optional: false\n                  },\n                  right: {\n                    type: \"MemberExpression\",\n                    start: 96,\n                    end: 101,\n                    loc: {\n                      start: {\n                        line: 7,\n                        column: 14\n                      },\n                      end: {\n                        line: 7,\n                        column: 19\n                      }\n                    },\n                    object: {\n                      type: \"Identifier\",\n                      start: 96,\n                      end: 99,\n                      loc: {\n                        start: {\n                          line: 7,\n                          column: 14\n                        },\n                        end: {\n                          line: 7,\n                          column: 17\n                        }\n                      },\n                      name: \"obj\"\n                    },\n                    property: {\n                      type: \"Identifier\",\n                      start: 100,\n                      end: 101,\n                      loc: {\n                        start: {\n                          line: 7,\n                          column: 18\n                        },\n                        end: {\n                          line: 7,\n                          column: 19\n                        }\n                      },\n                      name: \"z\"\n                    },\n                    computed: false,\n                    optional: false\n                  }\n                }\n              }\n            ]\n          }\n        ]\n      }\n    }\n  ],\n}, {ecmaVersion: 13, locations: true})\n\ntest(`let zRead\nclass C {\n  static #z\n  static {\n    zRead = () => this.#z\n  }\n}`, {\n  type: \"Program\",\n  start: 0,\n  end: 74,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 7,\n      column: 1\n    }\n  },\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      start: 0,\n      end: 9,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      },\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          start: 4,\n          end: 9,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          },\n          id: {\n            type: \"Identifier\",\n            start: 4,\n            end: 9,\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            },\n            name: \"zRead\"\n          },\n          init: null\n        }\n      ],\n      kind: \"let\"\n    },\n    {\n      type: \"ClassDeclaration\",\n      start: 10,\n      end: 74,\n      loc: {\n        start: {\n          line: 2,\n          column: 0\n        },\n        end: {\n          line: 7,\n          column: 1\n        }\n      },\n      id: {\n        type: \"Identifier\",\n        start: 16,\n        end: 17,\n        loc: {\n          start: {\n            line: 2,\n            column: 6\n          },\n          end: {\n            line: 2,\n            column: 7\n          }\n        },\n        name: \"C\"\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        start: 18,\n        end: 74,\n        loc: {\n          start: {\n            line: 2,\n            column: 8\n          },\n          end: {\n            line: 7,\n            column: 1\n          }\n        },\n        body: [\n          {\n            type: \"PropertyDefinition\",\n            start: 22,\n            end: 31,\n            loc: {\n              start: {\n                line: 3,\n                column: 2\n              },\n              end: {\n                line: 3,\n                column: 11\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"PrivateIdentifier\",\n              start: 29,\n              end: 31,\n              loc: {\n                start: {\n                  line: 3,\n                  column: 9\n                },\n                end: {\n                  line: 3,\n                  column: 11\n                }\n              },\n              name: \"z\"\n            },\n            value: null\n          },\n          {\n            type: \"StaticBlock\",\n            start: 34,\n            end: 72,\n            loc: {\n              start: {\n                line: 4,\n                column: 2\n              },\n              end: {\n                line: 6,\n                column: 3\n              }\n            },\n            body: [\n              {\n                type: \"ExpressionStatement\",\n                start: 47,\n                end: 68,\n                loc: {\n                  start: {\n                    line: 5,\n                    column: 4\n                  },\n                  end: {\n                    line: 5,\n                    column: 25\n                  }\n                },\n                expression: {\n                  type: \"AssignmentExpression\",\n                  start: 47,\n                  end: 68,\n                  loc: {\n                    start: {\n                      line: 5,\n                      column: 4\n                    },\n                    end: {\n                      line: 5,\n                      column: 25\n                    }\n                  },\n                  operator: \"=\",\n                  left: {\n                    type: \"Identifier\",\n                    start: 47,\n                    end: 52,\n                    loc: {\n                      start: {\n                        line: 5,\n                        column: 4\n                      },\n                      end: {\n                        line: 5,\n                        column: 9\n                      }\n                    },\n                    name: \"zRead\"\n                  },\n                  right: {\n                    type: \"ArrowFunctionExpression\",\n                    start: 55,\n                    end: 68,\n                    loc: {\n                      start: {\n                        line: 5,\n                        column: 12\n                      },\n                      end: {\n                        line: 5,\n                        column: 25\n                      }\n                    },\n                    id: null,\n                    expression: true,\n                    generator: false,\n                    async: false,\n                    params: [],\n                    body: {\n                      type: \"MemberExpression\",\n                      start: 61,\n                      end: 68,\n                      loc: {\n                        start: {\n                          line: 5,\n                          column: 18\n                        },\n                        end: {\n                          line: 5,\n                          column: 25\n                        }\n                      },\n                      object: {\n                        type: \"ThisExpression\",\n                        start: 61,\n                        end: 65,\n                        loc: {\n                          start: {\n                            line: 5,\n                            column: 18\n                          },\n                          end: {\n                            line: 5,\n                            column: 22\n                          }\n                        }\n                      },\n                      property: {\n                        type: \"PrivateIdentifier\",\n                        start: 66,\n                        end: 68,\n                        loc: {\n                          start: {\n                            line: 5,\n                            column: 23\n                          },\n                          end: {\n                            line: 5,\n                            column: 25\n                          }\n                        },\n                        name: \"z\"\n                      },\n                      computed: false,\n                      optional: false\n                    }\n                  }\n                }\n              }\n            ]\n          }\n        ]\n      }\n    }\n  ]\n}, {ecmaVersion: 13, locations: true})\n\ntest(`let zRead\nclass C {\n  static #z\n  static {\n    zRead = (obj) => obj.#z\n  }\n}\nzRead(new C())`, {\n  type: \"Program\",\n  start: 0,\n  end: 91,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 8,\n      column: 14\n    }\n  },\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      start: 0,\n      end: 9,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      },\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          start: 4,\n          end: 9,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          },\n          id: {\n            type: \"Identifier\",\n            start: 4,\n            end: 9,\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            },\n            name: \"zRead\"\n          },\n          init: null\n        }\n      ],\n      kind: \"let\"\n    },\n    {\n      type: \"ClassDeclaration\",\n      start: 10,\n      end: 76,\n      loc: {\n        start: {\n          line: 2,\n          column: 0\n        },\n        end: {\n          line: 7,\n          column: 1\n        }\n      },\n      id: {\n        type: \"Identifier\",\n        start: 16,\n        end: 17,\n        loc: {\n          start: {\n            line: 2,\n            column: 6\n          },\n          end: {\n            line: 2,\n            column: 7\n          }\n        },\n        name: \"C\"\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        start: 18,\n        end: 76,\n        loc: {\n          start: {\n            line: 2,\n            column: 8\n          },\n          end: {\n            line: 7,\n            column: 1\n          }\n        },\n        body: [\n          {\n            type: \"PropertyDefinition\",\n            start: 22,\n            end: 31,\n            loc: {\n              start: {\n                line: 3,\n                column: 2\n              },\n              end: {\n                line: 3,\n                column: 11\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"PrivateIdentifier\",\n              start: 29,\n              end: 31,\n              loc: {\n                start: {\n                  line: 3,\n                  column: 9\n                },\n                end: {\n                  line: 3,\n                  column: 11\n                }\n              },\n              name: \"z\"\n            },\n            value: null\n          },\n          {\n            type: \"StaticBlock\",\n            start: 34,\n            end: 74,\n            loc: {\n              start: {\n                line: 4,\n                column: 2\n              },\n              end: {\n                line: 6,\n                column: 3\n              }\n            },\n            body: [\n              {\n                type: \"ExpressionStatement\",\n                start: 47,\n                end: 70,\n                loc: {\n                  start: {\n                    line: 5,\n                    column: 4\n                  },\n                  end: {\n                    line: 5,\n                    column: 27\n                  }\n                },\n                expression: {\n                  type: \"AssignmentExpression\",\n                  start: 47,\n                  end: 70,\n                  loc: {\n                    start: {\n                      line: 5,\n                      column: 4\n                    },\n                    end: {\n                      line: 5,\n                      column: 27\n                    }\n                  },\n                  operator: \"=\",\n                  left: {\n                    type: \"Identifier\",\n                    start: 47,\n                    end: 52,\n                    loc: {\n                      start: {\n                        line: 5,\n                        column: 4\n                      },\n                      end: {\n                        line: 5,\n                        column: 9\n                      }\n                    },\n                    name: \"zRead\"\n                  },\n                  right: {\n                    type: \"ArrowFunctionExpression\",\n                    start: 55,\n                    end: 70,\n                    loc: {\n                      start: {\n                        line: 5,\n                        column: 12\n                      },\n                      end: {\n                        line: 5,\n                        column: 27\n                      }\n                    },\n                    id: null,\n                    expression: true,\n                    generator: false,\n                    async: false,\n                    params: [\n                      {\n                        type: \"Identifier\",\n                        start: 56,\n                        end: 59,\n                        loc: {\n                          start: {\n                            line: 5,\n                            column: 13\n                          },\n                          end: {\n                            line: 5,\n                            column: 16\n                          }\n                        },\n                        name: \"obj\"\n                      }\n                    ],\n                    body: {\n                      type: \"MemberExpression\",\n                      start: 64,\n                      end: 70,\n                      loc: {\n                        start: {\n                          line: 5,\n                          column: 21\n                        },\n                        end: {\n                          line: 5,\n                          column: 27\n                        }\n                      },\n                      object: {\n                        type: \"Identifier\",\n                        start: 64,\n                        end: 67,\n                        loc: {\n                          start: {\n                            line: 5,\n                            column: 21\n                          },\n                          end: {\n                            line: 5,\n                            column: 24\n                          }\n                        },\n                        name: \"obj\"\n                      },\n                      property: {\n                        type: \"PrivateIdentifier\",\n                        start: 68,\n                        end: 70,\n                        loc: {\n                          start: {\n                            line: 5,\n                            column: 25\n                          },\n                          end: {\n                            line: 5,\n                            column: 27\n                          }\n                        },\n                        name: \"z\"\n                      },\n                      computed: false,\n                      optional: false\n                    }\n                  }\n                }\n              }\n            ]\n          }\n        ]\n      }\n    },\n    {\n      type: \"ExpressionStatement\",\n      start: 77,\n      end: 91,\n      loc: {\n        start: {\n          line: 8,\n          column: 0\n        },\n        end: {\n          line: 8,\n          column: 14\n        }\n      },\n      expression: {\n        type: \"CallExpression\",\n        start: 77,\n        end: 91,\n        loc: {\n          start: {\n            line: 8,\n            column: 0\n          },\n          end: {\n            line: 8,\n            column: 14\n          }\n        },\n        callee: {\n          type: \"Identifier\",\n          start: 77,\n          end: 82,\n          loc: {\n            start: {\n              line: 8,\n              column: 0\n            },\n            end: {\n              line: 8,\n              column: 5\n            }\n          },\n          name: \"zRead\"\n        },\n        arguments: [\n          {\n            type: \"NewExpression\",\n            start: 83,\n            end: 90,\n            loc: {\n              start: {\n                line: 8,\n                column: 6\n              },\n              end: {\n                line: 8,\n                column: 13\n              }\n            },\n            callee: {\n              type: \"Identifier\",\n              start: 87,\n              end: 88,\n              loc: {\n                start: {\n                  line: 8,\n                  column: 10\n                },\n                end: {\n                  line: 8,\n                  column: 11\n                }\n              },\n              name: \"C\"\n            },\n            arguments: []\n          }\n        ],\n        optional: false\n      }\n    }\n  ]\n},  {ecmaVersion: 13, locations: true})\n\ntestFail(`class C {\n  static #z\n  static {\n    this.#y = {}\n  }\n}`, \"Private field '#y' must be declared in an enclosing class (4:9)\", {ecmaVersion: 13})\n\ntestFail(`let zRead\nclass C {\n  static #z\n  static {\n    zRead = () => this.#y\n  }\n}` ,\"Private field '#y' must be declared in an enclosing class (5:23)\", {ecmaVersion: 13})\n\n// Class fields private in\n\ntest(`class C {\n  #brand;\n\n  #method() {}\n\n  get #getter() {}\n\n  static isC(obj) {\n    return #brand in obj && #method in obj && #getter in obj;\n  }\n}`, {\n  type: \"Program\",\n  start: 0,\n  end: 144,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 11,\n      column: 1\n    }\n  },\n  body: [\n    {\n      type: \"ClassDeclaration\",\n      start: 0,\n      end: 144,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 11,\n          column: 1\n        }\n      },\n      id: {\n        type: \"Identifier\",\n        start: 6,\n        end: 7,\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        },\n        name: \"C\"\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        start: 8,\n        end: 144,\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 11,\n            column: 1\n          }\n        },\n        body: [\n          {\n            type: \"PropertyDefinition\",\n            start: 12,\n            end: 19,\n            loc: {\n              start: {\n                line: 2,\n                column: 2\n              },\n              end: {\n                line: 2,\n                column: 9\n              }\n            },\n            static: false,\n            computed: false,\n            key: {\n              type: \"PrivateIdentifier\",\n              start: 12,\n              end: 18,\n              loc: {\n                start: {\n                  line: 2,\n                  column: 2\n                },\n                end: {\n                  line: 2,\n                  column: 8\n                }\n              },\n              name: \"brand\"\n            },\n            value: null\n          },\n          {\n            type: \"MethodDefinition\",\n            start: 23,\n            end: 35,\n            loc: {\n              start: {\n                line: 4,\n                column: 2\n              },\n              end: {\n                line: 4,\n                column: 14\n              }\n            },\n            static: false,\n            computed: false,\n            key: {\n              type: \"PrivateIdentifier\",\n              start: 23,\n              end: 30,\n              loc: {\n                start: {\n                  line: 4,\n                  column: 2\n                },\n                end: {\n                  line: 4,\n                  column: 9\n                }\n              },\n              name: \"method\"\n            },\n            kind: \"method\",\n            value: {\n              type: \"FunctionExpression\",\n              start: 30,\n              end: 35,\n              loc: {\n                start: {\n                  line: 4,\n                  column: 9\n                },\n                end: {\n                  line: 4,\n                  column: 14\n                }\n              },\n              id: null,\n              expression: false,\n              generator: false,\n              async: false,\n              params: [],\n              body: {\n                type: \"BlockStatement\",\n                start: 33,\n                end: 35,\n                loc: {\n                  start: {\n                    line: 4,\n                    column: 12\n                  },\n                  end: {\n                    line: 4,\n                    column: 14\n                  }\n                },\n                body: []\n              }\n            }\n          },\n          {\n            type: \"MethodDefinition\",\n            start: 39,\n            end: 55,\n            loc: {\n              start: {\n                line: 6,\n                column: 2\n              },\n              end: {\n                line: 6,\n                column: 18\n              }\n            },\n            static: false,\n            computed: false,\n            key: {\n              type: \"PrivateIdentifier\",\n              start: 43,\n              end: 50,\n              loc: {\n                start: {\n                  line: 6,\n                  column: 6\n                },\n                end: {\n                  line: 6,\n                  column: 13\n                }\n              },\n              name: \"getter\"\n            },\n            kind: \"get\",\n            value: {\n              type: \"FunctionExpression\",\n              start: 50,\n              end: 55,\n              loc: {\n                start: {\n                  line: 6,\n                  column: 13\n                },\n                end: {\n                  line: 6,\n                  column: 18\n                }\n              },\n              id: null,\n              expression: false,\n              generator: false,\n              async: false,\n              params: [],\n              body: {\n                type: \"BlockStatement\",\n                start: 53,\n                end: 55,\n                loc: {\n                  start: {\n                    line: 6,\n                    column: 16\n                  },\n                  end: {\n                    line: 6,\n                    column: 18\n                  }\n                },\n                body: []\n              }\n            }\n          },\n          {\n            type: \"MethodDefinition\",\n            start: 59,\n            end: 142,\n            loc: {\n              start: {\n                line: 8,\n                column: 2\n              },\n              end: {\n                line: 10,\n                column: 3\n              }\n            },\n            static: true,\n            computed: false,\n            key: {\n              type: \"Identifier\",\n              start: 66,\n              end: 69,\n              loc: {\n                start: {\n                  line: 8,\n                  column: 9\n                },\n                end: {\n                  line: 8,\n                  column: 12\n                }\n              },\n              name: \"isC\"\n            },\n            kind: \"method\",\n            value: {\n              type: \"FunctionExpression\",\n              start: 69,\n              end: 142,\n              loc: {\n                start: {\n                  line: 8,\n                  column: 12\n                },\n                end: {\n                  line: 10,\n                  column: 3\n                }\n              },\n              id: null,\n              expression: false,\n              generator: false,\n              async: false,\n              params: [\n                {\n                  type: \"Identifier\",\n                  start: 70,\n                  end: 73,\n                  loc: {\n                    start: {\n                      line: 8,\n                      column: 13\n                    },\n                    end: {\n                      line: 8,\n                      column: 16\n                    }\n                  },\n                  name: \"obj\"\n                }\n              ],\n              body: {\n                type: \"BlockStatement\",\n                start: 75,\n                end: 142,\n                loc: {\n                  start: {\n                    line: 8,\n                    column: 18\n                  },\n                  end: {\n                    line: 10,\n                    column: 3\n                  }\n                },\n                body: [\n                  {\n                    type: \"ReturnStatement\",\n                    start: 81,\n                    end: 138,\n                    loc: {\n                      start: {\n                        line: 9,\n                        column: 4\n                      },\n                      end: {\n                        line: 9,\n                        column: 61\n                      }\n                    },\n                    argument: {\n                      type: \"LogicalExpression\",\n                      start: 88,\n                      end: 137,\n                      loc: {\n                        start: {\n                          line: 9,\n                          column: 11\n                        },\n                        end: {\n                          line: 9,\n                          column: 60\n                        }\n                      },\n                      left: {\n                        type: \"LogicalExpression\",\n                        start: 88,\n                        end: 119,\n                        loc: {\n                          start: {\n                            line: 9,\n                            column: 11\n                          },\n                          end: {\n                            line: 9,\n                            column: 42\n                          }\n                        },\n                        left: {\n                          type: \"BinaryExpression\",\n                          start: 88,\n                          end: 101,\n                          loc: {\n                            start: {\n                              line: 9,\n                              column: 11\n                            },\n                            end: {\n                              line: 9,\n                              column: 24\n                            }\n                          },\n                          left: {\n                            type: \"PrivateIdentifier\",\n                            start: 88,\n                            end: 94,\n                            loc: {\n                              start: {\n                                line: 9,\n                                column: 11\n                              },\n                              end: {\n                                line: 9,\n                                column: 17\n                              }\n                            },\n                            name: \"brand\"\n                          },\n                          operator: \"in\",\n                          right: {\n                            type: \"Identifier\",\n                            start: 98,\n                            end: 101,\n                            loc: {\n                              start: {\n                                line: 9,\n                                column: 21\n                              },\n                              end: {\n                                line: 9,\n                                column: 24\n                              }\n                            },\n                            name: \"obj\"\n                          }\n                        },\n                        operator: \"&&\",\n                        right: {\n                          type: \"BinaryExpression\",\n                          start: 105,\n                          end: 119,\n                          loc: {\n                            start: {\n                              line: 9,\n                              column: 28\n                            },\n                            end: {\n                              line: 9,\n                              column: 42\n                            }\n                          },\n                          left: {\n                            type: \"PrivateIdentifier\",\n                            start: 105,\n                            end: 112,\n                            loc: {\n                              start: {\n                                line: 9,\n                                column: 28\n                              },\n                              end: {\n                                line: 9,\n                                column: 35\n                              }\n                            },\n                            name: \"method\"\n                          },\n                          operator: \"in\",\n                          right: {\n                            type: \"Identifier\",\n                            start: 116,\n                            end: 119,\n                            loc: {\n                              start: {\n                                line: 9,\n                                column: 39\n                              },\n                              end: {\n                                line: 9,\n                                column: 42\n                              }\n                            },\n                            name: \"obj\"\n                          }\n                        }\n                      },\n                      operator: \"&&\",\n                      right: {\n                        type: \"BinaryExpression\",\n                        start: 123,\n                        end: 137,\n                        loc: {\n                          start: {\n                            line: 9,\n                            column: 46\n                          },\n                          end: {\n                            line: 9,\n                            column: 60\n                          }\n                        },\n                        left: {\n                          type: \"PrivateIdentifier\",\n                          start: 123,\n                          end: 130,\n                          loc: {\n                            start: {\n                              line: 9,\n                              column: 46\n                            },\n                            end: {\n                              line: 9,\n                              column: 53\n                            }\n                          },\n                          name: \"getter\"\n                        },\n                        operator: \"in\",\n                        right: {\n                          type: \"Identifier\",\n                          start: 134,\n                          end: 137,\n                          loc: {\n                            start: {\n                              line: 9,\n                              column: 57\n                            },\n                            end: {\n                              line: 9,\n                              column: 60\n                            }\n                          },\n                          name: \"obj\"\n                        }\n                      }\n                    }\n                  }\n                ]\n              }\n            }\n          }\n        ]\n      }\n    }\n  ]\n},{ ecmaVersion: 13, locations: true })\n\ntestFail(`class C {\n  #brand;\n\n  static isC(obj) {\n    return #brand > obj;\n  }\n}`, 'Unexpected token (5:18)', { ecmaVersion: 13 })\n\ntestFail(`class C {\n  #brand;\n\n  static isC(obj) {\n    return obj >>> #brand in obj;\n  }\n}`, 'Private identifier can only be left side of binary expression (5:19)', { ecmaVersion: 13 })\n\ntestFail(`class C {\n  #brand;\n\n  static isC(obj) {\n    return #brand in #brand in obj;\n  }\n}`, 'Private identifier can only be left side of binary expression (5:21)', { ecmaVersion: 13 })\n\ntestFail(`class X { static { return; } }`, \"'return' outside of function (1:19)\", {allowReturnOutsideFunction: true, ecmaVersion: 13});\n"
  },
  {
    "path": "test/tests-commonjs.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n// Top-level using declaration with commonjs\ntest(\"using x = resource;\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"x\"\n      },\n      init: {\n        type: \"Identifier\",\n        name: \"resource\"\n      }\n    }],\n    kind: \"using\"\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 17, sourceType: \"commonjs\"});\n\n// Top-level new.target with commonjs\ntest(\"new.target\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"MetaProperty\",\n      meta: {type: \"Identifier\", name: \"new\"},\n      property: {type: \"Identifier\", name: \"target\"}\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 6, sourceType: \"commonjs\"});\n\n// new.target at top-level scope with commonjs\ntest(\"let y = () => new.target\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"y\"\n      },\n      init: {\n        type: \"ArrowFunctionExpression\",\n        body: {\n          type: \"MetaProperty\",\n          meta: {type: \"Identifier\", name: \"new\"},\n          property: {type: \"Identifier\", name: \"target\"}\n        },\n        params: []\n      }\n    }],\n    kind: \"let\"\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 6, sourceType: \"commonjs\"});\n\n// Top-level return statement with commonjs\ntest(\"return {} / 2\", {\n  type: \"Program\",\n  body: [{\n    type: \"ReturnStatement\",\n    argument: {\n      type: \"BinaryExpression\",\n      left: {\n        type: \"ObjectExpression\",\n        properties: []\n      },\n      right: {\n        type: \"Literal\",\n        value: 2\n      },\n      operator: \"/\"\n    }\n  }],\n  sourceType: \"script\"\n}, {sourceType: \"commonjs\"});\n\n// Illegal return statement with commonjs\ntestFail(`class X { static { return; } }`, \"'return' outside of function (1:19)\", {ecmaVersion: 13, sourceType: \"commonjs\"});\n\n// Top-level await using declaration with commonjs\ntestFail(\"await using x = resource;\", \"Await using cannot appear outside of async function (1:0)\", {ecmaVersion: 17, sourceType: \"commonjs\"});\n\n// Disallowing allowAwaitOutsideFunction with commonjs\ntestFail(\"await 1\", \"Cannot use allowAwaitOutsideFunction with sourceType: commonjs\", {allowAwaitOutsideFunction: true, sourceType: \"commonjs\"});\ntestFail(\"x\", \"Cannot use allowAwaitOutsideFunction with sourceType: commonjs\", {allowAwaitOutsideFunction: true, sourceType: \"commonjs\"});\ntest(\"x\", {}, {allowAwaitOutsideFunction: false, sourceType: \"commonjs\"});\n"
  },
  {
    "path": "test/tests-directive.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test;\n  var testFail = driver.testFail;\n}\n\n//------------------------------------------------------------------------\n// No directives\n//------------------------------------------------------------------------\n\ntest(\"foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 3,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 3,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 0,\n        \"end\": 3,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function wrap() { foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 23,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 23,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 13,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 16,\n        \"end\": 23,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 18,\n            \"end\": 21,\n            \"expression\": {\n              \"type\": \"Identifier\",\n              \"start\": 18,\n              \"end\": 21,\n              \"name\": \"foo\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"!function wrap() { foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 24,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 24,\n      \"expression\": {\n        \"type\": \"UnaryExpression\",\n        \"start\": 0,\n        \"end\": 24,\n        \"operator\": \"!\",\n        \"prefix\": true,\n        \"argument\": {\n          \"type\": \"FunctionExpression\",\n          \"start\": 1,\n          \"end\": 24,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 10,\n            \"end\": 14,\n            \"name\": \"wrap\"\n          },\n          \"generator\": false,\n          \"expression\": false,\n          \"params\": [],\n          \"body\": {\n            \"type\": \"BlockStatement\",\n            \"start\": 17,\n            \"end\": 24,\n            \"body\": [\n              {\n                \"type\": \"ExpressionStatement\",\n                \"start\": 19,\n                \"end\": 22,\n                \"expression\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 19,\n                  \"end\": 22,\n                  \"name\": \"foo\"\n                },\n                \"directive\": undefined // check this property does not exist.\n              }\n            ]\n          }\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"() => { foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"params\": [],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 6,\n          \"end\": 13,\n          \"body\": [\n            {\n              \"type\": \"ExpressionStatement\",\n              \"start\": 8,\n              \"end\": 11,\n              \"expression\": {\n                \"type\": \"Identifier\",\n                \"start\": 8,\n                \"end\": 11,\n                \"name\": \"foo\"\n              },\n              \"directive\": undefined // check this property does not exist.\n            }\n          ]\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"100\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 3,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 3,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 3,\n        \"value\": 100,\n        \"raw\": \"100\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"\\\"use strict\\\" + 1\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"BinaryExpression\",\n        \"start\": 0,\n        \"end\": 16,\n        \"left\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 12,\n          \"value\": \"use strict\",\n          \"raw\": \"\\\"use strict\\\"\"\n        },\n        \"operator\": \"+\",\n        \"right\": {\n          \"type\": \"Literal\",\n          \"start\": 15,\n          \"end\": 16,\n          \"value\": 1,\n          \"raw\": \"1\"\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"; 'use strict'; with ({}) {}\", {\n  type: \"Program\",\n  body: [\n    { type: \"EmptyStatement\" },\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"use strict\",\n        raw: \"'use strict'\"\n      },\n      directive: undefined // check this property does not exist.\n    },\n    {\n      type: \"WithStatement\",\n      object: {\n        type: \"ObjectExpression\",\n        properties: []\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: []\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n//------------------------------------------------------------------------\n// One directive\n//------------------------------------------------------------------------\n\ntest(\"\\\"use strict\\\"\\n foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 17,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 12,\n        \"value\": \"use strict\",\n        \"raw\": \"\\\"use strict\\\"\"\n      },\n      \"directive\": \"use strict\"\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 14,\n      \"end\": 17,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 14,\n        \"end\": 17,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"'use strict'; foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 17,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 12,\n        \"value\": \"use strict\",\n        \"raw\": \"'use strict'\"\n      },\n      \"directive\": \"use strict\"\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 14,\n      \"end\": 17,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 14,\n        \"end\": 17,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function wrap() { \\\"use strict\\\"\\n foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 37,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 37,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 13,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 16,\n        \"end\": 37,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 18,\n            \"end\": 30,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 18,\n              \"end\": 30,\n              \"value\": \"use strict\",\n              \"raw\": \"\\\"use strict\\\"\"\n            },\n            \"directive\": \"use strict\"\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 32,\n            \"end\": 35,\n            \"expression\": {\n              \"type\": \"Identifier\",\n              \"start\": 32,\n              \"end\": 35,\n              \"name\": \"foo\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"!function wrap() { \\\"use strict\\\"\\n foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 38,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 38,\n      \"expression\": {\n        \"type\": \"UnaryExpression\",\n        \"start\": 0,\n        \"end\": 38,\n        \"operator\": \"!\",\n        \"prefix\": true,\n        \"argument\": {\n          \"type\": \"FunctionExpression\",\n          \"start\": 1,\n          \"end\": 38,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 10,\n            \"end\": 14,\n            \"name\": \"wrap\"\n          },\n          \"generator\": false,\n          \"expression\": false,\n          \"params\": [],\n          \"body\": {\n            \"type\": \"BlockStatement\",\n            \"start\": 17,\n            \"end\": 38,\n            \"body\": [\n              {\n                \"type\": \"ExpressionStatement\",\n                \"start\": 19,\n                \"end\": 31,\n                \"expression\": {\n                  \"type\": \"Literal\",\n                  \"start\": 19,\n                  \"end\": 31,\n                  \"value\": \"use strict\",\n                  \"raw\": \"\\\"use strict\\\"\"\n                },\n                \"directive\": \"use strict\"\n              },\n              {\n                \"type\": \"ExpressionStatement\",\n                \"start\": 33,\n                \"end\": 36,\n                \"expression\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 33,\n                  \"end\": 36,\n                  \"name\": \"foo\"\n                },\n                \"directive\": undefined // check this property does not exist.\n              }\n            ]\n          }\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"() => { \\\"use strict\\\"\\n foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 27,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 27,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 27,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"params\": [],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 6,\n          \"end\": 27,\n          \"body\": [\n            {\n              \"type\": \"ExpressionStatement\",\n              \"start\": 8,\n              \"end\": 20,\n              \"expression\": {\n                \"type\": \"Literal\",\n                \"start\": 8,\n                \"end\": 20,\n                \"value\": \"use strict\",\n                \"raw\": \"\\\"use strict\\\"\"\n              },\n              \"directive\": \"use strict\"\n            },\n            {\n              \"type\": \"ExpressionStatement\",\n              \"start\": 22,\n              \"end\": 25,\n              \"expression\": {\n                \"type\": \"Identifier\",\n                \"start\": 22,\n                \"end\": 25,\n                \"name\": \"foo\"\n              },\n              \"directive\": undefined // check this property does not exist.\n            }\n          ]\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"() => \\\"use strict\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 18,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": true,\n        \"params\": [],\n        \"body\": {\n          \"type\": \"Literal\",\n          \"start\": 6,\n          \"end\": 18,\n          \"value\": \"use strict\",\n          \"raw\": \"\\\"use strict\\\"\"\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, {ecmaVersion: 6})\n\ntest(\"({ wrap() { \\\"use strict\\\"; foo } })\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 34,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 34,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 33,\n        \"properties\": [\n          {\n            \"type\": \"Property\",\n            \"start\": 3,\n            \"end\": 31,\n            \"method\": true,\n            \"shorthand\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 3,\n              \"end\": 7,\n              \"name\": \"wrap\"\n            },\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 7,\n              \"end\": 31,\n              \"id\": null,\n              \"generator\": false,\n              \"expression\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 10,\n                \"end\": 31,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 12,\n                    \"end\": 25,\n                    \"expression\": {\n                      \"type\": \"Literal\",\n                      \"start\": 12,\n                      \"end\": 24,\n                      \"value\": \"use strict\",\n                      \"raw\": \"\\\"use strict\\\"\"\n                    },\n                    \"directive\": \"use strict\"\n                  },\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 26,\n                    \"end\": 29,\n                    \"expression\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 26,\n                      \"end\": 29,\n                      \"name\": \"foo\"\n                    },\n                    \"directive\": undefined // check this property does not exist.\n                  }\n                ]\n              }\n            },\n            \"kind\": \"init\"\n          }\n        ]\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"(class { wrap() { \\\"use strict\\\"; foo } })\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 40,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 40,\n      \"expression\": {\n        \"type\": \"ClassExpression\",\n        \"start\": 1,\n        \"end\": 39,\n        \"id\": null,\n        \"superClass\": null,\n        \"body\": {\n          \"type\": \"ClassBody\",\n          \"start\": 7,\n          \"end\": 39,\n          \"body\": [\n            {\n              \"type\": \"MethodDefinition\",\n              \"start\": 9,\n              \"end\": 37,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 13,\n                \"name\": \"wrap\"\n              },\n              \"static\": false,\n              \"kind\": \"method\",\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 13,\n                \"end\": 37,\n                \"id\": null,\n                \"generator\": false,\n                \"expression\": false,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 16,\n                  \"end\": 37,\n                  \"body\": [\n                    {\n                      \"type\": \"ExpressionStatement\",\n                      \"start\": 18,\n                      \"end\": 31,\n                      \"expression\": {\n                        \"type\": \"Literal\",\n                        \"start\": 18,\n                        \"end\": 30,\n                        \"value\": \"use strict\",\n                        \"raw\": \"\\\"use strict\\\"\"\n                      },\n                      \"directive\": \"use strict\"\n                    },\n                    {\n                      \"type\": \"ExpressionStatement\",\n                      \"start\": 32,\n                      \"end\": 35,\n                      \"expression\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 32,\n                        \"end\": 35,\n                        \"name\": \"foo\"\n                      },\n                      \"directive\": undefined // check this property does not exist.\n                    }\n                  ]\n                }\n              }\n            }\n          ]\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n// Should not decode escape sequence.\ntest(\"\\\"\\\\u0075se strict\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 17,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 17,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 17,\n        \"value\": \"use strict\",\n        \"raw\": \"\\\"\\\\u0075se strict\\\"\"\n      },\n      \"directive\": \"\\\\u0075se strict\"\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n//------------------------------------------------------------------------\n// Two or more directives.\n//------------------------------------------------------------------------\n\ntest(\"\\\"use asm\\\"; \\\"use strict\\\"; foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 28,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 10,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 9,\n        \"value\": \"use asm\",\n        \"raw\": \"\\\"use asm\\\"\"\n      },\n      \"directive\": \"use asm\"\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 11,\n      \"end\": 24,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 11,\n        \"end\": 23,\n        \"value\": \"use strict\",\n        \"raw\": \"\\\"use strict\\\"\"\n      },\n      \"directive\": \"use strict\"\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 25,\n      \"end\": 28,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 25,\n        \"end\": 28,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function wrap() { \\\"use asm\\\"; \\\"use strict\\\"; foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 48,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 48,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 13,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 16,\n        \"end\": 48,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 18,\n            \"end\": 28,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 18,\n              \"end\": 27,\n              \"value\": \"use asm\",\n              \"raw\": \"\\\"use asm\\\"\"\n            },\n            \"directive\": \"use asm\"\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 29,\n            \"end\": 42,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 29,\n              \"end\": 41,\n              \"value\": \"use strict\",\n              \"raw\": \"\\\"use strict\\\"\"\n            },\n            \"directive\": \"use strict\"\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 43,\n            \"end\": 46,\n            \"expression\": {\n              \"type\": \"Identifier\",\n              \"start\": 43,\n              \"end\": 46,\n              \"name\": \"foo\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n//------------------------------------------------------------------------\n// One string after other expressions.\n//------------------------------------------------------------------------\n\ntest(\"\\\"use strict\\\"; foo; \\\"use asm\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 28,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 12,\n        \"value\": \"use strict\",\n        \"raw\": \"\\\"use strict\\\"\"\n      },\n      \"directive\": \"use strict\"\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 14,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 14,\n        \"end\": 17,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 19,\n      \"end\": 28,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 19,\n        \"end\": 28,\n        \"value\": \"use asm\",\n        \"raw\": \"\\\"use asm\\\"\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function wrap() { \\\"use asm\\\"; foo; \\\"use strict\\\" }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 48,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 48,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 13,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 16,\n        \"end\": 48,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 18,\n            \"end\": 28,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 18,\n              \"end\": 27,\n              \"value\": \"use asm\",\n              \"raw\": \"\\\"use asm\\\"\"\n            },\n            \"directive\": \"use asm\"\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 29,\n            \"end\": 33,\n            \"expression\": {\n              \"type\": \"Identifier\",\n              \"start\": 29,\n              \"end\": 32,\n              \"name\": \"foo\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 34,\n            \"end\": 46,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 34,\n              \"end\": 46,\n              \"value\": \"use strict\",\n              \"raw\": \"\\\"use strict\\\"\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n//------------------------------------------------------------------------\n// One string in a block.\n//------------------------------------------------------------------------\n\ntest(\"{ \\\"use strict\\\"; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 17,\n  \"body\": [\n    {\n      \"type\": \"BlockStatement\",\n      \"start\": 0,\n      \"end\": 17,\n      \"body\": [\n        {\n          \"type\": \"ExpressionStatement\",\n          \"start\": 2,\n          \"end\": 15,\n          \"expression\": {\n            \"type\": \"Literal\",\n            \"start\": 2,\n            \"end\": 14,\n            \"value\": \"use strict\",\n            \"raw\": \"\\\"use strict\\\"\"\n          },\n          \"directive\": undefined // check this property does not exist.\n        }\n      ]\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function wrap() { { \\\"use strict\\\" } foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 40,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 40,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 13,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 16,\n        \"end\": 40,\n        \"body\": [\n          {\n            \"type\": \"BlockStatement\",\n            \"start\": 18,\n            \"end\": 34,\n            \"body\": [\n              {\n                \"type\": \"ExpressionStatement\",\n                \"start\": 20,\n                \"end\": 32,\n                \"expression\": {\n                  \"type\": \"Literal\",\n                  \"start\": 20,\n                  \"end\": 32,\n                  \"value\": \"use strict\",\n                  \"raw\": \"\\\"use strict\\\"\"\n                },\n                \"directive\": undefined // check this property does not exist.\n              }\n            ]\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 35,\n            \"end\": 38,\n            \"expression\": {\n              \"type\": \"Identifier\",\n              \"start\": 35,\n              \"end\": 38,\n              \"name\": \"foo\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n//------------------------------------------------------------------------\n// One string with parentheses.\n//------------------------------------------------------------------------\n\ntest(\"(\\\"use strict\\\"); foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 19,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 15,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 1,\n        \"end\": 13,\n        \"value\": \"use strict\",\n        \"raw\": \"\\\"use strict\\\"\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 16,\n      \"end\": 19,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 16,\n        \"end\": 19,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function wrap() { (\\\"use strict\\\"); foo }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 39,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 39,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 13,\n        \"name\": \"wrap\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 16,\n        \"end\": 39,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 18,\n            \"end\": 33,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 19,\n              \"end\": 31,\n              \"value\": \"use strict\",\n              \"raw\": \"\\\"use strict\\\"\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 34,\n            \"end\": 37,\n            \"expression\": {\n              \"type\": \"Identifier\",\n              \"start\": 34,\n              \"end\": 37,\n              \"name\": \"foo\"\n            },\n            \"directive\": undefined // check this property does not exist.\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\n//------------------------------------------------------------------------\n// Complex cases such as the function in a default parameter.\n//------------------------------------------------------------------------\n\ntest(\"function a() { \\\"use strict\\\" } \\\"use strict\\\"; foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 47,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 29,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 10,\n        \"name\": \"a\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 13,\n        \"end\": 29,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 15,\n            \"end\": 27,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 15,\n              \"end\": 27,\n              \"value\": \"use strict\",\n              \"raw\": \"\\\"use strict\\\"\"\n            },\n            \"directive\": \"use strict\"\n          }\n        ]\n      }\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 30,\n      \"end\": 43,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 30,\n        \"end\": 42,\n        \"value\": \"use strict\",\n        \"raw\": \"\\\"use strict\\\"\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 44,\n      \"end\": 47,\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"start\": 44,\n        \"end\": 47,\n        \"name\": \"foo\"\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"function a(a = function() { \\\"use strict\\\"; foo }) { \\\"use strict\\\" }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 65,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 65,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 10,\n        \"name\": \"a\"\n      },\n      \"generator\": false,\n      \"expression\": false,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 11,\n          \"end\": 47,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 12,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"FunctionExpression\",\n            \"start\": 15,\n            \"end\": 47,\n            \"id\": null,\n            \"generator\": false,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n              \"type\": \"BlockStatement\",\n              \"start\": 26,\n              \"end\": 47,\n              \"body\": [\n                {\n                  \"type\": \"ExpressionStatement\",\n                  \"start\": 28,\n                  \"end\": 41,\n                  \"expression\": {\n                    \"type\": \"Literal\",\n                    \"start\": 28,\n                    \"end\": 40,\n                    \"value\": \"use strict\",\n                    \"raw\": \"\\\"use strict\\\"\"\n                  },\n                  \"directive\": \"use strict\"\n                },\n                {\n                  \"type\": \"ExpressionStatement\",\n                  \"start\": 42,\n                  \"end\": 45,\n                  \"expression\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 42,\n                    \"end\": 45,\n                    \"name\": \"foo\"\n                  },\n                  \"directive\": undefined // check this property does not exist.\n                }\n              ]\n            }\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 49,\n        \"end\": 65,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 51,\n            \"end\": 63,\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"start\": 51,\n              \"end\": 63,\n              \"value\": \"use strict\",\n              \"raw\": \"\\\"use strict\\\"\"\n            },\n            \"directive\": \"use strict\"\n          }\n        ]\n      }\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntest(\"(a = () => { \\\"use strict\\\"; foo }) => { \\\"use strict\\\" }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 53,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 53,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 53,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"params\": [\n          {\n            \"type\": \"AssignmentPattern\",\n            \"start\": 1,\n            \"end\": 32,\n            \"left\": {\n              \"type\": \"Identifier\",\n              \"start\": 1,\n              \"end\": 2,\n              \"name\": \"a\"\n            },\n            \"right\": {\n              \"type\": \"ArrowFunctionExpression\",\n              \"start\": 5,\n              \"end\": 32,\n              \"id\": null,\n              \"generator\": false,\n              \"expression\": false,\n              \"params\": [],\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 11,\n                \"end\": 32,\n                \"body\": [\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 13,\n                    \"end\": 26,\n                    \"expression\": {\n                      \"type\": \"Literal\",\n                      \"start\": 13,\n                      \"end\": 25,\n                      \"value\": \"use strict\",\n                      \"raw\": \"\\\"use strict\\\"\"\n                    },\n                    \"directive\": \"use strict\"\n                  },\n                  {\n                    \"type\": \"ExpressionStatement\",\n                    \"start\": 27,\n                    \"end\": 30,\n                    \"expression\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 27,\n                      \"end\": 30,\n                      \"name\": \"foo\"\n                    },\n                    \"directive\": undefined // check this property does not exist.\n                  }\n                ]\n              }\n            }\n          }\n        ],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 37,\n          \"end\": 53,\n          \"body\": [\n            {\n              \"type\": \"ExpressionStatement\",\n              \"start\": 39,\n              \"end\": 51,\n              \"expression\": {\n                \"type\": \"Literal\",\n                \"start\": 39,\n                \"end\": 51,\n                \"value\": \"use strict\",\n                \"raw\": \"\\\"use strict\\\"\"\n              },\n              \"directive\": \"use strict\"\n            }\n          ]\n        }\n      },\n      \"directive\": undefined // check this property does not exist.\n    }\n  ]\n}, { ecmaVersion: 6 })\n\ntestFail(\n  \"function invalid() { \\\"\\\\7\\\\\\n\\\"; \\\"use strict\\\"; }\",\n  \"Octal literal in strict mode (1:22)\",\n  { ecmaVersion: 6 })\n"
  },
  {
    "path": "test/tests-dynamic-import.js",
    "content": "// Tests for ECMAScript 2020 dynamic import\n\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\ntest(\n  \"import('dynamicImport.js')\",\n  {\n    type: 'Program',\n    start: 0,\n    end: 26,\n    body: [\n      {\n        type: 'ExpressionStatement',\n        start: 0,\n        end: 26,\n        expression: {\n          type: 'ImportExpression',\n          start: 0,\n          end: 26,\n          source: {\n            type: 'Literal',\n            start: 7,\n            end: 25,\n            value: 'dynamicImport.js',\n            raw: \"'dynamicImport.js'\"\n          }\n        }\n      }\n    ],\n    sourceType: 'script'\n  },\n  { ecmaVersion: 11 }\n);\n\n// Assignment is OK.\ntest(\n  \"import(a = 'dynamicImport.js')\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 30,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 30,\n        \"expression\": {\n          \"type\": \"ImportExpression\",\n          \"start\": 0,\n          \"end\": 30,\n          \"source\": {\n            \"type\": \"AssignmentExpression\",\n            \"start\": 7,\n            \"end\": 29,\n            \"operator\": \"=\",\n            \"left\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 8,\n              \"name\": \"a\"\n            },\n            \"right\": {\n              \"type\": \"Literal\",\n              \"start\": 11,\n              \"end\": 29,\n              \"value\": \"dynamicImport.js\",\n              \"raw\": \"'dynamicImport.js'\"\n            }\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 11 }\n);\n\ntest(\n  \"function* a() { yield import('http'); }\",\n  {\n    type: 'Program',\n    start: 0,\n    end: 39,\n    body: [\n      {\n        type: 'FunctionDeclaration',\n        start: 0,\n        end: 39,\n        id: { type: 'Identifier', start: 10, end: 11, name: 'a' },\n        expression: false,\n        generator: true,\n        async: false,\n        params: [],\n        body: {\n          type: 'BlockStatement',\n          start: 14,\n          end: 39,\n          body: [\n            {\n              type: 'ExpressionStatement',\n              start: 16,\n              end: 37,\n              expression: {\n                type: 'YieldExpression',\n                start: 16,\n                end: 36,\n                delegate: false,\n                argument: {\n                  type: 'ImportExpression',\n                  start: 22,\n                  end: 36,\n                  source: { type: 'Literal', start: 29, end: 35, value: 'http', raw: \"'http'\" }\n                }\n              }\n            }\n          ]\n        }\n      }\n    ],\n    sourceType: 'script'\n  },\n  { ecmaVersion: 11 }\n);\n\n// `new import(s)` is syntax error, but `new (import(s))` is not.\ntest(\n  \"new (import(s))\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 15,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 15,\n        \"expression\": {\n          \"type\": \"NewExpression\",\n          \"start\": 0,\n          \"end\": 15,\n          \"callee\": {\n            \"type\": \"ImportExpression\",\n            \"start\": 5,\n            \"end\": 14,\n            \"source\": {\n              \"type\": \"Identifier\",\n              \"start\": 12,\n              \"end\": 13,\n              \"name\": \"s\"\n            }\n          },\n          \"arguments\": []\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 11 }\n);\n\n// `import(s,t)` is syntax error, but `import((s,t))` is not.\ntest(\n  \"import((s,t))\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 13,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 13,\n        \"expression\": {\n          \"type\": \"ImportExpression\",\n          \"start\": 0,\n          \"end\": 13,\n          \"source\": {\n            \"type\": \"SequenceExpression\",\n            \"start\": 8,\n            \"end\": 11,\n            \"expressions\": [\n              {\n                \"type\": \"Identifier\",\n                \"start\": 8,\n                \"end\": 9,\n                \"name\": \"s\"\n              },\n              {\n                \"type\": \"Identifier\",\n                \"start\": 10,\n                \"end\": 11,\n                \"name\": \"t\"\n              }\n            ]\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 11 }\n);\n\ntestFail('function failsParse() { return import.then(); }', 'The only valid meta property for import is \\'import.meta\\' (1:38)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"var dynImport = import; dynImport('http');\", 'Unexpected token (1:22)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"import('test.js')\", 'Unexpected token (1:6)', {\n  ecmaVersion: 10,\n  loose: false,\n  sourceType: 'module'\n});\n\ntestFail(\"import()\", 'Unexpected token (1:7)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"import(a, b)\", 'Unexpected token (1:8)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"import(...[a])\", 'Unexpected token (1:7)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"import(source,)\", 'Trailing comma is not allowed in import() (1:13)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"new import(source)\", 'Unexpected token (1:10)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"new import(source).foo\", 'Unexpected token (1:10)', {\n  ecmaVersion: 11,\n  loose: false\n});\n\ntestFail(\"(import)(s)\", 'Unexpected token (1:7)', {\n  ecmaVersion: 11,\n  loose: false\n});\n"
  },
  {
    "path": "test/tests-es7.js",
    "content": "// Tests for ECMAScript 7 syntax changes\n\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\ntest(\"x **= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"**=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n}, {\n  ecmaVersion: 7,\n  locations: true\n});\n\ntestFail(\"x **= 42\", \"Unexpected token (1:3)\", { ecmaVersion: 6 });\n\ntest(\"x ** y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"**\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n}, {\n  ecmaVersion: 7,\n  locations: true\n});\n\ntestFail(\"x ** y\", \"Unexpected token (1:3)\", { ecmaVersion: 6 });\n\n// ** has highest precedence\ntest(\"3 ** 5 * 1\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        operator: \"*\",\n        left: {\n          type: \"BinaryExpression\",\n          operator: \"**\",\n          left: {\n            type: \"Literal\",\n            value: 3\n          },\n          right: {\n            type: \"Literal\",\n            value: 5\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 1\n        }\n      }\n    }\n  ]\n}, {\n  ecmaVersion: 7,\n});\n\ntest(\"3 % 5 ** 1\", {\n  type: \"Program\",\n    body: [\n      {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"BinaryExpression\",\n          operator: \"%\",\n          left: {\n            type: \"Literal\",\n            value: 3\n          },\n          right: {\n            type: \"BinaryExpression\",\n            operator: \"**\",\n            left: {\n              type: \"Literal\",\n              value: 5\n            },\n            right: {\n              type: \"Literal\",\n              value: 1\n            }\n          }\n        }\n      }\n    ]\n}, {\n  ecmaVersion: 7,\n});\n\n// Disallowed unary ops\ntestFail(\"delete o.p ** 2;\", \"Unexpected token (1:11)\", { ecmaVersion: 7 });\ntestFail(\"void 2 ** 2;\", \"Unexpected token (1:7)\", { ecmaVersion: 7 });\ntestFail(\"typeof 2 ** 2;\", \"Unexpected token (1:9)\", { ecmaVersion: 7 });\ntestFail(\"~3 ** 2;\", \"Unexpected token (1:3)\", { ecmaVersion: 7 });\ntestFail(\"!1 ** 2;\", \"Unexpected token (1:3)\", { ecmaVersion: 7 });\ntestFail(\"-2** 2;\", \"Unexpected token (1:2)\", { ecmaVersion: 7 });\ntestFail(\"+2** 2;\", \"Unexpected token (1:2)\", { ecmaVersion: 7 });\ntestFail(\"-(i--) ** 2\", \"Unexpected token (1:7)\", {ecmaVersion: 7});\ntestFail(\"+(i--) ** 2\", \"Unexpected token (1:7)\", {ecmaVersion: 7});\n\n// make sure base operand check doesn't affect other operators\ntest(\"-a * 5\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"UnaryExpression\",\n          operator: \"-\",\n          prefix: true,\n          argument: {\n            type: \"Identifier\",\n            name: \"a\"\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Literal\",\n          value: 5,\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, { ecmaVersion: 6 })\n\n\ntest(\"(-5) ** y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"UnaryExpression\",\n          operator: \"-\",\n          prefix: true,\n          argument: {\n            type: \"Literal\",\n            value: 5\n          }\n        },\n        operator: \"**\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\"\n        }\n      }\n    }\n  ]\n}, {\n  ecmaVersion: 7\n});\n\ntest(\"++a ** 2\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"BinaryExpression\",\n        \"left\": {\n          \"type\": \"UpdateExpression\",\n          \"operator\": \"++\",\n          \"prefix\": true,\n          \"argument\": {\n            \"type\": \"Identifier\",\n            \"name\": \"a\"\n          }\n        },\n        \"operator\": \"**\",\n        \"right\": {\n          \"type\": \"Literal\",\n          \"value\": 2,\n          \"raw\": \"2\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 7})\n\ntest(\"a-- ** 2\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"BinaryExpression\",\n        \"left\": {\n          \"type\": \"UpdateExpression\",\n          \"operator\": \"--\",\n          \"prefix\": false,\n          \"argument\": {\n            \"type\": \"Identifier\",\n            \"name\": \"a\"\n          }\n        },\n        \"operator\": \"**\",\n        \"right\": {\n          \"type\": \"Literal\",\n          \"value\": 2,\n          \"raw\": \"2\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 7})\n\ntestFail(\"x %* y\", \"Unexpected token (1:3)\", { ecmaVersion: 7 });\n\ntestFail(\"x %*= y\", \"Unexpected token (1:3)\", { ecmaVersion: 7 });\n\ntestFail(\"function foo(a=2) { 'use strict'; }\", \"Illegal 'use strict' directive in function with non-simple parameter list (1:0)\", { ecmaVersion: 7 })\ntestFail(\"(a=2) => { 'use strict'; }\", \"Illegal 'use strict' directive in function with non-simple parameter list (1:0)\", { ecmaVersion: 7 })\ntestFail(\"function foo({a}) { 'use strict'; }\", \"Illegal 'use strict' directive in function with non-simple parameter list (1:0)\", { ecmaVersion: 7 })\ntestFail(\"({a}) => { 'use strict'; }\", \"Illegal 'use strict' directive in function with non-simple parameter list (1:0)\", { ecmaVersion: 7 })\ntest(\"function foo(a) { 'use strict'; }\", {}, { ecmaVersion: 7 });\n\n// Tests for B.3.4 FunctionDeclarations in IfStatement Statement Clauses\ntest(\n  \"if (x) function f() {}\",\n  {\n    type: \"Program\",\n    body: [{\n      type: \"IfStatement\",\n      consequent: {\n        type: \"FunctionDeclaration\"\n      },\n      alternate: null\n    }]\n  },\n  { ecmaVersion: 7 }\n)\n\ntest(\n  \"if (x) function f() { return 23; } else function f() { return 42; }\",\n  {\n    type: \"Program\",\n    body: [{\n      type: \"IfStatement\",\n      consequent: {\n        type: \"FunctionDeclaration\"\n      },\n      alternate: {\n        type: \"FunctionDeclaration\"\n      }\n    }]\n  },\n  { ecmaVersion: 7 }\n)\n\ntestFail(\n  \"'use strict'; if(x) function f() {}\",\n  \"Unexpected token (1:20)\",\n  { ecmaVersion: 7 }\n)\n\ntestFail(\"'use strict'; function y(x = 1) { 'use strict' }\",\n         \"Illegal 'use strict' directive in function with non-simple parameter list (1:14)\",\n         {ecmaVersion: 7})\n"
  },
  {
    "path": "test/tests-export-all-as-ns-from-source.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n//------------------------------------------------------------------------------\n// export * as ns from \"source\"\n//------------------------------------------------------------------------------\n\ntest(\"export * as ns from \\\"source\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 28,\n  \"body\": [\n    {\n      \"type\": \"ExportAllDeclaration\",\n      \"start\": 0,\n      \"end\": 28,\n      \"exported\": {\n        \"type\": \"Identifier\",\n        \"start\": 12,\n        \"end\": 14,\n        \"name\": \"ns\"\n      },\n      \"source\": {\n        \"type\": \"Literal\",\n        \"start\": 20,\n        \"end\": 28,\n        \"value\": \"source\",\n        \"raw\": \"\\\"source\\\"\"\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { sourceType: \"module\", ecmaVersion: 11 })\n\ntest(\"export * as foo from \\\"bar\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 26,\n  \"body\": [\n    {\n      \"type\": \"ExportAllDeclaration\",\n      \"start\": 0,\n      \"end\": 26,\n      \"exported\": {\n        \"type\": \"Identifier\",\n        \"start\": 12,\n        \"end\": 15,\n        \"name\": \"foo\"\n      },\n      \"source\": {\n        \"type\": \"Literal\",\n        \"start\": 21,\n        \"end\": 26,\n        \"value\": \"bar\",\n        \"raw\": \"\\\"bar\\\"\"\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { sourceType: \"module\", ecmaVersion: 11 })\n\ntest(\"export * from \\\"source\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ExportAllDeclaration\",\n      \"start\": 0,\n      \"end\": 22,\n      \"exported\": null,\n      \"source\": {\n        \"type\": \"Literal\",\n        \"start\": 14,\n        \"end\": 22,\n        \"value\": \"source\",\n        \"raw\": \"\\\"source\\\"\"\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { sourceType: \"module\", ecmaVersion: 11 })\n\ntest(\"export * from 'a';\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExportAllDeclaration\",\n      exported: null,\n      source: {\n        type: \"Literal\",\n      }\n    }\n  ]\n}, {sourceType: \"module\", ecmaVersion: 11})\n\ntestFail(\"export * as ns from \\\"source\\\"\", \"'import' and 'export' may appear only with 'sourceType: module' (1:0)\", { sourceType: \"script\", ecmaVersion: 11 })\ntestFail(\"export * as ns from \\\"source\\\"\", \"Unexpected token (1:9)\", { sourceType: \"module\", ecmaVersion: 10 })\ntestFail(\"export * as ns\", \"Unexpected token (1:14)\", { sourceType: \"module\", ecmaVersion: 11 })\ntestFail(\"export * as from \\\"source\\\"\", \"Unexpected token (1:17)\", { sourceType: \"module\", ecmaVersion: 11 })\ntestFail(\"export * as ns \\\"source\\\"\", \"Unexpected token (1:15)\", { sourceType: \"module\", ecmaVersion: 11 })\ntestFail(\"export {} as ns from \\\"source\\\"\", \"Unexpected token (1:10)\", { sourceType: \"module\", ecmaVersion: 11 })\n"
  },
  {
    "path": "test/tests-export-named.js",
    "content": "// Tests for `ExportNamedDeclaration`\n\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n//------------------------------------------------------------------------------\n// export {x} from \"source\"\n//------------------------------------------------------------------------------\n\ntest(\"export {x} from \\\"source\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 24,\n  \"body\": [\n    {\n      \"type\": \"ExportNamedDeclaration\",\n      \"start\": 0,\n      \"end\": 24,\n      \"declaration\": null,\n      \"specifiers\": [\n        {\n          \"type\": \"ExportSpecifier\",\n          \"start\": 8,\n          \"end\": 9,\n          \"local\": {\n            \"type\": \"Identifier\",\n            \"start\": 8,\n            \"end\": 9,\n            \"name\": \"x\"\n          },\n          \"exported\": {\n            \"type\": \"Identifier\",\n            \"start\": 8,\n            \"end\": 9,\n            \"name\": \"x\"\n          }\n        }\n      ],\n      \"source\": {\n        \"type\": \"Literal\",\n        \"start\": 16,\n        \"end\": 24,\n        \"value\": \"source\",\n        \"raw\": \"\\\"source\\\"\"\n      },\n      \"attributes\": []\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { sourceType: \"module\", ecmaVersion: 16 })\n\ntest(\"export {x as y} from \\\"source\\\"\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 29,\n  \"body\": [\n    {\n      \"type\": \"ExportNamedDeclaration\",\n      \"start\": 0,\n      \"end\": 29,\n      \"declaration\": null,\n      \"specifiers\": [\n        {\n          \"type\": \"ExportSpecifier\",\n          \"start\": 8,\n          \"end\": 14,\n          \"local\": {\n            \"type\": \"Identifier\",\n            \"start\": 8,\n            \"end\": 9,\n            \"name\": \"x\"\n          },\n          \"exported\": {\n            \"type\": \"Identifier\",\n            \"start\": 13,\n            \"end\": 14,\n            \"name\": \"y\"\n          }\n        }\n      ],\n      \"source\": {\n        \"type\": \"Literal\",\n        \"start\": 21,\n        \"end\": 29,\n        \"value\": \"source\",\n        \"raw\": \"\\\"source\\\"\"\n      },\n      \"attributes\": []\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { sourceType: \"module\", ecmaVersion: 16 })\n\n//------------------------------------------------------------------------------\n// export {x}\n//------------------------------------------------------------------------------\n\ntest(\"let x; export {x};\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 6,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 5,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 5,\n            \"name\": \"x\"\n          },\n          \"init\": null\n        }\n      ],\n      \"kind\": \"let\"\n    },\n    {\n      \"type\": \"ExportNamedDeclaration\",\n      \"start\": 7,\n      \"end\": 18,\n      \"declaration\": null,\n      \"specifiers\": [\n        {\n          \"type\": \"ExportSpecifier\",\n          \"start\": 15,\n          \"end\": 16,\n          \"local\": {\n            \"type\": \"Identifier\",\n            \"start\": 15,\n            \"end\": 16,\n            \"name\": \"x\"\n          },\n          \"exported\": {\n            \"type\": \"Identifier\",\n            \"start\": 15,\n            \"end\": 16,\n            \"name\": \"x\"\n          }\n        }\n      ],\n      \"source\": null,\n      \"attributes\": []\n    }\n  ],\n  \"sourceType\": \"module\"\n}, { sourceType: \"module\", ecmaVersion: 16 })\n\ntest(\"let x; export {x as y};\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 23,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 6,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 5,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 5,\n            \"name\": \"x\"\n          },\n          \"init\": null\n        }\n      ],\n      \"kind\": \"let\"\n    },\n    {\n      \"type\": \"ExportNamedDeclaration\",\n      \"start\": 7,\n      \"end\": 23,\n      \"declaration\": null,\n      \"specifiers\": [\n        {\n          \"type\": \"ExportSpecifier\",\n          \"start\": 15,\n          \"end\": 21,\n          \"local\": {\n            \"type\": \"Identifier\",\n            \"start\": 15,\n            \"end\": 16,\n            \"name\": \"x\"\n          },\n          \"exported\": {\n            \"type\": \"Identifier\",\n            \"start\": 20,\n            \"end\": 21,\n            \"name\": \"y\"\n          }\n        }\n      ],\n      \"source\": null,\n      \"attributes\": []\n    }\n  ],\n  \"sourceType\": \"module\"\n}, {sourceType: \"module\", ecmaVersion: 16})\n\ntestFail(\"export {x} from \\\"source\\\"\", \"'import' and 'export' may appear only with 'sourceType: module' (1:0)\", { sourceType: \"script\", ecmaVersion: 11 })\ntestFail(\"export {x as y} from \\\"source\\\"\", \"'import' and 'export' may appear only with 'sourceType: module' (1:0)\", { sourceType: \"script\", ecmaVersion: 11 })\ntestFail(\"export {x}; let x;\", \"'import' and 'export' may appear only with 'sourceType: module' (1:0)\", { sourceType: \"script\", ecmaVersion: 11 })\ntestFail(\"export {x as y}; let x;\", \"'import' and 'export' may appear only with 'sourceType: module' (1:0)\", { sourceType: \"script\", ecmaVersion: 11 })\n"
  },
  {
    "path": "test/tests-harmony.js",
    "content": "/*\n  Copyright (C) 2015 Ingvar Stepanyan <me@rreverser.com>\n  Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>\n  Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>\n  Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>\n  Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>\n  Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>\n  Copyright (C) 2011 Yusuke Suzuki <utatane.tea@gmail.com>\n  Copyright (C) 2011 Arpad Borsos <arpad.borsos@googlemail.com>\n\n  Redistribution and use in source and binary forms, with or without\n  modification, are permitted provided that the following conditions are met:\n\n    * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n    * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n\n  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\n  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\n/*\n  Tests below were automatically converted from https://github.com/ariya/esprima/blob/2bb17ef9a45c88e82d72c2c61b7b7af93caef028/test/harmonytest.js.\n\n  Manually fixed locations for:\n   - parenthesized expressions (include brackets into expression's location)\n   - expression statements (excluded spaces after statement's semicolon)\n   - arrow and method functions (included arguments into function's location)\n   - template elements (excluded '`', '${' and '}' from element's location)\n*/\n\n// ES6 Unicode Code Point Escape Sequence\n\ntest(\"\\\"\\\\u{714E}\\\\u{8336}\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: \"煎茶\",\n      raw: \"\\\"\\\\u{714E}\\\\u{8336}\\\"\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"\\\"\\\\u{20BB7}\\\\u{91CE}\\\\u{5BB6}\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: \"𠮷野家\",\n      raw: \"\\\"\\\\u{20BB7}\\\\u{91CE}\\\\u{5BB6}\\\"\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 27}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6: Numeric Literal\n\ntest(\"00\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 0,\n      raw: \"00\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 2}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 2}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 2}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0o0\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 0,\n      raw: \"0o0\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function test() {'use strict'; 0o0; }\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"test\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 13}\n      }\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: \"use strict\",\n            raw: \"'use strict'\",\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 29}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 30}\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: 0,\n            raw: \"0o0\",\n            loc: {\n              start: {line: 1, column: 31},\n              end: {line: 1, column: 34}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 31},\n            end: {line: 1, column: 35}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 16},\n        end: {line: 1, column: 37}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 37}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 37}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0o2\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 2,\n      raw: \"0o2\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0o12\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 10,\n      raw: \"0o12\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 4}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 4}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 4}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0O0\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 0,\n      raw: \"0O0\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function test() {'use strict'; 0O0; }\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"test\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 13}\n      }\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: \"use strict\",\n            raw: \"'use strict'\",\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 29}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 30}\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: 0,\n            raw: \"0O0\",\n            loc: {\n              start: {line: 1, column: 31},\n              end: {line: 1, column: 34}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 31},\n            end: {line: 1, column: 35}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 16},\n        end: {line: 1, column: 37}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 37}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 37}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0O2\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 2,\n      raw: \"0O2\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0O12\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 10,\n      raw: \"0O12\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 4}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 4}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 4}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0b0\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 0,\n      raw: \"0b0\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0b1\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 1,\n      raw: \"0b1\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0b10\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 2,\n      raw: \"0b10\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 4}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 4}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 4}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0B0\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 0,\n      raw: \"0B0\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0B1\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 1,\n      raw: \"0B1\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"0B10\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"Literal\",\n      value: 2,\n      raw: \"0B10\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 4}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 4}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 4}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6 Template Strings\n\ntest(\"`42`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TemplateLiteral\",\n      quasis: [{\n        type: \"TemplateElement\",\n        value: {raw: \"42\", cooked: \"42\"},\n        tail: true,\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 3}\n        }\n      }],\n      expressions: [],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 4}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 4}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 4}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"raw`42`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TaggedTemplateExpression\",\n      tag: {\n        type: \"Identifier\",\n        name: \"raw\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 3}\n        }\n      },\n      quasi: {\n        type: \"TemplateLiteral\",\n        quasis: [{\n          type: \"TemplateElement\",\n          value: {raw: \"42\", cooked: \"42\"},\n          tail: true,\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 6}\n          }\n        }],\n        expressions: [],\n        loc: {\n          start: {line: 1, column: 3},\n          end: {line: 1, column: 7}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 7}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 7}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 7}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"raw`hello ${name}`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TaggedTemplateExpression\",\n      tag: {\n        type: \"Identifier\",\n        name: \"raw\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 3}\n        }\n      },\n      quasi: {\n        type: \"TemplateLiteral\",\n        quasis: [\n          {\n            type: \"TemplateElement\",\n            value: {raw: \"hello \", cooked: \"hello \"},\n            tail: false,\n            loc: {\n              start: {line: 1, column: 4},\n              end: {line: 1, column: 10}\n            }\n          },\n          {\n            type: \"TemplateElement\",\n            value: {raw: \"\", cooked: \"\"},\n            tail: true,\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 17}\n            }\n          }\n        ],\n        expressions: [{\n          type: \"Identifier\",\n          name: \"name\",\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 16}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 3},\n          end: {line: 1, column: 18}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"`$`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TemplateLiteral\",\n      quasis: [{\n        type: \"TemplateElement\",\n        value: {raw: \"$\", cooked: \"$\"},\n        tail: true,\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 2}\n        }\n      }],\n      expressions: [],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 3}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 3}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"`\\\\n\\\\r\\\\b\\\\v\\\\t\\\\f\\\\\\n\\\\\\r\\n\\\\\\u2028\\\\\\u2029`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TemplateLiteral\",\n      quasis: [{\n        type: \"TemplateElement\",\n        value: {raw: \"\\\\n\\\\r\\\\b\\\\v\\\\t\\\\f\\\\\\n\\\\\\n\\\\\\u2028\\\\\\u2029\", cooked: \"\\n\\r\\b\\u000b\\t\\f\"},\n        tail: true,\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 5, column: 0}\n        }\n      }],\n      expressions: [],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 5, column: 1}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 5, column: 1}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 5, column: 1}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"`\\n\\r\\n\\r`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TemplateLiteral\",\n      quasis: [{\n        type: \"TemplateElement\",\n        value: {raw: \"\\n\\n\\n\", cooked: \"\\n\\n\\n\"},\n        tail: true,\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 4, column: 0}\n        }\n      }],\n      expressions: [],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 4, column: 1}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 4, column: 1}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 4, column: 1}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"`\\\\u{000042}\\\\u0042\\\\x42u0\\\\A`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"TemplateLiteral\",\n      quasis: [{\n        type: \"TemplateElement\",\n        value: {raw: \"\\\\u{000042}\\\\u0042\\\\x42u0\\\\A\", cooked: \"BBBu0A\"},\n        tail: true,\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 25}\n        }\n      }],\n      expressions: [],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 26}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 26}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 26}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"new raw`42`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"NewExpression\",\n      callee: {\n        type: \"TaggedTemplateExpression\",\n        tag: {\n          type: \"Identifier\",\n          name: \"raw\",\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 7}\n          }\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          quasis: [{\n            type: \"TemplateElement\",\n            value: {raw: \"42\", cooked: \"42\"},\n            tail: true,\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 10}\n            }\n          }],\n          expressions: [],\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 11}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 11}\n        }\n      },\n      arguments: [],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 11}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 11}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 11}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"`outer${{x: {y: 10}}}bar${`nested${function(){return 1;}}endnest`}end`\",{\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"TemplateLiteral\",\n        expressions: [\n          {\n            type: \"ObjectExpression\",\n            properties: [\n              {\n                type: \"Property\",\n                method: false,\n                shorthand: false,\n                computed: false,\n                key: {\n                  type: \"Identifier\",\n                  name: \"x\"\n                },\n                value: {\n                  type: \"ObjectExpression\",\n                  properties: [\n                    {\n                      type: \"Property\",\n                      method: false,\n                      shorthand: false,\n                      computed: false,\n                      key: {\n                        type: \"Identifier\",\n                        name: \"y\"\n                      },\n                      value: {\n                        type: \"Literal\",\n                        value: 10,\n                        raw: \"10\"\n                      },\n                      kind: \"init\"\n                    }\n                  ]\n                },\n                kind: \"init\"\n              }\n            ]\n          },\n          {\n            type: \"TemplateLiteral\",\n            expressions: [\n              {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                generator: false,\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ReturnStatement\",\n                      argument: {\n                        type: \"Literal\",\n                        value: 1,\n                        raw: \"1\"\n                      }\n                    }\n                  ]\n                },\n                expression: false\n              }\n            ],\n            quasis: [\n              {\n                type: \"TemplateElement\",\n                value: {\n                  cooked: \"nested\",\n                  raw: \"nested\"\n                },\n                tail: false\n              },\n              {\n                type: \"TemplateElement\",\n                value: {\n                  cooked: \"endnest\",\n                  raw: \"endnest\"\n                },\n                tail: true\n              }\n            ]\n          }\n        ],\n        quasis: [\n          {\n            type: \"TemplateElement\",\n            value: {\n              cooked: \"outer\",\n              raw: \"outer\"\n            },\n            tail: false\n          },\n          {\n            type: \"TemplateElement\",\n            value: {\n              cooked: \"bar\",\n              raw: \"bar\"\n            },\n            tail: false\n          },\n          {\n            type: \"TemplateElement\",\n            value: {\n              cooked: \"end\",\n              raw: \"end\"\n            },\n            tail: true\n          }\n        ]\n      }\n    }\n  ]\n}, {\n  ecmaVersion: 6\n});\n\ntest(\"foo`\\n\\\\x\\n$\\n`;\", {\n  type: \"Program\",\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 4,\n      column: 2\n    }\n  },\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 4,\n          column: 2\n        }\n      },\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 4,\n            column: 1\n          }\n        },\n        tag: {\n          type: \"Identifier\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          },\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          loc: {\n            start: {\n              line: 1,\n              column: 3\n            },\n            end: {\n              line: 4,\n              column: 1\n            }\n          },\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 4\n                },\n                end: {\n                  line: 4,\n                  column: 0\n                }\n              },\n              value: {\n                raw: \"\\n\\\\x\\n$\\n\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {\n  ecmaVersion: 10,\n  locations: true\n});\n\n\n// ES6: Switch Case Declaration\n\ntest(\"switch (answer) { case 42: let t = 42; break; }\", {\n  type: \"Program\",\n  body: [{\n    type: \"SwitchStatement\",\n    discriminant: {\n      type: \"Identifier\",\n      name: \"answer\",\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 14}\n      }\n    },\n    cases: [{\n      type: \"SwitchCase\",\n      test: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 23},\n          end: {line: 1, column: 25}\n        }\n      },\n      consequent: [\n        {\n          type: \"VariableDeclaration\",\n          declarations: [{\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"t\",\n              loc: {\n                start: {line: 1, column: 31},\n                end: {line: 1, column: 32}\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 42,\n              raw: \"42\",\n              loc: {\n                start: {line: 1, column: 35},\n                end: {line: 1, column: 37}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 31},\n              end: {line: 1, column: 37}\n            }\n          }],\n          kind: \"let\",\n          loc: {\n            start: {line: 1, column: 27},\n            end: {line: 1, column: 38}\n          }\n        },\n        {\n          type: \"BreakStatement\",\n          label: null,\n          loc: {\n            start: {line: 1, column: 39},\n            end: {line: 1, column: 45}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 18},\n        end: {line: 1, column: 45}\n      }\n    }],\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 47}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 47}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6: Arrow Function\n\ntest(\"() => \\\"test\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [],\n      body: {\n        type: \"Literal\",\n        value: \"test\",\n        raw: \"\\\"test\\\"\",\n        loc: {\n          start: {line: 1, column: 6},\n          end: {line: 1, column: 12}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 12}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"e => \\\"test\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"e\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: \"test\",\n        raw: \"\\\"test\\\"\",\n        loc: {\n          start: {line: 1, column: 5},\n          end: {line: 1, column: 11}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 11}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 11}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 11}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(e) => \\\"test\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"e\",\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 2}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: \"test\",\n        raw: \"\\\"test\\\"\",\n        loc: {\n          start: {line: 1, column: 7},\n          end: {line: 1, column: 13}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 13}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 13}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(a, b) => \\\"test\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 2}\n          }\n        },\n        {\n          type: \"Identifier\",\n          name: \"b\",\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 5}\n          }\n        }\n      ],\n      body: {\n        type: \"Literal\",\n        value: \"test\",\n        raw: \"\\\"test\\\"\",\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 16}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 16}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 16}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 16}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"e => { 42; }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"e\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: 42,\n            raw: \"42\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 9}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 10}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 5},\n          end: {line: 1, column: 12}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 12}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"e => ({ property: 42 })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"e\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      }],\n      body: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"property\",\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 16}\n            }\n          },\n          value: {\n            type: \"Literal\",\n            value: 42,\n            raw: \"42\",\n            loc: {\n              start: {line: 1, column: 18},\n              end: {line: 1, column: 20}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 8},\n            end: {line: 1, column: 20}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 6},\n          end: {line: 1, column: 22}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 23}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 23}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 23}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"e => { label: 42 }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"e\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"LabeledStatement\",\n          label: {\n            type: \"Identifier\",\n            name: \"label\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 12}\n            }\n          },\n          body: {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Literal\",\n              value: 42,\n              raw: \"42\",\n              loc: {\n                start: {line: 1, column: 14},\n                end: {line: 1, column: 16}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 16}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 16}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 5},\n          end: {line: 1, column: 18}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(a, b) => { 42; }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 2}\n          }\n        },\n        {\n          type: \"Identifier\",\n          name: \"b\",\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 5}\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: 42,\n            raw: \"42\",\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 14}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 15}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 17}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"([a, , b]) => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 2},\n              end: {line: 1, column: 3}\n            }\n          },\n          null,\n          {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 9}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 14},\n          end: {line: 1, column: 16}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 16}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 16}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 16}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"([a.a]) => 42\", \"Assigning to rvalue (1:2)\", {ecmaVersion: 6});\ntestFail(\"() => {}()\", \"Unexpected token (1:8)\", {ecmaVersion: 6})\ntestFail(\"(a) => {}()\", \"Unexpected token (1:9)\", {ecmaVersion: 6})\ntestFail(\"a => {}()\", \"Unexpected token (1:7)\", {ecmaVersion: 6})\ntestFail(\"console.log(typeof () => {});\", \"Unexpected token (1:20)\", {ecmaVersion: 6})\n\ntest(\"(() => {})()\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n        type: \"CallExpression\",\n        start: 0,\n        end: 12,\n        callee: {\n          type: \"ArrowFunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            start: 7,\n            end: 9,\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 9}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 9}\n          }\n        }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"((() => {}))()\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n        type: \"CallExpression\",\n        start: 0,\n        end: 14,\n        callee: {\n          type: \"ArrowFunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            start: 8,\n            end: 10,\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 10}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 2},\n            end: {line: 1, column: 10}\n          }\n        }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n\ntest(\"(x=1) => x * x\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"AssignmentPattern\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 2}\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 1,\n          raw: \"1\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 4}\n        }\n      }],\n      body: {\n        type: \"BinaryExpression\",\n        operator: \"*\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 10}\n          }\n        },\n        right: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 14}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 14}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 14}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"eval => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"eval\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 4}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 8},\n          end: {line: 1, column: 10}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 10}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 10}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 10}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"arguments => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"arguments\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 9}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 15}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 15}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 15}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 15}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(a) => 00\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"a\",\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 2}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: 0,\n        raw: \"00\",\n        loc: {\n          start: {line: 1, column: 7},\n          end: {line: 1, column: 9}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 9}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 9}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 9}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(eval, a) => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 5}\n          }\n        },\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 8}\n          }\n        }\n      ],\n      body: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 15}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 15}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 15}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 15}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(eval = 10) => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"AssignmentPattern\",\n        left: {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 5}\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 10,\n          raw: \"10\",\n          loc: {\n            start: {line: 1, column: 8},\n            end: {line: 1, column: 10}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 10}\n        }\n      }],\n      body: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 15},\n          end: {line: 1, column: 17}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(eval, a = 10) => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 5}\n          }\n        },\n        {\n          type: \"AssignmentPattern\",\n          left: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          right: {\n            type: \"Literal\",\n            value: 10,\n            raw: \"10\",\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 13}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 13}\n          }\n        }\n      ],\n      body: {\n        type: \"Literal\",\n        value: 42,\n        raw: \"42\",\n        loc: {\n          start: {line: 1, column: 18},\n          end: {line: 1, column: 20}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 20}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 20}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 20}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(x => x)\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 2}\n        }\n      }],\n      body: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 6},\n          end: {line: 1, column: 7}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 7}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 8}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 8}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x => y => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      }],\n      body: {\n        type: \"ArrowFunctionExpression\",\n        id: null,\n        params: [{\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 6}\n          }\n        }],\n        body: {\n          type: \"Literal\",\n          value: 42,\n          raw: \"42\",\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 12}\n          }\n        },\n        generator: false,\n        expression: true,\n        loc: {\n          start: {line: 1, column: 5},\n          end: {line: 1, column: 12}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 12}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(x) => ((y, z) => (x, y, z))\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 2}\n        }\n      }],\n      body: {\n        type: \"ArrowFunctionExpression\",\n        id: null,\n        params: [\n          {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 10}\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 13}\n            }\n          }\n        ],\n        body: {\n          type: \"SequenceExpression\",\n          expressions: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {line: 1, column: 19},\n                end: {line: 1, column: 20}\n              }\n            },\n            {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {line: 1, column: 22},\n                end: {line: 1, column: 23}\n              }\n            },\n            {\n              type: \"Identifier\",\n              name: \"z\",\n              loc: {\n                start: {line: 1, column: 25},\n                end: {line: 1, column: 26}\n              }\n            }\n          ],\n          loc: {\n            start: {line: 1, column: 19},\n            end: {line: 1, column: 26}\n          }\n        },\n        generator: false,\n        expression: true,\n        loc: {\n          start: {line: 1, column: 8},\n          end: {line: 1, column: 27}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 28}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 28}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 28}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"foo(() => {})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"CallExpression\",\n      callee: {\n        type: \"Identifier\",\n        name: \"foo\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 3}\n        }\n      },\n      arguments: [{\n        type: \"ArrowFunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 12}\n          }\n        },\n        generator: false,\n        expression: false,\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 12}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 13}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 13}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"foo((x, y) => {})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"CallExpression\",\n      callee: {\n        type: \"Identifier\",\n        name: \"foo\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 3}\n        }\n      },\n      arguments: [{\n        type: \"ArrowFunctionExpression\",\n        id: null,\n        params: [\n          {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 9}\n            }\n          }\n        ],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {line: 1, column: 14},\n            end: {line: 1, column: 16}\n          }\n        },\n        generator: false,\n        expression: false,\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 16}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"() => {} ? 1 : 0\", \"Unexpected token (1:9)\", {ecmaVersion: 6})\n\n// ES6: Method Definition\n\ntest(\"x = { method() { } }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"method\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 12}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 15},\n                end: {line: 1, column: 18}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 18}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 18}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 20}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 20}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 20}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 20}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { method(test) { } }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"method\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 12}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"Identifier\",\n              name: \"test\",\n              loc: {\n                start: {line: 1, column: 13},\n                end: {line: 1, column: 17}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 19},\n                end: {line: 1, column: 22}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 22}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 22}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 24}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 24}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 24}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 24}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { 'method'() { } }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Literal\",\n            value: \"method\",\n            raw: \"'method'\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 14}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 17},\n                end: {line: 1, column: 20}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 20}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 20}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 22}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 22}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { get() { } }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"get\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 9}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 12},\n                end: {line: 1, column: 15}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 15}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 15}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 17}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { set() { } }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"set\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 9}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 12},\n                end: {line: 1, column: 15}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 15}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 15}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 17}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { method() { super.a(); } }\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line:1, column: 31}\n  },\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 31}\n      },\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 31}\n        },\n        properties: [{\n          type: \"Property\",\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 29}\n          },\n          method: true,\n          shorthand: false,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"method\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"FunctionExpression\",\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 29}\n            },\n            id: null,\n            expression: false,\n            generator: false,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              loc: {\n                start: {line: 1, column: 15},\n                end: {line: 1, column: 29}\n              },\n              body: [{\n                type: \"ExpressionStatement\",\n                loc: {\n                  start: {line: 1, column: 17},\n                  end: {line: 1, column: 27},\n                },\n                expression: {\n                  type: \"CallExpression\",\n                  loc: {\n                    start: {line: 1, column: 17},\n                    end: {line: 1, column: 26}\n                  },\n                  callee: {\n                    type: \"MemberExpression\",\n                    loc: {\n                      start: {line: 1, column: 17},\n                      end: {line: 1, column: 24}\n                    },\n                    object: {\n                      type: \"Super\",\n                      loc: {\n                        start: {line: 1, column: 17},\n                        end: {line: 1, column: 22}\n                      }\n                    },\n                    property: {\n                      type: \"Identifier\",\n                      loc: {\n                        start: {line: 1, column: 23},\n                        end: {line: 1, column: 24}\n                      },\n                      name: \"a\"\n                    },\n                    computed: false\n                  },\n                  arguments: []\n                }\n              }]\n            }\n          }\n        }]\n      }\n    }\n  }],\n  sourceType: \"script\"\n}, {\n  ecmaVersion: 6,\n  locations: true\n});\n\ntestFail(\"x = { method() { super(); } }\", \"super() call outside constructor of a subclass (1:17)\", {ecmaVersion: 6});\n\n// Harmony: Object Literal Property Value Shorthand\n\ntest(\"x = { y, z }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [\n          {\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {line: 1, column: 6},\n                end: {line: 1, column: 7}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {line: 1, column: 6},\n                end: {line: 1, column: 7}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: true,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 7}\n            }\n          },\n          {\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"z\",\n              loc: {\n                start: {line: 1, column: 9},\n                end: {line: 1, column: 10}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"z\",\n              loc: {\n                start: {line: 1, column: 9},\n                end: {line: 1, column: 10}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: true,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 10}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 12}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 12}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// Harmony: Destructuring\n\ntest(\"[a, b] = [b, a]\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 1},\n              end: {line: 1, column: 2}\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 4},\n              end: {line: 1, column: 5}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 6}\n        }\n      },\n      right: {\n        type: \"ArrayExpression\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 10},\n              end: {line: 1, column: 11}\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 14}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 15}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 15}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 15}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 15}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"[a.r] = b\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 9,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 9,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 9,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"ArrayPattern\",\n          \"start\": 0,\n          \"end\": 5,\n          \"elements\": [\n            {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 4,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 2,\n                \"name\": \"a\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 3,\n                \"end\": 4,\n                \"name\": \"r\"\n              },\n              \"computed\": false\n            }\n          ]\n        },\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 8,\n          \"end\": 9,\n          \"name\": \"b\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"let [a,,b] = c\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 14,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 14,\n          \"id\": {\n            \"type\": \"ArrayPattern\",\n            \"start\": 4,\n            \"end\": 10,\n            \"elements\": [\n              {\n                \"type\": \"Identifier\",\n                \"start\": 5,\n                \"end\": 6,\n                \"name\": \"a\"\n              },\n              null,\n              {\n                \"type\": \"Identifier\",\n                \"start\": 8,\n                \"end\": 9,\n                \"name\": \"b\"\n              }\n            ]\n          },\n          \"init\": {\n            \"type\": \"Identifier\",\n            \"start\": 13,\n            \"end\": 14,\n            \"name\": \"c\"\n          }\n        }\n      ],\n      \"kind\": \"let\"\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"({ responseText: text } = res)\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"responseText\",\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 15}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"text\",\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 21}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 21}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 23}\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"res\",\n        loc: {\n          start: {line: 1, column: 26},\n          end: {line: 1, column: 29}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 29}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 30}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 30}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"const {a} = {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 8}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 6},\n          end: {line: 1, column: 9}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [],\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 14}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 14}\n      }\n    }],\n    kind: \"const\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"const [a] = []\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 8}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 6},\n          end: {line: 1, column: 9}\n        }\n      },\n      init: {\n        type: \"ArrayExpression\",\n        elements: [],\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 14}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 14}\n      }\n    }],\n    kind: \"const\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"let {a} = {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 6}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 7}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [],\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 12}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 12}\n      }\n    }],\n    kind: \"let\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"let [a] = []\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 6}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 7}\n        }\n      },\n      init: {\n        type: \"ArrayExpression\",\n        elements: [],\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 12}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 12}\n      }\n    }],\n    kind: \"let\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var {a} = {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 6}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 7}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [],\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 12}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 12}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var [a] = []\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 6}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 7}\n        }\n      },\n      init: {\n        type: \"ArrayExpression\",\n        elements: [],\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 12}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 12}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"const {a:b} = {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 10}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 10}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 6},\n          end: {line: 1, column: 11}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [],\n        loc: {\n          start: {line: 1, column: 14},\n          end: {line: 1, column: 16}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 16}\n      }\n    }],\n    kind: \"const\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 16}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 16}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"let {a:b} = {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 8}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 9}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [],\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 14}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 14}\n      }\n    }],\n    kind: \"let\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var {a:b} = {}\", {\n  type: \"Program\",\n  sourceType: \"script\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 8}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 9}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [],\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 14}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 14}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// Harmony: Modules\n\ntest(\"export var document\", {\n  type: \"Program\",\n  sourceType: \"module\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"document\",\n          loc: {\n            start: {line: 1, column: 11},\n            end: {line: 1, column: 19}\n          }\n        },\n        init: null,\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 19}\n        }\n      }],\n      kind: \"var\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 19}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 19}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 19}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export var document = { }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"document\",\n          loc: {\n            start: {line: 1, column: 11},\n            end: {line: 1, column: 19}\n          }\n        },\n        init: {\n          type: \"ObjectExpression\",\n          properties: [],\n          loc: {\n            start: {line: 1, column: 22},\n            end: {line: 1, column: 25}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 25}\n        }\n      }],\n      kind: \"var\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 25}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 25}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 25}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"export var await\", \"Cannot use keyword 'await' outside an async function (1:11)\", { ecmaVersion: 6, sourceType: \"module\" })\n\ntest(\"export let document\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"document\",\n          loc: {\n            start: {line: 1, column: 11},\n            end: {line: 1, column: 19}\n          }\n        },\n        init: null,\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 19}\n        }\n      }],\n      kind: \"let\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 19}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 19}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 19}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export let document = { }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"document\",\n          loc: {\n            start: {line: 1, column: 11},\n            end: {line: 1, column: 19}\n          }\n        },\n        init: {\n          type: \"ObjectExpression\",\n          properties: [],\n          loc: {\n            start: {line: 1, column: 22},\n            end: {line: 1, column: 25}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 25}\n        }\n      }],\n      kind: \"let\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 25}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 25}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 25}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export const document = { }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"document\",\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 21}\n          }\n        },\n        init: {\n          type: \"ObjectExpression\",\n          properties: [],\n          loc: {\n            start: {line: 1, column: 24},\n            end: {line: 1, column: 27}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 27}\n        }\n      }],\n      kind: \"const\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 27}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export function parse() { }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"parse\",\n        loc: {\n          start: {line: 1, column: 16},\n          end: {line: 1, column: 21}\n        }\n      },\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 24},\n          end: {line: 1, column: 27}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 27}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export class Class {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: {\n      type: \"ClassDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"Class\",\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 18}\n        }\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 19},\n          end: {line: 1, column: 21}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 21}\n      }\n    },\n    specifiers: [],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 21}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 21}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"export new Foo();\", \"Unexpected token (1:7)\", {ecmaVersion: 6, sourceType: \"module\"});\ntestFail(\"export typeof foo;\", \"Unexpected token (1:7)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntest(\"export default 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportDefaultDeclaration\",\n    declaration: {\n      type: \"Literal\",\n      value: 42,\n      raw: \"42\",\n      loc: {\n        start: {line: 1, column: 15},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export default function () {}\", {\n  type: \"Program\",\n  range: [0, 29],\n  body: [{\n    type: \"ExportDefaultDeclaration\",\n    range: [0, 29],\n    declaration: {\n      type: \"FunctionDeclaration\",\n      range: [15, 29],\n      id: null,\n      generator: false,\n      expression: false,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        range: [27, 29],\n        body: []\n      }\n    }\n  }]\n}, {ecmaVersion: 6, sourceType: \"module\", ranges: true});\n\ntest(\"export default function f() {}\", {\n  type: \"Program\",\n  range: [0, 30],\n  body: [{\n    type: \"ExportDefaultDeclaration\",\n    range: [0, 30],\n    declaration: {\n      type: \"FunctionDeclaration\",\n      range: [15, 30],\n      id: {\n        type: \"Identifier\",\n        range: [24, 25],\n        name: \"f\"\n      },\n      generator: false,\n      expression: false,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        range: [28, 30],\n        body: []\n      }\n    }\n  }]\n}, {ecmaVersion: 6, sourceType: \"module\", ranges: true});\n\ntest(\"export default class {}\", {\n  type: \"Program\",\n  range: [0, 23],\n  body: [{\n    type: \"ExportDefaultDeclaration\",\n    range: [0, 23],\n    declaration: {\n      type: \"ClassDeclaration\",\n      range: [15, 23],\n      id: null,\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        range: [21, 23],\n        body: []\n      }\n    }\n  }]\n}, {ecmaVersion: 6, sourceType: \"module\", ranges: true});\n\ntest(\"export default class A {}\", {\n  type: \"Program\",\n  range: [0, 25],\n  body: [{\n    type: \"ExportDefaultDeclaration\",\n    range: [0, 25],\n    declaration: {\n      type: \"ClassDeclaration\",\n      range: [15, 25],\n      id: {\n        type: \"Identifier\",\n        range: [21, 22],\n        name: \"A\"\n      },\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        range: [23, 25],\n        body: []\n      }\n    }\n  }]\n}, {ecmaVersion: 6, sourceType: \"module\", ranges: true});\n\ntest(\"export default (class{});\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExportDefaultDeclaration\",\n      \"declaration\": {\n        \"type\": \"ClassExpression\",\n        \"id\": null,\n        \"superClass\": null,\n        \"body\": {\n          \"type\": \"ClassBody\",\n          \"body\": []\n        }\n      }\n    }\n  ]\n}, {ecmaVersion: 6, sourceType: \"module\"})\n\ntestFail(\"export *\", \"Unexpected token (1:8)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntest(\"export * from \\\"crypto\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportAllDeclaration\",\n    source: {\n      type: \"Literal\",\n      value: \"crypto\",\n      raw: \"\\\"crypto\\\"\",\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 22}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export { encrypt }\\nvar encrypt\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: null,\n    specifiers: [{\n      type: \"ExportSpecifier\",\n      exported: {\n        type: \"Identifier\",\n        name: \"encrypt\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      },\n      local: {\n        type: \"Identifier\",\n        name: \"encrypt\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 16}\n      }\n    }],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }, {\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"encrypt\",\n        loc: {\n          start: {line: 2, column: 4},\n          end: {line: 2, column: 11}\n        }\n      },\n      init: null,\n      loc: {\n        start: {line: 2, column: 4},\n        end: {line: 2, column: 11}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 2, column: 0},\n      end: {line: 2, column: 11}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 2, column: 11}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"function encrypt() {} let decrypt; export { encrypt, decrypt }\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"encrypt\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 16}\n      }\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 19},\n        end: {line: 1, column: 21}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 21}\n    }\n  }, {\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"decrypt\",\n        loc: {\n          start: {line: 1, column: 26},\n          end: {line: 1, column: 33}\n        }\n      },\n      init: null,\n      loc: {\n        start: {line: 1, column: 26},\n        end: {line: 1, column: 33}\n      }\n    }],\n    kind: \"let\",\n    loc: {\n      start: {line: 1, column: 22},\n      end: {line: 1, column: 34}\n    }\n  }, {\n    type: \"ExportNamedDeclaration\",\n    declaration: null,\n    specifiers: [\n      {\n        type: \"ExportSpecifier\",\n        exported: {\n          type: \"Identifier\",\n          name: \"encrypt\",\n          loc: {\n            start: {line: 1, column: 44},\n            end: {line: 1, column: 51}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"encrypt\",\n          loc: {\n            start: {line: 1, column: 44},\n            end: {line: 1, column: 51}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 44},\n          end: {line: 1, column: 51}\n        }\n      },\n      {\n        type: \"ExportSpecifier\",\n        exported: {\n          type: \"Identifier\",\n          name: \"decrypt\",\n          loc: {\n            start: {line: 1, column: 53},\n            end: {line: 1, column: 60}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"decrypt\",\n          loc: {\n            start: {line: 1, column: 53},\n            end: {line: 1, column: 60}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 53},\n          end: {line: 1, column: 60}\n        }\n      }\n    ],\n    source: null,\n    loc: {\n      start: {line: 1, column: 35},\n      end: {line: 1, column: 62}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 62}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"export { encrypt }\", \"Export 'encrypt' is not defined (1:9)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntestFail(\"class Test {}; export default class Test {}\", \"Identifier 'Test' has already been declared (1:36)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntest(\"export default class Test {}; export { Test }\", {}, {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntestFail(\"export { encrypt, encrypt }\", \"Duplicate export 'encrypt' (1:18)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntestFail(\"export { encrypt }; export { encrypt }\", \"Duplicate export 'encrypt' (1:29)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntestFail(\"export { decrypt as encrypt }; function encrypt() {}\", \"Export 'decrypt' is not defined (1:9)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntestFail(\"export { encrypt }; if (true) function encrypt() {}\", \"Unexpected token (1:30)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntestFail(\"{ function encrypt() {} } export { encrypt }\", \"Export 'encrypt' is not defined (1:35)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntest(\"{ var encrypt } export { encrypt }\", {}, {\n  ecmaVersion: 6,\n  sourceType: \"module\"\n});\n\ntest(\"export { encrypt as default }; function* encrypt() {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: null,\n    specifiers: [{\n      type: \"ExportSpecifier\",\n      exported: {\n        type: \"Identifier\",\n        name: \"default\",\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 27}\n        }\n      },\n      local: {\n        type: \"Identifier\",\n        name: \"encrypt\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 27}\n      }\n    }],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 30}\n    }\n  }, {\n    type: \"FunctionDeclaration\",\n    generator: true,\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 51},\n        end: {line: 1, column: 53}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 31},\n      end: {line: 1, column: 53}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 53}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  locations: true\n});\n\ntest(\"export { encrypt, decrypt as dec }; let encrypt, decrypt\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: null,\n    specifiers: [\n      {\n        type: \"ExportSpecifier\",\n        exported: {\n          type: \"Identifier\",\n          name: \"encrypt\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 16}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"encrypt\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 16}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      },\n      {\n        type: \"ExportSpecifier\",\n        exported: {\n          type: \"Identifier\",\n          name: \"dec\",\n          loc: {\n            start: {line: 1, column: 29},\n            end: {line: 1, column: 32}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"decrypt\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 25}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 18},\n          end: {line: 1, column: 32}\n        }\n      }\n    ],\n    source: null,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 35}\n    }\n  }, {\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"encrypt\",\n        loc: {\n          start: {line: 1, column: 40},\n          end: {line: 1, column: 47}\n        }\n      },\n      init: null,\n      loc: {\n        start: {line: 1, column: 40},\n        end: {line: 1, column: 47}\n      }\n    }, {\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"decrypt\",\n        loc: {\n          start: {line: 1, column: 49},\n          end: {line: 1, column: 56}\n        }\n      },\n      init: null,\n      loc: {\n        start: {line: 1, column: 49},\n        end: {line: 1, column: 56}\n      }\n    }],\n    kind: \"let\",\n    loc: {\n      start: {line: 1, column: 36},\n      end: {line: 1, column: 56}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 56}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"export { default } from \\\"other\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExportNamedDeclaration\",\n    declaration: null,\n    specifiers: [\n      {\n        type: \"ExportSpecifier\",\n        exported: {\n          type: \"Identifier\",\n          name: \"default\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 16}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"default\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 16}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      }\n    ],\n    source: {\n      type: \"Literal\",\n      loc: {\n        start: {\n          line: 1,\n          column: 24\n        },\n        end: {\n          line: 1,\n          column: 31\n        }\n      },\n      value: \"other\",\n      raw: \"\\\"other\\\"\"\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 31}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 31}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"export { default }\", \"Unexpected keyword 'default' (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"export { if }\", \"Unexpected keyword 'if' (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"export { default as foo }\", \"Unexpected keyword 'default' (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"export { if as foo }\", \"Unexpected keyword 'if' (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\n\ntest(\"import \\\"jquery\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ImportDeclaration\",\n    specifiers: [],\n    source: {\n      type: \"Literal\",\n      value: \"jquery\",\n      raw: \"\\\"jquery\\\"\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 15}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 15}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 15}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"import $ from \\\"jquery\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ImportDeclaration\",\n    specifiers: [{\n      type: \"ImportDefaultSpecifier\",\n      local: {\n        type: \"Identifier\",\n        name: \"$\",\n        loc: {\n          start: {line: 1, column: 7},\n          end: {line: 1, column: 8}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 8}\n      }\n    }],\n    source: {\n      type: \"Literal\",\n      value: \"jquery\",\n      raw: \"\\\"jquery\\\"\",\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 22}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"import { encrypt, decrypt } from \\\"crypto\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ImportDeclaration\",\n    specifiers: [\n      {\n        type: \"ImportSpecifier\",\n        imported: {\n          type: \"Identifier\",\n          name: \"encrypt\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 16}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"encrypt\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 16}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      },\n      {\n        type: \"ImportSpecifier\",\n        imported: {\n          type: \"Identifier\",\n          name: \"decrypt\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 25}\n          }\n        },\n        local: {\n          type: \"Identifier\",\n          name: \"decrypt\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 25}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 18},\n          end: {line: 1, column: 25}\n        }\n      }\n    ],\n    source: {\n      type: \"Literal\",\n      value: \"crypto\",\n      raw: \"\\\"crypto\\\"\",\n      loc: {\n        start: {line: 1, column: 33},\n        end: {line: 1, column: 41}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 41}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 41}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"import { encrypt as enc } from \\\"crypto\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ImportDeclaration\",\n    specifiers: [{\n      type: \"ImportSpecifier\",\n      imported: {\n        type: \"Identifier\",\n        name: \"encrypt\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 16}\n        }\n      },\n      local: {\n        type: \"Identifier\",\n        name: \"enc\",\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 23}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 23}\n      }\n    }],\n    source: {\n      type: \"Literal\",\n      value: \"crypto\",\n      raw: \"\\\"crypto\\\"\",\n      loc: {\n        start: {line: 1, column: 31},\n        end: {line: 1, column: 39}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 39}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 39}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"import crypto, { decrypt, encrypt as enc } from \\\"crypto\\\"\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 56}\n  },\n  body: [{\n    type: \"ImportDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 56}\n    },\n    specifiers: [\n      {\n        type: \"ImportDefaultSpecifier\",\n        loc: {\n          start: {line: 1, column: 7},\n          end: {line: 1, column: 13}\n        },\n        local: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 13}\n          },\n          name: \"crypto\"\n        }\n      },\n      {\n        type: \"ImportSpecifier\",\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 24}\n        },\n        imported: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 24}\n          },\n          name: \"decrypt\"\n        },\n        local: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 24}\n          },\n          name: \"decrypt\"\n        }\n      },\n      {\n        type: \"ImportSpecifier\",\n        loc: {\n          start: {line: 1, column: 26},\n          end: {line: 1, column: 40}\n        },\n        imported: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 26},\n            end: {line: 1, column: 33}\n          },\n          name: \"encrypt\"\n        },\n        local: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 37},\n            end: {line: 1, column: 40}\n          },\n          name: \"enc\"\n        }\n      }\n    ],\n    source: {\n      type: \"Literal\",\n      loc: {\n        start: {line: 1, column: 48},\n        end: {line: 1, column: 56}\n      },\n      value: \"crypto\",\n      raw: \"\\\"crypto\\\"\"\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"import default from \\\"foo\\\"\", \"Unexpected token (1:7)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntest(\"import { null as nil } from \\\"bar\\\"\", {\n  type: \"Program\",\n  body: [{\n    type: \"ImportDeclaration\",\n    specifiers: [{\n      type: \"ImportSpecifier\",\n      imported: {\n        type: \"Identifier\",\n        name: \"null\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 13}\n        }\n      },\n      local: {\n        type: \"Identifier\",\n        name: \"nil\",\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 20}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 20}\n      }\n    }],\n    source: {\n      type: \"Literal\",\n      value: \"bar\",\n      raw: \"\\\"bar\\\"\",\n      loc: {\n        start: {line: 1, column: 28},\n        end: {line: 1, column: 33}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"import * as crypto from \\\"crypto\\\"\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 32}\n  },\n  body: [{\n    type: \"ImportDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 32}\n    },\n    specifiers: [{\n      type: \"ImportNamespaceSpecifier\",\n      loc: {\n        start: {line: 1, column: 7},\n        end: {line: 1, column: 18}\n      },\n      local: {\n        type: \"Identifier\",\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 18}\n        },\n        name: \"crypto\"\n      }\n    }],\n    source: {\n      type: \"Literal\",\n      loc: {\n        start: {line: 1, column: 24},\n        end: {line: 1, column: 32}\n      },\n      value: \"crypto\",\n      raw: \"\\\"crypto\\\"\"\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"import { class } from 'foo'\", \"Unexpected keyword 'class' (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"import { class, var } from 'foo'\", \"Unexpected keyword 'class' (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"import { a as class } from 'foo'\", \"Unexpected keyword 'class' (1:14)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"import * as class from 'foo'\", \"Unexpected keyword 'class' (1:12)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"import { enum } from 'foo'\", \"The keyword 'enum' is reserved (1:9)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"import { a as enum } from 'foo'\", \"The keyword 'enum' is reserved (1:14)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"import * as enum from 'foo'\", \"The keyword 'enum' is reserved (1:12)\", {ecmaVersion: 6, sourceType: \"module\" });\ntestFail(\"() => { class a extends b { static get prototype(){} } }\", \"Classes may not have a static property named prototype (1:39)\", {ecmaVersion: 6});\ntestFail(\"class a extends b { static set prototype(){} }\", \"Classes may not have a static property named prototype (1:31)\", {ecmaVersion: 6});\ntestFail(\"class a { static prototype(){} }\", \"Classes may not have a static property named prototype (1:17)\", {ecmaVersion: 6});\n\n\n// Harmony: Yield Expression\n\ntest(\"(function* () { yield v })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: null,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"YieldExpression\",\n            argument: {\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 22},\n                end: {line: 1, column: 23}\n              }\n            },\n            delegate: false,\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 23}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 23}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 14},\n          end: {line: 1, column: 25}\n        }\n      },\n      generator: true,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 25}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 26}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 26}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"(function* () { yield\\nv })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: null,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"YieldExpression\",\n              argument: null,\n              delegate: false,\n              loc: {\n                start: {line: 1, column: 16},\n                end: {line: 1, column: 21}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 21}\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 2, column: 0},\n                end: {line: 2, column: 1}\n              }\n            },\n            loc: {\n              start: {line: 2, column: 0},\n              end: {line: 2, column: 1}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 14},\n          end: {line: 2, column: 3}\n        }\n      },\n      generator: true,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 2, column: 3}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 2, column: 4}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 2, column: 4}\n  }\n}, {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  ranges: true,\n  locations: true\n});\n\ntest(\"(function* () { yield *v })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: null,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"YieldExpression\",\n            argument: {\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 23},\n                end: {line: 1, column: 24}\n              }\n            },\n            delegate: true,\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 24}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 24}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 14},\n          end: {line: 1, column: 26}\n        }\n      },\n      generator: true,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 26}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function* test () { yield *v }\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"test\",\n      loc: {\n        start: {line: 1, column: 10},\n        end: {line: 1, column: 14}\n      }\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      body: [{\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"YieldExpression\",\n          argument: {\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 27},\n              end: {line: 1, column: 28}\n            }\n          },\n          delegate: true,\n          loc: {\n            start: {line: 1, column: 20},\n            end: {line: 1, column: 28}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 28}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 18},\n        end: {line: 1, column: 30}\n      }\n    },\n    generator: true,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 30}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 30}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var x = { *test () { yield *v } };\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 5}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"test\",\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 15}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [{\n                type: \"ExpressionStatement\",\n                expression: {\n                  type: \"YieldExpression\",\n                  argument: {\n                    type: \"Identifier\",\n                    name: \"v\",\n                    loc: {\n                      start: {line: 1, column: 28},\n                      end: {line: 1, column: 29}\n                    }\n                  },\n                  delegate: true,\n                  loc: {\n                    start: {line: 1, column: 21},\n                    end: {line: 1, column: 29}\n                  }\n                },\n                loc: {\n                  start: {line: 1, column: 21},\n                  end: {line: 1, column: 29}\n                }\n              }],\n              loc: {\n                start: {line: 1, column: 19},\n                end: {line: 1, column: 31}\n              }\n            },\n            generator: true,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 31}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 31}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 8},\n          end: {line: 1, column: 33}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 33}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 34}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 34}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function* foo() { console.log(yield); }\", {\n  body: [\n    {\n      id: {\n        name: \"foo\",\n        type: \"Identifier\",\n      },\n      generator: true,\n      expression: false,\n      params: [],\n      body: {\n        body: [\n          {\n            expression: {\n              callee: {\n                object: {\n                  name: \"console\",\n                  type: \"Identifier\",\n                },\n                property: {\n                  name: \"log\",\n                  type: \"Identifier\",\n                },\n                computed: false,\n                type: \"MemberExpression\",\n              },\n              arguments: [\n                {\n                  delegate: false,\n                  argument: null,\n                  type: \"YieldExpression\",\n                }\n              ],\n              type: \"CallExpression\",\n            },\n            type: \"ExpressionStatement\",\n          }\n        ],\n        type: \"BlockStatement\",\n      },\n      type: \"FunctionDeclaration\",\n    }\n  ],\n  sourceType: \"script\",\n  type: \"Program\"\n}, {ecmaVersion: 6})\n\ntest(\"function* t() {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"t\",\n      loc: {\n        start: {line: 1, column: 10},\n        end: {line: 1, column: 11}\n      }\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 16}\n      }\n    },\n    generator: true,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 16}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 16}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(function* () { yield yield 10 })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: null,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"YieldExpression\",\n            argument: {\n              type: \"YieldExpression\",\n              argument: {\n                type: \"Literal\",\n                value: 10,\n                raw: \"10\",\n                loc: {\n                  start: {line: 1, column: 28},\n                  end: {line: 1, column: 30}\n                }\n              },\n              delegate: false,\n              loc: {\n                start: {line: 1, column: 22},\n                end: {line: 1, column: 30}\n              }\n            },\n            delegate: false,\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 30}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 30}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 14},\n          end: {line: 1, column: 32}\n        }\n      },\n      generator: true,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 32}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"function *g() { (x = yield) => {} }\", \"Yield expression cannot be a default value (1:21)\", { ecmaVersion: 6 })\ntestFail(\"function *g() { ({x = yield}) => {} }\", \"Yield expression cannot be a default value (1:22)\", { ecmaVersion: 6 })\n\n// Harmony: Iterators\n\ntest(\"for(x of list) process(x);\", {\n  type: \"Program\",\n  body: [{\n    type: \"ForOfStatement\",\n    left: {\n      type: \"Identifier\",\n      name: \"x\",\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 5}\n      }\n    },\n    right: {\n      type: \"Identifier\",\n      name: \"list\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 13}\n      }\n    },\n    body: {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"process\",\n          loc: {\n            start: {line: 1, column: 15},\n            end: {line: 1, column: 22}\n          }\n        },\n        arguments: [{\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 23},\n            end: {line: 1, column: 24}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 15},\n          end: {line: 1, column: 25}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 15},\n        end: {line: 1, column: 26}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 26}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 26}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"for (var x of list) process(x);\", {\n  type: \"Program\",\n  body: [{\n    type: \"ForOfStatement\",\n    left: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 10}\n          }\n        },\n        init: null,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 10}\n        }\n      }],\n      kind: \"var\",\n      loc: {\n        start: {line: 1, column: 5},\n        end: {line: 1, column: 10}\n      }\n    },\n    right: {\n      type: \"Identifier\",\n      name: \"list\",\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 18}\n      }\n    },\n    body: {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"process\",\n          loc: {\n            start: {line: 1, column: 20},\n            end: {line: 1, column: 27}\n          }\n        },\n        arguments: [{\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 28},\n            end: {line: 1, column: 29}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 30}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 20},\n        end: {line: 1, column: 31}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 31}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 31}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"for (let x of list) process(x);\", {\n  type: \"Program\",\n  body: [{\n    type: \"ForOfStatement\",\n    left: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 10}\n          }\n        },\n        init: null,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 10}\n        }\n      }],\n      kind: \"let\",\n      loc: {\n        start: {line: 1, column: 5},\n        end: {line: 1, column: 10}\n      }\n    },\n    right: {\n      type: \"Identifier\",\n      name: \"list\",\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 18}\n      }\n    },\n    body: {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"process\",\n          loc: {\n            start: {line: 1, column: 20},\n            end: {line: 1, column: 27}\n          }\n        },\n        arguments: [{\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 28},\n            end: {line: 1, column: 29}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 30}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 20},\n        end: {line: 1, column: 31}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 31}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 31}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"for (let\\n{x} of list) process(x);\", {\n  type: \"Program\",\n  body: [{\n    type: \"ForOfStatement\",\n    left: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"ObjectPattern\",\n          loc: {\n            start: {line: 2, column: 0},\n            end: {line: 2, column: 3}\n          },\n          properties: [{\n            type: \"Property\",\n            kind: \"init\",\n            key: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {line: 2, column: 1},\n                end: {line: 2, column: 2}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {line: 2, column: 1},\n                end: {line: 2, column: 2}\n              }\n            },\n            loc: {\n              start: {line: 2, column: 1},\n              end: {line: 2, column: 2}\n            }\n          }]\n        },\n        init: null,\n        loc: {\n          start: {line: 2, column: 0},\n          end: {line: 2, column: 3}\n        }\n      }],\n      kind: \"let\",\n      loc: {\n        start: {line: 1, column: 5},\n        end: {line: 2, column: 3}\n      }\n    },\n    right: {\n      type: \"Identifier\",\n      name: \"list\",\n      loc: {\n        start: {line: 2, column: 7},\n        end: {line: 2, column: 11}\n      }\n    },\n    body: {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"process\",\n          loc: {\n            start: {line: 2, column: 13},\n            end: {line: 2, column: 20}\n          }\n        },\n        arguments: [{\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 2, column: 21},\n            end: {line: 2, column: 22}\n          }\n        }],\n        loc: {\n          start: {line: 2, column: 13},\n          end: {line: 2, column: 23}\n        }\n      },\n      loc: {\n        start: {line: 2, column: 13},\n        end: {line: 2, column: 24}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 2, column: 24}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 2, column: 24}\n  }\n}, {\n  ecmaVersion: 6,\n  locations: true\n});\n\n// Harmony: Class (strawman)\n\ntest(\"var A = class extends B {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"A\",\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 5}\n        }\n      },\n      init: {\n        type: \"ClassExpression\",\n        superClass: {\n          type: \"Identifier\",\n          name: \"B\",\n          loc: {\n            start: {line: 1, column: 22},\n            end: {line: 1, column: 23}\n          }\n        },\n        body: {\n          type: \"ClassBody\",\n          body: [],\n          loc: {\n            start: {line: 1, column: 24},\n            end: {line: 1, column: 26}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 8},\n          end: {line: 1, column: 26}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 26}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 26}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 26}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A extends class B extends C {} {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: {\n      type: \"ClassExpression\",\n      id: {\n        type: \"Identifier\",\n        name: \"B\",\n        loc: {\n          start: {line: 1, column: 22},\n          end: {line: 1, column: 23}\n        }\n      },\n      superClass: {\n        type: \"Identifier\",\n        name: \"C\",\n        loc: {\n          start: {line: 1, column: 32},\n          end: {line: 1, column: 33}\n        }\n      },\n      body: {\n        type: \"ClassBody\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 34},\n          end: {line: 1, column: 36}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 16},\n        end: {line: 1, column: 36}\n      }\n    },\n    body: {\n      type: \"ClassBody\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 37},\n        end: {line: 1, column: 39}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 39}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 39}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A {get() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"get\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 12}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 15},\n              end: {line: 1, column: 17}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 17}\n          }\n        },\n        kind: \"method\",\n        static: false,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 17}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static get() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"get\",\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 20}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 23},\n              end: {line: 1, column: 25}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 20},\n            end: {line: 1, column: 25}\n          }\n        },\n        kind: \"method\",\n        static: true,\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 25}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 26}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 26}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 26}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A extends B {get foo() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: {\n      type: \"Identifier\",\n      name: \"B\",\n      loc: {\n        start: {line: 1, column: 16},\n        end: {line: 1, column: 17}\n      }\n    },\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"foo\",\n          loc: {\n            start: {line: 1, column: 23},\n            end: {line: 1, column: 26}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 29},\n              end: {line: 1, column: 31}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 26},\n            end: {line: 1, column: 31}\n          }\n        },\n        kind: \"get\",\n        static: false,\n        loc: {\n          start: {line: 1, column: 19},\n          end: {line: 1, column: 31}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 18},\n        end: {line: 1, column: 32}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 32}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 32}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A extends B { static get foo() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: {\n      type: \"Identifier\",\n      name: \"B\",\n      loc: {\n        start: {line: 1, column: 16},\n        end: {line: 1, column: 17}\n      }\n    },\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"foo\",\n          loc: {\n            start: {line: 1, column: 31},\n            end: {line: 1, column: 34}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 37},\n              end: {line: 1, column: 39}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 34},\n            end: {line: 1, column: 39}\n          }\n        },\n        kind: \"get\",\n        static: true,\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 39}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 18},\n        end: {line: 1, column: 40}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 40}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 40}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A {set a(v) {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 14}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 15},\n              end: {line: 1, column: 16}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 18},\n              end: {line: 1, column: 20}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 14},\n            end: {line: 1, column: 20}\n          }\n        },\n        kind: \"set\",\n        static: false,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 20}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 21}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 21}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 21}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static set a(v) {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 21},\n            end: {line: 1, column: 22}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 23},\n              end: {line: 1, column: 24}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 26},\n              end: {line: 1, column: 28}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 22},\n            end: {line: 1, column: 28}\n          }\n        },\n        kind: \"set\",\n        static: true,\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 28}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 29}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 29}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 29}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A {set(v) {};}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"set\",\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 12}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 14}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 18}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 18}\n          }\n        },\n        kind: \"method\",\n        static: false,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 18}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 20}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 20}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 20}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static set(v) {};}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"set\",\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 20}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 21},\n              end: {line: 1, column: 22}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 24},\n              end: {line: 1, column: 26}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 20},\n            end: {line: 1, column: 26}\n          }\n        },\n        kind: \"method\",\n        static: true,\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 26}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 28}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 28}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 28}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A {*gen(v) { yield v; }}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"gen\",\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 13}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 15}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [{\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"YieldExpression\",\n                argument: {\n                  type: \"Identifier\",\n                  name: \"v\",\n                  loc: {\n                    start: {line: 1, column: 25},\n                    end: {line: 1, column: 26}\n                  }\n                },\n                delegate: false,\n                loc: {\n                  start: {line: 1, column: 19},\n                  end: {line: 1, column: 26}\n                }\n              },\n              loc: {\n                start: {line: 1, column: 19},\n                end: {line: 1, column: 27}\n              }\n            }],\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 29}\n            }\n          },\n          generator: true,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 29}\n          }\n        },\n        kind: \"method\",\n        static: false,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 29}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 30}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 30}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 30}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static *gen(v) { yield v; }}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"gen\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 21}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"Identifier\",\n            name: \"v\",\n            loc: {\n              start: {line: 1, column: 22},\n              end: {line: 1, column: 23}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [{\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"YieldExpression\",\n                argument: {\n                  type: \"Identifier\",\n                  name: \"v\",\n                  loc: {\n                    start: {line: 1, column: 33},\n                    end: {line: 1, column: 34}\n                  }\n                },\n                delegate: false,\n                loc: {\n                  start: {line: 1, column: 27},\n                  end: {line: 1, column: 34}\n                }\n              },\n              loc: {\n                start: {line: 1, column: 27},\n                end: {line: 1, column: 35}\n              }\n            }],\n            loc: {\n              start: {line: 1, column: 25},\n              end: {line: 1, column: 37}\n            }\n          },\n          generator: true,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 21},\n            end: {line: 1, column: 37}\n          }\n        },\n        kind: \"method\",\n        static: true,\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 37}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 38}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 38}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 38}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"(class { *static x() {} })\", \"Unexpected token (1:17)\", {ecmaVersion: 6});\ntest(\"(class { *static() {} })\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 24,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 24,\n      \"expression\": {\n        \"type\": \"ClassExpression\",\n        \"start\": 1,\n        \"end\": 23,\n        \"id\": null,\n        \"superClass\": null,\n        \"body\": {\n          \"type\": \"ClassBody\",\n          \"start\": 7,\n          \"end\": 23,\n          \"body\": [\n            {\n              \"type\": \"MethodDefinition\",\n              \"start\": 9,\n              \"end\": 21,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 10,\n                \"end\": 16,\n                \"name\": \"static\"\n              },\n              \"static\": false,\n              \"kind\": \"method\",\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 16,\n                \"end\": 21,\n                \"id\": null,\n                \"generator\": true,\n                \"expression\": false,\n                \"params\": [],\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 19,\n                  \"end\": 21,\n                  \"body\": []\n                }\n              }\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6});\n\ntestFail(\"(class A {constructor() { super() }})\", \"super() call outside constructor of a subclass (1:26)\", {ecmaVersion: 6});\n\ntest(\"\\\"use strict\\\"; (class A extends B {constructor() { super() }})\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"use strict\",\n        raw: \"\\\"use strict\\\"\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 12}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      }\n    },\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"ClassExpression\",\n        id: {\n          type: \"Identifier\",\n          name: \"A\",\n          loc: {\n            start: {line: 1, column: 21},\n            end: {line: 1, column: 22}\n          }\n        },\n        superClass: {\n          type: \"Identifier\",\n          name: \"B\",\n          loc: {\n            start: {line: 1, column: 31},\n            end: {line: 1, column: 32}\n          }\n        },\n        body: {\n          type: \"ClassBody\",\n          body: [{\n            type: \"MethodDefinition\",\n            computed: false,\n            key: {\n              type: \"Identifier\",\n              name: \"constructor\",\n              loc: {\n                start: {line: 1, column: 34},\n                end: {line: 1, column: 45}\n              }\n            },\n            value: {\n              type: \"FunctionExpression\",\n              id: null,\n              params: [],\n              body: {\n                type: \"BlockStatement\",\n                body: [{\n                  type: \"ExpressionStatement\",\n                  expression: {\n                    type: \"CallExpression\",\n                    callee: {\n                      type: \"Super\",\n                      loc: {\n                        start: {line: 1, column: 50},\n                        end: {line: 1, column: 55}\n                      }\n                    },\n                    arguments: [],\n                    loc: {\n                      start: {line: 1, column: 50},\n                      end: {line: 1, column: 57}\n                    }\n                  },\n                  loc: {\n                    start: {line: 1, column: 50},\n                    end: {line: 1, column: 57}\n                  }\n                }],\n                loc: {\n                  start: {line: 1, column: 48},\n                  end: {line: 1, column: 59}\n                }\n              },\n              generator: false,\n              expression: false,\n              loc: {\n                start: {line: 1, column: 45},\n                end: {line: 1, column: 59}\n              }\n            },\n            kind: \"constructor\",\n            static: false,\n            loc: {\n              start: {line: 1, column: 34},\n              end: {line: 1, column: 59}\n            }\n          }],\n          loc: {\n            start: {line: 1, column: 33},\n            end: {line: 1, column: 60}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 15},\n          end: {line: 1, column: 60}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 61}\n      }\n    }\n  ],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 61}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"(class A extends B { constructor() { function f() { super() } } })\", \"'super' keyword outside a method (1:52)\", {ecmaVersion: 6});\n\ntest(\"(class A extends B { constructor() { (() => { super() }); } })\", {}, {ecmaVersion: 6});\n\ntestFail(\"(class A extends B { method() { super() } })\", \"super() call outside constructor of a subclass (1:32)\", {ecmaVersion: 6});\n\ntest(\"class A {'constructor'() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {type: \"Identifier\", name: \"A\"},\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {type: \"Literal\", value: \"constructor\"},\n        static: false,\n        kind: \"constructor\",\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          generator: false,\n          expression: false,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: []\n          }\n        }\n      }]\n    }\n  }]\n}, {ecmaVersion: 6});\n\ntestFail(\"class A { constructor() {} 'constructor'() {} }\", \"Duplicate constructor in the same class (1:27)\", {ecmaVersion: 6});\n\ntestFail(\"class A { get constructor() {} }\", \"Constructor can't have get/set modifier (1:14)\", {ecmaVersion: 6});\ntest(\"class A { get ['constructor']() {} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 36,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 36,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"A\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 36,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 10,\n            \"end\": 34,\n            \"static\": false,\n            \"computed\": true,\n            \"key\": {\n              \"type\": \"Literal\",\n              \"start\": 15,\n              \"end\": 28,\n              \"value\": \"constructor\",\n              \"raw\": \"'constructor'\"\n            },\n            \"kind\": \"get\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 29,\n              \"end\": 34,\n              \"id\": null,\n              \"params\": [],\n              \"generator\": false,\n              \"expression\": false,\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 32,\n                \"end\": 34,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6});\n\ntestFail(\"class A { *constructor() {} }\", \"Constructor can't be a generator (1:11)\", {ecmaVersion: 6});\n\ntest(\"class A {static foo() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [{\n        type: \"MethodDefinition\",\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          name: \"foo\",\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 19}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 22},\n              end: {line: 1, column: 24}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 19},\n            end: {line: 1, column: 24}\n          }\n        },\n        kind: \"method\",\n        static: true,\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 24}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 25}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 25}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 25}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A {foo() {} static bar() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 12}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 15},\n                end: {line: 1, column: 17}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 17}\n            }\n          },\n          kind: \"method\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 17}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {line: 1, column: 25},\n              end: {line: 1, column: 28}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 31},\n                end: {line: 1, column: 33}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 28},\n              end: {line: 1, column: 33}\n            }\n          },\n          kind: \"method\",\n          static: true,\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 33}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 34}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 34}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 34}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"\\\"use strict\\\"; (class A extends B { static constructor() { super() }})\", \"super() call outside constructor of a subclass (1:58)\", {ecmaVersion: 6, loose: false});\n\ntest(\"class A { foo() {} bar() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 10},\n              end: {line: 1, column: 13}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 16},\n                end: {line: 1, column: 18}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 18}\n            }\n          },\n          kind: \"method\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 18}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {line: 1, column: 19},\n              end: {line: 1, column: 22}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 25},\n                end: {line: 1, column: 27}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 22},\n              end: {line: 1, column: 27}\n            }\n          },\n          kind: \"method\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 19},\n            end: {line: 1, column: 27}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 28}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 28}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 28}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { get foo() {} set foo(v) {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 17}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 20},\n                end: {line: 1, column: 22}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 22}\n            }\n          },\n          kind: \"get\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 22}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 27},\n              end: {line: 1, column: 30}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 31},\n                end: {line: 1, column: 32}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 34},\n                end: {line: 1, column: 36}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 30},\n              end: {line: 1, column: 36}\n            }\n          },\n          kind: \"set\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 23},\n            end: {line: 1, column: 36}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 37}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 37}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 37}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static get foo() {} get foo() {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 21},\n              end: {line: 1, column: 24}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 27},\n                end: {line: 1, column: 29}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 24},\n              end: {line: 1, column: 29}\n            }\n          },\n          kind: \"get\",\n          static: true,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 29}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 34},\n              end: {line: 1, column: 37}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 40},\n                end: {line: 1, column: 42}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 37},\n              end: {line: 1, column: 42}\n            }\n          },\n          kind: \"get\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 30},\n            end: {line: 1, column: 42}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 43}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 43}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 43}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static get foo() {} static get bar() {} }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 21},\n              end: {line: 1, column: 24}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 27},\n                end: {line: 1, column: 29}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 24},\n              end: {line: 1, column: 29}\n            }\n          },\n          kind: \"get\",\n          static: true,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 29}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {line: 1, column: 41},\n              end: {line: 1, column: 44}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 47},\n                end: {line: 1, column: 49}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 44},\n              end: {line: 1, column: 49}\n            }\n          },\n          kind: \"get\",\n          static: true,\n          loc: {\n            start: {line: 1, column: 30},\n            end: {line: 1, column: 49}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 51}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 51}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 51}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static get foo() {} static set foo(v) {} get foo() {} set foo(v) {}}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 21},\n              end: {line: 1, column: 24}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 27},\n                end: {line: 1, column: 29}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 24},\n              end: {line: 1, column: 29}\n            }\n          },\n          kind: \"get\",\n          static: true,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 29}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 41},\n              end: {line: 1, column: 44}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 45},\n                end: {line: 1, column: 46}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 48},\n                end: {line: 1, column: 50}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 44},\n              end: {line: 1, column: 50}\n            }\n          },\n          kind: \"set\",\n          static: true,\n          loc: {\n            start: {line: 1, column: 30},\n            end: {line: 1, column: 50}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 55},\n              end: {line: 1, column: 58}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 61},\n                end: {line: 1, column: 63}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 58},\n              end: {line: 1, column: 63}\n            }\n          },\n          kind: \"get\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 51},\n            end: {line: 1, column: 63}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 68},\n              end: {line: 1, column: 71}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 72},\n                end: {line: 1, column: 73}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 75},\n                end: {line: 1, column: 77}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 71},\n              end: {line: 1, column: 77}\n            }\n          },\n          kind: \"set\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 64},\n            end: {line: 1, column: 77}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 78}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 78}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 78}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n\ntest(\"class A { static [foo]() {} }\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 29}\n  },\n  body: [{\n    type: \"ClassDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 29}\n    },\n    id: {\n      type: \"Identifier\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      },\n      name: \"A\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 29}\n      },\n      body: [{\n        type: \"MethodDefinition\",\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 27}\n        },\n        static: true,\n        computed: true,\n        key: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 21}\n          },\n          name: \"foo\"\n        },\n        kind: \"method\",\n        value: {\n          type: \"FunctionExpression\",\n          loc: {\n            start: {line: 1, column: 22},\n            end: {line: 1, column: 27}\n          },\n          id: null,\n          params: [],\n          generator: false,\n          body: {\n            type: \"BlockStatement\",\n            loc: {\n              start: {line: 1, column: 25},\n              end: {line: 1, column: 27}\n            },\n            body: []\n          },\n          expression: false\n        }\n      }]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { static get [foo]() {} }\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  },\n  body: [{\n    type: \"ClassDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    },\n    id: {\n      type: \"Identifier\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      },\n      range: [\n        6,\n        7\n      ],\n      name: \"A\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 33}\n      },\n      body: [{\n        type: \"MethodDefinition\",\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 31}\n        },\n        static: true,\n        computed: true,\n        key: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 22},\n            end: {line: 1, column: 25}\n          },\n          name: \"foo\"\n        },\n        kind: \"get\",\n        value: {\n          type: \"FunctionExpression\",\n          loc: {\n            start: {line: 1, column: 26},\n            end: {line: 1, column: 31}\n          },\n          id: null,\n          params: [],\n          generator: false,\n          body: {\n            type: \"BlockStatement\",\n            loc: {\n              start: {line: 1, column: 29},\n              end: {line: 1, column: 31}\n            },\n            body: []\n          },\n          expression: false\n        }\n      }]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { set foo(v) {} get foo() {} }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ClassDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"A\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      body: [\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 17}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 18},\n                end: {line: 1, column: 19}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 21},\n                end: {line: 1, column: 23}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 23}\n            }\n          },\n          kind: \"set\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 23}\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {line: 1, column: 28},\n              end: {line: 1, column: 31}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 34},\n                end: {line: 1, column: 36}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 31},\n              end: {line: 1, column: 36}\n            }\n          },\n          kind: \"get\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 24},\n            end: {line: 1, column: 36}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 38}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 38}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 38}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A { foo() {} get foo() {} }\",{\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  },\n  body: [{\n    type: \"ClassDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    },\n    id: {\n      type: \"Identifier\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      },\n      name: \"A\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 33}\n      },\n      body: [\n        {\n          type: \"MethodDefinition\",\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 18}\n          },\n          static: false,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            loc: {\n              start: {line: 1, column: 10},\n              end: {line: 1, column: 13}\n            },\n            name: \"foo\"\n          },\n          kind: \"method\",\n          value: {\n            type: \"FunctionExpression\",\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 18}\n            },\n            id: null,\n            params: [],\n            generator: false,\n            body: {\n              type: \"BlockStatement\",\n              loc: {\n                start: {line: 1, column: 16},\n                end: {line: 1, column: 18}\n              },\n              body: []\n            },\n            expression: false\n          }\n        },\n        {\n          type: \"MethodDefinition\",\n          loc: {\n            start: {line: 1, column: 19},\n            end: {line: 1, column: 31}\n          },\n          static: false,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            loc: {\n              start: {line: 1, column: 23},\n              end: {line: 1, column: 26}\n            },\n            name: \"foo\"\n          },\n          kind: \"get\",\n          value: {\n            type: \"FunctionExpression\",\n            loc: {\n              start: {line: 1, column: 26},\n              end: {line: 1, column: 31}\n            },\n            id: null,\n            params: [],\n            generator: false,\n            body: {\n              type: \"BlockStatement\",\n              loc: {\n                start: {line: 1, column: 29},\n                end: {line: 1, column: 31}\n              },\n              body: []\n            },\n            expression: false\n          }\n        }\n      ]\n    }\n  }]\n},{\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class Semicolon { ; }\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 21}\n  },\n  body: [{\n    type: \"ClassDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 21}\n    },\n    id: {\n      type: \"Identifier\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 15}\n      },\n      name: \"Semicolon\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      loc: {\n        start: {line: 1, column: 16},\n        end: {line: 1, column: 21}\n      },\n      body: []\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6: Computed Properties\n\ntest(\"({[x]: 10})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        value: {\n          type: \"Literal\",\n          value: 10,\n          raw: \"10\",\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 9}\n          }\n        },\n        kind: \"init\",\n        method: false,\n        shorthand: false,\n        computed: true,\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 9}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 10}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 11}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 11}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({[\\\"x\\\" + \\\"y\\\"]: 10})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"BinaryExpression\",\n          operator: \"+\",\n          left: {\n            type: \"Literal\",\n            value: \"x\",\n            raw: \"\\\"x\\\"\",\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 6}\n            }\n          },\n          right: {\n            type: \"Literal\",\n            value: \"y\",\n            raw: \"\\\"y\\\"\",\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 12}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 12}\n          }\n        },\n        value: {\n          type: \"Literal\",\n          value: 10,\n          raw: \"10\",\n          loc: {\n            start: {line: 1, column: 15},\n            end: {line: 1, column: 17}\n          }\n        },\n        kind: \"init\",\n        method: false,\n        shorthand: false,\n        computed: true,\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 17}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 19}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 19}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({[x]: function() {}})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 18},\n              end: {line: 1, column: 20}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 7},\n            end: {line: 1, column: 20}\n          }\n        },\n        kind: \"init\",\n        method: false,\n        shorthand: false,\n        computed: true,\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 20}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 21}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({[x]: 10, y: 20})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [\n        {\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 4}\n            }\n          },\n          value: {\n            type: \"Literal\",\n            value: 10,\n            raw: \"10\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 9}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: true,\n          loc: {\n            start: {line: 1, column: 2},\n            end: {line: 1, column: 9}\n          }\n        },\n        {\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 12}\n            }\n          },\n          value: {\n            type: \"Literal\",\n            value: 20,\n            raw: \"20\",\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 16}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 11},\n            end: {line: 1, column: 16}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({get [x]() {}, set [x](v) {}})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [\n        {\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 12},\n                end: {line: 1, column: 14}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 14}\n            }\n          },\n          kind: \"get\",\n          method: false,\n          shorthand: false,\n          computed: true,\n          loc: {\n            start: {line: 1, column: 2},\n            end: {line: 1, column: 14}\n          }\n        },\n        {\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 21},\n              end: {line: 1, column: 22}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"Identifier\",\n              name: \"v\",\n              loc: {\n                start: {line: 1, column: 24},\n                end: {line: 1, column: 25}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 27},\n                end: {line: 1, column: 29}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 23},\n              end: {line: 1, column: 29}\n            }\n          },\n          kind: \"set\",\n          method: false,\n          shorthand: false,\n          computed: true,\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 29}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 30}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 31}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 31}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({[x]() {}})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 10}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 10}\n          }\n        },\n        kind: \"init\",\n        method: true,\n        shorthand: false,\n        computed: true,\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 10}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 11}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var {[x]: y} = {y}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 7}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 10},\n              end: {line: 1, column: 11}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: true,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 11}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 12}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 17}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 17}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 17}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 15},\n          end: {line: 1, column: 18}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 18}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function f({[x]: y}) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"f\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"ObjectPattern\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 14}\n          }\n        },\n        value: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 18}\n          }\n        },\n        kind: \"init\",\n        method: false,\n        shorthand: false,\n        computed: true,\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 18}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 19}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 21},\n        end: {line: 1, column: 23}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 23}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 23}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var x = {*[test]() { yield *v; }}\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 5}\n        }\n      },\n      init: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"test\",\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 15}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [{\n                type: \"ExpressionStatement\",\n                expression: {\n                  type: \"YieldExpression\",\n                  argument: {\n                    type: \"Identifier\",\n                    name: \"v\",\n                    loc: {\n                      start: {line: 1, column: 28},\n                      end: {line: 1, column: 29}\n                    }\n                  },\n                  delegate: true,\n                  loc: {\n                    start: {line: 1, column: 21},\n                    end: {line: 1, column: 29}\n                  }\n                },\n                loc: {\n                  start: {line: 1, column: 21},\n                  end: {line: 1, column: 30}\n                }\n              }],\n              loc: {\n                start: {line: 1, column: 19},\n                end: {line: 1, column: 32}\n              }\n            },\n            generator: true,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 32}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: true,\n          loc: {\n            start: {line: 1, column: 9},\n            end: {line: 1, column: 32}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 8},\n          end: {line: 1, column: 33}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 33}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"class A {[x]() {}}\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  },\n  body: [{\n    type: \"ClassDeclaration\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    },\n    id: {\n      type: \"Identifier\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      },\n      name: \"A\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 18}\n      },\n      body: [{\n        type: \"MethodDefinition\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 17}\n        },\n        static: false,\n        computed: true,\n        key: {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 10},\n            end: {line: 1, column: 11}\n          },\n          name: \"x\"\n        },\n        kind: \"method\",\n        value: {\n          type: \"FunctionExpression\",\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 17}\n          },\n          id: null,\n          params: [],\n          generator: false,\n          body: {\n            type: \"BlockStatement\",\n            loc: {\n              start: {line: 1, column: 15},\n              end: {line: 1, column: 17}\n            },\n            body: []\n          },\n          expression: false\n        }\n      }]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"({[x]})\", \"Unexpected token (1:5)\", {ecmaVersion: 6});\n\n// ES6: Default parameters\n\ntest(\"function f([x] = [1]) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"f\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"AssignmentPattern\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 13}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 14}\n        }\n      },\n      right: {\n        type: \"ArrayExpression\",\n        elements: [{\n          type: \"Literal\",\n          value: 1,\n          raw: \"1\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 19}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 20}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 20}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 22},\n        end: {line: 1, column: 24}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 24}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 24}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function f([x] = [1]) { 'use strict' }\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"f\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"AssignmentPattern\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 13}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 14}\n        }\n      },\n      right: {\n        type: \"ArrayExpression\",\n        elements: [{\n          type: \"Literal\",\n          value: 1,\n          raw: \"1\",\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 19}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 20}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 20}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          loc: {\n            start: {line: 1, column: 24},\n            end: {line: 1, column: 36}\n          },\n          expression: {\n            type: \"Literal\",\n            loc: {\n              start: {line: 1, column: 24},\n              end: {line: 1, column: 36}\n            },\n            value: \"use strict\",\n            raw: \"'use strict'\"\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 22},\n        end: {line: 1, column: 38}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 38}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 38}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function f({x} = {x: 10}) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"f\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"AssignmentPattern\",\n      left: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 13}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 12},\n              end: {line: 1, column: 13}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 13}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 14}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {line: 1, column: 18},\n              end: {line: 1, column: 19}\n            }\n          },\n          value: {\n            type: \"Literal\",\n            value: 10,\n            raw: \"10\",\n            loc: {\n              start: {line: 1, column: 21},\n              end: {line: 1, column: 23}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 18},\n            end: {line: 1, column: 23}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 24}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 24}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 26},\n        end: {line: 1, column: 28}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 28}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 28}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"f = function({x} = {x: 10}) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"f\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [{\n          type: \"AssignmentPattern\",\n          left: {\n            type: \"ObjectPattern\",\n            properties: [{\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {line: 1, column: 14},\n                  end: {line: 1, column: 15}\n                }\n              },\n              value: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {line: 1, column: 14},\n                  end: {line: 1, column: 15}\n                }\n              },\n              kind: \"init\",\n              method: false,\n              shorthand: true,\n              computed: false,\n              loc: {\n                start: {line: 1, column: 14},\n                end: {line: 1, column: 15}\n              }\n            }],\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 16}\n            }\n          },\n          right: {\n            type: \"ObjectExpression\",\n            properties: [{\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {line: 1, column: 20},\n                  end: {line: 1, column: 21}\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 10,\n                raw: \"10\",\n                loc: {\n                  start: {line: 1, column: 23},\n                  end: {line: 1, column: 25}\n                }\n              },\n              kind: \"init\",\n              method: false,\n              shorthand: false,\n              computed: false,\n              loc: {\n                start: {line: 1, column: 20},\n                end: {line: 1, column: 25}\n              }\n            }],\n            loc: {\n              start: {line: 1, column: 19},\n              end: {line: 1, column: 26}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 26}\n          }\n        }],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {line: 1, column: 28},\n            end: {line: 1, column: 30}\n          }\n        },\n        generator: false,\n        expression: false,\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 30}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 30}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 30}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 30}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({f: function({x} = {x: 10}) {}})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"f\",\n          loc: {\n            start: {line: 1, column: 2},\n            end: {line: 1, column: 3}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"AssignmentPattern\",\n            left: {\n              type: \"ObjectPattern\",\n              properties: [{\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {line: 1, column: 15},\n                    end: {line: 1, column: 16}\n                  }\n                },\n                value: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {line: 1, column: 15},\n                    end: {line: 1, column: 16}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: true,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 15},\n                  end: {line: 1, column: 16}\n                }\n              }],\n              loc: {\n                start: {line: 1, column: 14},\n                end: {line: 1, column: 17}\n              }\n            },\n            right: {\n              type: \"ObjectExpression\",\n              properties: [{\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {line: 1, column: 21},\n                    end: {line: 1, column: 22}\n                  }\n                },\n                value: {\n                  type: \"Literal\",\n                  value: 10,\n                  raw: \"10\",\n                  loc: {\n                    start: {line: 1, column: 24},\n                    end: {line: 1, column: 26}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: false,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 21},\n                  end: {line: 1, column: 26}\n                }\n              }],\n              loc: {\n                start: {line: 1, column: 20},\n                end: {line: 1, column: 27}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 27}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 29},\n              end: {line: 1, column: 31}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 31}\n          }\n        },\n        kind: \"init\",\n        method: false,\n        shorthand: false,\n        computed: false,\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 31}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 32}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({f({x} = {x: 10}) {}})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"f\",\n          loc: {\n            start: {line: 1, column: 2},\n            end: {line: 1, column: 3}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"AssignmentPattern\",\n            left: {\n              type: \"ObjectPattern\",\n              properties: [{\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {line: 1, column: 5},\n                    end: {line: 1, column: 6}\n                  }\n                },\n                value: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {line: 1, column: 5},\n                    end: {line: 1, column: 6}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: true,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 5},\n                  end: {line: 1, column: 6}\n                }\n              }],\n              loc: {\n                start: {line: 1, column: 4},\n                end: {line: 1, column: 7}\n              }\n            },\n            right: {\n              type: \"ObjectExpression\",\n              properties: [{\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {line: 1, column: 11},\n                    end: {line: 1, column: 12}\n                  }\n                },\n                value: {\n                  type: \"Literal\",\n                  value: 10,\n                  raw: \"10\",\n                  loc: {\n                    start: {line: 1, column: 14},\n                    end: {line: 1, column: 16}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: false,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 11},\n                  end: {line: 1, column: 16}\n                }\n              }],\n              loc: {\n                start: {line: 1, column: 10},\n                end: {line: 1, column: 17}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 4},\n              end: {line: 1, column: 17}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 19},\n              end: {line: 1, column: 21}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 21}\n          }\n        },\n        kind: \"init\",\n        method: true,\n        shorthand: false,\n        computed: false,\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 21}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 22}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 23}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 23}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(class {f({x} = {x: 10}) {}})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ClassExpression\",\n      superClass: null,\n      body: {\n        type: \"ClassBody\",\n        body: [{\n          type: \"MethodDefinition\",\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"f\",\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 9}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"AssignmentPattern\",\n              left: {\n                type: \"ObjectPattern\",\n                properties: [{\n                  type: \"Property\",\n                  key: {\n                    type: \"Identifier\",\n                    name: \"x\",\n                    loc: {\n                      start: {line: 1, column: 11},\n                      end: {line: 1, column: 12}\n                    }\n                  },\n                  value: {\n                    type: \"Identifier\",\n                    name: \"x\",\n                    loc: {\n                      start: {line: 1, column: 11},\n                      end: {line: 1, column: 12}\n                    }\n                  },\n                  kind: \"init\",\n                  method: false,\n                  shorthand: true,\n                  computed: false,\n                  loc: {\n                    start: {line: 1, column: 11},\n                    end: {line: 1, column: 12}\n                  }\n                }],\n                loc: {\n                  start: {line: 1, column: 10},\n                  end: {line: 1, column: 13}\n                }\n              },\n              right: {\n                type: \"ObjectExpression\",\n                properties: [{\n                  type: \"Property\",\n                  key: {\n                    type: \"Identifier\",\n                    name: \"x\",\n                    loc: {\n                      start: {line: 1, column: 17},\n                      end: {line: 1, column: 18}\n                    }\n                  },\n                  value: {\n                    type: \"Literal\",\n                    value: 10,\n                    raw: \"10\",\n                    loc: {\n                      start: {line: 1, column: 20},\n                      end: {line: 1, column: 22}\n                    }\n                  },\n                  kind: \"init\",\n                  method: false,\n                  shorthand: false,\n                  computed: false,\n                  loc: {\n                    start: {line: 1, column: 17},\n                    end: {line: 1, column: 22}\n                  }\n                }],\n                loc: {\n                  start: {line: 1, column: 16},\n                  end: {line: 1, column: 23}\n                }\n              },\n              loc: {\n                start: {line: 1, column: 10},\n                end: {line: 1, column: 23}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 25},\n                end: {line: 1, column: 27}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 27}\n            }\n          },\n          kind: \"method\",\n          static: false,\n          loc: {\n            start: {line: 1, column: 8},\n            end: {line: 1, column: 27}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 7},\n          end: {line: 1, column: 28}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 28}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 29}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 29}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(({x} = {x: 10}) => {})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"AssignmentPattern\",\n        left: {\n          type: \"ObjectPattern\",\n          properties: [{\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {line: 1, column: 3},\n                end: {line: 1, column: 4}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {line: 1, column: 3},\n                end: {line: 1, column: 4}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: true,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 4}\n            }\n          }],\n          loc: {\n            start: {line: 1, column: 2},\n            end: {line: 1, column: 5}\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [{\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {line: 1, column: 9},\n                end: {line: 1, column: 10}\n              }\n            },\n            value: {\n              type: \"Literal\",\n              value: 10,\n              raw: \"10\",\n              loc: {\n                start: {line: 1, column: 12},\n                end: {line: 1, column: 14}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: false,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 14}\n            }\n          }],\n          loc: {\n            start: {line: 1, column: 8},\n            end: {line: 1, column: 15}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 2},\n          end: {line: 1, column: 15}\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 20},\n          end: {line: 1, column: 22}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 22}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 23}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 23}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = function(y = 1) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [{\n          type: \"AssignmentPattern\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 14}\n            }\n          },\n          right: {\n            type: \"Literal\",\n            value: 1,\n            raw: \"1\",\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 18}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 18}\n          }\n        }],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {line: 1, column: 20},\n            end: {line: 1, column: 22}\n          }\n        },\n        generator: false,\n        expression: false,\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 22}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 22}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function f(a = 1) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"f\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"AssignmentPattern\",\n      left: {\n        type: \"Identifier\",\n        name: \"a\",\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 12}\n        }\n      },\n      right: {\n        type: \"Literal\",\n        value: 1,\n        raw: \"1\",\n        loc: {\n          start: {line: 1, column: 15},\n          end: {line: 1, column: 16}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 16}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 18},\n        end: {line: 1, column: 20}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 20}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 20}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { f: function(a=1) {} }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"f\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 7}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"AssignmentPattern\",\n              left: {\n                type: \"Identifier\",\n                name: \"a\",\n                loc: {\n                  start: {line: 1, column: 18},\n                  end: {line: 1, column: 19}\n                }\n              },\n              right: {\n                type: \"Literal\",\n                value: 1,\n                raw: \"1\",\n                loc: {\n                  start: {line: 1, column: 20},\n                  end: {line: 1, column: 21}\n                }\n              },\n              loc: {\n                start: {line: 1, column: 18},\n                end: {line: 1, column: 21}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 23},\n                end: {line: 1, column: 25}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 9},\n              end: {line: 1, column: 25}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 25}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 27}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 27}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"x = { f(a=1) {} }\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      },\n      right: {\n        type: \"ObjectExpression\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"f\",\n            loc: {\n              start: {line: 1, column: 6},\n              end: {line: 1, column: 7}\n            }\n          },\n          value: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"AssignmentPattern\",\n              left: {\n                type: \"Identifier\",\n                name: \"a\",\n                loc: {\n                  start: {line: 1, column: 8},\n                  end: {line: 1, column: 9}\n                }\n              },\n              right: {\n                type: \"Literal\",\n                value: 1,\n                raw: \"1\",\n                loc: {\n                  start: {line: 1, column: 10},\n                  end: {line: 1, column: 11}\n                }\n              },\n              loc: {\n                start: {line: 1, column: 8},\n                end: {line: 1, column: 11}\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {line: 1, column: 13},\n                end: {line: 1, column: 15}\n              }\n            },\n            generator: false,\n            expression: false,\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 15}\n            }\n          },\n          kind: \"init\",\n          method: true,\n          shorthand: false,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 6},\n            end: {line: 1, column: 15}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 17}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 17}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6: Rest parameters\n\ntest(\"function f(a, ...b) {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"f\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [\n      {\n        type: \"Identifier\",\n        name: \"a\",\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 12}\n        }\n      },\n      {\n        type: \"RestElement\",\n        argument: {\n          type: \"Identifier\",\n          name: \"b\",\n          loc: {\n            start: {line: 1, column: 17},\n            end: {line: 1, column: 18}\n          }\n        }\n      }\n    ],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 20},\n        end: {line: 1, column: 22}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6: Destructured Parameters\n\ntest(\"function x([ a, b ]){}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"x\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"ArrayPattern\",\n      elements: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 14}\n          }\n        },\n        {\n          type: \"Identifier\",\n          name: \"b\",\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 17}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 19}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 20},\n        end: {line: 1, column: 22}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"function x({ a, b }){}\", {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"x\",\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    params: [{\n      type: \"ObjectPattern\",\n      properties: [\n        {\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 14}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 13},\n              end: {line: 1, column: 14}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 13},\n            end: {line: 1, column: 14}\n          }\n        },\n        {\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 17}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 16},\n              end: {line: 1, column: 17}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 16},\n            end: {line: 1, column: 17}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 19}\n      }\n    }],\n    body: {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {line: 1, column: 20},\n        end: {line: 1, column: 22}\n      }\n    },\n    generator: false,\n    expression: false,\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"function x(...[ a, b ]){}\", \"Unexpected token (1:14)\", {ecmaVersion: 6});\ntestFail(\"(([...[ a, b ]]) => {})\", \"Unexpected token (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"function x({ a: { w, x }, b: [y, z] }, ...[a, b, c]){}\", \"Unexpected token (1:42)\", {ecmaVersion: 6});\ntestFail(\"(function ({ a(){} }) {})\", \"Unexpected token (1:14)\", {ecmaVersion: 6});\n\ntest(\"(function x([ a, b ]){})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 11}\n        }\n      },\n      params: [{\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 15}\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 18}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 20}\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 21},\n          end: {line: 1, column: 23}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 23}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 24}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 24}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(function x({ a, b }){})\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 11}\n        }\n      },\n      params: [{\n        type: \"ObjectPattern\",\n        properties: [\n          {\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"a\",\n              loc: {\n                start: {line: 1, column: 14},\n                end: {line: 1, column: 15}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"a\",\n              loc: {\n                start: {line: 1, column: 14},\n                end: {line: 1, column: 15}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: true,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 15}\n            }\n          },\n          {\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"b\",\n              loc: {\n                start: {line: 1, column: 17},\n                end: {line: 1, column: 18}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"b\",\n              loc: {\n                start: {line: 1, column: 17},\n                end: {line: 1, column: 18}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: true,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 18}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 20}\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 21},\n          end: {line: 1, column: 23}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 23}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 24}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 24}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"(function x(...[ a, b ]){})\", \"Unexpected token (1:15)\", {ecmaVersion: 6});\ntestFail(\"var a = { set foo(...v) {} };\", \"Setter cannot use rest params (1:18)\", {ecmaVersion: 6});\ntestFail(\"class a { set foo(...v) {} };\", \"Setter cannot use rest params (1:18)\", {ecmaVersion: 6});\n\ntestFail(\"(function x({ a: { w, x }, b: [y, z] }, ...[a, b, c]){})\", \"Unexpected token (1:43)\", {ecmaVersion: 6});\n\ntest(\"({ x([ a, b ]){} })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"ArrayPattern\",\n            elements: [\n              {\n                type: \"Identifier\",\n                name: \"a\",\n                loc: {\n                  start: {line: 1, column: 7},\n                  end: {line: 1, column: 8}\n                }\n              },\n              {\n                type: \"Identifier\",\n                name: \"b\",\n                loc: {\n                  start: {line: 1, column: 10},\n                  end: {line: 1, column: 11}\n                }\n              }\n            ],\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 13}\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 14},\n              end: {line: 1, column: 16}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 16}\n          }\n        },\n        kind: \"init\",\n        method: true,\n        shorthand: false,\n        computed: false,\n        loc: {\n          start: {line: 1, column: 3},\n          end: {line: 1, column: 16}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 19}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 19}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({ x(...[ a, b ]){} })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [{\n            type: \"RestElement\",\n            argument: {\n              type: \"ArrayPattern\",\n              elements: [\n                {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 10},\n                    end: {line: 1, column: 11}\n                  }\n                },\n                {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 13},\n                    end: {line: 1, column: 14}\n                  }\n                }\n              ],\n              loc: {\n                start: {line: 1, column: 8},\n                end: {line: 1, column: 16}\n              }\n            }\n          }],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 17},\n              end: {line: 1, column: 19}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 19}\n          }\n        },\n        kind: \"init\",\n        method: true,\n        shorthand: false,\n        computed: false,\n        loc: {\n          start: {line: 1, column: 3},\n          end: {line: 1, column: 19}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 21}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 7,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({ x({ a: { w, x }, b: [y, z] }, ...[a, b, c]){} })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ObjectExpression\",\n      properties: [{\n        type: \"Property\",\n        key: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        },\n        value: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [\n          {\n            type: \"ObjectPattern\",\n            properties: [\n              {\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 7},\n                    end: {line: 1, column: 8}\n                  }\n                },\n                value: {\n                  type: \"ObjectPattern\",\n                  properties: [\n                    {\n                      type: \"Property\",\n                      key: {\n                        type: \"Identifier\",\n                        name: \"w\",\n                        loc: {\n                          start: {line: 1, column: 12},\n                          end: {line: 1, column: 13}\n                        }\n                      },\n                      value: {\n                        type: \"Identifier\",\n                        name: \"w\",\n                        loc: {\n                          start: {line: 1, column: 12},\n                          end: {line: 1, column: 13}\n                        }\n                      },\n                      kind: \"init\",\n                      method: false,\n                      shorthand: true,\n                      computed: false,\n                      loc: {\n                        start: {line: 1, column: 12},\n                        end: {line: 1, column: 13}\n                      }\n                    },\n                    {\n                      type: \"Property\",\n                      key: {\n                        type: \"Identifier\",\n                        name: \"x\",\n                        loc: {\n                          start: {line: 1, column: 15},\n                          end: {line: 1, column: 16}\n                        }\n                      },\n                      value: {\n                        type: \"Identifier\",\n                        name: \"x\",\n                        loc: {\n                          start: {line: 1, column: 15},\n                          end: {line: 1, column: 16}\n                        }\n                      },\n                      kind: \"init\",\n                      method: false,\n                      shorthand: true,\n                      computed: false,\n                      loc: {\n                        start: {line: 1, column: 15},\n                        end: {line: 1, column: 16}\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {line: 1, column: 10},\n                    end: {line: 1, column: 18}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: false,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 7},\n                  end: {line: 1, column: 18}\n                }\n              },\n              {\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 20},\n                    end: {line: 1, column: 21}\n                  }\n                },\n                value: {\n                  type: \"ArrayPattern\",\n                  elements: [\n                    {\n                      type: \"Identifier\",\n                      name: \"y\",\n                      loc: {\n                        start: {line: 1, column: 24},\n                        end: {line: 1, column: 25}\n                      }\n                    },\n                    {\n                      type: \"Identifier\",\n                      name: \"z\",\n                      loc: {\n                        start: {line: 1, column: 27},\n                        end: {line: 1, column: 28}\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {line: 1, column: 23},\n                    end: {line: 1, column: 29}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: false,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 20},\n                  end: {line: 1, column: 29}\n                }\n              }\n            ],\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 31}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"ArrayPattern\",\n              elements: [\n                {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 37},\n                    end: {line: 1, column: 38}\n                  }\n                },\n                {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 40},\n                    end: {line: 1, column: 41}\n                  }\n                },\n                {\n                  type: \"Identifier\",\n                  name: \"c\",\n                  loc: {\n                    start: {line: 1, column: 43},\n                    end: {line: 1, column: 44}\n                  }\n                }\n              ],\n              loc: {\n                start: {line: 1, column: 36},\n                end: {line: 1, column: 45}\n              }\n            }\n          }\n          ],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {line: 1, column: 46},\n              end: {line: 1, column: 48}\n            }\n          },\n          generator: false,\n          expression: false,\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 48}\n          }\n        },\n        kind: \"init\",\n        method: true,\n        shorthand: false,\n        computed: false,\n        loc: {\n          start: {line: 1, column: 3},\n          end: {line: 1, column: 48}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 50}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 51}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 51}\n  }\n}, {\n  ecmaVersion: 7,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(...a) => {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"RestElement\",\n        argument: {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 4},\n            end: {line: 1, column: 5}\n          }\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 10},\n          end: {line: 1, column: 12}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 12}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 12}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 12}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"(a, ...b) => {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 2}\n          }\n        },\n        {\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 7},\n              end: {line: 1, column: 8}\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 15}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 15}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 15}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 15}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({ a }) => {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          key: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 4}\n            }\n          },\n          value: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 4}\n            }\n          },\n          kind: \"init\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          loc: {\n            start: {line: 1, column: 3},\n            end: {line: 1, column: 4}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 1},\n          end: {line: 1, column: 6}\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 11},\n          end: {line: 1, column: 13}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 13}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 13}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({ a }, ...b) => {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"ObjectPattern\",\n          properties: [{\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"a\",\n              loc: {\n                start: {line: 1, column: 3},\n                end: {line: 1, column: 4}\n              }\n            },\n            value: {\n              type: \"Identifier\",\n              name: \"a\",\n              loc: {\n                start: {line: 1, column: 3},\n                end: {line: 1, column: 4}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: true,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 4}\n            }\n          }],\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 6}\n          }\n        },\n        {\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 12}\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 19}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 19}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 19}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 19}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"(...[a, b]) => {}\", \"Unexpected token (1:4)\", {ecmaVersion: 6 });\n\ntestFail(\"(a, ...[b]) => {}\", \"Unexpected token (1:7)\", {ecmaVersion: 6 });\n\ntest(\"({ a: [a, b] }, ...c) => {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"ObjectPattern\",\n          properties: [{\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"a\",\n              loc: {\n                start: {line: 1, column: 3},\n                end: {line: 1, column: 4}\n              }\n            },\n            value: {\n              type: \"ArrayPattern\",\n              elements: [\n                {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 7},\n                    end: {line: 1, column: 8}\n                  }\n                },\n                {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 10},\n                    end: {line: 1, column: 11}\n                  }\n                }\n              ],\n              loc: {\n                start: {line: 1, column: 6},\n                end: {line: 1, column: 12}\n              }\n            },\n            kind: \"init\",\n            method: false,\n            shorthand: false,\n            computed: false,\n            loc: {\n              start: {line: 1, column: 3},\n              end: {line: 1, column: 12}\n            }\n          }],\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 14}\n          }\n        },\n        {\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"c\",\n            loc: {\n              start: {line: 1, column: 19},\n              end: {line: 1, column: 20}\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 25},\n          end: {line: 1, column: 27}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 27}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({ a: b, c }, [d, e], ...f) => {}\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [\n        {\n          type: \"ObjectPattern\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"a\",\n                loc: {\n                  start: {line: 1, column: 3},\n                  end: {line: 1, column: 4}\n                }\n              },\n              value: {\n                type: \"Identifier\",\n                name: \"b\",\n                loc: {\n                  start: {line: 1, column: 6},\n                  end: {line: 1, column: 7}\n                }\n              },\n              kind: \"init\",\n              method: false,\n              shorthand: false,\n              computed: false,\n              loc: {\n                start: {line: 1, column: 3},\n                end: {line: 1, column: 7}\n              }\n            },\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"c\",\n                loc: {\n                  start: {line: 1, column: 9},\n                  end: {line: 1, column: 10}\n                }\n              },\n              value: {\n                type: \"Identifier\",\n                name: \"c\",\n                loc: {\n                  start: {line: 1, column: 9},\n                  end: {line: 1, column: 10}\n                }\n              },\n              kind: \"init\",\n              method: false,\n              shorthand: true,\n              computed: false,\n              loc: {\n                start: {line: 1, column: 9},\n                end: {line: 1, column: 10}\n              }\n            }\n          ],\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 12}\n          }\n        },\n        {\n          type: \"ArrayPattern\",\n          elements: [\n            {\n              type: \"Identifier\",\n              name: \"d\",\n              loc: {\n                start: {line: 1, column: 15},\n                end: {line: 1, column: 16}\n              }\n            },\n            {\n              type: \"Identifier\",\n              name: \"e\",\n              loc: {\n                start: {line: 1, column: 18},\n                end: {line: 1, column: 19}\n              }\n            }\n          ],\n          loc: {\n            start: {line: 1, column: 14},\n            end: {line: 1, column: 20}\n          }\n        },\n        {\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"f\",\n            loc: {\n              start: {line: 1, column: 25},\n              end: {line: 1, column: 26}\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {line: 1, column: 31},\n          end: {line: 1, column: 33}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 33}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 33}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 33}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// ES6: SpreadElement\n\ntest(\"[...a] = b\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 4},\n              end: {line: 1, column: 5}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 1},\n            end: {line: 1, column: 5}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 6}\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"b\",\n        loc: {\n          start: {line: 1, column: 9},\n          end: {line: 1, column: 10}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 10}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 10}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 10}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"[a, ...b] = c\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 1},\n              end: {line: 1, column: 2}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"Identifier\",\n              name: \"b\",\n              loc: {\n                start: {line: 1, column: 7},\n                end: {line: 1, column: 8}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 4},\n              end: {line: 1, column: 8}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 9}\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"c\",\n        loc: {\n          start: {line: 1, column: 12},\n          end: {line: 1, column: 13}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 13}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 13}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"[{ a, b }, ...c] = d\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"ObjectPattern\",\n            properties: [\n              {\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 3},\n                    end: {line: 1, column: 4}\n                  }\n                },\n                value: {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 3},\n                    end: {line: 1, column: 4}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: true,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 3},\n                  end: {line: 1, column: 4}\n                }\n              },\n              {\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 6},\n                    end: {line: 1, column: 7}\n                  }\n                },\n                value: {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 6},\n                    end: {line: 1, column: 7}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: true,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 6},\n                  end: {line: 1, column: 7}\n                }\n              }\n            ],\n            loc: {\n              start: {line: 1, column: 1},\n              end: {line: 1, column: 9}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"Identifier\",\n              name: \"c\",\n              loc: {\n                start: {line: 1, column: 14},\n                end: {line: 1, column: 15}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 15}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 16}\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"d\",\n        loc: {\n          start: {line: 1, column: 19},\n          end: {line: 1, column: 20}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 20}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 20}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 20}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"[a, ...[b, c]] = d\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"AssignmentExpression\",\n      operator: \"=\",\n      left: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 1},\n              end: {line: 1, column: 2}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"ArrayPattern\",\n              elements: [\n                {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 8},\n                    end: {line: 1, column: 9}\n                  }\n                },\n                {\n                  type: \"Identifier\",\n                  name: \"c\",\n                  loc: {\n                    start: {line: 1, column: 11},\n                    end: {line: 1, column: 12}\n                  }\n                }\n              ],\n              loc: {\n                start: {line: 1, column: 7},\n                end: {line: 1, column: 13}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 4},\n              end: {line: 1, column: 13}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 14}\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"d\",\n        loc: {\n          start: {line: 1, column: 17},\n          end: {line: 1, column: 18}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 18}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 18}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 18}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var [...a] = b\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [{\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 9}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 9}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 10}\n        }\n      },\n      init: {\n        type: \"Identifier\",\n        name: \"b\",\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 14}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 14}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var [a, ...b] = c\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"Identifier\",\n              name: \"b\",\n              loc: {\n                start: {line: 1, column: 11},\n                end: {line: 1, column: 12}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 12}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 13}\n        }\n      },\n      init: {\n        type: \"Identifier\",\n        name: \"c\",\n        loc: {\n          start: {line: 1, column: 16},\n          end: {line: 1, column: 17}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 17}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 17}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 17}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var [{ a, b }, ...c] = d\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"ObjectPattern\",\n            properties: [\n              {\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 7},\n                    end: {line: 1, column: 8}\n                  }\n                },\n                value: {\n                  type: \"Identifier\",\n                  name: \"a\",\n                  loc: {\n                    start: {line: 1, column: 7},\n                    end: {line: 1, column: 8}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: true,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 7},\n                  end: {line: 1, column: 8}\n                }\n              },\n              {\n                type: \"Property\",\n                key: {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 10},\n                    end: {line: 1, column: 11}\n                  }\n                },\n                value: {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 10},\n                    end: {line: 1, column: 11}\n                  }\n                },\n                kind: \"init\",\n                method: false,\n                shorthand: true,\n                computed: false,\n                loc: {\n                  start: {line: 1, column: 10},\n                  end: {line: 1, column: 11}\n                }\n              }\n            ],\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 13}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"Identifier\",\n              name: \"c\",\n              loc: {\n                start: {line: 1, column: 18},\n                end: {line: 1, column: 19}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 15},\n              end: {line: 1, column: 19}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 20}\n        }\n      },\n      init: {\n        type: \"Identifier\",\n        name: \"d\",\n        loc: {\n          start: {line: 1, column: 23},\n          end: {line: 1, column: 24}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 24}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 24}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 24}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var [a, ...[b, c]] = d\", {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ArrayPattern\",\n        elements: [\n          {\n            type: \"Identifier\",\n            name: \"a\",\n            loc: {\n              start: {line: 1, column: 5},\n              end: {line: 1, column: 6}\n            }\n          },\n          {\n            type: \"RestElement\",\n            argument: {\n              type: \"ArrayPattern\",\n              elements: [\n                {\n                  type: \"Identifier\",\n                  name: \"b\",\n                  loc: {\n                    start: {line: 1, column: 12},\n                    end: {line: 1, column: 13}\n                  }\n                },\n                {\n                  type: \"Identifier\",\n                  name: \"c\",\n                  loc: {\n                    start: {line: 1, column: 15},\n                    end: {line: 1, column: 16}\n                  }\n                }\n              ],\n              loc: {\n                start: {line: 1, column: 11},\n                end: {line: 1, column: 17}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 17}\n            }\n          }\n        ],\n        loc: {\n          start: {line: 1, column: 4},\n          end: {line: 1, column: 18}\n        }\n      },\n      init: {\n        type: \"Identifier\",\n        name: \"d\",\n        loc: {\n          start: {line: 1, column: 21},\n          end: {line: 1, column: 22}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 22}\n      }\n    }],\n    kind: \"var\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 22}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 22}\n  }\n}, {\n  ecmaVersion: 7,\n  ranges: true,\n  locations: true\n});\n\ntest(\"func(...a)\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"CallExpression\",\n      callee: {\n        type: \"Identifier\",\n        name: \"func\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 4}\n        }\n      },\n      arguments: [{\n        type: \"SpreadElement\",\n        argument: {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 8},\n            end: {line: 1, column: 9}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 5},\n          end: {line: 1, column: 9}\n        }\n      }],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 10}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 10}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 10}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"func(a, ...b)\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"CallExpression\",\n      callee: {\n        type: \"Identifier\",\n        name: \"func\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 4}\n        }\n      },\n      arguments: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 6}\n          }\n        },\n        {\n          type: \"SpreadElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"b\",\n            loc: {\n              start: {line: 1, column: 11},\n              end: {line: 1, column: 12}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 8},\n            end: {line: 1, column: 12}\n          }\n        }\n      ],\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 13}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 13}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"func(...a, b)\", {\n  type: \"Program\",\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 13}\n  },\n  body: [{\n    type: \"ExpressionStatement\",\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 13}\n    },\n    expression: {\n      type: \"CallExpression\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 13}\n      },\n      callee: {\n        type: \"Identifier\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 4}\n        },\n        name: \"func\"\n      },\n      arguments: [\n        {\n          type: \"SpreadElement\",\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 9}\n          },\n          argument: {\n            type: \"Identifier\",\n            loc: {\n              start: {line: 1, column: 8},\n              end: {line: 1, column: 9}\n            },\n            name: \"a\"\n          }\n        },\n        {\n          type: \"Identifier\",\n          loc: {\n            start: {line: 1, column: 11},\n            end: {line: 1, column: 12}\n          },\n          name: \"b\"\n        }\n      ]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"/[a-z]/u\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        regex: {\n          pattern: \"[a-z]\",\n          flags: \"u\"\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      }\n    }\n  ]\n}, {\n  locations: true,\n  ecmaVersion: 6\n});\n\ntest(\"/[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/u\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        regex: {\n          pattern: \"[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]\",\n          flags: \"u\"\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 33\n          }\n        }\n      }\n    }\n  ]\n}, {\n  locations: true,\n  ecmaVersion: 6\n});\n\ntest(\"do {} while (false) foo();\", {\n  type: \"Program\",\n  start: 0,\n  end: 26,\n  body: [\n    {\n      type: \"DoWhileStatement\",\n      start: 0,\n      end: 19,\n      body: {\n        type: \"BlockStatement\",\n        start: 3,\n        end: 5,\n        body: []\n      },\n      test: {\n        type: \"Literal\",\n        start: 13,\n        end: 18,\n        value: false,\n        raw: \"false\"\n      }\n    },\n    {\n      type: \"ExpressionStatement\",\n      start: 20,\n      end: 26,\n      expression: {\n        type: \"CallExpression\",\n        start: 20,\n        end: 25,\n        callee: {\n          type: \"Identifier\",\n          start: 20,\n          end: 23,\n          name: \"foo\"\n        },\n        arguments: []\n      }\n    }\n  ]\n}, {\n  ecmaVersion: 6\n});\n\n// Harmony Invalid syntax\n\ntestFail(\"0o\", \"Expected number in radix 8 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0o1a\", \"Identifier directly after number (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0o9\", \"Expected number in radix 8 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0o18\", \"Unexpected token (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0O\", \"Expected number in radix 8 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0O1a\", \"Identifier directly after number (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0O9\", \"Expected number in radix 8 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0O18\", \"Unexpected token (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0b\", \"Expected number in radix 2 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0b1a\", \"Identifier directly after number (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0b9\", \"Expected number in radix 2 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0b18\", \"Unexpected token (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0b12\", \"Unexpected token (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0B\", \"Expected number in radix 2 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0B1a\", \"Identifier directly after number (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0B9\", \"Expected number in radix 2 (1:2)\", {ecmaVersion: 6});\n\ntestFail(\"0B18\", \"Unexpected token (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"0B12\", \"Unexpected token (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"\\\\u{110000}\\\"\", \"Code point out of bounds (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"\\\\u{}\\\"\", \"Bad character escape sequence (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"\\\\u{FFFF\\\"\", \"Bad character escape sequence (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"\\\\u{FFZ}\\\"\", \"Bad character escape sequence (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"[v] += ary\", \"Assigning to rvalue (1:0)\", {ecmaVersion: 6});\n\ntestFail(\"[2] = 42\", \"Assigning to rvalue (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"({ obj:20 }) = 42\", \"Assigning to rvalue (1:0)\", {ecmaVersion: 6});\n\ntestFail(\"( { get x() {} } = 0)\", \"Object pattern can't contain getter or setter (1:8)\", {ecmaVersion: 6});\n\ntestFail(\"x \\n is y\", \"Unexpected token (2:4)\", {ecmaVersion: 6});\n\ntestFail(\"x \\n isnt y\", \"Unexpected token (2:6)\", {ecmaVersion: 6});\n\ntestFail(\"function default() {}\", \"Unexpected keyword 'default' (1:9)\", {ecmaVersion: 6});\n\ntestFail(\"function hello() {'use strict'; ({ i: 10, s(eval) { } }); }\", \"Binding eval in strict mode (1:44)\", {ecmaVersion: 6});\n\ntestFail(\"function a() { \\\"use strict\\\"; ({ b(t, t) { } }); }\", \"Argument name clash (1:37)\", {ecmaVersion: 6});\n\ntestFail(\"var super\", \"Unexpected keyword 'super' (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"var default\", \"Unexpected keyword 'default' (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"let default\", \"Unexpected keyword 'default' (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"const default\", \"Unexpected keyword 'default' (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; ({ v: eval } = obj)\", \"Assigning to eval in strict mode (1:20)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; ({ v: arguments } = obj)\", \"Assigning to arguments in strict mode (1:20)\", {ecmaVersion: 6});\n\ntestFail(\"for (let x = 42 in list) process(x);\", \"for-in loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\ntestFail(\"for (const x = 42 in list) process(x);\", \"for-in loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"for (let x = 42 of list) process(x);\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\ntestFail(\"for (const x = 42 of list) process(x);\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\ntestFail(\"for (var x = 42 of list) process(x);\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\ntestFail(\"for (var x = 42 of list) process(x);\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 8});\ntestFail(\"for (var {x} = 42 of list) process(x);\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\ntestFail(\"for (var [x] = 42 of list) process(x);\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 6});\ntestFail(\"var x; for (x = 42 of list) process(x);\", \"Assigning to rvalue (1:12)\", {ecmaVersion: 6});\n\ntestFail(\"import foo\", \"Unexpected token (1:10)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntestFail(\"import { foo, bar }\", \"Unexpected token (1:19)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntestFail(\"import foo from bar\", \"Unexpected token (1:16)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntestFail(\"((a)) => 42\", \"Parenthesized pattern (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"(a, (b)) => 42\", \"Parenthesized pattern (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (eval = 10) => 42\", \"Assigning to eval in strict mode (1:15)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; eval => 42\", \"Binding eval in strict mode (1:14)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; arguments => 42\", \"Binding arguments in strict mode (1:14)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (eval, a) => 42\", \"Binding eval in strict mode (1:15)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (arguments, a) => 42\", \"Binding arguments in strict mode (1:15)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (eval, a = 10) => 42\", \"Binding eval in strict mode (1:15)\", {ecmaVersion: 6});\n\ntestFail(\"(a, a) => 42\", \"Argument name clash (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"function foo(a, a = 2) {}\", \"Argument name clash (1:16)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (a, a) => 42\", \"Argument name clash (1:18)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (a) => 00\", \"Invalid number (1:21)\", {ecmaVersion: 6});\n\ntestFail(\"() <= 42\", \"Unexpected token (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"(10) => 00\", \"Assigning to rvalue (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"(10, 20) => 00\", \"Assigning to rvalue (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"yield v\", \"Unexpected token (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"yield 10\", \"Unexpected token (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"void { [1, 2]: 3 };\", \"Unexpected token (1:9)\", {ecmaVersion: 6});\n\ntestFail(\"let [this] = [10]\", \"Unexpected keyword 'this' (1:5)\", {ecmaVersion: 6});\ntestFail(\"let {this} = x\", \"Unexpected keyword 'this' (1:5)\", {ecmaVersion: 6});\ntestFail(\"let [function] = [10]\", \"Unexpected keyword 'function' (1:5)\", {ecmaVersion: 6});\ntestFail(\"let [function] = x\", \"Unexpected keyword 'function' (1:5)\", {ecmaVersion: 6});\ntestFail(\"([function] = [10])\", \"Unexpected token (1:10)\", {ecmaVersion: 6});\ntestFail(\"([this] = [10])\", \"Assigning to rvalue (1:2)\", {ecmaVersion: 6});\ntestFail(\"({this} = x)\", \"Unexpected keyword 'this' (1:2)\", {ecmaVersion: 6});\ntestFail(\"var x = {this}\", \"Unexpected keyword 'this' (1:9)\", {ecmaVersion: 6});\n\ntest(\"yield* 10\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"BinaryExpression\",\n      operator: \"*\",\n      left: {\n        type: \"Identifier\",\n        name: \"yield\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 5}\n        }\n      },\n      right: {\n        type: \"Literal\",\n        value: 10,\n        raw: \"10\",\n        loc: {\n          start: {line: 1, column: 7},\n          end: {line: 1, column: 9}\n        }\n      },\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 9}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 9}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 9}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"e => yield* 10\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      id: null,\n      params: [{\n        type: \"Identifier\",\n        name: \"e\",\n        loc: {\n          start: {line: 1, column: 0},\n          end: {line: 1, column: 1}\n        }\n      }],\n      body: {\n        type: \"BinaryExpression\",\n        operator: \"*\",\n        left: {\n          type: \"Identifier\",\n          name: \"yield\",\n          loc: {\n            start: {line: 1, column: 5},\n            end: {line: 1, column: 10}\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 10,\n          raw: \"10\",\n          loc: {\n            start: {line: 1, column: 12},\n            end: {line: 1, column: 14}\n          }\n        },\n        loc: {\n          start: {line: 1, column: 5},\n          end: {line: 1, column: 14}\n        }\n      },\n      generator: false,\n      expression: true,\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 14}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 14}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 14}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntestFail(\"(function () { yield 10 })\", \"Unexpected token (1:21)\", {ecmaVersion: 6});\n\ntest(\"(function () { yield* 10 })\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"FunctionExpression\",\n      id: null,\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [{\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"BinaryExpression\",\n            operator: \"*\",\n            left: {\n              type: \"Identifier\",\n              name: \"yield\",\n              loc: {\n                start: {line: 1, column: 15},\n                end: {line: 1, column: 20}\n              }\n            },\n            right: {\n              type: \"Literal\",\n              value: 10,\n              raw: \"10\",\n              loc: {\n                start: {line: 1, column: 22},\n                end: {line: 1, column: 24}\n              }\n            },\n            loc: {\n              start: {line: 1, column: 15},\n              end: {line: 1, column: 24}\n            }\n          },\n          loc: {\n            start: {line: 1, column: 15},\n            end: {line: 1, column: 24}\n          }\n        }],\n        loc: {\n          start: {line: 1, column: 13},\n          end: {line: 1, column: 26}\n        }\n      },\n      generator: false,\n      expression: false,\n      loc: {\n        start: {line: 1, column: 1},\n        end: {line: 1, column: 26}\n      }\n    },\n    loc: {\n      start: {line: 1, column: 0},\n      end: {line: 1, column: 27}\n    }\n  }],\n  loc: {\n    start: {line: 1, column: 0},\n    end: {line: 1, column: 27}\n  }\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"let + 1\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"BinaryExpression\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"name\": \"let\"\n        },\n        \"operator\": \"+\",\n        \"right\": {\n          \"type\": \"Literal\",\n          \"value\": 1,\n          \"raw\": \"1\"\n        }\n      }\n    }\n  ]\n}, {ecmaVersion: 6})\n\ntest(\"var let = 1\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"name\": \"let\"\n          },\n          \"init\": {\n            \"type\": \"Literal\",\n            \"value\": 1,\n            \"raw\": \"1\"\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ]\n}, {ecmaVersion: 6})\n\n\ntestFail(\"let let\", \"let is disallowed as a lexically bound name (1:4)\", {ecmaVersion: 6})\n\ntestFail(\"const let\", \"let is disallowed as a lexically bound name (1:6)\", {ecmaVersion: 6})\n\ntestFail(\"let { let } = {};\", \"let is disallowed as a lexically bound name (1:6)\", {ecmaVersion: 6})\n\ntestFail(\"const { let } = {};\", \"let is disallowed as a lexically bound name (1:8)\", {ecmaVersion: 6})\n\ntestFail(\"let [let] = [];\", \"let is disallowed as a lexically bound name (1:5)\", {ecmaVersion: 6})\n\ntestFail(\"const [let] = [];\", \"let is disallowed as a lexically bound name (1:7)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; let + 1\", \"The keyword 'let' is reserved (1:14)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; let let\", \"The keyword 'let' is reserved (1:18)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; const let\", \"The keyword 'let' is reserved (1:20)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; let { let } = {};\", \"The keyword 'let' is reserved (1:20)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; const { let } = {};\", \"The keyword 'let' is reserved (1:22)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; let [let] = [];\", \"The keyword 'let' is reserved (1:19)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; const [let] = [];\", \"The keyword 'let' is reserved (1:21)\", {ecmaVersion: 6})\n\ntest(\"if (1) let\\n{}\", {}, {ecmaVersion: 6})\n\ntest(\"var yield = 2\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"name\": \"yield\"\n          },\n          \"init\": {\n            \"type\": \"Literal\",\n            \"value\": 2,\n            \"raw\": \"2\"\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ]\n}, {ecmaVersion: 6})\n\ntestFail(\"(function() { \\\"use strict\\\"; f(yield v) })\", \"The keyword 'yield' is reserved (1:30)\", {ecmaVersion: 6});\n\ntestFail(\"var obj = { *test** }\", \"Unexpected token (1:17)\", {ecmaVersion: 6});\n\ntestFail(\"class A extends yield B { }\", \"The keyword 'yield' is reserved (1:16)\", {ecmaVersion: 6});\n\ntestFail(\"class default\", \"Unexpected token (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"class let {}\", \"The keyword 'let' is reserved (1:6)\", {ecmaVersion: 6})\n\ntestFail(\"`test\", \"Unterminated template (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"switch `test`\", \"Unexpected token (1:7)\", {ecmaVersion: 6});\n\ntestFail(\"`hello ${10 `test`\", \"Unexpected token (1:18)\", {ecmaVersion: 6});\n\ntestFail(\"`hello ${10;test`\", \"Unexpected token (1:11)\", {ecmaVersion: 6});\n\ntestFail(\"function a() 1 // expression closure is not supported\", \"Unexpected token (1:13)\", {ecmaVersion: 6});\n\ntestFail(\"({ \\\"chance\\\" }) = obj\", \"Unexpected token (1:12)\", {ecmaVersion: 6});\n\ntestFail(\"({ 42 }) = obj\", \"Unexpected token (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"function f(a, ...b, c)\", \"Comma is not permitted after the rest element (1:18)\", {ecmaVersion: 6});\n\ntestFail(\"function f(a, ...b = 0)\", \"Unexpected token (1:19)\", {ecmaVersion: 6});\ntestFail(\"(([a, ...b = 0]) => {})\", \"Rest elements cannot have a default value (1:9)\", {ecmaVersion: 7});\ntestFail(\"[a, ...b = 0] = []\", \"Rest elements cannot have a default value (1:7)\", {ecmaVersion: 6});\n\ntestFail(\"function x(...{ a }){}\", \"Unexpected token (1:14)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; function x(a, { a }){}\", \"Argument name clash (1:30)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; function x({ b: { a } }, [{ b: { a } }]){}\", \"Argument name clash (1:47)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; function x(a, ...[a]){}\", \"Unexpected token (1:31)\", {ecmaVersion: 6});\n\ntestFail(\"(...a, b) => {}\", \"Comma is not permitted after the rest element (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"([ 5 ]) => {}\", \"Assigning to rvalue (1:3)\", {ecmaVersion: 6});\n\ntestFail(\"({ 5 }) => {}\", \"Unexpected token (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"(...[ 5 ]) => {}\", \"Unexpected token (1:6)\", {ecmaVersion: 7});\n\ntest(\"[...{ a }] = b\", {}, {ecmaVersion: 6});\n\ntestFail(\"[...a, b] = c\", \"Comma is not permitted after the rest element (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"({ t(eval) { \\\"use strict\\\"; } });\", \"Binding eval in strict mode (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; `${test}\\\\02`;\", \"Octal literal in template string (1:22)\", {ecmaVersion: 6});\n\ntestFail(\"if (1) import \\\"acorn\\\";\", \"'import' and 'export' may only appear at the top level (1:7)\", {ecmaVersion: 6});\n\ntestFail(\"[...a, ] = b\", \"Comma is not permitted after the rest element (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"if (b,...a, );\", \"Unexpected token (1:6)\", {ecmaVersion: 6});\n\ntestFail(\"(b, ...a)\", \"Unexpected token (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"switch (cond) { case 10: let a = 20; \", \"Unexpected token (1:37)\", {ecmaVersion: 6});\n\ntestFail(\"\\\"use strict\\\"; (eval) => 42\", \"Binding eval in strict mode (1:15)\", {ecmaVersion: 6});\n\ntestFail(\"(eval) => { \\\"use strict\\\"; 42 }\", \"Binding eval in strict mode (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"({ get test() { } }) => 42\", \"Object pattern can't contain getter or setter (1:7)\", {ecmaVersion: 6});\n\n/* Regression tests */\n\n// # https://github.com/acornjs/acorn/issues/127\ntest('doSmth(`${x} + ${y} = ${x + y}`)', {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"CallExpression\",\n      callee: {\n        type: \"Identifier\",\n        name: \"doSmth\"\n      },\n      arguments: [{\n        type: \"TemplateLiteral\",\n        expressions: [\n          {\n            type: \"Identifier\",\n            name: \"x\"\n          },\n          {\n            type: \"Identifier\",\n            name: \"y\"\n          },\n          {\n            type: \"BinaryExpression\",\n            left: {\n              type: \"Identifier\",\n              name: \"x\"\n            },\n            operator: \"+\",\n            right: {\n              type: \"Identifier\",\n              name: \"y\"\n            }\n          }\n        ],\n        quasis: [\n          {\n            type: \"TemplateElement\",\n            value: {cooked: \"\", raw: \"\"},\n            tail: false\n          },\n          {\n            type: \"TemplateElement\",\n            value: {cooked: \" + \", raw: \" + \"},\n            tail: false\n          },\n          {\n            type: \"TemplateElement\",\n            value: {cooked: \" = \", raw: \" = \"},\n            tail: false\n          },\n          {\n            type: \"TemplateElement\",\n            value: {cooked: \"\", raw: \"\"},\n            tail: true\n          }\n        ]\n      }]\n    }\n  }]\n}, {ecmaVersion: 6});\n\n// # https://github.com/acornjs/acorn/issues/129\ntest('function normal(x, y = 10) {}', {\n  type: \"Program\",\n  body: [{\n    type: \"FunctionDeclaration\",\n    id: {\n      type: \"Identifier\",\n      name: \"normal\"\n    },\n    params: [\n      {\n        type: \"Identifier\",\n        name: \"x\"\n      },\n      {\n        type: \"AssignmentPattern\",\n        left: {\n          type: \"Identifier\",\n          name: \"y\"\n        },\n        right: {\n          type: \"Literal\",\n          value: 10,\n          raw: \"10\"\n        }\n      }\n    ],\n    generator: false,\n    body: {\n      type: \"BlockStatement\",\n      body: []\n    },\n    expression: false\n  }]\n}, {ecmaVersion: 6});\n\n// test preserveParens option with arrow functions\ntest(\"() => 42\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      expression: true\n    }\n  }]\n}, {ecmaVersion: 6, preserveParens: true});\n\n// https://github.com/acornjs/acorn/issues/161\ntest(\"import foo, * as bar from 'baz';\", {\n  type: \"Program\",\n  body: [{\n    type: \"ImportDeclaration\",\n    specifiers: [\n      {\n        type: \"ImportDefaultSpecifier\",\n        local: {\n          type: \"Identifier\",\n          name: \"foo\"\n        }\n      },\n      {\n        type: \"ImportNamespaceSpecifier\",\n        local: {\n          type: \"Identifier\",\n          name: \"bar\"\n        }\n      }\n    ],\n    source: {\n      type: \"Literal\",\n      value: \"baz\",\n      raw: \"'baz'\"\n    }\n  }]\n}, {ecmaVersion: 6, sourceType: \"module\"});\n\n// https://github.com/acornjs/acorn/issues/173\ntest(\"`{${x}}`, `}`\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"SequenceExpression\",\n      expressions: [\n        {\n          type: \"TemplateLiteral\",\n          expressions: [{\n            type: \"Identifier\",\n            name: \"x\"\n          }],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              value: {cooked: \"{\", raw: \"{\"},\n              tail: false\n            },\n            {\n              type: \"TemplateElement\",\n              value: {cooked: \"}\", raw: \"}\"},\n              tail: true\n            }\n          ]\n        },\n        {\n          type: \"TemplateLiteral\",\n          expressions: [],\n          quasis: [{\n            type: \"TemplateElement\",\n            value: {cooked: \"}\", raw: \"}\"},\n            tail: true\n          }]\n        }\n      ]\n    }\n  }]\n}, {ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/186\ntest('var {get} = obj;', {\n  type: \"Program\",\n  body: [{\n    type: \"VariableDeclaration\",\n    declarations: [{\n      type: \"VariableDeclarator\",\n      id: {\n        type: \"ObjectPattern\",\n        properties: [{\n          type: \"Property\",\n          method: false,\n          shorthand: true,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            name: \"get\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"Identifier\",\n            name: \"get\"\n          }\n        }]\n      },\n      init: {\n        type: \"Identifier\",\n        name: \"obj\"\n      }\n    }],\n    kind: \"var\"\n  }]\n}, {ecmaVersion: 6});\n\n// Destructuring defaults (https://github.com/acornjs/acorn/issues/181)\n\ntest(\"var {propName: localVar = defaultValue} = obj\", {\n  type: \"Program\",\n  range: [0, 45],\n  body: [{\n    type: \"VariableDeclaration\",\n    range: [0, 45],\n    declarations: [{\n      type: \"VariableDeclarator\",\n      range: [4, 45],\n      id: {\n        type: \"ObjectPattern\",\n        range: [4, 39],\n        properties: [{\n          type: \"Property\",\n          range: [5, 38],\n          method: false,\n          shorthand: false,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            range: [5, 13],\n            name: \"propName\"\n          },\n          value: {\n            type: \"AssignmentPattern\",\n            range: [15, 38],\n            left: {\n              type: \"Identifier\",\n              range: [15, 23],\n              name: \"localVar\"\n            },\n            right: {\n              type: \"Identifier\",\n              range: [26, 38],\n              name: \"defaultValue\"\n            }\n          },\n          kind: \"init\"\n        }]\n      },\n      init: {\n        type: \"Identifier\",\n        range: [42, 45],\n        name: \"obj\"\n      }\n    }],\n    kind: \"var\"\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var {propName = defaultValue} = obj\", {\n  type: \"Program\",\n  range: [0, 35],\n  body: [{\n    type: \"VariableDeclaration\",\n    range: [0, 35],\n    declarations: [{\n      type: \"VariableDeclarator\",\n      range: [4, 35],\n      id: {\n        type: \"ObjectPattern\",\n        range: [4, 29],\n        properties: [{\n          type: \"Property\",\n          range: [5, 28],\n          method: false,\n          shorthand: true,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            range: [5, 13],\n            name: \"propName\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"AssignmentPattern\",\n            range: [5, 28],\n            left: {\n              type: \"Identifier\",\n              range: [5, 13],\n              name: \"propName\"\n            },\n            right: {\n              type: \"Identifier\",\n              range: [16, 28],\n              name: \"defaultValue\"\n            }\n          }\n        }]\n      },\n      init: {\n        type: \"Identifier\",\n        range: [32, 35],\n        name: \"obj\"\n      }\n    }],\n    kind: \"var\"\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var {get = defaultValue} = obj\", {\n  type: \"Program\",\n  range: [0, 30],\n  body: [{\n    type: \"VariableDeclaration\",\n    range: [0, 30],\n    declarations: [{\n      type: \"VariableDeclarator\",\n      range: [4, 30],\n      id: {\n        type: \"ObjectPattern\",\n        range: [4, 24],\n        properties: [{\n          type: \"Property\",\n          range: [5, 23],\n          method: false,\n          shorthand: true,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            range: [5, 8],\n            name: \"get\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"AssignmentPattern\",\n            range: [5, 23],\n            left: {\n              type: \"Identifier\",\n              range: [5, 8],\n              name: \"get\"\n            },\n            right: {\n              type: \"Identifier\",\n              range: [11, 23],\n              name: \"defaultValue\"\n            }\n          }\n        }]\n      },\n      init: {\n        type: \"Identifier\",\n        range: [27, 30],\n        name: \"obj\"\n      }\n    }],\n    kind: \"var\"\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"var [localVar = defaultValue] = obj\", {\n  type: \"Program\",\n  range: [0, 35],\n  body: [{\n    type: \"VariableDeclaration\",\n    range: [0, 35],\n    declarations: [{\n      type: \"VariableDeclarator\",\n      range: [4, 35],\n      id: {\n        type: \"ArrayPattern\",\n        range: [4, 29],\n        elements: [{\n          type: \"AssignmentPattern\",\n          range: [5, 28],\n          left: {\n            type: \"Identifier\",\n            range: [5, 13],\n            name: \"localVar\"\n          },\n          right: {\n            type: \"Identifier\",\n            range: [16, 28],\n            name: \"defaultValue\"\n          }\n        }]\n      },\n      init: {\n        type: \"Identifier\",\n        range: [32, 35],\n        name: \"obj\"\n      }\n    }],\n    kind: \"var\"\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"({x = 0} = obj)\", {\n  type: \"Program\",\n  range: [0, 15],\n  body: [{\n    type: \"ExpressionStatement\",\n    range: [0, 15],\n    expression: {\n      type: \"AssignmentExpression\",\n      range: [1, 14],\n      operator: \"=\",\n      left: {\n        type: \"ObjectPattern\",\n        range: [1, 8],\n        properties: [{\n          type: \"Property\",\n          range: [2, 7],\n          method: false,\n          shorthand: true,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            range: [2, 3],\n            name: \"x\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"AssignmentPattern\",\n            range: [2, 7],\n            left: {\n              type: \"Identifier\",\n              range: [2, 3],\n              name: \"x\"\n            },\n            right: {\n              type: \"Literal\",\n              range: [6, 7],\n              value: 0\n            }\n          }\n        }]\n      },\n      right: {\n        type: \"Identifier\",\n        range: [11, 14],\n        name: \"obj\"\n      }\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true\n});\n\ntest(\"({x = 0}) => x\", {\n  type: \"Program\",\n  range: [0, 14],\n  body: [{\n    type: \"ExpressionStatement\",\n    range: [0, 14],\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      range: [0, 14],\n      id: null,\n      generator: false,\n      expression: true,\n      params: [{\n        type: \"ObjectPattern\",\n        range: [1, 8],\n        properties: [{\n          type: \"Property\",\n          range: [2, 7],\n          method: false,\n          shorthand: true,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            range: [2, 3],\n            name: \"x\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"AssignmentPattern\",\n            range: [2, 7],\n            left: {\n              type: \"Identifier\",\n              range: [2, 3],\n              name: \"x\"\n            },\n            right: {\n              type: \"Literal\",\n              range: [6, 7],\n              value: 0\n            }\n          }\n        }]\n      }],\n      body: {\n        type: \"Identifier\",\n        range: [13, 14],\n        name: \"x\"\n      }\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true\n});\n\ntest(\"[a, {b: {c = 1}}] = arr\", {\n  type: \"Program\",\n  range: [0, 23],\n  body: [{\n    type: \"ExpressionStatement\",\n    range: [0, 23],\n    expression: {\n      type: \"AssignmentExpression\",\n      range: [0, 23],\n      operator: \"=\",\n      left: {\n        type: \"ArrayPattern\",\n        range: [0, 17],\n        elements: [\n          {\n            type: \"Identifier\",\n            range: [1, 2],\n            name: \"a\"\n          },\n          {\n            type: \"ObjectPattern\",\n            range: [4, 16],\n            properties: [{\n              type: \"Property\",\n              range: [5, 15],\n              method: false,\n              shorthand: false,\n              computed: false,\n              key: {\n                type: \"Identifier\",\n                range: [5, 6],\n                name: \"b\"\n              },\n              value: {\n                type: \"ObjectPattern\",\n                range: [8, 15],\n                properties: [{\n                  type: \"Property\",\n                  range: [9, 14],\n                  method: false,\n                  shorthand: true,\n                  computed: false,\n                  key: {\n                    type: \"Identifier\",\n                    range: [9, 10],\n                    name: \"c\"\n                  },\n                  kind: \"init\",\n                  value: {\n                    type: \"AssignmentPattern\",\n                    range: [9, 14],\n                    left: {\n                      type: \"Identifier\",\n                      range: [9, 10],\n                      name: \"c\"\n                    },\n                    right: {\n                      type: \"Literal\",\n                      range: [13, 14],\n                      value: 1\n                    }\n                  }\n                }]\n              },\n              kind: \"init\"\n            }]\n          }\n        ]\n      },\n      right: {\n        type: \"Identifier\",\n        range: [20, 23],\n        name: \"arr\"\n      }\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true\n});\n\ntest(\"for ({x = 0} in arr);\", {\n  type: \"Program\",\n  range: [0, 21],\n  body: [{\n    type: \"ForInStatement\",\n    range: [0, 21],\n    left: {\n      type: \"ObjectPattern\",\n      range: [5, 12],\n      properties: [{\n        type: \"Property\",\n        range: [6, 11],\n        method: false,\n        shorthand: true,\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          range: [6, 7],\n          name: \"x\"\n        },\n        kind: \"init\",\n        value: {\n          type: \"AssignmentPattern\",\n          range: [6, 11],\n          left: {\n            type: \"Identifier\",\n            range: [6, 7],\n            name: \"x\"\n          },\n          right: {\n            type: \"Literal\",\n            range: [10, 11],\n            value: 0\n          }\n        }\n      }]\n    },\n    right: {\n      type: \"Identifier\",\n      range: [16, 19],\n      name: \"arr\"\n    },\n    body: {\n      type: \"EmptyStatement\",\n      range: [20, 21]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true\n});\n\ntestFail(\"obj = {x = 0}\", \"Shorthand property assignments are valid only in destructuring patterns (1:9)\", {ecmaVersion: 6});\n\ntestFail(\"f({x = 0})\", \"Shorthand property assignments are valid only in destructuring patterns (1:5)\", {ecmaVersion: 6});\n\ntestFail(\"(localVar |= defaultValue) => {}\", \"Only '=' operator can be used for specifying default value. (1:9)\", {loose: false, ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/191\n\ntest(\"try {} catch ({message}) {}\", {\n  type: \"Program\",\n  range: [0, 27],\n  body: [{\n    type: \"TryStatement\",\n    range: [0, 27],\n    block: {\n      type: \"BlockStatement\",\n      range: [4, 6],\n      body: []\n    },\n    handler: {\n      type: \"CatchClause\",\n      range: [7, 27],\n      param: {\n        type: \"ObjectPattern\",\n        range: [14, 23],\n        properties: [{\n          type: \"Property\",\n          range: [15, 22],\n          method: false,\n          shorthand: true,\n          computed: false,\n          key: {\n            type: \"Identifier\",\n            range: [15, 22],\n            name: \"message\"\n          },\n          kind: \"init\",\n          value: {\n            type: \"Identifier\",\n            range: [15, 22],\n            name: \"message\"\n          }\n        }]\n      },\n      body: {\n        type: \"BlockStatement\",\n        range: [25, 27],\n        body: []\n      }\n    },\n    finalizer: null\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// https://github.com/acornjs/acorn/issues/192\n\ntest(\"class A { static() {} }\", {\n  type: \"Program\",\n  range: [0, 23],\n  body: [{\n    type: \"ClassDeclaration\",\n    range: [0, 23],\n    id: {\n      type: \"Identifier\",\n      range: [6, 7],\n      name: \"A\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      range: [8, 23],\n      body: [{\n        type: \"MethodDefinition\",\n        range: [10, 21],\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          range: [10, 16],\n          name: \"static\"\n        },\n        static: false,\n        kind: \"method\",\n        value: {\n          type: \"FunctionExpression\",\n          range: [16, 21],\n          id: null,\n          params: [],\n          generator: false,\n          body: {\n            type: \"BlockStatement\",\n            range: [19, 21],\n            body: []\n          },\n          expression: false\n        }\n      }]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\n// https://github.com/acornjs/acorn/issues/213\n\ntest(\"for (const x of list) process(x);\", {\n  type: \"Program\",\n  body: [{\n    type: \"ForOfStatement\",\n    left: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"x\",\n          range: [11, 12]\n        },\n        init: null,\n        range: [11, 12]\n      }],\n      kind: \"const\",\n      range: [5, 12]\n    },\n    right: {\n      type: \"Identifier\",\n      name: \"list\",\n      range: [16, 20]\n    },\n    body: {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"process\",\n          range: [22, 29]\n        },\n        arguments: [{\n          type: \"Identifier\",\n          name: \"x\",\n          range: [30, 31]\n        }],\n        range: [22, 32]\n      },\n      range: [22, 33]\n    },\n    range: [0, 33]\n  }],\n  range: [0, 33]\n}, {ecmaVersion: 6, ranges: true});\n\ntest(\"class A { *static() {} }\", {\n  type: \"Program\",\n  range: [0, 24],\n  body: [{\n    type: \"ClassDeclaration\",\n    range: [0, 24],\n    id: {\n      type: \"Identifier\",\n      range: [6, 7],\n      name: \"A\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      range: [8, 24],\n      body: [{\n        type: \"MethodDefinition\",\n        range: [10, 22],\n        computed: false,\n        key: {\n          type: \"Identifier\",\n          range: [11, 17],\n          name: \"static\"\n        },\n        static: false,\n        kind: \"method\",\n        value: {\n          type: \"FunctionExpression\",\n          range: [17, 22],\n          id: null,\n          params: [],\n          generator: true,\n          body: {\n            type: \"BlockStatement\",\n            range: [20, 22],\n            body: []\n          },\n          expression: false\n        }\n      }]\n    }\n  }]\n}, {\n  ecmaVersion: 6,\n  ranges: true,\n  locations: true\n});\n\ntest(\"`${/\\\\d/.exec('1')[0]}`\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 22,\n      \"expression\": {\n        \"type\": \"TemplateLiteral\",\n        \"start\": 0,\n        \"end\": 22,\n        \"expressions\": [\n          {\n            \"type\": \"MemberExpression\",\n            \"start\": 3,\n            \"end\": 20,\n            \"object\": {\n              \"type\": \"CallExpression\",\n              \"start\": 3,\n              \"end\": 17,\n              \"callee\": {\n                \"type\": \"MemberExpression\",\n                \"start\": 3,\n                \"end\": 12,\n                \"object\": {\n                  \"type\": \"Literal\",\n                  \"start\": 3,\n                  \"end\": 7,\n                  \"regex\": {\n                    \"pattern\": \"\\\\d\",\n                    \"flags\": \"\"\n                  },\n                  \"value\": /\\d/,\n                  \"raw\": \"/\\\\d/\"\n                },\n                \"property\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 8,\n                  \"end\": 12,\n                  \"name\": \"exec\"\n                },\n                \"computed\": false\n              },\n              \"arguments\": [\n                {\n                  \"type\": \"Literal\",\n                  \"start\": 13,\n                  \"end\": 16,\n                  \"value\": \"1\",\n                  \"raw\": \"'1'\"\n                }\n              ]\n            },\n            \"property\": {\n              \"type\": \"Literal\",\n              \"start\": 18,\n              \"end\": 19,\n              \"value\": 0,\n              \"raw\": \"0\"\n            },\n            \"computed\": true\n          }\n        ],\n        \"quasis\": [\n          {\n            \"type\": \"TemplateElement\",\n            \"start\": 1,\n            \"end\": 1,\n            \"value\": {\n              \"raw\": \"\",\n              \"cooked\": \"\"\n            },\n            \"tail\": false\n          },\n          {\n            \"type\": \"TemplateElement\",\n            \"start\": 21,\n            \"end\": 21,\n            \"value\": {\n              \"raw\": \"\",\n              \"cooked\": \"\"\n            },\n            \"tail\": true\n          }\n        ]\n      }\n    }\n  ]\n}, {\n  ecmaVersion: 6\n});\n\ntest(\"var _𐒦 = 10;\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 13,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 12,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 7,\n            \"name\": \"_𐒦\"\n          },\n          \"init\": {\n            \"type\": \"Literal\",\n            \"start\": 10,\n            \"end\": 12,\n            \"value\": 10,\n            \"raw\": \"10\"\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ]\n}, {ecmaVersion: 6});\n\ntest(\"var 𫠝_ = 10;\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 13,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 12,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 7,\n            \"name\": \"𫠝_\"\n          },\n          \"init\": {\n            \"type\": \"Literal\",\n            \"start\": 10,\n            \"end\": 12,\n            \"value\": 10,\n            \"raw\": \"10\"\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ]\n}, {ecmaVersion: 6});\n\ntest(\"var _\\\\u{104A6} = 10;\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 19,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 14,\n            \"name\": \"_𐒦\"\n          },\n          \"init\": {\n            \"type\": \"Literal\",\n            \"start\": 17,\n            \"end\": 19,\n            \"value\": 10,\n            \"raw\": \"10\"\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ]\n}, {ecmaVersion: 6});\n\ntest(\"let [x,] = [1]\", {\n  \"start\": 0,\n  \"body\": [\n    {\n      \"start\": 0,\n      \"declarations\": [\n        {\n          \"start\": 4,\n          \"id\": {\n            \"start\": 4,\n            \"elements\": [\n              {\n                \"start\": 5,\n                \"name\": \"x\",\n                \"type\": \"Identifier\",\n                \"end\": 6\n              }\n            ],\n            \"type\": \"ArrayPattern\",\n            \"end\": 8\n          },\n          \"init\": {\n            \"start\": 11,\n            \"elements\": [\n              {\n                \"start\": 12,\n                \"value\": 1,\n                \"raw\": \"1\",\n                \"type\": \"Literal\",\n                \"end\": 13\n              }\n            ],\n            \"type\": \"ArrayExpression\",\n            \"end\": 14\n          },\n          \"type\": \"VariableDeclarator\",\n          \"end\": 14\n        }\n      ],\n      \"kind\": \"let\",\n      \"type\": \"VariableDeclaration\",\n      \"end\": 14\n    }\n  ],\n  \"type\": \"Program\",\n  \"end\": 14\n}, {ecmaVersion: 6});\n\ntest(\"let {x} = y\", {\n  \"start\": 0,\n  \"body\": [\n    {\n      \"start\": 0,\n      \"declarations\": [\n        {\n          \"start\": 4,\n          \"id\": {\n            \"start\": 4,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 5,\n                \"end\": 6,\n                \"method\": false,\n                \"shorthand\": true,\n                \"computed\": false,\n                \"key\": {\n                  \"start\": 5,\n                  \"name\": \"x\",\n                  \"type\": \"Identifier\",\n                  \"end\": 6\n                },\n                \"value\": {\n                  \"start\": 5,\n                  \"name\": \"x\",\n                  \"type\": \"Identifier\",\n                  \"end\": 6\n                },\n                \"kind\": \"init\"\n              }\n            ],\n            \"type\": \"ObjectPattern\",\n            \"end\": 7\n          },\n          \"init\": {\n            \"start\": 10,\n            \"name\": \"y\",\n            \"type\": \"Identifier\",\n            \"end\": 11\n          },\n          \"type\": \"VariableDeclarator\",\n          \"end\": 11\n        }\n      ],\n      \"kind\": \"let\",\n      \"type\": \"VariableDeclaration\",\n      \"end\": 11\n    }\n  ],\n  \"type\": \"Program\",\n  \"end\": 11\n}, {ecmaVersion: 6})\n\ntest(\"[x,,] = 1\", {}, {ecmaVersion: 6});\n\ntest(\"for (var [name, value] in obj) {}\", {\n  body: [\n    {\n      left: {\n        declarations: [\n          {\n            id: {\n              elements: [\n                {\n                  name: \"name\",\n                  type: \"Identifier\"\n                },\n                {\n                  name: \"value\",\n                  type: \"Identifier\"\n                }\n              ],\n              type: \"ArrayPattern\"\n            },\n            init: null,\n            type: \"VariableDeclarator\"\n          }\n        ],\n        kind: \"var\",\n        type: \"VariableDeclaration\"\n      },\n      right: {\n        name: \"obj\",\n        type: \"Identifier\"\n      },\n      body: {\n        body: [],\n        type: \"BlockStatement\"\n      },\n      type: \"ForInStatement\"\n    }\n  ],\n  sourceType: \"script\",\n  type: \"Program\"\n}, {ecmaVersion: 6})\n\ntestFail(\"let [x]\", \"Complex binding patterns require an initialization value (1:7)\", {ecmaVersion: 6})\ntestFail(\"var [x]\", \"Complex binding patterns require an initialization value (1:7)\", {ecmaVersion: 6})\ntestFail(\"var _𖫵 = 11;\", \"Unexpected character '𖫵' (1:5)\", {ecmaVersion: 6});\ntestFail(\"var 𫠞_ = 12;\", \"Unexpected character '𫠞' (1:4)\", {ecmaVersion: 6});\ntestFail(\"var 𫠝_ = 10;\", \"Unexpected character '𫠝' (1:4)\", {ecmaVersion: 5});\ntestFail(\"if (1) let x = 10;\", \"Unexpected token (1:11)\", {ecmaVersion: 6});\ntestFail(\"for (;;) const x = 10;\", \"Unexpected token (1:9)\", {ecmaVersion: 6});\ntestFail(\"while (1) function foo(){}\", \"Unexpected token (1:10)\", {ecmaVersion: 6});\ntestFail(\"if (1) ; else class Cls {}\", \"Unexpected token (1:14)\", {ecmaVersion: 6});\n\ntestFail(\"'use strict'; [...eval] = arr\", \"Assigning to eval in strict mode (1:18)\", {ecmaVersion: 6});\ntestFail(\"'use strict'; ({eval = defValue} = obj)\", \"Assigning to eval in strict mode (1:16)\", {ecmaVersion: 6});\n\ntestFail(\"[...eval] = arr\", \"Assigning to eval in strict mode (1:4)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntestFail(\"function* y({yield}) {}\", \"Cannot use 'yield' as identifier inside a generator (1:13)\", {ecmaVersion: 6});\n\ntest(\"function foo() { new.target; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"foo\"\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"MetaProperty\",\n              meta: {type: \"Identifier\", name: \"new\"},\n              property: {type: \"Identifier\", name: \"target\"}\n            }\n          }\n        ]\n      },\n      generator: false,\n      expression: false\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 6});\n\ntestFail(\"new.prop\", \"The only valid meta property for new is 'new.target' (1:4)\", {ecmaVersion: 6});\ntestFail(\"new.target\", \"'new.target' can only be used in functions and class static block (1:0)\", {ecmaVersion: 6, commonjs: false});\ntest(\"function x() { return () => new.target }\", {}, {ecmaVersion: 6});\ntestFail(\"let y = () => new.target\", \"'new.target' can only be used in functions and class static block (1:14)\", {ecmaVersion: 6, commonjs: false});\n\ntest(\"export default function foo() {} false\", {\n  body: [\n    {\n      declaration: {\n        id: {\n          name: \"foo\",\n          type: \"Identifier\"\n        },\n        generator: false,\n        expression: false,\n        params: [],\n        body: {\n          body: [],\n          type: \"BlockStatement\"\n        },\n        type: \"FunctionDeclaration\"\n      },\n      type: \"ExportDefaultDeclaration\"\n    },\n    {\n      expression: {\n        value: false,\n        raw: \"false\",\n        type: \"Literal\"\n      },\n      type: \"ExpressionStatement\"\n    }\n  ],\n  sourceType: \"module\",\n  type: \"Program\"\n}, {ecmaVersion: 6, sourceType: \"module\"})\n\n// https://github.com/acornjs/acorn/issues/274\n\ntestFail(\"`\\\\07`\", \"Octal literal in template string (1:1)\", {ecmaVersion: 6});\n\ntestFail(\"(function(){ 'use strict'; '\\\\07'; })\", \"Octal literal in strict mode (1:28)\", {ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/277\n\ntestFail(\"x = { method() 42 }\", \"Unexpected token (1:15)\", {ecmaVersion: 6});\n\ntestFail(\"x = { get method() 42 }\", \"Unexpected token (1:19)\", {ecmaVersion: 6});\n\ntestFail(\"x = { set method(val) v = val }\", \"Unexpected token (1:22)\", {ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/278\n\ntestFail(\"/\\\\u{110000}/u\", \"~\", {ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/279\n\ntestFail(\"super\", \"'super' keyword outside a method (1:0)\", {ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/275\n\ntestFail(\"class A { get prop(x) {} }\", \"getter should have no params (1:18)\", {ecmaVersion: 6});\ntestFail(\"class A { set prop() {} }\", \"setter should have exactly one param (1:18)\", {ecmaVersion: 6});\ntestFail(\"class A { set prop(x, y) {} }\", \"setter should have exactly one param (1:18)\", {ecmaVersion: 6});\n\n// https://github.com/acornjs/acorn/issues/276\n\ntestFail(\"({ __proto__: 1, __proto__: 2 })\", \"Redefinition of __proto__ property (1:17)\", {ecmaVersion: 6});\ntestFail(\"({ '__proto__': 1, __proto__: 2 })\", \"Redefinition of __proto__ property (1:19)\", {ecmaVersion: 6});\ntestFail(\"({ '__proto__': 1, __proto__: 2, a: x = 1 })\", \"Redefinition of __proto__ property (1:19)\", {ecmaVersion: 6});\ntest(\"({ ['__proto__']: 1, __proto__: 2 })\", {}, {ecmaVersion: 6});\ntest(\"({ __proto__() { return 1 }, __proto__: 2 })\", {}, {ecmaVersion: 6});\ntest(\"({ get __proto__() { return 1 }, __proto__: 2 })\", {}, {ecmaVersion: 6});\ntest(\"({ __proto__, __proto__: 2 })\", {}, {ecmaVersion: 6});\ntest(\"({__proto__: a, __proto__: b} = {})\", {}, {ecmaVersion: 6});\n\ntest(\"export default /foo/\", {}, {ecmaVersion: 6, sourceType: \"module\"});\n\ntest(\"l\\\\u0065t\\na\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"name\": \"let\"\n      }\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"Identifier\",\n        \"name\": \"a\"\n      }\n    }\n  ]\n}, {ecmaVersion: 6});\n\ntest(\"var await = 0\", {\n  type: \"Program\",\n  start: 0,\n  end: 13,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  },\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      start: 0,\n      end: 13,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      },\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          start: 4,\n          end: 13,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          },\n          id: {\n            type: \"Identifier\",\n            start: 4,\n            end: 9,\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            },\n            name: \"await\"\n          },\n          init: {\n            type: \"Literal\",\n            start: 12,\n            end: 13,\n            loc: {\n              start: {\n                line: 1,\n                column: 12\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            },\n            value: 0,\n            raw: \"0\"\n          }\n        }\n      ],\n      kind: \"var\"\n    }\n  ],\n  sourceType: \"script\"\n}, {\n  ecmaVersion: 6,\n  sourceType: \"script\",\n  allowReserved: false,\n  locations: true\n})\ntestFail(\"var await = 0\", \"Cannot use keyword 'await' outside an async function (1:4)\", {\n  ecmaVersion: 6,\n  sourceType: \"module\",\n  allowReserved: false,\n  locations: true\n})\n\n// https://github.com/acornjs/acorn/issues/363\n\ntest(\"/[a-z]/gimuy\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        regex: {\n          pattern: \"[a-z]\",\n          flags: \"gimuy\"\n        }\n      }\n    }\n  ]\n}, {ecmaVersion: 6});\ntestFail(\"/[a-z]/s\", \"Invalid regular expression flag (1:1)\", {ecmaVersion: 6});\ntest(\"/[a-z]/s\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 8,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 8,\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"start\": 0,\n        \"end\": 8,\n        \"raw\": \"/[a-z]/s\",\n        \"regex\": {\n          \"pattern\": \"[a-z]\",\n          \"flags\": \"s\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 9});\n\ntestFail(\"[...x in y] = []\", \"Assigning to rvalue (1:4)\", {ecmaVersion: 6});\n\ntestFail(\"export let x = a; export function x() {}\", \"Identifier 'x' has already been declared (1:34)\", {ecmaVersion: 6, sourceType: \"module\"})\ntestFail(\"export let [{x = 2}] = a; export {x}\", \"Duplicate export 'x' (1:34)\", {ecmaVersion: 6, sourceType: \"module\"})\ntestFail(\"export default 100; export default 3\", \"Duplicate export 'default' (1:27)\", {ecmaVersion: 6, sourceType: \"module\"})\n\ntest(\"(([,]) => 0)\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"ArrowFunctionExpression\",\n      params: [{\n        type: \"ArrayPattern\",\n        elements: [null]\n      }],\n      body: {\n        type: \"Literal\",\n        value: 0,\n        raw: \"0\"\n      },\n      expression: true\n    }\n  }]\n}, {ecmaVersion: 6});\n\n// 'eval' and 'arguments' are not reserved word, but those can not be a BindingIdentifier.\n\ntest(\"function foo() { return {arguments} }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 37,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 37,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 37,\n                \"body\": [\n                    {\n                        \"type\": \"ReturnStatement\",\n                        \"start\": 17,\n                        \"end\": 35,\n                        \"argument\": {\n                            \"type\": \"ObjectExpression\",\n                            \"start\": 24,\n                            \"end\": 35,\n                            \"properties\": [\n                                {\n                                    \"type\": \"Property\",\n                                    \"start\": 25,\n                                    \"end\": 34,\n                                    \"method\": false,\n                                    \"shorthand\": true,\n                                    \"computed\": false,\n                                    \"key\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 25,\n                                        \"end\": 34,\n                                        \"name\": \"arguments\"\n                                    },\n                                    \"value\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 25,\n                                        \"end\": 34,\n                                        \"name\": \"arguments\"\n                                    },\n                                    \"kind\": \"init\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\ntest(\"function foo() { return {eval} }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 32,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 32,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 32,\n                \"body\": [\n                    {\n                        \"type\": \"ReturnStatement\",\n                        \"start\": 17,\n                        \"end\": 30,\n                        \"argument\": {\n                            \"type\": \"ObjectExpression\",\n                            \"start\": 24,\n                            \"end\": 30,\n                            \"properties\": [\n                                {\n                                    \"type\": \"Property\",\n                                    \"start\": 25,\n                                    \"end\": 29,\n                                    \"method\": false,\n                                    \"shorthand\": true,\n                                    \"computed\": false,\n                                    \"key\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 25,\n                                        \"end\": 29,\n                                        \"name\": \"eval\"\n                                    },\n                                    \"value\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 25,\n                                        \"end\": 29,\n                                        \"name\": \"eval\"\n                                    },\n                                    \"kind\": \"init\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\ntest(\"function foo() { 'use strict'; return {arguments} }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 51,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 51,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 51,\n                \"body\": [\n                    {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 17,\n                        \"end\": 30,\n                        \"expression\": {\n                            \"type\": \"Literal\",\n                            \"start\": 17,\n                            \"end\": 29,\n                            \"value\": \"use strict\",\n                            \"raw\": \"'use strict'\"\n                        }\n                    },\n                    {\n                        \"type\": \"ReturnStatement\",\n                        \"start\": 31,\n                        \"end\": 49,\n                        \"argument\": {\n                            \"type\": \"ObjectExpression\",\n                            \"start\": 38,\n                            \"end\": 49,\n                            \"properties\": [\n                                {\n                                    \"type\": \"Property\",\n                                    \"start\": 39,\n                                    \"end\": 48,\n                                    \"method\": false,\n                                    \"shorthand\": true,\n                                    \"computed\": false,\n                                    \"key\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 39,\n                                        \"end\": 48,\n                                        \"name\": \"arguments\"\n                                    },\n                                    \"value\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 39,\n                                        \"end\": 48,\n                                        \"name\": \"arguments\"\n                                    },\n                                    \"kind\": \"init\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\ntest(\"function foo() { 'use strict'; return {eval} }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 46,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 46,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 46,\n                \"body\": [\n                    {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 17,\n                        \"end\": 30,\n                        \"expression\": {\n                            \"type\": \"Literal\",\n                            \"start\": 17,\n                            \"end\": 29,\n                            \"value\": \"use strict\",\n                            \"raw\": \"'use strict'\"\n                        }\n                    },\n                    {\n                        \"type\": \"ReturnStatement\",\n                        \"start\": 31,\n                        \"end\": 44,\n                        \"argument\": {\n                            \"type\": \"ObjectExpression\",\n                            \"start\": 38,\n                            \"end\": 44,\n                            \"properties\": [\n                                {\n                                    \"type\": \"Property\",\n                                    \"start\": 39,\n                                    \"end\": 43,\n                                    \"method\": false,\n                                    \"shorthand\": true,\n                                    \"computed\": false,\n                                    \"key\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 39,\n                                        \"end\": 43,\n                                        \"name\": \"eval\"\n                                    },\n                                    \"value\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 39,\n                                        \"end\": 43,\n                                        \"name\": \"eval\"\n                                    },\n                                    \"kind\": \"init\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"function foo() { return {yield} }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 33,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 33,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n            },\n            \"generator\": false,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 15,\n                \"end\": 33,\n                \"body\": [\n                    {\n                        \"type\": \"ReturnStatement\",\n                        \"start\": 17,\n                        \"end\": 31,\n                        \"argument\": {\n                            \"type\": \"ObjectExpression\",\n                            \"start\": 24,\n                            \"end\": 31,\n                            \"properties\": [\n                                {\n                                    \"type\": \"Property\",\n                                    \"start\": 25,\n                                    \"end\": 30,\n                                    \"method\": false,\n                                    \"shorthand\": true,\n                                    \"computed\": false,\n                                    \"key\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 25,\n                                        \"end\": 30,\n                                        \"name\": \"yield\"\n                                    },\n                                    \"value\": {\n                                        \"type\": \"Identifier\",\n                                        \"start\": 25,\n                                        \"end\": 30,\n                                        \"name\": \"yield\"\n                                    },\n                                    \"kind\": \"init\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntestFail(\"function foo() { 'use strict'; return {yield} }\", \"The keyword 'yield' is reserved (1:39)\", {ecmaVersion: 6});\n\ntestFail(\"function foo() { 'use strict'; var {arguments} = {} }\", \"Binding arguments in strict mode (1:36)\", {ecmaVersion: 6});\ntestFail(\"function foo() { 'use strict'; var {eval} = {} }\", \"Binding eval in strict mode (1:36)\", {ecmaVersion: 6});\ntestFail(\"function foo() { 'use strict'; var {arguments = 1} = {} }\", \"Binding arguments in strict mode (1:36)\", {ecmaVersion: 6});\ntestFail(\"function foo() { 'use strict'; var {eval = 1} = {} }\", \"Binding eval in strict mode (1:36)\", {ecmaVersion: 6});\n\n// cannot use yield expressions in parameters.\ntestFail(\"function* wrap() { function* foo(a = 1 + (yield)) {} }\", \"Yield expression cannot be a default value (1:42)\", {ecmaVersion: 6});\ntestFail(\"function* wrap() { return (a = 1 + (yield)) => a }\", \"Yield expression cannot be a default value (1:36)\", {ecmaVersion: 6});\n\n// can use yield expressions in parameters if it's inside of a nested generator.\ntest(\"function* foo(a = function*(b) { yield b }) { }\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 47,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 47,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 10,\n                \"end\": 13,\n                \"name\": \"foo\"\n            },\n            \"generator\": true,\n            \"expression\": false,\n            \"params\": [\n                {\n                    \"type\": \"AssignmentPattern\",\n                    \"start\": 14,\n                    \"end\": 42,\n                    \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 14,\n                        \"end\": 15,\n                        \"name\": \"a\"\n                    },\n                    \"right\": {\n                        \"type\": \"FunctionExpression\",\n                        \"start\": 18,\n                        \"end\": 42,\n                        \"id\": null,\n                        \"generator\": true,\n                        \"expression\": false,\n                        \"params\": [\n                            {\n                                \"type\": \"Identifier\",\n                                \"start\": 28,\n                                \"end\": 29,\n                                \"name\": \"b\"\n                            }\n                        ],\n                        \"body\": {\n                            \"type\": \"BlockStatement\",\n                            \"start\": 31,\n                            \"end\": 42,\n                            \"body\": [\n                                {\n                                    \"type\": \"ExpressionStatement\",\n                                    \"start\": 33,\n                                    \"end\": 40,\n                                    \"expression\": {\n                                        \"type\": \"YieldExpression\",\n                                        \"start\": 33,\n                                        \"end\": 40,\n                                        \"delegate\": false,\n                                        \"argument\": {\n                                            \"type\": \"Identifier\",\n                                            \"start\": 39,\n                                            \"end\": 40,\n                                            \"name\": \"b\"\n                                        }\n                                    }\n                                }\n                            ]\n                        }\n                    }\n                }\n            ],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 44,\n                \"end\": 47,\n                \"body\": []\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6});\n\n// 'yield' as function names.\n\ntest(\"function* yield() {}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 20,\n    \"body\": [\n        {\n            \"type\": \"FunctionDeclaration\",\n            \"start\": 0,\n            \"end\": 20,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 10,\n                \"end\": 15,\n                \"name\": \"yield\"\n            },\n            \"generator\": true,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 18,\n                \"end\": 20,\n                \"body\": []\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"({*yield() {}})\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 15,\n    \"body\": [\n        {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 0,\n            \"end\": 15,\n            \"expression\": {\n                \"type\": \"ObjectExpression\",\n                \"start\": 1,\n                \"end\": 14,\n                \"properties\": [\n                    {\n                        \"type\": \"Property\",\n                        \"start\": 2,\n                        \"end\": 13,\n                        \"method\": true,\n                        \"shorthand\": false,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 3,\n                            \"end\": 8,\n                            \"name\": \"yield\"\n                        },\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 8,\n                            \"end\": 13,\n                            \"id\": null,\n                            \"generator\": true,\n                            \"expression\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 11,\n                                \"end\": 13,\n                                \"body\": []\n                            }\n                        },\n                        \"kind\": \"init\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"class A {*yield() {}}\", {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 21,\n    \"body\": [\n        {\n            \"type\": \"ClassDeclaration\",\n            \"start\": 0,\n            \"end\": 21,\n            \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 7,\n                \"name\": \"A\"\n            },\n            \"superClass\": null,\n            \"body\": {\n                \"type\": \"ClassBody\",\n                \"start\": 8,\n                \"end\": 21,\n                \"body\": [\n                    {\n                        \"type\": \"MethodDefinition\",\n                        \"start\": 9,\n                        \"end\": 20,\n                        \"computed\": false,\n                        \"key\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 10,\n                            \"end\": 15,\n                            \"name\": \"yield\"\n                        },\n                        \"static\": false,\n                        \"kind\": \"method\",\n                        \"value\": {\n                            \"type\": \"FunctionExpression\",\n                            \"start\": 15,\n                            \"end\": 20,\n                            \"id\": null,\n                            \"generator\": true,\n                            \"expression\": false,\n                            \"params\": [],\n                            \"body\": {\n                                \"type\": \"BlockStatement\",\n                                \"start\": 18,\n                                \"end\": 20,\n                                \"body\": []\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    ],\n    \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntestFail(\"(function* g() {\\nfor (yield '' in {}; ; ) ;\\n }\", \"Assigning to rvalue (2:5)\", {ecmaVersion: 6})\ntestFail(\"(function* yield() {})\", \"Cannot use 'yield' as identifier inside a generator (1:11)\", {ecmaVersion: 6})\ntestFail(\"function* wrap() {\\nfunction* yield() {}\\n}\", \"Cannot use 'yield' as identifier inside a generator (2:10)\", {ecmaVersion: 6})\ntest(\"function* wrap() {\\n({*yield() {}})\\n}\", {}, {ecmaVersion: 6})\ntest(\"function* wrap() {\\nclass A {*yield() {}}\\n}\", {}, {ecmaVersion: 6})\n\n// Forbid yield expressions in default parameters:\ntestFail(\"function* foo(a = yield b) {}\", \"Yield expression cannot be a default value (1:18)\", {ecmaVersion: 6})\ntestFail(\"(function* foo(a = yield b) {})\", \"Yield expression cannot be a default value (1:19)\", {ecmaVersion: 6})\ntestFail(\"({*foo(a = yield b) {}})\", \"Yield expression cannot be a default value (1:11)\", {ecmaVersion: 6})\ntestFail(\"(class {*foo(a = yield b) {}})\", \"Yield expression cannot be a default value (1:17)\", {ecmaVersion: 6})\ntestFail(\"function* foo(a = class extends (yield b) {}) {}\", \"Yield expression cannot be a default value (1:33)\", {ecmaVersion: 6})\n\n// Allow yield expressions inside functions in default parameters:\ntest(\"function* foo(a = function* foo() { yield b }) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 49,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 49,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 13,\n        \"name\": \"foo\"\n      },\n      \"generator\": true,\n      \"expression\": false,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 14,\n          \"end\": 45,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 14,\n            \"end\": 15,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"FunctionExpression\",\n            \"start\": 18,\n            \"end\": 45,\n            \"id\": {\n              \"type\": \"Identifier\",\n              \"start\": 28,\n              \"end\": 31,\n              \"name\": \"foo\"\n            },\n            \"generator\": true,\n            \"expression\": false,\n            \"params\": [],\n            \"body\": {\n              \"type\": \"BlockStatement\",\n              \"start\": 34,\n              \"end\": 45,\n              \"body\": [\n                {\n                  \"type\": \"ExpressionStatement\",\n                  \"start\": 36,\n                  \"end\": 43,\n                  \"expression\": {\n                    \"type\": \"YieldExpression\",\n                    \"start\": 36,\n                    \"end\": 43,\n                    \"delegate\": false,\n                    \"argument\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 42,\n                      \"end\": 43,\n                      \"name\": \"b\"\n                    }\n                  }\n                }\n              ]\n            }\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 47,\n        \"end\": 49,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\ntest(\"function* foo(a = {*bar() { yield b }}) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 42,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 42,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 13,\n        \"name\": \"foo\"\n      },\n      \"generator\": true,\n      \"expression\": false,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 14,\n          \"end\": 38,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 14,\n            \"end\": 15,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"ObjectExpression\",\n            \"start\": 18,\n            \"end\": 38,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 19,\n                \"end\": 37,\n                \"method\": true,\n                \"shorthand\": false,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 20,\n                  \"end\": 23,\n                  \"name\": \"bar\"\n                },\n                \"value\": {\n                  \"type\": \"FunctionExpression\",\n                  \"start\": 23,\n                  \"end\": 37,\n                  \"id\": null,\n                  \"generator\": true,\n                  \"expression\": false,\n                  \"params\": [],\n                  \"body\": {\n                    \"type\": \"BlockStatement\",\n                    \"start\": 26,\n                    \"end\": 37,\n                    \"body\": [\n                      {\n                        \"type\": \"ExpressionStatement\",\n                        \"start\": 28,\n                        \"end\": 35,\n                        \"expression\": {\n                          \"type\": \"YieldExpression\",\n                          \"start\": 28,\n                          \"end\": 35,\n                          \"delegate\": false,\n                          \"argument\": {\n                            \"type\": \"Identifier\",\n                            \"start\": 34,\n                            \"end\": 35,\n                            \"name\": \"b\"\n                          }\n                        }\n                      }\n                    ]\n                  }\n                },\n                \"kind\": \"init\"\n              }\n            ]\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 40,\n        \"end\": 42,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\ntest(\"function* foo(a = class {*bar() { yield b }}) {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 48,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 48,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 13,\n        \"name\": \"foo\"\n      },\n      \"generator\": true,\n      \"expression\": false,\n      \"params\": [\n        {\n          \"type\": \"AssignmentPattern\",\n          \"start\": 14,\n          \"end\": 44,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 14,\n            \"end\": 15,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"ClassExpression\",\n            \"start\": 18,\n            \"end\": 44,\n            \"id\": null,\n            \"superClass\": null,\n            \"body\": {\n              \"type\": \"ClassBody\",\n              \"start\": 24,\n              \"end\": 44,\n              \"body\": [\n                {\n                  \"type\": \"MethodDefinition\",\n                  \"start\": 25,\n                  \"end\": 43,\n                  \"computed\": false,\n                  \"key\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 26,\n                    \"end\": 29,\n                    \"name\": \"bar\"\n                  },\n                  \"static\": false,\n                  \"kind\": \"method\",\n                  \"value\": {\n                    \"type\": \"FunctionExpression\",\n                    \"start\": 29,\n                    \"end\": 43,\n                    \"id\": null,\n                    \"generator\": true,\n                    \"expression\": false,\n                    \"params\": [],\n                    \"body\": {\n                      \"type\": \"BlockStatement\",\n                      \"start\": 32,\n                      \"end\": 43,\n                      \"body\": [\n                        {\n                          \"type\": \"ExpressionStatement\",\n                          \"start\": 34,\n                          \"end\": 41,\n                          \"expression\": {\n                            \"type\": \"YieldExpression\",\n                            \"start\": 34,\n                            \"end\": 41,\n                            \"delegate\": false,\n                            \"argument\": {\n                              \"type\": \"Identifier\",\n                              \"start\": 40,\n                              \"end\": 41,\n                              \"name\": \"b\"\n                            }\n                          }\n                        }\n                      ]\n                    }\n                  }\n                }\n              ]\n            }\n          }\n        }\n      ],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 46,\n        \"end\": 48,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\n// Distinguish ParenthesizedExpression or ArrowFunctionExpression\ntest(\"function* wrap() {\\n(a = yield b)\\n}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 34,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 34,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 14,\n        \"name\": \"wrap\"\n      },\n      \"generator\": true,\n      \"expression\": false,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 17,\n        \"end\": 34,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 19,\n            \"end\": 32,\n            \"expression\": {\n              \"type\": \"AssignmentExpression\",\n              \"start\": 20,\n              \"end\": 31,\n              \"operator\": \"=\",\n              \"left\": {\n                \"type\": \"Identifier\",\n                \"start\": 20,\n                \"end\": 21,\n                \"name\": \"a\"\n              },\n              \"right\": {\n                \"type\": \"YieldExpression\",\n                \"start\": 24,\n                \"end\": 31,\n                \"delegate\": false,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 30,\n                  \"end\": 31,\n                  \"name\": \"b\"\n                }\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\ntestFail(\"function* wrap() {\\n(a = yield b) => a\\n}\", \"Yield expression cannot be a default value (2:5)\", {ecmaVersion: 6})\n\ntest(\"function* wrap() {\\n({a = yield b} = obj)\\n}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 42,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 42,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 10,\n        \"end\": 14,\n        \"name\": \"wrap\"\n      },\n      \"params\": [],\n      \"generator\": true,\n      \"expression\": false,\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 17,\n        \"end\": 42,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 19,\n            \"end\": 40,\n            \"expression\": {\n              \"type\": \"AssignmentExpression\",\n              \"start\": 20,\n              \"end\": 39,\n              \"operator\": \"=\",\n              \"left\": {\n                \"type\": \"ObjectPattern\",\n                \"start\": 20,\n                \"end\": 33,\n                \"properties\": [\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 21,\n                    \"end\": 32,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 21,\n                      \"end\": 22,\n                      \"name\": \"a\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 21,\n                      \"end\": 32,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 21,\n                        \"end\": 22,\n                        \"name\": \"a\"\n                      },\n                      \"right\": {\n                        \"type\": \"YieldExpression\",\n                        \"start\": 25,\n                        \"end\": 32,\n                        \"delegate\": false,\n                        \"argument\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 31,\n                          \"end\": 32,\n                          \"name\": \"b\"\n                        }\n                      }\n                    },\n                    \"kind\": \"init\"\n                  }\n                ]\n              },\n              \"right\": {\n                \"type\": \"Identifier\",\n                \"start\": 36,\n                \"end\": 39,\n                \"name\": \"obj\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"export default class Foo {}++x\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExportDefaultDeclaration\",\n      \"declaration\": {\n        \"type\": \"ClassDeclaration\",\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"name\": \"Foo\"\n        },\n        \"superClass\": null,\n        \"body\": {\n          \"type\": \"ClassBody\",\n          \"body\": []\n        }\n      }\n    },\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"UpdateExpression\",\n        \"operator\": \"++\",\n        \"prefix\": true,\n        \"argument\": {\n          \"type\": \"Identifier\",\n          \"name\": \"x\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, {ecmaVersion: 6, sourceType: \"module\"})\n\n\ntest(\"function *f() { yield\\n{}/1/g\\n}\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"name\": \"f\"\n      },\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"expression\": {\n              \"type\": \"YieldExpression\",\n              \"argument\": null,\n              delegate: false\n            }\n          },\n          {\n            \"type\": \"BlockStatement\",\n            \"body\": []\n          },\n          {\n            \"type\": \"ExpressionStatement\",\n            \"expression\": {\n              \"type\": \"Literal\",\n              \"raw\": \"/1/g\",\n              \"regex\": {\n                \"pattern\": \"1\",\n                \"flags\": \"g\"\n              }\n            }\n          }\n        ]\n      },\n      generator: true\n    }\n  ]\n}, {ecmaVersion: 6})\n\ntestFail(\"class B { constructor(a = super()) { return a }}\", \"super() call outside constructor of a subclass (1:26)\", {ecmaVersion: 6})\n\ntest(\"class B extends A { constructor(a = super()) { return a }}\", {}, {ecmaVersion: 6})\n\ntest(\"class B { foo(a = super.foo()) { return a }}\", {}, {ecmaVersion: 6})\n\ntestFail(\"function* wrap() {\\n({a = yield b} = obj) => a\\n}\", \"Yield expression cannot be a default value (2:6)\", {ecmaVersion: 6})\n\n// invalid syntax '*foo: 1'\ntestFail(\"({*foo: 1})\", \"Unexpected token (1:6)\", {ecmaVersion: 6})\n\ntest(\"export { x as y } from './y.js';\\nexport { x as z } from './z.js';\",\n     {}, {sourceType: \"module\", ecmaVersion: 6})\n\ntest(\"export { default as y } from './y.js';\\nexport default 42;\",\n     {}, {sourceType: \"module\", ecmaVersion: 6})\n\ntestFail(\"export { default} from './y.js';\\nexport default 42;\",\n         \"Duplicate export 'default' (2:7)\",\n         {sourceType: \"module\", ecmaVersion: 6})\ntestFail(\"export * from foo\", \"Unexpected token (1:14)\", {sourceType: \"module\", ecmaVersion: 6, loose: false});\ntestFail(\"export { bar } from foo\", \"Unexpected token (1:20)\", {sourceType: \"module\", ecmaVersion: 6, loose: false});\n\ntestFail(\"foo: class X {}\", \"Unexpected token (1:5)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; bar: function x() {}\", \"Unexpected token (1:19)\", {ecmaVersion: 6})\n\ntestFail(\"'use strict'; bar: function* x() {}\", \"Unexpected token (1:19)\", {ecmaVersion: 6})\ntestFail(\"bar: function* x() {}\", \"Unexpected token (1:13)\", {ecmaVersion: 6})\n\ntestFail(\"({x, y}) = {}\", \"Assigning to rvalue (1:0)\", {ecmaVersion: 6})\n\ntest(\"[x, (y), {z, u: (v)}] = foo\", {}, {ecmaVersion: 6})\n\ntest(\"export default function(x) {};\", {body: [{}, {}]}, {ecmaVersion: 6, sourceType: \"module\"})\n\ntestFail(\"var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:17)\", {ecmaVersion: 6})\n\ntestFail(\"{ var foo = 1; let foo = 1; }\", \"Identifier 'foo' has already been declared (1:19)\", {ecmaVersion: 6})\n\ntestFail(\"let bar; var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:26)\", {ecmaVersion: 6})\n\ntestFail(\"{ let bar; var foo = 1; let foo = 1; }\", \"Identifier 'foo' has already been declared (1:28)\", {ecmaVersion: 6})\n\ntestFail(\"let foo = 1; var foo = 1;\", \"Identifier 'foo' has already been declared (1:17)\", {ecmaVersion: 6})\n\ntestFail(\"let bar; let foo = 1; var foo = 1;\", \"Identifier 'foo' has already been declared (1:26)\", {ecmaVersion: 6})\n\ntestFail(\"{ let bar; let foo = 1; var foo = 1; }\", \"Identifier 'foo' has already been declared (1:28)\", {ecmaVersion: 6})\n\ntestFail(\"let foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:17)\", {ecmaVersion: 6})\n\ntestFail(\"var foo = 1; const foo = 1;\", \"Identifier 'foo' has already been declared (1:19)\", {ecmaVersion: 6})\n\ntestFail(\"const foo = 1; var foo = 1;\", \"Identifier 'foo' has already been declared (1:19)\", {ecmaVersion: 6})\n\ntestFail(\"var [foo] = [1]; let foo = 1;\", \"Identifier 'foo' has already been declared (1:21)\", {ecmaVersion: 6})\n\ntestFail(\"var [{ bar: [foo] }] = x; let {foo} = 1;\", \"Identifier 'foo' has already been declared (1:31)\", {ecmaVersion: 6})\n\ntestFail(\"if (x) var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:24)\", {ecmaVersion: 6})\n\ntestFail(\"if (x) {} else var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:32)\", {ecmaVersion: 6})\n\ntestFail(\"if (x) var foo = 1; else {} let foo = 1;\", \"Identifier 'foo' has already been declared (1:32)\", {ecmaVersion: 6})\n\ntestFail(\"if (x) {} else if (y) {} else var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:47)\", {ecmaVersion: 6})\n\ntestFail(\"while (x) var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:27)\", {ecmaVersion: 6})\n\ntestFail(\"do var foo = 1; while (x) let foo = 1;\", \"Identifier 'foo' has already been declared (1:30)\", {ecmaVersion: 6})\n\ntestFail(\"for (;;) var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:26)\", {ecmaVersion: 6})\n\ntestFail(\"for (const x of y) var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:36)\", {ecmaVersion: 6})\n\ntestFail(\"for (const x in y) var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:36)\", {ecmaVersion: 6})\n\ntestFail(\"label: var foo = 1; let foo = 1;\", \"Identifier 'foo' has already been declared (1:24)\", {ecmaVersion: 6})\n\ntestFail(\"switch (x) { case 0: var foo = 1 } let foo = 1;\", \"Identifier 'foo' has already been declared (1:39)\", {ecmaVersion: 6})\n\ntestFail(\"try { var foo = 1; } catch (e) {} let foo = 1;\", \"Identifier 'foo' has already been declared (1:38)\", {ecmaVersion: 6})\n\ntestFail(\"function foo() {} let foo = 1;\", \"Identifier 'foo' has already been declared (1:22)\", {ecmaVersion: 6})\n\ntestFail(\"{ var foo = 1; } let foo = 1;\", \"Identifier 'foo' has already been declared (1:21)\", {ecmaVersion: 6})\n\ntestFail(\"let foo = 1; { var foo = 1; }\", \"Identifier 'foo' has already been declared (1:19)\", {ecmaVersion: 6})\n\ntestFail(\"let foo = 1; function x(foo) {} { var foo = 1; }\", \"Identifier 'foo' has already been declared (1:38)\", {ecmaVersion: 6})\n\ntestFail(\"if (x) { if (y) var foo = 1; } let foo = 1;\", \"Identifier 'foo' has already been declared (1:35)\", {ecmaVersion: 6})\n\ntestFail(\"var foo = 1; function x() {} let foo = 1;\", \"Identifier 'foo' has already been declared (1:33)\", {ecmaVersion: 6})\n\ntestFail(\"{ let foo = 1; { let foo = 2; } let foo = 1; }\", \"Identifier 'foo' has already been declared (1:36)\", {ecmaVersion: 6})\n\ntestFail(\"for (var foo of y) {} let foo = 1;\", \"Identifier 'foo' has already been declared (1:26)\", {ecmaVersion: 6})\n\ntestFail(\"function x(foo) { let foo = 1; }\", \"Identifier 'foo' has already been declared (1:22)\", {ecmaVersion: 6})\n\ntestFail(\"var [...foo] = x; let foo = 1;\", \"Identifier 'foo' has already been declared (1:22)\", {ecmaVersion: 6})\n\ntestFail(\"foo => { let foo; }\", \"Identifier 'foo' has already been declared (1:13)\", {ecmaVersion: 6})\n\ntestFail(\"({ x(foo) { let foo; } })\", \"Identifier 'foo' has already been declared (1:16)\", {ecmaVersion: 6})\n\ntestFail(\"try {} catch (foo) { let foo = 1; }\", \"Identifier 'foo' has already been declared (1:25)\", {ecmaVersion: 6})\n\ntest(\"var foo = 1; var foo = 1;\", {}, {ecmaVersion: 6})\n\ntest(\"if (x) var foo = 1; var foo = 1;\", {}, {ecmaVersion: 6})\n\ntest(\"function x() { var foo = 1; } let foo = 1;\", {}, {ecmaVersion: 6})\n\ntest(\"function foo() { let foo = 1; }\", {}, {ecmaVersion: 6})\n\ntest(\"var foo = 1; { let foo = 1; }\", {}, {ecmaVersion: 6})\n\ntest(\"{ let foo = 1; { let foo = 2; } }\", {}, {ecmaVersion: 6})\n\ntest(\"var foo; try {} catch (_) { let foo; }\", {}, {ecmaVersion: 6})\n\ntest(\"let x = 1; function foo(x) {}\", {}, {ecmaVersion: 6})\n\ntest(\"for (let i = 0;;); for (let i = 0;;);\", {}, {ecmaVersion: 6})\n\ntest(\"for (const foo of bar); for (const foo of bar);\", {}, {ecmaVersion: 6})\n\ntest(\"for (const foo in bar); for (const foo in bar);\", {}, {ecmaVersion: 6})\n\ntest(\"for (let foo in bar) { let foo = 1; }\", {}, {ecmaVersion: 6})\n\ntest(\"for (let foo of bar) { let foo = 1; }\", {}, {ecmaVersion: 6})\n\ntest(\"class Foo { method(foo) {} method2() { let foo; } }\", {}, {ecmaVersion: 6})\n\ntest(\"() => { let foo; }; foo => {}\", {}, {ecmaVersion: 6})\n\ntest(\"() => { let foo; }; () => { let foo; }\", {}, {ecmaVersion: 6})\n\ntest(\"switch(x) { case 1: let foo = 1; } let foo = 1;\", {}, {ecmaVersion: 6})\n\ntest(\"'use strict'; function foo() { let foo = 1; }\", {}, {ecmaVersion: 6})\n\ntest(\"let foo = 1; function x() { var foo = 1; }\", {}, {ecmaVersion: 6})\n\ntest(\"[...foo, bar = 1]\", {}, {ecmaVersion: 6})\n\ntest(\"for (var a of /b/) {}\", {}, {ecmaVersion: 6})\n\ntest(\"for (var {a} of /b/) {}\", {}, {ecmaVersion: 6})\n\ntest(\"for (let {a} of /b/) {}\", {}, {ecmaVersion: 6})\n\ntest(\"for (const {a} of /b/) {}\", {}, {ecmaVersion: 6})\n\ntest(\"function* bar() { yield /re/ }\", {}, {ecmaVersion: 6})\n\ntest(\"function* bar() { yield class {} }\", {}, {ecmaVersion: 6})\n\ntest(\"() => {}\\n/re/\", {}, {ecmaVersion: 6})\n\ntest(\"(() => {}) + 2\", {}, {ecmaVersion: 6})\n\ntestFail(\"(x) => {} + 2\", \"Unexpected token (1:10)\", {ecmaVersion: 6})\n\ntest(\"function *f1() { function g() { return yield / 1 } }\", {}, {ecmaVersion: 6})\n\ntest(\"function f() {} function f() {}\", {}, {ecmaVersion: 6})\n\ntest(\"function *f() {} function *f() {}\", {}, {ecmaVersion: 6})\n\n// Annex B allows function redeclaration for plain functions in sloppy mode\ntest(\"{ function f() {} function f() {} }\", {}, {ecmaVersion: 6})\n\ntestFail(\"'use strict'; { function f() {} function f() {} }\",\n    \"Identifier 'f' has already been declared (1:41)\", {ecmaVersion: 6})\n\ntestFail(\"{ function f() {} function* f() {} }\",\n    \"Identifier 'f' has already been declared (1:28)\", {ecmaVersion: 6})\n\ntestFail(\"{ function* f() {} function f() {} }\",\n    \"Identifier 'f' has already been declared (1:28)\", {ecmaVersion: 6})\n\ntest(\"class Foo {} /regexp/\", {}, {ecmaVersion: 6})\n\ntest(\"(class Foo {} / 2)\", {}, {ecmaVersion: 6})\n\ntest(\"1 <!--b\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"BinaryExpression\",\n      operator: \"<\"\n    }\n  }]\n}, {ecmaVersion: 6, sourceType: \"module\"})\n\ntestFail(\"class A extends B { constructor() { super } }\", \"Unexpected token (1:42)\", { ecmaVersion: 6 })\ntestFail(\"class A extends B { constructor() { super; } }\", \"Unexpected token (1:41)\", { ecmaVersion: 6 })\ntestFail(\"class A extends B { constructor() { (super)() } }\", \"Unexpected token (1:42)\", { ecmaVersion: 6 })\ntestFail(\"class A extends B { foo() { (super).foo } }\", \"Unexpected token (1:34)\", { ecmaVersion: 6 })\ntestFail(\"class A extends B { constructor() { new super() } }\", \"Invalid use of 'super' (1:40)\", {ecmaVersion: 6})\ntest(\"({super: 1})\", {}, { ecmaVersion: 6 })\ntest(\"import {super as a} from 'a'\", {}, { ecmaVersion: 6, sourceType: \"module\" })\ntest(\"function a() {} export {a as super}\", {}, { ecmaVersion: 6, sourceType: \"module\" })\ntest(\"let instanceof Foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"BinaryExpression\",\n        \"start\": 0,\n        \"end\": 18,\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 3,\n          \"name\": \"let\"\n        },\n        \"operator\": \"instanceof\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 15,\n          \"end\": 18,\n          \"name\": \"Foo\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntest(\"function fn({__proto__: a, __proto__: b}) {}\", {}, {ecmaVersion: 6})\n\ntestFail(\"for (let x of y, z) {}\", \"Unexpected token (1:15)\", {ecmaVersion: 6})\n\ntestFail('[...foo, bar] = b', \"Comma is not permitted after the rest element (1:7)\", { ecmaVersion: 6 })\ntest('[...a, x][1] = b', {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 16,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 12,\n          \"object\": {\n            \"type\": \"ArrayExpression\",\n            \"start\": 0,\n            \"end\": 9,\n            \"elements\": [\n              {\n                \"type\": \"SpreadElement\",\n                \"start\": 1,\n                \"end\": 5,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 4,\n                  \"end\": 5,\n                  \"name\": \"a\"\n                }\n              },\n              {\n                \"type\": \"Identifier\",\n                \"start\": 7,\n                \"end\": 8,\n                \"name\": \"x\"\n              }\n            ]\n          },\n          \"property\": {\n            \"type\": \"Literal\",\n            \"start\": 10,\n            \"end\": 11,\n            \"value\": 1,\n            \"raw\": \"1\"\n          },\n          \"computed\": true\n        },\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 15,\n          \"end\": 16,\n          \"name\": \"b\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntestFail('for (let [...foo, bar] in qux);', \"Comma is not permitted after the rest element (1:16)\", { ecmaVersion: 6 })\ntest('for ([...foo, bar].baz in qux);', {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 31,\n  \"body\": [\n    {\n      \"type\": \"ForInStatement\",\n      \"start\": 0,\n      \"end\": 31,\n      \"left\": {\n        \"type\": \"MemberExpression\",\n        \"start\": 5,\n        \"end\": 22,\n        \"object\": {\n          \"type\": \"ArrayExpression\",\n          \"start\": 5,\n          \"end\": 18,\n          \"elements\": [\n            {\n              \"type\": \"SpreadElement\",\n              \"start\": 6,\n              \"end\": 12,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"foo\"\n              }\n            },\n            {\n              \"type\": \"Identifier\",\n              \"start\": 14,\n              \"end\": 17,\n              \"name\": \"bar\"\n            }\n          ]\n        },\n        \"property\": {\n          \"type\": \"Identifier\",\n          \"start\": 19,\n          \"end\": 22,\n          \"name\": \"baz\"\n        },\n        \"computed\": false\n      },\n      \"right\": {\n        \"type\": \"Identifier\",\n        \"start\": 26,\n        \"end\": 29,\n        \"name\": \"qux\"\n      },\n      \"body\": {\n        \"type\": \"EmptyStatement\",\n        \"start\": 30,\n        \"end\": 31\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 6})\n\ntestFail(\"var f;\\nfunction f() {}\", \"Identifier 'f' has already been declared (2:9)\", {ecmaVersion: 6, sourceType: \"module\"});\n\ntest(\"function f() { var x; function x() {} }\", {}, {ecmaVersion: 6, sourceType: \"module\"})\n\ntest(\"a.of / 2\", {}, {ecmaVersion: 6})\n\ntest(\"let x = 1; x = 2\", {}, {ecmaVersion: 6})\n\ntest(\"function *f2() { () => yield / 1 }\", {}, {ecmaVersion: 6})\n\ntest(\"({ a = 42, b: c.d } = e)\", {}, {ecmaVersion: 6})\n\ntestFail(\"({ a = 42, b: c = d })\", \"Shorthand property assignments are valid only in destructuring patterns (1:5)\", {ecmaVersion: 6})\n\ntest(\"({ __proto__: x, __proto__: y, __proto__: z }) => {}\", {}, {ecmaVersion: 6})\n\n// Don't parse first token after a class or strict function as strict\ntest(\"class x {}\\n05\", {}, {ecmaVersion: 6})\ntest(\"function x() { 'use strict' }\\n05\", {}, {ecmaVersion: 6})\n\n// Ignore strict directives before ES5\ntest(\"'use strict'; '\\\\02'\", {}, {ecmaVersion: 3})\n\ntest(\"const myFn = ({ set = '' }) => {};\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"name\": \"myFn\"\n          },\n          \"init\": {\n            \"type\": \"ArrowFunctionExpression\",\n            \"params\": [\n              {\n                \"type\": \"ObjectPattern\",\n                \"properties\": [\n                  {\n                    \"type\": \"Property\",\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"name\": \"set\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"name\": \"set\"\n                      },\n                      \"right\": {\n                        \"type\": \"Literal\",\n                        \"value\": \"\"\n                      }\n                    },\n                    \"kind\": \"init\"\n                  }\n                ]\n              }\n            ],\n            \"body\": {\n              \"type\": \"BlockStatement\",\n              \"body\": []\n            }\n          }\n        }\n      ],\n      \"kind\": \"const\"\n    }\n  ]\n}, {ecmaVersion: 6})\n\n\ntest(\"[[...[], 0].x] = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"ArrayPattern\",\n          elements: [\n            {\n              type: \"MemberExpression\",\n              object: {\n                type: \"ArrayExpression\",\n                elements: [\n                  {\n                    type: \"SpreadElement\",\n                    argument: {\n                      type: \"ArrayExpression\",\n                      elements: []\n                    }\n                  },\n                  {\n                    type: \"Literal\",\n                    value: 0,\n                    raw: \"0\"\n                  }\n                ]\n              },\n              property: {\n                type: \"Identifier\",\n                name: \"x\"\n              },\n              computed: false\n            }\n          ]\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: []\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 6})\n\n// #1036\ntest(\"let \\u0061;\", {}, {ecmaVersion: 6})\ntest(\"let in\\u0061;\", {}, {ecmaVersion: 6})\ntest(\"let in𝐬𝐭𝐚𝐧𝐜𝐞𝐨𝐟;\", {}, {ecmaVersion: 6})\ntest(\"let 𝐢𝐧;\", {}, {ecmaVersion: 6})\n\ntestFail(\"for (let a = b => b in c;;);\", \"for-in loop variable declaration may not have an initializer (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (let a = b => c => d in e;;);\", \"for-in loop variable declaration may not have an initializer (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (var a = b => c in d;;);\", \"Unexpected token (1:24)\", { ecmaVersion: 8 })\ntestFail(\"for (var a = b => c => d in e;;);\", \"Unexpected token (1:29)\", { ecmaVersion: 8 })\ntestFail(\"for (x => x in y;;);\", \"Assigning to rvalue (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (x => y => y in z;;);\", \"Assigning to rvalue (1:5)\", { ecmaVersion: 6 })\ntest(\"for ((a in b);;);\", {\n  type: \"Program\",\n  start: 0,\n  end: 17,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  },\n  body: [\n    {\n      type: \"ForStatement\",\n      start: 0,\n      end: 17,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      },\n      init: {\n        type: \"BinaryExpression\",\n        start: 6,\n        end: 12,\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 12\n          }\n        },\n        left: {\n          type: \"Identifier\",\n          start: 6,\n          end: 7,\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          },\n          name: \"a\"\n        },\n        operator: \"in\",\n        right: {\n          type: \"Identifier\",\n          start: 11,\n          end: 12,\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          },\n          name: \"b\"\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        start: 16,\n        end: 17,\n        loc: {\n          start: {\n            line: 1,\n            column: 16\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      }\n    }\n  ],\n}, { locations: true })\n\ntest(\"for (function (){ a in b };;);\", {\n  type: \"Program\",\n  start: 0,\n  end: 30,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 30\n    }\n  },\n  body: [\n    {\n      type: \"ForStatement\",\n      start: 0,\n      end: 30,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 30\n        }\n      },\n      init: {\n        type: \"FunctionExpression\",\n        start: 5,\n        end: 26,\n        loc: {\n          start: {\n            line: 1,\n            column: 5\n          },\n          end: {\n            line: 1,\n            column: 26\n          }\n        },\n        id: null,\n        expression: false,\n        generator: false,\n        async: false,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          start: 16,\n          end: 26,\n          loc: {\n            start: {\n              line: 1,\n              column: 16\n            },\n            end: {\n              line: 1,\n              column: 26\n            }\n          },\n          body: [\n            {\n              type: \"ExpressionStatement\",\n              start: 18,\n              end: 24,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 18\n                },\n                end: {\n                  line: 1,\n                  column: 24\n                }\n              },\n              expression: {\n                type: \"BinaryExpression\",\n                start: 18,\n                end: 24,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 18\n                  },\n                  end: {\n                    line: 1,\n                    column: 24\n                  }\n                },\n                left: {\n                  type: \"Identifier\",\n                  start: 18,\n                  end: 19,\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 18\n                    },\n                    end: {\n                      line: 1,\n                      column: 19\n                    }\n                  },\n                  name: \"a\"\n                },\n                operator: \"in\",\n                right: {\n                  type: \"Identifier\",\n                  start: 23,\n                  end: 24,\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 23\n                    },\n                    end: {\n                      line: 1,\n                      column: 24\n                    }\n                  },\n                  name: \"b\"\n                }\n              }\n            }\n          ]\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        start: 29,\n        end: 30,\n        loc: {\n          start: {\n            line: 1,\n            column: 29\n          },\n          end: {\n            line: 1,\n            column: 30\n          }\n        }\n      }\n    }\n  ]\n}, { locations: true, ecmaVersion: 8, })\n"
  },
  {
    "path": "test/tests-import-attributes.js",
    "content": "/* eslint quote-props: [\"error\", \"as-needed\"] */\n/* eslint quotes: [\"error\", \"double\", { \"avoidEscape\": true }] */\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\ntest(\n  'import json from \"./foo.json\" with { type: \"json\" };',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 52,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 52,\n        specifiers: [\n          {\n            type: \"ImportDefaultSpecifier\",\n            start: 7,\n            end: 11,\n            local: {\n              type: \"Identifier\",\n              start: 7,\n              end: 11,\n              name: \"json\"\n            }\n          }\n        ],\n        source: {\n          type: \"Literal\",\n          start: 17,\n          end: 29,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 37,\n            end: 49,\n            key: {\n              type: \"Identifier\",\n              start: 37,\n              end: 41,\n              name: \"type\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 43,\n              end: 49,\n              value: \"json\",\n              raw: \"\\\"json\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import \"./foo.json\" with { type: \"json\" };',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 42,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 42,\n        specifiers: [],\n        source: {\n          type: \"Literal\",\n          start: 7,\n          end: 19,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 27,\n            end: 39,\n            key: {\n              type: \"Identifier\",\n              start: 27,\n              end: 31,\n              name: \"type\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 33,\n              end: 39,\n              value: \"json\",\n              raw: \"\\\"json\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import json from \"./foo.json\";', // Without attributes\n  {\n    type: \"Program\",\n    start: 0,\n    end: 30,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 30,\n        specifiers: [\n          {\n            type: \"ImportDefaultSpecifier\",\n            start: 7,\n            end: 11,\n            local: {\n              type: \"Identifier\",\n              start: 7,\n              end: 11,\n              name: \"json\"\n            }\n          }\n        ],\n        source: {\n          type: \"Literal\",\n          start: 17,\n          end: 29,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: []\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import \"./foo.json\";', // Without attributes\n  {\n    type: \"Program\",\n    start: 0,\n    end: 20,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 20,\n        specifiers: [],\n        source: {\n          type: \"Literal\",\n          start: 7,\n          end: 19,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: []\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'export {v} from \"./foo.json\" with { type: \"json\" };',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 51,\n    body: [\n      {\n        type: \"ExportNamedDeclaration\",\n        start: 0,\n        end: 51,\n        declaration: null,\n        specifiers: [\n          {\n            type: \"ExportSpecifier\",\n            start: 8,\n            end: 9,\n            local: {\n              type: \"Identifier\",\n              start: 8,\n              end: 9,\n              name: \"v\"\n            },\n            exported: {\n              type: \"Identifier\",\n              start: 8,\n              end: 9,\n              name: \"v\"\n            }\n          }\n        ],\n        source: {\n          type: \"Literal\",\n          start: 16,\n          end: 28,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 36,\n            end: 48,\n            key: {\n              type: \"Identifier\",\n              start: 36,\n              end: 40,\n              name: \"type\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 42,\n              end: 48,\n              value: \"json\",\n              raw: \"\\\"json\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'export {v} from \"./foo.json\";', // Without attributes\n  {\n    type: \"Program\",\n    start: 0,\n    end: 29,\n    body: [\n      {\n        type: \"ExportNamedDeclaration\",\n        start: 0,\n        end: 29,\n        declaration: null,\n        specifiers: [\n          {\n            type: \"ExportSpecifier\",\n            start: 8,\n            end: 9,\n            local: {\n              type: \"Identifier\",\n              start: 8,\n              end: 9,\n              name: \"v\"\n            },\n            exported: {\n              type: \"Identifier\",\n              start: 8,\n              end: 9,\n              name: \"v\"\n            }\n          }\n        ],\n        source: {\n          type: \"Literal\",\n          start: 16,\n          end: 28,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: []\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'export * as json from \"./foo.json\" with { type: \"json\" };',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 57,\n    body: [\n      {\n        type: \"ExportAllDeclaration\",\n        start: 0,\n        end: 57,\n        exported: {\n          type: \"Identifier\",\n          start: 12,\n          end: 16,\n          name: \"json\"\n        },\n        source: {\n          type: \"Literal\",\n          start: 22,\n          end: 34,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 42,\n            end: 54,\n            key: {\n              type: \"Identifier\",\n              start: 42,\n              end: 46,\n              name: \"type\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 48,\n              end: 54,\n              value: \"json\",\n              raw: \"\\\"json\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'export * as json from \"./foo.json\";', // Without attributes\n  {\n    type: \"Program\",\n    start: 0,\n    end: 35,\n    body: [\n      {\n        type: \"ExportAllDeclaration\",\n        start: 0,\n        end: 35,\n        exported: {\n          type: \"Identifier\",\n          start: 12,\n          end: 16,\n          name: \"json\"\n        },\n        source: {\n          type: \"Literal\",\n          start: 22,\n          end: 34,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: []\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import(\"foo.json\", { with: { type: \"json\" } });',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 47,\n    body: [\n      {\n        type: \"ExpressionStatement\",\n        start: 0,\n        end: 47,\n        expression: {\n          type: \"ImportExpression\",\n          start: 0,\n          end: 46,\n          source: {\n            type: \"Literal\",\n            start: 7,\n            end: 17,\n            value: \"foo.json\",\n            raw: \"\\\"foo.json\\\"\"\n          },\n          options: {\n            type: \"ObjectExpression\",\n            start: 19,\n            end: 45,\n            properties: [\n              {\n                type: \"Property\",\n                start: 21,\n                end: 43,\n                method: false,\n                shorthand: false,\n                computed: false,\n                key: {\n                  type: \"Identifier\",\n                  start: 21,\n                  end: 25,\n                  name: \"with\"\n                },\n                value: {\n                  type: \"ObjectExpression\",\n                  start: 27,\n                  end: 43,\n                  properties: [\n                    {\n                      type: \"Property\",\n                      start: 29,\n                      end: 41,\n                      method: false,\n                      shorthand: false,\n                      computed: false,\n                      key: {\n                        type: \"Identifier\",\n                        start: 29,\n                        end: 33,\n                        name: \"type\"\n                      },\n                      value: {\n                        type: \"Literal\",\n                        start: 35,\n                        end: 41,\n                        value: \"json\",\n                        raw: \"\\\"json\\\"\"\n                      },\n                      kind: \"init\"\n                    }\n                  ]\n                },\n                kind: \"init\"\n              }\n            ]\n          }\n        }\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import(\"foo.json\", );', // Allow trailing comma\n  {\n    type: \"Program\",\n    start: 0,\n    end: 21,\n    body: [\n      {\n        type: \"ExpressionStatement\",\n        start: 0,\n        end: 21,\n        expression: {\n          type: \"ImportExpression\",\n          start: 0,\n          end: 20,\n          source: {\n            type: \"Literal\",\n            start: 7,\n            end: 17,\n            value: \"foo.json\",\n            raw: \"\\\"foo.json\\\"\"\n          },\n          options: null\n        }\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import(\"foo.json\", { with: { type: \"json\" } }, );',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 49,\n    body: [\n      {\n        type: \"ExpressionStatement\",\n        start: 0,\n        end: 49,\n        expression: {\n          type: \"ImportExpression\",\n          start: 0,\n          end: 48,\n          source: {\n            type: \"Literal\",\n            start: 7,\n            end: 17,\n            value: \"foo.json\",\n            raw: \"\\\"foo.json\\\"\"\n          },\n          options: {\n            type: \"ObjectExpression\",\n            start: 19,\n            end: 45,\n            properties: [\n              {\n                type: \"Property\",\n                start: 21,\n                end: 43,\n                method: false,\n                shorthand: false,\n                computed: false,\n                key: {\n                  type: \"Identifier\",\n                  start: 21,\n                  end: 25,\n                  name: \"with\"\n                },\n                kind: \"init\",\n                value: {\n                  type: \"ObjectExpression\",\n                  start: 27,\n                  end: 43,\n                  properties: [\n                    {\n                      type: \"Property\",\n                      start: 29,\n                      end: 41,\n                      method: false,\n                      shorthand: false,\n                      computed: false,\n                      key: {\n                        type: \"Identifier\",\n                        start: 29,\n                        end: 33,\n                        name: \"type\"\n                      },\n                      kind: \"init\",\n                      value: {\n                        type: \"Literal\",\n                        start: 35,\n                        end: 41,\n                        value: \"json\",\n                        raw: \"\\\"json\\\"\"\n                      }\n                    }\n                  ]\n                }\n              }\n            ]\n          }\n        }\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import(\\\"foo.json\\\", foo );',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 25,\n    body: [\n      {\n        type: \"ExpressionStatement\",\n        start: 0,\n        end: 25,\n        expression: {\n          type: \"ImportExpression\",\n          start: 0,\n          end: 24,\n          source: {\n            type: \"Literal\",\n            start: 7,\n            end: 17,\n            value: \"foo.json\",\n            raw: \"\\\"foo.json\\\"\"\n          },\n          options: {\n            type: \"Identifier\",\n            start: 19,\n            end: 22,\n            name: \"foo\"\n          }\n        }\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import \"./foo.json\" with { foo: \"bar\" };', // Allow unknown attributes\n  {\n    type: \"Program\",\n    start: 0,\n    end: 40,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 40,\n        specifiers: [],\n        source: {\n          type: \"Literal\",\n          start: 7,\n          end: 19,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 27,\n            end: 37,\n            key: {\n              type: \"Identifier\",\n              start: 27,\n              end: 30,\n              name: \"foo\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 32,\n              end: 37,\n              value: \"bar\",\n              raw: \"\\\"bar\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import \"./foo.json\" with { \"type\": \"json\" };', // Allow string key\n  {\n    type: \"Program\",\n    start: 0,\n    end: 44,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 44,\n        specifiers: [],\n        source: {\n          type: \"Literal\",\n          start: 7,\n          end: 19,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 27,\n            end: 41,\n            key: {\n              type: \"Literal\",\n              start: 27,\n              end: 33,\n              value: \"type\",\n              raw: \"\\\"type\\\"\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 35,\n              end: 41,\n              value: \"json\",\n              raw: \"\\\"json\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import \"./foo.json\" with { a: \"a\", b: \"b\" };', // Allow multiple attributes\n  {\n    type: \"Program\",\n    start: 0,\n    end: 44,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 44,\n        specifiers: [],\n        source: {\n          type: \"Literal\",\n          start: 7,\n          end: 19,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 27,\n            end: 33,\n            key: {\n              type: \"Identifier\",\n              start: 27,\n              end: 28,\n              name: \"a\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 30,\n              end: 33,\n              value: \"a\",\n              raw: \"\\\"a\\\"\"\n            }\n          },\n          {\n            type: \"ImportAttribute\",\n            start: 35,\n            end: 41,\n            key: {\n              type: \"Identifier\",\n              start: 35,\n              end: 36,\n              name: \"b\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 38,\n              end: 41,\n              value: \"b\",\n              raw: \"\\\"b\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntest(\n  'import \"./foo.json\" with { \"type\": \"json\",  };', // Allow trailing comma\n  {\n    type: \"Program\",\n    start: 0,\n    end: 46,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 46,\n        specifiers: [],\n        source: {\n          type: \"Literal\",\n          start: 7,\n          end: 19,\n          value: \"./foo.json\",\n          raw: \"\\\"./foo.json\\\"\"\n        },\n        attributes: [\n          {\n            type: \"ImportAttribute\",\n            start: 27,\n            end: 41,\n            key: {\n              type: \"Literal\",\n              start: 27,\n              end: 33,\n              value: \"type\",\n              raw: \"\\\"type\\\"\"\n            },\n            value: {\n              type: \"Literal\",\n              start: 35,\n              end: 41,\n              value: \"json\",\n              raw: \"\\\"json\\\"\"\n            }\n          }\n        ]\n      }\n    ],\n    sourceType: \"module\"\n  },\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  'import \"./foo.json\" with { 42: \"s\" };', // Disallow number key\n  \"Unexpected token (1:27)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  'import \"./foo.json\" with { type: 42 };', // Disallow number value\n  \"Unexpected token (1:33)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  'import \"./foo.json\" with { type: \"json\", type: \"html\" };', // Disallow duplicate key\n  \"Duplicate attribute key 'type' (1:41)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  'import \"./foo.json\" with { type: \"json\", , };',\n  \"Unexpected token (1:41)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  \"export { json } with { type: \\\"json\\\" };\",\n  \"Unexpected token (1:16)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  \"import(\\\"foo.json\\\", , );\",\n  \"Unexpected token (1:19)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n\ntestFail(\n  \"import(\\\"foo.json\\\", foo , , );\",\n  \"Unexpected token (1:25)\",\n  {sourceType: \"module\", ecmaVersion: 16}\n)\n"
  },
  {
    "path": "test/tests-import-meta.js",
    "content": "// Tests for ECMAScript 2020 `import.meta`\n\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\ntest(\n  \"import.meta\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 11,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 11,\n        \"expression\": {\n          \"type\": \"MetaProperty\",\n          \"start\": 0,\n          \"end\": 11,\n          \"meta\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 6,\n            \"name\": \"import\"\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 7,\n            \"end\": 11,\n            \"name\": \"meta\"\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"module\"\n  },\n  { ecmaVersion: 11, sourceType: \"module\" }\n);\n\ntest(\n  \"import.meta\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 11,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 11,\n        \"expression\": {\n          \"type\": \"MetaProperty\",\n          \"start\": 0,\n          \"end\": 11,\n          \"meta\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 6,\n            \"name\": \"import\"\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 7,\n            \"end\": 11,\n            \"name\": \"meta\"\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 11, sourceType: \"script\", allowImportExportEverywhere: true }\n);\n\ntest(\n  \"import.meta.url\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 15,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 15,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 15,\n          \"object\": {\n            \"type\": \"MetaProperty\",\n            \"start\": 0,\n            \"end\": 11,\n            \"meta\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 6,\n              \"name\": \"import\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 11,\n              \"name\": \"meta\"\n            }\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 12,\n            \"end\": 15,\n            \"name\": \"url\"\n          },\n          \"computed\": false\n        }\n      }\n    ],\n    \"sourceType\": \"module\"\n  },\n  { ecmaVersion: 11, sourceType: \"module\" }\n);\n\ntestFail(\"import.meta\", \"Unexpected token (1:6)\", { ecmaVersion: 10, sourceType: \"module\" });\ntestFail(\"import.meta\", \"Cannot use 'import.meta' outside a module (1:0)\", { ecmaVersion: 11, sourceType: \"script\" });\ntestFail(\"import['meta']\", \"Unexpected token (1:6)\", { ecmaVersion: 11, sourceType: \"module\" });\ntestFail(\"a = import['meta']\", \"Unexpected token (1:10)\", { ecmaVersion: 11, sourceType: \"module\" });\ntestFail(\"import.target\", \"The only valid meta property for import is 'import.meta' (1:7)\", { ecmaVersion: 11, sourceType: \"module\" });\ntestFail(\"new.meta\", \"The only valid meta property for new is 'new.target' (1:4)\", { ecmaVersion: 11, sourceType: \"module\" });\ntestFail(\"im\\\\u0070ort.meta\", \"Escape sequence in keyword import (1:0)\", { ecmaVersion: 11, sourceType: \"module\" });\ntestFail(\"import.\\\\u006d\\\\u0065\\\\u0074\\\\u0061\", \"'import.meta' must not contain escaped characters (1:0)\", { ecmaVersion: 11, sourceType: \"module\" });\n"
  },
  {
    "path": "test/tests-json-superset.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\ntest(\"'\\u2029'\", {}, {ecmaVersion: 2019})\ntest(\"'\\u2028'\", {}, {ecmaVersion: 2019})\ntest(\"\\\"\\u2029\\\"\", {}, {ecmaVersion: 2019})\ntest(\"\\\"\\u2028\\\"\", {}, {ecmaVersion: 2019})\ntest(\"`\\u2029`\", {}, {ecmaVersion: 2019})\ntest(\"`\\u2028`\", {}, {ecmaVersion: 2019})\ntestFail(\"/\\u2029/\", \"Unterminated regular expression (1:1)\", {ecmaVersion: 2019})\ntestFail(\"/\\u2028/\", \"Unterminated regular expression (1:1)\", {ecmaVersion: 2019})\n"
  },
  {
    "path": "test/tests-logical-assignment-operators.js",
    "content": "// Tests for ECMAScript 2021 `&&=`, `||=`, `??=`\n\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\ntest(\n  \"a &&= b\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 7,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 7,\n        \"expression\": {\n          \"type\": \"AssignmentExpression\",\n          \"start\": 0,\n          \"end\": 7,\n          \"operator\": \"&&=\",\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"a ||= b\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 7,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 7,\n        \"expression\": {\n          \"type\": \"AssignmentExpression\",\n          \"start\": 0,\n          \"end\": 7,\n          \"operator\": \"||=\",\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"a ??= b\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 7,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 7,\n        \"expression\": {\n          \"type\": \"AssignmentExpression\",\n          \"start\": 0,\n          \"end\": 7,\n          \"operator\": \"??=\",\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"a &&= b ||= c ??= d\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 19,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 19,\n        \"expression\": {\n          \"type\": \"AssignmentExpression\",\n          \"start\": 0,\n          \"end\": 19,\n          \"operator\": \"&&=\",\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"right\": {\n            \"type\": \"AssignmentExpression\",\n            \"start\": 6,\n            \"end\": 19,\n            \"operator\": \"||=\",\n            \"left\": {\n              \"type\": \"Identifier\",\n              \"start\": 6,\n              \"end\": 7,\n              \"name\": \"b\"\n            },\n            \"right\": {\n              \"type\": \"AssignmentExpression\",\n              \"start\": 12,\n              \"end\": 19,\n              \"operator\": \"??=\",\n              \"left\": {\n                \"type\": \"Identifier\",\n                \"start\": 12,\n                \"end\": 13,\n                \"name\": \"c\"\n              },\n              \"right\": {\n                \"type\": \"Identifier\",\n                \"start\": 18,\n                \"end\": 19,\n                \"name\": \"d\"\n              }\n            }\n          }\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntestFail(\"a &&= b\", \"Unexpected token (1:4)\", { ecmaVersion: 11 });\ntestFail(\"a ||= b\", \"Unexpected token (1:4)\", { ecmaVersion: 11 });\ntestFail(\"a ??= b\", \"Unexpected token (1:4)\", { ecmaVersion: 11 });\n\ntestFail(\"({a} &&= b)\", \"Assigning to rvalue (1:1)\", { ecmaVersion: 12 });\ntestFail(\"({a} ||= b)\", \"Assigning to rvalue (1:1)\", { ecmaVersion: 12 });\ntestFail(\"({a} ??= b)\", \"Assigning to rvalue (1:1)\", { ecmaVersion: 12 });\n"
  },
  {
    "path": "test/tests-module-string-names.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\ntest(\n  'import {\"學而時習之，不亦說乎？\" as quotation} from \"Confucius\";',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 53,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 53,\n        specifiers: [\n          {\n            type: \"ImportSpecifier\",\n            start: 8,\n            end: 34,\n            imported: {\n              type: \"Literal\",\n              start: 8,\n              end: 21,\n              value: \"學而時習之，不亦說乎？\",\n              raw: '\"學而時習之，不亦說乎？\"',\n            },\n            local: {\n              type: \"Identifier\",\n              start: 25,\n              end: 34,\n              name: \"quotation\",\n            },\n          },\n        ],\n        source: {\n          type: \"Literal\",\n          start: 41,\n          end: 52,\n          value: \"Confucius\",\n          raw: '\"Confucius\"',\n        },\n      },\n    ],\n    sourceType: \"module\",\n  },\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntest(\n  'const quotation = \"\"; export { quotation as \"學而時習之，不亦說乎？\" };',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 60,\n    body: [\n      {\n        type: \"VariableDeclaration\",\n        start: 0,\n        end: 21,\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            start: 6,\n            end: 20,\n            id: {\n              type: \"Identifier\",\n              start: 6,\n              end: 15,\n              name: \"quotation\",\n            },\n            init: {\n              type: \"Literal\",\n              start: 18,\n              end: 20,\n              value: \"\",\n              raw: '\"\"',\n            },\n          },\n        ],\n        kind: \"const\",\n      },\n      {\n        type: \"ExportNamedDeclaration\",\n        start: 22,\n        end: 60,\n        declaration: null,\n        specifiers: [\n          {\n            type: \"ExportSpecifier\",\n            start: 31,\n            end: 57,\n            local: {\n              type: \"Identifier\",\n              start: 31,\n              end: 40,\n              name: \"quotation\",\n            },\n            exported: {\n              type: \"Literal\",\n              start: 44,\n              end: 57,\n              value: \"學而時習之，不亦說乎？\",\n              raw: '\"學而時習之，不亦說乎？\"',\n            },\n          },\n        ],\n        source: null,\n      },\n    ],\n    sourceType: \"module\",\n  },\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntest(\n  'export * as \"忠恕。\" from \"Confucius\";',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 35,\n    body: [\n      {\n        type: \"ExportAllDeclaration\",\n        start: 0,\n        end: 35,\n        exported: {\n          type: \"Literal\",\n          start: 12,\n          end: 17,\n          value: \"忠恕。\",\n          raw: '\"忠恕。\"',\n        },\n        source: {\n          type: \"Literal\",\n          start: 23,\n          end: 34,\n          value: \"Confucius\",\n          raw: '\"Confucius\"',\n        },\n      },\n    ],\n    sourceType: \"module\",\n  },\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntest(\n  'export { \"學而時習之，不亦說乎？\", \"吾道一以貫之。\" as \"忠恕。\" } from \"Confucius\";',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 62,\n    body: [\n      {\n        type: \"ExportNamedDeclaration\",\n        start: 0,\n        end: 62,\n        declaration: null,\n        specifiers: [\n          {\n            type: \"ExportSpecifier\",\n            start: 9,\n            end: 22,\n            local: {\n              type: \"Literal\",\n              start: 9,\n              end: 22,\n              value: \"學而時習之，不亦說乎？\",\n              raw: '\"學而時習之，不亦說乎？\"',\n            },\n            exported: {\n              type: \"Literal\",\n              start: 9,\n              end: 22,\n              value: \"學而時習之，不亦說乎？\",\n              raw: '\"學而時習之，不亦說乎？\"',\n            },\n          },\n          {\n            type: \"ExportSpecifier\",\n            start: 24,\n            end: 42,\n            local: {\n              type: \"Literal\",\n              start: 24,\n              end: 33,\n              value: \"吾道一以貫之。\",\n              raw: '\"吾道一以貫之。\"',\n            },\n            exported: {\n              type: \"Literal\",\n              start: 37,\n              end: 42,\n              value: \"忠恕。\",\n              raw: '\"忠恕。\"',\n            },\n          },\n        ],\n        source: {\n          type: \"Literal\",\n          start: 50,\n          end: 61,\n          value: \"Confucius\",\n          raw: '\"Confucius\"',\n        },\n      },\n    ],\n    sourceType: \"module\",\n  },\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntest(\n  'import { \"foo\" as bar, \"default\" as qux } from \"module-a\";',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 58,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 58,\n        specifiers: [\n          {\n            type: \"ImportSpecifier\",\n            start: 9,\n            end: 21,\n            imported: {\n              type: \"Literal\",\n              start: 9,\n              end: 14,\n              value: \"foo\",\n              raw: '\"foo\"',\n            },\n            local: {\n              type: \"Identifier\",\n              start: 18,\n              end: 21,\n              name: \"bar\",\n            },\n          },\n          {\n            type: \"ImportSpecifier\",\n            start: 23,\n            end: 39,\n            imported: {\n              type: \"Literal\",\n              start: 23,\n              end: 32,\n              value: \"default\",\n              raw: '\"default\"',\n            },\n            local: {\n              type: \"Identifier\",\n              start: 36,\n              end: 39,\n              name: \"qux\",\n            },\n          },\n        ],\n        source: {\n          type: \"Literal\",\n          start: 47,\n          end: 57,\n          value: \"module-a\",\n          raw: '\"module-a\"',\n        },\n      },\n    ],\n    sourceType: \"module\",\n  },\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntest(\n  'import { \"default\" as quotation } from \"Confucius\";',\n  {\n    type: \"Program\",\n    start: 0,\n    end: 51,\n    body: [\n      {\n        type: \"ImportDeclaration\",\n        start: 0,\n        end: 51,\n        specifiers: [\n          {\n            type: \"ImportSpecifier\",\n            start: 9,\n            end: 31,\n            imported: {\n              type: \"Literal\",\n              start: 9,\n              end: 18,\n              value: \"default\",\n              raw: '\"default\"',\n            },\n            local: {\n              type: \"Identifier\",\n              start: 22,\n              end: 31,\n              name: \"quotation\",\n            },\n          },\n        ],\n        source: {\n          type: \"Literal\",\n          start: 39,\n          end: 50,\n          value: \"Confucius\",\n          raw: '\"Confucius\"',\n        },\n      },\n    ],\n    sourceType: \"module\",\n  },\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntestFail(\n  'export { \"學而時習之，不亦說乎？\", \"吾道一以貫之。\" as \"忠恕。\" };',\n  \"A string literal cannot be used as an exported binding without `from`. (1:9)\",\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntestFail(\n  'const foo = 42; export { foo as \"\\ud800\\udbff\" }',\n  \"An export name cannot include a lone surrogate. (1:32)\",\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntestFail(\n  'const foo = 43, bar = 32; export { foo, bar as \"foo\" };',\n  \"Duplicate export 'foo' (1:47)\",\n  { sourceType: \"module\", ecmaVersion: 13 }\n);\n\ntest('export * as \"a\" from \"mod1\"\\nexport * as \"b\" from \"mod2\"', {},\n     { sourceType: \"module\", ecmaVersion: 13 });\n"
  },
  {
    "path": "test/tests-nullish-coalescing.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\ntest(\"a ?? b\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 6,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 6,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 6,\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"a\"\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 5,\n          \"end\": 6,\n          \"name\": \"b\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"a ?? b ?? c\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 11,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 11,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 11,\n        \"left\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 0,\n          \"end\": 6,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"operator\": \"??\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 5,\n            \"end\": 6,\n            \"name\": \"b\"\n          }\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 10,\n          \"end\": 11,\n          \"name\": \"c\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"a | b ?? c | d\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"left\": {\n          \"type\": \"BinaryExpression\",\n          \"start\": 0,\n          \"end\": 5,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"operator\": \"|\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 5,\n            \"name\": \"b\"\n          }\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"BinaryExpression\",\n          \"start\": 9,\n          \"end\": 14,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 9,\n            \"end\": 10,\n            \"name\": \"c\"\n          },\n          \"operator\": \"|\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 13,\n            \"end\": 14,\n            \"name\": \"d\"\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"a ?? b ? c : d\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"ConditionalExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"test\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 0,\n          \"end\": 6,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 1,\n            \"name\": \"a\"\n          },\n          \"operator\": \"??\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 5,\n            \"end\": 6,\n            \"name\": \"b\"\n          }\n        },\n        \"consequent\": {\n          \"type\": \"Identifier\",\n          \"start\": 9,\n          \"end\": 10,\n          \"name\": \"c\"\n        },\n        \"alternate\": {\n          \"type\": \"Identifier\",\n          \"start\": 13,\n          \"end\": 14,\n          \"name\": \"d\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"(a || b) ?? c\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 1,\n          \"end\": 7,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 1,\n            \"end\": 2,\n            \"name\": \"a\"\n          },\n          \"operator\": \"||\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 13,\n          \"name\": \"c\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"a || (b ?? c)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"a\"\n        },\n        \"operator\": \"||\",\n        \"right\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 6,\n          \"end\": 12,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          },\n          \"operator\": \"??\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 12,\n            \"name\": \"c\"\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"(a && b) ?? c\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 1,\n          \"end\": 7,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 1,\n            \"end\": 2,\n            \"name\": \"a\"\n          },\n          \"operator\": \"&&\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 13,\n          \"name\": \"c\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"a && (b ?? c)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"a\"\n        },\n        \"operator\": \"&&\",\n        \"right\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 6,\n          \"end\": 12,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          },\n          \"operator\": \"??\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 12,\n            \"name\": \"c\"\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"(a ?? b) || c\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 1,\n          \"end\": 7,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 1,\n            \"end\": 2,\n            \"name\": \"a\"\n          },\n          \"operator\": \"??\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        },\n        \"operator\": \"||\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 13,\n          \"name\": \"c\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"a ?? (b || c)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"a\"\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 6,\n          \"end\": 12,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          },\n          \"operator\": \"||\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 12,\n            \"name\": \"c\"\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"(a ?? b) && c\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 1,\n          \"end\": 7,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 1,\n            \"end\": 2,\n            \"name\": \"a\"\n          },\n          \"operator\": \"??\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          }\n        },\n        \"operator\": \"&&\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 13,\n          \"name\": \"c\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"a ?? (b && c)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"LogicalExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"a\"\n        },\n        \"operator\": \"??\",\n        \"right\": {\n          \"type\": \"LogicalExpression\",\n          \"start\": 6,\n          \"end\": 12,\n          \"left\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 7,\n            \"name\": \"b\"\n          },\n          \"operator\": \"&&\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 12,\n            \"name\": \"c\"\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntestFail(\"a ?? b\", \"Unexpected token (1:3)\", { ecmaVersion: 10 })\ntestFail(\"?? b\", \"Unexpected token (1:0)\", { ecmaVersion: 11 })\ntestFail(\"a ??\", \"Unexpected token (1:4)\", { ecmaVersion: 11 })\ntestFail(\"a || b ?? c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:7)\", { ecmaVersion: 11 })\ntestFail(\"a && b ?? c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:7)\", { ecmaVersion: 11 })\ntestFail(\"a ?? b || c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:7)\", { ecmaVersion: 11 })\ntestFail(\"a ?? b && c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:7)\", { ecmaVersion: 11 })\n\ntestFail(\"a+1 || b+1 ?? c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:11)\", { ecmaVersion: 11 })\ntestFail(\"a+1 && b+1 ?? c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:11)\", { ecmaVersion: 11 })\ntestFail(\"a+1 ?? b+1 || c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:11)\", { ecmaVersion: 11 })\ntestFail(\"a+1 ?? b+1 && c\", \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses (1:11)\", { ecmaVersion: 11 })\n"
  },
  {
    "path": "test/tests-numeric-separators.js",
    "content": "// Tests for ECMAScript 2021 Numeric Separators\n\nif (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test;\n  var testFail = require(\"./driver.js\").testFail;\n}\n\nfunction bigint(str) {\n  if (typeof BigInt !== \"function\") {\n    return null\n  }\n  return BigInt(str)\n}\n\ntest(\n  \"123_456\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 7,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 7,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 7,\n          \"value\": 123456,\n          \"raw\": \"123_456\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"123_456.123_456e+123_456\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 24,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 24,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 24,\n          \"value\": 123456.123456e+123456,\n          \"raw\": \"123_456.123_456e+123_456\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"0b1010_0001\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 11,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 11,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 11,\n          \"value\": 0b10100001,\n          \"raw\": \"0b1010_0001\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"0xDEAD_BEAF\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 11,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 11,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 11,\n          \"value\": 0xDEADBEAF,\n          \"raw\": \"0xDEAD_BEAF\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"0o755_666\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 9,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 9,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 9,\n          \"value\": 0o755666,\n          \"raw\": \"0o755_666\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \"123_456n\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 8,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 8,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 8,\n          \"value\": bigint(\"123456\"),\n          \"raw\": \"123_456n\",\n          \"bigint\": \"123456\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntest(\n  \".012_345\",\n  {\n    \"type\": \"Program\",\n    \"start\": 0,\n    \"end\": 8,\n    \"body\": [\n      {\n        \"type\": \"ExpressionStatement\",\n        \"start\": 0,\n        \"end\": 8,\n        \"expression\": {\n          \"type\": \"Literal\",\n          \"start\": 0,\n          \"end\": 8,\n          \"value\": 0.012345,\n          \"raw\": \".012_345\"\n        }\n      }\n    ],\n    \"sourceType\": \"script\"\n  },\n  { ecmaVersion: 12 }\n);\n\ntestFail(\"123_456\", \"Identifier directly after number (1:3)\", { ecmaVersion: 11 });\ntestFail(\"123__456\", \"Numeric separator must be exactly one underscore (1:4)\", { ecmaVersion: 12 });\ntestFail(\"0._123456\", \"Numeric separator is not allowed at the first of digits (1:2)\", { ecmaVersion: 12 });\ntestFail(\"123456_\", \"Numeric separator is not allowed at the last of digits (1:6)\", { ecmaVersion: 12 });\ntestFail(\"012_345\", \"Numeric separator is not allowed in legacy octal numeric literals (1:3)\", { ecmaVersion: 12 });\n\ntestFail(\"'\\\\x2_0'\", \"Bad character escape sequence (1:3)\", { ecmaVersion: 12 });\ntestFail(\"'\\\\u00_20'\", \"Bad character escape sequence (1:3)\", { ecmaVersion: 12 });\ntestFail(\"'\\\\u{2_0}'\", \"Bad character escape sequence (1:4)\", { ecmaVersion: 12 });\n"
  },
  {
    "path": "test/tests-optional-catch-binding.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n}\n\ntest(\"try {} catch {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 15,\n  body: [\n    {\n      type: \"TryStatement\",\n      start: 0,\n      end: 15,\n      block: {\n        type: \"BlockStatement\",\n        start: 4,\n        end: 6,\n        body: []\n      },\n      handler: {\n        type: \"CatchClause\",\n        start: 7,\n        end: 15,\n        param: null,\n        body: {\n          type: \"BlockStatement\",\n          start: 13,\n          end: 15,\n          body: []\n        }\n      },\n      finalizer: null\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 10})\n"
  },
  {
    "path": "test/tests-optional-chaining.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n// Simple\ntest(\"obj?.foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 8,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 8,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 8,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 8,\n          \"object\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 3,\n            \"name\": \"obj\"\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 5,\n            \"end\": 8,\n            \"name\": \"foo\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"obj?.[foo]\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 10,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 10,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 10,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 10,\n          \"object\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 3,\n            \"name\": \"obj\"\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 9,\n            \"name\": \"foo\"\n          },\n          \"computed\": true,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"obj?.()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 7,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 7,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 7,\n        \"expression\": {\n          \"type\": \"CallExpression\",\n          \"start\": 0,\n          \"end\": 7,\n          \"callee\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 3,\n            \"name\": \"obj\"\n          },\n          \"arguments\": [],\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\n// Simple with spacing\ntest(\"obj ?. foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 10,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 10,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 10,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 10,\n          \"object\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 3,\n            \"name\": \"obj\"\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 7,\n            \"end\": 10,\n            \"name\": \"foo\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"obj ?. [foo]\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 12,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 12,\n          \"object\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 3,\n            \"name\": \"obj\"\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 8,\n            \"end\": 11,\n            \"name\": \"foo\"\n          },\n          \"computed\": true,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"obj ?. ()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 9,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 9,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 9,\n        \"expression\": {\n          \"type\": \"CallExpression\",\n          \"start\": 0,\n          \"end\": 9,\n          \"callee\": {\n            \"type\": \"Identifier\",\n            \"start\": 0,\n            \"end\": 3,\n            \"name\": \"obj\"\n          },\n          \"arguments\": [],\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\n// Existing valid syntax\ntest(\"obj?.0:.1\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 9,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 9,\n      \"expression\": {\n        \"type\": \"ConditionalExpression\",\n        \"start\": 0,\n        \"end\": 9,\n        \"test\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 3,\n          \"name\": \"obj\"\n        },\n        \"consequent\": {\n          \"type\": \"Literal\",\n          \"start\": 4,\n          \"end\": 6,\n          \"value\": 0,\n          \"raw\": \".0\"\n        },\n        \"alternate\": {\n          \"type\": \"Literal\",\n          \"start\": 7,\n          \"end\": 9,\n          \"value\": 0.1,\n          \"raw\": \".1\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\n// Chaining\ntest(\"obj?.aaa?.bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 13,\n          \"object\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 0,\n            \"end\": 8,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 3,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 8,\n              \"name\": \"aaa\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 10,\n            \"end\": 13,\n            \"name\": \"bbb\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"obj?.aaa.bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 12,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 12,\n          \"object\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 0,\n            \"end\": 8,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 3,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 8,\n              \"name\": \"aaa\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 9,\n            \"end\": 12,\n            \"name\": \"bbb\"\n          },\n          \"computed\": false,\n          \"optional\": false\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.aaa)?.bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 15,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 15,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 15,\n          \"object\": {\n            \"type\": \"ChainExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"expression\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 9,\n                \"name\": \"aaa\"\n              },\n              \"computed\": false,\n              \"optional\": true\n            }\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 12,\n            \"end\": 15,\n            \"name\": \"bbb\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.aaa).bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"MemberExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"object\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 1,\n          \"end\": 9,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 1,\n              \"end\": 4,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 6,\n              \"end\": 9,\n              \"name\": \"aaa\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          }\n        },\n        \"property\": {\n          \"type\": \"Identifier\",\n          \"start\": 11,\n          \"end\": 14,\n          \"name\": \"bbb\"\n        },\n        \"computed\": false,\n        \"optional\": false\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.aaa.bbb).ccc\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"MemberExpression\",\n        \"start\": 0,\n        \"end\": 18,\n        \"object\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 1,\n          \"end\": 13,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 1,\n            \"end\": 13,\n            \"object\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 9,\n                \"name\": \"aaa\"\n              },\n              \"computed\": false,\n              \"optional\": true\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"bbb\"\n            },\n            \"computed\": false,\n            \"optional\": false\n          }\n        },\n        \"property\": {\n          \"type\": \"Identifier\",\n          \"start\": 15,\n          \"end\": 18,\n          \"name\": \"ccc\"\n        },\n        \"computed\": false,\n        \"optional\": false\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"func?.()?.bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 13,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 13,\n          \"object\": {\n            \"type\": \"CallExpression\",\n            \"start\": 0,\n            \"end\": 8,\n            \"callee\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 4,\n              \"name\": \"func\"\n            },\n            \"arguments\": [],\n            \"optional\": true\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 10,\n            \"end\": 13,\n            \"name\": \"bbb\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"func?.().bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 12,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 12,\n          \"object\": {\n            \"type\": \"CallExpression\",\n            \"start\": 0,\n            \"end\": 8,\n            \"callee\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 4,\n              \"name\": \"func\"\n            },\n            \"arguments\": [],\n            \"optional\": true\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 9,\n            \"end\": 12,\n            \"name\": \"bbb\"\n          },\n          \"computed\": false,\n          \"optional\": false\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(func?.())?.bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 15,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 15,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 15,\n          \"object\": {\n            \"type\": \"ChainExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"expression\": {\n              \"type\": \"CallExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"callee\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 5,\n                \"name\": \"func\"\n              },\n              \"arguments\": [],\n              \"optional\": true\n            }\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 12,\n            \"end\": 15,\n            \"name\": \"bbb\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(func?.()).bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"MemberExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"object\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 1,\n          \"end\": 9,\n          \"expression\": {\n            \"type\": \"CallExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"callee\": {\n              \"type\": \"Identifier\",\n              \"start\": 1,\n              \"end\": 5,\n              \"name\": \"func\"\n            },\n            \"arguments\": [],\n            \"optional\": true\n          }\n        },\n        \"property\": {\n          \"type\": \"Identifier\",\n          \"start\": 11,\n          \"end\": 14,\n          \"name\": \"bbb\"\n        },\n        \"computed\": false,\n        \"optional\": false\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"obj?.aaa?.()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 12,\n        \"expression\": {\n          \"type\": \"CallExpression\",\n          \"start\": 0,\n          \"end\": 12,\n          \"callee\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 0,\n            \"end\": 8,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 3,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 8,\n              \"name\": \"aaa\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          },\n          \"arguments\": [],\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"obj?.aaa()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 10,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 10,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 10,\n        \"expression\": {\n          \"type\": \"CallExpression\",\n          \"start\": 0,\n          \"end\": 10,\n          \"callee\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 0,\n            \"end\": 8,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 0,\n              \"end\": 3,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 8,\n              \"name\": \"aaa\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          },\n          \"arguments\": [],\n          \"optional\": false\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.aaa)?.()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"expression\": {\n          \"type\": \"CallExpression\",\n          \"start\": 0,\n          \"end\": 14,\n          \"callee\": {\n            \"type\": \"ChainExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"expression\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 9,\n                \"name\": \"aaa\"\n              },\n              \"computed\": false,\n              \"optional\": true\n            }\n          },\n          \"arguments\": [],\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.aaa)()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"CallExpression\",\n        \"start\": 0,\n        \"end\": 12,\n        \"callee\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 1,\n          \"end\": 9,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 1,\n              \"end\": 4,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 6,\n              \"end\": 9,\n              \"name\": \"aaa\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          }\n        },\n        \"arguments\": [],\n        \"optional\": false\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\ntest(\"delete obj?.foo\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 15,\n      \"expression\": {\n        \"type\": \"UnaryExpression\",\n        \"start\": 0,\n        \"end\": 15,\n        \"operator\": \"delete\",\n        \"prefix\": true,\n        \"argument\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 7,\n          \"end\": 15,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 7,\n            \"end\": 15,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 10,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 12,\n              \"end\": 15,\n              \"name\": \"foo\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          }\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\n// OK if paranthesized.\ntest(\"new (obj?.foo)()\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"NewExpression\",\n        \"start\": 0,\n        \"end\": 16,\n        \"callee\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 5,\n          \"end\": 13,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 5,\n            \"end\": 13,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 8,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 10,\n              \"end\": 13,\n              \"name\": \"foo\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          }\n        },\n        \"arguments\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.foo)`template`\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 20,\n      \"expression\": {\n        \"type\": \"TaggedTemplateExpression\",\n        \"start\": 0,\n        \"end\": 20,\n        \"tag\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 1,\n          \"end\": 9,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 1,\n              \"end\": 4,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 6,\n              \"end\": 9,\n              \"name\": \"foo\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          }\n        },\n        \"quasi\": {\n          \"type\": \"TemplateLiteral\",\n          \"start\": 10,\n          \"end\": 20,\n          \"expressions\": [],\n          \"quasis\": [\n            {\n              \"type\": \"TemplateElement\",\n              \"start\": 11,\n              \"end\": 19,\n              \"value\": {\n                \"raw\": \"template\",\n                \"cooked\": \"template\"\n              },\n              \"tail\": true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.foo).bar = 0\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 18,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 14,\n          \"object\": {\n            \"type\": \"ChainExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"expression\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 9,\n                \"name\": \"foo\"\n              },\n              \"computed\": false,\n              \"optional\": true\n            }\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 14,\n            \"name\": \"bar\"\n          },\n          \"computed\": false,\n          \"optional\": false\n        },\n        \"right\": {\n          \"type\": \"Literal\",\n          \"start\": 17,\n          \"end\": 18,\n          \"value\": 0,\n          \"raw\": \"0\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj?.foo).bar++\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"UpdateExpression\",\n        \"start\": 0,\n        \"end\": 16,\n        \"operator\": \"++\",\n        \"prefix\": false,\n        \"argument\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 14,\n          \"object\": {\n            \"type\": \"ChainExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"expression\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 9,\n                \"name\": \"foo\"\n              },\n              \"computed\": false,\n              \"optional\": true\n            }\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 11,\n            \"end\": 14,\n            \"name\": \"bar\"\n          },\n          \"computed\": false,\n          \"optional\": false\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"for ((obj?.foo).bar of []);\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 27,\n  \"body\": [\n    {\n      \"type\": \"ForOfStatement\",\n      \"start\": 0,\n      \"end\": 27,\n      \"await\": false,\n      \"left\": {\n        \"type\": \"MemberExpression\",\n        \"start\": 5,\n        \"end\": 19,\n        \"object\": {\n          \"type\": \"ChainExpression\",\n          \"start\": 6,\n          \"end\": 14,\n          \"expression\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 6,\n            \"end\": 14,\n            \"object\": {\n              \"type\": \"Identifier\",\n              \"start\": 6,\n              \"end\": 9,\n              \"name\": \"obj\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 11,\n              \"end\": 14,\n              \"name\": \"foo\"\n            },\n            \"computed\": false,\n            \"optional\": true\n          }\n        },\n        \"property\": {\n          \"type\": \"Identifier\",\n          \"start\": 16,\n          \"end\": 19,\n          \"name\": \"bar\"\n        },\n        \"computed\": false,\n        \"optional\": false\n      },\n      \"right\": {\n        \"type\": \"ArrayExpression\",\n        \"start\": 23,\n        \"end\": 25,\n        \"elements\": []\n      },\n      \"body\": {\n        \"type\": \"EmptyStatement\",\n        \"start\": 26,\n        \"end\": 27\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\n// With ParenthesizedExpression\ntest(\"(obj?.aaa).bbb\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"MemberExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"object\": {\n          \"type\": \"ParenthesizedExpression\",\n          \"start\": 0,\n          \"end\": 10,\n          \"expression\": {\n            \"type\": \"ChainExpression\",\n            \"start\": 1,\n            \"end\": 9,\n            \"expression\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 9,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 9,\n                \"name\": \"aaa\"\n              },\n              \"computed\": false,\n              \"optional\": true\n            }\n          }\n        },\n        \"property\": {\n          \"type\": \"Identifier\",\n          \"start\": 11,\n          \"end\": 14,\n          \"name\": \"bbb\"\n        },\n        \"computed\": false,\n        \"optional\": false\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11, preserveParens: true })\n\n// No ChainExpression if `callee|object` doesn't contain `?.` even if it's parenthesized.\ntest(\"(obj.foo.bar)?.buz\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 18,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 18,\n          \"object\": {\n            \"type\": \"MemberExpression\",\n            \"start\": 1,\n            \"end\": 12,\n            \"object\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 8,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 5,\n                \"end\": 8,\n                \"name\": \"foo\"\n              },\n              \"computed\": false,\n              \"optional\": false\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"start\": 9,\n              \"end\": 12,\n              \"name\": \"bar\"\n            },\n            \"computed\": false,\n            \"optional\": false\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 15,\n            \"end\": 18,\n            \"name\": \"buz\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\ntest(\"(obj.foo())?.buz\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"ChainExpression\",\n        \"start\": 0,\n        \"end\": 16,\n        \"expression\": {\n          \"type\": \"MemberExpression\",\n          \"start\": 0,\n          \"end\": 16,\n          \"object\": {\n            \"type\": \"CallExpression\",\n            \"start\": 1,\n            \"end\": 10,\n            \"callee\": {\n              \"type\": \"MemberExpression\",\n              \"start\": 1,\n              \"end\": 8,\n              \"object\": {\n                \"type\": \"Identifier\",\n                \"start\": 1,\n                \"end\": 4,\n                \"name\": \"obj\"\n              },\n              \"property\": {\n                \"type\": \"Identifier\",\n                \"start\": 5,\n                \"end\": 8,\n                \"name\": \"foo\"\n              },\n              \"computed\": false,\n              \"optional\": false\n            },\n            \"arguments\": [],\n            \"optional\": false\n          },\n          \"property\": {\n            \"type\": \"Identifier\",\n            \"start\": 13,\n            \"end\": 16,\n            \"name\": \"buz\"\n          },\n          \"computed\": false,\n          \"optional\": true\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 11 })\n\n// With an old ecmaVersion.\ntestFail(\"obj?.foo\", \"Unexpected token (1:4)\", { ecmaVersion: 10 })\ntestFail(\"obj?.[foo]\", \"Unexpected token (1:4)\", { ecmaVersion: 10 })\ntestFail(\"obj?.()\", \"Unexpected token (1:4)\", { ecmaVersion: 10 })\n\n// Syntax errors.\ntestFail(\"obj?.0\", \"Unexpected token (1:6)\", { ecmaVersion: 11 })\ntestFail(\"async?.() => {}\", \"Unexpected token (1:10)\", { ecmaVersion: 11 })\ntestFail(\"new obj?.()\", \"Optional chaining cannot appear in the callee of new expressions (1:7)\", { ecmaVersion: 11 })\ntestFail(\"new obj?.foo()\", \"Optional chaining cannot appear in the callee of new expressions (1:7)\", { ecmaVersion: 11 })\ntestFail(\"obj?.foo\\n`template`\", \"Optional chaining cannot appear in the tag of tagged template expressions (2:0)\", { ecmaVersion: 11 })\ntestFail(\"obj?.foo = 0\", \"Optional chaining cannot appear in left-hand side (1:0)\", { ecmaVersion: 11 })\ntestFail(\"obj?.foo.bar = 0\", \"Optional chaining cannot appear in left-hand side (1:0)\", { ecmaVersion: 11 })\ntestFail(\"obj?.().foo = 0\", \"Optional chaining cannot appear in left-hand side (1:0)\", { ecmaVersion: 11 })\ntestFail(\"obj?.foo++\", \"Optional chaining cannot appear in left-hand side (1:0)\", { ecmaVersion: 11 })\ntestFail(\"obj?.foo--\", \"Optional chaining cannot appear in left-hand side (1:0)\", { ecmaVersion: 11 })\ntestFail(\"++obj?.foo\", \"Optional chaining cannot appear in left-hand side (1:2)\", { ecmaVersion: 11 })\ntestFail(\"--obj?.foo\", \"Optional chaining cannot appear in left-hand side (1:2)\", { ecmaVersion: 11 })\ntestFail(\"obj?.foo.bar++\", \"Optional chaining cannot appear in left-hand side (1:0)\", { ecmaVersion: 11 })\ntestFail(\"for (obj?.foo in {});\", \"Optional chaining cannot appear in left-hand side (1:5)\", { ecmaVersion: 11 })\ntestFail(\"for (obj?.foo.bar in {});\", \"Optional chaining cannot appear in left-hand side (1:5)\", { ecmaVersion: 11 })\ntestFail(\"for (obj?.foo of []);\", \"Optional chaining cannot appear in left-hand side (1:5)\", { ecmaVersion: 11 })\ntestFail(\"for (obj?.foo.bar of []);\", \"Optional chaining cannot appear in left-hand side (1:5)\", { ecmaVersion: 11 })\n"
  },
  {
    "path": "test/tests-regexp-2018.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n//------------------------------------------------------------------------------\n// Named capture groups\n//------------------------------------------------------------------------------\n\ntest(\"/(a)/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?:a)/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/(?a/\", \"Invalid regular expression: /(?a/: Invalid group (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?a)/\", \"Invalid regular expression: /(?a)/: Invalid group (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?</\", \"Invalid regular expression: /(?</: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<)/\", \"Invalid regular expression: /(?<)/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a)/\", \"Invalid regular expression: /(?<a)/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/(?<a>)/\", {}, { ecmaVersion: 2018 })\ntest(\"/\\\\k/\", {}, { ecmaVersion: 2017 })\ntest(\"/\\\\k/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\k/u\", \"Invalid regular expression: /\\\\k/: Invalid escape (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/\\\\k/u\", \"Invalid regular expression: /\\\\k/: Invalid named reference (1:1)\", { ecmaVersion: 2018 })\ntest(\"/\\\\k<a>/\", {}, { ecmaVersion: 2017 })\ntest(\"/\\\\k<a>/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\k<a>/u\", \"Invalid regular expression: /\\\\k<a>/: Invalid escape (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/\\\\k<a>/u\", \"Invalid regular expression: /\\\\k<a>/: Invalid named capture referenced (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k</\", \"Invalid regular expression: /(?<a>a)\\\\k</: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<a>a)\\\\k</\", \"Invalid regular expression: /(?<a>a)\\\\k</: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k</u\", \"Invalid regular expression: /(?<a>a)\\\\k</: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<a>a)\\\\k</u\", \"Invalid regular expression: /(?<a>a)\\\\k</: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k<a/\", \"Invalid regular expression: /(?<a>a)\\\\k<a/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<a>a)\\\\k<a/\", \"Invalid regular expression: /(?<a>a)\\\\k<a/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k<a/u\", \"Invalid regular expression: /(?<a>a)\\\\k<a/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<a>a)\\\\k<a/u\", \"Invalid regular expression: /(?<a>a)\\\\k<a/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k<a>/\", \"Invalid regular expression: /(?<a>a)\\\\k<a>/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntest(\"/(?<a>a)\\\\k<a>/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k<a>/u\", \"Invalid regular expression: /(?<a>a)\\\\k<a>/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntest(\"/(?<a>a)\\\\k<a>/u\", {}, { ecmaVersion: 2018 })\n\ntest(\"/(?<a>a)\\\\1/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>a)\\\\1/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>a)\\\\2/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\2/u\", \"Invalid regular expression: /(?<a>a)\\\\2/: Invalid escape (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k<b>/\", \"Invalid regular expression: /(?<a>a)\\\\k<b>/: Invalid named capture referenced (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)\\\\k<b>/u\", \"Invalid regular expression: /(?<a>a)\\\\k<b>/: Invalid named capture referenced (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)(?<a>a)/\", \"Invalid regular expression: /(?<a>a)(?<a>a)/: Duplicate capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)(?<a>a)/u\", \"Invalid regular expression: /(?<a>a)(?<a>a)/: Duplicate capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)(?<\\\\u{61}>a)/u\", \"Invalid regular expression: /(?<a>a)(?<\\\\u{61}>a)/: Duplicate capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a>a)(?<\\\\u0061>a)/u\", \"Invalid regular expression: /(?<a>a)(?<\\\\u0061>a)/: Duplicate capture group name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/(?<a>a)(?<b>a)/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>a)(?<b>a)/u\", {}, { ecmaVersion: 2018 })\n\ntest(\"/\\\\k<a>(?<a>a)/\", {}, { ecmaVersion: 2018 })\ntest(\"/\\\\k<a>(?<a>a)/u\", {}, { ecmaVersion: 2018 })\ntest(\"/\\\\1(?<a>a)/\", {}, { ecmaVersion: 2018 })\ntest(\"/\\\\1(?<a>a)/u\", {}, { ecmaVersion: 2018 })\n\ntest(\"/(?<$abc>a)\\\\k<$abc>/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<あ>a)\\\\k<あ>/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<𠮷>a)\\\\k<\\\\u{20bb7}>/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<\\\\uD842\\\\uDFB7>a)\\\\k<\\\\u{20bb7}>/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<\\\\u{20bb7}>a)\\\\k<\\\\uD842\\\\uDFB7>/u\", {}, { ecmaVersion: 2018 })\ntestFail(\"/(?<☀>a)\\\\k<☀>/u\", \"Invalid regular expression: /(?<☀>a)\\\\k<☀>/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<\\\\u0020>a)\\\\k<\\\\u0020>/u\", \"Invalid regular expression: /(?<\\\\u0020>a)\\\\k<\\\\u0020>/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/(?<abc>a)\\\\k<\\\\u0061\\\\u0062\\\\u0063>/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<\\\\u0061\\\\u0062\\\\u0063>a)\\\\k<abc>/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<\\\\u0061\\\\u0062\\\\u0063>a)\\\\k<\\\\u{61}\\\\u{62}\\\\u{63}>/u\", {}, { ecmaVersion: 2018 })\ntestFail(\"/(?<\\\\u0061\\\\u0062\\\\u0063>a)\\\\k<abd>/u\", \"Invalid regular expression: /(?<\\\\u0061\\\\u0062\\\\u0063>a)\\\\k<abd>/: Invalid named capture referenced (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<11>a)\\\\k<11>/u\", \"Invalid regular expression: /(?<11>a)\\\\k<11>/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/(?<a1>a)\\\\k<a1>/u\", {}, { ecmaVersion: 2018 })\n\n//------------------------------------------------------------------------------\n// Unicode property escapes\n//------------------------------------------------------------------------------\n\ntest(\"/\\\\p/\", {}, { ecmaVersion: 2017 })\ntestFail(\"/\\\\p/u\", \"Invalid regular expression: /\\\\p/: Invalid escape (1:1)\", { ecmaVersion: 2017 })\ntest(\"/\\\\p/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\p/u\", \"Invalid regular expression: /\\\\p/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/\\\\p{/\", {}, { ecmaVersion: 2017 })\ntestFail(\"/\\\\p{/u\", \"Invalid regular expression: /\\\\p{/: Invalid escape (1:1)\", { ecmaVersion: 2017 })\ntest(\"/\\\\p{/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{/u\", \"Invalid regular expression: /\\\\p{/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/\\\\p{ASCII/\", {}, { ecmaVersion: 2017 })\ntestFail(\"/\\\\p{ASCII/u\", \"Invalid regular expression: /\\\\p{ASCII/: Invalid escape (1:1)\", { ecmaVersion: 2017 })\ntest(\"/\\\\p{ASCII/\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{ASCII/u\", \"Invalid regular expression: /\\\\p{ASCII/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/\\\\p{ASCII}/\", {}, { ecmaVersion: 2017 })\ntestFail(\"/\\\\p{ASCII}/u\", \"Invalid regular expression: /\\\\p{ASCII}/: Invalid escape (1:1)\", { ecmaVersion: 2017 })\ntest(\"/\\\\p{ASCII}/\", {}, { ecmaVersion: 2018 })\ntest(\"/\\\\p{ASCII}/u\", {}, { ecmaVersion: 2018 })\n\ntest(\"/\\\\p{Emoji}/u\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{General_Category}/u\", \"Invalid regular expression: /\\\\p{General_Category}/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{General_Category=}/u\", \"Invalid regular expression: /\\\\p{General_Category=}/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{General_Category/u\", \"Invalid regular expression: /\\\\p{General_Category/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{General_Category=/u\", \"Invalid regular expression: /\\\\p{General_Category=/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{General_Category=Letter/u\", \"Invalid regular expression: /\\\\p{General_Category=Letter/: Invalid property name (1:1)\", { ecmaVersion: 2018 })\ntest(\"/\\\\p{General_Category=Letter}/u\", {}, { ecmaVersion: 2018 })\ntestFail(\"/\\\\p{General_Category=Hiragana}/u\", \"Invalid regular expression: /\\\\p{General_Category=Hiragana}/: Invalid property value (1:1)\", { ecmaVersion: 2018 })\ntest(\"/\\\\p{Script=Hiragana}/u\", {}, { ecmaVersion: 2018 })\ntestFail(\"/[\\\\p{Script=Hiragana}-\\\\p{Script=Katakana}]/u\", \"Invalid regular expression: /[\\\\p{Script=Hiragana}-\\\\p{Script=Katakana}]/: Invalid character class (1:1)\", { ecmaVersion: 2018 })\ntest(\"/[\\\\p{Script=Hiragana}\\\\-\\\\p{Script=Katakana}]/u\", {}, { ecmaVersion: 2018 })\n\n//------------------------------------------------------------------------------\n// Lookbehind assertions\n//------------------------------------------------------------------------------\n\ntestFail(\"/(?<a)/\", \"Invalid regular expression: /(?<a)/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<a)/u\", \"Invalid regular expression: /(?<a)/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<a)/\", \"Invalid regular expression: /(?<a)/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<a)/u\", \"Invalid regular expression: /(?<a)/: Invalid capture group name (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a)/\", \"Invalid regular expression: /(?<=a)/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<=a)/u\", \"Invalid regular expression: /(?<=a)/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntest(\"/(?<=a)/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<=a)/u\", {}, { ecmaVersion: 2018 })\ntestFail(\"/(?<!a)/\", \"Invalid regular expression: /(?<!a)/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntestFail(\"/(?<!a)/u\", \"Invalid regular expression: /(?<!a)/: Invalid group (1:1)\", { ecmaVersion: 2017 })\ntest(\"/(?<!a)/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<!a)/u\", {}, { ecmaVersion: 2018 })\n\ntestFail(\"/(?<=a)?/\", \"Invalid regular expression: /(?<=a)?/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a)?/u\", \"Invalid regular expression: /(?<=a)?/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a)+/\", \"Invalid regular expression: /(?<=a)+/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a)+/u\", \"Invalid regular expression: /(?<=a)+/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a)*/\", \"Invalid regular expression: /(?<=a)*/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a)*/u\", \"Invalid regular expression: /(?<=a)*/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a){1}/\", \"Invalid regular expression: /(?<=a){1}/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<=a){1}/u\", \"Invalid regular expression: /(?<=a){1}/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\n\ntestFail(\"/(?<!a)?/\", \"Invalid regular expression: /(?<!a)?/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a)?/u\", \"Invalid regular expression: /(?<!a)?/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a)+/\", \"Invalid regular expression: /(?<!a)+/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a)+/u\", \"Invalid regular expression: /(?<!a)+/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a)*/\", \"Invalid regular expression: /(?<!a)*/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a)*/u\", \"Invalid regular expression: /(?<!a)*/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a){1}/\", \"Invalid regular expression: /(?<!a){1}/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\ntestFail(\"/(?<!a){1}/u\", \"Invalid regular expression: /(?<!a){1}/: Nothing to repeat (1:1)\", { ecmaVersion: 2018 })\n\ntest(\"/(?<=(?<a>\\\\w){3})f/u\", {}, { ecmaVersion: 2018 })\ntest(\"/((?<=\\\\w{3}))f/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>(?<=\\\\w{3}))f/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<!(?<a>\\\\d){3})f/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<!(?<a>\\\\D){3})f|f/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>(?<!\\\\D{3}))f|f/u\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<=(?<a>\\\\w){3})f/\", {}, { ecmaVersion: 2018 })\ntest(\"/((?<=\\\\w{3}))f/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>(?<=\\\\w{3}))f/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<!(?<a>\\\\d){3})f/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<a>(?<!\\\\D{3}))f|f/\", {}, { ecmaVersion: 2018 })\ntest(\"/(?<=(?<fst>.)|(?<snd>.))/u\", {}, { ecmaVersion: 2018 })\n"
  },
  {
    "path": "test/tests-regexp-2020.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n// https://github.com/tc39/ecma262/pull/1869\ntestFail(\"/(?<\\\\ud835\\\\udc9c>.)/\", \"Invalid regular expression: /(?<\\\\ud835\\\\udc9c>.)/: Invalid capture group name (1:1)\", { ecmaVersion: 2019 })\ntest(\"/(?<\\\\ud835\\\\udc9c>.)/\", {}, { ecmaVersion: 2020 })\ntest(\"/(?<\\\\ud835\\\\udc9c>.)/u\", {}, { ecmaVersion: 2019 })\ntest(\"/(?<\\\\ud835\\\\udc9c>.)/u\", {}, { ecmaVersion: 2020 })\n\ntestFail(\"/(?<\\\\u{1d49c}>.)/\", \"Invalid regular expression: /(?<\\\\u{1d49c}>.)/: Invalid capture group name (1:1)\", { ecmaVersion: 2019 })\ntest(\"/(?<\\\\u{1d49c}>.)/\", {}, { ecmaVersion: 2020 })\ntest(\"/(?<\\\\u{1d49c}>.)/u\", {}, { ecmaVersion: 2019 })\ntest(\"/(?<\\\\u{1d49c}>.)/u\", {}, { ecmaVersion: 2020 })\n\ntestFail(\"/(?<𝒜>.)/\", \"Invalid regular expression: /(?<𝒜>.)/: Invalid capture group name (1:1)\", { ecmaVersion: 2019 })\ntest(\"/(?<𝒜>.)/\", {}, { ecmaVersion: 2020 })\ntest(\"/(?<𝒜>.)/u\", {}, { ecmaVersion: 2019 })\ntest(\"/(?<𝒜>.)/u\", {}, { ecmaVersion: 2020 })\n\n"
  },
  {
    "path": "test/tests-regexp-2022.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n// https://github.com/tc39/ecma262/pull/1713\ntestFail(\"/a+(?<Z>z)?/d\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 2021 })\ntest(\"/a+(?<Z>z)?/d\", {}, { ecmaVersion: 2022 })\n"
  },
  {
    "path": "test/tests-regexp-2024.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\ntest(\"/a/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/a/v\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 2023 })\ntestFail(\"/a/uv\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 2024 })\ntest(\"/[]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[&]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\b]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\&]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[\\\\z]/v\", \"Invalid regular expression: /[\\\\z]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a\\\\z]/v\", \"Invalid regular expression: /[a\\\\z]/: Unterminated character class (1:1)\", { ecmaVersion: 2024 })\n// Union\ntest(\"/[abc]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[a-c]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[a-bc]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[ab-c]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[c-a]/v\", \"Invalid regular expression: /[c-a]/: Range out of order in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a-\\\\b]/v\", \"Invalid regular expression: /[a-\\\\b]/: Range out of order in character class (1:1)\", { ecmaVersion: 2024 })\n// Expression\ntest(\"/[a&&b]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[a--b]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[a&&b&&c]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[a--b--c]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[a--]/v\", \"Invalid regular expression: /[a--]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a&&]/v\", \"Invalid regular expression: /[a&&]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a--b&&c]/v\", \"Invalid regular expression: /[a--b&&c]/: Unterminated character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a&&b--c]/v\", \"Invalid regular expression: /[a&&b--c]/: Unterminated character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a&&&]/v\", \"Invalid regular expression: /[a&&&]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a&&b&&]/v\", \"Invalid regular expression: /[a&&b&&]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[a--b--]/v\", \"Invalid regular expression: /[a--b--]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntest(\"/[a&&\\\\&]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[&&]/v\", \"Invalid regular expression: /[&&]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[!!]/v\", \"Invalid regular expression: /[!!]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[##]/v\", \"Invalid regular expression: /[##]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[--]/v\", \"Invalid regular expression: /[--]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\n// Nested\ntest(\"/[[a&&b]--[c&&d]]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[[a--b]&&[c--d]]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[[a&&b][c--d][ef]]/v\", {}, { ecmaVersion: 2024 })\n// Class String\ntest(\"/[\\\\q{a|b}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\q{abc}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\q{}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\q{abc|def}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\q{abc|d|ef}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\q{|||abc||||}]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/\\\\q{a|b}/v\", \"Invalid regular expression: /\\\\q{a|b}/: Invalid escape (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[\\\\q{a|b]/v\", \"Invalid regular expression: /[\\\\q{a|b]/: Invalid character in character class (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[\\\\q{a|b}]/u\", \"Invalid regular expression: /[\\\\q{a|b}]/: Invalid escape (1:1)\", { ecmaVersion: 2024 })\n// Unicode binary properties of strings\ntest(\"/\\\\p{Basic_Emoji}/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/\\\\p{Basic_Emoji}/u\", \"Invalid regular expression: /\\\\p{Basic_Emoji}/: Invalid property name (1:1)\", { ecmaVersion: 2024 })\ntest(\"/\\\\p{Basic_Emoji}/\", {}, { ecmaVersion: 2024 }) // Non unicode binary properties of strings\n// MayContainStrings\ntestFail(\"/\\\\P{Basic_Emoji}/v\", \"Invalid regular expression: /\\\\P{Basic_Emoji}/: Invalid property name (1:1)\", { ecmaVersion: 2024 })\ntest(\"/\\\\p{ASCII}/v\", {}, { ecmaVersion: 2024 })\ntest(\"/\\\\P{General_Category=Letter}/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\p{Basic_Emoji}]/v\", \"Invalid regular expression: /[^\\\\p{Basic_Emoji}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[^[\\\\p{Basic_Emoji}]]/v\", \"Invalid regular expression: /[^[\\\\p{Basic_Emoji}]]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntest(\"/[^\\\\d]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\D]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\s]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\S]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\w]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\W]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\p{ASCII}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\p{General_Category=Letter}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^[^\\\\p{ASCII}]]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[\\\\p{Basic_Emoji}][^]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^[\\\\p{ASCII}]]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\q{a}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\q{a|b}]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\q{}]/v\", \"Invalid regular expression: /[^\\\\q{}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\q{ab}]/v\", \"Invalid regular expression: /[^\\\\q{ab}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\q{a|bc}]/v\", \"Invalid regular expression: /[^\\\\q{a|bc}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntest(\"/[^\\\\q{a}\\\\q{b}]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\q{a}\\\\q{bc}]/v\", \"Invalid regular expression: /[^\\\\q{a}\\\\q{bc}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntest(\"/[^\\\\q{a}&&\\\\q{bc}]/v\", {}, { ecmaVersion: 2024 })\ntest(\"/[^\\\\q{ab}&&\\\\q{c}]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\q{ab}&&\\\\q{cd}]/v\", \"Invalid regular expression: /[^\\\\q{ab}&&\\\\q{cd}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\ntest(\"/[^\\\\q{a}--\\\\q{bc}]/v\", {}, { ecmaVersion: 2024 })\ntestFail(\"/[^\\\\q{ab}--\\\\q{c}]/v\", \"Invalid regular expression: /[^\\\\q{ab}--\\\\q{c}]/: Negated character class may contain strings (1:1)\", { ecmaVersion: 2024 })\n"
  },
  {
    "path": "test/tests-regexp-2025.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n// Duplicate named capture groups\ntest(\"/(?<x>a)|(?<x>b)/\", {}, {ecmaVersion: 2025})\ntestFail(\"/(?<x>a)|(?<x>b)/\", \"Invalid regular expression: /(?<x>a)|(?<x>b)/: Duplicate capture group name (1:1)\", {ecmaVersion: 2024 })\ntestFail(\"/(?<x>a)(?<x>b)/\", \"Invalid regular expression: /(?<x>a)(?<x>b)/: Duplicate capture group name (1:1)\", {ecmaVersion: 2025})\ntest(\"/(?:(?<x>a)|(?<x>b))\\\\k<x>/\", {}, {ecmaVersion: 2025})\ntestFail(\"/(?:(?<x>a)|(?<x>b))\\\\k<x>/\", \"Invalid regular expression: /(?:(?<x>a)|(?<x>b))\\\\k<x>/: Duplicate capture group name (1:1)\", {ecmaVersion: 2024 })\ntestFail(\"/(?:(?<x>a)(?<x>b))\\\\k<x>/\", \"Invalid regular expression: /(?:(?<x>a)(?<x>b))\\\\k<x>/: Duplicate capture group name (1:1)\", {ecmaVersion: 2025})\ntest(\"/(?<y>a)(?<x>a)|(?<x>b)(?<y>b)/\", {}, {ecmaVersion: 2025})\ntest(\"/(?<x>a)|(?<x>b)|(?<x>c)/\", {}, {ecmaVersion: 2025})\ntest(\"/(?<x>a)|\\\\k<x>/\", {}, {ecmaVersion: 2025})\ntestFail(\"/(?<x>a)|(?<x>b)(?<x>c)/\", \"Invalid regular expression: /(?<x>a)|(?<x>b)(?<x>c)/: Duplicate capture group name (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?:(?<x>a)|(?<x>b))(?<x>c)/\", \"Invalid regular expression: /(?:(?<x>a)|(?<x>b))(?<x>c)/: Duplicate capture group name (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?<x>a)(?:(?<x>b)|(?<x>c))/\", \"Invalid regular expression: /(?<x>a)(?:(?<x>b)|(?<x>c))/: Duplicate capture group name (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?:(?:(?<x>a)|(?<x>b))|(?:))(?<x>c)/\", \"Invalid regular expression: /(?:(?:(?<x>a)|(?<x>b))|(?:))(?<x>c)/: Duplicate capture group name (1:1)\", {ecmaVersion: 2025})\n\n// Modifiers\ntest(\"/(?i-m:p)?/\", {}, {ecmaVersion: 2025})\ntest(\"/(?i-m:p)?/u\", {}, {ecmaVersion: 2025})\ntest(\"/(?ims:p)?/\", {}, {ecmaVersion: 2025})\ntest(\"/(?ims-:p)?/\", {}, {ecmaVersion: 2025})\ntest(\"/(?-ims:p)?/\", {}, {ecmaVersion: 2025})\ntest(\"/(?:no modifiers)?/\", {}, {ecmaVersion: 2025})\n// In ES2024\ntestFail(\"/(?i-m:p)?/\", \"Invalid regular expression: /(?i-m:p)?/: Invalid group (1:1)\", {ecmaVersion: 2024})\ntestFail(\"/(?ims:p)?/\", \"Invalid regular expression: /(?ims:p)?/: Invalid group (1:1)\", {ecmaVersion: 2024})\ntestFail(\"/(?ims-:p)?/\", \"Invalid regular expression: /(?ims-:p)?/: Invalid group (1:1)\", {ecmaVersion: 2024})\ntestFail(\"/(?-ims:p)?/\", \"Invalid regular expression: /(?-ims:p)?/: Invalid group (1:1)\", {ecmaVersion: 2024})\n// It is a Syntax Error if the first modifiers and the second modifiers are both empty.\ntestFail(\"/(?-:p)?/\", \"Invalid regular expression: /(?-:p)?/: Invalid regular expression modifiers (1:1)\", {ecmaVersion: 2025})\n// It is a Syntax Error if the first modifiers contains the same code point more than once.\ntestFail(\"/(?ii:p)?/\", \"Invalid regular expression: /(?ii:p)?/: Duplicate regular expression modifiers (1:1)\", {ecmaVersion: 2025})\n// It is a Syntax Error if the second modifiers contains the same code point more than once.\ntestFail(\"/(?-ii:p)?/\", \"Invalid regular expression: /(?-ii:p)?/: Duplicate regular expression modifiers (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?i-mm:p)?/\", \"Invalid regular expression: /(?i-mm:p)?/: Duplicate regular expression modifiers (1:1)\", {ecmaVersion: 2025})\n// It is a Syntax Error if any code point in the first modifiers is also contained in the second modifiers.\ntestFail(\"/(?i-i:p)?/\", \"Invalid regular expression: /(?i-i:p)?/: Duplicate regular expression modifiers (1:1)\", {ecmaVersion: 2025})\n// Not modifiers\ntestFail(\"/(?u:p)?/\", \"Invalid regular expression: /(?u:p)?/: Invalid group (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?u-:p)?/\", \"Invalid regular expression: /(?u-:p)?/: Invalid group (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?u-i:p)?/\", \"Invalid regular expression: /(?u-i:p)?/: Invalid group (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?-u:p)?/\", \"Invalid regular expression: /(?-u:p)?/: Invalid group (1:1)\", {ecmaVersion: 2025})\ntestFail(\"/(?i-u:p)?/\", \"Invalid regular expression: /(?i-u:p)?/: Invalid group (1:1)\", {ecmaVersion: 2025})\n"
  },
  {
    "path": "test/tests-regexp.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\ntest(\"/foo/\", {}, { ecmaVersion: 5 })\ntest(\"/foo/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/foo/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/foo/u\", {}, { ecmaVersion: 2015 })\ntest(\"/foo|bar/\", {}, { ecmaVersion: 5 })\ntest(\"/foo|bar/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/foo|bar/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/foo|bar/u\", {}, { ecmaVersion: 2015 })\ntest(\"/||||/\", {}, { ecmaVersion: 5 })\ntest(\"/||||/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/||||/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/||||/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^|$|\\\\b|\\\\B/\", {}, { ecmaVersion: 5 })\ntest(\"/^|$|\\\\b|\\\\B/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^|$|\\\\b|\\\\B/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^|$|\\\\b|\\\\B/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(/\", \"Invalid regular expression: /(/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(/\", \"Invalid regular expression: /(/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(/u\", \"Invalid regular expression: /(/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?/\", \"Invalid regular expression: /(?/: Invalid group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?/\", \"Invalid regular expression: /(?/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?/u\", \"Invalid regular expression: /(?/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?=/\", \"Invalid regular expression: /(?=/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=/\", \"Invalid regular expression: /(?=/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?=/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=/u\", \"Invalid regular expression: /(?=/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=)/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(?=)/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=foo/\", \"Invalid regular expression: /(?=foo/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=foo/\", \"Invalid regular expression: /(?=foo/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?=foo/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=foo/u\", \"Invalid regular expression: /(?=foo/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=foo)/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=foo)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=foo)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(?=foo)/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?!/\", \"Invalid regular expression: /(?!/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?!/\", \"Invalid regular expression: /(?!/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?!/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?!/u\", \"Invalid regular expression: /(?!/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?!)/\", {}, { ecmaVersion: 5 })\ntest(\"/(?!)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?!)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(?!)/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?!foo/\", \"Invalid regular expression: /(?!foo/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?!foo/\", \"Invalid regular expression: /(?!foo/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?!foo/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?!foo/u\", \"Invalid regular expression: /(?!foo/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?!foo)/\", {}, { ecmaVersion: 5 })\ntest(\"/(?!foo)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?!foo)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(?!foo)/u\", {}, { ecmaVersion: 2015 })\ntest(\"/(?=a)*/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a)*/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a)*/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a)*/u\", \"Invalid regular expression: /(?=a)*/: Invalid quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a)+/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a)+/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a)+/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a)+/u\", \"Invalid regular expression: /(?=a)+/: Invalid quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a)?/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a)?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a)?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a)?/u\", \"Invalid regular expression: /(?=a)?/: Invalid quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a){/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a){/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a){/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a){/u\", \"Invalid regular expression: /(?=a){/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a){}/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a){}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a){}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a){}/u\", \"Invalid regular expression: /(?=a){}/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a){a}/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a){a}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a){a}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a){a}/u\", \"Invalid regular expression: /(?=a){a}/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a){1}/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a){1}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a){1}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a){1}/u\", \"Invalid regular expression: /(?=a){1}/: Invalid quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a){1,}/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a){1,}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a){1,}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a){1,}/u\", \"Invalid regular expression: /(?=a){1,}/: Invalid quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?=a){1,2}/\", {}, { ecmaVersion: 5 })\ntest(\"/(?=a){1,2}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?=a){1,2}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?=a){1,2}/u\", \"Invalid regular expression: /(?=a){1,2}/: Invalid quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a*/\", {}, { ecmaVersion: 5 })\ntest(\"/a*/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a*/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a*/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a+/\", {}, { ecmaVersion: 5 })\ntest(\"/a+/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a+/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a+/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a?/\", {}, { ecmaVersion: 5 })\ntest(\"/a?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{/\", {}, { ecmaVersion: 5 })\ntest(\"/a{/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{/u\", \"Invalid regular expression: /a{/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{}/\", {}, { ecmaVersion: 5 })\ntest(\"/a{}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{}/u\", \"Invalid regular expression: /a{}/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{a}/\", {}, { ecmaVersion: 5 })\ntest(\"/a{a}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{a}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{a}/u\", \"Invalid regular expression: /a{a}/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{1}/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a{1}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{1/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{1/u\", \"Invalid regular expression: /a{1/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{1,}/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a{1,}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{1,/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{1,/u\", \"Invalid regular expression: /a{1,/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{1,2}/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,2}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,2}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a{1,2}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{1,2/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,2/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,2/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{1,2/u\", \"Invalid regular expression: /a{1,2/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/a{2,1}/\", \"Invalid regular expression: /a{2,1}/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{2,1}/\", \"Invalid regular expression: /a{2,1}/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/a{2,1}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{2,1}/u\", \"Invalid regular expression: /a{2,1}/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{2,1/\", {}, { ecmaVersion: 5 })\ntest(\"/a{2,1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{2,1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{2,1/u\", \"Invalid regular expression: /a{2,1/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(a{2,1}/\", \"Invalid regular expression: /(a{2,1}/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(a{2,1}/\", \"Invalid regular expression: /(a{2,1}/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(a{2,1}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(a{2,1}/u\", \"Invalid regular expression: /(a{2,1}/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a*?/\", {}, { ecmaVersion: 5 })\ntest(\"/a*?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a*?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a*?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a+?/\", {}, { ecmaVersion: 5 })\ntest(\"/a+?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a+?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a+?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a??/\", {}, { ecmaVersion: 5 })\ntest(\"/a??/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a??/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a??/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{?/u\", \"Invalid regular expression: /a{?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{}?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{}?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{}?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{}?/u\", \"Invalid regular expression: /a{}?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{a}?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{a}?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{a}?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{a}?/u\", \"Invalid regular expression: /a{a}?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{1}?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1}?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1}?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a{1}?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{1?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{1?/u\", \"Invalid regular expression: /a{1?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{1,}?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,}?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,}?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a{1,}?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{1,?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{1,?/u\", \"Invalid regular expression: /a{1,?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{1,2}?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,2}?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,2}?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/a{1,2}?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/a{1,2?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{1,2?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{1,2?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{1,2?/u\", \"Invalid regular expression: /a{1,2?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/a{2,1}?/\", \"Invalid regular expression: /a{2,1}?/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{2,1}?/\", \"Invalid regular expression: /a{2,1}?/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/a{2,1}?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{2,1}?/u\", \"Invalid regular expression: /a{2,1}?/: numbers out of order in {} quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/a{2,1?/\", {}, { ecmaVersion: 5 })\ntest(\"/a{2,1?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/a{2,1?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/a{2,1?/u\", \"Invalid regular expression: /a{2,1?/: Incomplete quantifier (1:1)\", { ecmaVersion: 2015 })\ntest(\"/👍🚀❇️/\", {}, { ecmaVersion: 5 })\ntest(\"/👍🚀❇️/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/👍🚀❇️/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/👍🚀❇️/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^/\", {}, { ecmaVersion: 5 })\ntest(\"/^/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^/u\", {}, { ecmaVersion: 2015 })\ntest(\"/$/\", {}, { ecmaVersion: 5 })\ntest(\"/$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/./\", {}, { ecmaVersion: 5 })\ntest(\"/./\", {}, { ecmaVersion: 2015 })\ntestFail(\"/./u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/./u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(*)/\", \"Invalid regular expression: /(*)/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(*)/\", \"Invalid regular expression: /(*)/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(*)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(*)/u\", \"Invalid regular expression: /(*)/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/+/\", \"Invalid regular expression: /+/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/+/\", \"Invalid regular expression: /+/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/+/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/+/u\", \"Invalid regular expression: /+/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/?/\", \"Invalid regular expression: /?/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/?/\", \"Invalid regular expression: /?/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/?/u\", \"Invalid regular expression: /?/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(/\", \"Invalid regular expression: /(/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(/\", \"Invalid regular expression: /(/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(/u\", \"Invalid regular expression: /(/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/)/\", \"Invalid regular expression: /)/: Unmatched ')' (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/)/\", \"Invalid regular expression: /)/: Unmatched ')' (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/)/u\", \"Invalid regular expression: /)/: Unmatched ')' (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[/\", \"Unterminated regular expression (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[/\", \"Unterminated regular expression (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[/u\", \"Unterminated regular expression (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[/u\", \"Unterminated regular expression (1:1)\", { ecmaVersion: 2015 })\ntest(\"/]/\", {}, { ecmaVersion: 5 })\ntest(\"/]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/]/u\", \"Invalid regular expression: /]/: Lone quantifier brackets (1:1)\", { ecmaVersion: 2015 })\ntest(\"/{/\", {}, { ecmaVersion: 5 })\ntest(\"/{/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/{/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/{/u\", \"Invalid regular expression: /{/: Lone quantifier brackets (1:1)\", { ecmaVersion: 2015 })\ntest(\"/}/\", {}, { ecmaVersion: 5 })\ntest(\"/}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/}/u\", \"Invalid regular expression: /}/: Lone quantifier brackets (1:1)\", { ecmaVersion: 2015 })\ntest(\"/|/\", {}, { ecmaVersion: 5 })\ntest(\"/|/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/|/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/|/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^*/\", \"Invalid regular expression: /^*/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/^*/\", \"Invalid regular expression: /^*/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/^*/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/^*/u\", \"Invalid regular expression: /^*/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/$*/\", \"Invalid regular expression: /$*/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/$*/\", \"Invalid regular expression: /$*/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/$*/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/$*/u\", \"Invalid regular expression: /$*/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntest(\"/${1,2/\", {}, { ecmaVersion: 5 })\ntest(\"/${1,2/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/${1,2/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/${1,2/u\", \"Invalid regular expression: /${1,2/: Lone quantifier brackets (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/${1,2}/\", \"Invalid regular expression: /${1,2}/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/${1,2}/\", \"Invalid regular expression: /${1,2}/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/${1,2}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/${1,2}/u\", \"Invalid regular expression: /${1,2}/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/${2,1}/\", \"Invalid regular expression: /${2,1}/: Nothing to repeat (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/${2,1}/\", \"Invalid regular expression: /${2,1}/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/${2,1}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/${2,1}/u\", \"Invalid regular expression: /${2,1}/: Nothing to repeat (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\1/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\1/u\", \"Invalid regular expression: /\\\\1/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(a)\\\\1/\", {}, { ecmaVersion: 5 })\ntest(\"/(a)\\\\1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(a)\\\\1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(a)\\\\1/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\1(a)/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\1(a)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\1(a)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\1(a)/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\2(a)(/\", \"Invalid regular expression: /\\\\2(a)(/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\2(a)(/\", \"Invalid regular expression: /\\\\2(a)(/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/\\\\2(a)(/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\2(a)(/u\", \"Invalid regular expression: /\\\\2(a)(/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?:a)\\\\1/\", {}, { ecmaVersion: 5 })\ntest(\"/(?:a)\\\\1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?:a)\\\\1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?:a)\\\\1/u\", \"Invalid regular expression: /(?:a)\\\\1/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(a)\\\\2/\", {}, { ecmaVersion: 5 })\ntest(\"/(a)\\\\2/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(a)\\\\2/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(a)\\\\2/u\", \"Invalid regular expression: /(a)\\\\2/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?:a)\\\\2/\", {}, { ecmaVersion: 5 })\ntest(\"/(?:a)\\\\2/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?:a)\\\\2/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?:a)\\\\2/u\", \"Invalid regular expression: /(?:a)\\\\2/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\10/\", {}, { ecmaVersion: 5 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\10/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\10/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\10/u\", {}, { ecmaVersion: 2015 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/\", {}, { ecmaVersion: 5 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/u\", \"Invalid regular expression: /(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/\", {}, { ecmaVersion: 5 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?/\", \"Invalid regular expression: /(?/: Invalid group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?/\", \"Invalid regular expression: /(?/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?/u\", \"Invalid regular expression: /(?/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?a/\", \"Invalid regular expression: /(?a/: Invalid group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?a/\", \"Invalid regular expression: /(?a/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?a/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?a/u\", \"Invalid regular expression: /(?a/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?a)/\", \"Invalid regular expression: /(?a)/: Invalid group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?a)/\", \"Invalid regular expression: /(?a)/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?a)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?a)/u\", \"Invalid regular expression: /(?a)/: Invalid group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?:/\", \"Invalid regular expression: /(?:/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?:/\", \"Invalid regular expression: /(?:/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?:/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?:/u\", \"Invalid regular expression: /(?:/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?:a/\", \"Invalid regular expression: /(?:a/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?:a/\", \"Invalid regular expression: /(?:a/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(?:a/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(?:a/u\", \"Invalid regular expression: /(?:a/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/(?:a)/\", {}, { ecmaVersion: 5 })\ntest(\"/(?:a)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(?:a)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/(?:a)/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/(:a/\", \"Invalid regular expression: /(:a/: Unterminated group (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(:a/\", \"Invalid regular expression: /(:a/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/(:a/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/(:a/u\", \"Invalid regular expression: /(:a/: Unterminated group (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\d/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\d/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\d/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\d/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\D/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\D/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\D/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\D/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\s/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\s/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\s/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\s/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\S/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\S/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\S/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\S/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\w/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\w/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\w/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\w/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\W/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\W/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\W/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\W/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\f/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\f/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\f/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\f/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\n/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\n/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\n/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\n/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\r/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\r/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\r/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\r/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\t/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\t/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\t/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\t/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\v/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\v/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\v/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\v/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\cA/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\cA/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\cA/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\cA/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\cz/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\cz/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\cz/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\cz/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\c1/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\c1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\c1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\c1/u\", \"Invalid regular expression: /\\\\c1/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\c/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\c/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\c/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\c/u\", \"Invalid regular expression: /\\\\c/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\0/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\0/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\0/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\0/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\u/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u/u\", \"Invalid regular expression: /\\\\u/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u1/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u1/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u1/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u1/u\", \"Invalid regular expression: /\\\\u1/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u12/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u12/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u12/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u12/u\", \"Invalid regular expression: /\\\\u12/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u123/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u123/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u123/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u123/u\", \"Invalid regular expression: /\\\\u123/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u1234/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u1234/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u1234/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\u1234/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\u12345/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u12345/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u12345/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\u12345/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\u{/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u{/u\", \"Invalid regular expression: /\\\\u{/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u{z/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{z/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{z/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u{z/u\", \"Invalid regular expression: /\\\\u{z/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u{a}/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{a}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{a}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\u{a}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\u{20/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{20/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{20/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u{20/u\", \"Invalid regular expression: /\\\\u{20/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u{20}/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{20}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{20}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\u{20}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\u{10FFFF}/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{10FFFF}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{10FFFF}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\u{10FFFF}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\u{110000}/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{110000}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{110000}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\u{110000}/u\", \"Invalid regular expression: /\\\\u{110000}/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\u{00000001}/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\u{00000001}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\u{00000001}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\u{00000001}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\377/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\377/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\377/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\377/u\", \"Invalid regular expression: /\\\\377/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\400/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\400/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\400/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\400/u\", \"Invalid regular expression: /\\\\400/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\^/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\^/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\^/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\^/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\$/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\./\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\./\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\./u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\./u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\+/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\+/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\+/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\+/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\?/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\?/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\?/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\?/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\(/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\(/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\(/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\(/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\)/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\)/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\)/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\)/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\[/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\[/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\[/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\[/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\]/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\{/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\{/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\{/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\{/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\}/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\}/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\}/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\|/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\|/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\|/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\|/u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\//\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\//\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\//u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\//u\", {}, { ecmaVersion: 2015 })\ntest(\"/\\\\a/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\a/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\a/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/\\\\a/u\", \"Invalid regular expression: /\\\\a/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/\\\\s/\", {}, { ecmaVersion: 5 })\ntest(\"/\\\\s/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/\\\\s/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/\\\\s/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[]/\", {}, { ecmaVersion: 5 })\ntest(\"/[]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[^-a-b-]/\", {}, { ecmaVersion: 5 })\ntest(\"/[^-a-b-]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[^-a-b-]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[^-a-b-]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[-]/\", {}, { ecmaVersion: 5 })\ntest(\"/[-]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[-]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[-]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[a]/\", {}, { ecmaVersion: 5 })\ntest(\"/[a]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[a]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[--]/\", {}, { ecmaVersion: 5 })\ntest(\"/[--]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[--]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[--]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[-a]/\", {}, { ecmaVersion: 5 })\ntest(\"/[-a]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[-a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[-a]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[-a-]/\", {}, { ecmaVersion: 5 })\ntest(\"/[-a-]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[-a-]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[-a-]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[a-]/\", {}, { ecmaVersion: 5 })\ntest(\"/[a-]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[a-]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[a-]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[a-b]/\", {}, { ecmaVersion: 5 })\ntest(\"/[a-b]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[a-b]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[a-b]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[-a-b-]/\", {}, { ecmaVersion: 5 })\ntest(\"/[-a-b-]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[-a-b-]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[-a-b-]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[---]/\", {}, { ecmaVersion: 5 })\ntest(\"/[---]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[---]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[---]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[b-a]/\", \"Invalid regular expression: /[b-a]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[b-a]/\", \"Invalid regular expression: /[b-a]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[b-a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[b-a]/u\", \"Invalid regular expression: /[b-a]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[a-b--/]/\", {}, { ecmaVersion: 5 })\ntest(\"/[a-b--/]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[a-b--/]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[a-b--/]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[a-b--+]/\", \"Invalid regular expression: /[a-b--+]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[a-b--+]/\", \"Invalid regular expression: /[a-b--+]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[a-b--+]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[a-b--+]/u\", \"Invalid regular expression: /[a-b--+]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\b-\\\\n]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\b-\\\\n]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\b-\\\\n]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\b-\\\\n]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[b\\\\-a]/\", {}, { ecmaVersion: 5 })\ntest(\"/[b\\\\-a]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[b\\\\-a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[b\\\\-a]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\d]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\d]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\d]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\d]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\D]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\D]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\D]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\D]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\s]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\s]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\s]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\s]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\S]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\S]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\S]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\S]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\w]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\w]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\w]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\w]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\W]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\W]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\W]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\W]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\d]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\d]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\d]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\d]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\D]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\D]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\D]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\D]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\s]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\s]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\s]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\s]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\S]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\S]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\S]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\S]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\w]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\w]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\w]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\w]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\W]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\W]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\W]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\W]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\f]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\f]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\f]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\f]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\n]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\n]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\n]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\n]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\r]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\r]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\r]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\r]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\t]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\t]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\t]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\t]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\v]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\v]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\v]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\v]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\cA]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\cA]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\cA]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\cA]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\cz]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\cz]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\cz]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\cz]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\c1]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\c1]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\c1]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\c1]/u\", \"Invalid regular expression: /[\\\\c1]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\c]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\c]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\c]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\c]/u\", \"Invalid regular expression: /[\\\\c]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\0]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\0]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\0]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\0]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\x]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\x]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\x]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\x]/u\", \"Invalid regular expression: /[\\\\x]/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\xz]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\xz]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\xz]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\xz]/u\", \"Invalid regular expression: /[\\\\xz]/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\x1]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\x1]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\x1]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\x1]/u\", \"Invalid regular expression: /[\\\\x1]/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\x12]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\x12]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\x12]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\x12]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\x123]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\x123]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\x123]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\x123]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u]/u\", \"Invalid regular expression: /[\\\\u]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u1]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u1]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u1]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u1]/u\", \"Invalid regular expression: /[\\\\u1]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u12]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u12]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u12]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u12]/u\", \"Invalid regular expression: /[\\\\u12]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u123]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u123]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u123]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u123]/u\", \"Invalid regular expression: /[\\\\u123]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u1234]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u1234]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u1234]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u1234]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u12345]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u12345]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u12345]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u12345]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u{]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{]/u\", \"Invalid regular expression: /[\\\\u{]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u{z]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{z]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{z]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{z]/u\", \"Invalid regular expression: /[\\\\u{z]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u{a}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{a}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{a}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u{a}]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u{20]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{20]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{20]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{20]/u\", \"Invalid regular expression: /[\\\\u{20]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u{20}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{20}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{20}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u{20}]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u{10FFFF}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{10FFFF}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{10FFFF}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u{10FFFF}]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u{110000}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{110000}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{110000}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{110000}]/u\", \"Invalid regular expression: /[\\\\u{110000}]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u{00000001}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{00000001}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{00000001}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u{00000001}]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\77]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\77]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\77]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\77]/u\", \"Invalid regular expression: /[\\\\77]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\377]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\377]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\377]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\377]/u\", \"Invalid regular expression: /[\\\\377]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\400]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\400]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\400]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\400]/u\", \"Invalid regular expression: /[\\\\400]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\^]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\^]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\^]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\^]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\$]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\$]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\$]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\$]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\.]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\.]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\.]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\.]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\+]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\+]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\+]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\+]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\?]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\?]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\?]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\?]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\(]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\(]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\(]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\(]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\)]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\)]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\)]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\)]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\[]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\[]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\[]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\[]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\]]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\]]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\]]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\]]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\{]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\{]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\{]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\{]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\}]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\|]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\|]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\|]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\|]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\/]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\/]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\/]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\/]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\a]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\a]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\a]/u\", \"Invalid regular expression: /[\\\\a]/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\s]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\s]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\s]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\s]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\d-\\\\uFFFF]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\d-\\\\uFFFF]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\d-\\\\uFFFF]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\d-\\\\uFFFF]/u\", \"Invalid regular expression: /[\\\\d-\\\\uFFFF]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\D-\\\\uFFFF]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\D-\\\\uFFFF]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\D-\\\\uFFFF]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\D-\\\\uFFFF]/u\", \"Invalid regular expression: /[\\\\D-\\\\uFFFF]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\s-\\\\uFFFF]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\s-\\\\uFFFF]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\s-\\\\uFFFF]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\s-\\\\uFFFF]/u\", \"Invalid regular expression: /[\\\\s-\\\\uFFFF]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\S-\\\\uFFFF]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\S-\\\\uFFFF]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\S-\\\\uFFFF]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\S-\\\\uFFFF]/u\", \"Invalid regular expression: /[\\\\S-\\\\uFFFF]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\w-\\\\uFFFF]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\w-\\\\uFFFF]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\w-\\\\uFFFF]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\w-\\\\uFFFF]/u\", \"Invalid regular expression: /[\\\\w-\\\\uFFFF]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\W-\\\\uFFFF]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\W-\\\\uFFFF]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\W-\\\\uFFFF]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\W-\\\\uFFFF]/u\", \"Invalid regular expression: /[\\\\W-\\\\uFFFF]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\d]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\d]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\d]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0000-\\\\d]/u\", \"Invalid regular expression: /[\\\\u0000-\\\\d]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\D]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\D]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\D]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0000-\\\\D]/u\", \"Invalid regular expression: /[\\\\u0000-\\\\D]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\s]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\s]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\s]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0000-\\\\s]/u\", \"Invalid regular expression: /[\\\\u0000-\\\\s]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\S]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\S]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\S]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0000-\\\\S]/u\", \"Invalid regular expression: /[\\\\u0000-\\\\S]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\w]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\w]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\w]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0000-\\\\w]/u\", \"Invalid regular expression: /[\\\\u0000-\\\\w]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\W]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\W]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\W]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0000-\\\\W]/u\", \"Invalid regular expression: /[\\\\u0000-\\\\W]/: Invalid character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\u0001]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\u0001]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\u0001]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u0000-\\\\u0001]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0001-\\\\u0000]/\", \"Invalid regular expression: /[\\\\u0001-\\\\u0000]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0001-\\\\u0000]/\", \"Invalid regular expression: /[\\\\u0001-\\\\u0000]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0001-\\\\u0000]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u0001-\\\\u0000]/u\", \"Invalid regular expression: /[\\\\u0001-\\\\u0000]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{1}-\\\\u{2}]/\", \"Invalid regular expression: /[\\\\u{1}-\\\\u{2}]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{1}-\\\\u{2}]/\", \"Invalid regular expression: /[\\\\u{1}-\\\\u{2}]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{1}-\\\\u{2}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\u{1}-\\\\u{2}]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{2}-\\\\u{1}]/\", \"Invalid regular expression: /[\\\\u{2}-\\\\u{1}]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{2}-\\\\u{1}]/\", \"Invalid regular expression: /[\\\\u{2}-\\\\u{1}]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{2}-\\\\u{1}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{2}-\\\\u{1}]/u\", \"Invalid regular expression: /[\\\\u{2}-\\\\u{1}]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u{2-\\\\u{1}]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\u{2-\\\\u{1}]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u{2-\\\\u{1}]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\u{2-\\\\u{1}]/u\", \"Invalid regular expression: /[\\\\u{2-\\\\u{1}]/: Invalid unicode escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\a-\\\\z]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\a-\\\\z]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\a-\\\\z]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\a-\\\\z]/u\", \"Invalid regular expression: /[\\\\a-\\\\z]/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\z-\\\\a]/\", \"Invalid regular expression: /[\\\\z-\\\\a]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\z-\\\\a]/\", \"Invalid regular expression: /[\\\\z-\\\\a]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\z-\\\\a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\z-\\\\a]/u\", \"Invalid regular expression: /[\\\\z-\\\\a]/: Invalid escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[0-9--/]/\", {}, { ecmaVersion: 5 })\ntest(\"/[0-9--/]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[0-9--/]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[0-9--/]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[0-9--+]/\", \"Invalid regular expression: /[0-9--+]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[0-9--+]/\", \"Invalid regular expression: /[0-9--+]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[0-9--+]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[0-9--+]/u\", \"Invalid regular expression: /[0-9--+]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\c-a]/\", \"Invalid regular expression: /[\\\\c-a]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\c-a]/\", \"Invalid regular expression: /[\\\\c-a]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\c-a]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\c-a]/u\", \"Invalid regular expression: /[\\\\c-a]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\c0-\u001f]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\c0-\u001f]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\c0-\u001f]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\c0-\u001f]/u\", \"Invalid regular expression: /[\\\\c0-\u001f]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\c_]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\c_]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\c_]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\c_]/u\", \"Invalid regular expression: /[\\\\c_]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[🌷-🌸]/\", \"Invalid regular expression: /[🌷-🌸]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[🌷-🌸]/\", \"Invalid regular expression: /[🌷-🌸]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[🌷-🌸]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[🌷-🌸]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-🌸-\\\\u0000]/\", \"Invalid regular expression: /[\\\\u0000-🌸-\\\\u0000]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\u0000-\\\\ud83c\\\\udf38-\\\\u0000]/\", \"Invalid regular expression: /[\\\\u0000-\\\\ud83c\\\\udf38-\\\\u0000]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-🌸-\\\\u0000]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\u{1f338}-\\\\u0000]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\u0000-\\\\ud83c\\\\udf38-\\\\u0000]/u\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[🌸-🌷]/\", \"Invalid regular expression: /[🌸-🌷]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[🌸-🌷]/\", \"Invalid regular expression: /[🌸-🌷]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[🌸-🌷]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[🌸-🌷]/u\", \"Invalid regular expression: /[🌸-🌷]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/\", \"Invalid regular expression: /[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/: Range out of order in character class (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/\", \"Invalid regular expression: /[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/: Range out of order in character class (1:1)\", { ecmaVersion: 2015 })\ntestFail(\"/[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[0-9]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[0-9]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[0-9]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[0-9]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[0-9]+$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[0-9]+$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[0-9]+$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[0-9]+$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[a-zA-Z]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[a-zA-Z]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[a-zA-Z]+$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z]+$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[a-zA-Z]+$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z]+$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[0-9a-zA-Z]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[0-9a-zA-Z]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[0-9a-zA-Z]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[0-9a-zA-Z]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[a-zA-Z0-9!-/:-@\\\\[-`{-~]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z0-9!-/:-@\\\\[-`{-~]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[a-zA-Z0-9!-/:-@\\\\[-`{-~]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z0-9!-/:-@\\\\[-`{-~]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^([a-zA-Z0-9]{8,})$/\", {}, { ecmaVersion: 5 })\ntest(\"/^([a-zA-Z0-9]{8,})$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^([a-zA-Z0-9]{8,})$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^([a-zA-Z0-9]{8,})$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^([a-zA-Z0-9]{6,8})$/\", {}, { ecmaVersion: 5 })\ntest(\"/^([a-zA-Z0-9]{6,8})$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^([a-zA-Z0-9]{6,8})$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^([a-zA-Z0-9]{6,8})$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^([0-9]{0,8})$/\", {}, { ecmaVersion: 5 })\ntest(\"/^([0-9]{0,8})$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^([0-9]{0,8})$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^([0-9]{0,8})$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[0-9]{8}$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[0-9]{8}$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[0-9]{8}$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[0-9]{8}$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^https?:\\\\/\\\\//\", {}, { ecmaVersion: 5 })\ntest(\"/^https?:\\\\/\\\\//\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^https?:\\\\/\\\\//u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^https?:\\\\/\\\\//u\", {}, { ecmaVersion: 2015 })\ntest(\"/^\\\\d{3}-\\\\d{4}$/\", {}, { ecmaVersion: 5 })\ntest(\"/^\\\\d{3}-\\\\d{4}$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^\\\\d{3}-\\\\d{4}$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^\\\\d{3}-\\\\d{4}$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^\\\\d{1,3}(.\\\\d{1,3}){3}$/\", {}, { ecmaVersion: 5 })\ntest(\"/^\\\\d{1,3}(.\\\\d{1,3}){3}$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^\\\\d{1,3}(.\\\\d{1,3}){3}$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^\\\\d{1,3}(.\\\\d{1,3}){3}$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^([1-9][0-9]*|0)(\\\\.[0-9]+)?$/\", {}, { ecmaVersion: 5 })\ntest(\"/^([1-9][0-9]*|0)(\\\\.[0-9]+)?$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^([1-9][0-9]*|0)(\\\\.[0-9]+)?$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^([1-9][0-9]*|0)(\\\\.[0-9]+)?$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^-?([1-9][0-9]*|0)(\\\\.[0-9]+)?$/\", {}, { ecmaVersion: 5 })\ntest(\"/^-?([1-9][0-9]*|0)(\\\\.[0-9]+)?$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^-?([1-9][0-9]*|0)(\\\\.[0-9]+)?$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^-?([1-9][0-9]*|0)(\\\\.[0-9]+)?$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[ぁ-んー]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[ぁ-んー]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[ぁ-んー]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[ぁ-んー]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[ァ-ンヴー]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[ァ-ンヴー]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[ァ-ンヴー]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[ァ-ンヴー]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[ｧ-ﾝﾞﾟ\\\\-]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[ｧ-ﾝﾞﾟ\\\\-]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[ｧ-ﾝﾞﾟ\\\\-]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[ｧ-ﾝﾞﾟ\\\\-]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[^\\\\x20-\\\\x7e]*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[^\\\\x20-\\\\x7e]*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[^\\\\x20-\\\\x7e]*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[^\\\\x20-\\\\x7e]*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^((4\\\\d{3})|(5[1-5]\\\\d{2})|(6011))([- ])?\\\\d{4}([- ])?\\\\d{4}([- ])?\\\\d{4}|3[4,7]\\\\d{13}$/\", {}, { ecmaVersion: 5 })\ntest(\"/^((4\\\\d{3})|(5[1-5]\\\\d{2})|(6011))([- ])?\\\\d{4}([- ])?\\\\d{4}([- ])?\\\\d{4}|3[4,7]\\\\d{13}$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^((4\\\\d{3})|(5[1-5]\\\\d{2})|(6011))([- ])?\\\\d{4}([- ])?\\\\d{4}([- ])?\\\\d{4}|3[4,7]\\\\d{13}$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^((4\\\\d{3})|(5[1-5]\\\\d{2})|(6011))([- ])?\\\\d{4}([- ])?\\\\d{4}([- ])?\\\\d{4}|3[4,7]\\\\d{13}$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/^\\\\s*|\\\\s*$/\", {}, { ecmaVersion: 5 })\ntest(\"/^\\\\s*|\\\\s*$/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/^\\\\s*|\\\\s*$/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntest(\"/^\\\\s*|\\\\s*$/u\", {}, { ecmaVersion: 2015 })\ntest(\"/[\\\\d][\\\\12-\\\\14]{1,}[^\\\\d]/\", {}, { ecmaVersion: 5 })\ntest(\"/[\\\\d][\\\\12-\\\\14]{1,}[^\\\\d]/\", {}, { ecmaVersion: 2015 })\ntestFail(\"/[\\\\d][\\\\12-\\\\14]{1,}[^\\\\d]/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })\ntestFail(\"/[\\\\d][\\\\12-\\\\14]{1,}[^\\\\d]/u\", \"Invalid regular expression: /[\\\\d][\\\\12-\\\\14]{1,}[^\\\\d]/: Invalid class escape (1:1)\", { ecmaVersion: 2015 })\ntest(\"/([a ]\\\\b)*\\\\b/\", {}, { ecmaVersion: 5 })\ntest(\"/[x-*]/u\".replace(\"*\", String.fromCharCode(0xd800)), {}, {ecmaVersion: 6})\n\n/*\n// This is test case generator.\n// The tests check whether those results are same as V8 native.\n\nfunction getErrorMessage(pattern, flags) {\n    try {\n        new RegExp(pattern, flags)\n        return undefined\n    } catch (err) {\n        return err.message\n    }\n}\n\nconst patterns = [\n    [\"foo\"],\n    [\"foo|bar\"],\n    [\"||||\"],\n    [\"^|$|\\\\b|\\\\B\"],\n    [\"(\"],\n    [\"(?\"],\n    [\"(?=\"],\n    [\"(?=)\"],\n    [\"(?=foo\"],\n    [\"(?=foo)\"],\n    [\"(?!\"],\n    [\"(?!)\"],\n    [\"(?!foo\"],\n    [\"(?!foo)\"],\n    [\"(?=a)*\"],\n    [\"(?=a)+\"],\n    [\"(?=a)?\"],\n    [\"(?=a){\"],\n    [\"(?=a){}\"],\n    [\"(?=a){a}\"],\n    [\"(?=a){1}\"],\n    [\"(?=a){1,}\"],\n    [\"(?=a){1,2}\"],\n    [\"a*\"],\n    [\"a+\"],\n    [\"a?\"],\n    [\"a{\"],\n    [\"a{}\"],\n    [\"a{a}\"],\n    [\"a{1}\"],\n    [\"a{1\"],\n    [\"a{1,}\"],\n    [\"a{1,\"],\n    [\"a{1,2}\"],\n    [\"a{1,2\"],\n    [\"a{2,1}\"],\n    [\"a{2,1\"],\n    [\"(a{2,1}\"],\n    [\"a*?\"],\n    [\"a+?\"],\n    [\"a??\"],\n    [\"a{?\"],\n    [\"a{}?\"],\n    [\"a{a}?\"],\n    [\"a{1}?\"],\n    [\"a{1?\"],\n    [\"a{1,}?\"],\n    [\"a{1,?\"],\n    [\"a{1,2}?\"],\n    [\"a{1,2?\"],\n    [\"a{2,1}?\"],\n    [\"a{2,1?\"],\n    [\"👍🚀❇️\"],\n    [\"^\"],\n    [\"$\"],\n    [\".\"],\n    [\"(*)\"],\n    [\"+\"],\n    [\"?\"],\n    [\"(\"],\n    [\")\"],\n    [\"[\", \"Unterminated regular expression\", \"Unterminated regular expression\"],\n    [\"]\"],\n    [\"{\"],\n    [\"}\"],\n    [\"|\"],\n    [\"^*\"],\n    [\"$*\"],\n    [\"${1,2\"],\n    [\"${1,2}\"],\n    [\"${2,1}\"],\n    [\"\\\\1\"],\n    [\"(a)\\\\1\"],\n    [\"\\\\1(a)\"],\n    [\"\\\\2(a)(\"],\n    [\"(?:a)\\\\1\"],\n    [\"(a)\\\\2\"],\n    [\"(?:a)\\\\2\"],\n    [\"(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\10\"],\n    [\"(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11\"],\n    [\"(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)\\\\11\"],\n    [\"(?\"],\n    [\"(?a\"],\n    [\"(?a)\"],\n    [\"(?:\"],\n    [\"(?:a\"],\n    [\"(?:a)\"],\n    [\"(:a\"],\n    [\"\\\\d\"],\n    [\"\\\\D\"],\n    [\"\\\\s\"],\n    [\"\\\\S\"],\n    [\"\\\\w\"],\n    [\"\\\\W\"],\n    [\"\\\\f\"],\n    [\"\\\\n\"],\n    [\"\\\\r\"],\n    [\"\\\\t\"],\n    [\"\\\\v\"],\n    [\"\\\\cA\"],\n    [\"\\\\cz\"],\n    [\"\\\\c1\"],\n    [\"\\\\c\"],\n    [\"\\\\0\"],\n    [\"\\\\u\"],\n    [\"\\\\u1\"],\n    [\"\\\\u12\"],\n    [\"\\\\u123\"],\n    [\"\\\\u1234\"],\n    [\"\\\\u12345\"],\n    [\"\\\\u{\"],\n    [\"\\\\u{z\"],\n    [\"\\\\u{a}\"],\n    [\"\\\\u{20\"],\n    [\"\\\\u{20}\"],\n    [\"\\\\u{10FFFF}\"],\n    [\"\\\\u{110000}\"],\n    [\"\\\\u{00000001}\"],\n    [\"\\\\377\"],\n    [\"\\\\400\"],\n    [\"\\\\^\"],\n    [\"\\\\$\"],\n    [\"\\\\.\"],\n    [\"\\\\+\"],\n    [\"\\\\?\"],\n    [\"\\\\(\"],\n    [\"\\\\)\"],\n    [\"\\\\[\"],\n    [\"\\\\]\"],\n    [\"\\\\{\"],\n    [\"\\\\}\"],\n    [\"\\\\|\"],\n    [\"\\\\/\"],\n    [\"\\\\a\"],\n    [\"\\\\s\"],\n    [\"[]\"],\n    [\"[^-a-b-]\"],\n    [\"[-]\"],\n    [\"[a]\"],\n    [\"[--]\"],\n    [\"[-a]\"],\n    [\"[-a-]\"],\n    [\"[a-]\"],\n    [\"[a-b]\"],\n    [\"[-a-b-]\"],\n    [\"[---]\"],\n    [\"[b-a]\"],\n    [\"[a-b--/]\"],\n    [\"[a-b--+]\"],\n    [\"[\\\\b-\\\\n]\"],\n    [\"[b\\\\-a]\"],\n    [\"[\\\\d]\"],\n    [\"[\\\\D]\"],\n    [\"[\\\\s]\"],\n    [\"[\\\\S]\"],\n    [\"[\\\\w]\"],\n    [\"[\\\\W]\"],\n    [\"[\\\\d]\"],\n    [\"[\\\\D]\"],\n    [\"[\\\\s]\"],\n    [\"[\\\\S]\"],\n    [\"[\\\\w]\"],\n    [\"[\\\\W]\"],\n    [\"[\\\\f]\"],\n    [\"[\\\\n]\"],\n    [\"[\\\\r]\"],\n    [\"[\\\\t]\"],\n    [\"[\\\\v]\"],\n    [\"[\\\\cA]\"],\n    [\"[\\\\cz]\"],\n    [\"[\\\\c1]\"],\n    [\"[\\\\c]\"],\n    [\"[\\\\0]\"],\n    [\"[\\\\x]\"],\n    [\"[\\\\xz]\"],\n    [\"[\\\\x1]\"],\n    [\"[\\\\x12]\"],\n    [\"[\\\\x123]\"],\n    [\"[\\\\u]\"],\n    [\"[\\\\u1]\"],\n    [\"[\\\\u12]\"],\n    [\"[\\\\u123]\"],\n    [\"[\\\\u1234]\"],\n    [\"[\\\\u12345]\"],\n    [\"[\\\\u{]\"],\n    [\"[\\\\u{z]\"],\n    [\"[\\\\u{a}]\"],\n    [\"[\\\\u{20]\"],\n    [\"[\\\\u{20}]\"],\n    [\"[\\\\u{10FFFF}]\"],\n    [\"[\\\\u{110000}]\"],\n    [\"[\\\\u{00000001}]\"],\n    [\"[\\\\77]\"],\n    [\"[\\\\377]\"],\n    [\"[\\\\400]\"],\n    [\"[\\\\^]\"],\n    [\"[\\\\$]\"],\n    [\"[\\\\.]\"],\n    [\"[\\\\+]\"],\n    [\"[\\\\?]\"],\n    [\"[\\\\(]\"],\n    [\"[\\\\)]\"],\n    [\"[\\\\[]\"],\n    [\"[\\\\]]\"],\n    [\"[\\\\{]\"],\n    [\"[\\\\}]\"],\n    [\"[\\\\|]\"],\n    [\"[\\\\/]\"],\n    [\"[\\\\a]\"],\n    [\"[\\\\s]\"],\n    [\"[\\\\d-\\\\uFFFF]\"],\n    [\"[\\\\D-\\\\uFFFF]\"],\n    [\"[\\\\s-\\\\uFFFF]\"],\n    [\"[\\\\S-\\\\uFFFF]\"],\n    [\"[\\\\w-\\\\uFFFF]\"],\n    [\"[\\\\W-\\\\uFFFF]\"],\n    [\"[\\\\u0000-\\\\d]\"],\n    [\"[\\\\u0000-\\\\D]\"],\n    [\"[\\\\u0000-\\\\s]\"],\n    [\"[\\\\u0000-\\\\S]\"],\n    [\"[\\\\u0000-\\\\w]\"],\n    [\"[\\\\u0000-\\\\W]\"],\n    [\"[\\\\u0000-\\\\u0001]\"],\n    [\"[\\\\u0001-\\\\u0000]\"],\n    [\"[\\\\u{1}-\\\\u{2}]\"],\n    [\"[\\\\u{2}-\\\\u{1}]\"],\n    [\"[\\\\u{2-\\\\u{1}]\"],\n    [\"[\\\\a-\\\\z]\"],\n    [\"[\\\\z-\\\\a]\"],\n    [\"[0-9--/]\"],\n    [\"[0-9--+]\"],\n    [\"[\\\\c-a]\"],\n    [\"[\\\\c0-\\u001F]\"],\n    [\"[\\\\c_]\"],\n    [\"[🌷-🌸]\"],\n    [\"[🌸-🌷]\"],\n    [\"[\\\\uD834\\\\uDF06-\\\\uD834\\\\uDF08a-z]\"],\n    [\"^[0-9]*$\"],\n    [\"^[0-9]+$\"],\n    [\"^[a-zA-Z]*$\"],\n    [\"^[a-zA-Z]+$\"],\n    [\"^[0-9a-zA-Z]*$\"],\n    [\"^[a-zA-Z0-9!-/:-@\\\\[-`{-~]*$\"],\n    [\"^([a-zA-Z0-9]{8,})$\"],\n    [\"^([a-zA-Z0-9]{6,8})$\"],\n    [\"^([0-9]{0,8})$\"],\n    [\"^[0-9]{8}$\"],\n    [\"^https?:\\\\/\\\\/\"],\n    [\"^\\\\d{3}-\\\\d{4}$\"],\n    [\"^\\\\d{1,3}(\\.\\\\d{1,3}){3}$\"],\n    [\"^([1-9][0-9]*|0)(\\\\.[0-9]+)?$\"],\n    [\"^-?([1-9][0-9]*|0)(\\\\.[0-9]+)?$\"],\n    [\"^[ぁ-んー]*$\"],\n    [\"^[ァ-ンヴー]*$\"],\n    [\"^[ｧ-ﾝﾞﾟ\\\\-]*$\"],\n    [\"^[^\\\\x20-\\\\x7e]*$\"],\n    [\"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)*$\"],\n    [\"^((4\\\\d{3})|(5[1-5]\\\\d{2})|(6011))([- ])?\\\\d{4}([- ])?\\\\d{4}([- ])?\\\\d{4}|3[4,7]\\\\d{13}$\"],\n    [\"^\\\\s*|\\\\s*$\"],\n    [\"[\\\\d][\\\\12-\\\\14]{1,}[^\\\\d]\"]\n]\n\nconst tests = []\nfor (const [pattern, message, messageU] of patterns) {\n    // Without u flag\n    let msg = message || getErrorMessage(pattern, \"\")\n    if (msg === undefined) {\n        tests.push(`test(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/\", {}, { ecmaVersion: 5 })`)\n        tests.push(`test(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/\", {}, { ecmaVersion: 2015 })`)\n    } else {\n        tests.push(`testFail(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/\", \"${msg.replace(/\\\\/g, \"\\\\\\\\\")} (1:1)\", { ecmaVersion: 5 })`)\n        tests.push(`testFail(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/\", \"${msg.replace(/\\\\/g, \"\\\\\\\\\")} (1:1)\", { ecmaVersion: 2015 })`)\n    }\n\n    // With u flag\n    msg = messageU || getErrorMessage(pattern, \"u\")\n    tests.push(`testFail(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/u\", \"Invalid regular expression flag (1:1)\", { ecmaVersion: 5 })`)\n    if (msg === undefined) {\n        tests.push(`test(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/u\", {}, { ecmaVersion: 2015 })`)\n    } else {\n        tests.push(`testFail(\"/${pattern.replace(/\\\\/g, \"\\\\\\\\\")}/u\", \"${msg.replace(/\\\\/g, \"\\\\\\\\\")} (1:1)\", { ecmaVersion: 2015 })`)\n    }\n}\n\nrequire(\"fs\").writeFileSync(\"a.txt\", tests.join(\"\\n\"))\n\n*/\n"
  },
  {
    "path": "test/tests-rest-spread-properties.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n//------------------------------------------------------------------------------\n// Spread Properties\n//------------------------------------------------------------------------------\n\ntest(\"({...obj})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 10,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 10,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 9,\n        \"properties\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 2,\n            \"end\": 8,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 8,\n              \"name\": \"obj\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...obj1,})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 11,\n        \"properties\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 2,\n            \"end\": 9,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 9,\n              \"name\": \"obj1\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...obj1,...obj2})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 19,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 19,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 18,\n        \"properties\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 2,\n            \"end\": 9,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 9,\n              \"name\": \"obj1\"\n            }\n          },\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 10,\n            \"end\": 17,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 13,\n              \"end\": 17,\n              \"name\": \"obj2\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({a,...obj1,b:1,...obj2,c:2})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 29,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 29,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 28,\n        \"properties\": [\n          {\n            \"type\": \"Property\",\n            \"start\": 2,\n            \"end\": 3,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 2,\n              \"end\": 3,\n              \"name\": \"a\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 2,\n              \"end\": 3,\n              \"name\": \"a\"\n            },\n            \"kind\": \"init\"\n          },\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 4,\n            \"end\": 11,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 11,\n              \"name\": \"obj1\"\n            }\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 12,\n            \"end\": 15,\n            \"method\": false,\n            \"shorthand\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 12,\n              \"end\": 13,\n              \"name\": \"b\"\n            },\n            \"value\": {\n              \"type\": \"Literal\",\n              \"start\": 14,\n              \"end\": 15,\n              \"value\": 1,\n              \"raw\": \"1\"\n            },\n            \"kind\": \"init\"\n          },\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 16,\n            \"end\": 23,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 19,\n              \"end\": 23,\n              \"name\": \"obj2\"\n            }\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 24,\n            \"end\": 27,\n            \"method\": false,\n            \"shorthand\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 24,\n              \"end\": 25,\n              \"name\": \"c\"\n            },\n            \"value\": {\n              \"type\": \"Literal\",\n              \"start\": 26,\n              \"end\": 27,\n              \"value\": 2,\n              \"raw\": \"2\"\n            },\n            \"kind\": \"init\"\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...(obj)})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 11,\n        \"properties\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 2,\n            \"end\": 10,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 6,\n              \"end\": 9,\n              \"name\": \"obj\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...a,b,c})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 12,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 12,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 11,\n        \"properties\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 2,\n            \"end\": 6,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 6,\n              \"name\": \"a\"\n            }\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 7,\n            \"end\": 8,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 8,\n              \"name\": \"b\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 8,\n              \"name\": \"b\"\n            },\n            \"kind\": \"init\"\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 9,\n            \"end\": 10,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 9,\n              \"end\": 10,\n              \"name\": \"c\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 9,\n              \"end\": 10,\n              \"name\": \"c\"\n            },\n            \"kind\": \"init\"\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...(a,b),c})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 13,\n        \"properties\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 2,\n            \"end\": 10,\n            \"argument\": {\n              \"type\": \"SequenceExpression\",\n              \"start\": 6,\n              \"end\": 9,\n              \"expressions\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 6,\n                  \"end\": 7,\n                  \"name\": \"a\"\n                },\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 8,\n                  \"end\": 9,\n                  \"name\": \"b\"\n                }\n              ]\n            }\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 11,\n            \"end\": 12,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 11,\n              \"end\": 12,\n              \"name\": \"c\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 11,\n              \"end\": 12,\n              \"name\": \"c\"\n            },\n            \"kind\": \"init\"\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\ntestFail(\"({...})\", \"Unexpected token (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...obj})\", \"Unexpected token (1:2)\", { ecmaVersion: 8 })\n\n//------------------------------------------------------------------------------\n// Rest Properties\n//------------------------------------------------------------------------------\n\ntest(\"({...obj} = foo)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 1,\n        \"end\": 15,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"ObjectPattern\",\n          \"start\": 1,\n          \"end\": 9,\n          \"properties\": [\n            {\n              \"type\": \"RestElement\",\n              \"start\": 2,\n              \"end\": 8,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 5,\n                \"end\": 8,\n                \"name\": \"obj\"\n              }\n            }\n          ]\n        },\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 15,\n          \"name\": \"foo\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({a,...obj} = foo)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 1,\n        \"end\": 17,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"ObjectPattern\",\n          \"start\": 1,\n          \"end\": 11,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 3,\n              \"method\": false,\n              \"shorthand\": true,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 3,\n                \"name\": \"a\"\n              },\n              \"value\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 3,\n                \"name\": \"a\"\n              },\n              \"kind\": \"init\"\n            },\n            {\n              \"type\": \"RestElement\",\n              \"start\": 4,\n              \"end\": 10,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 7,\n                \"end\": 10,\n                \"name\": \"obj\"\n              }\n            }\n          ]\n        },\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 14,\n          \"end\": 17,\n          \"name\": \"foo\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({a:b,...obj} = foo)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 20,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 1,\n        \"end\": 19,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"ObjectPattern\",\n          \"start\": 1,\n          \"end\": 13,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 2,\n              \"end\": 5,\n              \"method\": false,\n              \"shorthand\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 2,\n                \"end\": 3,\n                \"name\": \"a\"\n              },\n              \"value\": {\n                \"type\": \"Identifier\",\n                \"start\": 4,\n                \"end\": 5,\n                \"name\": \"b\"\n              },\n              \"kind\": \"init\"\n            },\n            {\n              \"type\": \"RestElement\",\n              \"start\": 6,\n              \"end\": 12,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 9,\n                \"end\": 12,\n                \"name\": \"obj\"\n              }\n            }\n          ]\n        },\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"start\": 16,\n          \"end\": 19,\n          \"name\": \"foo\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...obj}) => {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 16,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 16,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 16,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"params\": [\n          {\n            \"type\": \"ObjectPattern\",\n            \"start\": 1,\n            \"end\": 9,\n            \"properties\": [\n              {\n                \"type\": \"RestElement\",\n                \"start\": 2,\n                \"end\": 8,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 5,\n                  \"end\": 8,\n                  \"name\": \"obj\"\n                }\n              }\n            ]\n          }\n        ],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 14,\n          \"end\": 16,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({...obj} = {}) => {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 21,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 21,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 21,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"params\": [\n          {\n            \"type\": \"AssignmentPattern\",\n            \"start\": 1,\n            \"end\": 14,\n            \"left\": {\n              \"type\": \"ObjectPattern\",\n              \"start\": 1,\n              \"end\": 9,\n              \"properties\": [\n                {\n                  \"type\": \"RestElement\",\n                  \"start\": 2,\n                  \"end\": 8,\n                  \"argument\": {\n                    \"type\": \"Identifier\",\n                    \"start\": 5,\n                    \"end\": 8,\n                    \"name\": \"obj\"\n                  }\n                }\n              ]\n            },\n            \"right\": {\n              \"type\": \"ObjectExpression\",\n              \"start\": 12,\n              \"end\": 14,\n              \"properties\": []\n            }\n          }\n        ],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 19,\n          \"end\": 21,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({a,...obj}) => {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 18,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"params\": [\n          {\n            \"type\": \"ObjectPattern\",\n            \"start\": 1,\n            \"end\": 11,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 2,\n                \"end\": 3,\n                \"method\": false,\n                \"shorthand\": true,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 2,\n                  \"end\": 3,\n                  \"name\": \"a\"\n                },\n                \"value\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 2,\n                  \"end\": 3,\n                  \"name\": \"a\"\n                },\n                \"kind\": \"init\"\n              },\n              {\n                \"type\": \"RestElement\",\n                \"start\": 4,\n                \"end\": 10,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 7,\n                  \"end\": 10,\n                  \"name\": \"obj\"\n                }\n              }\n            ]\n          }\n        ],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 16,\n          \"end\": 18,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\ntest(\"({a:b,...obj}) => {}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 20,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 20,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"params\": [\n          {\n            \"type\": \"ObjectPattern\",\n            \"start\": 1,\n            \"end\": 13,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 2,\n                \"end\": 5,\n                \"method\": false,\n                \"shorthand\": false,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 2,\n                  \"end\": 3,\n                  \"name\": \"a\"\n                },\n                \"value\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 4,\n                  \"end\": 5,\n                  \"name\": \"b\"\n                },\n                \"kind\": \"init\"\n              },\n              {\n                \"type\": \"RestElement\",\n                \"start\": 6,\n                \"end\": 12,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 9,\n                  \"end\": 12,\n                  \"name\": \"obj\"\n                }\n              }\n            ]\n          }\n        ],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 18,\n          \"end\": 20,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, { ecmaVersion: 9 })\n\ntest(\"({...(obj)} = foo)\", {\n  type: \"Program\",\n  start: 0,\n  end: 18,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 18\n    }\n  },\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 18,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 18\n        }\n      },\n      expression: {\n        type: \"AssignmentExpression\",\n        start: 1,\n        end: 17,\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        },\n        operator: \"=\",\n        left: {\n          type: \"ObjectPattern\",\n          start: 1,\n          end: 11,\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          },\n          properties: [\n            {\n              type: \"RestElement\",\n              start: 2,\n              end: 10,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 2\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              },\n              argument: {\n                type: \"Identifier\",\n                start: 6,\n                end: 9,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 9\n                  }\n                },\n                name: \"obj\"\n              }\n            }\n          ]\n        },\n        right: {\n          type: \"Identifier\",\n          start: 14,\n          end: 17,\n          loc: {\n            start: {\n              line: 1,\n              column: 14\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          },\n          name: \"foo\"\n        }\n      }\n    }\n  ],\n}, { ecmaVersion: 9, locations: true })\n\ntestFail(\"let {...obj1,} = foo\", \"Comma is not permitted after the rest element (1:12)\", { ecmaVersion: 9 })\ntestFail(\"let {...obj1,a} = foo\", \"Comma is not permitted after the rest element (1:12)\", { ecmaVersion: 9 })\ntestFail(\"let {...obj1,...obj2} = foo\", \"Comma is not permitted after the rest element (1:12)\", { ecmaVersion: 9 })\ntestFail(\"let {...(obj)} = foo\", \"Unexpected token (1:8)\", { ecmaVersion: 9 })\ntestFail(\"let {...(a,b)} = foo\", \"Unexpected token (1:8)\", { ecmaVersion: 9 })\ntestFail(\"let {...{a,b}} = foo\", \"Unexpected token (1:8)\", { ecmaVersion: 9 })\ntestFail(\"let {...[a,b]} = foo\", \"Unexpected token (1:8)\", { ecmaVersion: 9 })\ntestFail(\"({...obj1,} = foo)\", \"Comma is not permitted after the rest element (1:9)\", { ecmaVersion: 9 })\ntestFail(\"({...obj1,a} = foo)\", \"Comma is not permitted after the rest element (1:9)\", { ecmaVersion: 9 })\ntestFail(\"({...obj1,...obj2} = foo)\", \"Comma is not permitted after the rest element (1:9)\", { ecmaVersion: 9 })\ntestFail(\"({...(a,b)} = foo)\", \"Assigning to rvalue (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...{a,b}} = foo)\", \"Unexpected token (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...[a,b]} = foo)\", \"Unexpected token (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...obj} = foo)\", \"Unexpected token (1:2)\", { ecmaVersion: 8 })\ntestFail(\"({...(obj)}) => {}\", \"Parenthesized pattern (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...(a,b)}) => {}\", \"Parenthesized pattern (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...{a,b}}) => {}\", \"Unexpected token (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...[a,b]}) => {}\", \"Unexpected token (1:5)\", { ecmaVersion: 9 })\ntestFail(\"({...obj}) => {}\", \"Unexpected token (1:2)\", { ecmaVersion: 8 })\n\n//------------------------------------------------------------------------------\n// From https://github.com/adrianheine/acorn5-object-spread/tree/49839ac662fe34e1b4ad56767115f54747db2e7c/test\n//------------------------------------------------------------------------------\n\ntest(\"let z = {...x}\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 14,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 14,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 5,\n            \"name\": \"z\"\n          },\n          \"init\": {\n            \"type\": \"ObjectExpression\",\n            \"start\": 8,\n            \"end\": 14,\n            \"properties\": [\n              {\n                \"type\": \"SpreadElement\",\n                \"start\": 9,\n                \"end\": 13,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 12,\n                  \"end\": 13,\n                  \"name\": \"x\"\n                }\n              }\n            ]\n          }\n        }\n      ],\n      \"kind\": \"let\"\n    }\n  ],\n  \"start\": 0,\n  \"end\": 14,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"z = {x, ...y}\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 13,\n      \"expression\": {\n        \"type\": \"AssignmentExpression\",\n        \"start\": 0,\n        \"end\": 13,\n        \"operator\": \"=\",\n        \"left\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 1,\n          \"name\": \"z\"\n        },\n        \"right\": {\n          \"type\": \"ObjectExpression\",\n          \"start\": 4,\n          \"end\": 13,\n          \"properties\": [\n            {\n              \"type\": \"Property\",\n              \"start\": 5,\n              \"end\": 6,\n              \"method\": false,\n              \"shorthand\": true,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 5,\n                \"end\": 6,\n                \"name\": \"x\"\n              },\n              \"value\": {\n                \"type\": \"Identifier\",\n                \"start\": 5,\n                \"end\": 6,\n                \"name\": \"x\"\n              },\n              \"kind\": \"init\"\n            },\n            {\n              \"type\": \"SpreadElement\",\n              \"start\": 8,\n              \"end\": 12,\n              \"argument\": {\n                \"type\": \"Identifier\",\n                \"start\": 11,\n                \"end\": 12,\n                \"name\": \"y\"\n              }\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"start\": 0,\n  \"end\": 13,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"({x, ...y, a, ...b, c})\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 23,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 22,\n        \"properties\": [\n          {\n            \"type\": \"Property\",\n            \"start\": 2,\n            \"end\": 3,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 2,\n              \"end\": 3,\n              \"name\": \"x\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 2,\n              \"end\": 3,\n              \"name\": \"x\"\n            },\n            \"kind\": \"init\"\n          },\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 5,\n            \"end\": 9,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 8,\n              \"end\": 9,\n              \"name\": \"y\"\n            }\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 11,\n            \"end\": 12,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 11,\n              \"end\": 12,\n              \"name\": \"a\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 11,\n              \"end\": 12,\n              \"name\": \"a\"\n            },\n            \"kind\": \"init\"\n          },\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 14,\n            \"end\": 18,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 17,\n              \"end\": 18,\n              \"name\": \"b\"\n            }\n          },\n          {\n            \"type\": \"Property\",\n            \"start\": 20,\n            \"end\": 21,\n            \"method\": false,\n            \"shorthand\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 20,\n              \"end\": 21,\n              \"name\": \"c\"\n            },\n            \"value\": {\n              \"type\": \"Identifier\",\n              \"start\": 20,\n              \"end\": 21,\n              \"name\": \"c\"\n            },\n            \"kind\": \"init\"\n          }\n        ]\n      }\n    }\n  ],\n  \"start\": 0,\n  \"end\": 23,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"var someObject = { someKey: { ...mapGetters([ 'some_val_1', 'some_val_2' ]) } }\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 79,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 79,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 14,\n            \"name\": \"someObject\"\n          },\n          \"init\": {\n            \"type\": \"ObjectExpression\",\n            \"start\": 17,\n            \"end\": 79,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 19,\n                \"end\": 77,\n                \"method\": false,\n                \"shorthand\": false,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 19,\n                  \"end\": 26,\n                  \"name\": \"someKey\"\n                },\n                \"value\": {\n                  \"type\": \"ObjectExpression\",\n                  \"start\": 28,\n                  \"end\": 77,\n                  \"properties\": [\n                    {\n                      \"type\": \"SpreadElement\",\n                      \"start\": 30,\n                      \"end\": 75,\n                      \"argument\": {\n                        \"type\": \"CallExpression\",\n                        \"start\": 33,\n                        \"end\": 75,\n                        \"callee\": {\n                          \"type\": \"Identifier\",\n                          \"start\": 33,\n                          \"end\": 43,\n                          \"name\": \"mapGetters\"\n                        },\n                        \"arguments\": [\n                          {\n                            \"type\": \"ArrayExpression\",\n                            \"start\": 44,\n                            \"end\": 74,\n                            \"elements\": [\n                              {\n                                \"type\": \"Literal\",\n                                \"start\": 46,\n                                \"end\": 58,\n                                \"value\": \"some_val_1\",\n                                \"raw\": \"'some_val_1'\"\n                              },\n                              {\n                                \"type\": \"Literal\",\n                                \"start\": 60,\n                                \"end\": 72,\n                                \"value\": \"some_val_2\",\n                                \"raw\": \"'some_val_2'\"\n                              }\n                            ]\n                          }\n                        ]\n                      }\n                    }\n                  ]\n                },\n                \"kind\": \"init\"\n              }\n            ]\n          }\n        }\n      ],\n      \"kind\": \"var\"\n    }\n  ],\n  \"start\": 0,\n  \"end\": 79,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"let {x, ...y} = v\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 17,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 4,\n          \"end\": 17,\n          \"id\": {\n            \"type\": \"ObjectPattern\",\n            \"start\": 4,\n            \"end\": 13,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 5,\n                \"end\": 6,\n                \"method\": false,\n                \"shorthand\": true,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 5,\n                  \"end\": 6,\n                  \"name\": \"x\"\n                },\n                \"value\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 5,\n                  \"end\": 6,\n                  \"name\": \"x\"\n                },\n                \"kind\": \"init\"\n              },\n              {\n                \"type\": \"RestElement\",\n                \"start\": 8,\n                \"end\": 12,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 11,\n                  \"end\": 12,\n                  \"name\": \"y\"\n                }\n              }\n            ]\n          },\n          \"init\": {\n            \"type\": \"Identifier\",\n            \"start\": 16,\n            \"end\": 17,\n            \"name\": \"v\"\n          }\n        }\n      ],\n      \"kind\": \"let\"\n    }\n  ],\n  \"start\": 0,\n  \"end\": 17,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"(function({x, ...y}) {})\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 24,\n      \"expression\": {\n        \"type\": \"FunctionExpression\",\n        \"start\": 1,\n        \"end\": 23,\n        \"id\": null,\n        \"generator\": false,\n        \"expression\": false,\n        \"params\": [\n          {\n            \"type\": \"ObjectPattern\",\n            \"start\": 10,\n            \"end\": 19,\n            \"properties\": [\n              {\n                \"type\": \"Property\",\n                \"start\": 11,\n                \"end\": 12,\n                \"method\": false,\n                \"shorthand\": true,\n                \"computed\": false,\n                \"key\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 11,\n                  \"end\": 12,\n                  \"name\": \"x\"\n                },\n                \"value\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 11,\n                  \"end\": 12,\n                  \"name\": \"x\"\n                },\n                \"kind\": \"init\"\n              },\n              {\n                \"type\": \"RestElement\",\n                \"start\": 14,\n                \"end\": 18,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 17,\n                  \"end\": 18,\n                  \"name\": \"y\"\n                }\n              }\n            ]\n          }\n        ],\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 21,\n          \"end\": 23,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"start\": 0,\n  \"end\": 24,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\ntest(\"const fn = ({text = \\\"default\\\", ...props}) => text + props.children\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"VariableDeclaration\",\n      \"start\": 0,\n      \"end\": 66,\n      \"declarations\": [\n        {\n          \"type\": \"VariableDeclarator\",\n          \"start\": 6,\n          \"end\": 66,\n          \"id\": {\n            \"type\": \"Identifier\",\n            \"start\": 6,\n            \"end\": 8,\n            \"name\": \"fn\"\n          },\n          \"init\": {\n            \"type\": \"ArrowFunctionExpression\",\n            \"start\": 11,\n            \"end\": 66,\n            \"id\": null,\n            \"generator\": false,\n            \"expression\": true,\n            \"params\": [\n              {\n                \"type\": \"ObjectPattern\",\n                \"start\": 12,\n                \"end\": 40,\n                \"properties\": [\n                  {\n                    \"type\": \"Property\",\n                    \"start\": 13,\n                    \"end\": 29,\n                    \"method\": false,\n                    \"shorthand\": true,\n                    \"computed\": false,\n                    \"key\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 13,\n                      \"end\": 17,\n                      \"name\": \"text\"\n                    },\n                    \"value\": {\n                      \"type\": \"AssignmentPattern\",\n                      \"start\": 13,\n                      \"end\": 29,\n                      \"left\": {\n                        \"type\": \"Identifier\",\n                        \"start\": 13,\n                        \"end\": 17,\n                        \"name\": \"text\"\n                      },\n                      \"right\": {\n                        \"type\": \"Literal\",\n                        \"start\": 20,\n                        \"end\": 29,\n                        \"value\": \"default\",\n                        \"raw\": \"\\\"default\\\"\"\n                      }\n                    },\n                    \"kind\": \"init\"\n                  },\n                  {\n                    \"type\": \"RestElement\",\n                    \"start\": 31,\n                    \"end\": 39,\n                    \"argument\": {\n                      \"type\": \"Identifier\",\n                      \"start\": 34,\n                      \"end\": 39,\n                      \"name\": \"props\"\n                    }\n                  }\n                ]\n              }\n            ],\n            \"body\": {\n              \"type\": \"BinaryExpression\",\n              \"start\": 45,\n              \"end\": 66,\n              \"left\": {\n                \"type\": \"Identifier\",\n                \"start\": 45,\n                \"end\": 49,\n                \"name\": \"text\"\n              },\n              \"operator\": \"+\",\n              \"right\": {\n                \"type\": \"MemberExpression\",\n                \"start\": 52,\n                \"end\": 66,\n                \"object\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 52,\n                  \"end\": 57,\n                  \"name\": \"props\"\n                },\n                \"property\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 58,\n                  \"end\": 66,\n                  \"name\": \"children\"\n                },\n                \"computed\": false\n              }\n            }\n          }\n        }\n      ],\n      \"kind\": \"const\"\n    }\n  ],\n  \"start\": 0,\n  \"end\": 66,\n  \"sourceType\": \"script\"\n}, { \"ecmaVersion\": 9 })\n\ntestFail(\"({get x() {}}) => {}\", \"Object pattern can't contain getter or setter (1:6)\", { ecmaVersion: 9 })\ntestFail(\"let {...x, ...y} = {}\", \"Comma is not permitted after the rest element (1:9)\", { ecmaVersion: 9 })\ntestFail(\"({...x,}) => z\", \"Comma is not permitted after the rest element (1:6)\", { ecmaVersion: 9 })\ntestFail(\"export const { foo, ...bar } = baz;\\nexport const bar = 1;\\n\", \"Identifier 'bar' has already been declared (2:13)\", {\n  ecmaVersion: 9,\n  sourceType: \"module\"\n})\ntestFail(\"function ({...x,}) { z }\", \"Unexpected token (1:9)\", { ecmaVersion: 9 })\ntestFail(\"let {...{x, y}} = {}\", \"Unexpected token (1:8)\", { ecmaVersion: 9 })\ntestFail(\"let {...{...{x, y}}} = {}\", \"Unexpected token (1:8)\", { ecmaVersion: 9 })\ntestFail(\"0, {...rest, b} = {}\", \"Comma is not permitted after the rest element (1:11)\", { ecmaVersion: 9 })\ntestFail(\"(([a, ...b = 0]) => {})\", \"Rest elements cannot have a default value (1:9)\", { ecmaVersion: 9 })\ntestFail(\"(({a, ...b = 0}) => {})\", \"Rest elements cannot have a default value (1:9)\", { ecmaVersion: 9 })\n"
  },
  {
    "path": "test/tests-template-literal-revision.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\ntest(\"`foo`\", {\n  type: \"Program\",\n  start: 0,\n  end: 5,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 5,\n      expression: {\n        type: \"TemplateLiteral\",\n        start: 0,\n        end: 5,\n        expressions: [],\n        quasis: [\n          {\n            type: \"TemplateElement\",\n            start: 1,\n            end: 4,\n            value: {\n              raw: \"foo\",\n              cooked: \"foo\"\n            },\n            tail: true\n          }\n        ]\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"`foo\\\\u25a0`\", {\n  type: \"Program\",\n  start: 0,\n  end: 11,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 11,\n      expression: {\n        type: \"TemplateLiteral\",\n        start: 0,\n        end: 11,\n        expressions: [],\n        quasis: [\n          {\n            type: \"TemplateElement\",\n            start: 1,\n            end: 10,\n            value: {\n              raw: \"foo\\\\u25a0\",\n              cooked: \"foo■\"\n            },\n            tail: true\n          }\n        ]\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"`foo${bar}\\\\u25a0`\", {\n  type: \"Program\",\n  start: 0,\n  end: 17,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 17,\n      expression: {\n        type: \"TemplateLiteral\",\n        start: 0,\n        end: 17,\n        expressions: [\n          {\n            type: \"Identifier\",\n            start: 6,\n            end: 9,\n            name: \"bar\"\n          }\n        ],\n        quasis: [\n          {\n            type: \"TemplateElement\",\n            start: 1,\n            end: 4,\n            value: {\n              raw: \"foo\",\n              cooked: \"foo\"\n            },\n            tail: false\n          },\n          {\n            type: \"TemplateElement\",\n            start: 10,\n            end: 16,\n            value: {\n              raw: \"\\\\u25a0\",\n              cooked: \"■\"\n            },\n            tail: true\n          }\n        ]\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`\\\\u25a0`\", {\n  type: \"Program\",\n  start: 0,\n  end: 11,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 11,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 11,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 11,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 10,\n              value: {\n                raw: \"\\\\u25a0\",\n                cooked: \"■\"\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`foo${bar}\\\\u25a0`\", {\n  type: \"Program\",\n  start: 0,\n  end: 20,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 20,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 20,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 20,\n          expressions: [\n            {\n              type: \"Identifier\",\n              start: 9,\n              end: 12,\n              name: \"bar\"\n            }\n          ],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 7,\n              value: {\n                raw: \"foo\",\n                cooked: \"foo\"\n              },\n              tail: false\n            },\n            {\n              type: \"TemplateElement\",\n              start: 13,\n              end: 19,\n              value: {\n                raw: \"\\\\u25a0\",\n                cooked: \"■\"\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntestFail(\"`\\\\unicode`\", \"Bad escape sequence in untagged template literal (1:1)\", {ecmaVersion: 9})\ntestFail(\"`\\\\u`\", \"Bad escape sequence in untagged template literal (1:1)\", {ecmaVersion: 9})\ntestFail(\"`\\\\u{`\", \"Bad escape sequence in untagged template literal (1:1)\", {ecmaVersion: 9})\ntestFail(\"`\\\\u{abcdx`\", \"Bad escape sequence in untagged template literal (1:1)\", {ecmaVersion: 9})\ntestFail(\"`\\\\u{abcdx}`\", \"Bad escape sequence in untagged template literal (1:1)\", {ecmaVersion: 9})\ntestFail(\"`\\\\xylophone`\", \"Bad escape sequence in untagged template literal (1:1)\", {ecmaVersion: 9})\n\ntestFail(\"foo`\\\\unicode`\", \"Bad character escape sequence (1:6)\", {ecmaVersion: 8})\ntestFail(\"foo`\\\\xylophone`\", \"Bad character escape sequence (1:6)\", {ecmaVersion: 8})\n\ntestFail(\"foo`\\\\unicode\", \"Unterminated template (1:4)\", {ecmaVersion: 9})\ntestFail(\"foo`\\\\unicode\\\\`\", \"Unterminated template (1:4)\", {ecmaVersion: 9})\n\ntest(\"foo`\\\\unicode`\", {\n  type: \"Program\",\n  start: 0,\n  end: 13,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 13,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 13,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 13,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 12,\n              value: {\n                raw: \"\\\\unicode\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`foo${bar}\\\\unicode`\", {\n  type: \"Program\",\n  start: 0,\n  end: 22,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 22,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 22,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 22,\n          expressions: [\n            {\n              type: \"Identifier\",\n              start: 9,\n              end: 12,\n              name: \"bar\"\n            }\n          ],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 7,\n              value: {\n                raw: \"foo\",\n                cooked: \"foo\"\n              },\n              tail: false\n            },\n            {\n              type: \"TemplateElement\",\n              start: 13,\n              end: 21,\n              value: {\n                raw: \"\\\\unicode\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`\\\\u`\", {\n  type: \"Program\",\n  start: 0,\n  end: 7,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 7,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 7,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 7,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 6,\n              value: {\n                raw: \"\\\\u\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`\\\\u{`\", {\n  type: \"Program\",\n  start: 0,\n  end: 8,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 8,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 8,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 8,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 7,\n              value: {\n                raw: \"\\\\u{\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`\\\\u{abcdx`\", {\n  type: \"Program\",\n  start: 0,\n  end: 13,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 13,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 13,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 13,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 12,\n              value: {\n                raw: \"\\\\u{abcdx\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`\\\\u{abcdx}`\", {\n  type: \"Program\",\n  start: 0,\n  end: 14,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 14,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 14,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 14,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 13,\n              value: {\n                raw: \"\\\\u{abcdx}\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"foo`\\\\unicode\\\\\\\\`\", {\n  type: \"Program\",\n  start: 0,\n  end: 15,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 15,\n      expression: {\n        type: \"TaggedTemplateExpression\",\n        start: 0,\n        end: 15,\n        tag: {\n          type: \"Identifier\",\n          start: 0,\n          end: 3,\n          name: \"foo\"\n        },\n        quasi: {\n          type: \"TemplateLiteral\",\n          start: 3,\n          end: 15,\n          expressions: [],\n          quasis: [\n            {\n              type: \"TemplateElement\",\n              start: 4,\n              end: 14,\n              value: {\n                raw: \"\\\\unicode\\\\\\\\\",\n                cooked: null\n              },\n              tail: true\n            }\n          ]\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {ecmaVersion: 9})\n\ntest(\"`${ {class: 1} }`\", {}, { ecmaVersion: 9 })\ntest(\"`${ {delete: 1} }`\", {}, { ecmaVersion: 9 })\ntest(\"`${ {enum: 1} }`\", {}, { ecmaVersion: 9 })\ntest(\"`${ {function: 1} }`\", {}, { ecmaVersion: 9 })\n"
  },
  {
    "path": "test/tests-trailing-commas-in-func.js",
    "content": "\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail;\n}\n\n//------------------------------------------------------------------------------\n// allow\n\ntest(\"function foo(a,) { }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 9,\n        \"end\": 12,\n        \"name\": \"foo\"\n      },\n      \"params\": [\n        {\n          \"type\": \"Identifier\",\n          \"start\": 13,\n          \"end\": 14,\n          \"name\": \"a\"\n        }\n      ],\n      \"generator\": false,\n      \"expression\": false,\n      \"async\": false,\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 17,\n        \"end\": 20,\n        \"body\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"(function(a,) { })\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 18,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 18,\n      \"expression\": {\n        \"type\": \"FunctionExpression\",\n        \"start\": 1,\n        \"end\": 17,\n        \"id\": null,\n        \"params\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 10,\n            \"end\": 11,\n            \"name\": \"a\"\n          }\n        ],\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 14,\n          \"end\": 17,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"(a,) => a\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 9,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 9,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 9,\n        \"id\": null,\n        \"params\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 1,\n            \"end\": 2,\n            \"name\": \"a\"\n          }\n        ],\n        \"generator\": false,\n        \"expression\": true,\n        \"async\": false,\n        \"body\": {\n          \"type\": \"Identifier\",\n          \"start\": 8,\n          \"end\": 9,\n          \"name\": \"a\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"async (a,) => a\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 15,\n      \"expression\": {\n        \"type\": \"ArrowFunctionExpression\",\n        \"start\": 0,\n        \"end\": 15,\n        \"id\": null,\n        \"params\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 7,\n            \"end\": 8,\n            \"name\": \"a\"\n          }\n        ],\n        \"generator\": false,\n        \"expression\": true,\n        \"async\": true,\n        \"body\": {\n          \"type\": \"Identifier\",\n          \"start\": 14,\n          \"end\": 15,\n          \"name\": \"a\"\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"({foo(a,) {}})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"ObjectExpression\",\n        \"start\": 1,\n        \"end\": 13,\n        \"properties\": [\n          {\n            \"type\": \"Property\",\n            \"start\": 2,\n            \"end\": 12,\n            \"method\": true,\n            \"shorthand\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 2,\n              \"end\": 5,\n              \"name\": \"foo\"\n            },\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 5,\n              \"end\": 12,\n              \"id\": null,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 6,\n                  \"end\": 7,\n                  \"name\": \"a\"\n                }\n              ],\n              \"generator\": false,\n              \"expression\": false,\n              \"async\": false,\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 10,\n                \"end\": 12,\n                \"body\": []\n              }\n            },\n            \"kind\": \"init\"\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"class A {foo(a,) {}}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 20,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"A\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 20,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 9,\n            \"end\": 19,\n            \"static\": false,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 9,\n              \"end\": 12,\n              \"name\": \"foo\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 12,\n              \"end\": 19,\n              \"id\": null,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 13,\n                  \"end\": 14,\n                  \"name\": \"a\"\n                }\n              ],\n              \"generator\": false,\n              \"expression\": false,\n              \"async\": false,\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 17,\n                \"end\": 19,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"class A {static foo(a,) {}}\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 27,\n  \"body\": [\n    {\n      \"type\": \"ClassDeclaration\",\n      \"start\": 0,\n      \"end\": 27,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 6,\n        \"end\": 7,\n        \"name\": \"A\"\n      },\n      \"superClass\": null,\n      \"body\": {\n        \"type\": \"ClassBody\",\n        \"start\": 8,\n        \"end\": 27,\n        \"body\": [\n          {\n            \"type\": \"MethodDefinition\",\n            \"start\": 9,\n            \"end\": 26,\n            \"static\": true,\n            \"computed\": false,\n            \"key\": {\n              \"type\": \"Identifier\",\n              \"start\": 16,\n              \"end\": 19,\n              \"name\": \"foo\"\n            },\n            \"kind\": \"method\",\n            \"value\": {\n              \"type\": \"FunctionExpression\",\n              \"start\": 19,\n              \"end\": 26,\n              \"id\": null,\n              \"params\": [\n                {\n                  \"type\": \"Identifier\",\n                  \"start\": 20,\n                  \"end\": 21,\n                  \"name\": \"a\"\n                }\n              ],\n              \"generator\": false,\n              \"expression\": false,\n              \"async\": false,\n              \"body\": {\n                \"type\": \"BlockStatement\",\n                \"start\": 24,\n                \"end\": 26,\n                \"body\": []\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"(class {foo(a,) {}})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 20,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 20,\n      \"expression\": {\n        \"type\": \"ClassExpression\",\n        \"start\": 1,\n        \"end\": 19,\n        \"id\": null,\n        \"superClass\": null,\n        \"body\": {\n          \"type\": \"ClassBody\",\n          \"start\": 7,\n          \"end\": 19,\n          \"body\": [\n            {\n              \"type\": \"MethodDefinition\",\n              \"start\": 8,\n              \"end\": 18,\n              \"static\": false,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 8,\n                \"end\": 11,\n                \"name\": \"foo\"\n              },\n              \"kind\": \"method\",\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 11,\n                \"end\": 18,\n                \"id\": null,\n                \"params\": [\n                  {\n                    \"type\": \"Identifier\",\n                    \"start\": 12,\n                    \"end\": 13,\n                    \"name\": \"a\"\n                  }\n                ],\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": false,\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 16,\n                  \"end\": 18,\n                  \"body\": []\n                }\n              }\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"(class {static foo(a,) {}})\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 27,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 27,\n      \"expression\": {\n        \"type\": \"ClassExpression\",\n        \"start\": 1,\n        \"end\": 26,\n        \"id\": null,\n        \"superClass\": null,\n        \"body\": {\n          \"type\": \"ClassBody\",\n          \"start\": 7,\n          \"end\": 26,\n          \"body\": [\n            {\n              \"type\": \"MethodDefinition\",\n              \"start\": 8,\n              \"end\": 25,\n              \"static\": true,\n              \"computed\": false,\n              \"key\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 18,\n                \"name\": \"foo\"\n              },\n              \"kind\": \"method\",\n              \"value\": {\n                \"type\": \"FunctionExpression\",\n                \"start\": 18,\n                \"end\": 25,\n                \"id\": null,\n                \"params\": [\n                  {\n                    \"type\": \"Identifier\",\n                    \"start\": 19,\n                    \"end\": 20,\n                    \"name\": \"a\"\n                  }\n                ],\n                \"generator\": false,\n                \"expression\": false,\n                \"async\": false,\n                \"body\": {\n                  \"type\": \"BlockStatement\",\n                  \"start\": 23,\n                  \"end\": 25,\n                  \"body\": []\n                }\n              }\n            }\n          ]\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"export default function foo(a,) { }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 35,\n  \"body\": [\n    {\n      \"type\": \"ExportDefaultDeclaration\",\n      \"start\": 0,\n      \"end\": 35,\n      \"declaration\": {\n        \"type\": \"FunctionDeclaration\",\n        \"start\": 15,\n        \"end\": 35,\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"start\": 24,\n          \"end\": 27,\n          \"name\": \"foo\"\n        },\n        \"params\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 28,\n            \"end\": 29,\n            \"name\": \"a\"\n          }\n        ],\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 32,\n          \"end\": 35,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, {ecmaVersion: 8, sourceType: \"module\"})\n\ntest(\"export default (function foo(a,) { })\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 37,\n  \"body\": [\n    {\n      \"type\": \"ExportDefaultDeclaration\",\n      \"start\": 0,\n      \"end\": 37,\n      \"declaration\": {\n        \"type\": \"FunctionExpression\",\n        \"start\": 16,\n        \"end\": 36,\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"start\": 25,\n          \"end\": 28,\n          \"name\": \"foo\"\n        },\n        \"params\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 29,\n            \"end\": 30,\n            \"name\": \"a\"\n          }\n        ],\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 33,\n          \"end\": 36,\n          \"body\": []\n        }\n      }\n    }\n  ],\n  \"sourceType\": \"module\"\n}, {ecmaVersion: 8, sourceType: \"module\"})\n\ntest(\"export function foo(a,) { }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 27,\n  \"body\": [\n    {\n      \"type\": \"ExportNamedDeclaration\",\n      \"start\": 0,\n      \"end\": 27,\n      \"declaration\": {\n        \"type\": \"FunctionDeclaration\",\n        \"start\": 7,\n        \"end\": 27,\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"start\": 16,\n          \"end\": 19,\n          \"name\": \"foo\"\n        },\n        \"params\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 20,\n            \"end\": 21,\n            \"name\": \"a\"\n          }\n        ],\n        \"generator\": false,\n        \"expression\": false,\n        \"async\": false,\n        \"body\": {\n          \"type\": \"BlockStatement\",\n          \"start\": 24,\n          \"end\": 27,\n          \"body\": []\n        }\n      },\n      \"specifiers\": [],\n      \"source\": null\n    }\n  ],\n  \"sourceType\": \"module\"\n}, {ecmaVersion: 8, sourceType: \"module\"})\n\ntest(\"foo(a,)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 7,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 7,\n      \"expression\": {\n        \"type\": \"CallExpression\",\n        \"start\": 0,\n        \"end\": 7,\n        \"callee\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 3,\n          \"name\": \"foo\"\n        },\n        \"arguments\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 4,\n            \"end\": 5,\n            \"name\": \"a\"\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"new foo(a,)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 11,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 11,\n      \"expression\": {\n        \"type\": \"NewExpression\",\n        \"start\": 0,\n        \"end\": 11,\n        \"callee\": {\n          \"type\": \"Identifier\",\n          \"start\": 4,\n          \"end\": 7,\n          \"name\": \"foo\"\n        },\n        \"arguments\": [\n          {\n            \"type\": \"Identifier\",\n            \"start\": 8,\n            \"end\": 9,\n            \"name\": \"a\"\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"foo(...a,)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 10,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 10,\n      \"expression\": {\n        \"type\": \"CallExpression\",\n        \"start\": 0,\n        \"end\": 10,\n        \"callee\": {\n          \"type\": \"Identifier\",\n          \"start\": 0,\n          \"end\": 3,\n          \"name\": \"foo\"\n        },\n        \"arguments\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 4,\n            \"end\": 8,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 7,\n              \"end\": 8,\n              \"name\": \"a\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\ntest(\"new foo(...a,)\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 14,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 14,\n      \"expression\": {\n        \"type\": \"NewExpression\",\n        \"start\": 0,\n        \"end\": 14,\n        \"callee\": {\n          \"type\": \"Identifier\",\n          \"start\": 4,\n          \"end\": 7,\n          \"name\": \"foo\"\n        },\n        \"arguments\": [\n          {\n            \"type\": \"SpreadElement\",\n            \"start\": 8,\n            \"end\": 12,\n            \"argument\": {\n              \"type\": \"Identifier\",\n              \"start\": 11,\n              \"end\": 12,\n              \"name\": \"a\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\n\n//------------------------------------------------------------------------------\n// disallow in {ecmaVersion: 7}\n\ntestFail(\"function foo(a,) { }\", \"Unexpected token (1:15)\", {ecmaVersion: 7})\ntestFail(\"(function(a,) { })\", \"Unexpected token (1:12)\", {ecmaVersion: 7})\ntestFail(\"(a,) => a\", \"Unexpected token (1:3)\", {ecmaVersion: 7})\ntestFail(\"async (a,) => a\", \"Unexpected token (1:9)\", {ecmaVersion: 7})\ntestFail(\"({foo(a,) {}})\", \"Unexpected token (1:8)\", {ecmaVersion: 7})\ntestFail(\"class A {foo(a,) {}}\", \"Unexpected token (1:15)\", {ecmaVersion: 7})\ntestFail(\"class A {static foo(a,) {}}\", \"Unexpected token (1:22)\", {ecmaVersion: 7})\ntestFail(\"(class {foo(a,) {}})\", \"Unexpected token (1:14)\", {ecmaVersion: 7})\ntestFail(\"(class {static foo(a,) {}})\", \"Unexpected token (1:21)\", {ecmaVersion: 7})\ntestFail(\"export default function foo(a,) { }\", \"Unexpected token (1:30)\", {ecmaVersion: 7, sourceType: \"module\"})\ntestFail(\"export default (function foo(a,) { })\", \"Unexpected token (1:31)\", {ecmaVersion: 7, sourceType: \"module\"})\ntestFail(\"export function foo(a,) { }\", \"Unexpected token (1:22)\", {ecmaVersion: 7, sourceType: \"module\"})\ntestFail(\"foo(a,)\", \"Unexpected token (1:6)\", {ecmaVersion: 7})\ntestFail(\"new foo(a,)\", \"Unexpected token (1:10)\", {ecmaVersion: 7})\n\n//------------------------------------------------------------------------------\n// disallow after rest parameters\n\ntestFail(\"function foo(...a,) { }\", \"Comma is not permitted after the rest element (1:17)\", {ecmaVersion: 8})\ntestFail(\"(function(...a,) { })\", \"Comma is not permitted after the rest element (1:14)\", {ecmaVersion: 8})\ntestFail(\"(...a,) => a\", \"Comma is not permitted after the rest element (1:5)\", {ecmaVersion: 8})\ntestFail(\"async (...a,) => a\", \"Comma is not permitted after the rest element (1:11)\", {ecmaVersion: 8})\ntestFail(\"({foo(...a,) {}})\", \"Comma is not permitted after the rest element (1:10)\", {ecmaVersion: 8})\ntestFail(\"class A {foo(...a,) {}}\", \"Comma is not permitted after the rest element (1:17)\", {ecmaVersion: 8})\ntestFail(\"class A {static foo(...a,) {}}\", \"Comma is not permitted after the rest element (1:24)\", {ecmaVersion: 8})\ntestFail(\"(class {foo(...a,) {}})\", \"Comma is not permitted after the rest element (1:16)\", {ecmaVersion: 8})\ntestFail(\"(class {static foo(...a,) {}})\", \"Comma is not permitted after the rest element (1:23)\", {ecmaVersion: 8})\ntestFail(\"export default function foo(...a,) { }\", \"Comma is not permitted after the rest element (1:32)\", {ecmaVersion: 8, sourceType: \"module\"})\ntestFail(\"export default (function foo(...a,) { })\", \"Comma is not permitted after the rest element (1:33)\", {ecmaVersion: 8, sourceType: \"module\"})\ntestFail(\"export function foo(...a,) { }\", \"Comma is not permitted after the rest element (1:24)\", {ecmaVersion: 8, sourceType: \"module\"})\n\n//------------------------------------------------------------------------------\n// disallow empty\n\ntestFail(\"function foo(,) { }\", \"Unexpected token (1:13)\", {ecmaVersion: 8})\ntestFail(\"(function(,) { })\", \"Unexpected token (1:10)\", {ecmaVersion: 8})\ntestFail(\"(,) => a\", \"Unexpected token (1:1)\", {ecmaVersion: 8})\ntestFail(\"async (,) => a\", \"Unexpected token (1:7)\", {ecmaVersion: 8})\ntestFail(\"({foo(,) {}})\", \"Unexpected token (1:6)\", {ecmaVersion: 8})\ntestFail(\"class A {foo(,) {}}\", \"Unexpected token (1:13)\", {ecmaVersion: 8})\ntestFail(\"class A {static foo(,) {}}\", \"Unexpected token (1:20)\", {ecmaVersion: 8})\ntestFail(\"(class {foo(,) {}})\", \"Unexpected token (1:12)\", {ecmaVersion: 8})\ntestFail(\"(class {static foo(,) {}})\", \"Unexpected token (1:19)\", {ecmaVersion: 8})\ntestFail(\"export default function foo(,) { }\", \"Unexpected token (1:28)\", {ecmaVersion: 8, sourceType: \"module\"})\ntestFail(\"export default (function foo(,) { })\", \"Unexpected token (1:29)\", {ecmaVersion: 8, sourceType: \"module\"})\ntestFail(\"export function foo(,) { }\", \"Unexpected token (1:20)\", {ecmaVersion: 8, sourceType: \"module\"})\n\n//------------------------------------------------------------------------------\n// disallow in parens without arrow\n\ntestFail(\"(a,)\", \"Unexpected token (1:3)\", {ecmaVersion: 7})\ntestFail(\"(a,)\", \"Unexpected token (1:3)\", {ecmaVersion: 8})\n\n"
  },
  {
    "path": "test/tests-using.js",
    "content": "if (typeof exports !== \"undefined\") {\n  var test = require(\"./driver.js\").test\n  var testFail = require(\"./driver.js\").testFail\n}\n\n// =============================================================================\n// NORMAL CASES - Basic functionality and standard usage patterns\n// =============================================================================\n\n// --- Basic using declarations ---\n\n// Basic using declaration\ntest(\"{ using x = resource; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 23,\n  \"body\": [{\n    \"type\": \"BlockStatement\",\n    \"start\": 0,\n    \"end\": 23,\n    \"body\": [{\n      \"type\": \"VariableDeclaration\",\n      \"start\": 2,\n      \"end\": 21,\n      \"declarations\": [{\n        \"type\": \"VariableDeclarator\",\n        \"start\": 8,\n        \"end\": 20,\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"start\": 8,\n          \"end\": 9,\n          \"name\": \"x\"\n        },\n        \"init\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 20,\n          \"name\": \"resource\"\n        }\n      }],\n      \"kind\": \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Multiple variable declarations\ntest(\"{ using a = resource1, b = resource2; }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 39,\n  \"body\": [{\n    \"type\": \"BlockStatement\",\n    \"start\": 0,\n    \"end\": 39,\n    \"body\": [{\n      \"type\": \"VariableDeclaration\",\n      \"start\": 2,\n      \"end\": 37,\n      \"declarations\": [{\n        \"type\": \"VariableDeclarator\",\n        \"start\": 8,\n        \"end\": 21,\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"start\": 8,\n          \"end\": 9,\n          \"name\": \"a\"\n        },\n        \"init\": {\n          \"type\": \"Identifier\",\n          \"start\": 12,\n          \"end\": 21,\n          \"name\": \"resource1\"\n        }\n      }, {\n        \"type\": \"VariableDeclarator\",\n        \"start\": 23,\n        \"end\": 36,\n        \"id\": {\n          \"type\": \"Identifier\",\n          \"start\": 23,\n          \"end\": 24,\n          \"name\": \"b\"\n        },\n        \"init\": {\n          \"type\": \"Identifier\",\n          \"start\": 27,\n          \"end\": 36,\n          \"name\": \"resource2\"\n        }\n      }],\n      \"kind\": \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with array syntax - this should be parsed as member expression assignment using[a, b] = arr\ntest(\"{ using [a, b] = arr; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 23,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 23,\n    body: [{\n      type: \"ExpressionStatement\",\n      start: 2,\n      end: 21,\n      expression: {\n        type: \"AssignmentExpression\",\n        start: 2,\n        end: 20,\n        operator: \"=\",\n        left: {\n          type: \"MemberExpression\",\n          start: 2,\n          end: 14,\n          object: {\n            type: \"Identifier\",\n            start: 2,\n            end: 7,\n            name: \"using\"\n          },\n          computed: true,\n          property: {\n            type: \"SequenceExpression\",\n            start: 9,\n            end: 13,\n            expressions: [\n              {\n                type: \"Identifier\",\n                start: 9,\n                end: 10,\n                name: \"a\"\n              },\n              {\n                type: \"Identifier\",\n                start: 12,\n                end: 13,\n                name: \"b\"\n              }\n            ]\n          }\n        },\n        right: {\n          type: \"Identifier\",\n          start: 17,\n          end: 20,\n          name: \"arr\"\n        }\n      }\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Top-level using declaration\ntest(\"using x = resource;\", {\n  type: \"Program\",\n  start: 0,\n  end: 19,\n  body: [{\n    type: \"VariableDeclaration\",\n    start: 0,\n    end: 19,\n    declarations: [{\n      type: \"VariableDeclarator\",\n      start: 6,\n      end: 18,\n      id: {\n        type: \"Identifier\",\n        start: 6,\n        end: 7,\n        name: \"x\"\n      },\n      init: {\n        type: \"Identifier\",\n        start: 10,\n        end: 18,\n        name: \"resource\"\n      }\n    }],\n    kind: \"using\"\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Await using declarations ---\n\n// Await using declaration tests\ntest(\"async function test() { await using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 51,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 51,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 51,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 24,\n        end: 49,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 36,\n          end: 48,\n          id: {\n            type: \"Identifier\",\n            start: 36,\n            end: 37,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 40,\n            end: 48,\n            name: \"resource\"\n          }\n        }],\n        kind: \"await using\"\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Await using with multiple declarations\ntest(\"async function test() { await using a = resource1, b = resource2; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 67,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 67,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 67,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 24,\n        end: 65,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 36,\n          end: 49,\n          id: {\n            type: \"Identifier\",\n            start: 36,\n            end: 37,\n            name: \"a\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 40,\n            end: 49,\n            name: \"resource1\"\n          }\n        }, {\n          type: \"VariableDeclarator\",\n          start: 51,\n          end: 64,\n          id: {\n            type: \"Identifier\",\n            start: 51,\n            end: 52,\n            name: \"b\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 55,\n            end: 64,\n            name: \"resource2\"\n          }\n        }],\n        kind: \"await using\"\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Top-level await using - should work in module context\ntest(\"await using x = resource;\", {\n  type: \"Program\",\n  start: 0,\n  end: 25,\n  body: [{\n    type: \"VariableDeclaration\",\n    start: 0,\n    end: 25,\n    declarations: [{\n      type: \"VariableDeclarator\",\n      start: 12,\n      end: 24,\n      id: {\n        type: \"Identifier\",\n        start: 12,\n        end: 13,\n        name: \"x\"\n      },\n      init: {\n        type: \"Identifier\",\n        start: 16,\n        end: 24,\n        name: \"resource\"\n      }\n    }],\n    kind: \"await using\"\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Using in different contexts ---\n\n// Using in function\ntest(\"function test() { using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 39,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 39,\n    id: {\n      type: \"Identifier\",\n      start: 9,\n      end: 13,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 16,\n      end: 39,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 18,\n        end: 37,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 24,\n          end: 36,\n          id: {\n            type: \"Identifier\",\n            start: 24,\n            end: 25,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 28,\n            end: 36,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }]\n    },\n    generator: false,\n    async: false\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in generator function\ntest(\"function* generator() { using x = resource; yield x; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 54,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 54,\n    id: {\n      type: \"Identifier\",\n      start: 10,\n      end: 19,\n      name: \"generator\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 54,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 24,\n        end: 43,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 30,\n          end: 42,\n          id: {\n            type: \"Identifier\",\n            start: 30,\n            end: 31,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 34,\n            end: 42,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }, {\n        type: \"ExpressionStatement\",\n        start: 44,\n        end: 52,\n        expression: {\n          type: \"YieldExpression\",\n          start: 44,\n          end: 51,\n          argument: {\n            type: \"Identifier\",\n            start: 50,\n            end: 51,\n            name: \"x\"\n          },\n          delegate: false\n        }\n      }]\n    },\n    generator: true,\n    async: false\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in async generator function \ntest(\"async function* asyncGenerator() { await using x = resource; yield x; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 71,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 71,\n    id: {\n      type: \"Identifier\",\n      start: 16,\n      end: 30,\n      name: \"asyncGenerator\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 33,\n      end: 71,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 35,\n        end: 60,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 47,\n          end: 59,\n          id: {\n            type: \"Identifier\",\n            start: 47,\n            end: 48,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 51,\n            end: 59,\n            name: \"resource\"\n          }\n        }],\n        kind: \"await using\"\n      }, {\n        type: \"ExpressionStatement\",\n        start: 61,\n        end: 69,\n        expression: {\n          type: \"YieldExpression\",\n          start: 61,\n          end: 68,\n          argument: {\n            type: \"Identifier\",\n            start: 67,\n            end: 68,\n            name: \"x\"\n          },\n          delegate: false\n        }\n      }]\n    },\n    generator: true,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in try/catch/finally blocks\ntest(\"try { using x = resource; } catch (e) { }\", {\n  type: \"Program\",\n  start: 0,\n  end: 41,\n  body: [{\n    type: \"TryStatement\",\n    start: 0,\n    end: 41,\n    block: {\n      type: \"BlockStatement\",\n      start: 4,\n      end: 27,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 6,\n        end: 25,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 12,\n          end: 24,\n          id: {\n            type: \"Identifier\",\n            start: 12,\n            end: 13,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 16,\n            end: 24,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }]\n    },\n    handler: {\n      type: \"CatchClause\",\n      start: 28,\n      end: 41,\n      param: {\n        type: \"Identifier\",\n        start: 35,\n        end: 36,\n        name: \"e\"\n      },\n      body: {\n        type: \"BlockStatement\",\n        start: 38,\n        end: 41,\n        body: []\n      }\n    },\n    finalizer: null\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with Symbol.dispose\ntest(\"{ using resource = { [Symbol.dispose]() {} }; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 47,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 47,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 45,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 44,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 16,\n          name: \"resource\"\n        },\n        init: {\n          type: \"ObjectExpression\",\n          start: 19,\n          end: 44,\n          properties: [{\n            type: \"Property\",\n            start: 21,\n            end: 42,\n            key: {\n              type: \"MemberExpression\",\n              start: 22,\n              end: 36,\n              object: {\n                type: \"Identifier\",\n                start: 22,\n                end: 28,\n                name: \"Symbol\"\n              },\n              property: {\n                type: \"Identifier\",\n                start: 29,\n                end: 36,\n                name: \"dispose\"\n              },\n              computed: false\n            },\n            value: {\n              type: \"FunctionExpression\",\n              start: 37,\n              end: 42,\n              id: null,\n              params: [],\n              body: {\n                type: \"BlockStatement\",\n                start: 40,\n                end: 42,\n                body: []\n              },\n              generator: false,\n              async: false\n            },\n            kind: \"init\",\n            method: true,\n            computed: true\n          }]\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// DisposableStack usage\ntest(\"{ using stack = new DisposableStack(); }\", {\n  type: \"Program\",\n  start: 0,\n  end: 40,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 40,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 38,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 37,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 13,\n          name: \"stack\"\n        },\n        init: {\n          type: \"NewExpression\",\n          start: 16,\n          end: 37,\n          callee: {\n            type: \"Identifier\",\n            start: 20,\n            end: 35,\n            name: \"DisposableStack\"\n          },\n          arguments: []\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// AsyncDisposableStack usage\ntest(\"async function test() { await using stack = new AsyncDisposableStack(); }\", {\n  type: \"Program\",\n  start: 0,\n  end: 73,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 73,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 73,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 24,\n        end: 71,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 36,\n          end: 70,\n          id: {\n            type: \"Identifier\",\n            start: 36,\n            end: 41,\n            name: \"stack\"\n          },\n          init: {\n            type: \"NewExpression\",\n            start: 44,\n            end: 70,\n            callee: {\n              type: \"Identifier\",\n              start: 48,\n              end: 68,\n              name: \"AsyncDisposableStack\"\n            },\n            arguments: []\n          }\n        }],\n        kind: \"await using\"\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Using in loops ---\n\n// For loop with using\ntest(\"for (using x = resource; i < 10; i++) {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 40,\n  body: [{\n    type: \"ForStatement\",\n    start: 0,\n    end: 40,\n    init: {\n      type: \"VariableDeclaration\",\n      start: 5,\n      end: 23,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 11,\n        end: 23,\n        id: {\n          type: \"Identifier\",\n          start: 11,\n          end: 12,\n          name: \"x\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 15,\n          end: 23,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    },\n    test: {\n      type: \"BinaryExpression\",\n      start: 25,\n      end: 31,\n      left: {\n        type: \"Identifier\",\n        start: 25,\n        end: 26,\n        name: \"i\"\n      },\n      operator: \"<\",\n      right: {\n        type: \"Literal\",\n        start: 29,\n        end: 31,\n        value: 10\n      }\n    },\n    update: {\n      type: \"UpdateExpression\",\n      start: 33,\n      end: 36,\n      operator: \"++\",\n      prefix: false,\n      argument: {\n        type: \"Identifier\",\n        start: 33,\n        end: 34,\n        name: \"i\"\n      }\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 38,\n      end: 40,\n      body: []\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// For-of loop with using\ntest(\"for (using x of resources) {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 29,\n  body: [{\n    type: \"ForOfStatement\",\n    start: 0,\n    end: 29,\n    left: {\n      type: \"VariableDeclaration\",\n      start: 5,\n      end: 12,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 11,\n        end: 12,\n        id: {\n          type: \"Identifier\",\n          start: 11,\n          end: 12,\n          name: \"x\"\n        },\n        init: null\n      }],\n      kind: \"using\"\n    },\n    right: {\n      type: \"Identifier\",\n      start: 16,\n      end: 25,\n      name: \"resources\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 27,\n      end: 29,\n      body: []\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// For-in loop with using\ntest(\"for (using x in obj) {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 23,\n  body: [{\n    type: \"ForInStatement\",\n    start: 0,\n    end: 23,\n    left: {\n      type: \"VariableDeclaration\",\n      start: 5,\n      end: 12,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 11,\n        end: 12,\n        id: {\n          type: \"Identifier\",\n          start: 11,\n          end: 12,\n          name: \"x\"\n        },\n        init: null\n      }],\n      kind: \"using\"\n    },\n    right: {\n      type: \"Identifier\",\n      start: 16,\n      end: 19,\n      name: \"obj\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 21,\n      end: 23,\n      body: []\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Await using in for-of loop\ntest(\"async function test() { for (await using x of resources) {} }\", {\n  type: \"Program\",\n  start: 0,\n  end: 61,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 61,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 61,\n      body: [{\n        type: \"ForOfStatement\",\n        start: 24,\n        end: 59,\n        left: {\n          type: \"VariableDeclaration\",\n          start: 29,\n          end: 42,\n          declarations: [{\n            type: \"VariableDeclarator\",\n            start: 41,\n            end: 42,\n            id: {\n              type: \"Identifier\",\n              start: 41,\n              end: 42,\n              name: \"x\"\n            },\n            init: null\n          }],\n          kind: \"await using\"\n        },\n        right: {\n          type: \"Identifier\",\n          start: 46,\n          end: 55,\n          name: \"resources\"\n        },\n        body: {\n          type: \"BlockStatement\",\n          start: 57,\n          end: 59,\n          body: []\n        }\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Using in special contexts ---\n\n// Using in switch case block\ntest(\"switch (x) { case 1: { using y = resource; } }\", {\n  type: \"Program\",\n  start: 0,\n  end: 46,\n  body: [{\n    type: \"SwitchStatement\",\n    start: 0,\n    end: 46,\n    discriminant: {\n      type: \"Identifier\",\n      start: 8,\n      end: 9,\n      name: \"x\"\n    },\n    cases: [{\n      type: \"SwitchCase\",\n      start: 13,\n      end: 44,\n      test: {\n        type: \"Literal\",\n        start: 18,\n        end: 19,\n        value: 1\n      },\n      consequent: [{\n        type: \"BlockStatement\",\n        start: 21,\n        end: 44,\n        body: [{\n          type: \"VariableDeclaration\",\n          start: 23,\n          end: 42,\n          declarations: [{\n            type: \"VariableDeclarator\",\n            start: 29,\n            end: 41,\n            id: {\n              type: \"Identifier\",\n              start: 29,\n              end: 30,\n              name: \"y\"\n            },\n            init: {\n              type: \"Identifier\",\n              start: 33,\n              end: 41,\n              name: \"resource\"\n            }\n          }],\n          kind: \"using\"\n        }]\n      }]\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in class static block\ntest(\"class C { static { using x = resource; } }\", {\n  type: \"Program\",\n  start: 0,\n  end: 42,\n  body: [{\n    type: \"ClassDeclaration\",\n    start: 0,\n    end: 42,\n    id: {\n      type: \"Identifier\",\n      start: 6,\n      end: 7,\n      name: \"C\"\n    },\n    superClass: null,\n    body: {\n      type: \"ClassBody\",\n      start: 8,\n      end: 42,\n      body: [{\n        type: \"StaticBlock\",\n        start: 10,\n        end: 40,\n        body: [{\n          type: \"VariableDeclaration\",\n          start: 19,\n          end: 38,\n          declarations: [{\n            type: \"VariableDeclarator\",\n            start: 25,\n            end: 37,\n            id: {\n              type: \"Identifier\",\n              start: 25,\n              end: 26,\n              name: \"x\"\n            },\n            init: {\n              type: \"Identifier\",\n              start: 29,\n              end: 37,\n              name: \"resource\"\n            }\n          }],\n          kind: \"using\"\n        }]\n      }]\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// =============================================================================\n// ERROR CASES - Expected failures and invalid syntax\n// =============================================================================\n\n// BoundNames contains \"let\"\ntestFail(\"{ using let = resource; }\", \"The keyword 'let' is reserved (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n// BoundNames contains duplicate entries\ntestFail(\"let await using x = resource;\", \"Cannot use keyword 'await' outside an async function (1:4)\", {ecmaVersion: 17, sourceType: \"module\"});\n// let using is not allowed\ntestFail(\"let using x = resource;\", \"Unexpected token (1:10)\", {ecmaVersion: 17, sourceType: \"module\"});\n// top level using is not allowed\ntestFail(\"using x = resource;\", \"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement (1:0)\", {ecmaVersion: 17, sourceType: \"script\", commonjs: false});\n\n// BoundNames contains \"let\"  \ntestFail(\"async function test() { await using let = resource; }\", \"The keyword 'let' is reserved (1:36)\", {ecmaVersion: 17, sourceType: \"module\"});\n// BoundNames contains duplicate entries\ntestFail(\"async function test() { await using x = resource1, x = resource2; }\", \"Identifier 'x' has already been declared (1:51)\", {ecmaVersion: 17, sourceType: \"module\"});\n// top level await using is not allowed\ntestFail(\"await using x = resource;\", \"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement (1:0)\", {ecmaVersion: 17, sourceType: \"script\", commonjs: false});\n\n// Basic missing initializer\ntestFail(\"{ using x; }\", \"Missing initializer in using declaration (1:9)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"{ using x = 5, y; }\", \"Missing initializer in using declaration (1:16)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Await using missing initializer\ntestFail(\"async function test() { await using x; }\", \"Missing initializer in await using declaration (1:37)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with object destructuring is not supported\ntestFail(\"{ using {x} = obj; }\", \"Unexpected token (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Complex object destructuring with renaming is not supported\ntestFail(\"{ using {x: y, z} = obj; }\", \"Unexpected token (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Export using declarations - should fail as they are not allowed\ntestFail(\"export using x = resource;\", \"Unexpected token (1:7)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"export await using x = resource;\", \"Unexpected token (1:7)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with wrong ecmaVersion - should fail with Unexpected token\ntestFail(\"{ using x = resource; }\", \"Unexpected token (1:8)\", {ecmaVersion: 16}, {sourceType: \"module\"});\n\n// Using in for-in with initializer (should fail)\ntestFail(\"for (using x = resource in obj) {}\", \"for-in loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in for-of with initializer (should fail)\ntestFail(\"for (using x = resource of arr) {}\", \"for-of loop variable declaration may not have an initializer (1:5)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// \"let\" is not allowed as variable name in using declaration\ntestFail(\"{ using let = resource; }\", \"The keyword 'let' is reserved (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Duplicate variable names in using declaration\ntestFail(\"{ using x = resource1, x = resource2; }\", \"Identifier 'x' has already been declared (1:23)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Reserved words and strict mode restrictions\ntestFail(\"{ using super = resource; }\", \"Unexpected keyword 'super' (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"{ using this = resource; }\", \"Unexpected keyword 'this' (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"'use strict'; { using arguments = resource; }\", \"Binding arguments in strict mode (1:22)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"'use strict'; { using eval = resource; }\", \"Binding eval in strict mode (1:22)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Context-sensitive keyword restrictions\ntestFail(\"function* gen() { using yield = resource; }\", \"Cannot use 'yield' as identifier inside a generator (1:24)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"async function test() { using await = resource; }\", \"Cannot use 'await' as identifier inside an async function (1:30)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Rest elements are not allowed in await using declarations\ntestFail(\"async function test() { await using [first, ...rest] = arr; }\", \"Unexpected token (1:44)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Strict mode restrictions with await using\ntestFail(\"'use strict'; async function test() { await using arguments = resource; }\", \"Binding arguments in strict mode (1:50)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"'use strict'; async function test() { await using eval = resource; }\", \"Binding eval in strict mode (1:50)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Valid destructuring with default values in using - should be an error\ntestFail(\"{ using {x = 5} = obj; }\", \"Unexpected token (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with object destructuring and computed property names - should be an error\ntestFail(\"{ using {[key]: value} = obj; }\", \"Unexpected token (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// 'let' is not allowed as variable name in await using declaration\ntestFail(\"async function test() { await using let = resource; }\", \"The keyword 'let' is reserved (1:36)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"async function test() { await using x = resource1, let = resource2; }\", \"The keyword 'let' is reserved (1:51)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using declaration inside expression (should not be allowed)\ntestFail(\"(using x = resource)\", \"Unexpected token (1:7)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with invalid identifier characters\ntestFail(\"{ using \\\\u0030x = resource; }\", \"Invalid Unicode escape (1:8)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// await using in script mode\ntestFail(\"{await using a = x}\", \"Await using cannot appear outside of async function (1:1)\", {ecmaVersion: 17, sourceType: \"script\"});\ntestFail(\"for (await using a of x) {}\", \"Await using cannot appear outside of async function (1:11)\", {ecmaVersion: 17, sourceType: \"script\"});\n\n// Using in a bare case statement (should not be allowed)\ntestFail(\"switch (x) { case 1: using y = resource; }\", \"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement (1:21)\", {ecmaVersion: 17, sourceType: \"module\"});\ntestFail(\"switch (x) { case 1: break; default: using y = resource; }\", \"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement (1:37)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// await using double lookahead should detect using keyword correctly\ntestFail(\"async () => { await using\\\\u0061 b = c }\", \"Unexpected token (1:32)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// =============================================================================\n// EDGE CASES - Unusual but valid scenarios and boundary conditions\n// =============================================================================\n\n// --- ECMAScript version compatibility ---\n\n// ES16: using should be treated as regular identifier (assignment)\ntest(\"using = 5;\", {\n  type: \"Program\",\n  start: 0,\n  end: 10,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 10,\n    expression: {\n      type: \"AssignmentExpression\",\n      start: 0,\n      end: 9,\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        start: 0,\n        end: 5,\n        name: \"using\"\n      },\n      right: {\n        type: \"Literal\",\n        start: 8,\n        end: 9,\n        value: 5\n      }\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 16, sourceType: \"script\"});\n\n// ES17: using should be treated as regular identifier (assignment)\ntest(\"using = 5;\", {\n  type: \"Program\",\n  start: 0,\n  end: 10,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 10,\n    expression: {\n      type: \"AssignmentExpression\",\n      start: 0,\n      end: 9,\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        start: 0,\n        end: 5,\n        name: \"using\"\n      },\n      right: {\n        type: \"Literal\",\n        start: 8,\n        end: 9,\n        value: 5\n      }\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// ES16: using should be treated as regular identifier (method call)\ntest(\"using.dispose();\", {\n  type: \"Program\",\n  start: 0,\n  end: 16,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 16,\n    expression: {\n      type: \"CallExpression\",\n      start: 0,\n      end: 15,\n      callee: {\n        type: \"MemberExpression\",\n        start: 0,\n        end: 13,\n        object: {\n          type: \"Identifier\",\n          start: 0,\n          end: 5,\n          name: \"using\"\n        },\n        property: {\n          type: \"Identifier\",\n          start: 6,\n          end: 13,\n          name: \"dispose\"\n        },\n        computed: false\n      },\n      arguments: []\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 16, sourceType: \"script\"});\n\n// ES17: using should be treated as regular identifier (method call)\ntest(\"using.dispose();\", {\n  type: \"Program\",\n  start: 0,\n  end: 16,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 16,\n    expression: {\n      type: \"CallExpression\",\n      start: 0,\n      end: 15,\n      callee: {\n        type: \"MemberExpression\",\n        start: 0,\n        end: 13,\n        object: {\n          type: \"Identifier\",\n          start: 0,\n          end: 5,\n          name: \"using\"\n        },\n        property: {\n          type: \"Identifier\",\n          start: 6,\n          end: 13,\n          name: \"dispose\"\n        },\n        computed: false\n      },\n      arguments: []\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// ES16: using should be treated as regular identifier (logical expression)\ntest(\"using && doSomething();\", {\n  type: \"Program\",\n  start: 0,\n  end: 23,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 23,\n    expression: {\n      type: \"LogicalExpression\",\n      start: 0,\n      end: 22,\n      operator: \"&&\",\n      left: {\n        type: \"Identifier\",\n        start: 0,\n        end: 5,\n        name: \"using\"\n      },\n      right: {\n        type: \"CallExpression\",\n        start: 9,\n        end: 22,\n        callee: {\n          type: \"Identifier\",\n          start: 9,\n          end: 20,\n          name: \"doSomething\"\n        },\n        arguments: []\n      }\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 16, sourceType: \"script\"});\n\n// ES17: using should be treated as regular identifier (logical expression)\ntest(\"using && doSomething();\", {\n  type: \"Program\",\n  start: 0,\n  end: 23,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 23,\n    expression: {\n      type: \"LogicalExpression\",\n      start: 0,\n      end: 22,\n      operator: \"&&\",\n      left: {\n        type: \"Identifier\",\n        start: 0,\n        end: 5,\n        name: \"using\"\n      },\n      right: {\n        type: \"CallExpression\",\n        start: 9,\n        end: 22,\n        callee: {\n          type: \"Identifier\",\n          start: 9,\n          end: 20,\n          name: \"doSomething\"\n        },\n        arguments: []\n      }\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// ES16: await using should be treated as regular identifiers\ntest(\"await.using;\", {\n  type: \"Program\",\n  start: 0,\n  end: 12,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 12,\n    expression: {\n      type: \"MemberExpression\",\n      start: 0,\n      end: 11,\n      object: {\n        type: \"Identifier\",\n        start: 0,\n        end: 5,\n        name: \"await\"\n      },\n      property: {\n        type: \"Identifier\",\n        start: 6,\n        end: 11,\n        name: \"using\"\n      },\n      computed: false\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 16, sourceType: \"script\"});\n\n// ES17: await using should be treated as regular identifiers in script mode\ntest(\"await.using;\", {\n  type: \"Program\",\n  start: 0,\n  end: 12,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 12,\n    expression: {\n      type: \"MemberExpression\",\n      start: 0,\n      end: 11,\n      object: {\n        type: \"Identifier\",\n        start: 0,\n        end: 5,\n        name: \"await\"\n      },\n      property: {\n        type: \"Identifier\",\n        start: 6,\n        end: 11,\n        name: \"using\"\n      },\n      computed: false\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 17, sourceType: \"script\"});\n\n// ES17: unexpected token in module mode\ntestFail(\"await.using;\", \"Unexpected token (1:5)\", {ecmaVersion: 17, sourceType: \"module\"});\n\n// ES16: using should be treated as regular identifier (for-of)\ntest(\"for (using of x) {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 19,\n  body: [{\n    type: \"ForOfStatement\",\n    start: 0,\n    end: 19,\n    await: false,\n    left: {\n      type: \"Identifier\",\n      start: 5,\n      end: 10,\n      name: \"using\"\n    },\n    right: {\n      type: \"Identifier\",\n      start: 14,\n      end: 15,\n      name: \"x\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 17,\n      end: 19,\n      body: []\n    }\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 16, sourceType: \"script\"});\n\n// ES17: using should be treated as regular identifier (for-of)\ntest(\"for (using of y) {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 19,\n  body: [{\n    type: \"ForOfStatement\",\n    start: 0,\n    end: 19,\n    await: false,\n    left: {\n      type: \"Identifier\",\n      start: 5,\n      end: 10,\n      name: \"using\"\n    },\n    right: {\n      type: \"Identifier\",\n      start: 14,\n      end: 15,\n      name: \"y\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 17,\n      end: 19,\n      body: []\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- LineTerminator restrictions ---\n\n// using with LineTerminator should be parsed as identifier + assignment, not using declaration\ntest(`using\nx = resource;`, {\n  type: \"Program\",\n  start: 0,\n  end: 19,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 5,\n    expression: {\n      type: \"Identifier\",\n      start: 0,\n      end: 5,\n      name: \"using\"\n    }\n  }, {\n    type: \"ExpressionStatement\",\n    start: 6,\n    end: 19,\n    expression: {\n      type: \"AssignmentExpression\",\n      start: 6,\n      end: 18,\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        start: 6,\n        end: 7,\n        name: \"x\"\n      },\n      right: {\n        type: \"Identifier\",\n        start: 10,\n        end: 18,\n        name: \"resource\"\n      }\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// LineTerminator between 'await' and 'using' (violates spec)\ntestFail(`async function test() { await\nusing x = resource; }`, \"Unexpected token (2:6)\", {ecmaVersion: 17, sourceType: \"script\"});\n\n// await using with LineTerminator after using should be parsed as await identifier + assignment\ntest(`async function test() { await using\nx = resource; }`, {\n  type: \"Program\",\n  start: 0,\n  end: 51,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 51,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 51,\n      body: [{\n        type: \"ExpressionStatement\",\n        start: 24,\n        end: 35,\n        expression: {\n          type: \"AwaitExpression\",\n          start: 24,\n          end: 35,\n          argument: {\n            type: \"Identifier\",\n            start: 30,\n            end: 35,\n            name: \"using\"\n          }\n        }\n      }, {\n        type: \"ExpressionStatement\",\n        start: 36,\n        end: 49,\n        expression: {\n          type: \"AssignmentExpression\",\n          start: 36,\n          end: 48,\n          operator: \"=\",\n          left: {\n            type: \"Identifier\",\n            start: 36,\n            end: 37,\n            name: \"x\"\n          },\n          right: {\n            type: \"Identifier\",\n            start: 40,\n            end: 48,\n            name: \"resource\"\n          }\n        }\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Top-level await using with LineTerminator after using should parse as await identifier + assignment\ntest(`await using\nx = resource;`, {\n  type: \"Program\",\n  start: 0,\n  end: 25,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 11,\n    expression: {\n      type: \"AwaitExpression\",\n      start: 0,\n      end: 11,\n      argument: {\n        type: \"Identifier\",\n        start: 6,\n        end: 11,\n        name: \"using\"\n      }\n    }\n  }, {\n    type: \"ExpressionStatement\",\n    start: 12,\n    end: 25,\n    expression: {\n      type: \"AssignmentExpression\",\n      start: 12,\n      end: 24,\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        start: 12,\n        end: 13,\n        name: \"x\"\n      },\n      right: {\n        type: \"Identifier\",\n        start: 16,\n        end: 24,\n        name: \"resource\"\n      }\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Valid case: Comments between await and using (no actual LineTerminator)\ntest(\"async function test() { await /* comment */ using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 65,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 65,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 65,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 24,\n        end: 63,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 50,\n          end: 62,\n          id: {\n            type: \"Identifier\",\n            start: 50,\n            end: 51,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 54,\n            end: 62,\n            name: \"resource\"\n          }\n        }],\n        kind: \"await using\"\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Multiple line terminators should be parsed as separate statements\ntest(`using\n\n\nx = resource;`, {\n  type: \"Program\",\n  start: 0,\n  end: 21,\n  body: [{\n    type: \"ExpressionStatement\",\n    start: 0,\n    end: 5,\n    expression: {\n      type: \"Identifier\",\n      start: 0,\n      end: 5,\n      name: \"using\"\n    }\n  }, {\n    type: \"ExpressionStatement\",\n    start: 8,\n    end: 21,\n    expression: {\n      type: \"AssignmentExpression\",\n      start: 8,\n      end: 20,\n      operator: \"=\",\n      left: {\n        type: \"Identifier\",\n        start: 8,\n        end: 9,\n        name: \"x\"\n      },\n      right: {\n        type: \"Identifier\",\n        start: 12,\n        end: 20,\n        name: \"resource\"\n      }\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Unicode and special characters ---\n\n// Using with Unicode escape sequence identifier\ntest(\"{ using \\\\u0078 = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 28,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 28,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 26,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 25,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 14,\n          name: \"x\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 17,\n          end: 25,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with Latin-1 supplement characters\ntest(\"{ using café = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 26,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 26,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 24,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 23,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 12,\n          name: \"café\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 15,\n          end: 23,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Await using with Unicode identifier\ntest(\"async function test() { await using \\\\u03B1 = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 56,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 56,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 56,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 24,\n        end: 54,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 36,\n          end: 53,\n          id: {\n            type: \"Identifier\",\n            start: 36,\n            end: 42,\n            name: \"α\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 45,\n            end: 53,\n            name: \"resource\"\n          }\n        }],\n        kind: \"await using\"\n      }]\n    },\n    generator: false,\n    async: true\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Unicode in using identifier\ntest(\"{ using \\\\u{61} = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 28,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 28,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 26,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 25,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 14,\n          name: \"a\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 17,\n          end: 25,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Complex expressions and ASI ---\n\n// Using with complex member expression\ntest(\"{ using x = obj.resource.handle; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 34,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 34,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 32,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 31,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"MemberExpression\",\n          start: 12,\n          end: 31,\n          object: {\n            type: \"MemberExpression\",\n            start: 12,\n            end: 24,\n            object: {\n              type: \"Identifier\",\n              start: 12,\n              end: 15,\n              name: \"obj\"\n            },\n            property: {\n              type: \"Identifier\",\n              start: 16,\n              end: 24,\n              name: \"resource\"\n            },\n            computed: false\n          },\n          property: {\n            type: \"Identifier\",\n            start: 25,\n            end: 31,\n            name: \"handle\"\n          },\n          computed: false\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with computed property access\ntest(\"{ using x = obj[key]; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 23,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 23,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 21,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 20,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"MemberExpression\",\n          start: 12,\n          end: 20,\n          object: {\n            type: \"Identifier\",\n            start: 12,\n            end: 15,\n            name: \"obj\"\n          },\n          property: {\n            type: \"Identifier\",\n            start: 16,\n            end: 19,\n            name: \"key\"\n          },\n          computed: true\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with call expression\ntest(\"{ using x = createResource(); }\", {\n  type: \"Program\",\n  start: 0,\n  end: 31,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 31,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 29,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 28,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"CallExpression\",\n          start: 12,\n          end: 28,\n          callee: {\n            type: \"Identifier\",\n            start: 12,\n            end: 26,\n            name: \"createResource\"\n          },\n          arguments: []\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with conditional (ternary) expression\ntest(\"{ using x = condition ? resource1 : resource2; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 48,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 48,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 46,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 45,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"ConditionalExpression\",\n          start: 12,\n          end: 45,\n          test: {\n            type: \"Identifier\",\n            start: 12,\n            end: 21,\n            name: \"condition\"\n          },\n          consequent: {\n            type: \"Identifier\",\n            start: 24,\n            end: 33,\n            name: \"resource1\"\n          },\n          alternate: {\n            type: \"Identifier\",\n            start: 36,\n            end: 45,\n            name: \"resource2\"\n          }\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with logical OR expression\ntest(\"{ using x = resource || fallback; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 35,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 35,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 33,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 32,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"LogicalExpression\",\n          start: 12,\n          end: 32,\n          operator: \"||\",\n          left: {\n            type: \"Identifier\",\n            start: 12,\n            end: 20,\n            name: \"resource\"\n          },\n          right: {\n            type: \"Identifier\",\n            start: 24,\n            end: 32,\n            name: \"fallback\"\n          }\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Test null and undefined as valid initializers\ntest(\"{ using x = null; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 19,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 19,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 17,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 16,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"Literal\",\n          start: 12,\n          end: 16,\n          value: null\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\ntest(\"{ using x = undefined; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 24,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 24,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 22,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 21,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 12,\n          end: 21,\n          name: \"undefined\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with BigInt literal\ntest(\"{ using x = 123n; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 19,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 19,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 17,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 16,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"Literal\",\n          start: 12,\n          end: 16,\n          value: 123n,\n          bigint: \"123\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// ASI (Automatic Semicolon Insertion) test - using without semicolon \ntest(\"{ using x = resource\\n}\", {\n  type: \"Program\",\n  start: 0,\n  end: 22,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 22,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 20,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 20,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 9,\n          name: \"x\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 12,\n          end: 20,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// --- Additional contexts ---\n\n// Using in catch clause\ntest(\"try {} catch (e) { using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 40,\n  body: [{\n    type: \"TryStatement\",\n    start: 0,\n    end: 40,\n    block: {\n      type: \"BlockStatement\",\n      start: 4,\n      end: 6,\n      body: []\n    },\n    handler: {\n      type: \"CatchClause\",\n      start: 7,\n      end: 40,\n      param: {\n        type: \"Identifier\",\n        start: 14,\n        end: 15,\n        name: \"e\"\n      },\n      body: {\n        type: \"BlockStatement\",\n        start: 17,\n        end: 40,\n        body: [{\n          type: \"VariableDeclaration\",\n          start: 19,\n          end: 38,\n          declarations: [{\n            type: \"VariableDeclarator\",\n            start: 25,\n            end: 37,\n            id: {\n              type: \"Identifier\",\n              start: 25,\n              end: 26,\n              name: \"x\"\n            },\n            init: {\n              type: \"Identifier\",\n              start: 29,\n              end: 37,\n              name: \"resource\"\n            }\n          }],\n          kind: \"using\"\n        }]\n      }\n    },\n    finalizer: null\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in finally clause\ntest(\"try {} finally { using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 38,\n  body: [{\n    type: \"TryStatement\",\n    start: 0,\n    end: 38,\n    block: {\n      type: \"BlockStatement\",\n      start: 4,\n      end: 6,\n      body: []\n    },\n    handler: null,\n    finalizer: {\n      type: \"BlockStatement\",\n      start: 15,\n      end: 38,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 17,\n        end: 36,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 23,\n          end: 35,\n          id: {\n            type: \"Identifier\",\n            start: 23,\n            end: 24,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 27,\n            end: 35,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }]\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in if statement block\ntest(\"if (condition) { using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 38,\n  body: [{\n    type: \"IfStatement\",\n    start: 0,\n    end: 38,\n    test: {\n      type: \"Identifier\",\n      start: 4,\n      end: 13,\n      name: \"condition\"\n    },\n    consequent: {\n      type: \"BlockStatement\",\n      start: 15,\n      end: 38,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 17,\n        end: 36,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 23,\n          end: 35,\n          id: {\n            type: \"Identifier\",\n            start: 23,\n            end: 24,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 27,\n            end: 35,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }]\n    },\n    alternate: null\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in while statement block\ntest(\"while (condition) { using x = resource; break; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 48,\n  body: [{\n    type: \"WhileStatement\",\n    start: 0,\n    end: 48,\n    test: {\n      type: \"Identifier\",\n      start: 7,\n      end: 16,\n      name: \"condition\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 18,\n      end: 48,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 20,\n        end: 39,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 26,\n          end: 38,\n          id: {\n            type: \"Identifier\",\n            start: 26,\n            end: 27,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 30,\n            end: 38,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }, {\n        type: \"BreakStatement\",\n        start: 40,\n        end: 46,\n        label: null\n      }]\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using in labeled statement block\ntest(\"label: { using x = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 30,\n  body: [{\n    type: \"LabeledStatement\",\n    start: 0,\n    end: 30,\n    label: {\n      type: \"Identifier\",\n      start: 0,\n      end: 5,\n      name: \"label\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 7,\n      end: 30,\n      body: [{\n        type: \"VariableDeclaration\",\n        start: 9,\n        end: 28,\n        declarations: [{\n          type: \"VariableDeclarator\",\n          start: 15,\n          end: 27,\n          id: {\n            type: \"Identifier\",\n            start: 15,\n            end: 16,\n            name: \"x\"\n          },\n          init: {\n            type: \"Identifier\",\n            start: 19,\n            end: 27,\n            name: \"resource\"\n          }\n        }],\n        kind: \"using\"\n      }]\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// Using with 'arguments' identifier\ntest(\"{ using arguments = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 31,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 31,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 29,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 28,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 17,\n          name: \"arguments\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 20,\n          end: 28,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 17, sourceType: \"script\"});\n\n// Using with 'eval' identifier (should work, eval is not restricted in using declarations)\ntest(\"{ using eval = resource; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 26,\n  body: [{\n    type: \"BlockStatement\",\n    start: 0,\n    end: 26,\n    body: [{\n      type: \"VariableDeclaration\",\n      start: 2,\n      end: 24,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 8,\n        end: 23,\n        id: {\n          type: \"Identifier\",\n          start: 8,\n          end: 12,\n          name: \"eval\"\n        },\n        init: {\n          type: \"Identifier\",\n          start: 15,\n          end: 23,\n          name: \"resource\"\n        }\n      }],\n      kind: \"using\"\n    }]\n  }],\n  sourceType: \"script\"\n}, {ecmaVersion: 17, sourceType: \"script\"});\n\n\n// ES17: using should be treated as using keyword\ntest(\"for (using ofa of x) {}\", {\n  type: \"Program\",\n  start: 0,\n  end: 23,\n  body: [{\n    type: \"ForOfStatement\",\n    start: 0,\n    end: 23,\n    left: {\n      type: \"VariableDeclaration\",\n      start: 5,\n      end: 14,\n      declarations: [{\n        type: \"VariableDeclarator\",\n        start: 11,\n        end: 14,\n        id: {\n          type: \"Identifier\",\n          start: 11,\n          end: 14,\n          name: \"ofa\"\n        },\n        init: null\n      }],\n      kind: \"using\"\n    },\n    right: {\n      type: \"Identifier\",\n      start: 18,\n      end: 19,\n      name: \"x\"\n    },\n    body: {\n      type: \"BlockStatement\",\n      start: 21,\n      end: 23,\n      body: []\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\n// await using should be treated as regular identifiers when not followed by variable declaration\ntest(\"async function test() { await usingX; }\", {\n  type: \"Program\",\n  start: 0,\n  end: 39,\n  body: [{\n    type: \"FunctionDeclaration\",\n    start: 0,\n    end: 39,\n    id: {\n      type: \"Identifier\",\n      start: 15,\n      end: 19,\n      name: \"test\"\n    },\n    generator: false,\n    async: true,\n    params: [],\n    body: {\n      type: \"BlockStatement\",\n      start: 22,\n      end: 39,\n      body: [{\n        type: \"ExpressionStatement\",\n        start: 24,\n        end: 37,\n        expression: {\n          type: \"AwaitExpression\",\n          start: 24,\n          end: 36,\n          argument: {\n            type: \"Identifier\",\n            start: 30,\n            end: 36,\n            name: \"usingX\"\n          }\n        }\n      }]\n    }\n  }],\n  sourceType: \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"});\n\ntest(`async function f() {\n  await using in foo;\n}`, {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 44,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 44,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"expression\": false,\n      \"generator\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 44,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 23,\n            \"end\": 42,\n            \"expression\": {\n              \"type\": \"BinaryExpression\",\n              \"start\": 23,\n              \"end\": 41,\n              \"left\": {\n                \"type\": \"AwaitExpression\",\n                \"start\": 23,\n                \"end\": 34,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 29,\n                  \"end\": 34,\n                  \"name\": \"using\"\n                }\n              },\n              \"operator\": \"in\",\n              \"right\": {\n                \"type\": \"Identifier\",\n                \"start\": 38,\n                \"end\": 41,\n                \"name\": \"foo\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 17})\n\ntest(`async function f() {\n  await using instanceof foo;\n}`, {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 52,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 52,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"expression\": false,\n      \"generator\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 52,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 23,\n            \"end\": 50,\n            \"expression\": {\n              \"type\": \"BinaryExpression\",\n              \"start\": 23,\n              \"end\": 49,\n              \"left\": {\n                \"type\": \"AwaitExpression\",\n                \"start\": 23,\n                \"end\": 34,\n                \"argument\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 29,\n                  \"end\": 34,\n                  \"name\": \"using\"\n                }\n              },\n              \"operator\": \"instanceof\",\n              \"right\": {\n                \"type\": \"Identifier\",\n                \"start\": 46,\n                \"end\": 49,\n                \"name\": \"foo\"\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 17})\n\ntest(`{ let 𠮷 = foo(); }`, {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 19,\n  \"body\": [\n    {\n      \"type\": \"BlockStatement\",\n      \"start\": 0,\n      \"end\": 19,\n      \"body\": [\n        {\n          \"type\": \"VariableDeclaration\",\n          \"start\": 2,\n          \"end\": 17,\n          \"declarations\": [\n            {\n              \"type\": \"VariableDeclarator\",\n              \"start\": 6,\n              \"end\": 16,\n              \"id\": {\n                \"type\": \"Identifier\",\n                \"start\": 6,\n                \"end\": 8,\n                \"name\": \"𠮷\"\n              },\n              \"init\": {\n                \"type\": \"CallExpression\",\n                \"start\": 11,\n                \"end\": 16,\n                \"callee\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 11,\n                  \"end\": 14,\n                  \"name\": \"foo\"\n                },\n                \"arguments\": [],\n                \"optional\": false\n              }\n            }\n          ],\n          \"kind\": \"let\"\n        }\n      ]\n    }\n  ],\n  \"sourceType\": \"module\"\n}, {ecmaVersion: 17, sourceType: \"module\"})\n\ntest(`async function f() {\n  await using[x];\n}`, {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 40,\n  \"body\": [\n    {\n      \"type\": \"FunctionDeclaration\",\n      \"start\": 0,\n      \"end\": 40,\n      \"id\": {\n        \"type\": \"Identifier\",\n        \"start\": 15,\n        \"end\": 16,\n        \"name\": \"f\"\n      },\n      \"expression\": false,\n      \"generator\": false,\n      \"async\": true,\n      \"params\": [],\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 19,\n        \"end\": 40,\n        \"body\": [\n          {\n            \"type\": \"ExpressionStatement\",\n            \"start\": 23,\n            \"end\": 38,\n            \"expression\": {\n              \"type\": \"AwaitExpression\",\n              \"start\": 23,\n              \"end\": 37,\n              \"argument\": {\n                \"type\": \"MemberExpression\",\n                \"start\": 29,\n                \"end\": 37,\n                \"object\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 29,\n                  \"end\": 34,\n                  \"name\": \"using\"\n                },\n                \"property\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 35,\n                  \"end\": 36,\n                  \"name\": \"x\"\n                },\n                \"computed\": true,\n                \"optional\": false\n              }\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 17})\n"
  },
  {
    "path": "test/tests.js",
    "content": "// Tests largely based on those of Esprima\n// (http://esprima.org/test/)\n\nif (typeof exports !== \"undefined\") {\n  var driver = require(\"./driver.js\");\n  var test = driver.test, testFail = driver.testFail, testAssert = driver.testAssert;\n  var acorn = require(\"../acorn\");\n}\n\ntest(\"import ''\", {\n  type: \"Program\",\n  start: 0,\n  end: 9,\n  body: [\n    {\n      type: \"ImportDeclaration\",\n      start: 0,\n      end: 9,\n      specifiers: [],\n      source: {\n        type: \"Literal\",\n        start: 7,\n        end: 9,\n        value: \"\",\n        raw: \"''\"\n      }\n    }\n  ]\n}, {\n  ecmaVersion: 5,\n  sourceType: \"module\"\n});\n\ntestFail(\"import('')\", \"Unexpected token (1:6)\", {\n  ecmaVersion: 5,\n  sourceType: \"module\"\n});\n\ntest(\"new Object\", {\n  type: \"Program\",\n  start: 0,\n  end: 10,\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 10,\n      expression: {\n        type: \"NewExpression\",\n        start: 0,\n        end: 10,\n        callee: {\n          type: \"Identifier\",\n          start: 4,\n          end: 10,\n          name: \"Object\"\n        },\n        arguments: []\n      }\n    }\n  ]\n}, {\n  allowReserved: \"never\"\n});\n\ntest(\"this\\n\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"ThisExpression\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 0\n    }\n  }\n});\n\ntest(\"null\\n\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: null,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 0\n    }\n  }\n});\n\ntest(\"\\n    42\\n\\n\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 4\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 4\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 4,\n      column: 0\n    }\n  }\n});\n\ntest(\"/foobar/\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: /foobar/,\n        regex: {\n          pattern: \"foobar\",\n          flags: \"\"\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      }\n    }\n  ]\n});\n\ntest(\"/[a-z]/g\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: /[a-z]/g,\n        regex: {\n          pattern: \"[a-z]\",\n          flags: \"g\"\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      }\n    }\n  ]\n});\n\ntest(\"(1 + 2 ) * 3\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Literal\",\n            value: 1,\n            loc: {\n              start: {\n                line: 1,\n                column: 1\n              },\n              end: {\n                line: 1,\n                column: 2\n              }\n            }\n          },\n          operator: \"+\",\n          right: {\n            type: \"Literal\",\n            value: 2,\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Literal\",\n          value: 3,\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 12\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 12\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 12\n    }\n  }\n});\n\ntest(\"(1 + 2 ) * 3\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"ParenthesizedExpression\",\n          expression: {\n            type: \"BinaryExpression\",\n            left: {\n              type: \"Literal\",\n              value: 1,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 1\n                },\n                end: {\n                  line: 1,\n                  column: 2\n                }\n              }\n            },\n            operator: \"+\",\n            right: {\n              type: \"Literal\",\n              value: 2,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 5\n                },\n                end: {\n                  line: 1,\n                  column: 6\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 1\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Literal\",\n          value: 3,\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 12\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 12\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 12\n    }\n  }\n}, {\n  locations: true,\n  preserveParens: true\n});\n\ntest(\"(x = 23)\", {\n  body: [\n    {\n      expression: {\n        type: \"ParenthesizedExpression\",\n        expression: {\n          type: \"AssignmentExpression\",\n          operator: \"=\",\n          left: {\n            name: \"x\",\n            type: \"Identifier\",\n          },\n          right: {\n            value: 23,\n            raw: \"23\",\n            type: \"Literal\",\n          },\n        },\n      },\n      type: \"ExpressionStatement\",\n    }\n  ],\n  type: \"Program\",\n}, {preserveParens: true});\n\ntest(\"x = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x = [ ]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x = [ 42 ]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [\n            {\n              type: \"Literal\",\n              value: 42,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 8\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 10\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 10\n    }\n  }\n});\n\ntest(\"x = [ 42, ]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [\n            {\n              type: \"Literal\",\n              value: 42,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 8\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"x = [ ,, 42 ]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [\n            null,\n            null,\n            {\n              type: \"Literal\",\n              value: 42,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 11\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"x = [ 1, 2, 3, ]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [\n            {\n              type: \"Literal\",\n              value: 1,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 7\n                }\n              }\n            },\n            {\n              type: \"Literal\",\n              value: 2,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            {\n              type: \"Literal\",\n              value: 3,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 12\n                },\n                end: {\n                  line: 1,\n                  column: 13\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"x = [ 1, 2,, 3, ]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [\n            {\n              type: \"Literal\",\n              value: 1,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 7\n                }\n              }\n            },\n            {\n              type: \"Literal\",\n              value: 2,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            null,\n            {\n              type: \"Literal\",\n              value: 3,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 14\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n});\n\ntest(\"日本語 = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"日本語\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"T‿ = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"T‿\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"T‌ = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"T‌\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"T‍ = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"T‍\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"ⅣⅡ = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"ⅣⅡ\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"ⅣⅡ = []\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"ⅣⅡ\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        right: {\n          type: \"ArrayExpression\",\n          elements: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x = {}\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x = { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x = { answer: 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"answer\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 14\n                  },\n                  end: {\n                    line: 1,\n                    column: 16\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 18\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 18\n    }\n  }\n});\n\ntest(\"x = { if: 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"if\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 8\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"x = { true: 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"true\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 10\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"x = { false: 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"false\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 11\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 13\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n});\n\ntest(\"x = { null: 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"null\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 10\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"x = { \\\"answer\\\": 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Literal\",\n                value: \"answer\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 16\n                  },\n                  end: {\n                    line: 1,\n                    column: 18\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 20\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 20\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 20\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 20\n    }\n  }\n});\n\ntest(\"x = { x: 1, x: 2 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 7\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 1,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 9\n                  },\n                  end: {\n                    line: 1,\n                    column: 10\n                  }\n                }\n              },\n              kind: \"init\"\n            },\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 13\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 2,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 15\n                  },\n                  end: {\n                    line: 1,\n                    column: 16\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 18\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 18\n    }\n  }\n});\n\ntest(\"x = { get width() { return m_width } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"width\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ReturnStatement\",\n                      argument: {\n                        type: \"Identifier\",\n                        name: \"m_width\",\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 27\n                          },\n                          end: {\n                            line: 1,\n                            column: 34\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 20\n                        },\n                        end: {\n                          line: 1,\n                          column: 34\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 18\n                    },\n                    end: {\n                      line: 1,\n                      column: 36\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 15\n                  },\n                  end: {\n                    line: 1,\n                    column: 36\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 38\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 38\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 38\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 38\n    }\n  }\n});\n\ntest(\"x = { get undef() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"undef\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 18\n                    },\n                    end: {\n                      line: 1,\n                      column: 20\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 15\n                  },\n                  end: {\n                    line: 1,\n                    column: 20\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 22\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"x = { get if() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"if\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 15\n                    },\n                    end: {\n                      line: 1,\n                      column: 17\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 17\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 19\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 19\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 19\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 19\n    }\n  }\n});\n\ntest(\"x = { get true() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"true\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 17\n                    },\n                    end: {\n                      line: 1,\n                      column: 19\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 14\n                  },\n                  end: {\n                    line: 1,\n                    column: 19\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 21\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"x = { get false() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"false\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 18\n                    },\n                    end: {\n                      line: 1,\n                      column: 20\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 15\n                  },\n                  end: {\n                    line: 1,\n                    column: 20\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 22\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"x = { get null() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"null\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 17\n                    },\n                    end: {\n                      line: 1,\n                      column: 19\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 14\n                  },\n                  end: {\n                    line: 1,\n                    column: 19\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 21\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"x = { get \\\"undef\\\"() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Literal\",\n                value: \"undef\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 17\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 20\n                    },\n                    end: {\n                      line: 1,\n                      column: 22\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 17\n                  },\n                  end: {\n                    line: 1,\n                    column: 22\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 24\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n});\n\ntest(\"x = { get 10() {} }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Literal\",\n                value: 10,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              kind: \"get\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 15\n                    },\n                    end: {\n                      line: 1,\n                      column: 17\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 17\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 19\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 19\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 19\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 19\n    }\n  }\n});\n\ntest(\"x = { set width(w) { m_width = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"width\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 16\n                      },\n                      end: {\n                        line: 1,\n                        column: 17\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_width\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 21\n                            },\n                            end: {\n                              line: 1,\n                              column: 28\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 31\n                            },\n                            end: {\n                              line: 1,\n                              column: 32\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 21\n                          },\n                          end: {\n                            line: 1,\n                            column: 32\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 21\n                        },\n                        end: {\n                          line: 1,\n                          column: 32\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 19\n                    },\n                    end: {\n                      line: 1,\n                      column: 34\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 15\n                  },\n                  end: {\n                    line: 1,\n                    column: 34\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 36\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 36\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 36\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 36\n    }\n  }\n});\n\ntest(\"x = { set if(w) { m_if = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"if\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 13\n                      },\n                      end: {\n                        line: 1,\n                        column: 14\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_if\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 18\n                            },\n                            end: {\n                              line: 1,\n                              column: 22\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 25\n                            },\n                            end: {\n                              line: 1,\n                              column: 26\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 18\n                          },\n                          end: {\n                            line: 1,\n                            column: 26\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 18\n                        },\n                        end: {\n                          line: 1,\n                          column: 26\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 16\n                    },\n                    end: {\n                      line: 1,\n                      column: 28\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 28\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 30\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 30\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 30\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 30\n    }\n  }\n});\n\ntest(\"x = { set true(w) { m_true = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"true\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 15\n                      },\n                      end: {\n                        line: 1,\n                        column: 16\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_true\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 20\n                            },\n                            end: {\n                              line: 1,\n                              column: 26\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 29\n                            },\n                            end: {\n                              line: 1,\n                              column: 30\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 20\n                          },\n                          end: {\n                            line: 1,\n                            column: 30\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 20\n                        },\n                        end: {\n                          line: 1,\n                          column: 30\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 18\n                    },\n                    end: {\n                      line: 1,\n                      column: 32\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 14\n                  },\n                  end: {\n                    line: 1,\n                    column: 32\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 34\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 34\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 34\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 34\n    }\n  }\n});\n\ntest(\"x = { set false(w) { m_false = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"false\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 16\n                      },\n                      end: {\n                        line: 1,\n                        column: 17\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_false\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 21\n                            },\n                            end: {\n                              line: 1,\n                              column: 28\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 31\n                            },\n                            end: {\n                              line: 1,\n                              column: 32\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 21\n                          },\n                          end: {\n                            line: 1,\n                            column: 32\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 21\n                        },\n                        end: {\n                          line: 1,\n                          column: 32\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 19\n                    },\n                    end: {\n                      line: 1,\n                      column: 34\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 15\n                  },\n                  end: {\n                    line: 1,\n                    column: 34\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 36\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 36\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 36\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 36\n    }\n  }\n});\n\ntest(\"x = { set null(w) { m_null = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"null\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 15\n                      },\n                      end: {\n                        line: 1,\n                        column: 16\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_null\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 20\n                            },\n                            end: {\n                              line: 1,\n                              column: 26\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 29\n                            },\n                            end: {\n                              line: 1,\n                              column: 30\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 20\n                          },\n                          end: {\n                            line: 1,\n                            column: 30\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 20\n                        },\n                        end: {\n                          line: 1,\n                          column: 30\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 18\n                    },\n                    end: {\n                      line: 1,\n                      column: 32\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 14\n                  },\n                  end: {\n                    line: 1,\n                    column: 32\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 34\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 34\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 34\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 34\n    }\n  }\n});\n\ntest(\"x = { set \\\"null\\\"(w) { m_null = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Literal\",\n                value: \"null\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 16\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 17\n                      },\n                      end: {\n                        line: 1,\n                        column: 18\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_null\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 22\n                            },\n                            end: {\n                              line: 1,\n                              column: 28\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 31\n                            },\n                            end: {\n                              line: 1,\n                              column: 32\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 22\n                          },\n                          end: {\n                            line: 1,\n                            column: 32\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 22\n                        },\n                        end: {\n                          line: 1,\n                          column: 32\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 20\n                    },\n                    end: {\n                      line: 1,\n                      column: 34\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 16\n                  },\n                  end: {\n                    line: 1,\n                    column: 34\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 36\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 36\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 36\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 36\n    }\n  }\n});\n\ntest(\"x = { set 10(w) { m_null = w } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Literal\",\n                value: 10,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              kind: \"set\",\n              value: {\n                type: \"FunctionExpression\",\n                id: null,\n                params: [\n                  {\n                    type: \"Identifier\",\n                    name: \"w\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 13\n                      },\n                      end: {\n                        line: 1,\n                        column: 14\n                      }\n                    }\n                  }\n                ],\n                body: {\n                  type: \"BlockStatement\",\n                  body: [\n                    {\n                      type: \"ExpressionStatement\",\n                      expression: {\n                        type: \"AssignmentExpression\",\n                        operator: \"=\",\n                        left: {\n                          type: \"Identifier\",\n                          name: \"m_null\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 18\n                            },\n                            end: {\n                              line: 1,\n                              column: 24\n                            }\n                          }\n                        },\n                        right: {\n                          type: \"Identifier\",\n                          name: \"w\",\n                          loc: {\n                            start: {\n                              line: 1,\n                              column: 27\n                            },\n                            end: {\n                              line: 1,\n                              column: 28\n                            }\n                          }\n                        },\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 18\n                          },\n                          end: {\n                            line: 1,\n                            column: 28\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 18\n                        },\n                        end: {\n                          line: 1,\n                          column: 28\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 16\n                    },\n                    end: {\n                      line: 1,\n                      column: 30\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 12\n                  },\n                  end: {\n                    line: 1,\n                    column: 30\n                  }\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 32\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 32\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 32\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 32\n    }\n  }\n});\n\ntest(\"x = { get: 42 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"get\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 9\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 42,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 11\n                  },\n                  end: {\n                    line: 1,\n                    column: 13\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 15\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 15\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 15\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 15\n    }\n  }\n});\n\ntest(\"x = { set: 43 }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"ObjectExpression\",\n          properties: [\n            {\n              type: \"Property\",\n              key: {\n                type: \"Identifier\",\n                name: \"set\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 9\n                  }\n                }\n              },\n              value: {\n                type: \"Literal\",\n                value: 43,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 11\n                  },\n                  end: {\n                    line: 1,\n                    column: 13\n                  }\n                }\n              },\n              kind: \"init\"\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 15\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 15\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 15\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 15\n    }\n  }\n});\n\ntest(\"/* block comment */ 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 1,\n            column: 20\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 20\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"42 /*The*/ /*Answer*/\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"42 /*the*/ /*answer*/\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"/* multiline\\ncomment\\nshould\\nbe\\nignored */ 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 5,\n            column: 11\n          },\n          end: {\n            line: 5,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 5,\n          column: 11\n        },\n        end: {\n          line: 5,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 5,\n      column: 13\n    }\n  }\n});\n\ntest(\"/*a\\r\\nb*/ 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 4\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 4\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"/*a\\rb*/ 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 4\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 4\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"/*a\\nb*/ 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 4\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 4\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"/*a\\nc*/ 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 4\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 4\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"// line comment\\n42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 2\n    }\n  }\n});\n\ntest(\"42 // line comment\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 18\n    }\n  }\n});\n\ntest(\"// Hello, world!\\n42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 2\n    }\n  }\n});\n\ntest(\"// Hello, world!\\n\", {\n  type: \"Program\",\n  body: [],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 0\n    }\n  }\n});\n\ntest(\"// Hallo, world!\\n\", {\n  type: \"Program\",\n  body: [],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 0\n    }\n  }\n});\n\ntest(\"//\\n42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 2,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 2,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 2\n    }\n  }\n});\n\ntest(\"//\", {\n  type: \"Program\",\n  body: [],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"// \", {\n  type: \"Program\",\n  body: [],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"/**/42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 4\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"// Hello, world!\\n\\n//   Another hello\\n42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 4,\n            column: 0\n          },\n          end: {\n            line: 4,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 4,\n          column: 0\n        },\n        end: {\n          line: 4,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 4,\n      column: 2\n    }\n  }\n});\n\ntest(\"if (x) { // Some comment\\ndoThat(); }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      consequent: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"doThat\",\n                loc: {\n                  start: {\n                    line: 2,\n                    column: 0\n                  },\n                  end: {\n                    line: 2,\n                    column: 6\n                  }\n                }\n              },\n              arguments: [],\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 8\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 9\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 2,\n            column: 11\n          }\n        }\n      },\n      alternate: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 11\n    }\n  }\n});\n\ntest(\"switch (answer) { case 42: /* perfect */ bingo() }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"SwitchStatement\",\n      discriminant: {\n        type: \"Identifier\",\n        name: \"answer\",\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      cases: [\n        {\n          type: \"SwitchCase\",\n          consequent: [\n            {\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"CallExpression\",\n                callee: {\n                  type: \"Identifier\",\n                  name: \"bingo\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 41\n                    },\n                    end: {\n                      line: 1,\n                      column: 46\n                    }\n                  }\n                },\n                arguments: [],\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 41\n                  },\n                  end: {\n                    line: 1,\n                    column: 48\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 41\n                },\n                end: {\n                  line: 1,\n                  column: 48\n                }\n              }\n            }\n          ],\n          test: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 25\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 48\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 50\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 50\n    }\n  }\n});\n\ntest(\"0\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 0,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 1\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 1\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 1\n    }\n  }\n});\n\ntest(\"3\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 3,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 1\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 1\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 1\n    }\n  }\n});\n\ntest(\"5\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 5,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 1\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 1\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 1\n    }\n  }\n});\n\ntest(\"42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 42,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\".14\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 0.14,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"3.14159\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 3.14159,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"6.02214179e+23\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 6.02214179e+23,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"1.492417830e-10\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 1.49241783e-10,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 15\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 15\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 15\n    }\n  }\n});\n\ntest(\"0x0\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 0,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"0e+100\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 0,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"0xabc\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 2748,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"0xdef\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 3567,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"0X1A\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 26,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 4\n    }\n  }\n});\n\ntest(\"0x10\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 16,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 4\n    }\n  }\n});\n\ntest(\"0x100\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 256,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"0X04\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 4,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 4\n    }\n  }\n});\n\ntest(\"02\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 2,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"012\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 10,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"0012\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: 10,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 4\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"\\\"\\\\n\\\\r\\\\t\\\\v\\\\b\\\\f\\\\\\\\\\\\'\\\\\\\"\\\\0\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"\\n\\r\\t\\u000b\\b\\f\\\\'\\\"\\u0000\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"\\\"\\\\u0061\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"a\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"\\\"\\\\x61\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"a\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\nworld\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\\nworld\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\\\nworld\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Helloworld\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\\\u2028world\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Helloworld\",\n        raw: \"\\\"Hello\\\\\\u2028world\\\"\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\\\u2029world\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Helloworld\",\n        raw: \"\\\"Hello\\\\\\u2029world\\\"\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\02World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\\u0002World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 15\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 15\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 15\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\012World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\\nWorld\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\122World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"HelloRWorld\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\0122World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\\n2World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\312World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"HelloÊWorld\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\412World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello!2World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\812World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello812World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\712World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello92World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\0World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\\u0000World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\\\r\\nworld\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Helloworld\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  }\n});\n\ntest(\"\\\"Hello\\\\1World\\\"\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"Hello\\u0001World\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"var x = /[a-z]/i\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: /[a-z]/i,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 16\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"var x = /[x-z]/i\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: /[x-z]/i,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 16\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"var x = /[a-c]/i\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: /[a-c]/i,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 16\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"var x = /[P QR]/i\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: /[P QR]/i,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 17\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n});\n\ntest(\"var x = /foo\\\\/bar/\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: /foo\\/bar/,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 18\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 18\n    }\n  }\n});\n\ntest(\"var x = /=([^=\\\\s])+/g\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: /=([^=\\s])+/g,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 21\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntestFail(\"var x = /[P QR]/\\\\u0067\", \"Unexpected token (1:16)\");\n\ntest(\"new Button\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"NewExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"Button\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 10\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 10\n    }\n  }\n});\n\ntest(\"new Button()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"NewExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"Button\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 12\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 12\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 12\n    }\n  }\n});\n\ntest(\"new new foo\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"NewExpression\",\n        callee: {\n          type: \"NewExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"new new foo()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"NewExpression\",\n        callee: {\n          type: \"NewExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"new foo().bar()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"NewExpression\",\n            callee: {\n              type: \"Identifier\",\n              name: \"foo\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 4\n                },\n                end: {\n                  line: 1,\n                  column: 7\n                }\n              }\n            },\n            arguments: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 10\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          computed: false,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 15\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 15\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 15\n    }\n  }\n});\n\ntest(\"new foo[bar]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"NewExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          computed: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 12\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 12\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 12\n    }\n  }\n});\n\ntest(\"new foo.bar()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"NewExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          computed: false,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"( new foo).bar()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"NewExpression\",\n            callee: {\n              type: \"Identifier\",\n              name: \"foo\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 9\n                }\n              }\n            },\n            arguments: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 2\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 11\n              },\n              end: {\n                line: 1,\n                column: 14\n              }\n            }\n          },\n          computed: false,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 16\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 16\n    }\n  }\n});\n\ntest(\"foo(bar, baz)\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"foo\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          }\n        },\n        arguments: [\n          {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"baz\",\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 12\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"(    foo  )()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"Identifier\",\n          name: \"foo\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        arguments: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"universe.milkyway\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"milkyway\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n});\n\ntest(\"universe.milkyway.solarsystem\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Identifier\",\n            name: \"universe\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"milkyway\",\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 17\n              }\n            }\n          },\n          computed: false,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"solarsystem\",\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 29\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 29\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n});\n\ntest(\"universe.milkyway.solarsystem.Earth\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"MemberExpression\",\n            object: {\n              type: \"Identifier\",\n              name: \"universe\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 0\n                },\n                end: {\n                  line: 1,\n                  column: 8\n                }\n              }\n            },\n            property: {\n              type: \"Identifier\",\n              name: \"milkyway\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 17\n                }\n              }\n            },\n            computed: false,\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 17\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"solarsystem\",\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 29\n              }\n            }\n          },\n          computed: false,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 29\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"Earth\",\n          loc: {\n            start: {\n              line: 1,\n              column: 30\n            },\n            end: {\n              line: 1,\n              column: 35\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 35\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 35\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 35\n    }\n  }\n});\n\ntest(\"universe[galaxyName, otherUselessName]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"SequenceExpression\",\n          expressions: [\n            {\n              type: \"Identifier\",\n              name: \"galaxyName\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 19\n                }\n              }\n            },\n            {\n              type: \"Identifier\",\n              name: \"otherUselessName\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 37\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 37\n            }\n          }\n        },\n        computed: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 38\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 38\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 38\n    }\n  }\n});\n\ntest(\"universe[galaxyName]\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"galaxyName\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 19\n            }\n          }\n        },\n        computed: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 20\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 20\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 20\n    }\n  }\n});\n\ntest(\"universe[42].galaxies\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Identifier\",\n            name: \"universe\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          property: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          computed: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"galaxies\",\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 21\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"universe(42).galaxies\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"universe\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Literal\",\n              value: 42,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 11\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"galaxies\",\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 21\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"universe(42).galaxies(14, 3, 77).milkyway\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"MemberExpression\",\n            object: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"universe\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 0\n                  },\n                  end: {\n                    line: 1,\n                    column: 8\n                  }\n                }\n              },\n              arguments: [\n                {\n                  type: \"Literal\",\n                  value: 42,\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 9\n                    },\n                    end: {\n                      line: 1,\n                      column: 11\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 0\n                },\n                end: {\n                  line: 1,\n                  column: 12\n                }\n              }\n            },\n            property: {\n              type: \"Identifier\",\n              name: \"galaxies\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 21\n                }\n              }\n            },\n            computed: false,\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 21\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Literal\",\n              value: 14,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 22\n                },\n                end: {\n                  line: 1,\n                  column: 24\n                }\n              }\n            },\n            {\n              type: \"Literal\",\n              value: 3,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 26\n                },\n                end: {\n                  line: 1,\n                  column: 27\n                }\n              }\n            },\n            {\n              type: \"Literal\",\n              value: 77,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 29\n                },\n                end: {\n                  line: 1,\n                  column: 31\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 32\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"milkyway\",\n          loc: {\n            start: {\n              line: 1,\n              column: 33\n            },\n            end: {\n              line: 1,\n              column: 41\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 41\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 41\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 41\n    }\n  }\n});\n\ntest(\"earth.asia.Indonesia.prepareForElection(2014)\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"MemberExpression\",\n            object: {\n              type: \"MemberExpression\",\n              object: {\n                type: \"Identifier\",\n                name: \"earth\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 0\n                  },\n                  end: {\n                    line: 1,\n                    column: 5\n                  }\n                }\n              },\n              property: {\n                type: \"Identifier\",\n                name: \"asia\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 10\n                  }\n                }\n              },\n              computed: false,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 0\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            property: {\n              type: \"Identifier\",\n              name: \"Indonesia\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 11\n                },\n                end: {\n                  line: 1,\n                  column: 20\n                }\n              }\n            },\n            computed: false,\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"prepareForElection\",\n            loc: {\n              start: {\n                line: 1,\n                column: 21\n              },\n              end: {\n                line: 1,\n                column: 39\n              }\n            }\n          },\n          computed: false,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 39\n            }\n          }\n        },\n        arguments: [\n          {\n            type: \"Literal\",\n            value: 2014,\n            loc: {\n              start: {\n                line: 1,\n                column: 40\n              },\n              end: {\n                line: 1,\n                column: 44\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 45\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 45\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 45\n    }\n  }\n});\n\ntest(\"universe.if\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"if\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"universe.true\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"true\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"universe.false\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"false\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"universe.null\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"MemberExpression\",\n        object: {\n          type: \"Identifier\",\n          name: \"universe\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        property: {\n          type: \"Identifier\",\n          name: \"null\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        computed: false,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"x++\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"x--\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"--\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"eval++\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 4\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"eval--\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"--\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 4\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"arguments++\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"arguments\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"arguments--\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"--\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"arguments\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"++x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"--x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"--\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 3\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 3\n    }\n  }\n});\n\ntest(\"++eval\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"--eval\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"--\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"++arguments\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"arguments\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"--arguments\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UpdateExpression\",\n        operator: \"--\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"arguments\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"+x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"+\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"-x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"-\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"~x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"~\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"!x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"!\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 1,\n              column: 2\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 2\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"void x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"void\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"delete x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"delete\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"typeof x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"UnaryExpression\",\n        operator: \"typeof\",\n        prefix: true,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"x * y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x / y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"/\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x % y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"%\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x + y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"+\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x - y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"-\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x << y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"<<\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x >> y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \">>\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x >>> y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \">>>\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x < y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x > y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \">\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x <= y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"<=\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x >= y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \">=\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x in y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"in\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x instanceof y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"instanceof\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"x < y < z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"<\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x == y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"==\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x != y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"!=\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x === y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"===\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x !== y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"!==\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x & y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"&\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x ^ y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"^\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x | y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"|\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"x + y + z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"+\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"+\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x - y + z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"-\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"+\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x + y - z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"+\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"-\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x - y - z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"-\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"-\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x + y * z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"+\",\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          operator: \"*\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x + y / z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"+\",\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          operator: \"/\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x - y % z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"-\",\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          operator: \"%\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x * y * z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"*\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x * y / z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"*\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"/\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x * y % z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"*\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"%\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x % y * z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"%\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x << y << z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"<<\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        operator: \"<<\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 10\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"x | y | z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"|\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"|\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x & y & z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"&\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"&\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x ^ y ^ z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"^\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"^\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x & y | z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"&\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        operator: \"|\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x | y ^ z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"|\",\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          operator: \"^\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x | y & z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"|\",\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          operator: \"&\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x || y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"LogicalExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"||\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x && y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"LogicalExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"&&\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"x || y || z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"LogicalExpression\",\n        left: {\n          type: \"LogicalExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"||\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        operator: \"||\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 10\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"x && y && z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"LogicalExpression\",\n        left: {\n          type: \"LogicalExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"&&\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        operator: \"&&\",\n        right: {\n          type: \"Identifier\",\n          name: \"z\",\n          loc: {\n            start: {\n              line: 1,\n              column: 10\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"x || y && z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"LogicalExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"||\",\n        right: {\n          type: \"LogicalExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          operator: \"&&\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 10\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"x || y ^ z\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"LogicalExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        operator: \"||\",\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          operator: \"^\",\n          right: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 10\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 10\n    }\n  }\n});\n\ntest(\"y ? 1 : 2\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"ConditionalExpression\",\n        test: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        consequent: {\n          type: \"Literal\",\n          value: 1,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        alternate: {\n          type: \"Literal\",\n          value: 2,\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x && y ? 1 : 2\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"ConditionalExpression\",\n        test: {\n          type: \"LogicalExpression\",\n          left: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          operator: \"&&\",\n          right: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        consequent: {\n          type: \"Literal\",\n          value: 1,\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        alternate: {\n          type: \"Literal\",\n          value: 2,\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"x = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 6\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"eval = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"eval\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 4\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"arguments = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"arguments\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 12\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"x *= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"*=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x /= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"/=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x %= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"%=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x += 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"+=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x -= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"-=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x <<= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"<<=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"x >>= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \">>=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"x >>>= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \">>>=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"x &= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"&=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x ^= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"^=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"x |= 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"|=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 1\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 5\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"{ foo }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 2\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"{ doThis(); doThat(); }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"CallExpression\",\n            callee: {\n              type: \"Identifier\",\n              name: \"doThis\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 2\n                },\n                end: {\n                  line: 1,\n                  column: 8\n                }\n              }\n            },\n            arguments: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 2\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"CallExpression\",\n            callee: {\n              type: \"Identifier\",\n              name: \"doThat\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 12\n                },\n                end: {\n                  line: 1,\n                  column: 18\n                }\n              }\n            },\n            arguments: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 12\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 12\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 23\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 23\n    }\n  }\n});\n\ntest(\"{}\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 2\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 2\n    }\n  }\n});\n\ntest(\"var x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n});\n\ntest(\"var await\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"await\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"var x, y;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 7\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"var x = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 10\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 10\n    }\n  }\n});\n\ntest(\"var eval = 42, arguments = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"eval\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 11\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"arguments\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 27\n              },\n              end: {\n                line: 1,\n                column: 29\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 29\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n});\n\ntest(\"var x = 14, y = 3, z = 1977\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 14,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 12\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 3,\n            loc: {\n              start: {\n                line: 1,\n                column: 16\n              },\n              end: {\n                line: 1,\n                column: 17\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 12\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 19\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 1977,\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 27\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 27\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 27\n    }\n  }\n});\n\ntest(\"var implements, interface, package\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"implements\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 14\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"interface\",\n            loc: {\n              start: {\n                line: 1,\n                column: 16\n              },\n              end: {\n                line: 1,\n                column: 25\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 16\n            },\n            end: {\n              line: 1,\n              column: 25\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"package\",\n            loc: {\n              start: {\n                line: 1,\n                column: 27\n              },\n              end: {\n                line: 1,\n                column: 34\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 27\n            },\n            end: {\n              line: 1,\n              column: 34\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 34\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 34\n    }\n  }\n});\n\ntest(\"var private, protected, public, static\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"private\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 11\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"protected\",\n            loc: {\n              start: {\n                line: 1,\n                column: 13\n              },\n              end: {\n                line: 1,\n                column: 22\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 22\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"public\",\n            loc: {\n              start: {\n                line: 1,\n                column: 24\n              },\n              end: {\n                line: 1,\n                column: 30\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 24\n            },\n            end: {\n              line: 1,\n              column: 30\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"static\",\n            loc: {\n              start: {\n                line: 1,\n                column: 32\n              },\n              end: {\n                line: 1,\n                column: 38\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 32\n            },\n            end: {\n              line: 1,\n              column: 38\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 38\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 38\n    }\n  }\n});\n\ntest(\";\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"EmptyStatement\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 1\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 1\n    }\n  }\n});\n\ntest(\"x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 1\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 1\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 1\n    }\n  }\n});\n\ntest(\"x, y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"SequenceExpression\",\n        expressions: [\n          {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 3\n              },\n              end: {\n                line: 1,\n                column: 4\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 4\n    }\n  }\n});\n\ntest(\"\\\\u0061\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Identifier\",\n        name: \"a\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 6\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 6\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 6\n    }\n  }\n});\n\ntest(\"a\\\\u0061\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Identifier\",\n        name: \"aa\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 7\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 7\n    }\n  }\n});\n\ntest(\"if (morning) goodMorning()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Identifier\",\n        name: \"morning\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      consequent: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"goodMorning\",\n            loc: {\n              start: {\n                line: 1,\n                column: 13\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 26\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 26\n          }\n        }\n      },\n      alternate: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 26\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 26\n    }\n  }\n});\n\ntest(\"if (morning) (function(){})\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Identifier\",\n        name: \"morning\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      consequent: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"FunctionExpression\",\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 24\n              },\n              end: {\n                line: 1,\n                column: 26\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 14\n            },\n            end: {\n              line: 1,\n              column: 26\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 27\n          }\n        }\n      },\n      alternate: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 27\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 27\n    }\n  }\n});\n\ntest(\"if (morning) var x = 0;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Identifier\",\n        name: \"morning\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      consequent: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 17\n                },\n                end: {\n                  line: 1,\n                  column: 18\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 0,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 22\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 17\n              },\n              end: {\n                line: 1,\n                column: 22\n              }\n            }\n          }\n        ],\n        kind: \"var\",\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 23\n          }\n        }\n      },\n      alternate: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 23\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 23\n    }\n  }\n});\n\ntest(\"if (morning) function a(){}\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Identifier\",\n        name: \"morning\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      consequent: {\n        type: \"FunctionDeclaration\",\n        id: {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {\n              line: 1,\n              column: 22\n            },\n            end: {\n              line: 1,\n              column: 23\n            }\n          }\n        },\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 25\n            },\n            end: {\n              line: 1,\n              column: 27\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 27\n          }\n        }\n      },\n      alternate: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 27\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 27\n    }\n  }\n});\n\ntest(\"if (morning) goodMorning(); else goodDay()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Identifier\",\n        name: \"morning\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      consequent: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"goodMorning\",\n            loc: {\n              start: {\n                line: 1,\n                column: 13\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 26\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 27\n          }\n        }\n      },\n      alternate: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"goodDay\",\n            loc: {\n              start: {\n                line: 1,\n                column: 33\n              },\n              end: {\n                line: 1,\n                column: 40\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 33\n            },\n            end: {\n              line: 1,\n              column: 42\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 33\n          },\n          end: {\n            line: 1,\n            column: 42\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 42\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 42\n    }\n  }\n});\n\ntest(\"do keep(); while (true)\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"DoWhileStatement\",\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"keep\",\n            loc: {\n              start: {\n                line: 1,\n                column: 3\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 3\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 3\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 18\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 23\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 23\n    }\n  }\n});\n\ntest(\"do keep(); while (true);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"DoWhileStatement\",\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"keep\",\n            loc: {\n              start: {\n                line: 1,\n                column: 3\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 3\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 3\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 18\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n});\n\ntest(\"do { x++; y--; } while (x < 10)\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"DoWhileStatement\",\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"UpdateExpression\",\n              operator: \"++\",\n              prefix: false,\n              argument: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 5\n                  },\n                  end: {\n                    line: 1,\n                    column: 6\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 5\n                },\n                end: {\n                  line: 1,\n                  column: 8\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"UpdateExpression\",\n              operator: \"--\",\n              prefix: false,\n              argument: {\n                type: \"Identifier\",\n                name: \"y\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 11\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 10\n                },\n                end: {\n                  line: 1,\n                  column: 13\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 10\n              },\n              end: {\n                line: 1,\n                column: 14\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 3\n          },\n          end: {\n            line: 1,\n            column: 16\n          }\n        }\n      },\n      test: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 24\n            },\n            end: {\n              line: 1,\n              column: 25\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Literal\",\n          value: 10,\n          loc: {\n            start: {\n              line: 1,\n              column: 28\n            },\n            end: {\n              line: 1,\n              column: 30\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 24\n          },\n          end: {\n            line: 1,\n            column: 30\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 31\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 31\n    }\n  }\n});\n\ntest(\"{ do { } while (false);false }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"DoWhileStatement\",\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 5\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          test: {\n            type: \"Literal\",\n            value: false,\n            loc: {\n              start: {\n                line: 1,\n                column: 16\n              },\n              end: {\n                line: 1,\n                column: 21\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 23\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Literal\",\n            value: false,\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 28\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 23\n            },\n            end: {\n              line: 1,\n              column: 28\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 30\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 30\n    }\n  }\n});\n\ntest(\"while (true) doSomething()\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"doSomething\",\n            loc: {\n              start: {\n                line: 1,\n                column: 13\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          arguments: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 26\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 26\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 26\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 26\n    }\n  }\n});\n\ntest(\"while (x < 10) { x++; y--; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Literal\",\n          value: 10,\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"UpdateExpression\",\n              operator: \"++\",\n              prefix: false,\n              argument: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 17\n                  },\n                  end: {\n                    line: 1,\n                    column: 18\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 17\n                },\n                end: {\n                  line: 1,\n                  column: 20\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 17\n              },\n              end: {\n                line: 1,\n                column: 21\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"UpdateExpression\",\n              operator: \"--\",\n              prefix: false,\n              argument: {\n                type: \"Identifier\",\n                name: \"y\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 22\n                  },\n                  end: {\n                    line: 1,\n                    column: 23\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 22\n                },\n                end: {\n                  line: 1,\n                  column: 25\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 22\n              },\n              end: {\n                line: 1,\n                column: 26\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 15\n          },\n          end: {\n            line: 1,\n            column: 28\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 28\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 28\n    }\n  }\n});\n\ntest(\"for(;;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: null,\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"for(;;){}\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: null,\n      test: null,\n      update: null,\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"for(x = 0;;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 0,\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 12\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"for(var x = 0;;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 8\n                },\n                end: {\n                  line: 1,\n                  column: 9\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 0,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 12\n                },\n                end: {\n                  line: 1,\n                  column: 13\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          }\n        ],\n        kind: \"var\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 16\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n});\n\ntest(\"for(var x = 0, y = 1;;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 8\n                },\n                end: {\n                  line: 1,\n                  column: 9\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 0,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 12\n                },\n                end: {\n                  line: 1,\n                  column: 13\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 15\n                },\n                end: {\n                  line: 1,\n                  column: 16\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 1,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 19\n                },\n                end: {\n                  line: 1,\n                  column: 20\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          }\n        ],\n        kind: \"var\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 20\n          }\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 23\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n});\n\ntest(\"for(x = 0; x < 42;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 0,\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      test: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 11\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 19\n          },\n          end: {\n            line: 1,\n            column: 20\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 20\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 20\n    }\n  }\n});\n\ntest(\"for(x = 0; x < 42; x++);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 0,\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      test: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 11\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      update: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 20\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 19\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 23\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n});\n\ntest(\"for(x = 0; x < 42; x++) process(x);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        right: {\n          type: \"Literal\",\n          value: 0,\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 9\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      test: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        operator: \"<\",\n        right: {\n          type: \"Literal\",\n          value: 42,\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 11\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      update: {\n        type: \"UpdateExpression\",\n        operator: \"++\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 20\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 19\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"process\",\n            loc: {\n              start: {\n                line: 1,\n                column: 24\n              },\n              end: {\n                line: 1,\n                column: 31\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 32\n                },\n                end: {\n                  line: 1,\n                  column: 33\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 24\n            },\n            end: {\n              line: 1,\n              column: 34\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 24\n          },\n          end: {\n            line: 1,\n            column: 35\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 35\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 35\n    }\n  }\n});\n\ntest(\"for(x in list) process(x);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForInStatement\",\n      left: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"list\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"process\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 22\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 23\n                },\n                end: {\n                  line: 1,\n                  column: 24\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 25\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 15\n          },\n          end: {\n            line: 1,\n            column: 26\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 26\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 26\n    }\n  }\n});\n\ntest(\"for (var x in list) process(x);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForInStatement\",\n      left: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            init: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          }\n        ],\n        kind: \"var\",\n        loc: {\n          start: {\n            line: 1,\n            column: 5\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"list\",\n        loc: {\n          start: {\n            line: 1,\n            column: 14\n          },\n          end: {\n            line: 1,\n            column: 18\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"process\",\n            loc: {\n              start: {\n                line: 1,\n                column: 20\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 28\n                },\n                end: {\n                  line: 1,\n                  column: 29\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 20\n            },\n            end: {\n              line: 1,\n              column: 30\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 20\n          },\n          end: {\n            line: 1,\n            column: 31\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 31\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 31\n    }\n  }\n});\ntestFail(\"var x; for (x = 0 in list) process(x);\", \"Assigning to rvalue (1:12)\")\ntestFail(\"'use strict'; for (var x = 0 in list) process(x);\", \"for-in loop variable declaration may not have an initializer (1:19)\")\ntestFail(\"for (var [x] = 0 in list) process(x);\", \"for-in loop variable declaration may not have an initializer (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (var {x} = 0 in list) process(x);\", \"for-in loop variable declaration may not have an initializer (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (var x = 42 in list) process(x);\", \"for-in loop variable declaration may not have an initializer (1:5)\", { ecmaVersion: 6 })\n\ntestFail(\"for (let.bar of list);\", \"The left-hand side of a for-of loop may not start with 'let'. (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (let().bar of list);\", \"The left-hand side of a for-of loop may not start with 'let'. (1:5)\", { ecmaVersion: 6 })\ntestFail(\"for (let``.bar of list);\", \"The left-hand side of a for-of loop may not start with 'let'. (1:5)\", { ecmaVersion: 6 })\ntestFail(\"'use strict'; for (let in list);\", \"The keyword 'let' is reserved (1:19)\")\n\ntest(\"for (var x = 42 in list) process(x);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForInStatement\",\n      left: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 42,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 15\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 15\n              }\n            }\n          }\n        ],\n        kind: \"var\",\n        loc: {\n          start: {\n            line: 1,\n            column: 5\n          },\n          end: {\n            line: 1,\n            column: 15\n          }\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"list\",\n        loc: {\n          start: {\n            line: 1,\n            column: 19\n          },\n          end: {\n            line: 1,\n            column: 23\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"process\",\n            loc: {\n              start: {\n                line: 1,\n                column: 25\n              },\n              end: {\n                line: 1,\n                column: 32\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 33\n                },\n                end: {\n                  line: 1,\n                  column: 34\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 25\n            },\n            end: {\n              line: 1,\n              column: 35\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 25\n          },\n          end: {\n            line: 1,\n            column: 36\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 36\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 36\n    }\n  }\n}, { ecmaVersion: 8, locations: true });\n\ntest(\"for (var i = function() { return 10 in [] } in list) process(x);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForInStatement\",\n      left: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"i\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            init: {\n              type: \"FunctionExpression\",\n              id: null,\n              params: [],\n              body: {\n                type: \"BlockStatement\",\n                body: [\n                  {\n                    type: \"ReturnStatement\",\n                    argument: {\n                      type: \"BinaryExpression\",\n                      left: {\n                        type: \"Literal\",\n                        value: 10,\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 33\n                          },\n                          end: {\n                            line: 1,\n                            column: 35\n                          }\n                        }\n                      },\n                      operator: \"in\",\n                      right: {\n                        type: \"ArrayExpression\",\n                        elements: [],\n                        loc: {\n                          start: {\n                            line: 1,\n                            column: 39\n                          },\n                          end: {\n                            line: 1,\n                            column: 41\n                          }\n                        }\n                      },\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 33\n                        },\n                        end: {\n                          line: 1,\n                          column: 41\n                        }\n                      }\n                    },\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 26\n                      },\n                      end: {\n                        line: 1,\n                        column: 41\n                      }\n                    }\n                  }\n                ],\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 24\n                  },\n                  end: {\n                    line: 1,\n                    column: 43\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 43\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 43\n              }\n            }\n          }\n        ],\n        kind: \"var\",\n        loc: {\n          start: {\n            line: 1,\n            column: 5\n          },\n          end: {\n            line: 1,\n            column: 43\n          }\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"list\",\n        loc: {\n          start: {\n            line: 1,\n            column: 47\n          },\n          end: {\n            line: 1,\n            column: 51\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"process\",\n            loc: {\n              start: {\n                line: 1,\n                column: 53\n              },\n              end: {\n                line: 1,\n                column: 60\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 61\n                },\n                end: {\n                  line: 1,\n                  column: 62\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 53\n            },\n            end: {\n              line: 1,\n              column: 63\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 53\n          },\n          end: {\n            line: 1,\n            column: 64\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 64\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 64\n    }\n  }\n}, { ecmaVersion: 8, locations: true });\n\ntest(\"while (true) { continue; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ContinueStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 26\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 26\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 26\n    }\n  }\n});\n\ntest(\"while (true) { continue }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ContinueStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 23\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 25\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 25\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 25\n    }\n  }\n});\n\ntest(\"done: while (true) { continue done }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"WhileStatement\",\n        test: {\n          type: \"Literal\",\n          value: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ContinueStatement\",\n              label: {\n                type: \"Identifier\",\n                name: \"done\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 30\n                  },\n                  end: {\n                    line: 1,\n                    column: 34\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 34\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 36\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 36\n          }\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"done\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 36\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 36\n    }\n  }\n});\n\ntest(\"done: while (true) { continue done; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"WhileStatement\",\n        test: {\n          type: \"Literal\",\n          value: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ContinueStatement\",\n              label: {\n                type: \"Identifier\",\n                name: \"done\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 30\n                  },\n                  end: {\n                    line: 1,\n                    column: 34\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 35\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 37\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 37\n          }\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"done\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 37\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 37\n    }\n  }\n});\n\ntest(\"while (true) { break }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"BreakStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"done: while (true) { break done }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"WhileStatement\",\n        test: {\n          type: \"Literal\",\n          value: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"BreakStatement\",\n              label: {\n                type: \"Identifier\",\n                name: \"done\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 27\n                  },\n                  end: {\n                    line: 1,\n                    column: 31\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 31\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 33\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 33\n          }\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"done\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 33\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 33\n    }\n  }\n});\n\ntest(\"done: while (true) { break done; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"WhileStatement\",\n        test: {\n          type: \"Literal\",\n          value: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 13\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"BreakStatement\",\n              label: {\n                type: \"Identifier\",\n                name: \"done\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 27\n                  },\n                  end: {\n                    line: 1,\n                    column: 31\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 32\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 34\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 34\n          }\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"done\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 34\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 34\n    }\n  }\n});\n\ntest(\"done: switch (a) { default: break done }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 40,\n  \"body\": [\n    {\n      \"type\": \"LabeledStatement\",\n      \"start\": 0,\n      \"end\": 40,\n      \"body\": {\n        \"type\": \"SwitchStatement\",\n        \"start\": 6,\n        \"end\": 40,\n        \"discriminant\": {\n          \"type\": \"Identifier\",\n          \"start\": 14,\n          \"end\": 15,\n          \"name\": \"a\"\n        },\n        \"cases\": [\n          {\n            \"type\": \"SwitchCase\",\n            \"start\": 19,\n            \"end\": 38,\n            \"consequent\": [\n              {\n                \"type\": \"BreakStatement\",\n                \"start\": 28,\n                \"end\": 38,\n                \"label\": {\n                  \"type\": \"Identifier\",\n                  \"start\": 34,\n                  \"end\": 38,\n                  \"name\": \"done\"\n                }\n              }\n            ],\n            \"test\": null\n          }\n        ]\n      },\n      \"label\": {\n        \"type\": \"Identifier\",\n        \"start\": 0,\n        \"end\": 4,\n        \"name\": \"done\"\n      }\n    }\n  ]\n});\n\ntest(\"target1: target2: while (true) { continue target1; }\", {});\ntest(\"target1: target2: target3: while (true) { continue target1; }\", {});\n\ntest(\"(function(){ return })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 19\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 21\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"(function(){ return; })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 20\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 22\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 23\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 23\n    }\n  }\n});\n\ntest(\"(function(){ return x; })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 20\n                  },\n                  end: {\n                    line: 1,\n                    column: 21\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 22\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 24\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 25\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 25\n    }\n  }\n});\n\ntest(\"(function(){ return x * y })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: {\n                type: \"BinaryExpression\",\n                left: {\n                  type: \"Identifier\",\n                  name: \"x\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 20\n                    },\n                    end: {\n                      line: 1,\n                      column: 21\n                    }\n                  }\n                },\n                operator: \"*\",\n                right: {\n                  type: \"Identifier\",\n                  name: \"y\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 24\n                    },\n                    end: {\n                      line: 1,\n                      column: 25\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 20\n                  },\n                  end: {\n                    line: 1,\n                    column: 25\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 25\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 27\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 27\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 28\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 28\n    }\n  }\n});\n\ntest(\"with (x) foo = bar\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WithStatement\",\n      object: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"AssignmentExpression\",\n          operator: \"=\",\n          left: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 12\n              }\n            }\n          },\n          right: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 18\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 18\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 18\n    }\n  }\n});\n\ntest(\"with (x) foo = bar;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WithStatement\",\n      object: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"AssignmentExpression\",\n          operator: \"=\",\n          left: {\n            type: \"Identifier\",\n            name: \"foo\",\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 12\n              }\n            }\n          },\n          right: {\n            type: \"Identifier\",\n            name: \"bar\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 18\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 19\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 19\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 19\n    }\n  }\n});\n\n// Test that innocuous string that evaluates to `use strict` is not promoted to\n// Use Strict directive.\ntest(\"'use\\\\x20strict'; with (x) foo = bar;\", {});\n\n// Test that innocuous string that evaluates to `use strict` is not promoted to\n// Use Strict directive.\ntest('\"use\\\\x20strict\"; with (x) foo = bar;', {});\n\ntest(\"with (x) { foo = bar }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WithStatement\",\n      object: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"AssignmentExpression\",\n              operator: \"=\",\n              left: {\n                type: \"Identifier\",\n                name: \"foo\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 11\n                  },\n                  end: {\n                    line: 1,\n                    column: 14\n                  }\n                }\n              },\n              right: {\n                type: \"Identifier\",\n                name: \"bar\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 17\n                  },\n                  end: {\n                    line: 1,\n                    column: 20\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 11\n                },\n                end: {\n                  line: 1,\n                  column: 20\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 11\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 22\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 22\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 22\n    }\n  }\n});\n\ntest(\"switch (x) {}\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"SwitchStatement\",\n      discriminant: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 1,\n            column: 9\n          }\n        }\n      },\n      cases: [],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 13\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 13\n    }\n  }\n});\n\ntest(\"switch (answer) { case 42: hi(); break; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"SwitchStatement\",\n      discriminant: {\n        type: \"Identifier\",\n        name: \"answer\",\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      cases: [\n        {\n          type: \"SwitchCase\",\n          consequent: [\n            {\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"CallExpression\",\n                callee: {\n                  type: \"Identifier\",\n                  name: \"hi\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 27\n                    },\n                    end: {\n                      line: 1,\n                      column: 29\n                    }\n                  }\n                },\n                arguments: [],\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 27\n                  },\n                  end: {\n                    line: 1,\n                    column: 31\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 27\n                },\n                end: {\n                  line: 1,\n                  column: 32\n                }\n              }\n            },\n            {\n              type: \"BreakStatement\",\n              label: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 33\n                },\n                end: {\n                  line: 1,\n                  column: 39\n                }\n              }\n            }\n          ],\n          test: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 25\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 39\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 41\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 41\n    }\n  }\n});\n\ntest(\"switch (answer) { case 42: hi(); break; default: break }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"SwitchStatement\",\n      discriminant: {\n        type: \"Identifier\",\n        name: \"answer\",\n        loc: {\n          start: {\n            line: 1,\n            column: 8\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      cases: [\n        {\n          type: \"SwitchCase\",\n          consequent: [\n            {\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"CallExpression\",\n                callee: {\n                  type: \"Identifier\",\n                  name: \"hi\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 27\n                    },\n                    end: {\n                      line: 1,\n                      column: 29\n                    }\n                  }\n                },\n                arguments: [],\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 27\n                  },\n                  end: {\n                    line: 1,\n                    column: 31\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 27\n                },\n                end: {\n                  line: 1,\n                  column: 32\n                }\n              }\n            },\n            {\n              type: \"BreakStatement\",\n              label: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 33\n                },\n                end: {\n                  line: 1,\n                  column: 39\n                }\n              }\n            }\n          ],\n          test: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 25\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 39\n            }\n          }\n        },\n        {\n          type: \"SwitchCase\",\n          consequent: [\n            {\n              type: \"BreakStatement\",\n              label: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 49\n                },\n                end: {\n                  line: 1,\n                  column: 54\n                }\n              }\n            }\n          ],\n          test: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 40\n            },\n            end: {\n              line: 1,\n              column: 54\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 56\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 56\n    }\n  }\n});\n\ntest(\"start: for (;;) break start\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"ForStatement\",\n        init: null,\n        test: null,\n        update: null,\n        body: {\n          type: \"BreakStatement\",\n          label: {\n            type: \"Identifier\",\n            name: \"start\",\n            loc: {\n              start: {\n                line: 1,\n                column: 22\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 16\n            },\n            end: {\n              line: 1,\n              column: 27\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 27\n          }\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"start\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 27\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 27\n    }\n  }\n});\n\ntest(\"start: while (true) break start\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"WhileStatement\",\n        test: {\n          type: \"Literal\",\n          value: true,\n          loc: {\n            start: {\n              line: 1,\n              column: 14\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        },\n        body: {\n          type: \"BreakStatement\",\n          label: {\n            type: \"Identifier\",\n            name: \"start\",\n            loc: {\n              start: {\n                line: 1,\n                column: 26\n              },\n              end: {\n                line: 1,\n                column: 31\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 20\n            },\n            end: {\n              line: 1,\n              column: 31\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 31\n          }\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"start\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 31\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 31\n    }\n  }\n});\n\ntest(\"throw x;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ThrowStatement\",\n      argument: {\n        type: \"Identifier\",\n        name: \"x\",\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 8\n    }\n  }\n});\n\ntest(\"throw x * y\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ThrowStatement\",\n      argument: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\",\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 7\n            }\n          }\n        },\n        operator: \"*\",\n        right: {\n          type: \"Identifier\",\n          name: \"y\",\n          loc: {\n            start: {\n              line: 1,\n              column: 10\n            },\n            end: {\n              line: 1,\n              column: 11\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 11\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 11\n    }\n  }\n});\n\ntest(\"throw { message: \\\"Error\\\" }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ThrowStatement\",\n      argument: {\n        type: \"ObjectExpression\",\n        properties: [\n          {\n            type: \"Property\",\n            key: {\n              type: \"Identifier\",\n              name: \"message\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 8\n                },\n                end: {\n                  line: 1,\n                  column: 15\n                }\n              }\n            },\n            value: {\n              type: \"Literal\",\n              value: \"Error\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 17\n                },\n                end: {\n                  line: 1,\n                  column: 24\n                }\n              }\n            },\n            kind: \"init\"\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 6\n          },\n          end: {\n            line: 1,\n            column: 26\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 26\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 26\n    }\n  }\n});\n\ntest(\"try { } catch (e) { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      handler: {\n          type: \"CatchClause\",\n          param: {\n            type: \"Identifier\",\n            name: \"e\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 16\n              }\n            }\n          },\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 21\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          }\n        }\n      ,\n      finalizer: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  }\n});\n\ntest(\"try { } catch (eval) { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      handler:\n        {\n          type: \"CatchClause\",\n          param: {\n            type: \"Identifier\",\n            name: \"eval\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 19\n              }\n            }\n          },\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 21\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 24\n            }\n          }\n        }\n      ,\n      finalizer: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n});\n\ntest(\"try { } catch (arguments) { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      handler:\n        {\n          type: \"CatchClause\",\n          param: {\n            type: \"Identifier\",\n            name: \"arguments\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          body: {\n            type: \"BlockStatement\",\n            body: [],\n            loc: {\n              start: {\n                line: 1,\n                column: 26\n              },\n              end: {\n                line: 1,\n                column: 29\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 29\n            }\n          }\n        }\n      ,\n      finalizer: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n});\n\ntest(\"try { } catch (e) { say(e) }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      handler:\n        {\n          type: \"CatchClause\",\n          param: {\n            type: \"Identifier\",\n            name: \"e\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 16\n              }\n            }\n          },\n          body: {\n            type: \"BlockStatement\",\n            body: [\n              {\n                type: \"ExpressionStatement\",\n                expression: {\n                  type: \"CallExpression\",\n                  callee: {\n                    type: \"Identifier\",\n                    name: \"say\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 20\n                      },\n                      end: {\n                        line: 1,\n                        column: 23\n                      }\n                    }\n                  },\n                  arguments: [\n                    {\n                      type: \"Identifier\",\n                      name: \"e\",\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 24\n                        },\n                        end: {\n                          line: 1,\n                          column: 25\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 20\n                    },\n                    end: {\n                      line: 1,\n                      column: 26\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 20\n                  },\n                  end: {\n                    line: 1,\n                    column: 26\n                  }\n                }\n              }\n            ],\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 28\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 28\n            }\n          }\n        }\n      ,\n      finalizer: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 28\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 28\n    }\n  }\n});\n\ntest(\"try { } finally { cleanup(stuff) }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 7\n          }\n        }\n      },\n      handler: null,\n      finalizer: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"cleanup\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 18\n                  },\n                  end: {\n                    line: 1,\n                    column: 25\n                  }\n                }\n              },\n              arguments: [\n                {\n                  type: \"Identifier\",\n                  name: \"stuff\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 26\n                    },\n                    end: {\n                      line: 1,\n                      column: 31\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 18\n                },\n                end: {\n                  line: 1,\n                  column: 32\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 32\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 16\n          },\n          end: {\n            line: 1,\n            column: 34\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 34\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 34\n    }\n  }\n});\n\ntest(\"try { doThat(); } catch (e) { say(e) }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"doThat\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              arguments: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 14\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 6\n              },\n              end: {\n                line: 1,\n                column: 15\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      handler:\n        {\n          type: \"CatchClause\",\n          param: {\n            type: \"Identifier\",\n            name: \"e\",\n            loc: {\n              start: {\n                line: 1,\n                column: 25\n              },\n              end: {\n                line: 1,\n                column: 26\n              }\n            }\n          },\n          body: {\n            type: \"BlockStatement\",\n            body: [\n              {\n                type: \"ExpressionStatement\",\n                expression: {\n                  type: \"CallExpression\",\n                  callee: {\n                    type: \"Identifier\",\n                    name: \"say\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 30\n                      },\n                      end: {\n                        line: 1,\n                        column: 33\n                      }\n                    }\n                  },\n                  arguments: [\n                    {\n                      type: \"Identifier\",\n                      name: \"e\",\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 34\n                        },\n                        end: {\n                          line: 1,\n                          column: 35\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 30\n                    },\n                    end: {\n                      line: 1,\n                      column: 36\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 30\n                  },\n                  end: {\n                    line: 1,\n                    column: 36\n                  }\n                }\n              }\n            ],\n            loc: {\n              start: {\n                line: 1,\n                column: 28\n              },\n              end: {\n                line: 1,\n                column: 38\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 38\n            }\n          }\n        }\n      ,\n      finalizer: null,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 38\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 38\n    }\n  }\n});\n\ntest(\"try { doThat(); } catch (e) { say(e) } finally { cleanup(stuff) }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"TryStatement\",\n      block: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"doThat\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              arguments: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 14\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 6\n              },\n              end: {\n                line: 1,\n                column: 15\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      handler:\n        {\n          type: \"CatchClause\",\n          param: {\n            type: \"Identifier\",\n            name: \"e\",\n            loc: {\n              start: {\n                line: 1,\n                column: 25\n              },\n              end: {\n                line: 1,\n                column: 26\n              }\n            }\n          },\n          body: {\n            type: \"BlockStatement\",\n            body: [\n              {\n                type: \"ExpressionStatement\",\n                expression: {\n                  type: \"CallExpression\",\n                  callee: {\n                    type: \"Identifier\",\n                    name: \"say\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 30\n                      },\n                      end: {\n                        line: 1,\n                        column: 33\n                      }\n                    }\n                  },\n                  arguments: [\n                    {\n                      type: \"Identifier\",\n                      name: \"e\",\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 34\n                        },\n                        end: {\n                          line: 1,\n                          column: 35\n                        }\n                      }\n                    }\n                  ],\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 30\n                    },\n                    end: {\n                      line: 1,\n                      column: 36\n                    }\n                  }\n                },\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 30\n                  },\n                  end: {\n                    line: 1,\n                    column: 36\n                  }\n                }\n              }\n            ],\n            loc: {\n              start: {\n                line: 1,\n                column: 28\n              },\n              end: {\n                line: 1,\n                column: 38\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 38\n            }\n          }\n        }\n      ,\n      finalizer: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"cleanup\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 49\n                  },\n                  end: {\n                    line: 1,\n                    column: 56\n                  }\n                }\n              },\n              arguments: [\n                {\n                  type: \"Identifier\",\n                  name: \"stuff\",\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 57\n                    },\n                    end: {\n                      line: 1,\n                      column: 62\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 49\n                },\n                end: {\n                  line: 1,\n                  column: 63\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 49\n              },\n              end: {\n                line: 1,\n                column: 63\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 47\n          },\n          end: {\n            line: 1,\n            column: 65\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 65\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 65\n    }\n  }\n});\n\ntest(\"debugger;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"DebuggerStatement\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n});\n\ntest(\"function hello() { sayHi(); }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"hello\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"sayHi\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 19\n                  },\n                  end: {\n                    line: 1,\n                    column: 24\n                  }\n                }\n              },\n              arguments: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 19\n                },\n                end: {\n                  line: 1,\n                  column: 26\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 19\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 17\n          },\n          end: {\n            line: 1,\n            column: 29\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n});\n\ntest(\"function eval() { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"eval\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 16\n          },\n          end: {\n            line: 1,\n            column: 19\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 19\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 19\n    }\n  }\n});\n\ntest(\"function arguments() { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"arguments\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 18\n          }\n        }\n      },\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 21\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n});\n\ntest(\"function test(t, t) { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"test\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"t\",\n          loc: {\n            start: {\n              line: 1,\n              column: 14\n            },\n            end: {\n              line: 1,\n              column: 15\n            }\n          }\n        },\n        {\n          type: \"Identifier\",\n          name: \"t\",\n          loc: {\n            start: {\n              line: 1,\n              column: 17\n            },\n            end: {\n              line: 1,\n              column: 18\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 20\n          },\n          end: {\n            line: 1,\n            column: 23\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 23\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 23\n    }\n  }\n});\n\ntest(\"(function test(t, t) { })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: {\n          type: \"Identifier\",\n          name: \"test\",\n          loc: {\n            start: {\n              line: 1,\n              column: 10\n            },\n            end: {\n              line: 1,\n              column: 14\n            }\n          }\n        },\n        params: [\n          {\n            type: \"Identifier\",\n            name: \"t\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 16\n              }\n            }\n          },\n          {\n            type: \"Identifier\",\n            name: \"t\",\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 19\n              }\n            }\n          }\n        ],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 21\n            },\n            end: {\n              line: 1,\n              column: 24\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 25\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 25\n    }\n  }\n});\n\ntest(\"function eval() { function inner() { \\\"use strict\\\" } }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"eval\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"FunctionDeclaration\",\n            id: {\n              type: \"Identifier\",\n              name: \"inner\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 27\n                },\n                end: {\n                  line: 1,\n                  column: 32\n                }\n              }\n            },\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [\n                {\n                  type: \"ExpressionStatement\",\n                  expression: {\n                    type: \"Literal\",\n                    value: \"use strict\",\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 37\n                      },\n                      end: {\n                        line: 1,\n                        column: 49\n                      }\n                    }\n                  },\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 37\n                    },\n                    end: {\n                      line: 1,\n                      column: 49\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 35\n                },\n                end: {\n                  line: 1,\n                  column: 51\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 51\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 16\n          },\n          end: {\n            line: 1,\n            column: 53\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 53\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 53\n    }\n  }\n});\n\ntest(\"function hello(a) { sayHi(); }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"hello\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"sayHi\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 20\n                  },\n                  end: {\n                    line: 1,\n                    column: 25\n                  }\n                }\n              },\n              arguments: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 20\n                },\n                end: {\n                  line: 1,\n                  column: 27\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 20\n              },\n              end: {\n                line: 1,\n                column: 28\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 18\n          },\n          end: {\n            line: 1,\n            column: 30\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 30\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 30\n    }\n  }\n});\n\ntest(\"function hello(a, b) { sayHi(); }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"hello\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        },\n        {\n          type: \"Identifier\",\n          name: \"b\",\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 19\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"CallExpression\",\n              callee: {\n                type: \"Identifier\",\n                name: \"sayHi\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 23\n                  },\n                  end: {\n                    line: 1,\n                    column: 28\n                  }\n                }\n              },\n              arguments: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 23\n                },\n                end: {\n                  line: 1,\n                  column: 30\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 31\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 21\n          },\n          end: {\n            line: 1,\n            column: 33\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 33\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 33\n    }\n  }\n});\n\ntest(\"function hello(...rest) { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"hello\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      params: [{\n        type: \"RestElement\",\n        argument: {\n          type: \"Identifier\",\n          name: \"rest\",\n          loc: {\n            start: {\n              line: 1,\n              column: 18\n            },\n            end: {\n              line: 1,\n              column: 22\n            }\n          }\n        }\n      }],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 24\n          },\n          end: {\n            line: 1,\n            column: 27\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 27\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 27\n    }\n  }\n}, {\n  ecmaVersion: 6,\n  locations: true\n});\n\ntest(\"function hello(a, ...rest) { }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {\n        type: \"Identifier\",\n        name: \"hello\",\n        loc: {\n          start: {\n            line: 1,\n            column: 9\n          },\n          end: {\n            line: 1,\n            column: 14\n          }\n        }\n      },\n      params: [\n        {\n          type: \"Identifier\",\n          name: \"a\",\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 16\n            }\n          }\n        },\n        {\n          type: \"RestElement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"rest\",\n            loc: {\n              start: {\n                line: 1,\n                column: 21\n              },\n              end: {\n                line: 1,\n                column: 25\n              }\n            }\n          }\n        }\n      ],\n      body: {\n        type: \"BlockStatement\",\n        body: [],\n        loc: {\n          start: {\n            line: 1,\n            column: 27\n          },\n          end: {\n            line: 1,\n            column: 30\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 30\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 30\n    }\n  }\n}, {\n  ecmaVersion: 6,\n  locations: true\n});\n\ntest(\"var hi = function() { sayHi() };\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"hi\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          init: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [\n                {\n                  type: \"ExpressionStatement\",\n                  expression: {\n                    type: \"CallExpression\",\n                    callee: {\n                      type: \"Identifier\",\n                      name: \"sayHi\",\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 22\n                        },\n                        end: {\n                          line: 1,\n                          column: 27\n                        }\n                      }\n                    },\n                    arguments: [],\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 22\n                      },\n                      end: {\n                        line: 1,\n                        column: 29\n                      }\n                    }\n                  },\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 22\n                    },\n                    end: {\n                      line: 1,\n                      column: 29\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 20\n                },\n                end: {\n                  line: 1,\n                  column: 31\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 31\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 31\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 32\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 32\n    }\n  }\n});\n\ntest(\"var hi = function (...r) { sayHi() };\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"hi\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          init: {\n            type: \"FunctionExpression\",\n            id: null,\n            params: [{\n              type: \"RestElement\",\n              argument: {\n                type: \"Identifier\",\n                name: \"r\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 22\n                  },\n                  end: {\n                    line: 1,\n                    column: 23\n                  }\n                }\n              }\n            }],\n            body: {\n              type: \"BlockStatement\",\n              body: [\n                {\n                  type: \"ExpressionStatement\",\n                  expression: {\n                    type: \"CallExpression\",\n                    callee: {\n                      type: \"Identifier\",\n                      name: \"sayHi\",\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 27\n                        },\n                        end: {\n                          line: 1,\n                          column: 32\n                        }\n                      }\n                    },\n                    arguments: [],\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 27\n                      },\n                      end: {\n                        line: 1,\n                        column: 34\n                      }\n                    }\n                  },\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 27\n                    },\n                    end: {\n                      line: 1,\n                      column: 34\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 25\n                },\n                end: {\n                  line: 1,\n                  column: 36\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 36\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 36\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 37\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 37\n    }\n  }\n}, {\n  ecmaVersion: 6,\n  locations: true\n});\n\ntest(\"var hi = function eval() { };\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"hi\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          init: {\n            type: \"FunctionExpression\",\n            id: {\n              type: \"Identifier\",\n              name: \"eval\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 18\n                },\n                end: {\n                  line: 1,\n                  column: 22\n                }\n              }\n            },\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 25\n                },\n                end: {\n                  line: 1,\n                  column: 28\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 28\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 28\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n});\n\ntest(\"var hi = function arguments() { };\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"hi\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 6\n              }\n            }\n          },\n          init: {\n            type: \"FunctionExpression\",\n            id: {\n              type: \"Identifier\",\n              name: \"arguments\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 18\n                },\n                end: {\n                  line: 1,\n                  column: 27\n                }\n              }\n            },\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 30\n                },\n                end: {\n                  line: 1,\n                  column: 33\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 33\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 33\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 34\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 34\n    }\n  }\n});\n\ntest(\"var hello = function hi() { sayHi() };\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"hello\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 9\n              }\n            }\n          },\n          init: {\n            type: \"FunctionExpression\",\n            id: {\n              type: \"Identifier\",\n              name: \"hi\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 21\n                },\n                end: {\n                  line: 1,\n                  column: 23\n                }\n              }\n            },\n            params: [],\n            body: {\n              type: \"BlockStatement\",\n              body: [\n                {\n                  type: \"ExpressionStatement\",\n                  expression: {\n                    type: \"CallExpression\",\n                    callee: {\n                      type: \"Identifier\",\n                      name: \"sayHi\",\n                      loc: {\n                        start: {\n                          line: 1,\n                          column: 28\n                        },\n                        end: {\n                          line: 1,\n                          column: 33\n                        }\n                      }\n                    },\n                    arguments: [],\n                    loc: {\n                      start: {\n                        line: 1,\n                        column: 28\n                      },\n                      end: {\n                        line: 1,\n                        column: 35\n                      }\n                    }\n                  },\n                  loc: {\n                    start: {\n                      line: 1,\n                      column: 28\n                    },\n                    end: {\n                      line: 1,\n                      column: 35\n                    }\n                  }\n                }\n              ],\n              loc: {\n                start: {\n                  line: 1,\n                  column: 26\n                },\n                end: {\n                  line: 1,\n                  column: 37\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 12\n              },\n              end: {\n                line: 1,\n                column: 37\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 37\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 38\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 38\n    }\n  }\n});\n\ntest(\"(function(){})\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 14\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 14\n    }\n  }\n});\n\ntest(\"{ x\\n++y }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 2\n              },\n              end: {\n                line: 1,\n                column: 3\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"UpdateExpression\",\n            operator: \"++\",\n            prefix: true,\n            argument: {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 2\n                },\n                end: {\n                  line: 2,\n                  column: 3\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 3\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 2,\n              column: 0\n            },\n            end: {\n              line: 2,\n              column: 3\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 5\n    }\n  }\n});\n\ntest(\"{ x\\n--y }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 2\n              },\n              end: {\n                line: 1,\n                column: 3\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"UpdateExpression\",\n            operator: \"--\",\n            prefix: true,\n            argument: {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 2\n                },\n                end: {\n                  line: 2,\n                  column: 3\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 3\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 2,\n              column: 0\n            },\n            end: {\n              line: 2,\n              column: 3\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 5\n    }\n  }\n});\n\ntest(\"var x /* comment */;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        }\n      ],\n      kind: \"var\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 20\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 20\n    }\n  }\n});\n\ntest(\"{ var x = 14, y = 3\\nz; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"VariableDeclaration\",\n          declarations: [\n            {\n              type: \"VariableDeclarator\",\n              id: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 6\n                  },\n                  end: {\n                    line: 1,\n                    column: 7\n                  }\n                }\n              },\n              init: {\n                type: \"Literal\",\n                value: 14,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 10\n                  },\n                  end: {\n                    line: 1,\n                    column: 12\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 6\n                },\n                end: {\n                  line: 1,\n                  column: 12\n                }\n              }\n            },\n            {\n              type: \"VariableDeclarator\",\n              id: {\n                type: \"Identifier\",\n                name: \"y\",\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 14\n                  },\n                  end: {\n                    line: 1,\n                    column: 15\n                  }\n                }\n              },\n              init: {\n                type: \"Literal\",\n                value: 3,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 18\n                  },\n                  end: {\n                    line: 1,\n                    column: 19\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 1,\n                  column: 14\n                },\n                end: {\n                  line: 1,\n                  column: 19\n                }\n              }\n            }\n          ],\n          kind: \"var\",\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 19\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 1\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 2,\n              column: 0\n            },\n            end: {\n              line: 2,\n              column: 2\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 4\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 4\n    }\n  }\n});\n\ntest(\"while (true) { continue\\nthere; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ContinueStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 23\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"there\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 5\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 6\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 2,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 8\n    }\n  }\n});\n\ntest(\"while (true) { continue // Comment\\nthere; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ContinueStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 23\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"there\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 5\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 6\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 2,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 8\n    }\n  }\n});\n\ntest(\"while (true) { continue /* Multiline\\nComment */there; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"ContinueStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 23\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"there\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 10\n                },\n                end: {\n                  line: 2,\n                  column: 15\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 10\n              },\n              end: {\n                line: 2,\n                column: 16\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 2,\n            column: 18\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 18\n    }\n  }\n});\n\ntest(\"while (true) { break\\nthere; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"BreakStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"there\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 5\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 6\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 2,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 8\n    }\n  }\n});\n\ntest(\"while (true) { break // Comment\\nthere; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"BreakStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"there\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 5\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 6\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 2,\n            column: 8\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 8\n    }\n  }\n});\n\ntest(\"while (true) { break /* Multiline\\nComment */there; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"WhileStatement\",\n      test: {\n        type: \"Literal\",\n        value: true,\n        loc: {\n          start: {\n            line: 1,\n            column: 7\n          },\n          end: {\n            line: 1,\n            column: 11\n          }\n        }\n      },\n      body: {\n        type: \"BlockStatement\",\n        body: [\n          {\n            type: \"BreakStatement\",\n            label: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          {\n            type: \"ExpressionStatement\",\n            expression: {\n              type: \"Identifier\",\n              name: \"there\",\n              loc: {\n                start: {\n                  line: 2,\n                  column: 10\n                },\n                end: {\n                  line: 2,\n                  column: 15\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 2,\n                column: 10\n              },\n              end: {\n                line: 2,\n                column: 16\n              }\n            }\n          }\n        ],\n        loc: {\n          start: {\n            line: 1,\n            column: 13\n          },\n          end: {\n            line: 2,\n            column: 18\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 18\n    }\n  }\n});\n\ntest(\"(function(){ return\\nx; })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 19\n                }\n              }\n            },\n            {\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 2,\n                    column: 0\n                  },\n                  end: {\n                    line: 2,\n                    column: 1\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 2\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 2,\n              column: 4\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 2,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 5\n    }\n  }\n});\n\ntest(\"(function(){ return // Comment\\nx; })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 19\n                }\n              }\n            },\n            {\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 2,\n                    column: 0\n                  },\n                  end: {\n                    line: 2,\n                    column: 1\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 2,\n                  column: 0\n                },\n                end: {\n                  line: 2,\n                  column: 2\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 2,\n              column: 4\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 2,\n            column: 4\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 5\n    }\n  }\n});\n\ntest(\"(function(){ return/* Multiline\\nComment */x; })\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: [\n            {\n              type: \"ReturnStatement\",\n              argument: null,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 13\n                },\n                end: {\n                  line: 1,\n                  column: 19\n                }\n              }\n            },\n            {\n              type: \"ExpressionStatement\",\n              expression: {\n                type: \"Identifier\",\n                name: \"x\",\n                loc: {\n                  start: {\n                    line: 2,\n                    column: 10\n                  },\n                  end: {\n                    line: 2,\n                    column: 11\n                  }\n                }\n              },\n              loc: {\n                start: {\n                  line: 2,\n                  column: 10\n                },\n                end: {\n                  line: 2,\n                  column: 12\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 11\n            },\n            end: {\n              line: 2,\n              column: 14\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 2,\n            column: 14\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 15\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 15\n    }\n  }\n});\n\ntest(\"{ throw error\\nerror; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ThrowStatement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"error\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"error\",\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 2,\n              column: 0\n            },\n            end: {\n              line: 2,\n              column: 6\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 8\n    }\n  }\n});\n\ntest(\"{ throw error// Comment\\nerror; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ThrowStatement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"error\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"error\",\n            loc: {\n              start: {\n                line: 2,\n                column: 0\n              },\n              end: {\n                line: 2,\n                column: 5\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 2,\n              column: 0\n            },\n            end: {\n              line: 2,\n              column: 6\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 8\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 8\n    }\n  }\n});\n\ntest(\"{ throw error/* Multiline\\nComment */error; }\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: [\n        {\n          type: \"ThrowStatement\",\n          argument: {\n            type: \"Identifier\",\n            name: \"error\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 2\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        {\n          type: \"ExpressionStatement\",\n          expression: {\n            type: \"Identifier\",\n            name: \"error\",\n            loc: {\n              start: {\n                line: 2,\n                column: 10\n              },\n              end: {\n                line: 2,\n                column: 15\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 2,\n              column: 10\n            },\n            end: {\n              line: 2,\n              column: 16\n            }\n          }\n        }\n      ],\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 18\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 18\n    }\n  }\n});\n\ntest(\"\", {\n  type: \"Program\",\n  body: [],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 0\n    }\n  }\n});\n\ntest(\"foo: if (true) break foo;\", {\n  type: \"Program\",\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 25\n    }\n  },\n  body: [\n    {\n      type: \"LabeledStatement\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 25\n        }\n      },\n      body: {\n        type: \"IfStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 5\n          },\n          end: {\n            line: 1,\n            column: 25\n          }\n        },\n        test: {\n          type: \"Literal\",\n          loc: {\n            start: {\n              line: 1,\n              column: 9\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          },\n          value: true\n        },\n        consequent: {\n          type: \"BreakStatement\",\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 25\n            }\n          },\n          label: {\n            type: \"Identifier\",\n            loc: {\n              start: {\n                line: 1,\n                column: 21\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            },\n            name: \"foo\"\n          }\n        },\n        alternate: null\n      },\n      label: {\n        type: \"Identifier\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 3\n          }\n        },\n        name: \"foo\"\n      }\n    }\n  ]\n});\n\ntest(\"a: { b: switch(x) {} }\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 22,\n  \"body\": [\n    {\n      \"type\": \"LabeledStatement\",\n      \"start\": 0,\n      \"end\": 22,\n      \"body\": {\n        \"type\": \"BlockStatement\",\n        \"start\": 3,\n        \"end\": 22,\n        \"body\": [\n          {\n            \"type\": \"LabeledStatement\",\n            \"start\": 5,\n            \"end\": 20,\n            \"body\": {\n              \"type\": \"SwitchStatement\",\n              \"start\": 8,\n              \"end\": 20,\n              \"discriminant\": {\n                \"type\": \"Identifier\",\n                \"start\": 15,\n                \"end\": 16,\n                \"name\": \"x\"\n              },\n              \"cases\": []\n            },\n            \"label\": {\n              \"type\": \"Identifier\",\n              \"start\": 5,\n              \"end\": 6,\n              \"name\": \"b\"\n            }\n          }\n        ]\n      },\n      \"label\": {\n        \"type\": \"Identifier\",\n        \"start\": 0,\n        \"end\": 1,\n        \"name\": \"a\"\n      }\n    }\n  ]\n});\n\ntest(\"(function () {\\n 'use strict';\\n '\\0';\\n}())\", {\n  type: \"Program\",\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 4,\n      column: 4\n    }\n  },\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 4,\n          column: 4\n        }\n      },\n      expression: {\n        type: \"CallExpression\",\n        loc: {\n          start: {\n            line: 1,\n            column: 1\n          },\n          end: {\n            line: 4,\n            column: 3\n          }\n        },\n        callee: {\n          type: \"FunctionExpression\",\n          loc: {\n            start: {\n              line: 1,\n              column: 1\n            },\n            end: {\n              line: 4,\n              column: 1\n            }\n          },\n          id: null,\n          params: [],\n          body: {\n            type: \"BlockStatement\",\n            loc: {\n              start: {\n                line: 1,\n                column: 13\n              },\n              end: {\n                line: 4,\n                column: 1\n              }\n            },\n            body: [\n              {\n                type: \"ExpressionStatement\",\n                loc: {\n                  start: {\n                    line: 2,\n                    column: 1\n                  },\n                  end: {\n                    line: 2,\n                    column: 14\n                  }\n                },\n                expression: {\n                  type: \"Literal\",\n                  loc: {\n                    start: {\n                      line: 2,\n                      column: 1\n                    },\n                    end: {\n                      line: 2,\n                      column: 13\n                    }\n                  },\n                  value: \"use strict\"\n                }\n              },\n              {\n                type: \"ExpressionStatement\",\n                loc: {\n                  start: {\n                    line: 3,\n                    column: 1\n                  },\n                  end: {\n                    line: 3,\n                    column: 5\n                  }\n                },\n                expression: {\n                  type: \"Literal\",\n                  loc: {\n                    start: {\n                      line: 3,\n                      column: 1\n                    },\n                    end: {\n                      line: 3,\n                      column: 4\n                    }\n                  },\n                  value: \"\\u0000\"\n                }\n              }\n            ]\n          }\n        },\n        arguments: [],\n      }\n    }\n  ]\n});\n\ntest(\"123..toString(10)\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Literal\",\n            value: 123\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"toString\"\n          },\n          computed: false,\n        },\n        arguments: [\n          {\n            type: \"Literal\",\n            value: 10\n          }\n        ],\n      }\n    }\n  ]\n});\n\ntest(\"123.+2\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Literal\",\n          value: 123\n        },\n        operator: \"+\",\n        right: {\n          type: \"Literal\",\n          value: 2\n        },\n      }\n    }\n  ]\n});\n\ntest(\"a\\u2028b\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Identifier\",\n        name: \"a\"\n      }\n    },\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Identifier\",\n        name: \"b\"\n      }\n    }\n  ]\n});\n\ntest(\"'a\\\\u0026b'\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"a\\u0026b\"\n      }\n    }\n  ]\n});\n\ntest(\"foo: 10; foo: 20;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"Literal\",\n          value: 10,\n          raw: \"10\"\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"foo\"\n      }\n    },\n    {\n      type: \"LabeledStatement\",\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"Literal\",\n          value: 20,\n          raw: \"20\"\n        }\n      },\n      label: {\n        type: \"Identifier\",\n        name: \"foo\"\n      }\n    }\n  ]\n});\n\ntest(\"if(1)/  foo/\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"IfStatement\",\n      test: {\n        type: \"Literal\",\n        value: 1,\n        raw: \"1\"\n      },\n      consequent: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"Literal\",\n          raw: \"/  foo/\"\n        }\n      },\n      alternate: null\n    }\n  ]\n});\n\ntest(\"price_9̶9̶_89\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Identifier\",\n        name: \"price_9̶9̶_89\",\n      }\n    }\n  ]\n});\n\n// `\\0` is valid even in strict mode\ntest(\"function hello() { 'use strict'; \\\"\\\\0\\\"; }\", {});\n\n// option tests\n\ntest(\"var a = 1;\", {\n  type: \"Program\",\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 10\n    },\n    source: \"test.js\"\n  },\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 10\n        },\n        source: \"test.js\"\n      },\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 9\n            },\n            source: \"test.js\"\n          },\n          id: {\n            type: \"Identifier\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              },\n              source: \"test.js\"\n            },\n            name: \"a\"\n          },\n          init: {\n            type: \"Literal\",\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 9\n              },\n              source: \"test.js\"\n            },\n            value: 1,\n            raw: \"1\"\n          }\n        }\n      ],\n      kind: \"var\"\n    }\n  ]\n}, {\n  locations: true,\n  sourceFile: \"test.js\"\n});\n\ntest(\"a.in / b\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Identifier\",\n            name: \"a\"\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"in\"\n          },\n          computed: false\n        },\n        operator: \"/\",\n        right: {\n          type: \"Identifier\",\n          name: \"b\"\n        }\n      }\n    }\n  ]\n});\n\n// A number of slash-disambiguation corner cases\ntest(\"return {} / 2\", {}, {allowReturnOutsideFunction: true});\ntest(\"return\\n{}\\n/foo/\", {}, {allowReturnOutsideFunction: true});\ntest(\"function f() {super.foo()}\", {}, {allowSuperOutsideMethod: true, allowReserved: true});\ntest(\"+{} / 2\", {});\ntest(\"{}\\n/foo/\", {});\ntest(\"x++\\n{}\\n/foo/\", {});\ntest(\"{{}\\n/foo/}\", {});\ntest(\"while (1) /foo/\", {});\ntest(\"while (1) {} /foo/\", {});\ntest(\"(1) / 2\", {});\ntest(\"({a: [1]}+[]) / 2\", {});\ntest(\"{[1]}\\n/foo/\", {});\ntest(\"switch(a) { case 1: {}\\n/foo/ }\", {});\ntest(\"({1: {} / 2})\", {});\ntest(\"+x++ / 2\", {});\ntest(\"foo.in\\n{}\\n/foo/\", {});\ntest(\"var x = function f() {} / 3;\", {});\ntest(\"+function f() {} / 3;\", {});\ntest(\"foo: function x() {} /regexp/\", {});\ntest(\"x = {foo: function x() {} / divide}\", {});\ntest(\"foo; function f() {} /regexp/\", {});\ntest(\"{function f() {} /regexp/}\", {});\ntest(\"function fn() {return\\nfunction foo() {}\\n/42/}\", {});\ntest(\"var x\\n/foo/\", {});\n\ntest(\"{}/=/\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"BlockStatement\",\n      body: []\n    },\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        raw: \"/=/\"\n      }\n    }\n  ]\n});\n\ntest(\"foo <!--bar\\n+baz\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"Identifier\",\n          name: \"foo\"\n        },\n        operator: \"+\",\n        right: {\n          type: \"Identifier\",\n          name: \"baz\"\n        }\n      }\n    }\n  ]\n});\n\ntest(\"x = y-->10;\\n --> nothing\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"AssignmentExpression\",\n        operator: \"=\",\n        left: {\n          type: \"Identifier\",\n          name: \"x\"\n        },\n        right: {\n          type: \"BinaryExpression\",\n          left: {\n            type: \"UpdateExpression\",\n            operator: \"--\",\n            prefix: false,\n            argument: {\n              type: \"Identifier\",\n              name: \"y\"\n            }\n          },\n          operator: \">\",\n          right: {\n            type: \"Literal\",\n            value: 10\n          }\n        }\n      }\n    }\n  ]\n});\n\ntest(\"'use strict';\\nobject.static();\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: \"use strict\",\n        raw: \"'use strict'\"\n      }\n    },\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"CallExpression\",\n        callee: {\n          type: \"MemberExpression\",\n          object: {\n            type: \"Identifier\",\n            name: \"object\"\n          },\n          property: {\n            type: \"Identifier\",\n            name: \"static\"\n          },\n          computed: false\n        },\n        arguments: []\n      }\n    }\n  ]\n});\n\n// Failure tests\n\ntestFail(\"{\",\n         \"Unexpected token (1:1)\");\n\ntestFail(\"}\",\n         \"Unexpected token (1:0)\");\n\ntestFail(\"3ea\",\n         \"Invalid number (1:0)\");\n\ntestFail(\"3in []\",\n         \"Identifier directly after number (1:1)\");\n\ntestFail(\"3e\",\n         \"Invalid number (1:0)\");\n\ntestFail(\"3e+\",\n         \"Invalid number (1:0)\");\n\ntestFail(\"3e-\",\n         \"Invalid number (1:0)\");\n\ntestFail(\"3x\",\n         \"Identifier directly after number (1:1)\");\n\ntestFail(\"3x0\",\n         \"Identifier directly after number (1:1)\");\n\ntestFail(\"0x\",\n         \"Expected number in radix 16 (1:2)\");\n\ntestFail(\"'use strict'; 09\",\n         \"Invalid number (1:14)\");\n\ntestFail(\"'use strict'; 018\",\n         \"Invalid number (1:14)\");\n\ntestFail(\"01a\",\n         \"Identifier directly after number (1:2)\");\n\ntestFail(\"3in[]\",\n         \"Identifier directly after number (1:1)\");\n\ntestFail(\"0x3in[]\",\n         \"Identifier directly after number (1:3)\");\n\ntestFail(\"\\\"Hello\\nWorld\\\"\",\n         \"Unterminated string constant (1:0)\");\n\ntestFail(\"x\\\\\",\n         \"Expecting Unicode escape sequence \\\\uXXXX (1:2)\");\n\ntestFail(\"x\\\\u005c\",\n         \"Invalid Unicode escape (1:1)\");\n\ntestFail(\"x\\\\u002a\",\n         \"Invalid Unicode escape (1:1)\");\n\ntestFail(\"/\",\n         \"Unterminated regular expression (1:1)\");\n\ntestFail(\"/test\",\n         \"Unterminated regular expression (1:1)\");\n\ntestFail(\"var x = /[a-z]/\\\\ux\",\n         \"Bad character escape sequence (1:17)\");\n\ntestFail(\"3 = 4\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"func() = 4\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"(1 + 1) = 10\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"1++\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"1--\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"++1\",\n         \"Assigning to rvalue (1:2)\");\n\ntestFail(\"--1\",\n         \"Assigning to rvalue (1:2)\");\n\ntestFail(\"for((1 + 1) in list) process(x);\",\n         \"Assigning to rvalue (1:4)\");\n\ntestFail(\"[\",\n         \"Unexpected token (1:1)\");\n\ntestFail(\"[,\",\n         \"Unexpected token (1:2)\");\n\ntestFail(\"1 + {\",\n         \"Unexpected token (1:5)\");\n\ntestFail(\"1 + { t:t \",\n         \"Unexpected token (1:10)\");\n\ntestFail(\"1 + { t:t,\",\n         \"Unexpected token (1:10)\");\n\ntestFail(\"var x = /\\n/\",\n         \"Unterminated regular expression (1:9)\");\n\ntestFail(\"var x = \\\"\\n\",\n         \"Unterminated string constant (1:8)\");\n\ntestFail(\"var if = 42\",\n         \"Unexpected keyword 'if' (1:4)\");\n\ntestFail(\"i + 2 = 42\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"+i = 42\",\n         \"Assigning to rvalue (1:0)\");\n\ntestFail(\"1 + (\",\n         \"Unexpected token (1:5)\");\n\ntestFail(\"\\n\\n\\n{\",\n         \"Unexpected token (4:1)\");\n\ntestFail(\"\\n/* Some multiline\\ncomment */\\n)\",\n         \"Unexpected token (4:0)\");\n\ntestFail(\"{ set 1 }\",\n         \"Unexpected token (1:6)\");\n\ntestFail(\"{ get 2 }\",\n         \"Unexpected token (1:6)\");\n\ntestFail(\"({ set: s(if) { } })\",\n         \"Unexpected token (1:10)\");\n\ntestFail(\"({ set s(.) { } })\",\n         \"Unexpected token (1:9)\");\n\ntestFail(\"({ set: s() { } })\",\n         \"Unexpected token (1:12)\");\n\ntestFail(\"({ set: s(a, b) { } })\",\n         \"Unexpected token (1:16)\");\n\ntestFail(\"({ get: g(d) { } })\",\n         \"Unexpected token (1:13)\");\n\ntestFail(\"({ get i() { }, i: 42 })\",\n         \"Redefinition of property (1:16)\");\n\ntestFail(\"({ i: 42, get i() { } })\",\n         \"Redefinition of property (1:14)\");\n\ntestFail(\"({ set i(x) { }, i: 42 })\",\n         \"Redefinition of property (1:17)\");\n\ntestFail(\"({ i: 42, set i(x) { } })\",\n         \"Redefinition of property (1:14)\");\n\ntestFail(\"({ get i() { }, get i() { } })\",\n         \"Redefinition of property (1:20)\");\n\ntestFail(\"({ set i(x) { }, set i(x) { } })\",\n         \"Redefinition of property (1:21)\");\n\ntestFail(\"'use strict'; ({ __proto__: 1, __proto__: 2 })\",\n         \"Redefinition of property (1:31)\");\n\ntestFail(\"function t(...) { }\",\n         \"Unexpected token (1:11)\");\n\ntestFail(\"function t(...) { }\",\n         \"Unexpected token (1:14)\",\n         { ecmaVersion: 6 });\n\ntestFail(\"function t(...rest, b) { }\",\n         \"Comma is not permitted after the rest element (1:18)\",\n         { ecmaVersion: 6 });\n\ntestFail(\"function t(if) { }\",\n         \"Unexpected keyword 'if' (1:11)\");\n\ntestFail(\"function t(true) { }\",\n         \"Unexpected keyword 'true' (1:11)\");\n\ntestFail(\"function t(false) { }\",\n         \"Unexpected keyword 'false' (1:11)\");\n\ntestFail(\"function t(null) { }\",\n         \"Unexpected keyword 'null' (1:11)\");\n\ntestFail(\"function null() { }\",\n         \"Unexpected keyword 'null' (1:9)\");\n\ntestFail(\"function true() { }\",\n         \"Unexpected keyword 'true' (1:9)\");\n\ntestFail(\"function false() { }\",\n         \"Unexpected keyword 'false' (1:9)\");\n\ntestFail(\"function if() { }\",\n         \"Unexpected keyword 'if' (1:9)\");\n\ntestFail(\"a b;\",\n         \"Unexpected token (1:2)\");\n\ntestFail(\"if.a;\",\n         \"Unexpected token (1:2)\");\n\ntestFail(\"a if;\",\n         \"Unexpected token (1:2)\");\n\ntestFail(\"a class;\",\n         \"Unexpected token (1:2)\");\n\ntestFail(\"break\\n\",\n         \"Unsyntactic break (1:0)\");\n\ntestFail(\"break 1;\",\n         \"Unexpected token (1:6)\");\n\ntestFail(\"continue\\n\",\n         \"Unsyntactic continue (1:0)\");\n\ntestFail(\"continue 2;\",\n         \"Unexpected token (1:9)\");\n\ntestFail(\"throw\",\n         \"Unexpected token (1:5)\");\n\ntestFail(\"throw;\",\n         \"Unexpected token (1:5)\");\n\ntestFail(\"for (var i, i2 in {});\",\n         \"Unexpected token (1:15)\");\n\ntestFail(\"for ((i in {}));\",\n         \"Unexpected token (1:14)\");\n\ntestFail(\"for (i + 1 in {});\",\n         \"Assigning to rvalue (1:5)\");\n\ntestFail(\"for (+i in {});\",\n         \"Assigning to rvalue (1:5)\");\n\ntestFail(\"if(false)\",\n         \"Unexpected token (1:9)\");\n\ntestFail(\"if(false) doThis(); else\",\n         \"Unexpected token (1:24)\");\n\ntestFail(\"do\",\n         \"Unexpected token (1:2)\");\n\ntestFail(\"while(false)\",\n         \"Unexpected token (1:12)\");\n\ntestFail(\"for(;;)\",\n         \"Unexpected token (1:7)\");\n\ntestFail(\"with(x)\",\n         \"Unexpected token (1:7)\");\n\ntestFail(\"try { }\",\n         \"Missing catch or finally clause (1:0)\");\n\ntestFail(\"‿ = 10\",\n         \"Unexpected character '‿' (1:0)\");\n\ntestFail(\"if(true) let a = 1;\",\n         \"Unexpected token (1:13)\");\n\ntestFail(\"switch (c) { default: default: }\",\n         \"Multiple default clauses (1:22)\");\n\ntestFail(\"new X().\\\"s\\\"\",\n         \"Unexpected token (1:8)\");\n\ntestFail(\"/*\",\n         \"Unterminated comment (1:0)\");\n\ntestFail(\"/*\\n\\n\\n\",\n         \"Unterminated comment (1:0)\");\n\ntestFail(\"/**\",\n         \"Unterminated comment (1:0)\");\n\ntestFail(\"/*\\n\\n*\",\n         \"Unterminated comment (1:0)\");\n\ntestFail(\"/*hello\",\n         \"Unterminated comment (1:0)\");\n\ntestFail(\"/*hello  *\",\n         \"Unterminated comment (1:0)\");\n\ntestFail(\"\\n]\",\n         \"Unexpected token (2:0)\");\n\ntestFail(\"\\r]\",\n         \"Unexpected token (2:0)\");\n\ntestFail(\"\\r\\n]\",\n         \"Unexpected token (2:0)\");\n\ntestFail(\"\\n\\r]\",\n         \"Unexpected token (3:0)\");\n\ntestFail(\"//\\r\\n]\",\n         \"Unexpected token (2:0)\");\n\ntestFail(\"//\\n\\r]\",\n         \"Unexpected token (3:0)\");\n\ntestFail(\"/a\\\\\\n/\",\n         \"Unterminated regular expression (1:1)\");\n\ntestFail(\"//\\r \\n]\",\n         \"Unexpected token (3:0)\");\n\ntestFail(\"/*\\r\\n*/]\",\n         \"Unexpected token (2:2)\");\n\ntestFail(\"/*\\n\\r*/]\",\n         \"Unexpected token (3:2)\");\n\ntestFail(\"/*\\r \\n*/]\",\n         \"Unexpected token (3:2)\");\n\ntestFail(\"\\\\\\\\\",\n         \"Expecting Unicode escape sequence \\\\uXXXX (1:1)\");\n\ntestFail(\"\\\\u005c\",\n         \"Invalid Unicode escape (1:0)\");\n\ntestFail(\"\\\\x\",\n         \"Expecting Unicode escape sequence \\\\uXXXX (1:1)\");\n\ntestFail(\"\\\\u0000\",\n         \"Invalid Unicode escape (1:0)\");\n\ntestFail(\"‌ = []\",\n         \"Unexpected character '‌' (1:0)\");\n\ntestFail(\"‍ = []\",\n         \"Unexpected character '‍' (1:0)\");\n\ntestFail(\"\\\"\\\\\",\n         \"Unterminated string constant (1:0)\");\n\ntestFail(\"\\\"\\\\u\",\n         \"Bad character escape sequence (1:3)\");\n\ntestFail(\"return\",\n         \"'return' outside of function (1:0)\", { commonjs: false });\n\ntestFail(\"break\",\n         \"Unsyntactic break (1:0)\");\n\ntestFail(\"continue\",\n         \"Unsyntactic continue (1:0)\");\n\ntestFail(\"switch (x) { default: continue; }\",\n         \"Unsyntactic continue (1:22)\");\n\ntestFail(\"do { x } *\",\n         \"Unexpected token (1:9)\");\n\ntestFail(\"while (true) { break x; }\",\n         \"Unsyntactic break (1:15)\");\n\ntestFail(\"while (true) { continue x; }\",\n         \"Unsyntactic continue (1:15)\");\n\ntestFail(\"x: while (true) { (function () { break x; }); }\",\n         \"Unsyntactic break (1:33)\");\n\ntestFail(\"x: while (true) { (function () { continue x; }); }\",\n         \"Unsyntactic continue (1:33)\");\n\ntestFail(\"x: while (true) { (function () { break; }); }\",\n         \"Unsyntactic break (1:33)\");\n\ntestFail(\"x: while (true) { (function () { continue; }); }\",\n         \"Unsyntactic continue (1:33)\");\n\ntestFail(\"x: while (true) { x: while (true) { } }\",\n         \"Label 'x' is already declared (1:18)\");\n\ntestFail(\"(function () { 'use strict'; delete i; }())\",\n         \"Deleting local variable in strict mode (1:29)\");\n\ntestFail(\"function x() { '\\\\12'; 'use strict'; }\", \"Octal literal in strict mode (1:16)\")\n\ntestFail(\"(function () { 'use strict'; with (i); }())\",\n         \"'with' in strict mode (1:29)\");\n\ntestFail(\"function hello() {'use strict'; ({ i: 42, i: 42 }) }\",\n         \"Redefinition of property (1:42)\");\n\ntestFail(\"function hello() {'use strict'; ({ hasOwnProperty: 42, hasOwnProperty: 42 }) }\",\n         \"Redefinition of property (1:55)\");\n\ntestFail(\"function hello() {'use strict'; var eval = 10; }\",\n         \"Binding eval in strict mode (1:36)\");\n\ntestFail(\"function hello() {'use strict'; var arguments = 10; }\",\n         \"Binding arguments in strict mode (1:36)\");\n\ntestFail(\"function hello() {'use strict'; try { } catch (eval) { } }\",\n         \"Binding eval in strict mode (1:47)\");\n\ntestFail(\"function hello() {'use strict'; try { } catch (arguments) { } }\",\n         \"Binding arguments in strict mode (1:47)\");\n\ntestFail(\"function hello() {'use strict'; eval = 10; }\",\n         \"Assigning to eval in strict mode (1:32)\");\n\ntestFail(\"function hello() {'use strict'; arguments = 10; }\",\n         \"Assigning to arguments in strict mode (1:32)\");\n\ntestFail(\"function hello() {'use strict'; ++eval; }\",\n         \"Assigning to eval in strict mode (1:34)\");\n\ntestFail(\"function hello() {'use strict'; --eval; }\",\n         \"Assigning to eval in strict mode (1:34)\");\n\ntestFail(\"function hello() {'use strict'; ++arguments; }\",\n         \"Assigning to arguments in strict mode (1:34)\");\n\ntestFail(\"function hello() {'use strict'; --arguments; }\",\n         \"Assigning to arguments in strict mode (1:34)\");\n\ntestFail(\"function hello() {'use strict'; eval++; }\",\n         \"Assigning to eval in strict mode (1:32)\");\n\ntestFail(\"function hello() {'use strict'; eval--; }\",\n         \"Assigning to eval in strict mode (1:32)\");\n\ntestFail(\"function hello() {'use strict'; arguments++; }\",\n         \"Assigning to arguments in strict mode (1:32)\");\n\ntestFail(\"function hello() {'use strict'; arguments--; }\",\n         \"Assigning to arguments in strict mode (1:32)\");\n\ntestFail(\"function hello() {'use strict'; function eval() { } }\",\n         \"Binding eval in strict mode (1:41)\");\n\ntestFail(\"function hello() {'use strict'; function arguments() { } }\",\n         \"Binding arguments in strict mode (1:41)\");\n\ntestFail(\"function eval() {'use strict'; }\",\n         \"Binding eval in strict mode (1:9)\");\n\ntestFail(\"function arguments() {'use strict'; }\",\n         \"Binding arguments in strict mode (1:9)\");\n\ntestFail(\"function hello() {'use strict'; (function eval() { }()) }\",\n         \"Binding eval in strict mode (1:42)\");\n\ntestFail(\"function hello() {'use strict'; (function arguments() { }()) }\",\n         \"Binding arguments in strict mode (1:42)\");\n\ntestFail(\"(function eval() {'use strict'; })()\",\n         \"Binding eval in strict mode (1:10)\");\n\ntestFail(\"(function arguments() {'use strict'; })()\",\n         \"Binding arguments in strict mode (1:10)\");\n\ntestFail(\"function hello() {'use strict'; ({ s: function eval() { } }); }\",\n         \"Binding eval in strict mode (1:47)\");\n\ntestFail(\"(function package() {'use strict'; })()\",\n         \"Binding package in strict mode (1:10)\");\n\ntestFail(\"function hello() {'use strict'; ({ i: 10, set s(eval) { } }); }\",\n         \"Binding eval in strict mode (1:48)\");\n\ntestFail(\"function hello() {'use strict'; ({ set s(eval) { } }); }\",\n         \"Binding eval in strict mode (1:41)\");\n\ntestFail(\"function hello() {'use strict'; ({ s: function s(eval) { } }); }\",\n         \"Binding eval in strict mode (1:49)\");\n\ntestFail(\"function hello(eval) {'use strict';}\",\n         \"Binding eval in strict mode (1:15)\");\n\ntestFail(\"function hello(arguments) {'use strict';}\",\n         \"Binding arguments in strict mode (1:15)\");\n\ntestFail(\"function hello() { 'use strict'; function inner(eval) {} }\",\n         \"Binding eval in strict mode (1:48)\");\n\ntestFail(\"function hello() { 'use strict'; function inner(arguments) {} }\",\n         \"Binding arguments in strict mode (1:48)\");\n\ntestFail(\"function hello() { 'use strict'; \\\"\\\\1\\\"; }\",\n         \"Octal literal in strict mode (1:34)\");\n\ntestFail(\"function hello() { 'use strict'; \\\"\\\\00\\\"; }\",\n         \"Octal literal in strict mode (1:34)\");\n\ntestFail(\"function hello() { 'use strict'; \\\"\\\\000\\\"; }\",\n         \"Octal literal in strict mode (1:34)\");\n\ntestFail(\"function hello() { 'use strict'; 021; }\",\n         \"Invalid number (1:33)\");\n\ntestFail(\"function hello() { 'use strict'; ({ \\\"\\\\1\\\": 42 }); }\",\n         \"Octal literal in strict mode (1:37)\");\n\ntestFail(\"function hello() { 'use strict'; ({ 021: 42 }); }\",\n         \"Invalid number (1:36)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; function inner() { \\\"octal directive\\\\1\\\"; } }\",\n         \"Octal literal in strict mode (1:68)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var implements; }\",\n         \"The keyword 'implements' is reserved (1:37)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var interface; }\",\n         \"The keyword 'interface' is reserved (1:37)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var package; }\",\n         \"The keyword 'package' is reserved (1:37)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var private; }\",\n         \"The keyword 'private' is reserved (1:37)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var protected; }\",\n         \"The keyword 'protected' is reserved (1:37)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var public; }\",\n         \"The keyword 'public' is reserved (1:37)\");\n\ntestFail(\"function hello() { \\\"use strict\\\"; var static; }\",\n         \"The keyword 'static' is reserved (1:37)\");\n\ntestFail(\"function hello(static) { \\\"use strict\\\"; }\",\n         \"Binding static in strict mode (1:15)\");\n\ntestFail(\"function static() { \\\"use strict\\\"; }\",\n         \"Binding static in strict mode (1:9)\");\n\ntestFail(\"\\\"use strict\\\"; function static() { }\",\n         \"The keyword 'static' is reserved (1:23)\");\n\ntestFail(\"function a(t, t) { \\\"use strict\\\"; }\",\n         \"Argument name clash (1:14)\");\n\ntestFail(\"function a(eval) { \\\"use strict\\\"; }\",\n         \"Binding eval in strict mode (1:11)\");\n\ntestFail(\"function a(package) { \\\"use strict\\\"; }\",\n         \"Binding package in strict mode (1:11)\");\n\ntestFail(\"function a() { \\\"use strict\\\"; function b(t, t) { }; }\",\n         \"Argument name clash (1:43)\");\n\ntestFail(\"(function a(t, t) { \\\"use strict\\\"; })\",\n         \"Argument name clash (1:15)\");\n\ntestFail(\"function a() { \\\"use strict\\\"; (function b(t, t) { }); }\",\n         \"Argument name clash (1:44)\");\n\ntestFail(\"(function a(eval) { \\\"use strict\\\"; })\",\n         \"Binding eval in strict mode (1:12)\");\n\ntestFail(\"(function a(package) { \\\"use strict\\\"; })\",\n         \"Binding package in strict mode (1:12)\");\n\ntestFail(\"\\\"use strict\\\";function foo(){\\\"use strict\\\";}function bar(){var v = 015}\",\n         \"Invalid number (1:65)\");\n\ntestFail(\"var this = 10;\", \"Unexpected keyword 'this' (1:4)\");\n\ntestFail(\"throw\\n10;\", \"Illegal newline after throw (1:5)\");\n\n\n// ECMA < 6 mode should work as before\n\ntestFail(\"const a;\", \"The keyword 'const' is reserved (1:0)\");\n\ntestFail(\"let x;\", \"Unexpected token (1:4)\");\n\ntestFail(\"const a = 1;\", \"The keyword 'const' is reserved (1:0)\");\n\ntestFail(\"let a = 1;\", \"Unexpected token (1:4)\");\n\ntestFail(\"for(const x = 0;;);\", \"The keyword 'const' is reserved (1:4)\");\n\ntestFail(\"for(let x = 0;;);\", \"Unexpected token (1:8)\");\n\ntestFail(\"function a(b = c) {}\", \"Unexpected token (1:13)\");\n\ntestFail(\"switch (x) { something }\", \"Unexpected token (1:13)\");\n\ntestFail(\"`abc`\", \"Unexpected character '`' (1:0)\", {ecmaVersion: 5});\n\ntest(\"let++\", {\n  type: \"Program\",\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  },\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      },\n      expression: {\n        type: \"UpdateExpression\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 5\n          }\n        },\n        operator: \"++\",\n        prefix: false,\n        argument: {\n          type: \"Identifier\",\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 3\n            }\n          },\n          name: \"let\"\n        }\n      }\n    }\n  ]\n});\n\n// ECMA 6 support\n\ntest(\"let x\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        }\n      ],\n      kind: \"let\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 5\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 5\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"let x, y;\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 7\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          init: null,\n          loc: {\n            start: {\n              line: 1,\n              column: 7\n            },\n            end: {\n              line: 1,\n              column: 8\n            }\n          }\n        }\n      ],\n      kind: \"let\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 9\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 9\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"let x = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        }\n      ],\n      kind: \"let\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 10\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 10\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"let eval = 42, arguments = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"eval\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 8\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 11\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 13\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"arguments\",\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 24\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 27\n              },\n              end: {\n                line: 1,\n                column: 29\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 29\n            }\n          }\n        }\n      ],\n      kind: \"let\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"let x = 14, y = 3, z = 1977\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 4\n              },\n              end: {\n                line: 1,\n                column: 5\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 14,\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 4\n            },\n            end: {\n              line: 1,\n              column: 10\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 12\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 3,\n            loc: {\n              start: {\n                line: 1,\n                column: 16\n              },\n              end: {\n                line: 1,\n                column: 17\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 12\n            },\n            end: {\n              line: 1,\n              column: 17\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 19\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 1977,\n            loc: {\n              start: {\n                line: 1,\n                column: 23\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 19\n            },\n            end: {\n              line: 1,\n              column: 27\n            }\n          }\n        }\n      ],\n      kind: \"let\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 27\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 27\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"for(let x = 0;;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 8\n                },\n                end: {\n                  line: 1,\n                  column: 9\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 0,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 12\n                },\n                end: {\n                  line: 1,\n                  column: 13\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          }\n        ],\n        kind: \"let\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 13\n          }\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 16\n          },\n          end: {\n            line: 1,\n            column: 17\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 17\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 17\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"for(let x = 0, y = 1;;);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForStatement\",\n      init: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 8\n                },\n                end: {\n                  line: 1,\n                  column: 9\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 0,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 12\n                },\n                end: {\n                  line: 1,\n                  column: 13\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 8\n              },\n              end: {\n                line: 1,\n                column: 13\n              }\n            }\n          },\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"y\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 15\n                },\n                end: {\n                  line: 1,\n                  column: 16\n                }\n              }\n            },\n            init: {\n              type: \"Literal\",\n              value: 1,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 19\n                },\n                end: {\n                  line: 1,\n                  column: 20\n                }\n              }\n            },\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 20\n              }\n            }\n          }\n        ],\n        kind: \"let\",\n        loc: {\n          start: {\n            line: 1,\n            column: 4\n          },\n          end: {\n            line: 1,\n            column: 20\n          }\n        }\n      },\n      test: null,\n      update: null,\n      body: {\n        type: \"EmptyStatement\",\n        loc: {\n          start: {\n            line: 1,\n            column: 23\n          },\n          end: {\n            line: 1,\n            column: 24\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 24\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 24\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"for (let x in list) process(x);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ForInStatement\",\n      left: {\n        type: \"VariableDeclaration\",\n        declarations: [\n          {\n            type: \"VariableDeclarator\",\n            id: {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 9\n                },\n                end: {\n                  line: 1,\n                  column: 10\n                }\n              }\n            },\n            init: null,\n            loc: {\n              start: {\n                line: 1,\n                column: 9\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          }\n        ],\n        kind: \"let\",\n        loc: {\n          start: {\n            line: 1,\n            column: 5\n          },\n          end: {\n            line: 1,\n            column: 10\n          }\n        }\n      },\n      right: {\n        type: \"Identifier\",\n        name: \"list\",\n        loc: {\n          start: {\n            line: 1,\n            column: 14\n          },\n          end: {\n            line: 1,\n            column: 18\n          }\n        }\n      },\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"Identifier\",\n            name: \"process\",\n            loc: {\n              start: {\n                line: 1,\n                column: 20\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            }\n          },\n          arguments: [\n            {\n              type: \"Identifier\",\n              name: \"x\",\n              loc: {\n                start: {\n                  line: 1,\n                  column: 28\n                },\n                end: {\n                  line: 1,\n                  column: 29\n                }\n              }\n            }\n          ],\n          loc: {\n            start: {\n              line: 1,\n              column: 20\n            },\n            end: {\n              line: 1,\n              column: 30\n            }\n          }\n        },\n        loc: {\n          start: {\n            line: 1,\n            column: 20\n          },\n          end: {\n            line: 1,\n            column: 31\n          }\n        }\n      },\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 31\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 31\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"const x = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 6\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 10\n              },\n              end: {\n                line: 1,\n                column: 12\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        }\n      ],\n      kind: \"const\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 12\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 12\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"const eval = 42, arguments = 42\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"eval\",\n            loc: {\n              start: {\n                line: 1,\n                column: 6\n              },\n              end: {\n                line: 1,\n                column: 10\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 13\n              },\n              end: {\n                line: 1,\n                column: 15\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 15\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"arguments\",\n            loc: {\n              start: {\n                line: 1,\n                column: 17\n              },\n              end: {\n                line: 1,\n                column: 26\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 42,\n            loc: {\n              start: {\n                line: 1,\n                column: 29\n              },\n              end: {\n                line: 1,\n                column: 31\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 17\n            },\n            end: {\n              line: 1,\n              column: 31\n            }\n          }\n        }\n      ],\n      kind: \"const\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 31\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 31\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntest(\"const x = 14, y = 3, z = 1977\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"VariableDeclaration\",\n      declarations: [\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"x\",\n            loc: {\n              start: {\n                line: 1,\n                column: 6\n              },\n              end: {\n                line: 1,\n                column: 7\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 14,\n            loc: {\n              start: {\n                line: 1,\n                column: 10\n              },\n              end: {\n                line: 1,\n                column: 12\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 6\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"y\",\n            loc: {\n              start: {\n                line: 1,\n                column: 14\n              },\n              end: {\n                line: 1,\n                column: 15\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 3,\n            loc: {\n              start: {\n                line: 1,\n                column: 18\n              },\n              end: {\n                line: 1,\n                column: 19\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 14\n            },\n            end: {\n              line: 1,\n              column: 19\n            }\n          }\n        },\n        {\n          type: \"VariableDeclarator\",\n          id: {\n            type: \"Identifier\",\n            name: \"z\",\n            loc: {\n              start: {\n                line: 1,\n                column: 21\n              },\n              end: {\n                line: 1,\n                column: 22\n              }\n            }\n          },\n          init: {\n            type: \"Literal\",\n            value: 1977,\n            loc: {\n              start: {\n                line: 1,\n                column: 25\n              },\n              end: {\n                line: 1,\n                column: 29\n              }\n            }\n          },\n          loc: {\n            start: {\n              line: 1,\n              column: 21\n            },\n            end: {\n              line: 1,\n              column: 29\n            }\n          }\n        }\n      ],\n      kind: \"const\",\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 29\n        }\n      }\n    }\n  ],\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 29\n    }\n  }\n}, {ecmaVersion: 6, locations: true});\n\ntestFail(\"const a;\", \"Unexpected token (1:7)\", {ecmaVersion: 6});\n\ntest(\"for(const x = 0;;);\", {\n  type: \"Program\",\n  body: [{\n    type: \"ForStatement\",\n    init: {\n      type: \"VariableDeclaration\",\n      declarations: [{\n        type: \"VariableDeclarator\",\n        id: {\n          type: \"Identifier\",\n          name: \"x\",\n          range: [10, 11]\n        },\n        init: {\n          type: \"Literal\",\n          value: 0,\n          range: [14, 15]\n        },\n        range: [10, 15]\n      }],\n      kind: \"const\",\n      range: [4, 15]\n    },\n    test: null,\n    update: null,\n    body: {\n      type: \"EmptyStatement\",\n      range: [18, 19]\n    },\n    range: [0, 19]\n  }],\n  range: [0, 19]\n}, {ecmaVersion: 6, ranges: true});\n\ntestFail(\"for(x of a);\", \"Unexpected token (1:6)\");\n\ntestFail(\"for(var x of a);\", \"Unexpected token (1:10)\");\n\n// Assertion Tests\ntest(function TestComments() {\n    // Bear class\n    function Bear(x,y,z) {\n      this.position = [x||0,y||0,z||0]\n    }\n\n    Bear.prototype.roar = function(message) {\n      return 'RAWWW: ' + message; // Whatever\n    };\n\n    function Cat() {\n    /* 1\n       2\n       3*/\n    }\n\n    Cat.prototype.roar = function(message) {\n      return 'MEOOWW: ' + /*stuff*/ message;\n    };\n}.toString().replace(/\\r\\n/g, '\\n'), {}, {\n  onComment: [\n    {type: \"Line\", value: \" Bear class\"},\n    {type: \"Line\", value: \" Whatever\"},\n    {type: \"Block\",  value: [\n            \" 1\",\n      \"       2\",\n      \"       3\"\n    ].join('\\n')},\n    {type: \"Block\", value: \"stuff\"}\n  ]\n});\n\ntest(\"<!--\\n;\", {\n  type: \"Program\",\n  body: [{\n    type: \"EmptyStatement\"\n  }]\n});\n\ntest(\"\\nfunction plop() {\\n'use strict';\\n/* Comment */\\n}\", {}, {\n  locations: true,\n  onComment: [{\n    type: \"Block\",\n    value: \" Comment \",\n    loc: {\n      start: { line: 4, column: 0 },\n      end: { line: 4, column: 13 }\n    }\n  }]\n});\n\ntest(\"// line comment\", {}, {\n  locations: true,\n  onComment: [{\n    type: \"Line\",\n    value: \" line comment\",\n    loc: {\n      start: { line: 1, column: 0 },\n      end: { line: 1, column: 15 }\n    }\n  }]\n});\n\ntest(\"<!-- HTML comment\", {}, {\n  locations: true,\n  onComment: [{\n    type: \"Line\",\n    value: \" HTML comment\",\n    loc: {\n      start: { line: 1, column: 0 },\n      end: { line: 1, column: 17 }\n    }\n  }]\n});\n\ntest(\";\\n--> HTML comment\", {}, {\n  locations: true,\n  onComment: [{\n    type: \"Line\",\n    value: \" HTML comment\",\n    loc: {\n      start: { line: 2, column: 0 },\n      end: { line: 2, column: 16 }\n    }\n  }]\n});\n\nvar tokTypes = acorn.tokTypes;\n\ntest('var x = (1 + 2)', {}, {\n  locations: true,\n  loose: false,\n  onToken: [\n    {\n      type: tokTypes._var,\n      value: \"var\",\n      loc: {\n        start: {line: 1, column: 0},\n        end: {line: 1, column: 3}\n      }\n    },\n    {\n      type: tokTypes.name,\n      value: \"x\",\n      loc: {\n        start: {line: 1, column: 4},\n        end: {line: 1, column: 5}\n      }\n    },\n    {\n      type: tokTypes.eq,\n      value: \"=\",\n      loc: {\n        start: {line: 1, column: 6},\n        end: {line: 1, column: 7}\n      }\n    },\n    {\n      type: tokTypes.parenL,\n      value: undefined,\n      loc: {\n        start: {line: 1, column: 8},\n        end: {line: 1, column: 9}\n      }\n    },\n    {\n      type: tokTypes.num,\n      value: 1,\n      loc: {\n        start: {line: 1, column: 9},\n        end: {line: 1, column: 10}\n      }\n    },\n    {\n      type: tokTypes.plusMin,\n      value: \"+\",\n      loc: {\n        start: {line: 1, column: 11},\n        end: {line: 1, column: 12}\n      }\n    },\n    {\n      type: tokTypes.num,\n      value: 2,\n      loc: {\n        start: {line: 1, column: 13},\n        end: {line: 1, column: 14}\n      }\n    },\n    {\n      type: tokTypes.parenR,\n      value: undefined,\n      loc: {\n        start: {line: 1, column: 14},\n        end: {line: 1, column: 15}\n      }\n    },\n    {\n      type: tokTypes.eof,\n      value: undefined,\n      loc: {\n        start: {line: 1, column: 15},\n        end: {line: 1, column: 15}\n      }\n    }\n  ]\n});\n\ntest(\"function f(f) { 'use strict'; }\", {});\n\n// https://github.com/acornjs/acorn/issues/180\ntest(\"#!/usr/bin/node\\n;\", {}, {\n  allowHashBang: true,\n  onComment: [{\n    type: \"Line\",\n    value: \"/usr/bin/node\",\n    start: 0,\n    end: 15\n  }]\n});\n\n// https://github.com/acornjs/acorn/issues/204\ntest(\"(function () {} / 1)\", {\n  type: \"Program\",\n  body: [{\n    type: \"ExpressionStatement\",\n    expression: {\n      type: \"BinaryExpression\",\n      left: {\n        type: \"FunctionExpression\",\n        id: null,\n        params: [],\n        body: {\n          type: \"BlockStatement\",\n          body: []\n        }\n      },\n      operator: \"/\",\n      right: {type: \"Literal\", value: 1}\n    }\n  }]\n});\n\ntest(\"function f() {} / 1 /\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"FunctionDeclaration\",\n      id: {type: \"Identifier\", name: \"f\"},\n      params: [],\n      body: {\n        type: \"BlockStatement\",\n        body: []\n      }\n    },\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        regex: {pattern: \" 1 \", flags: \"\"},\n        value: / 1 /\n      }\n    }\n  ]\n});\n\n// https://github.com/acornjs/acorn/issues/320\n\ntest(\"do /x/; while (false);\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"DoWhileStatement\",\n      body: {\n        type: \"ExpressionStatement\",\n        expression: {\n          type: \"Literal\",\n          value: /x/,\n          raw: \"/x/\",\n          regex: { pattern: \"x\", flags: \"\" }\n        }\n      },\n      test: {\n        type: \"Literal\",\n        value: false,\n        raw: \"false\"\n      }\n    }\n  ]\n});\n\nvar semicolons = []\ntestAssert(\"var x\\nreturn\\n10\", function() {\n  var result = semicolons.join(\" \");\n  semicolons.length = 0;\n  if (result !== \"5 12 15\")\n    return \"Unexpected result for onInsertedSemicolon: \" + result;\n}, {onInsertedSemicolon: function(pos) { semicolons.push(pos); },\n    allowReturnOutsideFunction: true,\n    loose: false})\n\nvar trailingCommas = []\ntestAssert(\"[1,2,] + {foo: 1,}\", function() {\n  var result = trailingCommas.join(\" \");\n  trailingCommas.length = 0;\n  if (result !== \"4 16\")\n    return \"Unexpected result for onTrailingComma: \" + result;\n}, {onTrailingComma: function(pos) { trailingCommas.push(pos); },\n    loose: false})\n\n// https://github.com/acornjs/acorn/issues/275\n\ntestFail(\"({ get prop(x) {} })\", \"getter should have no params (1:11)\");\ntestFail(\"({ set prop() {} })\", \"setter should have exactly one param (1:11)\");\ntestFail(\"({ set prop(x, y) {} })\", \"setter should have exactly one param (1:11)\");\n\n// https://github.com/acornjs/acorn/issues/363\n\ntest(\"/[a-z]/gim\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        value: /[a-z]/gim,\n        regex: {\n          pattern: \"[a-z]\",\n          flags: \"gim\"\n        }\n      }\n    }\n  ]\n});\ntestFail(\"/[a-z]/u\", \"Invalid regular expression flag (1:1)\");\ntestFail(\"/[a-z]/y\", \"Invalid regular expression flag (1:1)\");\ntestFail(\"/[a-z]/s\", \"Invalid regular expression flag (1:1)\");\ntestFail(\"/a/gg\", \"Duplicate regular expression flag (1:1)\");\n\ntestFail(\"function(){}\", \"Unexpected token (1:8)\");\n\ntest(\"0123. in/foo/i\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"BinaryExpression\",\n        \"left\": {\n          \"type\": \"BinaryExpression\",\n          \"left\": {\n            \"type\": \"MemberExpression\",\n            \"object\": {\n              \"type\": \"Literal\",\n              \"value\": 83,\n              \"raw\": \"0123\"\n            },\n            \"property\": {\n              \"type\": \"Identifier\",\n              \"name\": \"in\"\n            },\n            \"computed\": false\n          },\n          \"operator\": \"/\",\n          \"right\": {\n            \"type\": \"Identifier\",\n            \"name\": \"foo\"\n          }\n        },\n        \"operator\": \"/\",\n        \"right\": {\n          \"type\": \"Identifier\",\n          \"name\": \"i\"\n        }\n      }\n    }\n  ]\n})\n\ntest(\"0128\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"value\": 128,\n        \"raw\": \"0128\"\n      }\n    }\n  ]\n})\n\ntestFail(\"07.5\", \"Unexpected token (1:2)\")\n\ntest(\"08.5\", {\n  \"type\": \"Program\",\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"expression\": {\n        \"type\": \"Literal\",\n        \"value\": 8.5,\n        \"raw\": \"08.5\"\n      }\n    }\n  ]\n})\n\ntest(\"undefined\", {}, { ecmaVersion: 8 })\n\ntestFail(\"\\\\u{74}rue\", \"Escape sequence in keyword true (1:0)\", {ecmaVersion: 6})\ntestFail(\"export { X \\\\u0061s Y }\", \"Unexpected token (1:11)\", {ecmaVersion: 7, sourceType: \"module\"})\ntestFail(\"import X fro\\\\u006d 'x'\", \"Unexpected token (1:9)\", {ecmaVersion: 7, sourceType: \"module\"})\ntestFail(\"le\\\\u0074 x = 5\", \"Unexpected token (1:9)\", {ecmaVersion: 6})\ntestFail(\"(function* () { y\\\\u0069eld 10 })\", \"Cannot use 'yield' as identifier inside a generator (1:16)\", {ecmaVersion: 6})\ntestFail(\"(async function() { aw\\\\u0061it x })\", \"Cannot use 'await' as identifier inside an async function (1:20)\", {ecmaVersion: 8})\ntestFail(\"(\\\\u0061sync function() { await x })\", \"Unexpected token (1:12)\", {ecmaVersion: 8})\ntestFail(\"(\\\\u0061sync () => { await x })\", \"Unexpected token (1:15)\", {ecmaVersion: 8})\ntestFail(\"\\\\u0061sync x => { await x }\", \"Unexpected token (1:11)\", {ecmaVersion: 8})\ntestFail(\"class X { \\\\u0061sync x() { await x } }\", \"Unexpected token (1:21)\", {ecmaVersion: 8})\ntestFail(\"class X { static \\\\u0061sync x() { await x } }\", \"Unexpected token (1:28)\", {ecmaVersion: 8})\ntestFail(\"({ ge\\\\u0074 x() {} })\", \"Unexpected token (1:12)\")\ntestFail(\"export \\\\u0061sync function y() { await x }\", \"Unexpected token (1:7)\", {ecmaVersion: 8, sourceType: \"module\"})\ntestFail(\"export default \\\\u0061sync function () { await x }\", \"Unexpected token (1:26)\", {ecmaVersion: 8, sourceType: \"module\"})\ntest(\"(\\\\u0061sync ())\", {\n  \"type\": \"Program\",\n  \"start\": 0,\n  \"end\": 15,\n  \"body\": [\n    {\n      \"type\": \"ExpressionStatement\",\n      \"start\": 0,\n      \"end\": 15,\n      \"expression\": {\n        \"type\": \"CallExpression\",\n        \"start\": 1,\n        \"end\": 14,\n        \"callee\": {\n          \"type\": \"Identifier\",\n          \"start\": 1,\n          \"end\": 11,\n          \"name\": \"async\"\n        },\n        \"arguments\": []\n      }\n    }\n  ],\n  \"sourceType\": \"script\"\n}, {ecmaVersion: 8})\ntestFail(\"({ \\\\u0061sync x() { await x } })\", \"Unexpected token (1:14)\", {ecmaVersion: 8})\ntestFail(\"for (x \\\\u006ff y) {}\", \"Unexpected token (1:7)\", {ecmaVersion: 6})\ntestFail(\"function x () { new.ta\\\\u0072get }\", \"'new.target' must not contain escaped characters (1:16)\", {ecmaVersion: 6})\ntestFail(\"class X { st\\\\u0061tic y() {} }\", \"Unexpected token (1:22)\", {ecmaVersion: 6})\n\ntestFail(\"(x=1)=2\", \"Assigning to rvalue (1:0)\")\ntestFail(\"(x=1)=2\", \"Assigning to rvalue (1:1)\", {ecmaVersion: 6})\n\ntest(\"(foo = [])[0] = 4;\", {})\n\ntest(\"for ((foo = []).bar in {}) {}\", {})\n\ntest(\"((b), a=1)\", {})\n\ntest(\"(x) = 1\", {})\n\ntest(\"try {} catch (foo) { var foo; }\", {}, {ecmaVersion: 6})\ntestFail(\"try {} catch (foo) { let foo; }\", \"Identifier 'foo' has already been declared (1:25)\", {ecmaVersion: 6})\ntest(\"try {} catch (foo) { try {} catch (_) { var foo; } }\", {}, {ecmaVersion: 6})\ntestFail(\"try {} catch ([foo]) { var foo; }\", \"Identifier 'foo' has already been declared (1:27)\", {ecmaVersion: 6})\ntestFail(\"try {} catch ({ foo }) { var foo; }\", \"Identifier 'foo' has already been declared (1:29)\", {ecmaVersion: 6})\ntestFail(\"try {} catch ([foo, foo]) {}\", \"Identifier 'foo' has already been declared (1:20)\", {ecmaVersion: 6})\ntestFail(\"try {} catch ({ a: foo, b: { c: [foo] } }) {}\", \"Identifier 'foo' has already been declared (1:33)\", {ecmaVersion: 6})\ntestFail(\"let foo; try {} catch (foo) {} let foo;\", \"Identifier 'foo' has already been declared (1:35)\", {ecmaVersion: 6})\ntestFail(\"try {} catch (foo) { function foo() {} }\", \"Identifier 'foo' has already been declared (1:30)\")\ntest(\"try {} catch (foo) { if (1) function foo() {} }\", {}, {ecmaVersion: 6})\n\ntest(\"try {} catch (foo) {} var foo;\", {})\ntest(\"try {} catch (foo) {} let foo;\", {}, {ecmaVersion: 6})\ntest(\"try {} catch (foo) { { let foo; } }\", {}, {ecmaVersion: 6})\ntest(\"try {} catch (foo) { function x() { var foo; } }\", {}, {ecmaVersion: 6})\ntest(\"try {} catch (foo) { function x(foo) {} }\", {}, {ecmaVersion: 6})\n\ntest(\"'use strict'; let foo = function foo() {}\", {}, {ecmaVersion: 6})\n\ntest(\"/**/ --> comment\\n\", {})\ntest(\"x.class++\", {})\n\ntestFail(\"½\", \"Unexpected character '½' (1:0)\")\n\n// Ignore use-strict strings that aren't a stand-along expression\ntest(\"'use strict'.foo; 05\", {}, {ecmaVersion: 6})\ntest(\"'use strict'\\n.foo; 05\", {}, {ecmaVersion: 6})\ntest(\"\\\"use strict\\\"(foo); 05\", {}, {ecmaVersion: 6})\ntest(\"'use strict'`foo`; 05\", {}, {ecmaVersion: 6})\ntest(\"'use strict'\\n+ 10; 05\", {}, {ecmaVersion: 6})\ntest(\"'use strict'\\n!=10; 05\", {}, {ecmaVersion: 6})\n\n// Don't ignore those that are, even with semicolon insertion\ntestFail(\"\\\"use strict\\\"\\nfoo\\n05\", \"Invalid number (3:0)\", {ecmaVersion: 6})\ntestFail(\"\\\"use strict\\\"\\n;(foo)\\n05\", \"Invalid number (3:0)\", {ecmaVersion: 6})\ntestFail(\"'use strict'\\n!blah; 05\", \"Invalid number (2:7)\", {ecmaVersion: 6})\n\n// Make sure a slash after an anonymous function/class in a for spec is treated as division\ntest(\"for (; function () {} / 1;);\", {}, {ecmaVersion: 6})\ntest(\"for (; class {} / 1;);\", {}, {ecmaVersion: 6})\ntest(\"for (;; function () {} / 1);\", {}, {ecmaVersion: 6})\ntest(\"for (;; class {} / 1);\", {}, {ecmaVersion: 6})\n\nfor (const ecmaVersion of [5, 6]) {\n  test(\"a = (\\r\\n  b,\\r\\n  c\\r\\n)\", {\n    type: \"Program\",\n    start: 0,\n    end: 19,\n    loc: {\n      start: {\n        line: 1,\n        column: 0\n      },\n      end: {\n        line: 4,\n        column: 1\n      }\n    },\n    body: [\n      {\n        type: \"ExpressionStatement\",\n        start: 0,\n        end: 19,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 4,\n            column: 1\n          }\n        },\n        expression: {\n          type: \"AssignmentExpression\",\n          start: 0,\n          end: 19,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 4,\n              column: 1\n            }\n          },\n          operator: \"=\",\n          left: {\n            type: \"Identifier\",\n            start: 0,\n            end: 1,\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 1\n              }\n            },\n            name: \"a\"\n          },\n          right: {\n            type: \"SequenceExpression\",\n            start: 9,\n            end: 16,\n            loc: {\n              start: {\n                line: 2,\n                column: 2\n              },\n              end: {\n                line: 3,\n                column: 3\n              }\n            },\n            expressions: [\n              {\n                type: \"Identifier\",\n                start: 9,\n                end: 10,\n                loc: {\n                  start: {\n                    line: 2,\n                    column: 2\n                  },\n                  end: {\n                    line: 2,\n                    column: 3\n                  }\n                },\n                name: \"b\"\n              },\n              {\n                type: \"Identifier\",\n                start: 15,\n                end: 16,\n                loc: {\n                  start: {\n                    line: 3,\n                    column: 2\n                  },\n                  end: {\n                    line: 3,\n                    column: 3\n                  }\n                },\n                name: \"c\"\n              }\n            ]\n          }\n        }\n      }\n    ],\n  }, { ecmaVersion, locations: true })\n}\n\ntest(\"'\\u2028'\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"Literal\",\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 1\n          }\n        }\n      }\n    }\n  ]\n}, {ecmaVersion: 2020, locations: true})\n\ntestFail(\"'\\u2029'\", \"Unterminated string constant (1:0)\", {ecmaVersion: 5})\n\ntest(\"weird ? true : {} / 2\", {\n  type: \"Program\",\n  start: 0,\n  end: 21,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 1,\n      column: 21\n    }\n  },\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 21,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 1,\n          column: 21\n        }\n      },\n      expression: {\n        type: \"ConditionalExpression\",\n        start: 0,\n        end: 21,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 1,\n            column: 21\n          }\n        },\n        test: {\n          type: \"Identifier\",\n          start: 0,\n          end: 5,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 1,\n              column: 5\n            }\n          },\n          name: \"weird\"\n        },\n        consequent: {\n          type: \"Literal\",\n          start: 8,\n          end: 12,\n          loc: {\n            start: {\n              line: 1,\n              column: 8\n            },\n            end: {\n              line: 1,\n              column: 12\n            }\n          },\n          value: true,\n          raw: \"true\"\n        },\n        alternate: {\n          type: \"BinaryExpression\",\n          start: 15,\n          end: 21,\n          loc: {\n            start: {\n              line: 1,\n              column: 15\n            },\n            end: {\n              line: 1,\n              column: 21\n            }\n          },\n          left: {\n            type: \"ObjectExpression\",\n            start: 15,\n            end: 17,\n            loc: {\n              start: {\n                line: 1,\n                column: 15\n              },\n              end: {\n                line: 1,\n                column: 17\n              }\n            },\n            properties: []\n          },\n          operator: \"/\",\n          right: {\n            type: \"Literal\",\n            start: 20,\n            end: 21,\n            loc: {\n              start: {\n                line: 1,\n                column: 20\n              },\n              end: {\n                line: 1,\n                column: 21\n              }\n            },\n            value: 2,\n            raw: \"2\"\n          }\n        }\n      }\n    }\n  ]\n}, {locations: true})\n\ntest(`typeof async function f(){}\n/foo/g`, {\n  type: \"Program\",\n  start: 0,\n  end: 34,\n  loc: {\n    start: {\n      line: 1,\n      column: 0\n    },\n    end: {\n      line: 2,\n      column: 6\n    }\n  },\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      start: 0,\n      end: 34,\n      loc: {\n        start: {\n          line: 1,\n          column: 0\n        },\n        end: {\n          line: 2,\n          column: 6\n        }\n      },\n      expression: {\n        type: \"BinaryExpression\",\n        start: 0,\n        end: 34,\n        loc: {\n          start: {\n            line: 1,\n            column: 0\n          },\n          end: {\n            line: 2,\n            column: 6\n          }\n        },\n        left: {\n          type: \"BinaryExpression\",\n          start: 0,\n          end: 32,\n          loc: {\n            start: {\n              line: 1,\n              column: 0\n            },\n            end: {\n              line: 2,\n              column: 4\n            }\n          },\n          left: {\n            type: \"UnaryExpression\",\n            start: 0,\n            end: 27,\n            loc: {\n              start: {\n                line: 1,\n                column: 0\n              },\n              end: {\n                line: 1,\n                column: 27\n              }\n            },\n            operator: \"typeof\",\n            prefix: true,\n            argument: {\n              type: \"FunctionExpression\",\n              start: 7,\n              end: 27,\n              loc: {\n                start: {\n                  line: 1,\n                  column: 7\n                },\n                end: {\n                  line: 1,\n                  column: 27\n                }\n              },\n              id: {\n                type: \"Identifier\",\n                start: 22,\n                end: 23,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 22\n                  },\n                  end: {\n                    line: 1,\n                    column: 23\n                  }\n                },\n                name: \"f\"\n              },\n              expression: false,\n              generator: false,\n              async: true,\n              params: [],\n              body: {\n                type: \"BlockStatement\",\n                start: 25,\n                end: 27,\n                loc: {\n                  start: {\n                    line: 1,\n                    column: 25\n                  },\n                  end: {\n                    line: 1,\n                    column: 27\n                  }\n                },\n                body: []\n              }\n            }\n          },\n          operator: \"/\",\n          right: {\n            type: \"Identifier\",\n            start: 29,\n            end: 32,\n            loc: {\n              start: {\n                line: 2,\n                column: 1\n              },\n              end: {\n                line: 2,\n                column: 4\n              }\n            },\n            name: \"foo\"\n          }\n        },\n        operator: \"/\",\n        right: {\n          type: \"Identifier\",\n          start: 33,\n          end: 34,\n          loc: {\n            start: {\n              line: 2,\n              column: 5\n            },\n            end: {\n              line: 2,\n              column: 6\n            }\n          },\n          name: \"g\"\n        }\n      }\n    }\n  ]\n}, { ecmaVersion: 8, locations: true })\n\ntestFail(`typeof async function f(){}\n/foo/`, \"Unexpected token (2:5)\", { ecmaVersion: 8, locations: true })\n\ntest(\"foo.if() / 2\", {\n  type: \"Program\",\n  body: [\n    {\n      type: \"ExpressionStatement\",\n      expression: {\n        type: \"BinaryExpression\",\n        left: {\n          type: \"CallExpression\",\n          callee: {\n            type: \"MemberExpression\",\n            object: {\n              type: \"Identifier\",\n              name: \"foo\"\n            },\n            property: {\n              type: \"Identifier\",\n              name: \"if\"\n            },\n            computed: false\n          },\n          arguments: []\n        },\n        operator: \"/\",\n        right: {\n          type: \"Literal\",\n          value: 2,\n          raw: \"2\"\n        }\n      }\n    }\n  ],\n  sourceType: \"script\"\n}, {\n  ecmaVersion: 5\n})\n\ntest(\"({a: /=/})\", {}, {ecmaVersion: 5})\n"
  }
]